]>
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] | |
59ccbf7f RD |
2494 | #define SWIGTYPE_p_wxColour swig_types[28] |
2495 | #define SWIGTYPE_p_wxColourDatabase swig_types[29] | |
2496 | #define SWIGTYPE_p_wxCommandEvent swig_types[30] | |
2497 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxControl swig_types[32] | |
2499 | #define SWIGTYPE_p_wxControlWithItems swig_types[33] | |
2500 | #define SWIGTYPE_p_wxCursor swig_types[34] | |
2501 | #define SWIGTYPE_p_wxDC swig_types[35] | |
2502 | #define SWIGTYPE_p_wxDCBrushChanger swig_types[36] | |
2503 | #define SWIGTYPE_p_wxDCClipper swig_types[37] | |
2504 | #define SWIGTYPE_p_wxDCOverlay swig_types[38] | |
2505 | #define SWIGTYPE_p_wxDCPenChanger swig_types[39] | |
2506 | #define SWIGTYPE_p_wxDCTextColourChanger swig_types[40] | |
2507 | #define SWIGTYPE_p_wxDash swig_types[41] | |
2508 | #define SWIGTYPE_p_wxDateEvent swig_types[42] | |
2509 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[44] | |
2511 | #define SWIGTYPE_p_wxDuplexMode swig_types[45] | |
2512 | #define SWIGTYPE_p_wxEffects swig_types[46] | |
2513 | #define SWIGTYPE_p_wxEncodingConverter swig_types[47] | |
2514 | #define SWIGTYPE_p_wxEraseEvent swig_types[48] | |
2515 | #define SWIGTYPE_p_wxEvent swig_types[49] | |
2516 | #define SWIGTYPE_p_wxEvtHandler swig_types[50] | |
2517 | #define SWIGTYPE_p_wxFSFile swig_types[51] | |
2518 | #define SWIGTYPE_p_wxFileSystem swig_types[52] | |
2519 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[53] | |
2520 | #define SWIGTYPE_p_wxFocusEvent swig_types[54] | |
2521 | #define SWIGTYPE_p_wxFont swig_types[55] | |
2522 | #define SWIGTYPE_p_wxFontList swig_types[56] | |
2523 | #define SWIGTYPE_p_wxFontMapper swig_types[57] | |
2524 | #define SWIGTYPE_p_wxGBSizerItem swig_types[58] | |
2525 | #define SWIGTYPE_p_wxGCDC swig_types[59] | |
2526 | #define SWIGTYPE_p_wxGDIObjListBase swig_types[60] | |
2527 | #define SWIGTYPE_p_wxGDIObject swig_types[61] | |
2528 | #define SWIGTYPE_p_wxGIFHandler swig_types[62] | |
2529 | #define SWIGTYPE_p_wxGraphicsBrush swig_types[63] | |
2530 | #define SWIGTYPE_p_wxGraphicsContext swig_types[64] | |
2531 | #define SWIGTYPE_p_wxGraphicsFont swig_types[65] | |
2532 | #define SWIGTYPE_p_wxGraphicsMatrix swig_types[66] | |
2533 | #define SWIGTYPE_p_wxGraphicsObject swig_types[67] | |
2534 | #define SWIGTYPE_p_wxGraphicsPath swig_types[68] | |
2535 | #define SWIGTYPE_p_wxGraphicsPen swig_types[69] | |
2536 | #define SWIGTYPE_p_wxGraphicsRenderer swig_types[70] | |
2537 | #define SWIGTYPE_p_wxGridBagSizer swig_types[71] | |
2538 | #define SWIGTYPE_p_wxGridSizer swig_types[72] | |
2539 | #define SWIGTYPE_p_wxHeaderButtonParams swig_types[73] | |
2540 | #define SWIGTYPE_p_wxICOHandler swig_types[74] | |
2541 | #define SWIGTYPE_p_wxIcon swig_types[75] | |
2542 | #define SWIGTYPE_p_wxIconBundle swig_types[76] | |
2543 | #define SWIGTYPE_p_wxIconLocation swig_types[77] | |
2544 | #define SWIGTYPE_p_wxIconizeEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxIdleEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxImage swig_types[80] | |
2547 | #define SWIGTYPE_p_wxImageHandler swig_types[81] | |
2548 | #define SWIGTYPE_p_wxImageList swig_types[82] | |
2549 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83] | |
2550 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[84] | |
2551 | #define SWIGTYPE_p_wxJPEGHandler swig_types[85] | |
2552 | #define SWIGTYPE_p_wxKeyEvent swig_types[86] | |
2553 | #define SWIGTYPE_p_wxLanguageInfo swig_types[87] | |
2554 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[88] | |
2555 | #define SWIGTYPE_p_wxLocale swig_types[89] | |
2556 | #define SWIGTYPE_p_wxMask swig_types[90] | |
2557 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[91] | |
2558 | #define SWIGTYPE_p_wxMemoryDC swig_types[92] | |
2559 | #define SWIGTYPE_p_wxMenu swig_types[93] | |
2560 | #define SWIGTYPE_p_wxMenuBar swig_types[94] | |
2561 | #define SWIGTYPE_p_wxMenuEvent swig_types[95] | |
2562 | #define SWIGTYPE_p_wxMenuItem swig_types[96] | |
2563 | #define SWIGTYPE_p_wxMetaFile swig_types[97] | |
2564 | #define SWIGTYPE_p_wxMetaFileDC swig_types[98] | |
2565 | #define SWIGTYPE_p_wxMirrorDC swig_types[99] | |
2566 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100] | |
2567 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101] | |
2568 | #define SWIGTYPE_p_wxMouseEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxMoveEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104] | |
2571 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[105] | |
2572 | #define SWIGTYPE_p_wxNativePixelData swig_types[106] | |
2573 | #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107] | |
2574 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108] | |
2575 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxNotifyEvent swig_types[110] | |
2577 | #define SWIGTYPE_p_wxObject swig_types[111] | |
2578 | #define SWIGTYPE_p_wxOverlay swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPCXHandler swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPNGHandler swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPNMHandler swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPaintDC swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPaintEvent swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPalette swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPaperSize swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPen swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPenList swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPixelDataBase swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPoint swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPoint2D swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPostScriptDC swig_types[126] | |
2593 | #define SWIGTYPE_p_wxPrintData swig_types[127] | |
2594 | #define SWIGTYPE_p_wxPrinterDC swig_types[128] | |
2595 | #define SWIGTYPE_p_wxPseudoDC swig_types[129] | |
2596 | #define SWIGTYPE_p_wxPyApp swig_types[130] | |
2597 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[131] | |
2598 | #define SWIGTYPE_p_wxPyEvent swig_types[132] | |
2599 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[133] | |
2600 | #define SWIGTYPE_p_wxPyImageHandler swig_types[134] | |
2601 | #define SWIGTYPE_p_wxPyLocale swig_types[135] | |
2602 | #define SWIGTYPE_p_wxPySizer swig_types[136] | |
2603 | #define SWIGTYPE_p_wxPyValidator swig_types[137] | |
2604 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138] | |
2605 | #define SWIGTYPE_p_wxRect swig_types[139] | |
2606 | #define SWIGTYPE_p_wxRect2D swig_types[140] | |
2607 | #define SWIGTYPE_p_wxRegion swig_types[141] | |
2608 | #define SWIGTYPE_p_wxRegionIterator swig_types[142] | |
2609 | #define SWIGTYPE_p_wxRendererNative swig_types[143] | |
2610 | #define SWIGTYPE_p_wxRendererVersion swig_types[144] | |
2611 | #define SWIGTYPE_p_wxScreenDC swig_types[145] | |
2612 | #define SWIGTYPE_p_wxScrollEvent swig_types[146] | |
2613 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[147] | |
2614 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[148] | |
2615 | #define SWIGTYPE_p_wxShowEvent swig_types[149] | |
2616 | #define SWIGTYPE_p_wxSize swig_types[150] | |
2617 | #define SWIGTYPE_p_wxSizeEvent swig_types[151] | |
2618 | #define SWIGTYPE_p_wxSizer swig_types[152] | |
2619 | #define SWIGTYPE_p_wxSizerItem swig_types[153] | |
2620 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[154] | |
2621 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[155] | |
2622 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156] | |
2623 | #define SWIGTYPE_p_wxStockGDI swig_types[157] | |
2624 | #define SWIGTYPE_p_wxString swig_types[158] | |
2625 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159] | |
2626 | #define SWIGTYPE_p_wxTGAHandler swig_types[160] | |
2627 | #define SWIGTYPE_p_wxTIFFHandler swig_types[161] | |
2628 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162] | |
2629 | #define SWIGTYPE_p_wxValidator swig_types[163] | |
2630 | #define SWIGTYPE_p_wxWindow swig_types[164] | |
2631 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[165] | |
2632 | #define SWIGTYPE_p_wxWindowDC swig_types[166] | |
2633 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167] | |
2634 | #define SWIGTYPE_p_wxXPMHandler swig_types[168] | |
2635 | static swig_type_info *swig_types[170]; | |
2636 | static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0}; | |
32fe5131 RD |
2637 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2638 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d14a1e28 | 2639 | |
093d3ff1 | 2640 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 2641 | |
0085ce49 RD |
2642 | #if (PY_VERSION_HEX <= 0x02000000) |
2643 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2644 | # error "This python version requires to use swig with the '-classic' option" | |
2645 | # endif | |
2646 | #endif | |
2647 | #if (PY_VERSION_HEX <= 0x02020000) | |
2648 | # error "This python version requires to use swig with the '-nomodern' option" | |
2649 | #endif | |
2650 | #if (PY_VERSION_HEX <= 0x02020000) | |
2651 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2652 | #endif | |
2653 | #ifndef METH_O | |
2654 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2655 | #endif | |
d14a1e28 | 2656 | |
093d3ff1 RD |
2657 | /*----------------------------------------------- |
2658 | @(target):= _gdi_.so | |
2659 | ------------------------------------------------*/ | |
2660 | #define SWIG_init init_gdi_ | |
d14a1e28 | 2661 | |
093d3ff1 | 2662 | #define SWIG_name "_gdi_" |
d14a1e28 | 2663 | |
0085ce49 | 2664 | #define SWIGVERSION 0x010329 |
d14a1e28 | 2665 | |
d14a1e28 | 2666 | |
0085ce49 RD |
2667 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2668 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
d14a1e28 RD |
2669 | |
2670 | ||
0085ce49 RD |
2671 | #include <stdexcept> |
2672 | ||
2673 | ||
2674 | namespace swig { | |
2675 | class PyObject_ptr { | |
2676 | protected: | |
2677 | PyObject *_obj; | |
2678 | ||
2679 | public: | |
2680 | PyObject_ptr() :_obj(0) | |
2681 | { | |
093d3ff1 | 2682 | } |
0085ce49 RD |
2683 | |
2684 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2685 | { | |
2686 | Py_XINCREF(_obj); | |
093d3ff1 | 2687 | } |
0085ce49 RD |
2688 | |
2689 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2690 | { | |
2691 | if (initial_ref) Py_XINCREF(_obj); | |
2692 | } | |
2693 | ||
2694 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2695 | { | |
2696 | Py_XINCREF(item._obj); | |
2697 | Py_XDECREF(_obj); | |
2698 | _obj = item._obj; | |
2699 | return *this; | |
2700 | } | |
2701 | ||
2702 | ~PyObject_ptr() | |
2703 | { | |
2704 | Py_XDECREF(_obj); | |
2705 | } | |
2706 | ||
2707 | operator PyObject *() const | |
2708 | { | |
2709 | return _obj; | |
2710 | } | |
2711 | ||
2712 | PyObject *operator->() const | |
2713 | { | |
2714 | return _obj; | |
2715 | } | |
2716 | }; | |
093d3ff1 | 2717 | } |
d14a1e28 | 2718 | |
994141e6 | 2719 | |
0085ce49 RD |
2720 | namespace swig { |
2721 | struct PyObject_var : PyObject_ptr { | |
2722 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2723 | ||
2724 | PyObject_var & operator = (PyObject* obj) | |
2725 | { | |
2726 | Py_XDECREF(_obj); | |
2727 | _obj = obj; | |
2728 | return *this; | |
69223c70 | 2729 | } |
0085ce49 | 2730 | }; |
15afbcd0 RD |
2731 | } |
2732 | ||
2733 | ||
0085ce49 RD |
2734 | #include "wx/wxPython/wxPython.h" |
2735 | #include "wx/wxPython/pyclasses.h" | |
2736 | ||
2737 | ||
2738 | static const wxString wxPyEmptyString(wxEmptyString); | |
2739 | ||
01f6b6d3 RD |
2740 | #define SWIG_From_long PyInt_FromLong |
2741 | ||
2742 | ||
2743 | SWIGINTERNINLINE PyObject * | |
2744 | SWIG_From_int (int value) | |
2745 | { | |
2746 | return SWIG_From_long (value); | |
2747 | } | |
2748 | ||
2749 | ||
0085ce49 RD |
2750 | #include <limits.h> |
2751 | #ifndef LLONG_MIN | |
2752 | # define LLONG_MIN LONG_LONG_MIN | |
2753 | #endif | |
2754 | #ifndef LLONG_MAX | |
2755 | # define LLONG_MAX LONG_LONG_MAX | |
2756 | #endif | |
2757 | #ifndef ULLONG_MAX | |
2758 | # define ULLONG_MAX ULONG_LONG_MAX | |
2759 | #endif | |
b88bce5f | 2760 | |
b88bce5f | 2761 | |
50efceee RD |
2762 | SWIGINTERN int |
2763 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2764 | { | |
2765 | if (PyNumber_Check(obj)) { | |
2766 | if (val) *val = PyInt_AsLong(obj); | |
2767 | return SWIG_OK; | |
2768 | } | |
2769 | return SWIG_TypeError; | |
2770 | } | |
2771 | ||
2772 | ||
093d3ff1 | 2773 | SWIGINTERN int |
0085ce49 | 2774 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
093d3ff1 RD |
2775 | { |
2776 | long v = 0; | |
2777 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
0085ce49 | 2778 | return SWIG_TypeError; |
093d3ff1 RD |
2779 | } |
2780 | else if (val) | |
2781 | *val = (unsigned long)v; | |
0085ce49 | 2782 | return SWIG_OK; |
093d3ff1 | 2783 | } |
d14a1e28 RD |
2784 | |
2785 | ||
093d3ff1 | 2786 | SWIGINTERN int |
0085ce49 RD |
2787 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2788 | { | |
093d3ff1 | 2789 | unsigned long v; |
0085ce49 RD |
2790 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
2791 | if (SWIG_IsOK(res)) { | |
2792 | if ((v > UCHAR_MAX)) { | |
2793 | return SWIG_OverflowError; | |
093d3ff1 | 2794 | } else { |
0085ce49 | 2795 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2796 | } |
0085ce49 RD |
2797 | } |
2798 | return res; | |
093d3ff1 | 2799 | } |
33b885b9 | 2800 | |
d14a1e28 | 2801 | |
0085ce49 RD |
2802 | SWIGINTERNINLINE PyObject* |
2803 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2804 | { |
0085ce49 RD |
2805 | return (value > LONG_MAX) ? |
2806 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2807 | } |
d14a1e28 | 2808 | |
d14a1e28 | 2809 | |
0085ce49 RD |
2810 | SWIGINTERNINLINE PyObject * |
2811 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2812 | { | |
2813 | return SWIG_From_unsigned_SS_long (value); | |
2814 | } | |
d14a1e28 | 2815 | |
e9d6f3a4 RD |
2816 | SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){ |
2817 | wxColour temp, *obj = &temp; | |
2818 | if ( other == Py_None ) return false; | |
2819 | if ( ! wxColour_helper(other, &obj) ) { | |
2820 | PyErr_Clear(); | |
2821 | return false; | |
2822 | } | |
2823 | return self->operator==(*obj); | |
2824 | } | |
2825 | SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){ | |
2826 | wxColour temp, *obj = &temp; | |
2827 | if ( other == Py_None ) return true; | |
2828 | if ( ! wxColour_helper(other, &obj)) { | |
2829 | PyErr_Clear(); | |
2830 | return true; | |
2831 | } | |
2832 | return self->operator!=(*obj); | |
2833 | } | |
fc46b7f3 RD |
2834 | |
2835 | SWIGINTERN int | |
2836 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2837 | { | |
2838 | if (obj == Py_True) { | |
2839 | if (val) *val = true; | |
2840 | return SWIG_OK; | |
2841 | } else if (obj == Py_False) { | |
2842 | if (val) *val = false; | |
2843 | return SWIG_OK; | |
2844 | } else { | |
2845 | long v = 0; | |
2846 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2847 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2848 | return res; | |
2849 | } | |
2850 | } | |
2851 | ||
2852 | SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){ | |
2853 | PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3); | |
093d3ff1 RD |
2854 | int red = -1; |
2855 | int green = -1; | |
2856 | int blue = -1; | |
fc46b7f3 | 2857 | int alpha = wxALPHA_OPAQUE; |
b39fe951 | 2858 | if (self->IsOk()) { |
093d3ff1 RD |
2859 | red = self->Red(); |
2860 | green = self->Green(); | |
2861 | blue = self->Blue(); | |
fc46b7f3 | 2862 | alpha = self->Alpha(); |
093d3ff1 RD |
2863 | } |
2864 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2865 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2866 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
fc46b7f3 RD |
2867 | if (includeAlpha) |
2868 | PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha)); | |
093d3ff1 RD |
2869 | return rv; |
2870 | } | |
0085ce49 | 2871 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2872 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2873 | } | |
d14a1e28 | 2874 | |
0085ce49 RD |
2875 | SWIGINTERN int |
2876 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2877 | { |
0085ce49 RD |
2878 | long v; |
2879 | int res = SWIG_AsVal_long (obj, &v); | |
2880 | if (SWIG_IsOK(res)) { | |
2881 | if ((v < INT_MIN || v > INT_MAX)) { | |
2882 | return SWIG_OverflowError; | |
2883 | } else { | |
2884 | if (val) *val = static_cast< int >(v); | |
2885 | } | |
2886 | } | |
2887 | return res; | |
d14a1e28 RD |
2888 | } |
2889 | ||
0085ce49 | 2890 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
093d3ff1 RD |
2891 | wxDash* dashes; |
2892 | int count = self->GetDashes(&dashes); | |
5a446332 | 2893 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2894 | PyObject* retval = PyList_New(0); |
2895 | for (int x=0; x<count; x++) { | |
2896 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2897 | PyList_Append(retval, pyint); | |
2898 | Py_DECREF(pyint); | |
2899 | } | |
2900 | wxPyEndBlockThreads(blocked); | |
2901 | return retval; | |
2902 | } | |
0085ce49 | 2903 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2904 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2905 | int size = PyList_Size(pyDashes); |
2906 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d14a1e28 | 2907 | |
093d3ff1 RD |
2908 | // black magic warning! The array of wxDashes needs to exist as |
2909 | // long as the pen does because wxPen does not copy the array. So | |
2910 | // stick a copy in a Python string object and attach it to _self, | |
2911 | // and then call SetDashes with a pointer to that array. Then | |
2912 | // when the Python pen object is destroyed the array will be | |
2913 | // cleaned up too. | |
2914 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2915 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2916 | ||
2917 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2918 | delete [] dashes; | |
2919 | Py_DECREF(strDashes); | |
2920 | wxPyEndBlockThreads(blocked); | |
2921 | } | |
0085ce49 RD |
2922 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2923 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 | 2924 | |
fc46b7f3 RD |
2925 | #include <wx/rawbmp.h> |
2926 | ||
2927 | ||
8f514ab4 RD |
2928 | // See http://tinyurl.com/e5adr for what premultiplying alpha means. It |
2929 | // appears to me that the other platforms are already doing it, so I'll just | |
2930 | // automatically do it for wxMSW here. | |
2931 | #ifdef __WXMSW__ | |
2932 | #define wxPy_premultiply(p, a) ((p) * (a) / 0xff) | |
2933 | #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p)) | |
2934 | #else | |
2935 | #define wxPy_premultiply(p, a) (p) | |
2936 | #define wxPy_unpremultiply(p, a) (p) | |
2937 | #endif | |
2938 | ||
2939 | ||
093d3ff1 | 2940 | #include <wx/image.h> |
b88bce5f | 2941 | |
093d3ff1 RD |
2942 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2943 | char** cArray = NULL; | |
2944 | int count; | |
2945 | ||
2946 | if (!PyList_Check(listOfStrings)) { | |
2947 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2948 | return NULL; | |
2949 | } | |
2950 | count = PyList_Size(listOfStrings); | |
2951 | cArray = new char*[count]; | |
2952 | ||
2953 | for(int x=0; x<count; x++) { | |
2954 | // TODO: Need some validation and error checking here | |
2955 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2956 | } | |
2957 | return cArray; | |
b88bce5f | 2958 | } |
b88bce5f RD |
2959 | |
2960 | ||
0085ce49 | 2961 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
fc46b7f3 RD |
2962 | char** cArray = NULL; |
2963 | wxBitmap* bmp; | |
2964 | ||
2965 | cArray = ConvertListOfStrings(listOfStrings); | |
2966 | if (! cArray) | |
2967 | return NULL; | |
2968 | bmp = new wxBitmap(cArray); | |
2969 | delete [] cArray; | |
2970 | return bmp; | |
2971 | } | |
0085ce49 | 2972 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
fc46b7f3 RD |
2973 | char* buf; |
2974 | Py_ssize_t length; | |
2975 | PyString_AsStringAndSize(bits, &buf, &length); | |
2976 | return new wxBitmap(buf, width, height, depth); | |
2977 | } | |
0085ce49 | 2978 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ |
093d3ff1 RD |
2979 | wxSize size(self->GetWidth(), self->GetHeight()); |
2980 | return size; | |
2981 | } | |
0085ce49 | 2982 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2983 | wxMask *mask = new wxMask(*self, colour); |
2984 | self->SetMask(mask); | |
2985 | } | |
0085ce49 | 2986 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2987 | self->SetWidth(size.x); |
2988 | self->SetHeight(size.y); | |
2989 | } | |
8f514ab4 RD |
2990 | SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){ |
2991 | int height=self->GetHeight(); | |
2992 | int width=self->GetWidth(); | |
fc46b7f3 | 2993 | |
8f514ab4 RD |
2994 | if (DATASIZE != width * height * 3) { |
2995 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2996 | } | |
2997 | wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
2998 | if (! pixData) { | |
2999 | // raise an exception... | |
3000 | wxPyErr_SetString(PyExc_RuntimeError, | |
3001 | "Failed to gain raw access to bitmap data."); | |
3002 | return; | |
3003 | } | |
fc46b7f3 | 3004 | |
8f514ab4 RD |
3005 | wxNativePixelData::Iterator p(pixData); |
3006 | for (int y=0; y<height; y++) { | |
3007 | wxNativePixelData::Iterator rowStart = p; | |
3008 | for (int x=0; x<width; x++) { | |
3009 | p.Red() = *(data++); | |
3010 | p.Green() = *(data++); | |
3011 | p.Blue() = *(data++); | |
3012 | ++p; | |
3013 | } | |
3014 | p = rowStart; | |
3015 | p.OffsetY(pixData, 1); | |
3016 | } | |
3017 | } | |
3018 | SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){ | |
3019 | int height=self->GetHeight(); | |
3020 | int width=self->GetWidth(); | |
3021 | ||
3022 | if (DATASIZE != width * height * 4) { | |
3023 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3024 | } | |
3025 | wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3026 | if (! pixData) { | |
3027 | // raise an exception... | |
3028 | wxPyErr_SetString(PyExc_RuntimeError, | |
3029 | "Failed to gain raw access to bitmap data."); | |
3030 | return; | |
3031 | } | |
3032 | ||
3033 | pixData.UseAlpha(); | |
3034 | wxAlphaPixelData::Iterator p(pixData); | |
3035 | for (int y=0; y<height; y++) { | |
3036 | wxAlphaPixelData::Iterator rowStart = p; | |
3037 | for (int x=0; x<width; x++) { | |
3038 | byte a = data[3]; | |
3039 | p.Red() = wxPy_premultiply(*(data++), a); | |
3040 | p.Green() = wxPy_premultiply(*(data++), a); | |
3041 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3042 | p.Alpha() = a; data++; | |
3043 | ++p; | |
3044 | } | |
3045 | p = rowStart; | |
3046 | p.OffsetY(pixData, 1); | |
3047 | } | |
3048 | } | |
3049 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; } | |
3050 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; } | |
fc46b7f3 RD |
3051 | |
3052 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
3053 | buffer data, int DATASIZE, | |
3054 | buffer alpha, int ALPHASIZE) | |
3055 | { | |
3056 | if (DATASIZE != width*height*3) { | |
3057 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3058 | return NULL; | |
3059 | } | |
3060 | ||
3061 | if (ALPHASIZE != width*height) { | |
3062 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
3063 | return NULL; | |
3064 | } | |
3065 | ||
3066 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3067 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3068 | if (! pixData) { | |
3069 | // raise an exception... | |
3070 | wxPyErr_SetString(PyExc_RuntimeError, | |
3071 | "Failed to gain raw access to bitmap data."); | |
3072 | return NULL; | |
3073 | } | |
3074 | ||
3075 | pixData.UseAlpha(); | |
3076 | wxAlphaPixelData::Iterator p(pixData); | |
3077 | for (int y=0; y<height; y++) { | |
3078 | wxAlphaPixelData::Iterator rowStart = p; | |
3079 | for (int x=0; x<width; x++) { | |
3080 | byte a = *(alpha++); | |
3081 | p.Red() = wxPy_premultiply(*(data++), a); | |
3082 | p.Green() = wxPy_premultiply(*(data++), a); | |
3083 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3084 | p.Alpha() = a; | |
3085 | ++p; | |
3086 | } | |
3087 | p = rowStart; | |
3088 | p.OffsetY(pixData, 1); | |
3089 | } | |
3090 | return bmp; | |
3091 | } | |
3092 | ||
3093 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3094 | { | |
3095 | if (DATASIZE != width*height*3) { | |
3096 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3097 | return NULL; | |
3098 | } | |
3099 | ||
3100 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3101 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3102 | if (! pixData) { | |
3103 | // raise an exception... | |
3104 | wxPyErr_SetString(PyExc_RuntimeError, | |
3105 | "Failed to gain raw access to bitmap data."); | |
3106 | return NULL; | |
3107 | } | |
3108 | ||
3109 | wxNativePixelData::Iterator p(pixData); | |
3110 | for (int y=0; y<height; y++) { | |
3111 | wxNativePixelData::Iterator rowStart = p; | |
3112 | for (int x=0; x<width; x++) { | |
3113 | p.Red() = *(data++); | |
3114 | p.Green() = *(data++); | |
3115 | p.Blue() = *(data++); | |
3116 | ++p; | |
3117 | } | |
3118 | p = rowStart; | |
3119 | p.OffsetY(pixData, 1); | |
3120 | } | |
3121 | return bmp; | |
3122 | } | |
3123 | ||
3124 | ||
3125 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3126 | { | |
3127 | if (DATASIZE != width*height*4) { | |
3128 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3129 | return NULL; | |
3130 | } | |
3131 | ||
3132 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3133 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3134 | if (! pixData) { | |
3135 | // raise an exception... | |
3136 | wxPyErr_SetString(PyExc_RuntimeError, | |
3137 | "Failed to gain raw access to bitmap data."); | |
3138 | return NULL; | |
3139 | } | |
3140 | ||
3141 | pixData.UseAlpha(); | |
3142 | wxAlphaPixelData::Iterator p(pixData); | |
3143 | for (int y=0; y<height; y++) { | |
3144 | wxAlphaPixelData::Iterator rowStart = p; | |
3145 | for (int x=0; x<width; x++) { | |
3146 | byte a = data[3]; | |
3147 | p.Red() = wxPy_premultiply(*(data++), a); | |
3148 | p.Green() = wxPy_premultiply(*(data++), a); | |
3149 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3150 | p.Alpha() = a; data++; | |
3151 | ++p; | |
3152 | } | |
3153 | p = rowStart; | |
3154 | p.OffsetY(pixData, 1); | |
3155 | } | |
3156 | return bmp; | |
3157 | } | |
3158 | ||
3159 | ||
3160 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3161 | ||
3162 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3163 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3164 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3165 | self->Red() = red; | |
3166 | self->Green() = green; | |
3167 | self->Blue() = blue; | |
3168 | } | |
3169 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3170 | PyObject* rv = PyTuple_New(3); | |
3171 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3172 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3173 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3174 | return rv; | |
3175 | } | |
3176 | ||
3177 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3178 | ||
3179 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3180 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3181 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3182 | self->Red() = wxPy_premultiply(red, alpha); | |
3183 | self->Green() = wxPy_premultiply(green, alpha); | |
3184 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3185 | self->Alpha() = alpha; | |
3186 | } | |
3187 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3188 | PyObject* rv = PyTuple_New(4); | |
3189 | int red = self->Red(); | |
3190 | int green = self->Green(); | |
3191 | int blue = self->Blue(); | |
3192 | int alpha = self->Alpha(); | |
3193 | ||
3194 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3195 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3196 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3197 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3198 | return rv; | |
3199 | } | |
0085ce49 | 3200 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
b39fe951 | 3201 | if ( !colour.IsOk() ) |
093d3ff1 RD |
3202 | return new wxMask(bitmap, *wxBLACK); |
3203 | else | |
3204 | return new wxMask(bitmap, colour); | |
3205 | } | |
d14a1e28 | 3206 | |
093d3ff1 | 3207 | #include <wx/iconbndl.h> |
d14a1e28 | 3208 | |
0085ce49 | 3209 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3210 | wxIcon* icon = new wxIcon(); |
3211 | icon->CopyFromBitmap(bmp); | |
3212 | return icon; | |
3213 | } | |
0085ce49 | 3214 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3215 | char** cArray = NULL; |
3216 | wxIcon* icon; | |
d14a1e28 | 3217 | |
093d3ff1 RD |
3218 | cArray = ConvertListOfStrings(listOfStrings); |
3219 | if (! cArray) | |
3220 | return NULL; | |
3221 | icon = new wxIcon(cArray); | |
3222 | delete [] cArray; | |
3223 | return icon; | |
3224 | } | |
0085ce49 | 3225 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ |
d14a1e28 RD |
3226 | |
3227 | ||
d14a1e28 | 3228 | |
093d3ff1 | 3229 | return new wxIconLocation(*filename); |
d14a1e28 | 3230 | |
093d3ff1 | 3231 | } |
0085ce49 | 3232 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d14a1e28 RD |
3233 | |
3234 | ||
d14a1e28 | 3235 | |
093d3ff1 | 3236 | // do nothing |
d14a1e28 | 3237 | |
093d3ff1 | 3238 | } |
0085ce49 | 3239 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
b88bce5f RD |
3240 | |
3241 | ||
093d3ff1 RD |
3242 | |
3243 | return -1; | |
3244 | ||
3245 | } | |
0085ce49 | 3246 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3247 | #ifdef __WXGTK__ |
7557b9b5 RD |
3248 | wxImage img(cursorName, type); |
3249 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3250 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3251 | return new wxCursor(img); | |
093d3ff1 | 3252 | #else |
7557b9b5 | 3253 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3254 | #endif |
3255 | } | |
3256 | ||
3257 | ||
0085ce49 | 3258 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3259 | (*self) ++; |
3260 | } | |
0085ce49 | 3261 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3262 | return self->operator bool(); |
3263 | } | |
3264 | ||
3265 | #include <wx/fontutil.h> | |
3266 | #include <wx/fontmap.h> | |
3267 | #include <wx/fontenum.h> | |
3268 | ||
0085ce49 | 3269 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3270 | return self->ToString(); |
3271 | } | |
3272 | ||
3273 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
3274 | static wxNativeEncodingInfo info; | |
3275 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
3276 | return &info; | |
3277 | else | |
3278 | return NULL; | |
3279 | } | |
3280 | ||
0085ce49 RD |
3281 | |
3282 | SWIGINTERNINLINE PyObject * | |
3283 | SWIG_From_size_t (size_t value) | |
3284 | { | |
3285 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3286 | } | |
3287 | ||
3288 | ||
3289 | SWIGINTERNINLINE int | |
3290 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3291 | { | |
3292 | unsigned long v; | |
3293 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3294 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3295 | return res; | |
3296 | } | |
3297 | ||
3298 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3299 | wxFontEncoding alt_enc; |
3300 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3301 | return PyInt_FromLong(alt_enc); | |
3302 | else { | |
3303 | Py_INCREF(Py_None); | |
3304 | return Py_None; | |
3305 | } | |
3306 | } | |
0085ce49 | 3307 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3308 | wxNativeFontInfo nfi; |
3309 | nfi.FromString(info); | |
3310 | return new wxFont(nfi); | |
3311 | } | |
0085ce49 | 3312 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3313 | return wxFont::New(pointSize, family, flags, face, encoding); |
3314 | } | |
0085ce49 | 3315 | 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 |
3316 | return wxFontBase::New(pixelSize, family, |
3317 | style, weight, underlined, | |
3318 | face, encoding); | |
3319 | } | |
0085ce49 | 3320 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3321 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3322 | } | |
0085ce49 RD |
3323 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3324 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3325 | |
3326 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3327 | public: | |
3328 | wxPyFontEnumerator() {} | |
3329 | ~wxPyFontEnumerator() {} | |
3330 | ||
3331 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3332 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3333 | ||
3334 | PYPRIVATE; | |
3335 | }; | |
3336 | ||
3337 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3338 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3339 | ||
3340 | ||
704eda0c | 3341 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3342 | PyObject* ret; |
704eda0c | 3343 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3344 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3345 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3346 | wxPyEndBlockThreads(blocked); |
3347 | return ret; | |
093d3ff1 | 3348 | } |
704eda0c | 3349 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3350 | PyObject* ret; |
704eda0c | 3351 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3352 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3353 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3354 | wxPyEndBlockThreads(blocked); |
3355 | return ret; | |
093d3ff1 RD |
3356 | } |
3357 | ||
3358 | #include <locale.h> | |
3359 | ||
0085ce49 | 3360 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3361 | wxLocale* loc; |
3362 | if (language == -1) | |
3363 | loc = new wxLocale(); | |
3364 | else | |
3365 | loc = new wxLocale(language, flags); | |
3366 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3367 | // for the floating point conversions and such to work right. | |
3368 | #if PY_VERSION_HEX < 0x02040000 | |
3369 | setlocale(LC_NUMERIC, "C"); | |
3370 | #endif | |
3371 | return loc; | |
3372 | } | |
0085ce49 | 3373 | 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 |
3374 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3375 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3376 | // for the floating point conversions and such to work right. | |
3377 | #if PY_VERSION_HEX < 0x02040000 | |
3378 | setlocale(LC_NUMERIC, "C"); | |
3379 | #endif | |
3380 | return rc; | |
3381 | } | |
0085ce49 | 3382 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3383 | bool rc = self->Init(language, flags); |
3384 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3385 | // for the floating point conversions and such to work right. | |
3386 | #if PY_VERSION_HEX < 0x02040000 | |
3387 | setlocale(LC_NUMERIC, "C"); | |
3388 | #endif | |
3389 | return rc; | |
3390 | } | |
3391 | ||
fc46b7f3 RD |
3392 | class wxPyLocale : public wxLocale |
3393 | { | |
3394 | public: | |
3395 | wxPyLocale(); | |
3396 | ||
3397 | wxPyLocale(const wxChar *szName, // name (for messages) | |
3398 | const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files) | |
3399 | const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale) | |
3400 | bool bLoadDefault = true, // preload wxstd.mo? | |
3401 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
3402 | ||
3403 | wxPyLocale(int language, // wxLanguage id or custom language | |
3404 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); | |
3405 | ||
3406 | ~wxPyLocale(); | |
3407 | ||
3408 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3409 | const wxChar *szDomain = NULL) const; | |
3410 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3411 | const wxChar *szOrigString2, size_t n, | |
3412 | const wxChar *szDomain = NULL) const; | |
3413 | ||
3414 | virtual wxChar *GetSingularString(const wxChar *szOrigString, | |
3415 | const wxChar *szDomain = NULL) const; | |
3416 | virtual wxChar *GetPluralString(const wxChar *szOrigString, | |
3417 | const wxChar *szOrigString2, size_t n, | |
3418 | const wxChar *szDomain = NULL) const; | |
3419 | ||
3420 | PYPRIVATE; | |
3421 | private: | |
3422 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3423 | }; | |
3424 | ||
3425 | wxPyLocale::wxPyLocale() : wxLocale() | |
3426 | { | |
3427 | } | |
3428 | ||
3429 | wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages) | |
3430 | const wxChar *szShort, // dir prefix (for msg files) | |
3431 | const wxChar *szLocale, // locale (for setlocale) | |
3432 | bool bLoadDefault, // preload wxstd.mo? | |
3433 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3434 | : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding) | |
3435 | { | |
3436 | } | |
3437 | ||
3438 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3439 | int flags) : wxLocale(language, flags) | |
3440 | { | |
3441 | } | |
3442 | ||
3443 | wxPyLocale::~wxPyLocale() | |
3444 | { | |
3445 | } | |
3446 | ||
3447 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3448 | const wxChar *szDomain) const | |
3449 | { | |
3450 | wxChar *str = GetSingularString(szOrigString, szDomain); | |
3451 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain); | |
3452 | } | |
3453 | ||
3454 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3455 | const wxChar *szOrigString2, size_t n, | |
3456 | const wxChar *szDomain) const | |
3457 | { | |
3458 | wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain); | |
3459 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain); | |
3460 | } | |
3461 | ||
3462 | wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString, | |
3463 | const wxChar *szDomain) const | |
3464 | { | |
3465 | bool found; | |
3466 | static wxString str; | |
3467 | 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. | |
3468 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3469 | if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { | |
3470 | PyObject* param1 = wx2PyString(szOrigString); | |
3471 | PyObject* param2 = wx2PyString(szDomain); | |
3472 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2)); | |
3473 | Py_DECREF(param1); | |
3474 | Py_DECREF(param2); | |
3475 | if (ret) { | |
3476 | str = Py2wxString(ret); | |
3477 | Py_DECREF(ret); | |
3478 | } | |
3479 | } | |
3480 | wxPyEndBlockThreads(blocked); | |
3481 | return (found ? (wxChar*)str.c_str() : NULL); | |
3482 | } | |
3483 | ||
3484 | wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString, | |
3485 | const wxChar *szOrigString2, size_t n, | |
3486 | const wxChar *szDomain) const | |
3487 | { | |
3488 | bool found; | |
3489 | static wxString str; | |
3490 | 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. | |
3491 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3492 | if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { | |
3493 | PyObject* param1 = wx2PyString(szOrigString); | |
3494 | PyObject* param2 = wx2PyString(szOrigString2); | |
3495 | PyObject* param4 = wx2PyString(szDomain); | |
3496 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4)); | |
3497 | Py_DECREF(param1); | |
3498 | Py_DECREF(param2); | |
3499 | Py_DECREF(param4); | |
3500 | if( ret) { | |
3501 | str = Py2wxString(ret); | |
3502 | Py_DECREF(ret); | |
3503 | } | |
3504 | } | |
3505 | wxPyEndBlockThreads(blocked); | |
3506 | return (found ? (wxChar*)str.c_str() : NULL); | |
3507 | } | |
3508 | ||
3509 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3510 | wxPyLocale* loc; | |
3511 | if (language == -1) | |
3512 | loc = new wxPyLocale(); | |
3513 | else | |
3514 | loc = new wxPyLocale(language, flags); | |
3515 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3516 | // for the floating point conversions and such to work right. | |
3517 | #if PY_VERSION_HEX < 0x02040000 | |
3518 | setlocale(LC_NUMERIC, "C"); | |
3519 | #endif | |
3520 | return loc; | |
3521 | } | |
3522 | ||
093d3ff1 RD |
3523 | #include "wx/wxPython/pydrawxxx.h" |
3524 | ||
0085ce49 | 3525 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3526 | wxColour col; |
3527 | self->GetPixel(x, y, &col); | |
3528 | return col; | |
3529 | } | |
0085ce49 | 3530 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3531 | wxColour col; |
3532 | self->GetPixel(pt, &col); | |
3533 | return col; | |
3534 | } | |
3535 | ||
3536 | SWIGINTERN int | |
0085ce49 | 3537 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3538 | { |
3539 | if (PyNumber_Check(obj)) { | |
3540 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 3541 | return SWIG_OK; |
093d3ff1 | 3542 | } |
0085ce49 | 3543 | return SWIG_TypeError; |
093d3ff1 RD |
3544 | } |
3545 | ||
0085ce49 | 3546 | 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 |
3547 | wxRect rv; |
3548 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3549 | return rv; | |
3550 | } | |
0085ce49 | 3551 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3552 | wxRect rect; |
3553 | self->GetClippingBox(rect); | |
3554 | return rect; | |
3555 | } | |
0085ce49 | 3556 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3557 | wxArrayInt widths; |
3558 | self->GetPartialTextExtents(text, widths); | |
3559 | return widths; | |
3560 | } | |
3561 | ||
0085ce49 | 3562 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3563 | |
0085ce49 | 3564 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3565 | self->SetLogicalOrigin(point.x, point.y); |
3566 | } | |
0085ce49 | 3567 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3568 | self->SetDeviceOrigin(point.x, point.y); |
3569 | } | |
0085ce49 | 3570 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3571 | self->CalcBoundingBox(point.x, point.y); |
3572 | } | |
0085ce49 | 3573 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3574 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3575 | } | |
0085ce49 | 3576 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3577 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3578 | } | |
0085ce49 | 3579 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3580 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3581 | } | |
0085ce49 | 3582 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3583 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3584 | } | |
0085ce49 | 3585 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3586 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3587 | } | |
0085ce49 | 3588 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3589 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3590 | } | |
3591 | ||
3592 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3593 | *x1 = dc->MinX(); | |
3594 | *y1 = dc->MinY(); | |
3595 | *x2 = dc->MaxX(); | |
3596 | *y2 = dc->MaxY(); | |
3597 | } | |
3598 | ||
3599 | ||
3600 | #include <wx/dcbuffer.h> | |
3601 | ||
3602 | ||
3603 | #include <wx/dcps.h> | |
3604 | ||
3605 | ||
3606 | class wxMetaFile : public wxObject { | |
3607 | public: | |
3608 | wxMetaFile(const wxString&) | |
3609 | { wxPyRaiseNotImplemented(); } | |
3610 | }; | |
3611 | ||
3612 | class wxMetaFileDC : public wxClientDC { | |
3613 | public: | |
3614 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
3615 | { wxPyRaiseNotImplemented(); } | |
3616 | }; | |
3617 | ||
3618 | ||
3619 | ||
3620 | class wxPrinterDC : public wxClientDC { | |
3621 | public: | |
3622 | wxPrinterDC(const wxPrintData&) | |
3623 | { wxPyRaiseNotImplemented(); } | |
3624 | ||
3625 | }; | |
3626 | ||
3627 | ||
72ef6efb RD |
3628 | #include <wx/graphics.h> |
3629 | ||
3630 | ||
3631 | #if !wxUSE_GRAPHICS_CONTEXT | |
70d7cb34 RD |
3632 | // C++ stub classes for platforms or build configurations that don't have |
3633 | // wxGraphicsContext yet. | |
72ef6efb | 3634 | |
8bd35413 RD |
3635 | class wxGraphicsRenderer; |
3636 | class wxGraphicsMatrix; | |
3637 | ||
70d7cb34 RD |
3638 | |
3639 | class wxGraphicsObject : public wxObject | |
72ef6efb RD |
3640 | { |
3641 | public : | |
8bd35413 | 3642 | wxGraphicsObject() {} |
70d7cb34 | 3643 | wxGraphicsObject( wxGraphicsRenderer* ) { |
72ef6efb | 3644 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3645 | "wx.GraphicsObject is not available on this platform."); |
3646 | } | |
3647 | wxGraphicsObject( const wxGraphicsObject& ) {} | |
3648 | virtual ~wxGraphicsObject() {} | |
3649 | bool IsNull() const { return false; } | |
3650 | wxGraphicsRenderer* GetRenderer() const { return NULL; } | |
3651 | } ; | |
3652 | ||
3653 | ||
3654 | ||
3655 | class wxGraphicsPen : public wxGraphicsObject | |
3656 | { | |
8bd35413 | 3657 | public: |
70d7cb34 RD |
3658 | wxGraphicsPen() {} |
3659 | virtual ~wxGraphicsPen() {} | |
3660 | } ; | |
3661 | wxGraphicsPen wxNullGraphicsPen; | |
3662 | ||
3663 | ||
3664 | ||
3665 | class wxGraphicsBrush : public wxGraphicsObject | |
3666 | { | |
3667 | public : | |
3668 | wxGraphicsBrush() {} | |
3669 | virtual ~wxGraphicsBrush() {} | |
3670 | } ; | |
3671 | wxGraphicsBrush wxNullGraphicsBrush; | |
3672 | ||
3673 | ||
3674 | ||
3675 | class wxGraphicsFont : public wxGraphicsObject | |
3676 | { | |
3677 | public : | |
3678 | wxGraphicsFont() {} | |
3679 | virtual ~wxGraphicsFont() {} | |
3680 | } ; | |
3681 | wxGraphicsFont wxNullGraphicsFont; | |
3682 | ||
3683 | ||
3684 | ||
3685 | class wxGraphicsPath : public wxGraphicsObject | |
3686 | { | |
3687 | public : | |
8bd35413 | 3688 | wxGraphicsPath() { } |
70d7cb34 RD |
3689 | wxGraphicsPath(wxGraphicsRenderer* ) { |
3690 | PyErr_SetString(PyExc_NotImplementedError, | |
3691 | "wx.GraphicsPath is not available on this platform."); | |
72ef6efb RD |
3692 | } |
3693 | virtual ~wxGraphicsPath() {} | |
70d7cb34 | 3694 | |
72ef6efb | 3695 | void MoveToPoint( wxDouble, wxDouble ) {} |
70d7cb34 RD |
3696 | void MoveToPoint( const wxPoint2DDouble& ) {} |
3697 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3698 | void AddLineToPoint( const wxPoint2DDouble& ) {} | |
72ef6efb | 3699 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} |
70d7cb34 | 3700 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} |
8bd35413 | 3701 | void AddPath( const wxGraphicsPath& ) {} |
72ef6efb | 3702 | void CloseSubpath() {} |
8bd35413 RD |
3703 | void GetCurrentPoint( wxDouble&, wxDouble&) const {} |
3704 | wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); } | |
72ef6efb | 3705 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} |
70d7cb34 | 3706 | void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {} |
72ef6efb RD |
3707 | |
3708 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3709 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3710 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3711 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3712 | ||
70d7cb34 RD |
3713 | void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3714 | void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3715 | void * GetNativePath() const { return NULL; } | |
8bd35413 RD |
3716 | void UnGetNativePath(void *) const {} |
3717 | void Transform( const wxGraphicsMatrix& ) {} | |
3718 | void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {} | |
3719 | wxRect2D GetBox() const { return wxRect2D(0,0,0,0); } | |
70d7cb34 | 3720 | |
8bd35413 RD |
3721 | bool Contains( wxDouble , wxDouble , int ) const { return false; } |
3722 | bool Contains( const wxPoint2DDouble& , int ) const { return false; } | |
70d7cb34 | 3723 | }; |
5c8c7dd3 | 3724 | wxGraphicsPath wxNullGraphicsPath; |
70d7cb34 RD |
3725 | |
3726 | ||
3727 | class wxGraphicsMatrix : public wxGraphicsObject | |
3728 | { | |
3729 | public : | |
8bd35413 | 3730 | wxGraphicsMatrix() { } |
70d7cb34 RD |
3731 | wxGraphicsMatrix(wxGraphicsRenderer* ) { |
3732 | PyErr_SetString(PyExc_NotImplementedError, | |
3733 | "wx.GraphicsMatrix is not available on this platform."); | |
3734 | } | |
3735 | virtual ~wxGraphicsMatrix() {} | |
8bd35413 RD |
3736 | virtual void Concat( const wxGraphicsMatrix & ) {} |
3737 | virtual void Copy( const wxGraphicsMatrix & ) {} | |
70d7cb34 RD |
3738 | virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble , |
3739 | wxDouble , wxDouble ) {} | |
248802d0 RD |
3740 | virtual void Get(wxDouble*, wxDouble*, wxDouble*, |
3741 | wxDouble*, wxDouble*, wxDouble*) {} | |
70d7cb34 | 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 ) {} | |
3857 | virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
4e8107d5 | 3858 | virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} |
70d7cb34 RD |
3859 | virtual bool ShouldOffset() const { return false; } |
3860 | }; | |
3861 | ||
3862 | ||
3863 | class wxGraphicsRenderer : public wxObject | |
3864 | { | |
3865 | public : | |
3866 | wxGraphicsRenderer() { | |
3867 | PyErr_SetString(PyExc_NotImplementedError, | |
3868 | "wx.GraphicsRenderer is not available on this platform."); | |
3869 | } | |
3870 | ||
3871 | virtual ~wxGraphicsRenderer() {} | |
3872 | ||
8bd35413 | 3873 | static wxGraphicsRenderer* GetDefaultRenderer() { |
70d7cb34 RD |
3874 | PyErr_SetString(PyExc_NotImplementedError, |
3875 | "wx.GraphicsRenderer is not available on this platform."); | |
8bd35413 RD |
3876 | return NULL; |
3877 | } | |
70d7cb34 RD |
3878 | |
3879 | virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; } | |
3880 | virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; } | |
3881 | virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; } | |
3882 | virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; } | |
8bd35413 | 3883 | virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; } |
70d7cb34 | 3884 | |
8bd35413 | 3885 | virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3886 | |
8bd35413 RD |
3887 | virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble , |
3888 | wxDouble , wxDouble ) { return wxNullGraphicsMatrix; } | |
70d7cb34 | 3889 | |
8bd35413 RD |
3890 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
3891 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } | |
3892 | virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , | |
3893 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } | |
70d7cb34 | 3894 | virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , |
8bd35413 RD |
3895 | const wxColour &, const wxColour &) { return wxNullGraphicsBrush; } |
3896 | virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; } | |
72ef6efb RD |
3897 | }; |
3898 | ||
3899 | ||
70d7cb34 | 3900 | |
72ef6efb RD |
3901 | class wxGCDC: public wxWindowDC |
3902 | { | |
3903 | public: | |
3904 | wxGCDC(const wxWindowDC&) { | |
3905 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3906 | PyErr_SetString(PyExc_NotImplementedError, | |
3907 | "wxGCDC is not available on this platform."); | |
3908 | wxPyEndBlockThreads(blocked); | |
3909 | } | |
70d7cb34 | 3910 | |
48a0c021 RD |
3911 | wxGCDC(const wxWindow*) { |
3912 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3913 | PyErr_SetString(PyExc_NotImplementedError, | |
3914 | "wxGCDC is not available on this platform."); | |
3915 | wxPyEndBlockThreads(blocked); | |
3916 | } | |
3917 | ||
72ef6efb RD |
3918 | wxGCDC() { |
3919 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3920 | PyErr_SetString(PyExc_NotImplementedError, | |
3921 | "wxGCDC is not available on this platform."); | |
3922 | wxPyEndBlockThreads(blocked); | |
3923 | } | |
70d7cb34 | 3924 | |
72ef6efb RD |
3925 | virtual ~wxGCDC() {} |
3926 | ||
b876c1e4 RD |
3927 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3928 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3929 | }; |
3930 | ||
3931 | #endif | |
3932 | ||
f89238b9 RD |
3933 | SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ |
3934 | if ( !backgroundBrush.IsNull() ) | |
3935 | self->DrawText(str, x, y, backgroundBrush); | |
3936 | else | |
3937 | self->DrawText(str, x, y); | |
3938 | } | |
3939 | SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ | |
3940 | if ( !backgroundBrush.IsNull() ) | |
3941 | self->DrawText(str, x, y, angle, backgroundBrush); | |
3942 | else | |
3943 | self->DrawText(str, x, y, angle); | |
3944 | } | |
be68621e RD |
3945 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3946 | wxDouble width = 0.0, | |
3947 | height = 0.0; | |
3948 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3949 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3950 | PyObject* rv = PyTuple_New(2); | |
3951 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3952 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3953 | return rv; | |
3954 | } | |
b39fe951 RD |
3955 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3956 | wxArrayDouble widths; | |
3957 | self->GetPartialTextExtents(text, widths); | |
3958 | return widths; | |
3959 | } | |
f8eb59b9 | 3960 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3961 | size_t c1, c2, count; |
3962 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3963 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3964 | ||
3965 | if ( beginP != NULL && endP != NULL ) | |
3966 | { | |
3967 | count = wxMin(c1, c2); | |
3968 | self->StrokeLines(count, beginP, endP); | |
3969 | } | |
3970 | delete [] beginP; | |
3971 | delete [] endP; | |
3972 | } | |
72ef6efb | 3973 | |
0a27f394 RD |
3974 | #include "wx/dcgraph.h" |
3975 | ||
3976 | ||
66493fc7 RD |
3977 | #include <wx/overlay.h> |
3978 | ||
3979 | ||
093d3ff1 | 3980 | |
0085ce49 | 3981 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3982 | self->AddColour(name, wxColour(red, green, blue)); |
3983 | } | |
3984 | ||
50efceee RD |
3985 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3986 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3987 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3988 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3989 | ||
3990 | ||
093d3ff1 RD |
3991 | #include <wx/effects.h> |
3992 | ||
8d38bd1d RD |
3993 | |
3994 | #include "wx/renderer.h" | |
3995 | ||
3996 | ||
32fe5131 | 3997 | SWIGINTERNINLINE PyObject* |
0085ce49 | 3998 | SWIG_From_bool (bool value) |
8d38bd1d | 3999 | { |
0085ce49 | 4000 | return PyBool_FromLong(value ? 1 : 0); |
8d38bd1d RD |
4001 | } |
4002 | ||
27e45892 RD |
4003 | |
4004 | #include "wx/wxPython/pseudodc.h" | |
4005 | ||
4006 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
4007 | wxRect rect; | |
4008 | self->GetIdBounds(id, rect); | |
4009 | return rect; | |
4010 | } | |
093d3ff1 RD |
4011 | #ifdef __cplusplus |
4012 | extern "C" { | |
4013 | #endif | |
0085ce49 RD |
4014 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4015 | PyObject *resultobj = 0; | |
4016 | wxGDIObject *result = 0 ; | |
4017 | ||
4018 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
4019 | { | |
4020 | if (!wxPyCheckForApp()) SWIG_fail; | |
4021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4022 | result = (wxGDIObject *)new wxGDIObject(); | |
4023 | wxPyEndAllowThreads(__tstate); | |
4024 | if (PyErr_Occurred()) SWIG_fail; | |
4025 | } | |
4026 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
4027 | return resultobj; | |
4028 | fail: | |
4029 | return NULL; | |
093d3ff1 RD |
4030 | } |
4031 | ||
4032 | ||
0085ce49 RD |
4033 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4034 | PyObject *resultobj = 0; | |
4035 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4036 | void *argp1 = 0 ; | |
4037 | int res1 = 0 ; | |
4038 | PyObject *swig_obj[1] ; | |
4039 | ||
4040 | if (!args) SWIG_fail; | |
4041 | swig_obj[0] = args; | |
4042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
4043 | if (!SWIG_IsOK(res1)) { | |
4044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4045 | } | |
4046 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4047 | { | |
4048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4049 | delete arg1; | |
093d3ff1 | 4050 | |
0085ce49 RD |
4051 | wxPyEndAllowThreads(__tstate); |
4052 | if (PyErr_Occurred()) SWIG_fail; | |
4053 | } | |
4054 | resultobj = SWIG_Py_Void(); | |
4055 | return resultobj; | |
4056 | fail: | |
4057 | return NULL; | |
d14a1e28 RD |
4058 | } |
4059 | ||
4060 | ||
0085ce49 RD |
4061 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4062 | PyObject *resultobj = 0; | |
4063 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4064 | bool result; | |
4065 | void *argp1 = 0 ; | |
4066 | int res1 = 0 ; | |
4067 | PyObject *swig_obj[1] ; | |
4068 | ||
4069 | if (!args) SWIG_fail; | |
4070 | swig_obj[0] = args; | |
4071 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
4072 | if (!SWIG_IsOK(res1)) { | |
4073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4074 | } | |
4075 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4076 | { | |
4077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4078 | result = (bool)(arg1)->IsNull(); | |
4079 | wxPyEndAllowThreads(__tstate); | |
4080 | if (PyErr_Occurred()) SWIG_fail; | |
4081 | } | |
4082 | { | |
4083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4084 | } | |
4085 | return resultobj; | |
4086 | fail: | |
4087 | return NULL; | |
4088 | } | |
4089 | ||
4090 | ||
4091 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4092 | PyObject *obj; | |
4093 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4094 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
4095 | return SWIG_Py_Void(); | |
4096 | } | |
4097 | ||
4098 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4099 | return SWIG_Python_InitShadowInstance(args); | |
4100 | } | |
4101 | ||
4102 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4103 | PyObject *resultobj = 0; | |
4104 | byte arg1 = (byte) 0 ; | |
4105 | byte arg2 = (byte) 0 ; | |
4106 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 4107 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4108 | wxColour *result = 0 ; |
4109 | unsigned char val1 ; | |
4110 | int ecode1 = 0 ; | |
4111 | unsigned char val2 ; | |
4112 | int ecode2 = 0 ; | |
4113 | unsigned char val3 ; | |
4114 | int ecode3 = 0 ; | |
fc46b7f3 RD |
4115 | unsigned char val4 ; |
4116 | int ecode4 = 0 ; | |
0085ce49 RD |
4117 | PyObject * obj0 = 0 ; |
4118 | PyObject * obj1 = 0 ; | |
4119 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 4120 | PyObject * obj3 = 0 ; |
0085ce49 | 4121 | char * kwnames[] = { |
fc46b7f3 | 4122 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4123 | }; |
4124 | ||
fc46b7f3 | 4125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
4126 | if (obj0) { |
4127 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
4128 | if (!SWIG_IsOK(ecode1)) { | |
4129 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
4130 | } | |
4131 | arg1 = static_cast< byte >(val1); | |
4132 | } | |
4133 | if (obj1) { | |
4134 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4135 | if (!SWIG_IsOK(ecode2)) { | |
4136 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
4137 | } | |
4138 | arg2 = static_cast< byte >(val2); | |
4139 | } | |
4140 | if (obj2) { | |
4141 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4142 | if (!SWIG_IsOK(ecode3)) { | |
4143 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
4144 | } | |
4145 | arg3 = static_cast< byte >(val3); | |
4146 | } | |
fc46b7f3 RD |
4147 | if (obj3) { |
4148 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4149 | if (!SWIG_IsOK(ecode4)) { | |
4150 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
4151 | } | |
4152 | arg4 = static_cast< byte >(val4); | |
4153 | } | |
0085ce49 RD |
4154 | { |
4155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4156 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
0085ce49 RD |
4157 | wxPyEndAllowThreads(__tstate); |
4158 | if (PyErr_Occurred()) SWIG_fail; | |
4159 | } | |
4160 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
4161 | return resultobj; | |
4162 | fail: | |
4163 | return NULL; | |
d14a1e28 RD |
4164 | } |
4165 | ||
4166 | ||
0085ce49 RD |
4167 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4168 | PyObject *resultobj = 0; | |
4169 | wxString *arg1 = 0 ; | |
4170 | wxColour *result = 0 ; | |
4171 | bool temp1 = false ; | |
4172 | PyObject * obj0 = 0 ; | |
4173 | char * kwnames[] = { | |
4174 | (char *) "colorName", NULL | |
4175 | }; | |
4176 | ||
4177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
4178 | { | |
4179 | arg1 = wxString_in_helper(obj0); | |
4180 | if (arg1 == NULL) SWIG_fail; | |
4181 | temp1 = true; | |
4182 | } | |
4183 | { | |
4184 | if (!wxPyCheckForApp()) SWIG_fail; | |
4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4186 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
4187 | wxPyEndAllowThreads(__tstate); | |
4188 | if (PyErr_Occurred()) SWIG_fail; | |
4189 | } | |
4190 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4191 | { | |
4192 | if (temp1) | |
4193 | delete arg1; | |
4194 | } | |
4195 | return resultobj; | |
4196 | fail: | |
4197 | { | |
4198 | if (temp1) | |
4199 | delete arg1; | |
4200 | } | |
4201 | return NULL; | |
d14a1e28 RD |
4202 | } |
4203 | ||
4204 | ||
0085ce49 RD |
4205 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4206 | PyObject *resultobj = 0; | |
4207 | unsigned long arg1 ; | |
4208 | wxColour *result = 0 ; | |
4209 | unsigned long val1 ; | |
4210 | int ecode1 = 0 ; | |
4211 | PyObject * obj0 = 0 ; | |
4212 | char * kwnames[] = { | |
4213 | (char *) "colRGB", NULL | |
4214 | }; | |
4215 | ||
4216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
4217 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
4218 | if (!SWIG_IsOK(ecode1)) { | |
4219 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
4220 | } | |
4221 | arg1 = static_cast< unsigned long >(val1); | |
4222 | { | |
4223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4224 | result = (wxColour *)new wxColour(arg1); | |
4225 | wxPyEndAllowThreads(__tstate); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | } | |
4228 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4229 | return resultobj; | |
4230 | fail: | |
4231 | return NULL; | |
d14a1e28 RD |
4232 | } |
4233 | ||
4234 | ||
0085ce49 RD |
4235 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4236 | PyObject *resultobj = 0; | |
4237 | wxColour *arg1 = (wxColour *) 0 ; | |
4238 | void *argp1 = 0 ; | |
4239 | int res1 = 0 ; | |
4240 | PyObject *swig_obj[1] ; | |
4241 | ||
4242 | if (!args) SWIG_fail; | |
4243 | swig_obj[0] = args; | |
4244 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
4245 | if (!SWIG_IsOK(res1)) { | |
4246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4247 | } | |
4248 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4249 | { | |
4250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4251 | delete arg1; | |
d14a1e28 | 4252 | |
0085ce49 RD |
4253 | wxPyEndAllowThreads(__tstate); |
4254 | if (PyErr_Occurred()) SWIG_fail; | |
4255 | } | |
4256 | resultobj = SWIG_Py_Void(); | |
4257 | return resultobj; | |
4258 | fail: | |
4259 | return NULL; | |
d14a1e28 RD |
4260 | } |
4261 | ||
4262 | ||
0085ce49 RD |
4263 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4264 | PyObject *resultobj = 0; | |
4265 | wxColour *arg1 = (wxColour *) 0 ; | |
4266 | byte result; | |
4267 | void *argp1 = 0 ; | |
4268 | int res1 = 0 ; | |
4269 | PyObject *swig_obj[1] ; | |
4270 | ||
4271 | if (!args) SWIG_fail; | |
4272 | swig_obj[0] = args; | |
4273 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4274 | if (!SWIG_IsOK(res1)) { | |
4275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4276 | } | |
4277 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4278 | { | |
4279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4280 | result = (byte)(arg1)->Red(); | |
4281 | wxPyEndAllowThreads(__tstate); | |
4282 | if (PyErr_Occurred()) SWIG_fail; | |
4283 | } | |
4284 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4285 | return resultobj; | |
4286 | fail: | |
4287 | return NULL; | |
d14a1e28 RD |
4288 | } |
4289 | ||
4290 | ||
0085ce49 RD |
4291 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4292 | PyObject *resultobj = 0; | |
4293 | wxColour *arg1 = (wxColour *) 0 ; | |
4294 | byte result; | |
4295 | void *argp1 = 0 ; | |
4296 | int res1 = 0 ; | |
4297 | PyObject *swig_obj[1] ; | |
4298 | ||
4299 | if (!args) SWIG_fail; | |
4300 | swig_obj[0] = args; | |
4301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4302 | if (!SWIG_IsOK(res1)) { | |
4303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4304 | } | |
4305 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4306 | { | |
4307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4308 | result = (byte)(arg1)->Green(); | |
4309 | wxPyEndAllowThreads(__tstate); | |
4310 | if (PyErr_Occurred()) SWIG_fail; | |
4311 | } | |
4312 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4313 | return resultobj; | |
4314 | fail: | |
4315 | return NULL; | |
5cbf236d RD |
4316 | } |
4317 | ||
4318 | ||
0085ce49 RD |
4319 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4320 | PyObject *resultobj = 0; | |
4321 | wxColour *arg1 = (wxColour *) 0 ; | |
4322 | byte result; | |
4323 | void *argp1 = 0 ; | |
4324 | int res1 = 0 ; | |
4325 | PyObject *swig_obj[1] ; | |
4326 | ||
4327 | if (!args) SWIG_fail; | |
4328 | swig_obj[0] = args; | |
4329 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4330 | if (!SWIG_IsOK(res1)) { | |
4331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4332 | } | |
4333 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4334 | { | |
4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4336 | result = (byte)(arg1)->Blue(); | |
4337 | wxPyEndAllowThreads(__tstate); | |
4338 | if (PyErr_Occurred()) SWIG_fail; | |
4339 | } | |
4340 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4341 | return resultobj; | |
4342 | fail: | |
4343 | return NULL; | |
d14a1e28 RD |
4344 | } |
4345 | ||
4346 | ||
fc46b7f3 RD |
4347 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4348 | PyObject *resultobj = 0; | |
4349 | wxColour *arg1 = (wxColour *) 0 ; | |
4350 | byte result; | |
4351 | void *argp1 = 0 ; | |
4352 | int res1 = 0 ; | |
4353 | PyObject *swig_obj[1] ; | |
4354 | ||
4355 | if (!args) SWIG_fail; | |
4356 | swig_obj[0] = args; | |
4357 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4358 | if (!SWIG_IsOK(res1)) { | |
4359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4360 | } | |
4361 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4362 | { | |
4363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4364 | result = (byte)(arg1)->Alpha(); | |
4365 | wxPyEndAllowThreads(__tstate); | |
4366 | if (PyErr_Occurred()) SWIG_fail; | |
4367 | } | |
4368 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4369 | return resultobj; | |
4370 | fail: | |
4371 | return NULL; | |
4372 | } | |
4373 | ||
4374 | ||
b39fe951 | 4375 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
4376 | PyObject *resultobj = 0; |
4377 | wxColour *arg1 = (wxColour *) 0 ; | |
4378 | bool result; | |
4379 | void *argp1 = 0 ; | |
4380 | int res1 = 0 ; | |
4381 | PyObject *swig_obj[1] ; | |
4382 | ||
4383 | if (!args) SWIG_fail; | |
4384 | swig_obj[0] = args; | |
4385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4386 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4388 | } |
4389 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4390 | { | |
4391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4392 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
4393 | wxPyEndAllowThreads(__tstate); |
4394 | if (PyErr_Occurred()) SWIG_fail; | |
4395 | } | |
4396 | { | |
4397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4398 | } | |
4399 | return resultobj; | |
4400 | fail: | |
4401 | return NULL; | |
4402 | } | |
4403 | ||
4404 | ||
4405 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4406 | PyObject *resultobj = 0; | |
4407 | wxColour *arg1 = (wxColour *) 0 ; | |
4408 | byte arg2 ; | |
4409 | byte arg3 ; | |
4410 | byte arg4 ; | |
fc46b7f3 | 4411 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4412 | void *argp1 = 0 ; |
4413 | int res1 = 0 ; | |
4414 | unsigned char val2 ; | |
4415 | int ecode2 = 0 ; | |
4416 | unsigned char val3 ; | |
4417 | int ecode3 = 0 ; | |
4418 | unsigned char val4 ; | |
4419 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4420 | unsigned char val5 ; |
4421 | int ecode5 = 0 ; | |
0085ce49 RD |
4422 | PyObject * obj0 = 0 ; |
4423 | PyObject * obj1 = 0 ; | |
4424 | PyObject * obj2 = 0 ; | |
4425 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4426 | PyObject * obj4 = 0 ; |
0085ce49 | 4427 | char * kwnames[] = { |
fc46b7f3 | 4428 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4429 | }; |
4430 | ||
fc46b7f3 | 4431 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
0085ce49 RD |
4432 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4433 | if (!SWIG_IsOK(res1)) { | |
4434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4435 | } | |
4436 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4437 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4438 | if (!SWIG_IsOK(ecode2)) { | |
4439 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4440 | } | |
4441 | arg2 = static_cast< byte >(val2); | |
4442 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4443 | if (!SWIG_IsOK(ecode3)) { | |
4444 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4445 | } | |
4446 | arg3 = static_cast< byte >(val3); | |
4447 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4448 | if (!SWIG_IsOK(ecode4)) { | |
4449 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4450 | } | |
4451 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4452 | if (obj4) { |
4453 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4454 | if (!SWIG_IsOK(ecode5)) { | |
4455 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4456 | } | |
4457 | arg5 = static_cast< byte >(val5); | |
4458 | } | |
0085ce49 RD |
4459 | { |
4460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4461 | (arg1)->Set(arg2,arg3,arg4,arg5); |
0085ce49 RD |
4462 | wxPyEndAllowThreads(__tstate); |
4463 | if (PyErr_Occurred()) SWIG_fail; | |
4464 | } | |
4465 | resultobj = SWIG_Py_Void(); | |
4466 | return resultobj; | |
4467 | fail: | |
4468 | return NULL; | |
4469 | } | |
4470 | ||
4471 | ||
4472 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4473 | PyObject *resultobj = 0; | |
4474 | wxColour *arg1 = (wxColour *) 0 ; | |
4475 | unsigned long arg2 ; | |
4476 | void *argp1 = 0 ; | |
4477 | int res1 = 0 ; | |
4478 | unsigned long val2 ; | |
4479 | int ecode2 = 0 ; | |
4480 | PyObject * obj0 = 0 ; | |
4481 | PyObject * obj1 = 0 ; | |
4482 | char * kwnames[] = { | |
4483 | (char *) "self",(char *) "colRGB", NULL | |
4484 | }; | |
4485 | ||
4486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4488 | if (!SWIG_IsOK(res1)) { | |
4489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4490 | } | |
4491 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4492 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4493 | if (!SWIG_IsOK(ecode2)) { | |
4494 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4495 | } | |
4496 | arg2 = static_cast< unsigned long >(val2); | |
4497 | { | |
4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4499 | (arg1)->Set(arg2); | |
4500 | wxPyEndAllowThreads(__tstate); | |
4501 | if (PyErr_Occurred()) SWIG_fail; | |
4502 | } | |
4503 | resultobj = SWIG_Py_Void(); | |
4504 | return resultobj; | |
4505 | fail: | |
4506 | return NULL; | |
4507 | } | |
4508 | ||
4509 | ||
4510 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4511 | PyObject *resultobj = 0; | |
4512 | wxColour *arg1 = (wxColour *) 0 ; | |
4513 | wxString *arg2 = 0 ; | |
4514 | void *argp1 = 0 ; | |
4515 | int res1 = 0 ; | |
4516 | bool temp2 = false ; | |
4517 | PyObject * obj0 = 0 ; | |
4518 | PyObject * obj1 = 0 ; | |
4519 | char * kwnames[] = { | |
4520 | (char *) "self",(char *) "colourName", NULL | |
4521 | }; | |
4522 | ||
4523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4525 | if (!SWIG_IsOK(res1)) { | |
4526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4527 | } | |
4528 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4529 | { | |
4530 | arg2 = wxString_in_helper(obj1); | |
4531 | if (arg2 == NULL) SWIG_fail; | |
4532 | temp2 = true; | |
4533 | } | |
4534 | { | |
4535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4536 | (arg1)->Set((wxString const &)*arg2); |
0085ce49 RD |
4537 | wxPyEndAllowThreads(__tstate); |
4538 | if (PyErr_Occurred()) SWIG_fail; | |
4539 | } | |
4540 | resultobj = SWIG_Py_Void(); | |
4541 | { | |
4542 | if (temp2) | |
4543 | delete arg2; | |
4544 | } | |
4545 | return resultobj; | |
4546 | fail: | |
4547 | { | |
4548 | if (temp2) | |
4549 | delete arg2; | |
4550 | } | |
4551 | return NULL; | |
d14a1e28 RD |
4552 | } |
4553 | ||
4554 | ||
01f6b6d3 RD |
4555 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4556 | PyObject *resultobj = 0; | |
4557 | wxColour *arg1 = (wxColour *) 0 ; | |
4558 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4559 | wxString result; | |
4560 | void *argp1 = 0 ; | |
4561 | int res1 = 0 ; | |
4562 | long val2 ; | |
4563 | int ecode2 = 0 ; | |
4564 | PyObject * obj0 = 0 ; | |
4565 | PyObject * obj1 = 0 ; | |
4566 | char * kwnames[] = { | |
4567 | (char *) "self",(char *) "flags", NULL | |
4568 | }; | |
4569 | ||
4570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4572 | if (!SWIG_IsOK(res1)) { | |
4573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4574 | } | |
4575 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4576 | if (obj1) { | |
4577 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4578 | if (!SWIG_IsOK(ecode2)) { | |
4579 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4580 | } | |
4581 | arg2 = static_cast< long >(val2); | |
4582 | } | |
4583 | { | |
4584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4585 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4586 | wxPyEndAllowThreads(__tstate); | |
4587 | if (PyErr_Occurred()) SWIG_fail; | |
4588 | } | |
4589 | { | |
4590 | #if wxUSE_UNICODE | |
4591 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4592 | #else | |
4593 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4594 | #endif | |
4595 | } | |
4596 | return resultobj; | |
4597 | fail: | |
4598 | return NULL; | |
4599 | } | |
4600 | ||
4601 | ||
0085ce49 RD |
4602 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4603 | PyObject *resultobj = 0; | |
4604 | wxColour *arg1 = (wxColour *) 0 ; | |
4605 | long result; | |
4606 | void *argp1 = 0 ; | |
4607 | int res1 = 0 ; | |
4608 | PyObject *swig_obj[1] ; | |
4609 | ||
4610 | if (!args) SWIG_fail; | |
4611 | swig_obj[0] = args; | |
4612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4613 | if (!SWIG_IsOK(res1)) { | |
4614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4615 | } | |
4616 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4617 | { | |
4618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4619 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4620 | wxPyEndAllowThreads(__tstate); | |
4621 | if (PyErr_Occurred()) SWIG_fail; | |
4622 | } | |
4623 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4624 | return resultobj; | |
4625 | fail: | |
4626 | return NULL; | |
4627 | } | |
4628 | ||
4629 | ||
4630 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4631 | PyObject *resultobj = 0; | |
4632 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4633 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4634 | bool result; |
4635 | void *argp1 = 0 ; | |
4636 | int res1 = 0 ; | |
0085ce49 RD |
4637 | PyObject * obj0 = 0 ; |
4638 | PyObject * obj1 = 0 ; | |
4639 | char * kwnames[] = { | |
e9d6f3a4 | 4640 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4641 | }; |
4642 | ||
4643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4645 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4647 | } |
4648 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4649 | arg2 = obj1; |
0085ce49 | 4650 | { |
e9d6f3a4 | 4651 | result = (bool)wxColour___eq__(arg1,arg2); |
0085ce49 RD |
4652 | if (PyErr_Occurred()) SWIG_fail; |
4653 | } | |
4654 | { | |
4655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4656 | } | |
4657 | return resultobj; | |
4658 | fail: | |
4659 | return NULL; | |
4660 | } | |
4661 | ||
4662 | ||
4663 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4664 | PyObject *resultobj = 0; | |
4665 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4666 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4667 | bool result; |
4668 | void *argp1 = 0 ; | |
4669 | int res1 = 0 ; | |
0085ce49 RD |
4670 | PyObject * obj0 = 0 ; |
4671 | PyObject * obj1 = 0 ; | |
4672 | char * kwnames[] = { | |
e9d6f3a4 | 4673 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4674 | }; |
4675 | ||
4676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4678 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4680 | } |
4681 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4682 | arg2 = obj1; |
0085ce49 | 4683 | { |
e9d6f3a4 | 4684 | result = (bool)wxColour___ne__(arg1,arg2); |
0085ce49 RD |
4685 | if (PyErr_Occurred()) SWIG_fail; |
4686 | } | |
4687 | { | |
4688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4689 | } | |
4690 | return resultobj; | |
4691 | fail: | |
4692 | return NULL; | |
d14a1e28 RD |
4693 | } |
4694 | ||
4695 | ||
fc46b7f3 | 4696 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
4697 | PyObject *resultobj = 0; |
4698 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4699 | bool arg2 = (bool) false ; |
0085ce49 RD |
4700 | PyObject *result = 0 ; |
4701 | void *argp1 = 0 ; | |
4702 | int res1 = 0 ; | |
fc46b7f3 RD |
4703 | bool val2 ; |
4704 | int ecode2 = 0 ; | |
4705 | PyObject * obj0 = 0 ; | |
4706 | PyObject * obj1 = 0 ; | |
4707 | char * kwnames[] = { | |
4708 | (char *) "self",(char *) "includeAlpha", NULL | |
4709 | }; | |
0085ce49 | 4710 | |
fc46b7f3 RD |
4711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
0085ce49 RD |
4713 | if (!SWIG_IsOK(res1)) { |
4714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4715 | } | |
4716 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4717 | if (obj1) { |
4718 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4719 | if (!SWIG_IsOK(ecode2)) { | |
4720 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4721 | } | |
4722 | arg2 = static_cast< bool >(val2); | |
4723 | } | |
0085ce49 | 4724 | { |
fc46b7f3 | 4725 | result = (PyObject *)wxColour_Get(arg1,arg2); |
0085ce49 RD |
4726 | if (PyErr_Occurred()) SWIG_fail; |
4727 | } | |
4728 | resultobj = result; | |
4729 | return resultobj; | |
4730 | fail: | |
4731 | return NULL; | |
d14a1e28 RD |
4732 | } |
4733 | ||
4734 | ||
0085ce49 RD |
4735 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4736 | PyObject *resultobj = 0; | |
4737 | wxColour *arg1 = (wxColour *) 0 ; | |
4738 | unsigned long result; | |
4739 | void *argp1 = 0 ; | |
4740 | int res1 = 0 ; | |
4741 | PyObject *swig_obj[1] ; | |
4742 | ||
4743 | if (!args) SWIG_fail; | |
4744 | swig_obj[0] = args; | |
4745 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4746 | if (!SWIG_IsOK(res1)) { | |
4747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4748 | } | |
4749 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4750 | { | |
0085ce49 | 4751 | result = (unsigned long)wxColour_GetRGB(arg1); |
0085ce49 RD |
4752 | if (PyErr_Occurred()) SWIG_fail; |
4753 | } | |
4754 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4755 | return resultobj; | |
4756 | fail: | |
4757 | return NULL; | |
4758 | } | |
4759 | ||
4760 | ||
4761 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4762 | PyObject *obj; | |
4763 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4764 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4765 | return SWIG_Py_Void(); | |
4766 | } | |
4767 | ||
4768 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4769 | return SWIG_Python_InitShadowInstance(args); | |
4770 | } | |
4771 | ||
4772 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4773 | PyObject *resultobj = 0; | |
4774 | int arg1 ; | |
4775 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4776 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4777 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4778 | wxPalette *result = 0 ; | |
4779 | int val1 ; | |
4780 | int ecode1 = 0 ; | |
4781 | void *argp2 = 0 ; | |
4782 | int res2 = 0 ; | |
4783 | void *argp3 = 0 ; | |
4784 | int res3 = 0 ; | |
4785 | void *argp4 = 0 ; | |
4786 | int res4 = 0 ; | |
4787 | PyObject * obj0 = 0 ; | |
4788 | PyObject * obj1 = 0 ; | |
4789 | PyObject * obj2 = 0 ; | |
4790 | PyObject * obj3 = 0 ; | |
4791 | char * kwnames[] = { | |
4792 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4793 | }; | |
4794 | ||
4795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4796 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4797 | if (!SWIG_IsOK(ecode1)) { | |
4798 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4799 | } | |
4800 | arg1 = static_cast< int >(val1); | |
4801 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4802 | if (!SWIG_IsOK(res2)) { | |
4803 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4804 | } | |
4805 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4806 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4807 | if (!SWIG_IsOK(res3)) { | |
4808 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4809 | } | |
4810 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4811 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4812 | if (!SWIG_IsOK(res4)) { | |
4813 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4814 | } | |
4815 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4816 | { | |
4817 | if (!wxPyCheckForApp()) SWIG_fail; | |
4818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4819 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4820 | wxPyEndAllowThreads(__tstate); | |
4821 | if (PyErr_Occurred()) SWIG_fail; | |
4822 | } | |
4823 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4824 | return resultobj; | |
4825 | fail: | |
4826 | return NULL; | |
d14a1e28 RD |
4827 | } |
4828 | ||
4829 | ||
0085ce49 RD |
4830 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4831 | PyObject *resultobj = 0; | |
4832 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4833 | void *argp1 = 0 ; | |
4834 | int res1 = 0 ; | |
4835 | PyObject *swig_obj[1] ; | |
4836 | ||
4837 | if (!args) SWIG_fail; | |
4838 | swig_obj[0] = args; | |
4839 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4840 | if (!SWIG_IsOK(res1)) { | |
4841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4842 | } | |
4843 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4844 | { | |
4845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4846 | delete arg1; | |
d14a1e28 | 4847 | |
0085ce49 RD |
4848 | wxPyEndAllowThreads(__tstate); |
4849 | if (PyErr_Occurred()) SWIG_fail; | |
4850 | } | |
4851 | resultobj = SWIG_Py_Void(); | |
4852 | return resultobj; | |
4853 | fail: | |
4854 | return NULL; | |
4855 | } | |
4856 | ||
4857 | ||
4858 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4859 | PyObject *resultobj = 0; | |
4860 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4861 | byte arg2 ; | |
4862 | byte arg3 ; | |
4863 | byte arg4 ; | |
4864 | int result; | |
4865 | void *argp1 = 0 ; | |
4866 | int res1 = 0 ; | |
4867 | unsigned char val2 ; | |
4868 | int ecode2 = 0 ; | |
4869 | unsigned char val3 ; | |
4870 | int ecode3 = 0 ; | |
4871 | unsigned char val4 ; | |
4872 | int ecode4 = 0 ; | |
4873 | PyObject * obj0 = 0 ; | |
4874 | PyObject * obj1 = 0 ; | |
4875 | PyObject * obj2 = 0 ; | |
4876 | PyObject * obj3 = 0 ; | |
4877 | char * kwnames[] = { | |
4878 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4879 | }; | |
4880 | ||
4881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4883 | if (!SWIG_IsOK(res1)) { | |
4884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4885 | } | |
4886 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4887 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4888 | if (!SWIG_IsOK(ecode2)) { | |
4889 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4890 | } | |
4891 | arg2 = static_cast< byte >(val2); | |
4892 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4893 | if (!SWIG_IsOK(ecode3)) { | |
4894 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4895 | } | |
4896 | arg3 = static_cast< byte >(val3); | |
4897 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4898 | if (!SWIG_IsOK(ecode4)) { | |
4899 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4900 | } | |
4901 | arg4 = static_cast< byte >(val4); | |
4902 | { | |
4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4904 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4905 | wxPyEndAllowThreads(__tstate); | |
4906 | if (PyErr_Occurred()) SWIG_fail; | |
4907 | } | |
4908 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4909 | return resultobj; | |
4910 | fail: | |
4911 | return NULL; | |
4912 | } | |
4913 | ||
4914 | ||
4915 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4916 | PyObject *resultobj = 0; | |
4917 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4918 | int arg2 ; | |
4919 | byte *arg3 = (byte *) 0 ; | |
4920 | byte *arg4 = (byte *) 0 ; | |
4921 | byte *arg5 = (byte *) 0 ; | |
4922 | bool result; | |
4923 | void *argp1 = 0 ; | |
4924 | int res1 = 0 ; | |
4925 | int val2 ; | |
4926 | int ecode2 = 0 ; | |
4927 | byte temp3 ; | |
4928 | int res3 = SWIG_TMPOBJ ; | |
4929 | byte temp4 ; | |
4930 | int res4 = SWIG_TMPOBJ ; | |
4931 | byte temp5 ; | |
4932 | int res5 = SWIG_TMPOBJ ; | |
4933 | PyObject * obj0 = 0 ; | |
4934 | PyObject * obj1 = 0 ; | |
4935 | char * kwnames[] = { | |
4936 | (char *) "self",(char *) "pixel", NULL | |
4937 | }; | |
4938 | ||
4939 | arg3 = &temp3; | |
4940 | arg4 = &temp4; | |
4941 | arg5 = &temp5; | |
4942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4944 | if (!SWIG_IsOK(res1)) { | |
4945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4946 | } | |
4947 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4948 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4949 | if (!SWIG_IsOK(ecode2)) { | |
4950 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4951 | } | |
4952 | arg2 = static_cast< int >(val2); | |
4953 | { | |
4954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4955 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4956 | wxPyEndAllowThreads(__tstate); | |
4957 | if (PyErr_Occurred()) SWIG_fail; | |
4958 | } | |
4959 | { | |
4960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4961 | } | |
4962 | if (SWIG_IsTmpObj(res3)) { | |
4963 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4964 | } else { | |
4965 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4966 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4967 | } | |
4968 | if (SWIG_IsTmpObj(res4)) { | |
4969 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4970 | } else { | |
4971 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4972 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4973 | } | |
4974 | if (SWIG_IsTmpObj(res5)) { | |
4975 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4976 | } else { | |
4977 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4978 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4979 | } | |
4980 | return resultobj; | |
4981 | fail: | |
4982 | return NULL; | |
d14a1e28 RD |
4983 | } |
4984 | ||
4985 | ||
0085ce49 RD |
4986 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4987 | PyObject *resultobj = 0; | |
4988 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4989 | int result; | |
4990 | void *argp1 = 0 ; | |
4991 | int res1 = 0 ; | |
4992 | PyObject *swig_obj[1] ; | |
4993 | ||
4994 | if (!args) SWIG_fail; | |
4995 | swig_obj[0] = args; | |
4996 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4997 | if (!SWIG_IsOK(res1)) { | |
4998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4999 | } | |
5000 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5001 | { | |
5002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5003 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
5004 | wxPyEndAllowThreads(__tstate); | |
5005 | if (PyErr_Occurred()) SWIG_fail; | |
5006 | } | |
5007 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5008 | return resultobj; | |
5009 | fail: | |
5010 | return NULL; | |
d14a1e28 RD |
5011 | } |
5012 | ||
5013 | ||
b39fe951 | 5014 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5015 | PyObject *resultobj = 0; |
5016 | wxPalette *arg1 = (wxPalette *) 0 ; | |
5017 | bool result; | |
5018 | void *argp1 = 0 ; | |
5019 | int res1 = 0 ; | |
5020 | PyObject *swig_obj[1] ; | |
5021 | ||
5022 | if (!args) SWIG_fail; | |
5023 | swig_obj[0] = args; | |
5024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
5025 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
0085ce49 RD |
5027 | } |
5028 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5029 | { | |
5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5031 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5032 | wxPyEndAllowThreads(__tstate); |
5033 | if (PyErr_Occurred()) SWIG_fail; | |
5034 | } | |
5035 | { | |
5036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5037 | } | |
5038 | return resultobj; | |
5039 | fail: | |
5040 | return NULL; | |
5041 | } | |
5042 | ||
5043 | ||
5044 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5045 | PyObject *obj; | |
5046 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5047 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
5048 | return SWIG_Py_Void(); | |
5049 | } | |
5050 | ||
5051 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5052 | return SWIG_Python_InitShadowInstance(args); | |
5053 | } | |
5054 | ||
5055 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5056 | PyObject *resultobj = 0; | |
5057 | wxColour *arg1 = 0 ; | |
5058 | int arg2 = (int) 1 ; | |
5059 | int arg3 = (int) wxSOLID ; | |
5060 | wxPen *result = 0 ; | |
5061 | wxColour temp1 ; | |
5062 | int val2 ; | |
5063 | int ecode2 = 0 ; | |
5064 | int val3 ; | |
5065 | int ecode3 = 0 ; | |
5066 | PyObject * obj0 = 0 ; | |
5067 | PyObject * obj1 = 0 ; | |
5068 | PyObject * obj2 = 0 ; | |
5069 | char * kwnames[] = { | |
5070 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
5071 | }; | |
5072 | ||
5073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5074 | { | |
5075 | arg1 = &temp1; | |
5076 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5077 | } | |
5078 | if (obj1) { | |
5079 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5080 | if (!SWIG_IsOK(ecode2)) { | |
5081 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
5082 | } | |
5083 | arg2 = static_cast< int >(val2); | |
5084 | } | |
5085 | if (obj2) { | |
5086 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5087 | if (!SWIG_IsOK(ecode3)) { | |
5088 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
5089 | } | |
5090 | arg3 = static_cast< int >(val3); | |
5091 | } | |
5092 | { | |
5093 | if (!wxPyCheckForApp()) SWIG_fail; | |
5094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5095 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
5096 | wxPyEndAllowThreads(__tstate); | |
5097 | if (PyErr_Occurred()) SWIG_fail; | |
5098 | } | |
5099 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
5100 | return resultobj; | |
5101 | fail: | |
5102 | return NULL; | |
d14a1e28 RD |
5103 | } |
5104 | ||
5105 | ||
0085ce49 RD |
5106 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5107 | PyObject *resultobj = 0; | |
5108 | wxPen *arg1 = (wxPen *) 0 ; | |
5109 | void *argp1 = 0 ; | |
5110 | int res1 = 0 ; | |
5111 | PyObject *swig_obj[1] ; | |
5112 | ||
5113 | if (!args) SWIG_fail; | |
5114 | swig_obj[0] = args; | |
5115 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
5116 | if (!SWIG_IsOK(res1)) { | |
5117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5118 | } | |
5119 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5120 | { | |
5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5122 | delete arg1; | |
d14a1e28 | 5123 | |
0085ce49 RD |
5124 | wxPyEndAllowThreads(__tstate); |
5125 | if (PyErr_Occurred()) SWIG_fail; | |
5126 | } | |
5127 | resultobj = SWIG_Py_Void(); | |
5128 | return resultobj; | |
5129 | fail: | |
5130 | return NULL; | |
d14a1e28 RD |
5131 | } |
5132 | ||
5133 | ||
0085ce49 RD |
5134 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5135 | PyObject *resultobj = 0; | |
5136 | wxPen *arg1 = (wxPen *) 0 ; | |
5137 | int result; | |
5138 | void *argp1 = 0 ; | |
5139 | int res1 = 0 ; | |
5140 | PyObject *swig_obj[1] ; | |
5141 | ||
5142 | if (!args) SWIG_fail; | |
5143 | swig_obj[0] = args; | |
5144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5145 | if (!SWIG_IsOK(res1)) { | |
5146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5147 | } | |
5148 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5149 | { | |
5150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5151 | result = (int)(arg1)->GetCap(); | |
5152 | wxPyEndAllowThreads(__tstate); | |
5153 | if (PyErr_Occurred()) SWIG_fail; | |
5154 | } | |
5155 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5156 | return resultobj; | |
5157 | fail: | |
5158 | return NULL; | |
d14a1e28 RD |
5159 | } |
5160 | ||
5161 | ||
0085ce49 RD |
5162 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5163 | PyObject *resultobj = 0; | |
5164 | wxPen *arg1 = (wxPen *) 0 ; | |
5165 | wxColour result; | |
5166 | void *argp1 = 0 ; | |
5167 | int res1 = 0 ; | |
5168 | PyObject *swig_obj[1] ; | |
5169 | ||
5170 | if (!args) SWIG_fail; | |
5171 | swig_obj[0] = args; | |
5172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5173 | if (!SWIG_IsOK(res1)) { | |
5174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5175 | } | |
5176 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5177 | { | |
5178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5179 | result = (arg1)->GetColour(); | |
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
5183 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5184 | return resultobj; | |
5185 | fail: | |
5186 | return NULL; | |
d14a1e28 RD |
5187 | } |
5188 | ||
5189 | ||
0085ce49 RD |
5190 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5191 | PyObject *resultobj = 0; | |
5192 | wxPen *arg1 = (wxPen *) 0 ; | |
5193 | int result; | |
5194 | void *argp1 = 0 ; | |
5195 | int res1 = 0 ; | |
5196 | PyObject *swig_obj[1] ; | |
5197 | ||
5198 | if (!args) SWIG_fail; | |
5199 | swig_obj[0] = args; | |
5200 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5201 | if (!SWIG_IsOK(res1)) { | |
5202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5203 | } | |
5204 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5205 | { | |
5206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5207 | result = (int)(arg1)->GetJoin(); | |
5208 | wxPyEndAllowThreads(__tstate); | |
5209 | if (PyErr_Occurred()) SWIG_fail; | |
5210 | } | |
5211 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5212 | return resultobj; | |
5213 | fail: | |
5214 | return NULL; | |
d14a1e28 RD |
5215 | } |
5216 | ||
5217 | ||
0085ce49 RD |
5218 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5219 | PyObject *resultobj = 0; | |
5220 | wxPen *arg1 = (wxPen *) 0 ; | |
5221 | int result; | |
5222 | void *argp1 = 0 ; | |
5223 | int res1 = 0 ; | |
5224 | PyObject *swig_obj[1] ; | |
5225 | ||
5226 | if (!args) SWIG_fail; | |
5227 | swig_obj[0] = args; | |
5228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5229 | if (!SWIG_IsOK(res1)) { | |
5230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5231 | } | |
5232 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5233 | { | |
5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5235 | result = (int)(arg1)->GetStyle(); | |
5236 | wxPyEndAllowThreads(__tstate); | |
5237 | if (PyErr_Occurred()) SWIG_fail; | |
5238 | } | |
5239 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5240 | return resultobj; | |
5241 | fail: | |
5242 | return NULL; | |
3adfb63b RD |
5243 | } |
5244 | ||
5245 | ||
0085ce49 RD |
5246 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5247 | PyObject *resultobj = 0; | |
5248 | wxPen *arg1 = (wxPen *) 0 ; | |
5249 | int result; | |
5250 | void *argp1 = 0 ; | |
5251 | int res1 = 0 ; | |
5252 | PyObject *swig_obj[1] ; | |
5253 | ||
5254 | if (!args) SWIG_fail; | |
5255 | swig_obj[0] = args; | |
5256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5257 | if (!SWIG_IsOK(res1)) { | |
5258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5259 | } | |
5260 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5261 | { | |
5262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5263 | result = (int)(arg1)->GetWidth(); | |
5264 | wxPyEndAllowThreads(__tstate); | |
5265 | if (PyErr_Occurred()) SWIG_fail; | |
5266 | } | |
5267 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5268 | return resultobj; | |
5269 | fail: | |
5270 | return NULL; | |
d14a1e28 RD |
5271 | } |
5272 | ||
5273 | ||
b39fe951 | 5274 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5275 | PyObject *resultobj = 0; |
5276 | wxPen *arg1 = (wxPen *) 0 ; | |
5277 | bool result; | |
5278 | void *argp1 = 0 ; | |
5279 | int res1 = 0 ; | |
5280 | PyObject *swig_obj[1] ; | |
5281 | ||
5282 | if (!args) SWIG_fail; | |
5283 | swig_obj[0] = args; | |
5284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5285 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
0085ce49 RD |
5287 | } |
5288 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5289 | { | |
5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5291 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5292 | wxPyEndAllowThreads(__tstate); |
5293 | if (PyErr_Occurred()) SWIG_fail; | |
5294 | } | |
5295 | { | |
5296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5297 | } | |
5298 | return resultobj; | |
5299 | fail: | |
5300 | return NULL; | |
5301 | } | |
5302 | ||
5303 | ||
5304 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5305 | PyObject *resultobj = 0; | |
5306 | wxPen *arg1 = (wxPen *) 0 ; | |
5307 | int arg2 ; | |
5308 | void *argp1 = 0 ; | |
5309 | int res1 = 0 ; | |
5310 | int val2 ; | |
5311 | int ecode2 = 0 ; | |
5312 | PyObject * obj0 = 0 ; | |
5313 | PyObject * obj1 = 0 ; | |
5314 | char * kwnames[] = { | |
5315 | (char *) "self",(char *) "cap_style", NULL | |
5316 | }; | |
5317 | ||
5318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5320 | if (!SWIG_IsOK(res1)) { | |
5321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5322 | } | |
5323 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5324 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5325 | if (!SWIG_IsOK(ecode2)) { | |
5326 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5327 | } | |
5328 | arg2 = static_cast< int >(val2); | |
5329 | { | |
5330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5331 | (arg1)->SetCap(arg2); | |
5332 | wxPyEndAllowThreads(__tstate); | |
5333 | if (PyErr_Occurred()) SWIG_fail; | |
5334 | } | |
5335 | resultobj = SWIG_Py_Void(); | |
5336 | return resultobj; | |
5337 | fail: | |
5338 | return NULL; | |
5339 | } | |
5340 | ||
5341 | ||
5342 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5343 | PyObject *resultobj = 0; | |
5344 | wxPen *arg1 = (wxPen *) 0 ; | |
5345 | wxColour *arg2 = 0 ; | |
5346 | void *argp1 = 0 ; | |
5347 | int res1 = 0 ; | |
5348 | wxColour temp2 ; | |
5349 | PyObject * obj0 = 0 ; | |
5350 | PyObject * obj1 = 0 ; | |
5351 | char * kwnames[] = { | |
5352 | (char *) "self",(char *) "colour", NULL | |
5353 | }; | |
5354 | ||
5355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5357 | if (!SWIG_IsOK(res1)) { | |
5358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5359 | } | |
5360 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5361 | { | |
5362 | arg2 = &temp2; | |
5363 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5364 | } | |
5365 | { | |
5366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5367 | (arg1)->SetColour(*arg2); | |
5368 | wxPyEndAllowThreads(__tstate); | |
5369 | if (PyErr_Occurred()) SWIG_fail; | |
5370 | } | |
5371 | resultobj = SWIG_Py_Void(); | |
5372 | return resultobj; | |
5373 | fail: | |
5374 | return NULL; | |
5375 | } | |
5376 | ||
5377 | ||
5378 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5379 | PyObject *resultobj = 0; | |
5380 | wxPen *arg1 = (wxPen *) 0 ; | |
5381 | int arg2 ; | |
5382 | void *argp1 = 0 ; | |
5383 | int res1 = 0 ; | |
5384 | int val2 ; | |
5385 | int ecode2 = 0 ; | |
5386 | PyObject * obj0 = 0 ; | |
5387 | PyObject * obj1 = 0 ; | |
5388 | char * kwnames[] = { | |
5389 | (char *) "self",(char *) "join_style", NULL | |
5390 | }; | |
5391 | ||
5392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5394 | if (!SWIG_IsOK(res1)) { | |
5395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5396 | } | |
5397 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5398 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5399 | if (!SWIG_IsOK(ecode2)) { | |
5400 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5401 | } | |
5402 | arg2 = static_cast< int >(val2); | |
5403 | { | |
5404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5405 | (arg1)->SetJoin(arg2); | |
5406 | wxPyEndAllowThreads(__tstate); | |
5407 | if (PyErr_Occurred()) SWIG_fail; | |
5408 | } | |
5409 | resultobj = SWIG_Py_Void(); | |
5410 | return resultobj; | |
5411 | fail: | |
5412 | return NULL; | |
5413 | } | |
5414 | ||
5415 | ||
5416 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5417 | PyObject *resultobj = 0; | |
5418 | wxPen *arg1 = (wxPen *) 0 ; | |
5419 | int arg2 ; | |
5420 | void *argp1 = 0 ; | |
5421 | int res1 = 0 ; | |
5422 | int val2 ; | |
5423 | int ecode2 = 0 ; | |
5424 | PyObject * obj0 = 0 ; | |
5425 | PyObject * obj1 = 0 ; | |
5426 | char * kwnames[] = { | |
5427 | (char *) "self",(char *) "style", NULL | |
5428 | }; | |
5429 | ||
5430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5432 | if (!SWIG_IsOK(res1)) { | |
5433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5434 | } | |
5435 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5436 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5437 | if (!SWIG_IsOK(ecode2)) { | |
5438 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5439 | } | |
5440 | arg2 = static_cast< int >(val2); | |
5441 | { | |
5442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5443 | (arg1)->SetStyle(arg2); | |
5444 | wxPyEndAllowThreads(__tstate); | |
5445 | if (PyErr_Occurred()) SWIG_fail; | |
5446 | } | |
5447 | resultobj = SWIG_Py_Void(); | |
5448 | return resultobj; | |
5449 | fail: | |
5450 | return NULL; | |
5451 | } | |
5452 | ||
5453 | ||
5454 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5455 | PyObject *resultobj = 0; | |
5456 | wxPen *arg1 = (wxPen *) 0 ; | |
5457 | int arg2 ; | |
5458 | void *argp1 = 0 ; | |
5459 | int res1 = 0 ; | |
5460 | int val2 ; | |
5461 | int ecode2 = 0 ; | |
5462 | PyObject * obj0 = 0 ; | |
5463 | PyObject * obj1 = 0 ; | |
5464 | char * kwnames[] = { | |
5465 | (char *) "self",(char *) "width", NULL | |
5466 | }; | |
5467 | ||
5468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5470 | if (!SWIG_IsOK(res1)) { | |
5471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5472 | } | |
5473 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5474 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5475 | if (!SWIG_IsOK(ecode2)) { | |
5476 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5477 | } | |
5478 | arg2 = static_cast< int >(val2); | |
5479 | { | |
5480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5481 | (arg1)->SetWidth(arg2); | |
5482 | wxPyEndAllowThreads(__tstate); | |
5483 | if (PyErr_Occurred()) SWIG_fail; | |
5484 | } | |
5485 | resultobj = SWIG_Py_Void(); | |
5486 | return resultobj; | |
5487 | fail: | |
5488 | return NULL; | |
5489 | } | |
5490 | ||
5491 | ||
5492 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5493 | PyObject *resultobj = 0; | |
5494 | wxPen *arg1 = (wxPen *) 0 ; | |
5495 | int arg2 ; | |
5496 | wxDash *arg3 = (wxDash *) 0 ; | |
5497 | void *argp1 = 0 ; | |
5498 | int res1 = 0 ; | |
5499 | PyObject * obj0 = 0 ; | |
5500 | PyObject * obj1 = 0 ; | |
5501 | char * kwnames[] = { | |
5502 | (char *) "self",(char *) "dashes", NULL | |
5503 | }; | |
5504 | ||
5505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5507 | if (!SWIG_IsOK(res1)) { | |
5508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5509 | } | |
5510 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5511 | { | |
5512 | arg2 = PyList_Size(obj1); | |
5513 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5514 | if (arg3 == NULL) SWIG_fail; | |
5515 | } | |
5516 | { | |
5517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5518 | (arg1)->SetDashes(arg2,arg3); | |
5519 | wxPyEndAllowThreads(__tstate); | |
5520 | if (PyErr_Occurred()) SWIG_fail; | |
5521 | } | |
5522 | resultobj = SWIG_Py_Void(); | |
5523 | { | |
5524 | if (arg3) delete [] arg3; | |
5525 | } | |
5526 | return resultobj; | |
5527 | fail: | |
5528 | { | |
5529 | if (arg3) delete [] arg3; | |
5530 | } | |
5531 | return NULL; | |
d14a1e28 RD |
5532 | } |
5533 | ||
5534 | ||
0085ce49 RD |
5535 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5536 | PyObject *resultobj = 0; | |
5537 | wxPen *arg1 = (wxPen *) 0 ; | |
5538 | PyObject *result = 0 ; | |
5539 | void *argp1 = 0 ; | |
5540 | int res1 = 0 ; | |
5541 | PyObject *swig_obj[1] ; | |
5542 | ||
5543 | if (!args) SWIG_fail; | |
5544 | swig_obj[0] = args; | |
5545 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5546 | if (!SWIG_IsOK(res1)) { | |
5547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5548 | } | |
5549 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5550 | { | |
5551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5552 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5553 | wxPyEndAllowThreads(__tstate); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
5556 | resultobj = result; | |
5557 | return resultobj; | |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj = 0; | |
5565 | wxPen *arg1 = (wxPen *) 0 ; | |
5566 | PyObject *arg2 = (PyObject *) 0 ; | |
5567 | PyObject *arg3 = (PyObject *) 0 ; | |
5568 | void *argp1 = 0 ; | |
5569 | int res1 = 0 ; | |
5570 | PyObject * obj0 = 0 ; | |
5571 | PyObject * obj1 = 0 ; | |
5572 | PyObject * obj2 = 0 ; | |
5573 | char * kwnames[] = { | |
5574 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5575 | }; | |
5576 | ||
5577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5579 | if (!SWIG_IsOK(res1)) { | |
5580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5581 | } | |
5582 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5583 | arg2 = obj1; | |
5584 | arg3 = obj2; | |
5585 | { | |
5586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5587 | wxPen__SetDashes(arg1,arg2,arg3); | |
5588 | wxPyEndAllowThreads(__tstate); | |
5589 | if (PyErr_Occurred()) SWIG_fail; | |
5590 | } | |
5591 | resultobj = SWIG_Py_Void(); | |
5592 | return resultobj; | |
5593 | fail: | |
5594 | return NULL; | |
d14a1e28 RD |
5595 | } |
5596 | ||
5597 | ||
0085ce49 RD |
5598 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5599 | PyObject *resultobj = 0; | |
5600 | wxPen *arg1 = (wxPen *) 0 ; | |
5601 | int result; | |
5602 | void *argp1 = 0 ; | |
5603 | int res1 = 0 ; | |
5604 | PyObject *swig_obj[1] ; | |
5605 | ||
5606 | if (!args) SWIG_fail; | |
5607 | swig_obj[0] = args; | |
5608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5609 | if (!SWIG_IsOK(res1)) { | |
5610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5611 | } | |
5612 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5613 | { | |
5614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5615 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5616 | wxPyEndAllowThreads(__tstate); | |
5617 | if (PyErr_Occurred()) SWIG_fail; | |
5618 | } | |
5619 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5620 | return resultobj; | |
5621 | fail: | |
5622 | return NULL; | |
5623 | } | |
5624 | ||
5625 | ||
5626 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5627 | PyObject *resultobj = 0; | |
5628 | wxPen *arg1 = (wxPen *) 0 ; | |
5629 | wxPen *arg2 = (wxPen *) 0 ; | |
5630 | bool result; | |
5631 | void *argp1 = 0 ; | |
5632 | int res1 = 0 ; | |
5633 | void *argp2 = 0 ; | |
5634 | int res2 = 0 ; | |
5635 | PyObject * obj0 = 0 ; | |
5636 | PyObject * obj1 = 0 ; | |
5637 | char * kwnames[] = { | |
5638 | (char *) "self",(char *) "other", NULL | |
5639 | }; | |
5640 | ||
5641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5643 | if (!SWIG_IsOK(res1)) { | |
5644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5645 | } | |
5646 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5647 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5648 | if (!SWIG_IsOK(res2)) { | |
5649 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5650 | } | |
5651 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5652 | { | |
5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5654 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5655 | wxPyEndAllowThreads(__tstate); | |
5656 | if (PyErr_Occurred()) SWIG_fail; | |
5657 | } | |
5658 | { | |
5659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5660 | } | |
5661 | return resultobj; | |
5662 | fail: | |
5663 | return NULL; | |
5664 | } | |
5665 | ||
5666 | ||
5667 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5668 | PyObject *resultobj = 0; | |
5669 | wxPen *arg1 = (wxPen *) 0 ; | |
5670 | wxPen *arg2 = (wxPen *) 0 ; | |
5671 | bool result; | |
5672 | void *argp1 = 0 ; | |
5673 | int res1 = 0 ; | |
5674 | void *argp2 = 0 ; | |
5675 | int res2 = 0 ; | |
5676 | PyObject * obj0 = 0 ; | |
5677 | PyObject * obj1 = 0 ; | |
5678 | char * kwnames[] = { | |
5679 | (char *) "self",(char *) "other", NULL | |
5680 | }; | |
5681 | ||
5682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5684 | if (!SWIG_IsOK(res1)) { | |
5685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5686 | } | |
5687 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5688 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5689 | if (!SWIG_IsOK(res2)) { | |
5690 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5691 | } | |
5692 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5693 | { | |
5694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5695 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5696 | wxPyEndAllowThreads(__tstate); | |
5697 | if (PyErr_Occurred()) SWIG_fail; | |
5698 | } | |
5699 | { | |
5700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5701 | } | |
5702 | return resultobj; | |
5703 | fail: | |
5704 | return NULL; | |
d14a1e28 RD |
5705 | } |
5706 | ||
5707 | ||
0085ce49 RD |
5708 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5709 | PyObject *obj; | |
5710 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5711 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5712 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5713 | } |
5714 | ||
0085ce49 RD |
5715 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5716 | return SWIG_Python_InitShadowInstance(args); | |
5717 | } | |
d14a1e28 | 5718 | |
0085ce49 RD |
5719 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5720 | PyObject *resultobj = 0; | |
5721 | wxColour *arg1 = 0 ; | |
5722 | int arg2 = (int) wxSOLID ; | |
5723 | wxBrush *result = 0 ; | |
5724 | wxColour temp1 ; | |
5725 | int val2 ; | |
5726 | int ecode2 = 0 ; | |
5727 | PyObject * obj0 = 0 ; | |
5728 | PyObject * obj1 = 0 ; | |
5729 | char * kwnames[] = { | |
5730 | (char *) "colour",(char *) "style", NULL | |
5731 | }; | |
5732 | ||
5733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5734 | { | |
5735 | arg1 = &temp1; | |
5736 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5737 | } | |
5738 | if (obj1) { | |
5739 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5740 | if (!SWIG_IsOK(ecode2)) { | |
5741 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5742 | } | |
5743 | arg2 = static_cast< int >(val2); | |
5744 | } | |
5745 | { | |
5746 | if (!wxPyCheckForApp()) SWIG_fail; | |
5747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5748 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5749 | wxPyEndAllowThreads(__tstate); | |
5750 | if (PyErr_Occurred()) SWIG_fail; | |
5751 | } | |
5752 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5753 | return resultobj; | |
5754 | fail: | |
5755 | return NULL; | |
5756 | } | |
5757 | ||
5758 | ||
5759 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5760 | PyObject *resultobj = 0; | |
5761 | wxBitmap *arg1 = 0 ; | |
5762 | wxBrush *result = 0 ; | |
5763 | void *argp1 = 0 ; | |
5764 | int res1 = 0 ; | |
5765 | PyObject * obj0 = 0 ; | |
5766 | char * kwnames[] = { | |
5767 | (char *) "stippleBitmap", NULL | |
5768 | }; | |
5769 | ||
5770 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5771 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5772 | if (!SWIG_IsOK(res1)) { | |
5773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5774 | } | |
5775 | if (!argp1) { | |
5776 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5777 | } | |
5778 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5779 | { | |
5780 | if (!wxPyCheckForApp()) SWIG_fail; | |
5781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5782 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5783 | wxPyEndAllowThreads(__tstate); | |
5784 | if (PyErr_Occurred()) SWIG_fail; | |
5785 | } | |
5786 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5787 | return resultobj; | |
5788 | fail: | |
5789 | return NULL; | |
d14a1e28 RD |
5790 | } |
5791 | ||
5792 | ||
0085ce49 RD |
5793 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5794 | PyObject *resultobj = 0; | |
5795 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5796 | void *argp1 = 0 ; | |
5797 | int res1 = 0 ; | |
5798 | PyObject *swig_obj[1] ; | |
5799 | ||
5800 | if (!args) SWIG_fail; | |
5801 | swig_obj[0] = args; | |
5802 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5803 | if (!SWIG_IsOK(res1)) { | |
5804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5805 | } | |
5806 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5807 | { | |
5808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5809 | delete arg1; | |
d14a1e28 | 5810 | |
0085ce49 RD |
5811 | wxPyEndAllowThreads(__tstate); |
5812 | if (PyErr_Occurred()) SWIG_fail; | |
5813 | } | |
5814 | resultobj = SWIG_Py_Void(); | |
5815 | return resultobj; | |
5816 | fail: | |
5817 | return NULL; | |
5818 | } | |
5819 | ||
5820 | ||
5821 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5822 | PyObject *resultobj = 0; | |
5823 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5824 | wxColour *arg2 = 0 ; | |
5825 | void *argp1 = 0 ; | |
5826 | int res1 = 0 ; | |
5827 | wxColour temp2 ; | |
5828 | PyObject * obj0 = 0 ; | |
5829 | PyObject * obj1 = 0 ; | |
5830 | char * kwnames[] = { | |
5831 | (char *) "self",(char *) "col", NULL | |
5832 | }; | |
5833 | ||
5834 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5836 | if (!SWIG_IsOK(res1)) { | |
5837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5838 | } | |
5839 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5840 | { | |
5841 | arg2 = &temp2; | |
5842 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5843 | } | |
5844 | { | |
5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5846 | (arg1)->SetColour((wxColour const &)*arg2); | |
5847 | wxPyEndAllowThreads(__tstate); | |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
5849 | } | |
5850 | resultobj = SWIG_Py_Void(); | |
5851 | return resultobj; | |
5852 | fail: | |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
5857 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5858 | PyObject *resultobj = 0; | |
5859 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5860 | int arg2 ; | |
5861 | void *argp1 = 0 ; | |
5862 | int res1 = 0 ; | |
5863 | int val2 ; | |
5864 | int ecode2 = 0 ; | |
5865 | PyObject * obj0 = 0 ; | |
5866 | PyObject * obj1 = 0 ; | |
5867 | char * kwnames[] = { | |
5868 | (char *) "self",(char *) "style", NULL | |
5869 | }; | |
5870 | ||
5871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5873 | if (!SWIG_IsOK(res1)) { | |
5874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5875 | } | |
5876 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5877 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5878 | if (!SWIG_IsOK(ecode2)) { | |
5879 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5880 | } | |
5881 | arg2 = static_cast< int >(val2); | |
5882 | { | |
5883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5884 | (arg1)->SetStyle(arg2); | |
5885 | wxPyEndAllowThreads(__tstate); | |
5886 | if (PyErr_Occurred()) SWIG_fail; | |
5887 | } | |
5888 | resultobj = SWIG_Py_Void(); | |
5889 | return resultobj; | |
5890 | fail: | |
5891 | return NULL; | |
5892 | } | |
5893 | ||
5894 | ||
5895 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5896 | PyObject *resultobj = 0; | |
5897 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5898 | wxBitmap *arg2 = 0 ; | |
5899 | void *argp1 = 0 ; | |
5900 | int res1 = 0 ; | |
5901 | void *argp2 = 0 ; | |
5902 | int res2 = 0 ; | |
5903 | PyObject * obj0 = 0 ; | |
5904 | PyObject * obj1 = 0 ; | |
5905 | char * kwnames[] = { | |
5906 | (char *) "self",(char *) "stipple", NULL | |
5907 | }; | |
5908 | ||
5909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5911 | if (!SWIG_IsOK(res1)) { | |
5912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5913 | } | |
5914 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5915 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5916 | if (!SWIG_IsOK(res2)) { | |
5917 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5918 | } | |
5919 | if (!argp2) { | |
5920 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5921 | } | |
5922 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5923 | { | |
5924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5925 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5926 | wxPyEndAllowThreads(__tstate); | |
5927 | if (PyErr_Occurred()) SWIG_fail; | |
5928 | } | |
5929 | resultobj = SWIG_Py_Void(); | |
5930 | return resultobj; | |
5931 | fail: | |
5932 | return NULL; | |
d14a1e28 RD |
5933 | } |
5934 | ||
5935 | ||
0085ce49 RD |
5936 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5937 | PyObject *resultobj = 0; | |
5938 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5939 | wxColour result; | |
5940 | void *argp1 = 0 ; | |
5941 | int res1 = 0 ; | |
5942 | PyObject *swig_obj[1] ; | |
5943 | ||
5944 | if (!args) SWIG_fail; | |
5945 | swig_obj[0] = args; | |
5946 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5947 | if (!SWIG_IsOK(res1)) { | |
5948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5949 | } | |
5950 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5951 | { | |
5952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5953 | result = ((wxBrush const *)arg1)->GetColour(); | |
5954 | wxPyEndAllowThreads(__tstate); | |
5955 | if (PyErr_Occurred()) SWIG_fail; | |
5956 | } | |
5957 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5958 | return resultobj; | |
5959 | fail: | |
5960 | return NULL; | |
d14a1e28 RD |
5961 | } |
5962 | ||
5963 | ||
0085ce49 RD |
5964 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5965 | PyObject *resultobj = 0; | |
5966 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5967 | int result; | |
5968 | void *argp1 = 0 ; | |
5969 | int res1 = 0 ; | |
5970 | PyObject *swig_obj[1] ; | |
5971 | ||
5972 | if (!args) SWIG_fail; | |
5973 | swig_obj[0] = args; | |
5974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5975 | if (!SWIG_IsOK(res1)) { | |
5976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5977 | } | |
5978 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5979 | { | |
5980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5981 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5982 | wxPyEndAllowThreads(__tstate); | |
5983 | if (PyErr_Occurred()) SWIG_fail; | |
5984 | } | |
5985 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5986 | return resultobj; | |
5987 | fail: | |
5988 | return NULL; | |
d14a1e28 RD |
5989 | } |
5990 | ||
5991 | ||
0085ce49 RD |
5992 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5993 | PyObject *resultobj = 0; | |
5994 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5995 | wxBitmap *result = 0 ; | |
5996 | void *argp1 = 0 ; | |
5997 | int res1 = 0 ; | |
5998 | PyObject *swig_obj[1] ; | |
5999 | ||
6000 | if (!args) SWIG_fail; | |
6001 | swig_obj[0] = args; | |
6002 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6003 | if (!SWIG_IsOK(res1)) { | |
6004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6005 | } | |
6006 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6007 | { | |
6008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6009 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
6010 | wxPyEndAllowThreads(__tstate); | |
6011 | if (PyErr_Occurred()) SWIG_fail; | |
6012 | } | |
6013 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6014 | return resultobj; | |
6015 | fail: | |
6016 | return NULL; | |
d14a1e28 RD |
6017 | } |
6018 | ||
6019 | ||
0085ce49 RD |
6020 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6021 | PyObject *resultobj = 0; | |
6022 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6023 | bool result; | |
6024 | void *argp1 = 0 ; | |
6025 | int res1 = 0 ; | |
6026 | PyObject *swig_obj[1] ; | |
6027 | ||
6028 | if (!args) SWIG_fail; | |
6029 | swig_obj[0] = args; | |
6030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6031 | if (!SWIG_IsOK(res1)) { | |
6032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6033 | } | |
6034 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6035 | { | |
6036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6037 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
6038 | wxPyEndAllowThreads(__tstate); | |
6039 | if (PyErr_Occurred()) SWIG_fail; | |
6040 | } | |
6041 | { | |
6042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6043 | } | |
6044 | return resultobj; | |
6045 | fail: | |
6046 | return NULL; | |
f78cc896 RD |
6047 | } |
6048 | ||
6049 | ||
b39fe951 | 6050 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6051 | PyObject *resultobj = 0; |
6052 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6053 | bool result; | |
6054 | void *argp1 = 0 ; | |
6055 | int res1 = 0 ; | |
6056 | PyObject *swig_obj[1] ; | |
6057 | ||
6058 | if (!args) SWIG_fail; | |
6059 | swig_obj[0] = args; | |
6060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6061 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
0085ce49 RD |
6063 | } |
6064 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6065 | { | |
6066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 6067 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6068 | wxPyEndAllowThreads(__tstate); |
6069 | if (PyErr_Occurred()) SWIG_fail; | |
6070 | } | |
6071 | { | |
6072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6073 | } | |
6074 | return resultobj; | |
6075 | fail: | |
6076 | return NULL; | |
d14a1e28 RD |
6077 | } |
6078 | ||
6079 | ||
0085ce49 RD |
6080 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6081 | PyObject *obj; | |
6082 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6083 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
6084 | return SWIG_Py_Void(); | |
d14a1e28 RD |
6085 | } |
6086 | ||
0085ce49 RD |
6087 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6088 | return SWIG_Python_InitShadowInstance(args); | |
6089 | } | |
d14a1e28 | 6090 | |
0085ce49 RD |
6091 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6092 | PyObject *resultobj = 0; | |
6093 | wxString *arg1 = 0 ; | |
6094 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
6095 | wxBitmap *result = 0 ; | |
6096 | bool temp1 = false ; | |
6097 | int val2 ; | |
6098 | int ecode2 = 0 ; | |
6099 | PyObject * obj0 = 0 ; | |
6100 | PyObject * obj1 = 0 ; | |
6101 | char * kwnames[] = { | |
6102 | (char *) "name",(char *) "type", NULL | |
6103 | }; | |
6104 | ||
6105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6106 | { | |
6107 | arg1 = wxString_in_helper(obj0); | |
6108 | if (arg1 == NULL) SWIG_fail; | |
6109 | temp1 = true; | |
6110 | } | |
6111 | if (obj1) { | |
6112 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6113 | if (!SWIG_IsOK(ecode2)) { | |
6114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6115 | } | |
6116 | arg2 = static_cast< wxBitmapType >(val2); | |
6117 | } | |
6118 | { | |
6119 | if (!wxPyCheckForApp()) SWIG_fail; | |
6120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6121 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
6122 | wxPyEndAllowThreads(__tstate); | |
6123 | if (PyErr_Occurred()) SWIG_fail; | |
6124 | } | |
6125 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
6126 | { | |
6127 | if (temp1) | |
6128 | delete arg1; | |
6129 | } | |
6130 | return resultobj; | |
6131 | fail: | |
6132 | { | |
6133 | if (temp1) | |
6134 | delete arg1; | |
6135 | } | |
6136 | return NULL; | |
d14a1e28 RD |
6137 | } |
6138 | ||
6139 | ||
0085ce49 RD |
6140 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6141 | PyObject *resultobj = 0; | |
6142 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6143 | void *argp1 = 0 ; | |
6144 | int res1 = 0 ; | |
6145 | PyObject *swig_obj[1] ; | |
6146 | ||
6147 | if (!args) SWIG_fail; | |
6148 | swig_obj[0] = args; | |
6149 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
6150 | if (!SWIG_IsOK(res1)) { | |
6151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6152 | } | |
6153 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6154 | { | |
0085ce49 | 6155 | delete arg1; |
66c033b4 | 6156 | |
0085ce49 RD |
6157 | if (PyErr_Occurred()) SWIG_fail; |
6158 | } | |
6159 | resultobj = SWIG_Py_Void(); | |
6160 | return resultobj; | |
6161 | fail: | |
6162 | return NULL; | |
6163 | } | |
6164 | ||
6165 | ||
6166 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6167 | PyObject *resultobj = 0; | |
6168 | int arg1 ; | |
6169 | int arg2 ; | |
6170 | int arg3 = (int) -1 ; | |
6171 | wxBitmap *result = 0 ; | |
6172 | int val1 ; | |
6173 | int ecode1 = 0 ; | |
6174 | int val2 ; | |
6175 | int ecode2 = 0 ; | |
6176 | int val3 ; | |
6177 | int ecode3 = 0 ; | |
6178 | PyObject * obj0 = 0 ; | |
6179 | PyObject * obj1 = 0 ; | |
6180 | PyObject * obj2 = 0 ; | |
6181 | char * kwnames[] = { | |
6182 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
6183 | }; | |
6184 | ||
6185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6186 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6187 | if (!SWIG_IsOK(ecode1)) { | |
6188 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
6189 | } | |
6190 | arg1 = static_cast< int >(val1); | |
6191 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6192 | if (!SWIG_IsOK(ecode2)) { | |
6193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
6194 | } | |
6195 | arg2 = static_cast< int >(val2); | |
6196 | if (obj2) { | |
6197 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6198 | if (!SWIG_IsOK(ecode3)) { | |
6199 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
6200 | } | |
6201 | arg3 = static_cast< int >(val3); | |
6202 | } | |
6203 | { | |
6204 | if (!wxPyCheckForApp()) SWIG_fail; | |
6205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6206 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
6207 | wxPyEndAllowThreads(__tstate); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | } | |
6210 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6211 | return resultobj; | |
6212 | fail: | |
6213 | return NULL; | |
6214 | } | |
6215 | ||
6216 | ||
6217 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6218 | PyObject *resultobj = 0; | |
6219 | wxIcon *arg1 = 0 ; | |
6220 | wxBitmap *result = 0 ; | |
6221 | void *argp1 = 0 ; | |
6222 | int res1 = 0 ; | |
6223 | PyObject * obj0 = 0 ; | |
6224 | char * kwnames[] = { | |
6225 | (char *) "icon", NULL | |
6226 | }; | |
6227 | ||
6228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6229 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6230 | if (!SWIG_IsOK(res1)) { | |
6231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6232 | } | |
6233 | if (!argp1) { | |
6234 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6235 | } | |
6236 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6237 | { | |
6238 | if (!wxPyCheckForApp()) SWIG_fail; | |
6239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6240 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6241 | wxPyEndAllowThreads(__tstate); | |
6242 | if (PyErr_Occurred()) SWIG_fail; | |
6243 | } | |
6244 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6245 | return resultobj; | |
6246 | fail: | |
6247 | return NULL; | |
6248 | } | |
6249 | ||
6250 | ||
6251 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6252 | PyObject *resultobj = 0; | |
6253 | wxImage *arg1 = 0 ; | |
6254 | int arg2 = (int) -1 ; | |
6255 | wxBitmap *result = 0 ; | |
6256 | void *argp1 = 0 ; | |
6257 | int res1 = 0 ; | |
6258 | int val2 ; | |
6259 | int ecode2 = 0 ; | |
6260 | PyObject * obj0 = 0 ; | |
6261 | PyObject * obj1 = 0 ; | |
6262 | char * kwnames[] = { | |
6263 | (char *) "image",(char *) "depth", NULL | |
6264 | }; | |
6265 | ||
6266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6267 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6268 | if (!SWIG_IsOK(res1)) { | |
6269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6270 | } | |
6271 | if (!argp1) { | |
6272 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6273 | } | |
6274 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6275 | if (obj1) { | |
6276 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6277 | if (!SWIG_IsOK(ecode2)) { | |
6278 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6279 | } | |
6280 | arg2 = static_cast< int >(val2); | |
6281 | } | |
6282 | { | |
6283 | if (!wxPyCheckForApp()) SWIG_fail; | |
6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6285 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6286 | wxPyEndAllowThreads(__tstate); | |
6287 | if (PyErr_Occurred()) SWIG_fail; | |
6288 | } | |
6289 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6290 | return resultobj; | |
6291 | fail: | |
6292 | return NULL; | |
66c033b4 RD |
6293 | } |
6294 | ||
6295 | ||
0085ce49 RD |
6296 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6297 | PyObject *resultobj = 0; | |
6298 | PyObject *arg1 = (PyObject *) 0 ; | |
6299 | wxBitmap *result = 0 ; | |
6300 | PyObject * obj0 = 0 ; | |
6301 | char * kwnames[] = { | |
6302 | (char *) "listOfStrings", NULL | |
6303 | }; | |
6304 | ||
6305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6306 | arg1 = obj0; | |
6307 | { | |
6308 | if (!wxPyCheckForApp()) SWIG_fail; | |
6309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6310 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6311 | wxPyEndAllowThreads(__tstate); | |
6312 | if (PyErr_Occurred()) SWIG_fail; | |
6313 | } | |
6314 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6315 | return resultobj; | |
6316 | fail: | |
6317 | return NULL; | |
6318 | } | |
6319 | ||
6320 | ||
6321 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6322 | PyObject *resultobj = 0; | |
6323 | PyObject *arg1 = (PyObject *) 0 ; | |
6324 | int arg2 ; | |
6325 | int arg3 ; | |
6326 | int arg4 = (int) 1 ; | |
6327 | wxBitmap *result = 0 ; | |
6328 | int val2 ; | |
6329 | int ecode2 = 0 ; | |
6330 | int val3 ; | |
6331 | int ecode3 = 0 ; | |
6332 | int val4 ; | |
6333 | int ecode4 = 0 ; | |
6334 | PyObject * obj0 = 0 ; | |
6335 | PyObject * obj1 = 0 ; | |
6336 | PyObject * obj2 = 0 ; | |
6337 | PyObject * obj3 = 0 ; | |
6338 | char * kwnames[] = { | |
6339 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6340 | }; | |
6341 | ||
6342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6343 | arg1 = obj0; | |
6344 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6345 | if (!SWIG_IsOK(ecode2)) { | |
6346 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6347 | } | |
6348 | arg2 = static_cast< int >(val2); | |
6349 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6350 | if (!SWIG_IsOK(ecode3)) { | |
6351 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6352 | } | |
6353 | arg3 = static_cast< int >(val3); | |
6354 | if (obj3) { | |
6355 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6356 | if (!SWIG_IsOK(ecode4)) { | |
6357 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6358 | } | |
6359 | arg4 = static_cast< int >(val4); | |
6360 | } | |
6361 | { | |
6362 | if (!wxPyCheckForApp()) SWIG_fail; | |
6363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6364 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6365 | wxPyEndAllowThreads(__tstate); | |
6366 | if (PyErr_Occurred()) SWIG_fail; | |
6367 | } | |
6368 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6369 | return resultobj; | |
6370 | fail: | |
6371 | return NULL; | |
d14a1e28 RD |
6372 | } |
6373 | ||
6374 | ||
b39fe951 | 6375 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6376 | PyObject *resultobj = 0; |
6377 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6378 | bool result; | |
6379 | void *argp1 = 0 ; | |
6380 | int res1 = 0 ; | |
6381 | PyObject *swig_obj[1] ; | |
6382 | ||
6383 | if (!args) SWIG_fail; | |
6384 | swig_obj[0] = args; | |
6385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6386 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
0085ce49 RD |
6388 | } |
6389 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6390 | { | |
b39fe951 | 6391 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6392 | if (PyErr_Occurred()) SWIG_fail; |
6393 | } | |
6394 | { | |
6395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6396 | } | |
6397 | return resultobj; | |
6398 | fail: | |
6399 | return NULL; | |
d14a1e28 RD |
6400 | } |
6401 | ||
6402 | ||
0085ce49 RD |
6403 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6404 | PyObject *resultobj = 0; | |
6405 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6406 | int result; | |
6407 | void *argp1 = 0 ; | |
6408 | int res1 = 0 ; | |
6409 | PyObject *swig_obj[1] ; | |
6410 | ||
6411 | if (!args) SWIG_fail; | |
6412 | swig_obj[0] = args; | |
6413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6414 | if (!SWIG_IsOK(res1)) { | |
6415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6416 | } | |
6417 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6418 | { | |
0085ce49 | 6419 | result = (int)(arg1)->GetWidth(); |
0085ce49 RD |
6420 | if (PyErr_Occurred()) SWIG_fail; |
6421 | } | |
6422 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6423 | return resultobj; | |
6424 | fail: | |
6425 | return NULL; | |
d14a1e28 RD |
6426 | } |
6427 | ||
6428 | ||
0085ce49 RD |
6429 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6430 | PyObject *resultobj = 0; | |
6431 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6432 | int result; | |
6433 | void *argp1 = 0 ; | |
6434 | int res1 = 0 ; | |
6435 | PyObject *swig_obj[1] ; | |
6436 | ||
6437 | if (!args) SWIG_fail; | |
6438 | swig_obj[0] = args; | |
6439 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6440 | if (!SWIG_IsOK(res1)) { | |
6441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6442 | } | |
6443 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6444 | { | |
0085ce49 | 6445 | result = (int)(arg1)->GetHeight(); |
0085ce49 RD |
6446 | if (PyErr_Occurred()) SWIG_fail; |
6447 | } | |
6448 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6449 | return resultobj; | |
6450 | fail: | |
6451 | return NULL; | |
d14a1e28 RD |
6452 | } |
6453 | ||
6454 | ||
0085ce49 RD |
6455 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6456 | PyObject *resultobj = 0; | |
6457 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6458 | int result; | |
6459 | void *argp1 = 0 ; | |
6460 | int res1 = 0 ; | |
6461 | PyObject *swig_obj[1] ; | |
6462 | ||
6463 | if (!args) SWIG_fail; | |
6464 | swig_obj[0] = args; | |
6465 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6466 | if (!SWIG_IsOK(res1)) { | |
6467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6468 | } | |
6469 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6470 | { | |
0085ce49 | 6471 | result = (int)(arg1)->GetDepth(); |
0085ce49 RD |
6472 | if (PyErr_Occurred()) SWIG_fail; |
6473 | } | |
6474 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6475 | return resultobj; | |
6476 | fail: | |
6477 | return NULL; | |
d14a1e28 RD |
6478 | } |
6479 | ||
6480 | ||
0085ce49 RD |
6481 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6482 | PyObject *resultobj = 0; | |
6483 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6484 | wxSize result; | |
6485 | void *argp1 = 0 ; | |
6486 | int res1 = 0 ; | |
6487 | PyObject *swig_obj[1] ; | |
6488 | ||
6489 | if (!args) SWIG_fail; | |
6490 | swig_obj[0] = args; | |
6491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6492 | if (!SWIG_IsOK(res1)) { | |
6493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6494 | } | |
6495 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6496 | { | |
0085ce49 | 6497 | result = wxBitmap_GetSize(arg1); |
0085ce49 RD |
6498 | if (PyErr_Occurred()) SWIG_fail; |
6499 | } | |
6500 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6501 | return resultobj; | |
6502 | fail: | |
6503 | return NULL; | |
d14a1e28 RD |
6504 | } |
6505 | ||
6506 | ||
0085ce49 RD |
6507 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6508 | PyObject *resultobj = 0; | |
6509 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6510 | SwigValueWrapper<wxImage > result; | |
6511 | void *argp1 = 0 ; | |
6512 | int res1 = 0 ; | |
6513 | PyObject *swig_obj[1] ; | |
6514 | ||
6515 | if (!args) SWIG_fail; | |
6516 | swig_obj[0] = args; | |
6517 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6518 | if (!SWIG_IsOK(res1)) { | |
6519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6520 | } | |
6521 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6522 | { | |
0085ce49 | 6523 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
0085ce49 RD |
6524 | if (PyErr_Occurred()) SWIG_fail; |
6525 | } | |
6526 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6527 | return resultobj; | |
6528 | fail: | |
6529 | return NULL; | |
d14a1e28 RD |
6530 | } |
6531 | ||
6532 | ||
0085ce49 RD |
6533 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6534 | PyObject *resultobj = 0; | |
6535 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6536 | wxMask *result = 0 ; | |
6537 | void *argp1 = 0 ; | |
6538 | int res1 = 0 ; | |
6539 | PyObject *swig_obj[1] ; | |
6540 | ||
6541 | if (!args) SWIG_fail; | |
6542 | swig_obj[0] = args; | |
6543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6544 | if (!SWIG_IsOK(res1)) { | |
6545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6546 | } | |
6547 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6548 | { | |
0085ce49 | 6549 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
0085ce49 RD |
6550 | if (PyErr_Occurred()) SWIG_fail; |
6551 | } | |
6552 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6553 | return resultobj; | |
6554 | fail: | |
6555 | return NULL; | |
6556 | } | |
6557 | ||
6558 | ||
6559 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6560 | PyObject *resultobj = 0; | |
6561 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6562 | wxMask *arg2 = (wxMask *) 0 ; | |
6563 | void *argp1 = 0 ; | |
6564 | int res1 = 0 ; | |
6565 | int res2 = 0 ; | |
6566 | PyObject * obj0 = 0 ; | |
6567 | PyObject * obj1 = 0 ; | |
6568 | char * kwnames[] = { | |
6569 | (char *) "self",(char *) "mask", NULL | |
6570 | }; | |
6571 | ||
6572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6574 | if (!SWIG_IsOK(res1)) { | |
6575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6576 | } | |
6577 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6578 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6579 | if (!SWIG_IsOK(res2)) { | |
6580 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6581 | } | |
6582 | { | |
0085ce49 | 6583 | (arg1)->SetMask(arg2); |
0085ce49 RD |
6584 | if (PyErr_Occurred()) SWIG_fail; |
6585 | } | |
6586 | resultobj = SWIG_Py_Void(); | |
6587 | return resultobj; | |
6588 | fail: | |
6589 | return NULL; | |
6590 | } | |
6591 | ||
6592 | ||
6593 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6594 | PyObject *resultobj = 0; | |
6595 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6596 | wxColour *arg2 = 0 ; | |
6597 | void *argp1 = 0 ; | |
6598 | int res1 = 0 ; | |
6599 | wxColour temp2 ; | |
6600 | PyObject * obj0 = 0 ; | |
6601 | PyObject * obj1 = 0 ; | |
6602 | char * kwnames[] = { | |
6603 | (char *) "self",(char *) "colour", NULL | |
6604 | }; | |
6605 | ||
6606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6608 | if (!SWIG_IsOK(res1)) { | |
6609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6610 | } | |
6611 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6612 | { | |
6613 | arg2 = &temp2; | |
6614 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6615 | } | |
6616 | { | |
0085ce49 | 6617 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
0085ce49 RD |
6618 | if (PyErr_Occurred()) SWIG_fail; |
6619 | } | |
6620 | resultobj = SWIG_Py_Void(); | |
6621 | return resultobj; | |
6622 | fail: | |
6623 | return NULL; | |
6624 | } | |
6625 | ||
6626 | ||
6627 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6628 | PyObject *resultobj = 0; | |
6629 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6630 | wxRect *arg2 = 0 ; | |
6631 | SwigValueWrapper<wxBitmap > result; | |
6632 | void *argp1 = 0 ; | |
6633 | int res1 = 0 ; | |
6634 | wxRect temp2 ; | |
6635 | PyObject * obj0 = 0 ; | |
6636 | PyObject * obj1 = 0 ; | |
6637 | char * kwnames[] = { | |
6638 | (char *) "self",(char *) "rect", NULL | |
6639 | }; | |
6640 | ||
6641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6643 | if (!SWIG_IsOK(res1)) { | |
6644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6645 | } | |
6646 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6647 | { | |
6648 | arg2 = &temp2; | |
6649 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6650 | } | |
6651 | { | |
0085ce49 | 6652 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
0085ce49 RD |
6653 | if (PyErr_Occurred()) SWIG_fail; |
6654 | } | |
6655 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6656 | return resultobj; | |
6657 | fail: | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
6662 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6663 | PyObject *resultobj = 0; | |
6664 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6665 | wxString *arg2 = 0 ; | |
6666 | wxBitmapType arg3 ; | |
6667 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6668 | bool result; | |
6669 | void *argp1 = 0 ; | |
6670 | int res1 = 0 ; | |
6671 | bool temp2 = false ; | |
6672 | int val3 ; | |
6673 | int ecode3 = 0 ; | |
6674 | void *argp4 = 0 ; | |
6675 | int res4 = 0 ; | |
6676 | PyObject * obj0 = 0 ; | |
6677 | PyObject * obj1 = 0 ; | |
6678 | PyObject * obj2 = 0 ; | |
6679 | PyObject * obj3 = 0 ; | |
6680 | char * kwnames[] = { | |
6681 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6682 | }; | |
6683 | ||
6684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6686 | if (!SWIG_IsOK(res1)) { | |
6687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6688 | } | |
6689 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6690 | { | |
6691 | arg2 = wxString_in_helper(obj1); | |
6692 | if (arg2 == NULL) SWIG_fail; | |
6693 | temp2 = true; | |
6694 | } | |
6695 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6696 | if (!SWIG_IsOK(ecode3)) { | |
6697 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6698 | } | |
6699 | arg3 = static_cast< wxBitmapType >(val3); | |
6700 | if (obj3) { | |
6701 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6702 | if (!SWIG_IsOK(res4)) { | |
6703 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6704 | } |
0085ce49 RD |
6705 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6706 | } | |
6707 | { | |
0085ce49 | 6708 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
0085ce49 RD |
6709 | if (PyErr_Occurred()) SWIG_fail; |
6710 | } | |
6711 | { | |
6712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6713 | } | |
6714 | { | |
6715 | if (temp2) | |
6716 | delete arg2; | |
6717 | } | |
6718 | return resultobj; | |
6719 | fail: | |
6720 | { | |
6721 | if (temp2) | |
6722 | delete arg2; | |
6723 | } | |
6724 | return NULL; | |
6725 | } | |
6726 | ||
6727 | ||
6728 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6729 | PyObject *resultobj = 0; | |
6730 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6731 | wxString *arg2 = 0 ; | |
6732 | wxBitmapType arg3 ; | |
6733 | bool result; | |
6734 | void *argp1 = 0 ; | |
6735 | int res1 = 0 ; | |
6736 | bool temp2 = false ; | |
6737 | int val3 ; | |
6738 | int ecode3 = 0 ; | |
6739 | PyObject * obj0 = 0 ; | |
6740 | PyObject * obj1 = 0 ; | |
6741 | PyObject * obj2 = 0 ; | |
6742 | char * kwnames[] = { | |
6743 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6744 | }; | |
6745 | ||
6746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6748 | if (!SWIG_IsOK(res1)) { | |
6749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6750 | } | |
6751 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6752 | { | |
6753 | arg2 = wxString_in_helper(obj1); | |
6754 | if (arg2 == NULL) SWIG_fail; | |
6755 | temp2 = true; | |
6756 | } | |
6757 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6758 | if (!SWIG_IsOK(ecode3)) { | |
6759 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6760 | } | |
6761 | arg3 = static_cast< wxBitmapType >(val3); | |
6762 | { | |
0085ce49 | 6763 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
6764 | if (PyErr_Occurred()) SWIG_fail; |
6765 | } | |
6766 | { | |
6767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6768 | } | |
6769 | { | |
6770 | if (temp2) | |
6771 | delete arg2; | |
6772 | } | |
6773 | return resultobj; | |
6774 | fail: | |
6775 | { | |
6776 | if (temp2) | |
6777 | delete arg2; | |
6778 | } | |
6779 | return NULL; | |
d04418a7 RD |
6780 | } |
6781 | ||
6782 | ||
0085ce49 RD |
6783 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6784 | PyObject *resultobj = 0; | |
6785 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6786 | wxPalette *result = 0 ; | |
6787 | void *argp1 = 0 ; | |
6788 | int res1 = 0 ; | |
6789 | PyObject *swig_obj[1] ; | |
6790 | ||
6791 | if (!args) SWIG_fail; | |
6792 | swig_obj[0] = args; | |
6793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6794 | if (!SWIG_IsOK(res1)) { | |
6795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6796 | } | |
6797 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6798 | { | |
0085ce49 | 6799 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
0085ce49 RD |
6800 | if (PyErr_Occurred()) SWIG_fail; |
6801 | } | |
6802 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6803 | return resultobj; | |
6804 | fail: | |
6805 | return NULL; | |
6806 | } | |
6807 | ||
6808 | ||
6809 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6810 | PyObject *resultobj = 0; | |
6811 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6812 | wxIcon *arg2 = 0 ; | |
6813 | bool result; | |
6814 | void *argp1 = 0 ; | |
6815 | int res1 = 0 ; | |
6816 | void *argp2 = 0 ; | |
6817 | int res2 = 0 ; | |
6818 | PyObject * obj0 = 0 ; | |
6819 | PyObject * obj1 = 0 ; | |
6820 | char * kwnames[] = { | |
6821 | (char *) "self",(char *) "icon", NULL | |
6822 | }; | |
6823 | ||
6824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6826 | if (!SWIG_IsOK(res1)) { | |
6827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6828 | } | |
6829 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6830 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6831 | if (!SWIG_IsOK(res2)) { | |
6832 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6833 | } | |
6834 | if (!argp2) { | |
6835 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6836 | } | |
6837 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6838 | { | |
0085ce49 | 6839 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
0085ce49 RD |
6840 | if (PyErr_Occurred()) SWIG_fail; |
6841 | } | |
6842 | { | |
6843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6844 | } | |
6845 | return resultobj; | |
6846 | fail: | |
6847 | return NULL; | |
6848 | } | |
6849 | ||
6850 | ||
6851 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6852 | PyObject *resultobj = 0; | |
6853 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6854 | int arg2 ; | |
6855 | void *argp1 = 0 ; | |
6856 | int res1 = 0 ; | |
6857 | int val2 ; | |
6858 | int ecode2 = 0 ; | |
6859 | PyObject * obj0 = 0 ; | |
6860 | PyObject * obj1 = 0 ; | |
6861 | char * kwnames[] = { | |
6862 | (char *) "self",(char *) "height", NULL | |
6863 | }; | |
6864 | ||
6865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6867 | if (!SWIG_IsOK(res1)) { | |
6868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6869 | } | |
6870 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6871 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6872 | if (!SWIG_IsOK(ecode2)) { | |
6873 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6874 | } | |
6875 | arg2 = static_cast< int >(val2); | |
6876 | { | |
0085ce49 | 6877 | (arg1)->SetHeight(arg2); |
0085ce49 RD |
6878 | if (PyErr_Occurred()) SWIG_fail; |
6879 | } | |
6880 | resultobj = SWIG_Py_Void(); | |
6881 | return resultobj; | |
6882 | fail: | |
6883 | return NULL; | |
6884 | } | |
6885 | ||
6886 | ||
6887 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6888 | PyObject *resultobj = 0; | |
6889 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6890 | int arg2 ; | |
6891 | void *argp1 = 0 ; | |
6892 | int res1 = 0 ; | |
6893 | int val2 ; | |
6894 | int ecode2 = 0 ; | |
6895 | PyObject * obj0 = 0 ; | |
6896 | PyObject * obj1 = 0 ; | |
6897 | char * kwnames[] = { | |
6898 | (char *) "self",(char *) "width", NULL | |
6899 | }; | |
6900 | ||
6901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6903 | if (!SWIG_IsOK(res1)) { | |
6904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6905 | } | |
6906 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6907 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6908 | if (!SWIG_IsOK(ecode2)) { | |
6909 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6910 | } | |
6911 | arg2 = static_cast< int >(val2); | |
6912 | { | |
0085ce49 | 6913 | (arg1)->SetWidth(arg2); |
0085ce49 RD |
6914 | if (PyErr_Occurred()) SWIG_fail; |
6915 | } | |
6916 | resultobj = SWIG_Py_Void(); | |
6917 | return resultobj; | |
6918 | fail: | |
6919 | return NULL; | |
6920 | } | |
6921 | ||
6922 | ||
6923 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6924 | PyObject *resultobj = 0; | |
6925 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6926 | int arg2 ; | |
6927 | void *argp1 = 0 ; | |
6928 | int res1 = 0 ; | |
6929 | int val2 ; | |
6930 | int ecode2 = 0 ; | |
6931 | PyObject * obj0 = 0 ; | |
6932 | PyObject * obj1 = 0 ; | |
6933 | char * kwnames[] = { | |
6934 | (char *) "self",(char *) "depth", NULL | |
6935 | }; | |
6936 | ||
6937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6939 | if (!SWIG_IsOK(res1)) { | |
6940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6941 | } | |
6942 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6943 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6944 | if (!SWIG_IsOK(ecode2)) { | |
6945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6946 | } | |
6947 | arg2 = static_cast< int >(val2); | |
6948 | { | |
0085ce49 | 6949 | (arg1)->SetDepth(arg2); |
0085ce49 RD |
6950 | if (PyErr_Occurred()) SWIG_fail; |
6951 | } | |
6952 | resultobj = SWIG_Py_Void(); | |
6953 | return resultobj; | |
6954 | fail: | |
6955 | return NULL; | |
6956 | } | |
6957 | ||
6958 | ||
6959 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6960 | PyObject *resultobj = 0; | |
6961 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6962 | wxSize *arg2 = 0 ; | |
6963 | void *argp1 = 0 ; | |
6964 | int res1 = 0 ; | |
6965 | wxSize temp2 ; | |
6966 | PyObject * obj0 = 0 ; | |
6967 | PyObject * obj1 = 0 ; | |
6968 | char * kwnames[] = { | |
6969 | (char *) "self",(char *) "size", NULL | |
6970 | }; | |
6971 | ||
6972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6974 | if (!SWIG_IsOK(res1)) { | |
6975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6976 | } | |
6977 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6978 | { | |
6979 | arg2 = &temp2; | |
6980 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6981 | } | |
6982 | { | |
0085ce49 | 6983 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
0085ce49 RD |
6984 | if (PyErr_Occurred()) SWIG_fail; |
6985 | } | |
6986 | resultobj = SWIG_Py_Void(); | |
6987 | return resultobj; | |
6988 | fail: | |
6989 | return NULL; | |
6990 | } | |
6991 | ||
6992 | ||
8f514ab4 RD |
6993 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6994 | PyObject *resultobj = 0; | |
6995 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6996 | buffer arg2 ; | |
6997 | int arg3 ; | |
6998 | void *argp1 = 0 ; | |
6999 | int res1 = 0 ; | |
7000 | Py_ssize_t temp2 ; | |
7001 | PyObject * obj0 = 0 ; | |
7002 | PyObject * obj1 = 0 ; | |
7003 | char * kwnames[] = { | |
7004 | (char *) "self",(char *) "data", NULL | |
7005 | }; | |
7006 | ||
7007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7009 | if (!SWIG_IsOK(res1)) { | |
7010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7011 | } | |
7012 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7013 | { | |
7014 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7015 | arg3 = (int)temp2; | |
7016 | } | |
7017 | { | |
7018 | wxBitmap_CopyFromBuffer(arg1,arg2,arg3); | |
7019 | if (PyErr_Occurred()) SWIG_fail; | |
7020 | } | |
7021 | resultobj = SWIG_Py_Void(); | |
7022 | return resultobj; | |
7023 | fail: | |
7024 | return NULL; | |
7025 | } | |
7026 | ||
7027 | ||
7028 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7029 | PyObject *resultobj = 0; | |
7030 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7031 | buffer arg2 ; | |
7032 | int arg3 ; | |
7033 | void *argp1 = 0 ; | |
7034 | int res1 = 0 ; | |
7035 | Py_ssize_t temp2 ; | |
7036 | PyObject * obj0 = 0 ; | |
7037 | PyObject * obj1 = 0 ; | |
7038 | char * kwnames[] = { | |
7039 | (char *) "self",(char *) "data", NULL | |
7040 | }; | |
7041 | ||
7042 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail; | |
7043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7044 | if (!SWIG_IsOK(res1)) { | |
7045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7046 | } | |
7047 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7048 | { | |
7049 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7050 | arg3 = (int)temp2; | |
7051 | } | |
7052 | { | |
7053 | wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3); | |
7054 | if (PyErr_Occurred()) SWIG_fail; | |
7055 | } | |
7056 | resultobj = SWIG_Py_Void(); | |
7057 | return resultobj; | |
7058 | fail: | |
7059 | return NULL; | |
7060 | } | |
7061 | ||
7062 | ||
0085ce49 RD |
7063 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7064 | PyObject *resultobj = 0; | |
7065 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7066 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7067 | bool result; | |
7068 | void *argp1 = 0 ; | |
7069 | int res1 = 0 ; | |
7070 | void *argp2 = 0 ; | |
7071 | int res2 = 0 ; | |
7072 | PyObject * obj0 = 0 ; | |
7073 | PyObject * obj1 = 0 ; | |
7074 | char * kwnames[] = { | |
7075 | (char *) "self",(char *) "other", NULL | |
7076 | }; | |
7077 | ||
7078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7080 | if (!SWIG_IsOK(res1)) { | |
7081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7082 | } | |
7083 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7084 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7085 | if (!SWIG_IsOK(res2)) { | |
7086 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7087 | } | |
7088 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7089 | { | |
0085ce49 | 7090 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
0085ce49 RD |
7091 | if (PyErr_Occurred()) SWIG_fail; |
7092 | } | |
7093 | { | |
fc46b7f3 RD |
7094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7095 | } | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | return NULL; | |
7099 | } | |
7100 | ||
7101 | ||
7102 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7103 | PyObject *resultobj = 0; | |
7104 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7105 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7106 | bool result; | |
7107 | void *argp1 = 0 ; | |
7108 | int res1 = 0 ; | |
7109 | void *argp2 = 0 ; | |
7110 | int res2 = 0 ; | |
7111 | PyObject * obj0 = 0 ; | |
7112 | PyObject * obj1 = 0 ; | |
7113 | char * kwnames[] = { | |
7114 | (char *) "self",(char *) "other", NULL | |
7115 | }; | |
7116 | ||
7117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7119 | if (!SWIG_IsOK(res1)) { | |
7120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7121 | } | |
7122 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7123 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7124 | if (!SWIG_IsOK(res2)) { | |
7125 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7126 | } | |
7127 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7128 | { | |
7129 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
7130 | if (PyErr_Occurred()) SWIG_fail; | |
7131 | } | |
7132 | { | |
7133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7134 | } | |
7135 | return resultobj; | |
7136 | fail: | |
7137 | return NULL; | |
7138 | } | |
7139 | ||
7140 | ||
7141 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7142 | PyObject *obj; | |
7143 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7144 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
7145 | return SWIG_Py_Void(); | |
7146 | } | |
7147 | ||
7148 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7149 | return SWIG_Python_InitShadowInstance(args); | |
7150 | } | |
7151 | ||
7152 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7153 | PyObject *resultobj = 0; | |
7154 | int arg1 ; | |
7155 | int arg2 ; | |
7156 | buffer arg3 ; | |
7157 | int arg4 ; | |
7158 | buffer arg5 ; | |
7159 | int arg6 ; | |
7160 | wxBitmap *result = 0 ; | |
7161 | int val1 ; | |
7162 | int ecode1 = 0 ; | |
7163 | int val2 ; | |
7164 | int ecode2 = 0 ; | |
c79fdf86 RD |
7165 | Py_ssize_t temp3 ; |
7166 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
7167 | PyObject * obj0 = 0 ; |
7168 | PyObject * obj1 = 0 ; | |
7169 | PyObject * obj2 = 0 ; | |
7170 | PyObject * obj3 = 0 ; | |
7171 | char * kwnames[] = { | |
7172 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7173 | }; | |
7174 | ||
7175 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7176 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7177 | if (!SWIG_IsOK(ecode1)) { | |
7178 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7179 | } | |
7180 | arg1 = static_cast< int >(val1); | |
7181 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7182 | if (!SWIG_IsOK(ecode2)) { | |
7183 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7184 | } | |
7185 | arg2 = static_cast< int >(val2); | |
7186 | { | |
c79fdf86 RD |
7187 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7188 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7189 | } |
7190 | { | |
7191 | if (obj3 != Py_None) { | |
c79fdf86 RD |
7192 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7193 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7194 | } |
7195 | } | |
7196 | { | |
7197 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7198 | if (PyErr_Occurred()) SWIG_fail; | |
7199 | } | |
7200 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7201 | return resultobj; | |
7202 | fail: | |
7203 | return NULL; | |
7204 | } | |
7205 | ||
7206 | ||
7207 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7208 | PyObject *resultobj = 0; | |
7209 | int arg1 ; | |
7210 | int arg2 ; | |
7211 | buffer arg3 ; | |
7212 | int arg4 ; | |
7213 | wxBitmap *result = 0 ; | |
7214 | int val1 ; | |
7215 | int ecode1 = 0 ; | |
7216 | int val2 ; | |
7217 | int ecode2 = 0 ; | |
c79fdf86 | 7218 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7219 | PyObject * obj0 = 0 ; |
7220 | PyObject * obj1 = 0 ; | |
7221 | PyObject * obj2 = 0 ; | |
7222 | char * kwnames[] = { | |
7223 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7224 | }; | |
7225 | ||
7226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7227 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7228 | if (!SWIG_IsOK(ecode1)) { | |
7229 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7230 | } | |
7231 | arg1 = static_cast< int >(val1); | |
7232 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7233 | if (!SWIG_IsOK(ecode2)) { | |
7234 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7235 | } | |
7236 | arg2 = static_cast< int >(val2); | |
7237 | { | |
c79fdf86 RD |
7238 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7239 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7240 | } |
7241 | { | |
7242 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7243 | if (PyErr_Occurred()) SWIG_fail; | |
7244 | } | |
7245 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
7252 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7253 | PyObject *resultobj = 0; | |
7254 | int arg1 ; | |
7255 | int arg2 ; | |
7256 | buffer arg3 ; | |
7257 | int arg4 ; | |
7258 | wxBitmap *result = 0 ; | |
7259 | int val1 ; | |
7260 | int ecode1 = 0 ; | |
7261 | int val2 ; | |
7262 | int ecode2 = 0 ; | |
c79fdf86 | 7263 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7264 | PyObject * obj0 = 0 ; |
7265 | PyObject * obj1 = 0 ; | |
7266 | PyObject * obj2 = 0 ; | |
7267 | char * kwnames[] = { | |
7268 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7269 | }; | |
7270 | ||
7271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7272 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7273 | if (!SWIG_IsOK(ecode1)) { | |
7274 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7275 | } | |
7276 | arg1 = static_cast< int >(val1); | |
7277 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7278 | if (!SWIG_IsOK(ecode2)) { | |
7279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7280 | } | |
7281 | arg2 = static_cast< int >(val2); | |
7282 | { | |
c79fdf86 RD |
7283 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7284 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7285 | } |
7286 | { | |
7287 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7288 | if (PyErr_Occurred()) SWIG_fail; | |
7289 | } | |
7290 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7291 | return resultobj; | |
7292 | fail: | |
7293 | return NULL; | |
7294 | } | |
7295 | ||
7296 | ||
7297 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7298 | PyObject *resultobj = 0; | |
7299 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7300 | wxPoint result; | |
7301 | void *argp1 = 0 ; | |
7302 | int res1 = 0 ; | |
7303 | PyObject *swig_obj[1] ; | |
7304 | ||
7305 | if (!args) SWIG_fail; | |
7306 | swig_obj[0] = args; | |
7307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7308 | if (!SWIG_IsOK(res1)) { | |
7309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7310 | } | |
7311 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7312 | { | |
7313 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7314 | if (PyErr_Occurred()) SWIG_fail; | |
7315 | } | |
7316 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7317 | return resultobj; | |
7318 | fail: | |
7319 | return NULL; | |
7320 | } | |
7321 | ||
7322 | ||
7323 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7324 | PyObject *resultobj = 0; | |
7325 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7326 | int result; | |
7327 | void *argp1 = 0 ; | |
7328 | int res1 = 0 ; | |
7329 | PyObject *swig_obj[1] ; | |
7330 | ||
7331 | if (!args) SWIG_fail; | |
7332 | swig_obj[0] = args; | |
7333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7334 | if (!SWIG_IsOK(res1)) { | |
7335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7336 | } | |
7337 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7338 | { | |
7339 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7340 | if (PyErr_Occurred()) SWIG_fail; | |
7341 | } | |
7342 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7343 | return resultobj; | |
7344 | fail: | |
7345 | return NULL; | |
7346 | } | |
7347 | ||
7348 | ||
7349 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7350 | PyObject *resultobj = 0; | |
7351 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7352 | int result; | |
7353 | void *argp1 = 0 ; | |
7354 | int res1 = 0 ; | |
7355 | PyObject *swig_obj[1] ; | |
7356 | ||
7357 | if (!args) SWIG_fail; | |
7358 | swig_obj[0] = args; | |
7359 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7360 | if (!SWIG_IsOK(res1)) { | |
7361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7362 | } | |
7363 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7364 | { | |
7365 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7366 | if (PyErr_Occurred()) SWIG_fail; | |
7367 | } | |
7368 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7369 | return resultobj; | |
7370 | fail: | |
7371 | return NULL; | |
7372 | } | |
7373 | ||
7374 | ||
7375 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7376 | PyObject *resultobj = 0; | |
7377 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7378 | wxSize result; | |
7379 | void *argp1 = 0 ; | |
7380 | int res1 = 0 ; | |
7381 | PyObject *swig_obj[1] ; | |
7382 | ||
7383 | if (!args) SWIG_fail; | |
7384 | swig_obj[0] = args; | |
7385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7386 | if (!SWIG_IsOK(res1)) { | |
7387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7388 | } | |
7389 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7390 | { | |
7391 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7392 | if (PyErr_Occurred()) SWIG_fail; | |
7393 | } | |
7394 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7395 | return resultobj; | |
7396 | fail: | |
7397 | return NULL; | |
7398 | } | |
7399 | ||
7400 | ||
7401 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7402 | PyObject *resultobj = 0; | |
7403 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7404 | int result; | |
7405 | void *argp1 = 0 ; | |
7406 | int res1 = 0 ; | |
7407 | PyObject *swig_obj[1] ; | |
7408 | ||
7409 | if (!args) SWIG_fail; | |
7410 | swig_obj[0] = args; | |
7411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7412 | if (!SWIG_IsOK(res1)) { | |
7413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7414 | } | |
7415 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7416 | { | |
7417 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7418 | if (PyErr_Occurred()) SWIG_fail; | |
7419 | } | |
7420 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7421 | return resultobj; | |
7422 | fail: | |
7423 | return NULL; | |
7424 | } | |
7425 | ||
7426 | ||
7427 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7428 | PyObject *obj; | |
7429 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7430 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7431 | return SWIG_Py_Void(); | |
7432 | } | |
7433 | ||
7434 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7435 | PyObject *resultobj = 0; | |
7436 | wxBitmap *arg1 = 0 ; | |
7437 | wxNativePixelData *result = 0 ; | |
7438 | void *argp1 = 0 ; | |
7439 | int res1 = 0 ; | |
7440 | ||
7441 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7443 | if (!SWIG_IsOK(res1)) { | |
7444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7445 | } | |
7446 | if (!argp1) { | |
7447 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7448 | } | |
7449 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7450 | { | |
7451 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7452 | if (PyErr_Occurred()) SWIG_fail; | |
7453 | } | |
7454 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7455 | return resultobj; | |
7456 | fail: | |
7457 | return NULL; | |
7458 | } | |
7459 | ||
7460 | ||
7461 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7462 | PyObject *resultobj = 0; | |
7463 | wxBitmap *arg1 = 0 ; | |
7464 | wxRect *arg2 = 0 ; | |
7465 | wxNativePixelData *result = 0 ; | |
7466 | void *argp1 = 0 ; | |
7467 | int res1 = 0 ; | |
7468 | wxRect temp2 ; | |
7469 | ||
7470 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7472 | if (!SWIG_IsOK(res1)) { | |
7473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7474 | } | |
7475 | if (!argp1) { | |
7476 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7477 | } | |
7478 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7479 | { | |
7480 | arg2 = &temp2; | |
7481 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7482 | } | |
7483 | { | |
7484 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
7486 | } | |
7487 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7488 | return resultobj; | |
7489 | fail: | |
7490 | return NULL; | |
7491 | } | |
7492 | ||
7493 | ||
7494 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7495 | PyObject *resultobj = 0; | |
7496 | wxBitmap *arg1 = 0 ; | |
7497 | wxPoint *arg2 = 0 ; | |
7498 | wxSize *arg3 = 0 ; | |
7499 | wxNativePixelData *result = 0 ; | |
7500 | void *argp1 = 0 ; | |
7501 | int res1 = 0 ; | |
7502 | wxPoint temp2 ; | |
7503 | wxSize temp3 ; | |
7504 | ||
7505 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7506 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7507 | if (!SWIG_IsOK(res1)) { | |
7508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7509 | } | |
7510 | if (!argp1) { | |
7511 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7512 | } | |
7513 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7514 | { | |
7515 | arg2 = &temp2; | |
7516 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7517 | } | |
7518 | { | |
7519 | arg3 = &temp3; | |
7520 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7521 | } | |
7522 | { | |
7523 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | } | |
7526 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7527 | return resultobj; | |
7528 | fail: | |
7529 | return NULL; | |
7530 | } | |
7531 | ||
7532 | ||
7533 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7534 | int argc; | |
7535 | PyObject *argv[4]; | |
7536 | ||
7537 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7538 | --argc; | |
7539 | if (argc == 1) { | |
7540 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7541 | } | |
7542 | if (argc == 2) { | |
7543 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7544 | } | |
7545 | if (argc == 3) { | |
7546 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7547 | } | |
7548 | ||
7549 | fail: | |
7550 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7551 | return NULL; | |
7552 | } | |
7553 | ||
7554 | ||
7555 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7556 | PyObject *resultobj = 0; | |
7557 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7558 | void *argp1 = 0 ; | |
7559 | int res1 = 0 ; | |
7560 | PyObject *swig_obj[1] ; | |
7561 | ||
7562 | if (!args) SWIG_fail; | |
7563 | swig_obj[0] = args; | |
7564 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7565 | if (!SWIG_IsOK(res1)) { | |
7566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7567 | } | |
7568 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7569 | { | |
7570 | delete arg1; | |
7571 | ||
7572 | if (PyErr_Occurred()) SWIG_fail; | |
7573 | } | |
7574 | resultobj = SWIG_Py_Void(); | |
7575 | return resultobj; | |
7576 | fail: | |
7577 | return NULL; | |
7578 | } | |
7579 | ||
7580 | ||
7581 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7582 | PyObject *resultobj = 0; | |
7583 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7584 | wxNativePixelData_Accessor result; | |
7585 | void *argp1 = 0 ; | |
7586 | int res1 = 0 ; | |
7587 | PyObject *swig_obj[1] ; | |
7588 | ||
7589 | if (!args) SWIG_fail; | |
7590 | swig_obj[0] = args; | |
7591 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7592 | if (!SWIG_IsOK(res1)) { | |
7593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7594 | } | |
7595 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7596 | { | |
7597 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7598 | if (PyErr_Occurred()) SWIG_fail; | |
7599 | } | |
7600 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7601 | return resultobj; | |
7602 | fail: | |
7603 | return NULL; | |
7604 | } | |
7605 | ||
7606 | ||
7607 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7608 | PyObject *resultobj = 0; | |
7609 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7610 | void *argp1 = 0 ; | |
7611 | int res1 = 0 ; | |
7612 | PyObject *swig_obj[1] ; | |
7613 | ||
7614 | if (!args) SWIG_fail; | |
7615 | swig_obj[0] = args; | |
7616 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7617 | if (!SWIG_IsOK(res1)) { | |
7618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7619 | } | |
7620 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7621 | { | |
7622 | (arg1)->UseAlpha(); | |
7623 | if (PyErr_Occurred()) SWIG_fail; | |
7624 | } | |
7625 | resultobj = SWIG_Py_Void(); | |
7626 | return resultobj; | |
7627 | fail: | |
7628 | return NULL; | |
7629 | } | |
7630 | ||
7631 | ||
7632 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7633 | PyObject *resultobj = 0; | |
7634 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7635 | bool result; | |
7636 | void *argp1 = 0 ; | |
7637 | int res1 = 0 ; | |
7638 | PyObject *swig_obj[1] ; | |
7639 | ||
7640 | if (!args) SWIG_fail; | |
7641 | swig_obj[0] = args; | |
7642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7643 | if (!SWIG_IsOK(res1)) { | |
7644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7645 | } | |
7646 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7647 | { | |
7648 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | } | |
7651 | { | |
7652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7653 | } | |
7654 | return resultobj; | |
7655 | fail: | |
7656 | return NULL; | |
7657 | } | |
7658 | ||
7659 | ||
7660 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7661 | PyObject *obj; | |
7662 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7663 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7664 | return SWIG_Py_Void(); | |
7665 | } | |
7666 | ||
7667 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7668 | return SWIG_Python_InitShadowInstance(args); | |
7669 | } | |
7670 | ||
7671 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7672 | PyObject *resultobj = 0; | |
7673 | wxNativePixelData *arg1 = 0 ; | |
7674 | wxNativePixelData_Accessor *result = 0 ; | |
7675 | void *argp1 = 0 ; | |
7676 | int res1 = 0 ; | |
7677 | ||
7678 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7679 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7680 | if (!SWIG_IsOK(res1)) { | |
7681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7682 | } | |
7683 | if (!argp1) { | |
7684 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7685 | } | |
7686 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7687 | { | |
7688 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
7690 | } | |
7691 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7692 | return resultobj; | |
7693 | fail: | |
7694 | return NULL; | |
7695 | } | |
7696 | ||
7697 | ||
7698 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7699 | PyObject *resultobj = 0; | |
7700 | wxBitmap *arg1 = 0 ; | |
7701 | wxNativePixelData *arg2 = 0 ; | |
7702 | wxNativePixelData_Accessor *result = 0 ; | |
7703 | void *argp1 = 0 ; | |
7704 | int res1 = 0 ; | |
7705 | void *argp2 = 0 ; | |
7706 | int res2 = 0 ; | |
7707 | ||
7708 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7709 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7710 | if (!SWIG_IsOK(res1)) { | |
7711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7712 | } | |
7713 | if (!argp1) { | |
7714 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7715 | } | |
7716 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7717 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7718 | if (!SWIG_IsOK(res2)) { | |
7719 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7720 | } | |
7721 | if (!argp2) { | |
7722 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7723 | } | |
7724 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7725 | { | |
7726 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7727 | if (PyErr_Occurred()) SWIG_fail; | |
7728 | } | |
7729 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7730 | return resultobj; | |
7731 | fail: | |
7732 | return NULL; | |
7733 | } | |
7734 | ||
7735 | ||
7736 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7737 | PyObject *resultobj = 0; | |
7738 | wxNativePixelData_Accessor *result = 0 ; | |
7739 | ||
7740 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7741 | { | |
7742 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7743 | if (PyErr_Occurred()) SWIG_fail; | |
7744 | } | |
7745 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7746 | return resultobj; | |
7747 | fail: | |
7748 | return NULL; | |
7749 | } | |
7750 | ||
7751 | ||
7752 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7753 | int argc; | |
7754 | PyObject *argv[3]; | |
7755 | ||
7756 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7757 | --argc; | |
7758 | if (argc == 0) { | |
7759 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7760 | } | |
7761 | if (argc == 1) { | |
7762 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7763 | } | |
7764 | if (argc == 2) { | |
7765 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7766 | } | |
7767 | ||
7768 | fail: | |
7769 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7770 | return NULL; | |
7771 | } | |
7772 | ||
7773 | ||
7774 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7775 | PyObject *resultobj = 0; | |
7776 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7777 | void *argp1 = 0 ; | |
7778 | int res1 = 0 ; | |
7779 | PyObject *swig_obj[1] ; | |
7780 | ||
7781 | if (!args) SWIG_fail; | |
7782 | swig_obj[0] = args; | |
7783 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7784 | if (!SWIG_IsOK(res1)) { | |
7785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7786 | } | |
7787 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7788 | { | |
7789 | delete arg1; | |
7790 | ||
7791 | if (PyErr_Occurred()) SWIG_fail; | |
7792 | } | |
7793 | resultobj = SWIG_Py_Void(); | |
7794 | return resultobj; | |
7795 | fail: | |
7796 | return NULL; | |
7797 | } | |
7798 | ||
7799 | ||
7800 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7801 | PyObject *resultobj = 0; | |
7802 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7803 | wxNativePixelData *arg2 = 0 ; | |
7804 | void *argp1 = 0 ; | |
7805 | int res1 = 0 ; | |
7806 | void *argp2 = 0 ; | |
7807 | int res2 = 0 ; | |
7808 | PyObject * obj0 = 0 ; | |
7809 | PyObject * obj1 = 0 ; | |
7810 | char * kwnames[] = { | |
7811 | (char *) "self",(char *) "data", NULL | |
7812 | }; | |
7813 | ||
7814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
7815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7816 | if (!SWIG_IsOK(res1)) { | |
7817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7818 | } | |
7819 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7820 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7821 | if (!SWIG_IsOK(res2)) { | |
7822 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7823 | } | |
7824 | if (!argp2) { | |
7825 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7826 | } | |
7827 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7828 | { | |
7829 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
7830 | if (PyErr_Occurred()) SWIG_fail; | |
7831 | } | |
7832 | resultobj = SWIG_Py_Void(); | |
7833 | return resultobj; | |
7834 | fail: | |
7835 | return NULL; | |
7836 | } | |
7837 | ||
7838 | ||
7839 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7840 | PyObject *resultobj = 0; | |
7841 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7842 | bool result; | |
7843 | void *argp1 = 0 ; | |
7844 | int res1 = 0 ; | |
7845 | PyObject *swig_obj[1] ; | |
7846 | ||
7847 | if (!args) SWIG_fail; | |
7848 | swig_obj[0] = args; | |
7849 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7850 | if (!SWIG_IsOK(res1)) { | |
7851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
7852 | } | |
7853 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7854 | { | |
7855 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
7856 | if (PyErr_Occurred()) SWIG_fail; | |
7857 | } | |
7858 | { | |
7859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7860 | } | |
7861 | return resultobj; | |
7862 | fail: | |
7863 | return NULL; | |
7864 | } | |
7865 | ||
7866 | ||
7867 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7868 | PyObject *resultobj = 0; | |
7869 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7870 | void *argp1 = 0 ; | |
7871 | int res1 = 0 ; | |
7872 | PyObject *swig_obj[1] ; | |
7873 | ||
7874 | if (!args) SWIG_fail; | |
7875 | swig_obj[0] = args; | |
7876 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7877 | if (!SWIG_IsOK(res1)) { | |
7878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7879 | } | |
7880 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7881 | { | |
7882 | wxNativePixelData_Accessor_nextPixel(arg1); | |
7883 | if (PyErr_Occurred()) SWIG_fail; | |
7884 | } | |
7885 | resultobj = SWIG_Py_Void(); | |
7886 | return resultobj; | |
7887 | fail: | |
7888 | return NULL; | |
7889 | } | |
7890 | ||
7891 | ||
7892 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7893 | PyObject *resultobj = 0; | |
7894 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7895 | wxNativePixelData *arg2 = 0 ; | |
7896 | int arg3 ; | |
7897 | int arg4 ; | |
7898 | void *argp1 = 0 ; | |
7899 | int res1 = 0 ; | |
7900 | void *argp2 = 0 ; | |
7901 | int res2 = 0 ; | |
7902 | int val3 ; | |
7903 | int ecode3 = 0 ; | |
7904 | int val4 ; | |
7905 | int ecode4 = 0 ; | |
7906 | PyObject * obj0 = 0 ; | |
7907 | PyObject * obj1 = 0 ; | |
7908 | PyObject * obj2 = 0 ; | |
7909 | PyObject * obj3 = 0 ; | |
7910 | char * kwnames[] = { | |
7911 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7912 | }; | |
7913 | ||
7914 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7915 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7916 | if (!SWIG_IsOK(res1)) { | |
7917 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7918 | } | |
7919 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7920 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7921 | if (!SWIG_IsOK(res2)) { | |
7922 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7923 | } | |
7924 | if (!argp2) { | |
7925 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7926 | } | |
7927 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7928 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7929 | if (!SWIG_IsOK(ecode3)) { | |
7930 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
7931 | } | |
7932 | arg3 = static_cast< int >(val3); | |
7933 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7934 | if (!SWIG_IsOK(ecode4)) { | |
7935 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
7936 | } | |
7937 | arg4 = static_cast< int >(val4); | |
7938 | { | |
7939 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
7940 | if (PyErr_Occurred()) SWIG_fail; | |
7941 | } | |
7942 | resultobj = SWIG_Py_Void(); | |
7943 | return resultobj; | |
7944 | fail: | |
7945 | return NULL; | |
7946 | } | |
7947 | ||
7948 | ||
7949 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7950 | PyObject *resultobj = 0; | |
7951 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7952 | wxNativePixelData *arg2 = 0 ; | |
7953 | int arg3 ; | |
7954 | void *argp1 = 0 ; | |
7955 | int res1 = 0 ; | |
7956 | void *argp2 = 0 ; | |
7957 | int res2 = 0 ; | |
7958 | int val3 ; | |
7959 | int ecode3 = 0 ; | |
7960 | PyObject * obj0 = 0 ; | |
7961 | PyObject * obj1 = 0 ; | |
7962 | PyObject * obj2 = 0 ; | |
7963 | char * kwnames[] = { | |
7964 | (char *) "self",(char *) "data",(char *) "x", NULL | |
7965 | }; | |
7966 | ||
7967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7969 | if (!SWIG_IsOK(res1)) { | |
7970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7971 | } | |
7972 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7973 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7974 | if (!SWIG_IsOK(res2)) { | |
7975 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7976 | } | |
7977 | if (!argp2) { | |
7978 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7979 | } | |
7980 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7981 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7982 | if (!SWIG_IsOK(ecode3)) { | |
7983 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
7984 | } | |
7985 | arg3 = static_cast< int >(val3); | |
7986 | { | |
7987 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
7988 | if (PyErr_Occurred()) SWIG_fail; | |
7989 | } | |
7990 | resultobj = SWIG_Py_Void(); | |
7991 | return resultobj; | |
7992 | fail: | |
7993 | return NULL; | |
7994 | } | |
7995 | ||
7996 | ||
7997 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7998 | PyObject *resultobj = 0; | |
7999 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8000 | wxNativePixelData *arg2 = 0 ; | |
8001 | int arg3 ; | |
8002 | void *argp1 = 0 ; | |
8003 | int res1 = 0 ; | |
8004 | void *argp2 = 0 ; | |
8005 | int res2 = 0 ; | |
8006 | int val3 ; | |
8007 | int ecode3 = 0 ; | |
8008 | PyObject * obj0 = 0 ; | |
8009 | PyObject * obj1 = 0 ; | |
8010 | PyObject * obj2 = 0 ; | |
8011 | char * kwnames[] = { | |
8012 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8013 | }; | |
8014 | ||
8015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8017 | if (!SWIG_IsOK(res1)) { | |
8018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8019 | } | |
8020 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8021 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8022 | if (!SWIG_IsOK(res2)) { | |
8023 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8024 | } | |
8025 | if (!argp2) { | |
8026 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8027 | } | |
8028 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8029 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8030 | if (!SWIG_IsOK(ecode3)) { | |
8031 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8032 | } | |
8033 | arg3 = static_cast< int >(val3); | |
8034 | { | |
8035 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
8036 | if (PyErr_Occurred()) SWIG_fail; | |
8037 | } | |
8038 | resultobj = SWIG_Py_Void(); | |
8039 | return resultobj; | |
8040 | fail: | |
8041 | return NULL; | |
8042 | } | |
8043 | ||
8044 | ||
8045 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8046 | PyObject *resultobj = 0; | |
8047 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8048 | wxNativePixelData *arg2 = 0 ; | |
8049 | int arg3 ; | |
8050 | int arg4 ; | |
8051 | void *argp1 = 0 ; | |
8052 | int res1 = 0 ; | |
8053 | void *argp2 = 0 ; | |
8054 | int res2 = 0 ; | |
8055 | int val3 ; | |
8056 | int ecode3 = 0 ; | |
8057 | int val4 ; | |
8058 | int ecode4 = 0 ; | |
8059 | PyObject * obj0 = 0 ; | |
8060 | PyObject * obj1 = 0 ; | |
8061 | PyObject * obj2 = 0 ; | |
8062 | PyObject * obj3 = 0 ; | |
8063 | char * kwnames[] = { | |
8064 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8065 | }; | |
8066 | ||
8067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8069 | if (!SWIG_IsOK(res1)) { | |
8070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8071 | } | |
8072 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8073 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8074 | if (!SWIG_IsOK(res2)) { | |
8075 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8076 | } | |
8077 | if (!argp2) { | |
8078 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8079 | } | |
8080 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8081 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8082 | if (!SWIG_IsOK(ecode3)) { | |
8083 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8084 | } | |
8085 | arg3 = static_cast< int >(val3); | |
8086 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8087 | if (!SWIG_IsOK(ecode4)) { | |
8088 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8089 | } | |
8090 | arg4 = static_cast< int >(val4); | |
8091 | { | |
8092 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
8093 | if (PyErr_Occurred()) SWIG_fail; | |
8094 | } | |
8095 | resultobj = SWIG_Py_Void(); | |
8096 | return resultobj; | |
8097 | fail: | |
8098 | return NULL; | |
8099 | } | |
8100 | ||
8101 | ||
8102 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8103 | PyObject *resultobj = 0; | |
8104 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8105 | byte arg2 ; | |
8106 | byte arg3 ; | |
8107 | byte arg4 ; | |
8108 | void *argp1 = 0 ; | |
8109 | int res1 = 0 ; | |
8110 | unsigned char val2 ; | |
8111 | int ecode2 = 0 ; | |
8112 | unsigned char val3 ; | |
8113 | int ecode3 = 0 ; | |
8114 | unsigned char val4 ; | |
8115 | int ecode4 = 0 ; | |
8116 | PyObject * obj0 = 0 ; | |
8117 | PyObject * obj1 = 0 ; | |
8118 | PyObject * obj2 = 0 ; | |
8119 | PyObject * obj3 = 0 ; | |
8120 | char * kwnames[] = { | |
8121 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
8122 | }; | |
8123 | ||
8124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8126 | if (!SWIG_IsOK(res1)) { | |
8127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8128 | } | |
8129 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8130 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8131 | if (!SWIG_IsOK(ecode2)) { | |
8132 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8133 | } | |
8134 | arg2 = static_cast< byte >(val2); | |
8135 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8136 | if (!SWIG_IsOK(ecode3)) { | |
8137 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8138 | } | |
8139 | arg3 = static_cast< byte >(val3); | |
8140 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8141 | if (!SWIG_IsOK(ecode4)) { | |
8142 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8143 | } | |
8144 | arg4 = static_cast< byte >(val4); | |
8145 | { | |
8146 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
8147 | if (PyErr_Occurred()) SWIG_fail; | |
8148 | } | |
8149 | resultobj = SWIG_Py_Void(); | |
8150 | return resultobj; | |
8151 | fail: | |
8152 | return NULL; | |
8153 | } | |
8154 | ||
8155 | ||
8156 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8157 | PyObject *resultobj = 0; | |
8158 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8159 | PyObject *result = 0 ; | |
8160 | void *argp1 = 0 ; | |
8161 | int res1 = 0 ; | |
8162 | PyObject *swig_obj[1] ; | |
8163 | ||
8164 | if (!args) SWIG_fail; | |
8165 | swig_obj[0] = args; | |
8166 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8167 | if (!SWIG_IsOK(res1)) { | |
8168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8169 | } | |
8170 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8171 | { | |
8172 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
8175 | resultobj = result; | |
8176 | return resultobj; | |
8177 | fail: | |
8178 | return NULL; | |
8179 | } | |
8180 | ||
8181 | ||
8182 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8183 | PyObject *obj; | |
8184 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8185 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8186 | return SWIG_Py_Void(); | |
8187 | } | |
8188 | ||
8189 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8190 | return SWIG_Python_InitShadowInstance(args); | |
8191 | } | |
8192 | ||
8193 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8194 | PyObject *resultobj = 0; | |
8195 | wxBitmap *arg1 = 0 ; | |
8196 | wxAlphaPixelData *result = 0 ; | |
8197 | void *argp1 = 0 ; | |
8198 | int res1 = 0 ; | |
8199 | ||
8200 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8202 | if (!SWIG_IsOK(res1)) { | |
8203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8204 | } | |
8205 | if (!argp1) { | |
8206 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8207 | } | |
8208 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8209 | { | |
8210 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8211 | if (PyErr_Occurred()) SWIG_fail; | |
8212 | } | |
8213 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8214 | return resultobj; | |
8215 | fail: | |
8216 | return NULL; | |
8217 | } | |
8218 | ||
8219 | ||
8220 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8221 | PyObject *resultobj = 0; | |
8222 | wxBitmap *arg1 = 0 ; | |
8223 | wxRect *arg2 = 0 ; | |
8224 | wxAlphaPixelData *result = 0 ; | |
8225 | void *argp1 = 0 ; | |
8226 | int res1 = 0 ; | |
8227 | wxRect temp2 ; | |
8228 | ||
8229 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8230 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8231 | if (!SWIG_IsOK(res1)) { | |
8232 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8233 | } | |
8234 | if (!argp1) { | |
8235 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8236 | } | |
8237 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8238 | { | |
8239 | arg2 = &temp2; | |
8240 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8241 | } | |
8242 | { | |
8243 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8244 | if (PyErr_Occurred()) SWIG_fail; | |
8245 | } | |
8246 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8247 | return resultobj; | |
8248 | fail: | |
8249 | return NULL; | |
8250 | } | |
8251 | ||
8252 | ||
8253 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8254 | PyObject *resultobj = 0; | |
8255 | wxBitmap *arg1 = 0 ; | |
8256 | wxPoint *arg2 = 0 ; | |
8257 | wxSize *arg3 = 0 ; | |
8258 | wxAlphaPixelData *result = 0 ; | |
8259 | void *argp1 = 0 ; | |
8260 | int res1 = 0 ; | |
8261 | wxPoint temp2 ; | |
8262 | wxSize temp3 ; | |
8263 | ||
8264 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8266 | if (!SWIG_IsOK(res1)) { | |
8267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8268 | } | |
8269 | if (!argp1) { | |
8270 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8271 | } | |
8272 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8273 | { | |
8274 | arg2 = &temp2; | |
8275 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8276 | } | |
8277 | { | |
8278 | arg3 = &temp3; | |
8279 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8280 | } | |
8281 | { | |
8282 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
8285 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8286 | return resultobj; | |
8287 | fail: | |
8288 | return NULL; | |
8289 | } | |
8290 | ||
8291 | ||
8292 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8293 | int argc; | |
8294 | PyObject *argv[4]; | |
8295 | ||
8296 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8297 | --argc; | |
8298 | if (argc == 1) { | |
8299 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8300 | } | |
8301 | if (argc == 2) { | |
8302 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8303 | } | |
8304 | if (argc == 3) { | |
8305 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8306 | } | |
8307 | ||
8308 | fail: | |
8309 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8310 | return NULL; | |
8311 | } | |
8312 | ||
8313 | ||
8314 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8315 | PyObject *resultobj = 0; | |
8316 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8317 | void *argp1 = 0 ; | |
8318 | int res1 = 0 ; | |
8319 | PyObject *swig_obj[1] ; | |
8320 | ||
8321 | if (!args) SWIG_fail; | |
8322 | swig_obj[0] = args; | |
8323 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8324 | if (!SWIG_IsOK(res1)) { | |
8325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8326 | } | |
8327 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8328 | { | |
8329 | delete arg1; | |
8330 | ||
8331 | if (PyErr_Occurred()) SWIG_fail; | |
8332 | } | |
8333 | resultobj = SWIG_Py_Void(); | |
8334 | return resultobj; | |
8335 | fail: | |
8336 | return NULL; | |
8337 | } | |
8338 | ||
8339 | ||
8340 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8341 | PyObject *resultobj = 0; | |
8342 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8343 | wxAlphaPixelData_Accessor result; | |
8344 | void *argp1 = 0 ; | |
8345 | int res1 = 0 ; | |
8346 | PyObject *swig_obj[1] ; | |
8347 | ||
8348 | if (!args) SWIG_fail; | |
8349 | swig_obj[0] = args; | |
8350 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8351 | if (!SWIG_IsOK(res1)) { | |
8352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8353 | } | |
8354 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8355 | { | |
8356 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8357 | if (PyErr_Occurred()) SWIG_fail; | |
8358 | } | |
8359 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8360 | return resultobj; | |
8361 | fail: | |
8362 | return NULL; | |
8363 | } | |
8364 | ||
8365 | ||
8366 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8367 | PyObject *resultobj = 0; | |
8368 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8369 | void *argp1 = 0 ; | |
8370 | int res1 = 0 ; | |
8371 | PyObject *swig_obj[1] ; | |
8372 | ||
8373 | if (!args) SWIG_fail; | |
8374 | swig_obj[0] = args; | |
8375 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8376 | if (!SWIG_IsOK(res1)) { | |
8377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8378 | } | |
8379 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8380 | { | |
8381 | (arg1)->UseAlpha(); | |
8382 | if (PyErr_Occurred()) SWIG_fail; | |
8383 | } | |
8384 | resultobj = SWIG_Py_Void(); | |
8385 | return resultobj; | |
8386 | fail: | |
8387 | return NULL; | |
8388 | } | |
8389 | ||
8390 | ||
8391 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8392 | PyObject *resultobj = 0; | |
8393 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8394 | bool result; | |
8395 | void *argp1 = 0 ; | |
8396 | int res1 = 0 ; | |
8397 | PyObject *swig_obj[1] ; | |
8398 | ||
8399 | if (!args) SWIG_fail; | |
8400 | swig_obj[0] = args; | |
8401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8402 | if (!SWIG_IsOK(res1)) { | |
8403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8404 | } | |
8405 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8406 | { | |
8407 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8408 | if (PyErr_Occurred()) SWIG_fail; | |
8409 | } | |
8410 | { | |
8411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8412 | } | |
8413 | return resultobj; | |
8414 | fail: | |
8415 | return NULL; | |
8416 | } | |
8417 | ||
8418 | ||
8419 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8420 | PyObject *obj; | |
8421 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8422 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8423 | return SWIG_Py_Void(); | |
8424 | } | |
8425 | ||
8426 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8427 | return SWIG_Python_InitShadowInstance(args); | |
8428 | } | |
8429 | ||
8430 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8431 | PyObject *resultobj = 0; | |
8432 | wxAlphaPixelData *arg1 = 0 ; | |
8433 | wxAlphaPixelData_Accessor *result = 0 ; | |
8434 | void *argp1 = 0 ; | |
8435 | int res1 = 0 ; | |
8436 | ||
8437 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8438 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8439 | if (!SWIG_IsOK(res1)) { | |
8440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8441 | } | |
8442 | if (!argp1) { | |
8443 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8444 | } | |
8445 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8446 | { | |
8447 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8448 | if (PyErr_Occurred()) SWIG_fail; | |
8449 | } | |
8450 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8451 | return resultobj; | |
8452 | fail: | |
8453 | return NULL; | |
8454 | } | |
8455 | ||
8456 | ||
8457 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8458 | PyObject *resultobj = 0; | |
8459 | wxBitmap *arg1 = 0 ; | |
8460 | wxAlphaPixelData *arg2 = 0 ; | |
8461 | wxAlphaPixelData_Accessor *result = 0 ; | |
8462 | void *argp1 = 0 ; | |
8463 | int res1 = 0 ; | |
8464 | void *argp2 = 0 ; | |
8465 | int res2 = 0 ; | |
8466 | ||
8467 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8469 | if (!SWIG_IsOK(res1)) { | |
8470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8471 | } | |
8472 | if (!argp1) { | |
8473 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8474 | } | |
8475 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8476 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8477 | if (!SWIG_IsOK(res2)) { | |
8478 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8479 | } | |
8480 | if (!argp2) { | |
8481 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8482 | } | |
8483 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8484 | { | |
8485 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8486 | if (PyErr_Occurred()) SWIG_fail; | |
8487 | } | |
8488 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8489 | return resultobj; | |
8490 | fail: | |
8491 | return NULL; | |
8492 | } | |
8493 | ||
8494 | ||
8495 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8496 | PyObject *resultobj = 0; | |
8497 | wxAlphaPixelData_Accessor *result = 0 ; | |
8498 | ||
8499 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8500 | { | |
8501 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8502 | if (PyErr_Occurred()) SWIG_fail; | |
8503 | } | |
8504 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8505 | return resultobj; | |
8506 | fail: | |
8507 | return NULL; | |
8508 | } | |
8509 | ||
8510 | ||
8511 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8512 | int argc; | |
8513 | PyObject *argv[3]; | |
8514 | ||
8515 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8516 | --argc; | |
8517 | if (argc == 0) { | |
8518 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8519 | } | |
8520 | if (argc == 1) { | |
8521 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8522 | } | |
8523 | if (argc == 2) { | |
8524 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8525 | } | |
8526 | ||
8527 | fail: | |
8528 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8529 | return NULL; | |
8530 | } | |
8531 | ||
8532 | ||
8533 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8534 | PyObject *resultobj = 0; | |
8535 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8536 | void *argp1 = 0 ; | |
8537 | int res1 = 0 ; | |
8538 | PyObject *swig_obj[1] ; | |
8539 | ||
8540 | if (!args) SWIG_fail; | |
8541 | swig_obj[0] = args; | |
8542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8543 | if (!SWIG_IsOK(res1)) { | |
8544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8545 | } | |
8546 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8547 | { | |
8548 | delete arg1; | |
8549 | ||
8550 | if (PyErr_Occurred()) SWIG_fail; | |
8551 | } | |
8552 | resultobj = SWIG_Py_Void(); | |
8553 | return resultobj; | |
8554 | fail: | |
8555 | return NULL; | |
8556 | } | |
8557 | ||
8558 | ||
8559 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8560 | PyObject *resultobj = 0; | |
8561 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8562 | wxAlphaPixelData *arg2 = 0 ; | |
8563 | void *argp1 = 0 ; | |
8564 | int res1 = 0 ; | |
8565 | void *argp2 = 0 ; | |
8566 | int res2 = 0 ; | |
8567 | PyObject * obj0 = 0 ; | |
8568 | PyObject * obj1 = 0 ; | |
8569 | char * kwnames[] = { | |
8570 | (char *) "self",(char *) "data", NULL | |
8571 | }; | |
8572 | ||
8573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8575 | if (!SWIG_IsOK(res1)) { | |
8576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8577 | } | |
8578 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8579 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8580 | if (!SWIG_IsOK(res2)) { | |
8581 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8582 | } | |
8583 | if (!argp2) { | |
8584 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8585 | } | |
8586 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8587 | { | |
8588 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8589 | if (PyErr_Occurred()) SWIG_fail; | |
8590 | } | |
8591 | resultobj = SWIG_Py_Void(); | |
8592 | return resultobj; | |
8593 | fail: | |
8594 | return NULL; | |
8595 | } | |
8596 | ||
8597 | ||
8598 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8599 | PyObject *resultobj = 0; | |
8600 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8601 | bool result; | |
8602 | void *argp1 = 0 ; | |
8603 | int res1 = 0 ; | |
8604 | PyObject *swig_obj[1] ; | |
8605 | ||
8606 | if (!args) SWIG_fail; | |
8607 | swig_obj[0] = args; | |
8608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8609 | if (!SWIG_IsOK(res1)) { | |
8610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8611 | } | |
8612 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8613 | { | |
8614 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8615 | if (PyErr_Occurred()) SWIG_fail; | |
8616 | } | |
8617 | { | |
8618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8619 | } | |
8620 | return resultobj; | |
8621 | fail: | |
8622 | return NULL; | |
8623 | } | |
8624 | ||
8625 | ||
8626 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8627 | PyObject *resultobj = 0; | |
8628 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8629 | void *argp1 = 0 ; | |
8630 | int res1 = 0 ; | |
8631 | PyObject *swig_obj[1] ; | |
8632 | ||
8633 | if (!args) SWIG_fail; | |
8634 | swig_obj[0] = args; | |
8635 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8636 | if (!SWIG_IsOK(res1)) { | |
8637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8638 | } | |
8639 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8640 | { | |
8641 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8642 | if (PyErr_Occurred()) SWIG_fail; | |
8643 | } | |
8644 | resultobj = SWIG_Py_Void(); | |
8645 | return resultobj; | |
8646 | fail: | |
8647 | return NULL; | |
8648 | } | |
8649 | ||
8650 | ||
8651 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8652 | PyObject *resultobj = 0; | |
8653 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8654 | wxAlphaPixelData *arg2 = 0 ; | |
8655 | int arg3 ; | |
8656 | int arg4 ; | |
8657 | void *argp1 = 0 ; | |
8658 | int res1 = 0 ; | |
8659 | void *argp2 = 0 ; | |
8660 | int res2 = 0 ; | |
8661 | int val3 ; | |
8662 | int ecode3 = 0 ; | |
8663 | int val4 ; | |
8664 | int ecode4 = 0 ; | |
8665 | PyObject * obj0 = 0 ; | |
8666 | PyObject * obj1 = 0 ; | |
8667 | PyObject * obj2 = 0 ; | |
8668 | PyObject * obj3 = 0 ; | |
8669 | char * kwnames[] = { | |
8670 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8671 | }; | |
8672 | ||
8673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8675 | if (!SWIG_IsOK(res1)) { | |
8676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8677 | } | |
8678 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8679 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8680 | if (!SWIG_IsOK(res2)) { | |
8681 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8682 | } | |
8683 | if (!argp2) { | |
8684 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8685 | } | |
8686 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8687 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8688 | if (!SWIG_IsOK(ecode3)) { | |
8689 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8690 | } | |
8691 | arg3 = static_cast< int >(val3); | |
8692 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8693 | if (!SWIG_IsOK(ecode4)) { | |
8694 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8695 | } | |
8696 | arg4 = static_cast< int >(val4); | |
8697 | { | |
8698 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8699 | if (PyErr_Occurred()) SWIG_fail; | |
8700 | } | |
8701 | resultobj = SWIG_Py_Void(); | |
8702 | return resultobj; | |
8703 | fail: | |
8704 | return NULL; | |
8705 | } | |
8706 | ||
8707 | ||
8708 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8709 | PyObject *resultobj = 0; | |
8710 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8711 | wxAlphaPixelData *arg2 = 0 ; | |
8712 | int arg3 ; | |
8713 | void *argp1 = 0 ; | |
8714 | int res1 = 0 ; | |
8715 | void *argp2 = 0 ; | |
8716 | int res2 = 0 ; | |
8717 | int val3 ; | |
8718 | int ecode3 = 0 ; | |
8719 | PyObject * obj0 = 0 ; | |
8720 | PyObject * obj1 = 0 ; | |
8721 | PyObject * obj2 = 0 ; | |
8722 | char * kwnames[] = { | |
8723 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8724 | }; | |
8725 | ||
8726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8728 | if (!SWIG_IsOK(res1)) { | |
8729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8730 | } | |
8731 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8732 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8733 | if (!SWIG_IsOK(res2)) { | |
8734 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8735 | } | |
8736 | if (!argp2) { | |
8737 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8738 | } | |
8739 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8740 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8741 | if (!SWIG_IsOK(ecode3)) { | |
8742 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8743 | } | |
8744 | arg3 = static_cast< int >(val3); | |
8745 | { | |
8746 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8747 | if (PyErr_Occurred()) SWIG_fail; | |
8748 | } | |
8749 | resultobj = SWIG_Py_Void(); | |
8750 | return resultobj; | |
8751 | fail: | |
8752 | return NULL; | |
8753 | } | |
8754 | ||
8755 | ||
8756 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8757 | PyObject *resultobj = 0; | |
8758 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8759 | wxAlphaPixelData *arg2 = 0 ; | |
8760 | int arg3 ; | |
8761 | void *argp1 = 0 ; | |
8762 | int res1 = 0 ; | |
8763 | void *argp2 = 0 ; | |
8764 | int res2 = 0 ; | |
8765 | int val3 ; | |
8766 | int ecode3 = 0 ; | |
8767 | PyObject * obj0 = 0 ; | |
8768 | PyObject * obj1 = 0 ; | |
8769 | PyObject * obj2 = 0 ; | |
8770 | char * kwnames[] = { | |
8771 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8772 | }; | |
8773 | ||
8774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8776 | if (!SWIG_IsOK(res1)) { | |
8777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8778 | } | |
8779 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8780 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8781 | if (!SWIG_IsOK(res2)) { | |
8782 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8783 | } | |
8784 | if (!argp2) { | |
8785 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8786 | } | |
8787 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8788 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8789 | if (!SWIG_IsOK(ecode3)) { | |
8790 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8791 | } | |
8792 | arg3 = static_cast< int >(val3); | |
8793 | { | |
8794 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8795 | if (PyErr_Occurred()) SWIG_fail; | |
8796 | } | |
8797 | resultobj = SWIG_Py_Void(); | |
8798 | return resultobj; | |
8799 | fail: | |
8800 | return NULL; | |
8801 | } | |
8802 | ||
8803 | ||
8804 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8805 | PyObject *resultobj = 0; | |
8806 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8807 | wxAlphaPixelData *arg2 = 0 ; | |
8808 | int arg3 ; | |
8809 | int arg4 ; | |
8810 | void *argp1 = 0 ; | |
8811 | int res1 = 0 ; | |
8812 | void *argp2 = 0 ; | |
8813 | int res2 = 0 ; | |
8814 | int val3 ; | |
8815 | int ecode3 = 0 ; | |
8816 | int val4 ; | |
8817 | int ecode4 = 0 ; | |
8818 | PyObject * obj0 = 0 ; | |
8819 | PyObject * obj1 = 0 ; | |
8820 | PyObject * obj2 = 0 ; | |
8821 | PyObject * obj3 = 0 ; | |
8822 | char * kwnames[] = { | |
8823 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8824 | }; | |
8825 | ||
8826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8828 | if (!SWIG_IsOK(res1)) { | |
8829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8830 | } | |
8831 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8832 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8833 | if (!SWIG_IsOK(res2)) { | |
8834 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8835 | } | |
8836 | if (!argp2) { | |
8837 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8838 | } | |
8839 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8840 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8841 | if (!SWIG_IsOK(ecode3)) { | |
8842 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8843 | } | |
8844 | arg3 = static_cast< int >(val3); | |
8845 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8846 | if (!SWIG_IsOK(ecode4)) { | |
8847 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8848 | } | |
8849 | arg4 = static_cast< int >(val4); | |
8850 | { | |
8851 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8852 | if (PyErr_Occurred()) SWIG_fail; | |
8853 | } | |
8854 | resultobj = SWIG_Py_Void(); | |
8855 | return resultobj; | |
8856 | fail: | |
8857 | return NULL; | |
8858 | } | |
8859 | ||
8860 | ||
8861 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8862 | PyObject *resultobj = 0; | |
8863 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8864 | byte arg2 ; | |
8865 | byte arg3 ; | |
8866 | byte arg4 ; | |
8867 | byte arg5 ; | |
8868 | void *argp1 = 0 ; | |
8869 | int res1 = 0 ; | |
8870 | unsigned char val2 ; | |
8871 | int ecode2 = 0 ; | |
8872 | unsigned char val3 ; | |
8873 | int ecode3 = 0 ; | |
8874 | unsigned char val4 ; | |
8875 | int ecode4 = 0 ; | |
8876 | unsigned char val5 ; | |
8877 | int ecode5 = 0 ; | |
8878 | PyObject * obj0 = 0 ; | |
8879 | PyObject * obj1 = 0 ; | |
8880 | PyObject * obj2 = 0 ; | |
8881 | PyObject * obj3 = 0 ; | |
8882 | PyObject * obj4 = 0 ; | |
8883 | char * kwnames[] = { | |
8884 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
8885 | }; | |
8886 | ||
8887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8889 | if (!SWIG_IsOK(res1)) { | |
8890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8891 | } | |
8892 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8893 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8894 | if (!SWIG_IsOK(ecode2)) { | |
8895 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8896 | } | |
8897 | arg2 = static_cast< byte >(val2); | |
8898 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8899 | if (!SWIG_IsOK(ecode3)) { | |
8900 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8901 | } | |
8902 | arg3 = static_cast< byte >(val3); | |
8903 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8904 | if (!SWIG_IsOK(ecode4)) { | |
8905 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8906 | } | |
8907 | arg4 = static_cast< byte >(val4); | |
8908 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
8909 | if (!SWIG_IsOK(ecode5)) { | |
8910 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
8911 | } | |
8912 | arg5 = static_cast< byte >(val5); | |
8913 | { | |
8914 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
8915 | if (PyErr_Occurred()) SWIG_fail; | |
0085ce49 | 8916 | } |
fc46b7f3 | 8917 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
8918 | return resultobj; |
8919 | fail: | |
8920 | return NULL; | |
8921 | } | |
8922 | ||
8923 | ||
fc46b7f3 | 8924 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8925 | PyObject *resultobj = 0; |
fc46b7f3 RD |
8926 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
8927 | PyObject *result = 0 ; | |
0085ce49 RD |
8928 | void *argp1 = 0 ; |
8929 | int res1 = 0 ; | |
fc46b7f3 | 8930 | PyObject *swig_obj[1] ; |
0085ce49 | 8931 | |
fc46b7f3 RD |
8932 | if (!args) SWIG_fail; |
8933 | swig_obj[0] = args; | |
8934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
0085ce49 | 8935 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 8936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
0085ce49 | 8937 | } |
fc46b7f3 | 8938 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
0085ce49 | 8939 | { |
fc46b7f3 | 8940 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
0085ce49 RD |
8941 | if (PyErr_Occurred()) SWIG_fail; |
8942 | } | |
fc46b7f3 | 8943 | resultobj = result; |
0085ce49 RD |
8944 | return resultobj; |
8945 | fail: | |
8946 | return NULL; | |
d14a1e28 RD |
8947 | } |
8948 | ||
8949 | ||
fc46b7f3 | 8950 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
8951 | PyObject *obj; |
8952 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 8953 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
0085ce49 | 8954 | return SWIG_Py_Void(); |
b2df227b RD |
8955 | } |
8956 | ||
fc46b7f3 | 8957 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8958 | return SWIG_Python_InitShadowInstance(args); |
d14a1e28 RD |
8959 | } |
8960 | ||
0085ce49 RD |
8961 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8962 | PyObject *resultobj = 0; | |
8963 | wxBitmap *arg1 = 0 ; | |
8964 | wxColour const &arg2_defvalue = wxNullColour ; | |
8965 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8966 | wxMask *result = 0 ; | |
8967 | void *argp1 = 0 ; | |
8968 | int res1 = 0 ; | |
8969 | wxColour temp2 ; | |
8970 | PyObject * obj0 = 0 ; | |
8971 | PyObject * obj1 = 0 ; | |
8972 | char * kwnames[] = { | |
8973 | (char *) "bitmap",(char *) "colour", NULL | |
8974 | }; | |
8975 | ||
8976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
8977 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8978 | if (!SWIG_IsOK(res1)) { | |
8979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8980 | } | |
8981 | if (!argp1) { | |
8982 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8983 | } | |
8984 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8985 | if (obj1) { | |
d14a1e28 | 8986 | { |
0085ce49 RD |
8987 | arg2 = &temp2; |
8988 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 8989 | } |
0085ce49 RD |
8990 | } |
8991 | { | |
8992 | if (!wxPyCheckForApp()) SWIG_fail; | |
8993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8994 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
8995 | wxPyEndAllowThreads(__tstate); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
8997 | } | |
8998 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
8999 | return resultobj; | |
9000 | fail: | |
9001 | return NULL; | |
d14a1e28 RD |
9002 | } |
9003 | ||
9004 | ||
0085ce49 RD |
9005 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9006 | PyObject *resultobj = 0; | |
9007 | wxMask *arg1 = (wxMask *) 0 ; | |
9008 | void *argp1 = 0 ; | |
9009 | int res1 = 0 ; | |
9010 | PyObject *swig_obj[1] ; | |
9011 | ||
9012 | if (!args) SWIG_fail; | |
9013 | swig_obj[0] = args; | |
9014 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
9015 | if (!SWIG_IsOK(res1)) { | |
9016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
9017 | } | |
9018 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
9019 | { | |
0085ce49 | 9020 | delete arg1; |
d14a1e28 | 9021 | |
0085ce49 RD |
9022 | if (PyErr_Occurred()) SWIG_fail; |
9023 | } | |
9024 | resultobj = SWIG_Py_Void(); | |
9025 | return resultobj; | |
9026 | fail: | |
9027 | return NULL; | |
9028 | } | |
9029 | ||
9030 | ||
9031 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9032 | PyObject *obj; | |
9033 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9034 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
9035 | return SWIG_Py_Void(); | |
9036 | } | |
9037 | ||
9038 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9039 | return SWIG_Python_InitShadowInstance(args); | |
9040 | } | |
9041 | ||
9042 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9043 | PyObject *resultobj = 0; | |
9044 | wxString *arg1 = 0 ; | |
9045 | wxBitmapType arg2 ; | |
9046 | int arg3 = (int) -1 ; | |
9047 | int arg4 = (int) -1 ; | |
9048 | wxIcon *result = 0 ; | |
9049 | bool temp1 = false ; | |
9050 | int val2 ; | |
9051 | int ecode2 = 0 ; | |
9052 | int val3 ; | |
9053 | int ecode3 = 0 ; | |
9054 | int val4 ; | |
9055 | int ecode4 = 0 ; | |
9056 | PyObject * obj0 = 0 ; | |
9057 | PyObject * obj1 = 0 ; | |
9058 | PyObject * obj2 = 0 ; | |
9059 | PyObject * obj3 = 0 ; | |
9060 | char * kwnames[] = { | |
9061 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
9062 | }; | |
9063 | ||
9064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9065 | { | |
9066 | arg1 = wxString_in_helper(obj0); | |
9067 | if (arg1 == NULL) SWIG_fail; | |
9068 | temp1 = true; | |
9069 | } | |
9070 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9071 | if (!SWIG_IsOK(ecode2)) { | |
9072 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
9073 | } | |
9074 | arg2 = static_cast< wxBitmapType >(val2); | |
9075 | if (obj2) { | |
9076 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9077 | if (!SWIG_IsOK(ecode3)) { | |
9078 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
9079 | } | |
9080 | arg3 = static_cast< int >(val3); | |
9081 | } | |
9082 | if (obj3) { | |
9083 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9084 | if (!SWIG_IsOK(ecode4)) { | |
9085 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
9086 | } | |
9087 | arg4 = static_cast< int >(val4); | |
9088 | } | |
9089 | { | |
9090 | if (!wxPyCheckForApp()) SWIG_fail; | |
9091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9092 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
9093 | wxPyEndAllowThreads(__tstate); | |
9094 | if (PyErr_Occurred()) SWIG_fail; | |
9095 | } | |
9096 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
9097 | { | |
9098 | if (temp1) | |
9099 | delete arg1; | |
9100 | } | |
9101 | return resultobj; | |
9102 | fail: | |
9103 | { | |
9104 | if (temp1) | |
9105 | delete arg1; | |
9106 | } | |
9107 | return NULL; | |
d14a1e28 RD |
9108 | } |
9109 | ||
9110 | ||
0085ce49 RD |
9111 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9112 | PyObject *resultobj = 0; | |
9113 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9114 | void *argp1 = 0 ; | |
9115 | int res1 = 0 ; | |
9116 | PyObject *swig_obj[1] ; | |
9117 | ||
9118 | if (!args) SWIG_fail; | |
9119 | swig_obj[0] = args; | |
9120 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
9121 | if (!SWIG_IsOK(res1)) { | |
9122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9123 | } | |
9124 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9125 | { | |
9126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9127 | delete arg1; | |
d14a1e28 | 9128 | |
0085ce49 RD |
9129 | wxPyEndAllowThreads(__tstate); |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
9131 | } | |
9132 | resultobj = SWIG_Py_Void(); | |
9133 | return resultobj; | |
9134 | fail: | |
9135 | return NULL; | |
d14a1e28 RD |
9136 | } |
9137 | ||
9138 | ||
0085ce49 RD |
9139 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9140 | PyObject *resultobj = 0; | |
9141 | wxIcon *result = 0 ; | |
9142 | ||
9143 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
9144 | { | |
9145 | if (!wxPyCheckForApp()) SWIG_fail; | |
9146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9147 | result = (wxIcon *)new wxIcon(); | |
9148 | wxPyEndAllowThreads(__tstate); | |
9149 | if (PyErr_Occurred()) SWIG_fail; | |
9150 | } | |
9151 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9152 | return resultobj; | |
9153 | fail: | |
9154 | return NULL; | |
9155 | } | |
9156 | ||
9157 | ||
9158 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9159 | PyObject *resultobj = 0; | |
9160 | wxIconLocation *arg1 = 0 ; | |
9161 | wxIcon *result = 0 ; | |
9162 | void *argp1 = 0 ; | |
9163 | int res1 = 0 ; | |
9164 | PyObject * obj0 = 0 ; | |
9165 | char * kwnames[] = { | |
9166 | (char *) "loc", NULL | |
9167 | }; | |
9168 | ||
9169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9170 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9171 | if (!SWIG_IsOK(res1)) { | |
9172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9173 | } | |
9174 | if (!argp1) { | |
9175 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9176 | } | |
9177 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9178 | { | |
9179 | if (!wxPyCheckForApp()) SWIG_fail; | |
9180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9181 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9182 | wxPyEndAllowThreads(__tstate); | |
9183 | if (PyErr_Occurred()) SWIG_fail; | |
9184 | } | |
9185 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9186 | return resultobj; | |
9187 | fail: | |
9188 | return NULL; | |
9189 | } | |
9190 | ||
9191 | ||
9192 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9193 | PyObject *resultobj = 0; | |
9194 | wxBitmap *arg1 = 0 ; | |
9195 | wxIcon *result = 0 ; | |
9196 | void *argp1 = 0 ; | |
9197 | int res1 = 0 ; | |
9198 | PyObject * obj0 = 0 ; | |
9199 | char * kwnames[] = { | |
9200 | (char *) "bmp", NULL | |
9201 | }; | |
9202 | ||
9203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9204 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9205 | if (!SWIG_IsOK(res1)) { | |
9206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9207 | } | |
9208 | if (!argp1) { | |
9209 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9210 | } | |
9211 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9212 | { | |
9213 | if (!wxPyCheckForApp()) SWIG_fail; | |
9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9215 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9216 | wxPyEndAllowThreads(__tstate); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | } | |
9219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9220 | return resultobj; | |
9221 | fail: | |
9222 | return NULL; | |
d14a1e28 RD |
9223 | } |
9224 | ||
9225 | ||
0085ce49 RD |
9226 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9227 | PyObject *resultobj = 0; | |
9228 | PyObject *arg1 = (PyObject *) 0 ; | |
9229 | wxIcon *result = 0 ; | |
9230 | PyObject * obj0 = 0 ; | |
9231 | char * kwnames[] = { | |
9232 | (char *) "listOfStrings", NULL | |
9233 | }; | |
9234 | ||
9235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9236 | arg1 = obj0; | |
9237 | { | |
9238 | if (!wxPyCheckForApp()) SWIG_fail; | |
9239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9240 | result = (wxIcon *)new_wxIcon(arg1); | |
9241 | wxPyEndAllowThreads(__tstate); | |
9242 | if (PyErr_Occurred()) SWIG_fail; | |
9243 | } | |
9244 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9245 | return resultobj; | |
9246 | fail: | |
9247 | return NULL; | |
9248 | } | |
9249 | ||
9250 | ||
9251 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9252 | PyObject *resultobj = 0; | |
9253 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9254 | wxString *arg2 = 0 ; | |
9255 | wxBitmapType arg3 ; | |
9256 | bool result; | |
9257 | void *argp1 = 0 ; | |
9258 | int res1 = 0 ; | |
9259 | bool temp2 = false ; | |
9260 | int val3 ; | |
9261 | int ecode3 = 0 ; | |
9262 | PyObject * obj0 = 0 ; | |
9263 | PyObject * obj1 = 0 ; | |
9264 | PyObject * obj2 = 0 ; | |
9265 | char * kwnames[] = { | |
9266 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9267 | }; | |
9268 | ||
9269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9271 | if (!SWIG_IsOK(res1)) { | |
9272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9273 | } | |
9274 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9275 | { | |
9276 | arg2 = wxString_in_helper(obj1); | |
9277 | if (arg2 == NULL) SWIG_fail; | |
9278 | temp2 = true; | |
9279 | } | |
9280 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9281 | if (!SWIG_IsOK(ecode3)) { | |
9282 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9283 | } | |
9284 | arg3 = static_cast< wxBitmapType >(val3); | |
9285 | { | |
9286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9287 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9288 | wxPyEndAllowThreads(__tstate); | |
9289 | if (PyErr_Occurred()) SWIG_fail; | |
9290 | } | |
9291 | { | |
9292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9293 | } | |
9294 | { | |
9295 | if (temp2) | |
9296 | delete arg2; | |
9297 | } | |
9298 | return resultobj; | |
9299 | fail: | |
9300 | { | |
9301 | if (temp2) | |
9302 | delete arg2; | |
9303 | } | |
9304 | return NULL; | |
d14a1e28 RD |
9305 | } |
9306 | ||
9307 | ||
b39fe951 | 9308 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
9309 | PyObject *resultobj = 0; |
9310 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9311 | bool result; | |
9312 | void *argp1 = 0 ; | |
9313 | int res1 = 0 ; | |
9314 | PyObject *swig_obj[1] ; | |
9315 | ||
9316 | if (!args) SWIG_fail; | |
9317 | swig_obj[0] = args; | |
9318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9319 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
0085ce49 RD |
9321 | } |
9322 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9323 | { | |
9324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9325 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
9326 | wxPyEndAllowThreads(__tstate); |
9327 | if (PyErr_Occurred()) SWIG_fail; | |
9328 | } | |
9329 | { | |
9330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9331 | } | |
9332 | return resultobj; | |
9333 | fail: | |
9334 | return NULL; | |
d14a1e28 RD |
9335 | } |
9336 | ||
9337 | ||
0085ce49 RD |
9338 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9339 | PyObject *resultobj = 0; | |
9340 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9341 | int result; | |
9342 | void *argp1 = 0 ; | |
9343 | int res1 = 0 ; | |
9344 | PyObject *swig_obj[1] ; | |
9345 | ||
9346 | if (!args) SWIG_fail; | |
9347 | swig_obj[0] = args; | |
9348 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9349 | if (!SWIG_IsOK(res1)) { | |
9350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9351 | } | |
9352 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9353 | { | |
9354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9355 | result = (int)(arg1)->GetWidth(); | |
9356 | wxPyEndAllowThreads(__tstate); | |
9357 | if (PyErr_Occurred()) SWIG_fail; | |
9358 | } | |
9359 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9360 | return resultobj; | |
9361 | fail: | |
9362 | return NULL; | |
d3b6e4ff RD |
9363 | } |
9364 | ||
9365 | ||
0085ce49 RD |
9366 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9367 | PyObject *resultobj = 0; | |
9368 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9369 | int result; | |
9370 | void *argp1 = 0 ; | |
9371 | int res1 = 0 ; | |
9372 | PyObject *swig_obj[1] ; | |
9373 | ||
9374 | if (!args) SWIG_fail; | |
9375 | swig_obj[0] = args; | |
9376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9377 | if (!SWIG_IsOK(res1)) { | |
9378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9379 | } | |
9380 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9381 | { | |
9382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9383 | result = (int)(arg1)->GetHeight(); | |
9384 | wxPyEndAllowThreads(__tstate); | |
9385 | if (PyErr_Occurred()) SWIG_fail; | |
9386 | } | |
9387 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9388 | return resultobj; | |
9389 | fail: | |
9390 | return NULL; | |
d14a1e28 RD |
9391 | } |
9392 | ||
9393 | ||
0085ce49 RD |
9394 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9395 | PyObject *resultobj = 0; | |
9396 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9397 | int result; | |
9398 | void *argp1 = 0 ; | |
9399 | int res1 = 0 ; | |
9400 | PyObject *swig_obj[1] ; | |
9401 | ||
9402 | if (!args) SWIG_fail; | |
9403 | swig_obj[0] = args; | |
9404 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9405 | if (!SWIG_IsOK(res1)) { | |
9406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9407 | } | |
9408 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9409 | { | |
9410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9411 | result = (int)(arg1)->GetDepth(); | |
9412 | wxPyEndAllowThreads(__tstate); | |
9413 | if (PyErr_Occurred()) SWIG_fail; | |
9414 | } | |
9415 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9416 | return resultobj; | |
9417 | fail: | |
9418 | return NULL; | |
9419 | } | |
9420 | ||
9421 | ||
9422 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9423 | PyObject *resultobj = 0; | |
9424 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9425 | int arg2 ; | |
9426 | void *argp1 = 0 ; | |
9427 | int res1 = 0 ; | |
9428 | int val2 ; | |
9429 | int ecode2 = 0 ; | |
9430 | PyObject * obj0 = 0 ; | |
9431 | PyObject * obj1 = 0 ; | |
9432 | char * kwnames[] = { | |
9433 | (char *) "self",(char *) "w", NULL | |
9434 | }; | |
9435 | ||
9436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9437 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9438 | if (!SWIG_IsOK(res1)) { | |
9439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9440 | } | |
9441 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9442 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9443 | if (!SWIG_IsOK(ecode2)) { | |
9444 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9445 | } | |
9446 | arg2 = static_cast< int >(val2); | |
9447 | { | |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9449 | (arg1)->SetWidth(arg2); | |
9450 | wxPyEndAllowThreads(__tstate); | |
9451 | if (PyErr_Occurred()) SWIG_fail; | |
9452 | } | |
9453 | resultobj = SWIG_Py_Void(); | |
9454 | return resultobj; | |
9455 | fail: | |
9456 | return NULL; | |
9457 | } | |
9458 | ||
9459 | ||
9460 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9461 | PyObject *resultobj = 0; | |
9462 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9463 | int arg2 ; | |
9464 | void *argp1 = 0 ; | |
9465 | int res1 = 0 ; | |
9466 | int val2 ; | |
9467 | int ecode2 = 0 ; | |
9468 | PyObject * obj0 = 0 ; | |
9469 | PyObject * obj1 = 0 ; | |
9470 | char * kwnames[] = { | |
9471 | (char *) "self",(char *) "h", NULL | |
9472 | }; | |
9473 | ||
9474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9476 | if (!SWIG_IsOK(res1)) { | |
9477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9478 | } | |
9479 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9480 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9481 | if (!SWIG_IsOK(ecode2)) { | |
9482 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9483 | } | |
9484 | arg2 = static_cast< int >(val2); | |
9485 | { | |
9486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9487 | (arg1)->SetHeight(arg2); | |
9488 | wxPyEndAllowThreads(__tstate); | |
9489 | if (PyErr_Occurred()) SWIG_fail; | |
9490 | } | |
9491 | resultobj = SWIG_Py_Void(); | |
9492 | return resultobj; | |
9493 | fail: | |
9494 | return NULL; | |
9495 | } | |
9496 | ||
9497 | ||
9498 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9499 | PyObject *resultobj = 0; | |
9500 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9501 | int arg2 ; | |
9502 | void *argp1 = 0 ; | |
9503 | int res1 = 0 ; | |
9504 | int val2 ; | |
9505 | int ecode2 = 0 ; | |
9506 | PyObject * obj0 = 0 ; | |
9507 | PyObject * obj1 = 0 ; | |
9508 | char * kwnames[] = { | |
9509 | (char *) "self",(char *) "d", NULL | |
9510 | }; | |
9511 | ||
9512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9514 | if (!SWIG_IsOK(res1)) { | |
9515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9516 | } | |
9517 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9518 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9519 | if (!SWIG_IsOK(ecode2)) { | |
9520 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9521 | } | |
9522 | arg2 = static_cast< int >(val2); | |
9523 | { | |
9524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9525 | (arg1)->SetDepth(arg2); | |
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
9529 | resultobj = SWIG_Py_Void(); | |
9530 | return resultobj; | |
9531 | fail: | |
9532 | return NULL; | |
9533 | } | |
9534 | ||
9535 | ||
9536 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9537 | PyObject *resultobj = 0; | |
9538 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9539 | wxBitmap *arg2 = 0 ; | |
9540 | void *argp1 = 0 ; | |
9541 | int res1 = 0 ; | |
9542 | void *argp2 = 0 ; | |
9543 | int res2 = 0 ; | |
9544 | PyObject * obj0 = 0 ; | |
9545 | PyObject * obj1 = 0 ; | |
9546 | char * kwnames[] = { | |
9547 | (char *) "self",(char *) "bmp", NULL | |
9548 | }; | |
9549 | ||
9550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9552 | if (!SWIG_IsOK(res1)) { | |
9553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9554 | } | |
9555 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9556 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9557 | if (!SWIG_IsOK(res2)) { | |
9558 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9559 | } | |
9560 | if (!argp2) { | |
9561 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9562 | } | |
9563 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9564 | { | |
9565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9566 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9567 | wxPyEndAllowThreads(__tstate); | |
9568 | if (PyErr_Occurred()) SWIG_fail; | |
9569 | } | |
9570 | resultobj = SWIG_Py_Void(); | |
9571 | return resultobj; | |
9572 | fail: | |
9573 | return NULL; | |
d14a1e28 RD |
9574 | } |
9575 | ||
9576 | ||
0085ce49 RD |
9577 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9578 | PyObject *obj; | |
9579 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9580 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9581 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9582 | } |
9583 | ||
0085ce49 RD |
9584 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9585 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9586 | } |
9587 | ||
0085ce49 RD |
9588 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9589 | PyObject *resultobj = 0; | |
9590 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9591 | int arg2 = (int) 0 ; | |
9592 | wxIconLocation *result = 0 ; | |
9593 | bool temp1 = false ; | |
9594 | int val2 ; | |
9595 | int ecode2 = 0 ; | |
9596 | PyObject * obj0 = 0 ; | |
9597 | PyObject * obj1 = 0 ; | |
9598 | char * kwnames[] = { | |
9599 | (char *) "filename",(char *) "num", NULL | |
9600 | }; | |
9601 | ||
9602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9603 | if (obj0) { | |
b2df227b | 9604 | { |
0085ce49 RD |
9605 | arg1 = wxString_in_helper(obj0); |
9606 | if (arg1 == NULL) SWIG_fail; | |
9607 | temp1 = true; | |
b2df227b | 9608 | } |
0085ce49 RD |
9609 | } |
9610 | if (obj1) { | |
9611 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9612 | if (!SWIG_IsOK(ecode2)) { | |
9613 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9614 | } | |
9615 | arg2 = static_cast< int >(val2); | |
9616 | } | |
9617 | { | |
9618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9619 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9620 | wxPyEndAllowThreads(__tstate); | |
9621 | if (PyErr_Occurred()) SWIG_fail; | |
9622 | } | |
9623 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9624 | { | |
9625 | if (temp1) | |
9626 | delete arg1; | |
9627 | } | |
9628 | return resultobj; | |
9629 | fail: | |
9630 | { | |
9631 | if (temp1) | |
9632 | delete arg1; | |
9633 | } | |
9634 | return NULL; | |
b2df227b RD |
9635 | } |
9636 | ||
9637 | ||
0085ce49 RD |
9638 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9639 | PyObject *resultobj = 0; | |
9640 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9641 | void *argp1 = 0 ; | |
9642 | int res1 = 0 ; | |
9643 | PyObject *swig_obj[1] ; | |
9644 | ||
9645 | if (!args) SWIG_fail; | |
9646 | swig_obj[0] = args; | |
9647 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9648 | if (!SWIG_IsOK(res1)) { | |
9649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9650 | } | |
9651 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9652 | { | |
9653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9654 | delete arg1; | |
4276dc52 | 9655 | |
0085ce49 RD |
9656 | wxPyEndAllowThreads(__tstate); |
9657 | if (PyErr_Occurred()) SWIG_fail; | |
9658 | } | |
9659 | resultobj = SWIG_Py_Void(); | |
9660 | return resultobj; | |
9661 | fail: | |
9662 | return NULL; | |
4276dc52 RD |
9663 | } |
9664 | ||
9665 | ||
0085ce49 RD |
9666 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9667 | PyObject *resultobj = 0; | |
9668 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9669 | bool result; | |
9670 | void *argp1 = 0 ; | |
9671 | int res1 = 0 ; | |
9672 | PyObject *swig_obj[1] ; | |
9673 | ||
9674 | if (!args) SWIG_fail; | |
9675 | swig_obj[0] = args; | |
9676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9677 | if (!SWIG_IsOK(res1)) { | |
9678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9679 | } | |
9680 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9681 | { | |
9682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9683 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
9687 | { | |
9688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9689 | } | |
9690 | return resultobj; | |
9691 | fail: | |
9692 | return NULL; | |
9693 | } | |
9694 | ||
9695 | ||
9696 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9697 | PyObject *resultobj = 0; | |
9698 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9699 | wxString *arg2 = 0 ; | |
9700 | void *argp1 = 0 ; | |
9701 | int res1 = 0 ; | |
9702 | bool temp2 = false ; | |
9703 | PyObject * obj0 = 0 ; | |
9704 | PyObject * obj1 = 0 ; | |
9705 | char * kwnames[] = { | |
9706 | (char *) "self",(char *) "filename", NULL | |
9707 | }; | |
9708 | ||
9709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9711 | if (!SWIG_IsOK(res1)) { | |
9712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9713 | } | |
9714 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9715 | { | |
9716 | arg2 = wxString_in_helper(obj1); | |
9717 | if (arg2 == NULL) SWIG_fail; | |
9718 | temp2 = true; | |
9719 | } | |
9720 | { | |
9721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9722 | (arg1)->SetFileName((wxString const &)*arg2); | |
9723 | wxPyEndAllowThreads(__tstate); | |
9724 | if (PyErr_Occurred()) SWIG_fail; | |
9725 | } | |
9726 | resultobj = SWIG_Py_Void(); | |
9727 | { | |
9728 | if (temp2) | |
9729 | delete arg2; | |
9730 | } | |
9731 | return resultobj; | |
9732 | fail: | |
9733 | { | |
9734 | if (temp2) | |
9735 | delete arg2; | |
9736 | } | |
9737 | return NULL; | |
4276dc52 RD |
9738 | } |
9739 | ||
9740 | ||
0085ce49 RD |
9741 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9742 | PyObject *resultobj = 0; | |
9743 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9744 | wxString *result = 0 ; | |
9745 | void *argp1 = 0 ; | |
9746 | int res1 = 0 ; | |
9747 | PyObject *swig_obj[1] ; | |
9748 | ||
9749 | if (!args) SWIG_fail; | |
9750 | swig_obj[0] = args; | |
9751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9752 | if (!SWIG_IsOK(res1)) { | |
9753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9754 | } | |
9755 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9758 | { |
0085ce49 RD |
9759 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
9760 | result = (wxString *) &_result_ref; | |
093d3ff1 | 9761 | } |
0085ce49 RD |
9762 | wxPyEndAllowThreads(__tstate); |
9763 | if (PyErr_Occurred()) SWIG_fail; | |
9764 | } | |
9765 | { | |
9766 | #if wxUSE_UNICODE | |
9767 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9768 | #else | |
9769 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9770 | #endif | |
9771 | } | |
9772 | return resultobj; | |
9773 | fail: | |
9774 | return NULL; | |
9775 | } | |
9776 | ||
9777 | ||
9778 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9779 | PyObject *resultobj = 0; | |
9780 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9781 | int arg2 ; | |
9782 | void *argp1 = 0 ; | |
9783 | int res1 = 0 ; | |
9784 | int val2 ; | |
9785 | int ecode2 = 0 ; | |
9786 | PyObject * obj0 = 0 ; | |
9787 | PyObject * obj1 = 0 ; | |
9788 | char * kwnames[] = { | |
9789 | (char *) "self",(char *) "num", NULL | |
9790 | }; | |
9791 | ||
9792 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
9793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9794 | if (!SWIG_IsOK(res1)) { | |
9795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9796 | } | |
9797 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9798 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9799 | if (!SWIG_IsOK(ecode2)) { | |
9800 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
9801 | } | |
9802 | arg2 = static_cast< int >(val2); | |
9803 | { | |
9804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9805 | wxIconLocation_SetIndex(arg1,arg2); | |
9806 | wxPyEndAllowThreads(__tstate); | |
9807 | if (PyErr_Occurred()) SWIG_fail; | |
9808 | } | |
9809 | resultobj = SWIG_Py_Void(); | |
9810 | return resultobj; | |
9811 | fail: | |
9812 | return NULL; | |
d14a1e28 RD |
9813 | } |
9814 | ||
9815 | ||
0085ce49 RD |
9816 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9817 | PyObject *resultobj = 0; | |
9818 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9819 | int result; | |
9820 | void *argp1 = 0 ; | |
9821 | int res1 = 0 ; | |
9822 | PyObject *swig_obj[1] ; | |
9823 | ||
9824 | if (!args) SWIG_fail; | |
9825 | swig_obj[0] = args; | |
9826 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9827 | if (!SWIG_IsOK(res1)) { | |
9828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9829 | } | |
9830 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9831 | { | |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | result = (int)wxIconLocation_GetIndex(arg1); | |
9834 | wxPyEndAllowThreads(__tstate); | |
9835 | if (PyErr_Occurred()) SWIG_fail; | |
9836 | } | |
9837 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9838 | return resultobj; | |
9839 | fail: | |
9840 | return NULL; | |
d14a1e28 RD |
9841 | } |
9842 | ||
9843 | ||
0085ce49 RD |
9844 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9845 | PyObject *obj; | |
9846 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9847 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
9848 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9849 | } |
9850 | ||
0085ce49 RD |
9851 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9852 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9853 | } |
9854 | ||
0085ce49 RD |
9855 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9856 | PyObject *resultobj = 0; | |
9857 | wxIconBundle *result = 0 ; | |
9858 | ||
9859 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
9860 | { | |
9861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9862 | result = (wxIconBundle *)new wxIconBundle(); | |
9863 | wxPyEndAllowThreads(__tstate); | |
9864 | if (PyErr_Occurred()) SWIG_fail; | |
9865 | } | |
9866 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
9867 | return resultobj; | |
9868 | fail: | |
9869 | return NULL; | |
9870 | } | |
9871 | ||
9872 | ||
9873 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9874 | PyObject *resultobj = 0; | |
9875 | wxString *arg1 = 0 ; | |
9876 | long arg2 ; | |
9877 | wxIconBundle *result = 0 ; | |
9878 | bool temp1 = false ; | |
9879 | long val2 ; | |
9880 | int ecode2 = 0 ; | |
9881 | PyObject * obj0 = 0 ; | |
9882 | PyObject * obj1 = 0 ; | |
9883 | char * kwnames[] = { | |
9884 | (char *) "file",(char *) "type", NULL | |
9885 | }; | |
9886 | ||
9887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
9888 | { | |
9889 | arg1 = wxString_in_helper(obj0); | |
9890 | if (arg1 == NULL) SWIG_fail; | |
9891 | temp1 = true; | |
9892 | } | |
9893 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9894 | if (!SWIG_IsOK(ecode2)) { | |
9895 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
9896 | } | |
9897 | arg2 = static_cast< long >(val2); | |
9898 | { | |
9899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9900 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
9901 | wxPyEndAllowThreads(__tstate); | |
9902 | if (PyErr_Occurred()) SWIG_fail; | |
9903 | } | |
9904 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9905 | { | |
9906 | if (temp1) | |
9907 | delete arg1; | |
9908 | } | |
9909 | return resultobj; | |
9910 | fail: | |
9911 | { | |
9912 | if (temp1) | |
9913 | delete arg1; | |
9914 | } | |
9915 | return NULL; | |
d14a1e28 RD |
9916 | } |
9917 | ||
9918 | ||
0085ce49 RD |
9919 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9920 | PyObject *resultobj = 0; | |
9921 | wxIcon *arg1 = 0 ; | |
9922 | wxIconBundle *result = 0 ; | |
9923 | void *argp1 = 0 ; | |
9924 | int res1 = 0 ; | |
9925 | PyObject * obj0 = 0 ; | |
9926 | char * kwnames[] = { | |
9927 | (char *) "icon", NULL | |
9928 | }; | |
9929 | ||
9930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
9931 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
9932 | if (!SWIG_IsOK(res1)) { | |
9933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9934 | } | |
9935 | if (!argp1) { | |
9936 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9937 | } | |
9938 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9939 | { | |
9940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9941 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
9942 | wxPyEndAllowThreads(__tstate); | |
9943 | if (PyErr_Occurred()) SWIG_fail; | |
9944 | } | |
9945 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9946 | return resultobj; | |
9947 | fail: | |
9948 | return NULL; | |
d14a1e28 RD |
9949 | } |
9950 | ||
9951 | ||
0085ce49 RD |
9952 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9953 | PyObject *resultobj = 0; | |
9954 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9955 | void *argp1 = 0 ; | |
9956 | int res1 = 0 ; | |
9957 | PyObject *swig_obj[1] ; | |
9958 | ||
9959 | if (!args) SWIG_fail; | |
9960 | swig_obj[0] = args; | |
9961 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
9962 | if (!SWIG_IsOK(res1)) { | |
9963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9964 | } | |
9965 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9966 | { | |
9967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9968 | delete arg1; | |
d14a1e28 | 9969 | |
0085ce49 RD |
9970 | wxPyEndAllowThreads(__tstate); |
9971 | if (PyErr_Occurred()) SWIG_fail; | |
9972 | } | |
9973 | resultobj = SWIG_Py_Void(); | |
9974 | return resultobj; | |
9975 | fail: | |
9976 | return NULL; | |
9977 | } | |
9978 | ||
9979 | ||
9980 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9981 | PyObject *resultobj = 0; | |
9982 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9983 | wxIcon *arg2 = 0 ; | |
9984 | void *argp1 = 0 ; | |
9985 | int res1 = 0 ; | |
9986 | void *argp2 = 0 ; | |
9987 | int res2 = 0 ; | |
9988 | PyObject * obj0 = 0 ; | |
9989 | PyObject * obj1 = 0 ; | |
9990 | char * kwnames[] = { | |
9991 | (char *) "self",(char *) "icon", NULL | |
9992 | }; | |
9993 | ||
9994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
9995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9996 | if (!SWIG_IsOK(res1)) { | |
9997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9998 | } | |
9999 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10000 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
10001 | if (!SWIG_IsOK(res2)) { | |
10002 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10003 | } | |
10004 | if (!argp2) { | |
10005 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10006 | } | |
10007 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
10008 | { | |
10009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10010 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
10011 | wxPyEndAllowThreads(__tstate); | |
10012 | if (PyErr_Occurred()) SWIG_fail; | |
10013 | } | |
10014 | resultobj = SWIG_Py_Void(); | |
10015 | return resultobj; | |
10016 | fail: | |
10017 | return NULL; | |
10018 | } | |
10019 | ||
10020 | ||
10021 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10022 | PyObject *resultobj = 0; | |
10023 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10024 | wxString *arg2 = 0 ; | |
10025 | long arg3 ; | |
10026 | void *argp1 = 0 ; | |
10027 | int res1 = 0 ; | |
10028 | bool temp2 = false ; | |
10029 | long val3 ; | |
10030 | int ecode3 = 0 ; | |
10031 | PyObject * obj0 = 0 ; | |
10032 | PyObject * obj1 = 0 ; | |
10033 | PyObject * obj2 = 0 ; | |
10034 | char * kwnames[] = { | |
10035 | (char *) "self",(char *) "file",(char *) "type", NULL | |
10036 | }; | |
10037 | ||
10038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10040 | if (!SWIG_IsOK(res1)) { | |
10041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10042 | } | |
10043 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10044 | { | |
10045 | arg2 = wxString_in_helper(obj1); | |
10046 | if (arg2 == NULL) SWIG_fail; | |
10047 | temp2 = true; | |
10048 | } | |
10049 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10050 | if (!SWIG_IsOK(ecode3)) { | |
10051 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
10052 | } | |
10053 | arg3 = static_cast< long >(val3); | |
10054 | { | |
10055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10056 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
10057 | wxPyEndAllowThreads(__tstate); | |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | } | |
10060 | resultobj = SWIG_Py_Void(); | |
10061 | { | |
10062 | if (temp2) | |
10063 | delete arg2; | |
10064 | } | |
10065 | return resultobj; | |
10066 | fail: | |
10067 | { | |
10068 | if (temp2) | |
10069 | delete arg2; | |
10070 | } | |
10071 | return NULL; | |
10072 | } | |
10073 | ||
10074 | ||
10075 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10076 | PyObject *resultobj = 0; | |
10077 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10078 | wxSize *arg2 = 0 ; | |
10079 | wxIcon *result = 0 ; | |
10080 | void *argp1 = 0 ; | |
10081 | int res1 = 0 ; | |
10082 | wxSize temp2 ; | |
10083 | PyObject * obj0 = 0 ; | |
10084 | PyObject * obj1 = 0 ; | |
10085 | char * kwnames[] = { | |
10086 | (char *) "self",(char *) "size", NULL | |
10087 | }; | |
10088 | ||
10089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10091 | if (!SWIG_IsOK(res1)) { | |
10092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10093 | } | |
10094 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10095 | { | |
10096 | arg2 = &temp2; | |
10097 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10098 | } | |
10099 | { | |
10100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 10101 | { |
0085ce49 RD |
10102 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
10103 | result = (wxIcon *) &_result_ref; | |
d14a1e28 | 10104 | } |
0085ce49 RD |
10105 | wxPyEndAllowThreads(__tstate); |
10106 | if (PyErr_Occurred()) SWIG_fail; | |
10107 | } | |
10108 | { | |
10109 | wxIcon* resultptr = new wxIcon(*result); | |
10110 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
10111 | } | |
10112 | return resultobj; | |
10113 | fail: | |
10114 | return NULL; | |
10115 | } | |
10116 | ||
10117 | ||
10118 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10119 | PyObject *obj; | |
10120 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10121 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
10122 | return SWIG_Py_Void(); | |
10123 | } | |
10124 | ||
10125 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10126 | return SWIG_Python_InitShadowInstance(args); | |
10127 | } | |
10128 | ||
10129 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10130 | PyObject *resultobj = 0; | |
10131 | wxString *arg1 = 0 ; | |
10132 | long arg2 ; | |
10133 | int arg3 = (int) 0 ; | |
10134 | int arg4 = (int) 0 ; | |
10135 | wxCursor *result = 0 ; | |
10136 | bool temp1 = false ; | |
10137 | long val2 ; | |
10138 | int ecode2 = 0 ; | |
10139 | int val3 ; | |
10140 | int ecode3 = 0 ; | |
10141 | int val4 ; | |
10142 | int ecode4 = 0 ; | |
10143 | PyObject * obj0 = 0 ; | |
10144 | PyObject * obj1 = 0 ; | |
10145 | PyObject * obj2 = 0 ; | |
10146 | PyObject * obj3 = 0 ; | |
10147 | char * kwnames[] = { | |
10148 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
10149 | }; | |
10150 | ||
10151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10152 | { | |
10153 | arg1 = wxString_in_helper(obj0); | |
10154 | if (arg1 == NULL) SWIG_fail; | |
10155 | temp1 = true; | |
10156 | } | |
10157 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10158 | if (!SWIG_IsOK(ecode2)) { | |
10159 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
10160 | } | |
10161 | arg2 = static_cast< long >(val2); | |
10162 | if (obj2) { | |
10163 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10164 | if (!SWIG_IsOK(ecode3)) { | |
10165 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
10166 | } | |
10167 | arg3 = static_cast< int >(val3); | |
10168 | } | |
10169 | if (obj3) { | |
10170 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10171 | if (!SWIG_IsOK(ecode4)) { | |
10172 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10173 | } | |
10174 | arg4 = static_cast< int >(val4); | |
10175 | } | |
10176 | { | |
10177 | if (!wxPyCheckForApp()) SWIG_fail; | |
10178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10179 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10180 | wxPyEndAllowThreads(__tstate); | |
10181 | if (PyErr_Occurred()) SWIG_fail; | |
10182 | } | |
10183 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10184 | { | |
10185 | if (temp1) | |
10186 | delete arg1; | |
10187 | } | |
10188 | return resultobj; | |
10189 | fail: | |
10190 | { | |
10191 | if (temp1) | |
10192 | delete arg1; | |
10193 | } | |
10194 | return NULL; | |
d14a1e28 RD |
10195 | } |
10196 | ||
10197 | ||
0085ce49 RD |
10198 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10199 | PyObject *resultobj = 0; | |
10200 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10201 | void *argp1 = 0 ; | |
10202 | int res1 = 0 ; | |
10203 | PyObject *swig_obj[1] ; | |
10204 | ||
10205 | if (!args) SWIG_fail; | |
10206 | swig_obj[0] = args; | |
10207 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10208 | if (!SWIG_IsOK(res1)) { | |
10209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10210 | } | |
10211 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10212 | { | |
10213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10214 | delete arg1; | |
093d3ff1 | 10215 | |
0085ce49 RD |
10216 | wxPyEndAllowThreads(__tstate); |
10217 | if (PyErr_Occurred()) SWIG_fail; | |
10218 | } | |
10219 | resultobj = SWIG_Py_Void(); | |
10220 | return resultobj; | |
10221 | fail: | |
10222 | return NULL; | |
10223 | } | |
10224 | ||
10225 | ||
10226 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10227 | PyObject *resultobj = 0; | |
10228 | int arg1 ; | |
10229 | wxCursor *result = 0 ; | |
10230 | int val1 ; | |
10231 | int ecode1 = 0 ; | |
10232 | PyObject * obj0 = 0 ; | |
10233 | char * kwnames[] = { | |
10234 | (char *) "id", NULL | |
10235 | }; | |
10236 | ||
10237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10238 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10239 | if (!SWIG_IsOK(ecode1)) { | |
10240 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10241 | } | |
10242 | arg1 = static_cast< int >(val1); | |
10243 | { | |
10244 | if (!wxPyCheckForApp()) SWIG_fail; | |
10245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10246 | result = (wxCursor *)new wxCursor(arg1); | |
10247 | wxPyEndAllowThreads(__tstate); | |
10248 | if (PyErr_Occurred()) SWIG_fail; | |
10249 | } | |
10250 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10251 | return resultobj; | |
10252 | fail: | |
10253 | return NULL; | |
10254 | } | |
10255 | ||
10256 | ||
10257 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10258 | PyObject *resultobj = 0; | |
10259 | wxImage *arg1 = 0 ; | |
10260 | wxCursor *result = 0 ; | |
10261 | void *argp1 = 0 ; | |
10262 | int res1 = 0 ; | |
10263 | PyObject * obj0 = 0 ; | |
10264 | char * kwnames[] = { | |
10265 | (char *) "image", NULL | |
10266 | }; | |
10267 | ||
10268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10269 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10270 | if (!SWIG_IsOK(res1)) { | |
10271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10272 | } | |
10273 | if (!argp1) { | |
10274 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10275 | } | |
10276 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10277 | { | |
10278 | if (!wxPyCheckForApp()) SWIG_fail; | |
10279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10280 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10281 | wxPyEndAllowThreads(__tstate); | |
10282 | if (PyErr_Occurred()) SWIG_fail; | |
10283 | } | |
10284 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10285 | return resultobj; | |
10286 | fail: | |
10287 | return NULL; | |
093d3ff1 RD |
10288 | } |
10289 | ||
10290 | ||
b39fe951 | 10291 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
10292 | PyObject *resultobj = 0; |
10293 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10294 | bool result; | |
10295 | void *argp1 = 0 ; | |
10296 | int res1 = 0 ; | |
10297 | PyObject *swig_obj[1] ; | |
10298 | ||
10299 | if (!args) SWIG_fail; | |
10300 | swig_obj[0] = args; | |
10301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10302 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
0085ce49 RD |
10304 | } |
10305 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10306 | { | |
10307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10308 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
10309 | wxPyEndAllowThreads(__tstate); |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
10311 | } | |
10312 | { | |
10313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10314 | } | |
10315 | return resultobj; | |
10316 | fail: | |
10317 | return NULL; | |
10318 | } | |
10319 | ||
10320 | ||
10321 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10322 | PyObject *obj; | |
10323 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10324 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10325 | return SWIG_Py_Void(); | |
10326 | } | |
10327 | ||
10328 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10329 | return SWIG_Python_InitShadowInstance(args); | |
10330 | } | |
10331 | ||
10332 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10333 | PyObject *resultobj = 0; | |
10334 | int arg1 = (int) 0 ; | |
10335 | int arg2 = (int) 0 ; | |
10336 | int arg3 = (int) 0 ; | |
10337 | int arg4 = (int) 0 ; | |
10338 | wxRegion *result = 0 ; | |
10339 | int val1 ; | |
10340 | int ecode1 = 0 ; | |
10341 | int val2 ; | |
10342 | int ecode2 = 0 ; | |
10343 | int val3 ; | |
10344 | int ecode3 = 0 ; | |
10345 | int val4 ; | |
10346 | int ecode4 = 0 ; | |
10347 | PyObject * obj0 = 0 ; | |
10348 | PyObject * obj1 = 0 ; | |
10349 | PyObject * obj2 = 0 ; | |
10350 | PyObject * obj3 = 0 ; | |
10351 | char * kwnames[] = { | |
10352 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10353 | }; | |
10354 | ||
10355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10356 | if (obj0) { | |
10357 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10358 | if (!SWIG_IsOK(ecode1)) { | |
10359 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10360 | } | |
10361 | arg1 = static_cast< int >(val1); | |
10362 | } | |
10363 | if (obj1) { | |
10364 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10365 | if (!SWIG_IsOK(ecode2)) { | |
10366 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10367 | } | |
10368 | arg2 = static_cast< int >(val2); | |
10369 | } | |
10370 | if (obj2) { | |
10371 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10372 | if (!SWIG_IsOK(ecode3)) { | |
10373 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10374 | } | |
10375 | arg3 = static_cast< int >(val3); | |
10376 | } | |
10377 | if (obj3) { | |
10378 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10379 | if (!SWIG_IsOK(ecode4)) { | |
10380 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10381 | } | |
10382 | arg4 = static_cast< int >(val4); | |
10383 | } | |
10384 | { | |
10385 | if (!wxPyCheckForApp()) SWIG_fail; | |
10386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10387 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10388 | wxPyEndAllowThreads(__tstate); | |
10389 | if (PyErr_Occurred()) SWIG_fail; | |
10390 | } | |
10391 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10392 | return resultobj; | |
10393 | fail: | |
10394 | return NULL; | |
10395 | } | |
10396 | ||
10397 | ||
10398 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10399 | PyObject *resultobj = 0; | |
10400 | wxBitmap *arg1 = 0 ; | |
10401 | wxRegion *result = 0 ; | |
10402 | void *argp1 = 0 ; | |
10403 | int res1 = 0 ; | |
10404 | PyObject * obj0 = 0 ; | |
10405 | char * kwnames[] = { | |
10406 | (char *) "bmp", NULL | |
10407 | }; | |
10408 | ||
10409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
10410 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10411 | if (!SWIG_IsOK(res1)) { | |
10412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10413 | } | |
10414 | if (!argp1) { | |
10415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10416 | } | |
10417 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10418 | { | |
10419 | if (!wxPyCheckForApp()) SWIG_fail; | |
10420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10421 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
10422 | wxPyEndAllowThreads(__tstate); | |
10423 | if (PyErr_Occurred()) SWIG_fail; | |
10424 | } | |
10425 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10426 | return resultobj; | |
10427 | fail: | |
10428 | return NULL; | |
10429 | } | |
10430 | ||
10431 | ||
10432 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10433 | PyObject *resultobj = 0; | |
10434 | wxBitmap *arg1 = 0 ; | |
10435 | wxColour *arg2 = 0 ; | |
10436 | int arg3 = (int) 0 ; | |
10437 | wxRegion *result = 0 ; | |
10438 | void *argp1 = 0 ; | |
10439 | int res1 = 0 ; | |
10440 | wxColour temp2 ; | |
10441 | int val3 ; | |
10442 | int ecode3 = 0 ; | |
10443 | PyObject * obj0 = 0 ; | |
10444 | PyObject * obj1 = 0 ; | |
10445 | PyObject * obj2 = 0 ; | |
10446 | char * kwnames[] = { | |
10447 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
10448 | }; | |
10449 | ||
10450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10451 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10452 | if (!SWIG_IsOK(res1)) { | |
10453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10454 | } | |
10455 | if (!argp1) { | |
10456 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10457 | } | |
10458 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10459 | { | |
10460 | arg2 = &temp2; | |
10461 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10462 | } | |
10463 | if (obj2) { | |
10464 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10465 | if (!SWIG_IsOK(ecode3)) { | |
10466 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
10467 | } | |
10468 | arg3 = static_cast< int >(val3); | |
10469 | } | |
10470 | { | |
10471 | if (!wxPyCheckForApp()) SWIG_fail; | |
10472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10473 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
10474 | wxPyEndAllowThreads(__tstate); | |
10475 | if (PyErr_Occurred()) SWIG_fail; | |
10476 | } | |
10477 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10478 | return resultobj; | |
10479 | fail: | |
10480 | return NULL; | |
10481 | } | |
10482 | ||
10483 | ||
10484 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10485 | PyObject *resultobj = 0; | |
10486 | int arg1 ; | |
10487 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10488 | int arg3 = (int) wxWINDING_RULE ; | |
10489 | wxRegion *result = 0 ; | |
10490 | int val3 ; | |
10491 | int ecode3 = 0 ; | |
10492 | PyObject * obj0 = 0 ; | |
10493 | PyObject * obj1 = 0 ; | |
10494 | char * kwnames[] = { | |
10495 | (char *) "points",(char *) "fillStyle", NULL | |
10496 | }; | |
10497 | ||
10498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
10499 | { | |
10500 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
10501 | if (arg2 == NULL) SWIG_fail; | |
10502 | } | |
10503 | if (obj1) { | |
10504 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
10505 | if (!SWIG_IsOK(ecode3)) { | |
10506 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
10507 | } | |
10508 | arg3 = static_cast< int >(val3); | |
10509 | } | |
10510 | { | |
10511 | if (!wxPyCheckForApp()) SWIG_fail; | |
10512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10513 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10518 | { | |
10519 | if (arg2) delete [] arg2; | |
10520 | } | |
10521 | return resultobj; | |
10522 | fail: | |
10523 | { | |
10524 | if (arg2) delete [] arg2; | |
10525 | } | |
10526 | return NULL; | |
d14a1e28 RD |
10527 | } |
10528 | ||
10529 | ||
0085ce49 RD |
10530 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10531 | PyObject *resultobj = 0; | |
10532 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10533 | void *argp1 = 0 ; | |
10534 | int res1 = 0 ; | |
10535 | PyObject *swig_obj[1] ; | |
10536 | ||
10537 | if (!args) SWIG_fail; | |
10538 | swig_obj[0] = args; | |
10539 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
10540 | if (!SWIG_IsOK(res1)) { | |
10541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10542 | } | |
10543 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10544 | { | |
10545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10546 | delete arg1; | |
d14a1e28 | 10547 | |
0085ce49 RD |
10548 | wxPyEndAllowThreads(__tstate); |
10549 | if (PyErr_Occurred()) SWIG_fail; | |
10550 | } | |
10551 | resultobj = SWIG_Py_Void(); | |
10552 | return resultobj; | |
10553 | fail: | |
10554 | return NULL; | |
d14a1e28 RD |
10555 | } |
10556 | ||
10557 | ||
0085ce49 RD |
10558 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10559 | PyObject *resultobj = 0; | |
10560 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10561 | void *argp1 = 0 ; | |
10562 | int res1 = 0 ; | |
10563 | PyObject *swig_obj[1] ; | |
10564 | ||
10565 | if (!args) SWIG_fail; | |
10566 | swig_obj[0] = args; | |
10567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10568 | if (!SWIG_IsOK(res1)) { | |
10569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10570 | } | |
10571 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10572 | { | |
10573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10574 | (arg1)->Clear(); | |
10575 | wxPyEndAllowThreads(__tstate); | |
10576 | if (PyErr_Occurred()) SWIG_fail; | |
10577 | } | |
10578 | resultobj = SWIG_Py_Void(); | |
10579 | return resultobj; | |
10580 | fail: | |
10581 | return NULL; | |
10582 | } | |
10583 | ||
10584 | ||
10585 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10586 | PyObject *resultobj = 0; | |
10587 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10588 | int arg2 ; | |
10589 | int arg3 ; | |
10590 | bool result; | |
10591 | void *argp1 = 0 ; | |
10592 | int res1 = 0 ; | |
10593 | int val2 ; | |
10594 | int ecode2 = 0 ; | |
10595 | int val3 ; | |
10596 | int ecode3 = 0 ; | |
10597 | PyObject * obj0 = 0 ; | |
10598 | PyObject * obj1 = 0 ; | |
10599 | PyObject * obj2 = 0 ; | |
10600 | char * kwnames[] = { | |
10601 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10602 | }; | |
10603 | ||
10604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10606 | if (!SWIG_IsOK(res1)) { | |
10607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10608 | } | |
10609 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10610 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10611 | if (!SWIG_IsOK(ecode2)) { | |
10612 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
10613 | } | |
10614 | arg2 = static_cast< int >(val2); | |
10615 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10616 | if (!SWIG_IsOK(ecode3)) { | |
10617 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
10618 | } | |
10619 | arg3 = static_cast< int >(val3); | |
10620 | { | |
10621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10622 | result = (bool)(arg1)->Offset(arg2,arg3); | |
10623 | wxPyEndAllowThreads(__tstate); | |
10624 | if (PyErr_Occurred()) SWIG_fail; | |
10625 | } | |
10626 | { | |
10627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10628 | } | |
10629 | return resultobj; | |
10630 | fail: | |
10631 | return NULL; | |
10632 | } | |
10633 | ||
10634 | ||
10635 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10636 | PyObject *resultobj = 0; | |
10637 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10638 | int arg2 ; | |
10639 | int arg3 ; | |
10640 | wxRegionContain result; | |
10641 | void *argp1 = 0 ; | |
10642 | int res1 = 0 ; | |
10643 | int val2 ; | |
10644 | int ecode2 = 0 ; | |
10645 | int val3 ; | |
10646 | int ecode3 = 0 ; | |
10647 | PyObject * obj0 = 0 ; | |
10648 | PyObject * obj1 = 0 ; | |
10649 | PyObject * obj2 = 0 ; | |
10650 | char * kwnames[] = { | |
10651 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10652 | }; | |
10653 | ||
10654 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10655 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10656 | if (!SWIG_IsOK(res1)) { | |
10657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10658 | } | |
10659 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10660 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10661 | if (!SWIG_IsOK(ecode2)) { | |
10662 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
10663 | } | |
10664 | arg2 = static_cast< int >(val2); | |
10665 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10666 | if (!SWIG_IsOK(ecode3)) { | |
10667 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
10668 | } | |
10669 | arg3 = static_cast< int >(val3); | |
10670 | { | |
10671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10672 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
10673 | wxPyEndAllowThreads(__tstate); | |
10674 | if (PyErr_Occurred()) SWIG_fail; | |
10675 | } | |
10676 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10677 | return resultobj; | |
10678 | fail: | |
10679 | return NULL; | |
10680 | } | |
10681 | ||
10682 | ||
10683 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10684 | PyObject *resultobj = 0; | |
10685 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10686 | wxPoint *arg2 = 0 ; | |
10687 | wxRegionContain result; | |
10688 | void *argp1 = 0 ; | |
10689 | int res1 = 0 ; | |
10690 | wxPoint temp2 ; | |
10691 | PyObject * obj0 = 0 ; | |
10692 | PyObject * obj1 = 0 ; | |
10693 | char * kwnames[] = { | |
10694 | (char *) "self",(char *) "pt", NULL | |
10695 | }; | |
10696 | ||
10697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
10698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10699 | if (!SWIG_IsOK(res1)) { | |
10700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10701 | } | |
10702 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10703 | { | |
10704 | arg2 = &temp2; | |
10705 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10706 | } | |
10707 | { | |
10708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10709 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
10713 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10714 | return resultobj; | |
10715 | fail: | |
10716 | return NULL; | |
10717 | } | |
10718 | ||
10719 | ||
10720 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10721 | PyObject *resultobj = 0; | |
10722 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10723 | wxRect *arg2 = 0 ; | |
10724 | wxRegionContain result; | |
10725 | void *argp1 = 0 ; | |
10726 | int res1 = 0 ; | |
10727 | wxRect temp2 ; | |
10728 | PyObject * obj0 = 0 ; | |
10729 | PyObject * obj1 = 0 ; | |
10730 | char * kwnames[] = { | |
10731 | (char *) "self",(char *) "rect", NULL | |
10732 | }; | |
10733 | ||
10734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10736 | if (!SWIG_IsOK(res1)) { | |
10737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10738 | } | |
10739 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10740 | { | |
10741 | arg2 = &temp2; | |
10742 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10743 | } | |
10744 | { | |
10745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10746 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
10747 | wxPyEndAllowThreads(__tstate); | |
10748 | if (PyErr_Occurred()) SWIG_fail; | |
10749 | } | |
10750 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10751 | return resultobj; | |
10752 | fail: | |
10753 | return NULL; | |
10754 | } | |
10755 | ||
10756 | ||
10757 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10758 | PyObject *resultobj = 0; | |
10759 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10760 | int arg2 ; | |
10761 | int arg3 ; | |
10762 | int arg4 ; | |
10763 | int arg5 ; | |
10764 | wxRegionContain result; | |
10765 | void *argp1 = 0 ; | |
10766 | int res1 = 0 ; | |
10767 | int val2 ; | |
10768 | int ecode2 = 0 ; | |
10769 | int val3 ; | |
10770 | int ecode3 = 0 ; | |
10771 | int val4 ; | |
10772 | int ecode4 = 0 ; | |
10773 | int val5 ; | |
10774 | int ecode5 = 0 ; | |
10775 | PyObject * obj0 = 0 ; | |
10776 | PyObject * obj1 = 0 ; | |
10777 | PyObject * obj2 = 0 ; | |
10778 | PyObject * obj3 = 0 ; | |
10779 | PyObject * obj4 = 0 ; | |
10780 | char * kwnames[] = { | |
10781 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
10782 | }; | |
10783 | ||
10784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10785 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10786 | if (!SWIG_IsOK(res1)) { | |
10787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10788 | } | |
10789 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10790 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10791 | if (!SWIG_IsOK(ecode2)) { | |
10792 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
10793 | } | |
10794 | arg2 = static_cast< int >(val2); | |
10795 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10796 | if (!SWIG_IsOK(ecode3)) { | |
10797 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
10798 | } | |
10799 | arg3 = static_cast< int >(val3); | |
10800 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10801 | if (!SWIG_IsOK(ecode4)) { | |
10802 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
10803 | } | |
10804 | arg4 = static_cast< int >(val4); | |
10805 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10806 | if (!SWIG_IsOK(ecode5)) { | |
10807 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
10808 | } | |
10809 | arg5 = static_cast< int >(val5); | |
10810 | { | |
10811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10812 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
10813 | wxPyEndAllowThreads(__tstate); | |
10814 | if (PyErr_Occurred()) SWIG_fail; | |
10815 | } | |
10816 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10817 | return resultobj; | |
10818 | fail: | |
10819 | return NULL; | |
d14a1e28 RD |
10820 | } |
10821 | ||
10822 | ||
0085ce49 RD |
10823 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10824 | PyObject *resultobj = 0; | |
10825 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10826 | wxRect result; | |
10827 | void *argp1 = 0 ; | |
10828 | int res1 = 0 ; | |
10829 | PyObject *swig_obj[1] ; | |
10830 | ||
10831 | if (!args) SWIG_fail; | |
10832 | swig_obj[0] = args; | |
10833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10834 | if (!SWIG_IsOK(res1)) { | |
10835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10836 | } | |
10837 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10838 | { | |
10839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10840 | result = (arg1)->GetBox(); | |
10841 | wxPyEndAllowThreads(__tstate); | |
10842 | if (PyErr_Occurred()) SWIG_fail; | |
10843 | } | |
10844 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
10845 | return resultobj; | |
10846 | fail: | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
10851 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10852 | PyObject *resultobj = 0; | |
10853 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10854 | int arg2 ; | |
10855 | int arg3 ; | |
10856 | int arg4 ; | |
10857 | int arg5 ; | |
10858 | bool result; | |
10859 | void *argp1 = 0 ; | |
10860 | int res1 = 0 ; | |
10861 | int val2 ; | |
10862 | int ecode2 = 0 ; | |
10863 | int val3 ; | |
10864 | int ecode3 = 0 ; | |
10865 | int val4 ; | |
10866 | int ecode4 = 0 ; | |
10867 | int val5 ; | |
10868 | int ecode5 = 0 ; | |
10869 | PyObject * obj0 = 0 ; | |
10870 | PyObject * obj1 = 0 ; | |
10871 | PyObject * obj2 = 0 ; | |
10872 | PyObject * obj3 = 0 ; | |
10873 | PyObject * obj4 = 0 ; | |
10874 | char * kwnames[] = { | |
10875 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10876 | }; | |
10877 | ||
10878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10880 | if (!SWIG_IsOK(res1)) { | |
10881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10882 | } | |
10883 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10884 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10885 | if (!SWIG_IsOK(ecode2)) { | |
10886 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
10887 | } | |
10888 | arg2 = static_cast< int >(val2); | |
10889 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10890 | if (!SWIG_IsOK(ecode3)) { | |
10891 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
10892 | } | |
10893 | arg3 = static_cast< int >(val3); | |
10894 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10895 | if (!SWIG_IsOK(ecode4)) { | |
10896 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
10897 | } | |
10898 | arg4 = static_cast< int >(val4); | |
10899 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10900 | if (!SWIG_IsOK(ecode5)) { | |
10901 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
10902 | } | |
10903 | arg5 = static_cast< int >(val5); | |
10904 | { | |
10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10906 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
10907 | wxPyEndAllowThreads(__tstate); | |
10908 | if (PyErr_Occurred()) SWIG_fail; | |
10909 | } | |
10910 | { | |
10911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10912 | } | |
10913 | return resultobj; | |
10914 | fail: | |
10915 | return NULL; | |
10916 | } | |
10917 | ||
10918 | ||
10919 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10920 | PyObject *resultobj = 0; | |
10921 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10922 | wxRect *arg2 = 0 ; | |
10923 | bool result; | |
10924 | void *argp1 = 0 ; | |
10925 | int res1 = 0 ; | |
10926 | wxRect temp2 ; | |
10927 | PyObject * obj0 = 0 ; | |
10928 | PyObject * obj1 = 0 ; | |
10929 | char * kwnames[] = { | |
10930 | (char *) "self",(char *) "rect", NULL | |
10931 | }; | |
10932 | ||
10933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10935 | if (!SWIG_IsOK(res1)) { | |
10936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10937 | } | |
10938 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10939 | { | |
10940 | arg2 = &temp2; | |
10941 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10942 | } | |
10943 | { | |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
10946 | wxPyEndAllowThreads(__tstate); | |
10947 | if (PyErr_Occurred()) SWIG_fail; | |
10948 | } | |
10949 | { | |
10950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10951 | } | |
10952 | return resultobj; | |
10953 | fail: | |
10954 | return NULL; | |
10955 | } | |
10956 | ||
10957 | ||
10958 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10959 | PyObject *resultobj = 0; | |
10960 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10961 | wxRegion *arg2 = 0 ; | |
10962 | bool result; | |
10963 | void *argp1 = 0 ; | |
10964 | int res1 = 0 ; | |
10965 | void *argp2 = 0 ; | |
10966 | int res2 = 0 ; | |
10967 | PyObject * obj0 = 0 ; | |
10968 | PyObject * obj1 = 0 ; | |
10969 | char * kwnames[] = { | |
10970 | (char *) "self",(char *) "region", NULL | |
10971 | }; | |
10972 | ||
10973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
10974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10975 | if (!SWIG_IsOK(res1)) { | |
10976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10977 | } | |
10978 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10979 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10980 | if (!SWIG_IsOK(res2)) { | |
10981 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10982 | } | |
10983 | if (!argp2) { | |
10984 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10985 | } | |
10986 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10987 | { | |
10988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10989 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
10990 | wxPyEndAllowThreads(__tstate); | |
10991 | if (PyErr_Occurred()) SWIG_fail; | |
10992 | } | |
10993 | { | |
10994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10995 | } | |
10996 | return resultobj; | |
10997 | fail: | |
10998 | return NULL; | |
d14a1e28 RD |
10999 | } |
11000 | ||
11001 | ||
0085ce49 RD |
11002 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11003 | PyObject *resultobj = 0; | |
11004 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11005 | bool result; | |
11006 | void *argp1 = 0 ; | |
11007 | int res1 = 0 ; | |
11008 | PyObject *swig_obj[1] ; | |
11009 | ||
11010 | if (!args) SWIG_fail; | |
11011 | swig_obj[0] = args; | |
11012 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11013 | if (!SWIG_IsOK(res1)) { | |
11014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11015 | } | |
11016 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11017 | { | |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | result = (bool)(arg1)->IsEmpty(); | |
11020 | wxPyEndAllowThreads(__tstate); | |
11021 | if (PyErr_Occurred()) SWIG_fail; | |
11022 | } | |
11023 | { | |
11024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11025 | } | |
11026 | return resultobj; | |
11027 | fail: | |
11028 | return NULL; | |
11029 | } | |
11030 | ||
11031 | ||
f5263701 RD |
11032 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11033 | PyObject *resultobj = 0; | |
11034 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11035 | wxRegion *arg2 = 0 ; | |
11036 | bool result; | |
11037 | void *argp1 = 0 ; | |
11038 | int res1 = 0 ; | |
11039 | void *argp2 = 0 ; | |
11040 | int res2 = 0 ; | |
11041 | PyObject * obj0 = 0 ; | |
11042 | PyObject * obj1 = 0 ; | |
11043 | char * kwnames[] = { | |
11044 | (char *) "self",(char *) "region", NULL | |
11045 | }; | |
11046 | ||
11047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
11048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11049 | if (!SWIG_IsOK(res1)) { | |
11050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
11051 | } | |
11052 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11053 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11054 | if (!SWIG_IsOK(res2)) { | |
11055 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11056 | } | |
11057 | if (!argp2) { | |
11058 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11059 | } | |
11060 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11061 | { | |
11062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11063 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
11064 | wxPyEndAllowThreads(__tstate); | |
11065 | if (PyErr_Occurred()) SWIG_fail; | |
11066 | } | |
11067 | { | |
11068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11069 | } | |
11070 | return resultobj; | |
11071 | fail: | |
11072 | return NULL; | |
11073 | } | |
11074 | ||
11075 | ||
0085ce49 RD |
11076 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11077 | PyObject *resultobj = 0; | |
11078 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11079 | int arg2 ; | |
11080 | int arg3 ; | |
11081 | int arg4 ; | |
11082 | int arg5 ; | |
11083 | bool result; | |
11084 | void *argp1 = 0 ; | |
11085 | int res1 = 0 ; | |
11086 | int val2 ; | |
11087 | int ecode2 = 0 ; | |
11088 | int val3 ; | |
11089 | int ecode3 = 0 ; | |
11090 | int val4 ; | |
11091 | int ecode4 = 0 ; | |
11092 | int val5 ; | |
11093 | int ecode5 = 0 ; | |
11094 | PyObject * obj0 = 0 ; | |
11095 | PyObject * obj1 = 0 ; | |
11096 | PyObject * obj2 = 0 ; | |
11097 | PyObject * obj3 = 0 ; | |
11098 | PyObject * obj4 = 0 ; | |
11099 | char * kwnames[] = { | |
11100 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11101 | }; | |
11102 | ||
11103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11105 | if (!SWIG_IsOK(res1)) { | |
11106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11107 | } | |
11108 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11109 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11110 | if (!SWIG_IsOK(ecode2)) { | |
11111 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
11112 | } | |
11113 | arg2 = static_cast< int >(val2); | |
11114 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11115 | if (!SWIG_IsOK(ecode3)) { | |
11116 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
11117 | } | |
11118 | arg3 = static_cast< int >(val3); | |
11119 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11120 | if (!SWIG_IsOK(ecode4)) { | |
11121 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
11122 | } | |
11123 | arg4 = static_cast< int >(val4); | |
11124 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11125 | if (!SWIG_IsOK(ecode5)) { | |
11126 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
11127 | } | |
11128 | arg5 = static_cast< int >(val5); | |
11129 | { | |
11130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11131 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | } | |
11135 | { | |
11136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11137 | } | |
11138 | return resultobj; | |
11139 | fail: | |
11140 | return NULL; | |
11141 | } | |
11142 | ||
11143 | ||
11144 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11145 | PyObject *resultobj = 0; | |
11146 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11147 | wxRect *arg2 = 0 ; | |
11148 | bool result; | |
11149 | void *argp1 = 0 ; | |
11150 | int res1 = 0 ; | |
11151 | wxRect temp2 ; | |
11152 | PyObject * obj0 = 0 ; | |
11153 | PyObject * obj1 = 0 ; | |
11154 | char * kwnames[] = { | |
11155 | (char *) "self",(char *) "rect", NULL | |
11156 | }; | |
11157 | ||
11158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11160 | if (!SWIG_IsOK(res1)) { | |
11161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11162 | } | |
11163 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11164 | { | |
11165 | arg2 = &temp2; | |
11166 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11167 | } | |
11168 | { | |
11169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11170 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11171 | wxPyEndAllowThreads(__tstate); | |
11172 | if (PyErr_Occurred()) SWIG_fail; | |
11173 | } | |
11174 | { | |
11175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11176 | } | |
11177 | return resultobj; | |
11178 | fail: | |
11179 | return NULL; | |
11180 | } | |
11181 | ||
11182 | ||
11183 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11184 | PyObject *resultobj = 0; | |
11185 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11186 | wxRegion *arg2 = 0 ; | |
11187 | bool result; | |
11188 | void *argp1 = 0 ; | |
11189 | int res1 = 0 ; | |
11190 | void *argp2 = 0 ; | |
11191 | int res2 = 0 ; | |
11192 | PyObject * obj0 = 0 ; | |
11193 | PyObject * obj1 = 0 ; | |
11194 | char * kwnames[] = { | |
11195 | (char *) "self",(char *) "region", NULL | |
11196 | }; | |
11197 | ||
11198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11200 | if (!SWIG_IsOK(res1)) { | |
11201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11202 | } | |
11203 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11204 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11205 | if (!SWIG_IsOK(res2)) { | |
11206 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11207 | } | |
11208 | if (!argp2) { | |
11209 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11210 | } | |
11211 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11212 | { | |
11213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11214 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11215 | wxPyEndAllowThreads(__tstate); | |
11216 | if (PyErr_Occurred()) SWIG_fail; | |
11217 | } | |
11218 | { | |
11219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11220 | } | |
11221 | return resultobj; | |
11222 | fail: | |
11223 | return NULL; | |
11224 | } | |
11225 | ||
11226 | ||
11227 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11228 | PyObject *resultobj = 0; | |
11229 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11230 | int arg2 ; | |
11231 | int arg3 ; | |
11232 | int arg4 ; | |
11233 | int arg5 ; | |
11234 | bool result; | |
11235 | void *argp1 = 0 ; | |
11236 | int res1 = 0 ; | |
11237 | int val2 ; | |
11238 | int ecode2 = 0 ; | |
11239 | int val3 ; | |
11240 | int ecode3 = 0 ; | |
11241 | int val4 ; | |
11242 | int ecode4 = 0 ; | |
11243 | int val5 ; | |
11244 | int ecode5 = 0 ; | |
11245 | PyObject * obj0 = 0 ; | |
11246 | PyObject * obj1 = 0 ; | |
11247 | PyObject * obj2 = 0 ; | |
11248 | PyObject * obj3 = 0 ; | |
11249 | PyObject * obj4 = 0 ; | |
11250 | char * kwnames[] = { | |
11251 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11252 | }; | |
11253 | ||
11254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11256 | if (!SWIG_IsOK(res1)) { | |
11257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11258 | } | |
11259 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11260 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11261 | if (!SWIG_IsOK(ecode2)) { | |
11262 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11263 | } | |
11264 | arg2 = static_cast< int >(val2); | |
11265 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11266 | if (!SWIG_IsOK(ecode3)) { | |
11267 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11268 | } | |
11269 | arg3 = static_cast< int >(val3); | |
11270 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11271 | if (!SWIG_IsOK(ecode4)) { | |
11272 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11273 | } | |
11274 | arg4 = static_cast< int >(val4); | |
11275 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11276 | if (!SWIG_IsOK(ecode5)) { | |
11277 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11278 | } | |
11279 | arg5 = static_cast< int >(val5); | |
11280 | { | |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11282 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11283 | wxPyEndAllowThreads(__tstate); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
11286 | { | |
11287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11288 | } | |
11289 | return resultobj; | |
11290 | fail: | |
11291 | return NULL; | |
11292 | } | |
11293 | ||
11294 | ||
11295 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11296 | PyObject *resultobj = 0; | |
11297 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11298 | wxRect *arg2 = 0 ; | |
11299 | bool result; | |
11300 | void *argp1 = 0 ; | |
11301 | int res1 = 0 ; | |
11302 | wxRect temp2 ; | |
11303 | PyObject * obj0 = 0 ; | |
11304 | PyObject * obj1 = 0 ; | |
11305 | char * kwnames[] = { | |
11306 | (char *) "self",(char *) "rect", NULL | |
11307 | }; | |
11308 | ||
11309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11311 | if (!SWIG_IsOK(res1)) { | |
11312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11313 | } | |
11314 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11315 | { | |
11316 | arg2 = &temp2; | |
11317 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11318 | } | |
11319 | { | |
11320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11321 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11322 | wxPyEndAllowThreads(__tstate); | |
11323 | if (PyErr_Occurred()) SWIG_fail; | |
11324 | } | |
11325 | { | |
11326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11327 | } | |
11328 | return resultobj; | |
11329 | fail: | |
11330 | return NULL; | |
11331 | } | |
11332 | ||
11333 | ||
11334 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11335 | PyObject *resultobj = 0; | |
11336 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11337 | wxRegion *arg2 = 0 ; | |
11338 | bool result; | |
11339 | void *argp1 = 0 ; | |
11340 | int res1 = 0 ; | |
11341 | void *argp2 = 0 ; | |
11342 | int res2 = 0 ; | |
11343 | PyObject * obj0 = 0 ; | |
11344 | PyObject * obj1 = 0 ; | |
11345 | char * kwnames[] = { | |
11346 | (char *) "self",(char *) "region", NULL | |
11347 | }; | |
11348 | ||
11349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11351 | if (!SWIG_IsOK(res1)) { | |
11352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11353 | } | |
11354 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11355 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11356 | if (!SWIG_IsOK(res2)) { | |
11357 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11358 | } | |
11359 | if (!argp2) { | |
11360 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11361 | } | |
11362 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11363 | { | |
11364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11365 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11366 | wxPyEndAllowThreads(__tstate); | |
11367 | if (PyErr_Occurred()) SWIG_fail; | |
11368 | } | |
11369 | { | |
11370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11371 | } | |
11372 | return resultobj; | |
11373 | fail: | |
11374 | return NULL; | |
11375 | } | |
11376 | ||
11377 | ||
11378 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11379 | PyObject *resultobj = 0; | |
11380 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11381 | int arg2 ; | |
11382 | int arg3 ; | |
11383 | int arg4 ; | |
11384 | int arg5 ; | |
11385 | bool result; | |
11386 | void *argp1 = 0 ; | |
11387 | int res1 = 0 ; | |
11388 | int val2 ; | |
11389 | int ecode2 = 0 ; | |
11390 | int val3 ; | |
11391 | int ecode3 = 0 ; | |
11392 | int val4 ; | |
11393 | int ecode4 = 0 ; | |
11394 | int val5 ; | |
11395 | int ecode5 = 0 ; | |
11396 | PyObject * obj0 = 0 ; | |
11397 | PyObject * obj1 = 0 ; | |
11398 | PyObject * obj2 = 0 ; | |
11399 | PyObject * obj3 = 0 ; | |
11400 | PyObject * obj4 = 0 ; | |
11401 | char * kwnames[] = { | |
11402 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11403 | }; | |
11404 | ||
11405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11407 | if (!SWIG_IsOK(res1)) { | |
11408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11409 | } | |
11410 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11411 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11412 | if (!SWIG_IsOK(ecode2)) { | |
11413 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
11414 | } | |
11415 | arg2 = static_cast< int >(val2); | |
11416 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11417 | if (!SWIG_IsOK(ecode3)) { | |
11418 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
11419 | } | |
11420 | arg3 = static_cast< int >(val3); | |
11421 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11422 | if (!SWIG_IsOK(ecode4)) { | |
11423 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
11424 | } | |
11425 | arg4 = static_cast< int >(val4); | |
11426 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11427 | if (!SWIG_IsOK(ecode5)) { | |
11428 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
11429 | } | |
11430 | arg5 = static_cast< int >(val5); | |
11431 | { | |
11432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11433 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
11434 | wxPyEndAllowThreads(__tstate); | |
11435 | if (PyErr_Occurred()) SWIG_fail; | |
11436 | } | |
11437 | { | |
11438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11439 | } | |
11440 | return resultobj; | |
11441 | fail: | |
11442 | return NULL; | |
11443 | } | |
11444 | ||
11445 | ||
11446 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11447 | PyObject *resultobj = 0; | |
11448 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11449 | wxRect *arg2 = 0 ; | |
11450 | bool result; | |
11451 | void *argp1 = 0 ; | |
11452 | int res1 = 0 ; | |
11453 | wxRect temp2 ; | |
11454 | PyObject * obj0 = 0 ; | |
11455 | PyObject * obj1 = 0 ; | |
11456 | char * kwnames[] = { | |
11457 | (char *) "self",(char *) "rect", NULL | |
11458 | }; | |
11459 | ||
11460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11462 | if (!SWIG_IsOK(res1)) { | |
11463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11464 | } | |
11465 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11466 | { | |
11467 | arg2 = &temp2; | |
11468 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11469 | } | |
11470 | { | |
11471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11472 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
11473 | wxPyEndAllowThreads(__tstate); | |
11474 | if (PyErr_Occurred()) SWIG_fail; | |
11475 | } | |
11476 | { | |
11477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11478 | } | |
11479 | return resultobj; | |
11480 | fail: | |
11481 | return NULL; | |
11482 | } | |
11483 | ||
11484 | ||
11485 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11486 | PyObject *resultobj = 0; | |
11487 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11488 | wxRegion *arg2 = 0 ; | |
11489 | bool result; | |
11490 | void *argp1 = 0 ; | |
11491 | int res1 = 0 ; | |
11492 | void *argp2 = 0 ; | |
11493 | int res2 = 0 ; | |
11494 | PyObject * obj0 = 0 ; | |
11495 | PyObject * obj1 = 0 ; | |
11496 | char * kwnames[] = { | |
11497 | (char *) "self",(char *) "region", NULL | |
11498 | }; | |
11499 | ||
11500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11502 | if (!SWIG_IsOK(res1)) { | |
11503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11504 | } | |
11505 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11506 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11507 | if (!SWIG_IsOK(res2)) { | |
11508 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11509 | } | |
11510 | if (!argp2) { | |
11511 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11512 | } | |
11513 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11514 | { | |
11515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11516 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
11517 | wxPyEndAllowThreads(__tstate); | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
11520 | { | |
11521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11522 | } | |
11523 | return resultobj; | |
11524 | fail: | |
11525 | return NULL; | |
d14a1e28 RD |
11526 | } |
11527 | ||
11528 | ||
0085ce49 RD |
11529 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11530 | PyObject *resultobj = 0; | |
11531 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11532 | SwigValueWrapper<wxBitmap > result; | |
11533 | void *argp1 = 0 ; | |
11534 | int res1 = 0 ; | |
11535 | PyObject *swig_obj[1] ; | |
11536 | ||
11537 | if (!args) SWIG_fail; | |
11538 | swig_obj[0] = args; | |
11539 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11540 | if (!SWIG_IsOK(res1)) { | |
11541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11542 | } | |
11543 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11544 | { | |
11545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11546 | result = (arg1)->ConvertToBitmap(); | |
11547 | wxPyEndAllowThreads(__tstate); | |
11548 | if (PyErr_Occurred()) SWIG_fail; | |
11549 | } | |
11550 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
11551 | return resultobj; | |
11552 | fail: | |
11553 | return NULL; | |
11554 | } | |
11555 | ||
11556 | ||
11557 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11558 | PyObject *resultobj = 0; | |
11559 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11560 | wxBitmap *arg2 = 0 ; | |
11561 | bool result; | |
11562 | void *argp1 = 0 ; | |
11563 | int res1 = 0 ; | |
11564 | void *argp2 = 0 ; | |
11565 | int res2 = 0 ; | |
11566 | PyObject * obj0 = 0 ; | |
11567 | PyObject * obj1 = 0 ; | |
11568 | char * kwnames[] = { | |
11569 | (char *) "self",(char *) "bmp", NULL | |
11570 | }; | |
11571 | ||
11572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
11573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11574 | if (!SWIG_IsOK(res1)) { | |
11575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11576 | } | |
11577 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11578 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11579 | if (!SWIG_IsOK(res2)) { | |
11580 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11581 | } | |
11582 | if (!argp2) { | |
11583 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11584 | } | |
11585 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11586 | { | |
11587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11588 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
11589 | wxPyEndAllowThreads(__tstate); | |
11590 | if (PyErr_Occurred()) SWIG_fail; | |
11591 | } | |
11592 | { | |
11593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11594 | } | |
11595 | return resultobj; | |
11596 | fail: | |
11597 | return NULL; | |
11598 | } | |
11599 | ||
11600 | ||
11601 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11602 | PyObject *resultobj = 0; | |
11603 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11604 | wxBitmap *arg2 = 0 ; | |
11605 | wxColour *arg3 = 0 ; | |
11606 | int arg4 = (int) 0 ; | |
11607 | bool result; | |
11608 | void *argp1 = 0 ; | |
11609 | int res1 = 0 ; | |
11610 | void *argp2 = 0 ; | |
11611 | int res2 = 0 ; | |
11612 | wxColour temp3 ; | |
11613 | int val4 ; | |
11614 | int ecode4 = 0 ; | |
11615 | PyObject * obj0 = 0 ; | |
11616 | PyObject * obj1 = 0 ; | |
11617 | PyObject * obj2 = 0 ; | |
11618 | PyObject * obj3 = 0 ; | |
11619 | char * kwnames[] = { | |
11620 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11621 | }; | |
11622 | ||
11623 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11624 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11625 | if (!SWIG_IsOK(res1)) { | |
11626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11627 | } | |
11628 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11629 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11630 | if (!SWIG_IsOK(res2)) { | |
11631 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11632 | } | |
11633 | if (!argp2) { | |
11634 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11635 | } | |
11636 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11637 | { | |
11638 | arg3 = &temp3; | |
11639 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11640 | } | |
11641 | if (obj3) { | |
11642 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11643 | if (!SWIG_IsOK(ecode4)) { | |
11644 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
11645 | } | |
11646 | arg4 = static_cast< int >(val4); | |
11647 | } | |
11648 | { | |
11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11650 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
11651 | wxPyEndAllowThreads(__tstate); | |
11652 | if (PyErr_Occurred()) SWIG_fail; | |
11653 | } | |
11654 | { | |
11655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11656 | } | |
11657 | return resultobj; | |
11658 | fail: | |
11659 | return NULL; | |
d14a1e28 RD |
11660 | } |
11661 | ||
11662 | ||
0085ce49 RD |
11663 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11664 | PyObject *obj; | |
11665 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11666 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
11667 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11668 | } |
11669 | ||
0085ce49 RD |
11670 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11671 | return SWIG_Python_InitShadowInstance(args); | |
11672 | } | |
d14a1e28 | 11673 | |
0085ce49 RD |
11674 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11675 | PyObject *resultobj = 0; | |
11676 | wxRegion *arg1 = 0 ; | |
11677 | wxRegionIterator *result = 0 ; | |
11678 | void *argp1 = 0 ; | |
11679 | int res1 = 0 ; | |
11680 | PyObject * obj0 = 0 ; | |
11681 | char * kwnames[] = { | |
11682 | (char *) "region", NULL | |
11683 | }; | |
11684 | ||
11685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
11686 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
11687 | if (!SWIG_IsOK(res1)) { | |
11688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11689 | } | |
11690 | if (!argp1) { | |
11691 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11692 | } | |
11693 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11694 | { | |
11695 | if (!wxPyCheckForApp()) SWIG_fail; | |
11696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11697 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
11698 | wxPyEndAllowThreads(__tstate); | |
11699 | if (PyErr_Occurred()) SWIG_fail; | |
11700 | } | |
11701 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
11702 | return resultobj; | |
11703 | fail: | |
11704 | return NULL; | |
d14a1e28 RD |
11705 | } |
11706 | ||
11707 | ||
0085ce49 RD |
11708 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11709 | PyObject *resultobj = 0; | |
11710 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11711 | void *argp1 = 0 ; | |
11712 | int res1 = 0 ; | |
11713 | PyObject *swig_obj[1] ; | |
11714 | ||
11715 | if (!args) SWIG_fail; | |
11716 | swig_obj[0] = args; | |
11717 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
11718 | if (!SWIG_IsOK(res1)) { | |
11719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11720 | } | |
11721 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11722 | { | |
11723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11724 | delete arg1; | |
d14a1e28 | 11725 | |
0085ce49 RD |
11726 | wxPyEndAllowThreads(__tstate); |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
11729 | resultobj = SWIG_Py_Void(); | |
11730 | return resultobj; | |
11731 | fail: | |
11732 | return NULL; | |
d14a1e28 RD |
11733 | } |
11734 | ||
11735 | ||
0085ce49 RD |
11736 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11737 | PyObject *resultobj = 0; | |
11738 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11739 | int result; | |
11740 | void *argp1 = 0 ; | |
11741 | int res1 = 0 ; | |
11742 | PyObject *swig_obj[1] ; | |
11743 | ||
11744 | if (!args) SWIG_fail; | |
11745 | swig_obj[0] = args; | |
11746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11747 | if (!SWIG_IsOK(res1)) { | |
11748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11749 | } | |
11750 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11751 | { | |
11752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11753 | result = (int)(arg1)->GetX(); | |
11754 | wxPyEndAllowThreads(__tstate); | |
11755 | if (PyErr_Occurred()) SWIG_fail; | |
11756 | } | |
11757 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11758 | return resultobj; | |
11759 | fail: | |
11760 | return NULL; | |
d14a1e28 RD |
11761 | } |
11762 | ||
11763 | ||
0085ce49 RD |
11764 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11765 | PyObject *resultobj = 0; | |
11766 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11767 | int result; | |
11768 | void *argp1 = 0 ; | |
11769 | int res1 = 0 ; | |
11770 | PyObject *swig_obj[1] ; | |
11771 | ||
11772 | if (!args) SWIG_fail; | |
11773 | swig_obj[0] = args; | |
11774 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11775 | if (!SWIG_IsOK(res1)) { | |
11776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11777 | } | |
11778 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11779 | { | |
11780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11781 | result = (int)(arg1)->GetY(); | |
11782 | wxPyEndAllowThreads(__tstate); | |
11783 | if (PyErr_Occurred()) SWIG_fail; | |
11784 | } | |
11785 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11786 | return resultobj; | |
11787 | fail: | |
11788 | return NULL; | |
d14a1e28 RD |
11789 | } |
11790 | ||
11791 | ||
0085ce49 RD |
11792 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11793 | PyObject *resultobj = 0; | |
11794 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11795 | int result; | |
11796 | void *argp1 = 0 ; | |
11797 | int res1 = 0 ; | |
11798 | PyObject *swig_obj[1] ; | |
11799 | ||
11800 | if (!args) SWIG_fail; | |
11801 | swig_obj[0] = args; | |
11802 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11803 | if (!SWIG_IsOK(res1)) { | |
11804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11805 | } | |
11806 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11807 | { | |
11808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11809 | result = (int)(arg1)->GetW(); | |
11810 | wxPyEndAllowThreads(__tstate); | |
11811 | if (PyErr_Occurred()) SWIG_fail; | |
11812 | } | |
11813 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11814 | return resultobj; | |
11815 | fail: | |
11816 | return NULL; | |
d14a1e28 RD |
11817 | } |
11818 | ||
11819 | ||
0085ce49 RD |
11820 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11821 | PyObject *resultobj = 0; | |
11822 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11823 | int result; | |
11824 | void *argp1 = 0 ; | |
11825 | int res1 = 0 ; | |
11826 | PyObject *swig_obj[1] ; | |
11827 | ||
11828 | if (!args) SWIG_fail; | |
11829 | swig_obj[0] = args; | |
11830 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11831 | if (!SWIG_IsOK(res1)) { | |
11832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11833 | } | |
11834 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (int)(arg1)->GetWidth(); | |
11838 | wxPyEndAllowThreads(__tstate); | |
11839 | if (PyErr_Occurred()) SWIG_fail; | |
11840 | } | |
11841 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11842 | return resultobj; | |
11843 | fail: | |
11844 | return NULL; | |
093d3ff1 RD |
11845 | } |
11846 | ||
11847 | ||
0085ce49 RD |
11848 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11849 | PyObject *resultobj = 0; | |
11850 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11851 | int result; | |
11852 | void *argp1 = 0 ; | |
11853 | int res1 = 0 ; | |
11854 | PyObject *swig_obj[1] ; | |
11855 | ||
11856 | if (!args) SWIG_fail; | |
11857 | swig_obj[0] = args; | |
11858 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11859 | if (!SWIG_IsOK(res1)) { | |
11860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11861 | } | |
11862 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11863 | { | |
11864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11865 | result = (int)(arg1)->GetH(); | |
11866 | wxPyEndAllowThreads(__tstate); | |
11867 | if (PyErr_Occurred()) SWIG_fail; | |
11868 | } | |
11869 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11870 | return resultobj; | |
11871 | fail: | |
11872 | return NULL; | |
d14a1e28 RD |
11873 | } |
11874 | ||
11875 | ||
0085ce49 RD |
11876 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11877 | PyObject *resultobj = 0; | |
11878 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11879 | int result; | |
11880 | void *argp1 = 0 ; | |
11881 | int res1 = 0 ; | |
11882 | PyObject *swig_obj[1] ; | |
11883 | ||
11884 | if (!args) SWIG_fail; | |
11885 | swig_obj[0] = args; | |
11886 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11887 | if (!SWIG_IsOK(res1)) { | |
11888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11889 | } | |
11890 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11891 | { | |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | result = (int)(arg1)->GetHeight(); | |
11894 | wxPyEndAllowThreads(__tstate); | |
11895 | if (PyErr_Occurred()) SWIG_fail; | |
11896 | } | |
11897 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11898 | return resultobj; | |
11899 | fail: | |
11900 | return NULL; | |
093d3ff1 RD |
11901 | } |
11902 | ||
11903 | ||
0085ce49 RD |
11904 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11905 | PyObject *resultobj = 0; | |
11906 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11907 | wxRect result; | |
11908 | void *argp1 = 0 ; | |
11909 | int res1 = 0 ; | |
11910 | PyObject *swig_obj[1] ; | |
11911 | ||
11912 | if (!args) SWIG_fail; | |
11913 | swig_obj[0] = args; | |
11914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11915 | if (!SWIG_IsOK(res1)) { | |
11916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11917 | } | |
11918 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11919 | { | |
11920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11921 | result = (arg1)->GetRect(); | |
11922 | wxPyEndAllowThreads(__tstate); | |
11923 | if (PyErr_Occurred()) SWIG_fail; | |
11924 | } | |
11925 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11926 | return resultobj; | |
11927 | fail: | |
11928 | return NULL; | |
d14a1e28 RD |
11929 | } |
11930 | ||
11931 | ||
0085ce49 RD |
11932 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11933 | PyObject *resultobj = 0; | |
11934 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11935 | bool result; | |
11936 | void *argp1 = 0 ; | |
11937 | int res1 = 0 ; | |
11938 | PyObject *swig_obj[1] ; | |
11939 | ||
11940 | if (!args) SWIG_fail; | |
11941 | swig_obj[0] = args; | |
11942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11943 | if (!SWIG_IsOK(res1)) { | |
11944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11945 | } | |
11946 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11947 | { | |
11948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11949 | result = (bool)(arg1)->HaveRects(); | |
11950 | wxPyEndAllowThreads(__tstate); | |
11951 | if (PyErr_Occurred()) SWIG_fail; | |
11952 | } | |
11953 | { | |
11954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11955 | } | |
11956 | return resultobj; | |
11957 | fail: | |
11958 | return NULL; | |
093d3ff1 RD |
11959 | } |
11960 | ||
11961 | ||
0085ce49 RD |
11962 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11963 | PyObject *resultobj = 0; | |
11964 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11965 | void *argp1 = 0 ; | |
11966 | int res1 = 0 ; | |
11967 | PyObject *swig_obj[1] ; | |
11968 | ||
11969 | if (!args) SWIG_fail; | |
11970 | swig_obj[0] = args; | |
11971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11972 | if (!SWIG_IsOK(res1)) { | |
11973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11974 | } | |
11975 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11976 | { | |
11977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11978 | (arg1)->Reset(); | |
11979 | wxPyEndAllowThreads(__tstate); | |
11980 | if (PyErr_Occurred()) SWIG_fail; | |
11981 | } | |
11982 | resultobj = SWIG_Py_Void(); | |
11983 | return resultobj; | |
11984 | fail: | |
11985 | return NULL; | |
d14a1e28 RD |
11986 | } |
11987 | ||
11988 | ||
0085ce49 RD |
11989 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11990 | PyObject *resultobj = 0; | |
11991 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11992 | void *argp1 = 0 ; | |
11993 | int res1 = 0 ; | |
11994 | PyObject *swig_obj[1] ; | |
11995 | ||
11996 | if (!args) SWIG_fail; | |
11997 | swig_obj[0] = args; | |
11998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11999 | if (!SWIG_IsOK(res1)) { | |
12000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12001 | } | |
12002 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12003 | { | |
12004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12005 | wxRegionIterator_Next(arg1); | |
12006 | wxPyEndAllowThreads(__tstate); | |
12007 | if (PyErr_Occurred()) SWIG_fail; | |
12008 | } | |
12009 | resultobj = SWIG_Py_Void(); | |
12010 | return resultobj; | |
12011 | fail: | |
12012 | return NULL; | |
d14a1e28 RD |
12013 | } |
12014 | ||
12015 | ||
0085ce49 RD |
12016 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12017 | PyObject *resultobj = 0; | |
12018 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12019 | bool result; | |
12020 | void *argp1 = 0 ; | |
12021 | int res1 = 0 ; | |
12022 | PyObject *swig_obj[1] ; | |
12023 | ||
12024 | if (!args) SWIG_fail; | |
12025 | swig_obj[0] = args; | |
12026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12027 | if (!SWIG_IsOK(res1)) { | |
12028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12029 | } | |
12030 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12031 | { | |
12032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12033 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
12034 | wxPyEndAllowThreads(__tstate); | |
12035 | if (PyErr_Occurred()) SWIG_fail; | |
12036 | } | |
12037 | { | |
12038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12039 | } | |
12040 | return resultobj; | |
12041 | fail: | |
12042 | return NULL; | |
d14a1e28 RD |
12043 | } |
12044 | ||
12045 | ||
0085ce49 RD |
12046 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12047 | PyObject *obj; | |
12048 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12049 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
12050 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12051 | } |
12052 | ||
0085ce49 RD |
12053 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12054 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12055 | } |
12056 | ||
0085ce49 RD |
12057 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12058 | PyObject *resultobj = 0; | |
12059 | wxNativeFontInfo *result = 0 ; | |
12060 | ||
12061 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
12062 | { | |
12063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12064 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
12065 | wxPyEndAllowThreads(__tstate); | |
12066 | if (PyErr_Occurred()) SWIG_fail; | |
12067 | } | |
12068 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
12069 | return resultobj; | |
12070 | fail: | |
12071 | return NULL; | |
d14a1e28 RD |
12072 | } |
12073 | ||
12074 | ||
0085ce49 RD |
12075 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12076 | PyObject *resultobj = 0; | |
12077 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12078 | void *argp1 = 0 ; | |
12079 | int res1 = 0 ; | |
12080 | PyObject *swig_obj[1] ; | |
12081 | ||
12082 | if (!args) SWIG_fail; | |
12083 | swig_obj[0] = args; | |
12084 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
12085 | if (!SWIG_IsOK(res1)) { | |
12086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12087 | } | |
12088 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12089 | { | |
12090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12091 | delete arg1; | |
d14a1e28 | 12092 | |
0085ce49 RD |
12093 | wxPyEndAllowThreads(__tstate); |
12094 | if (PyErr_Occurred()) SWIG_fail; | |
12095 | } | |
12096 | resultobj = SWIG_Py_Void(); | |
12097 | return resultobj; | |
12098 | fail: | |
12099 | return NULL; | |
d14a1e28 RD |
12100 | } |
12101 | ||
12102 | ||
0085ce49 RD |
12103 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12104 | PyObject *resultobj = 0; | |
12105 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12106 | void *argp1 = 0 ; | |
12107 | int res1 = 0 ; | |
12108 | PyObject *swig_obj[1] ; | |
12109 | ||
12110 | if (!args) SWIG_fail; | |
12111 | swig_obj[0] = args; | |
12112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12113 | if (!SWIG_IsOK(res1)) { | |
12114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12115 | } | |
12116 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12117 | { | |
12118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12119 | (arg1)->Init(); | |
12120 | wxPyEndAllowThreads(__tstate); | |
12121 | if (PyErr_Occurred()) SWIG_fail; | |
12122 | } | |
12123 | resultobj = SWIG_Py_Void(); | |
12124 | return resultobj; | |
12125 | fail: | |
12126 | return NULL; | |
12127 | } | |
12128 | ||
12129 | ||
12130 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12131 | PyObject *resultobj = 0; | |
12132 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12133 | wxFont *arg2 = 0 ; | |
12134 | void *argp1 = 0 ; | |
12135 | int res1 = 0 ; | |
12136 | void *argp2 = 0 ; | |
12137 | int res2 = 0 ; | |
12138 | PyObject * obj0 = 0 ; | |
12139 | PyObject * obj1 = 0 ; | |
12140 | char * kwnames[] = { | |
12141 | (char *) "self",(char *) "font", NULL | |
12142 | }; | |
12143 | ||
12144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
12145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12146 | if (!SWIG_IsOK(res1)) { | |
12147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12148 | } | |
12149 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12150 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
12151 | if (!SWIG_IsOK(res2)) { | |
12152 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12153 | } | |
12154 | if (!argp2) { | |
12155 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12156 | } | |
12157 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12158 | { | |
12159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12160 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
12161 | wxPyEndAllowThreads(__tstate); | |
12162 | if (PyErr_Occurred()) SWIG_fail; | |
12163 | } | |
12164 | resultobj = SWIG_Py_Void(); | |
12165 | return resultobj; | |
12166 | fail: | |
12167 | return NULL; | |
e6ffcedd RD |
12168 | } |
12169 | ||
12170 | ||
0085ce49 RD |
12171 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12172 | PyObject *resultobj = 0; | |
12173 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12174 | int result; | |
12175 | void *argp1 = 0 ; | |
12176 | int res1 = 0 ; | |
12177 | PyObject *swig_obj[1] ; | |
12178 | ||
12179 | if (!args) SWIG_fail; | |
12180 | swig_obj[0] = args; | |
12181 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12182 | if (!SWIG_IsOK(res1)) { | |
12183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12184 | } | |
12185 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12186 | { | |
12187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12188 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12189 | wxPyEndAllowThreads(__tstate); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | } | |
12192 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12193 | return resultobj; | |
12194 | fail: | |
12195 | return NULL; | |
d14a1e28 RD |
12196 | } |
12197 | ||
12198 | ||
0085ce49 RD |
12199 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12200 | PyObject *resultobj = 0; | |
12201 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12202 | wxFontStyle result; | |
12203 | void *argp1 = 0 ; | |
12204 | int res1 = 0 ; | |
12205 | PyObject *swig_obj[1] ; | |
12206 | ||
12207 | if (!args) SWIG_fail; | |
12208 | swig_obj[0] = args; | |
12209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12210 | if (!SWIG_IsOK(res1)) { | |
12211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12212 | } | |
12213 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12214 | { | |
12215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12216 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
12217 | wxPyEndAllowThreads(__tstate); | |
12218 | if (PyErr_Occurred()) SWIG_fail; | |
12219 | } | |
12220 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12221 | return resultobj; | |
12222 | fail: | |
12223 | return NULL; | |
d14a1e28 RD |
12224 | } |
12225 | ||
12226 | ||
0085ce49 RD |
12227 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12228 | PyObject *resultobj = 0; | |
12229 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12230 | wxFontWeight result; | |
12231 | void *argp1 = 0 ; | |
12232 | int res1 = 0 ; | |
12233 | PyObject *swig_obj[1] ; | |
12234 | ||
12235 | if (!args) SWIG_fail; | |
12236 | swig_obj[0] = args; | |
12237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12238 | if (!SWIG_IsOK(res1)) { | |
12239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12240 | } | |
12241 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12242 | { | |
12243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12244 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12245 | wxPyEndAllowThreads(__tstate); | |
12246 | if (PyErr_Occurred()) SWIG_fail; | |
12247 | } | |
12248 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12249 | return resultobj; | |
12250 | fail: | |
12251 | return NULL; | |
d14a1e28 RD |
12252 | } |
12253 | ||
12254 | ||
0085ce49 RD |
12255 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12256 | PyObject *resultobj = 0; | |
12257 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12258 | bool result; | |
12259 | void *argp1 = 0 ; | |
12260 | int res1 = 0 ; | |
12261 | PyObject *swig_obj[1] ; | |
12262 | ||
12263 | if (!args) SWIG_fail; | |
12264 | swig_obj[0] = args; | |
12265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12266 | if (!SWIG_IsOK(res1)) { | |
12267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12268 | } | |
12269 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12270 | { | |
12271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12272 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12273 | wxPyEndAllowThreads(__tstate); | |
12274 | if (PyErr_Occurred()) SWIG_fail; | |
12275 | } | |
12276 | { | |
12277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12278 | } | |
12279 | return resultobj; | |
12280 | fail: | |
12281 | return NULL; | |
d14a1e28 RD |
12282 | } |
12283 | ||
12284 | ||
0085ce49 RD |
12285 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12286 | PyObject *resultobj = 0; | |
12287 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12288 | wxString result; | |
12289 | void *argp1 = 0 ; | |
12290 | int res1 = 0 ; | |
12291 | PyObject *swig_obj[1] ; | |
12292 | ||
12293 | if (!args) SWIG_fail; | |
12294 | swig_obj[0] = args; | |
12295 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12296 | if (!SWIG_IsOK(res1)) { | |
12297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12298 | } | |
12299 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12300 | { | |
12301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12302 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12303 | wxPyEndAllowThreads(__tstate); | |
12304 | if (PyErr_Occurred()) SWIG_fail; | |
12305 | } | |
12306 | { | |
12307 | #if wxUSE_UNICODE | |
12308 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12309 | #else | |
12310 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12311 | #endif | |
12312 | } | |
12313 | return resultobj; | |
12314 | fail: | |
12315 | return NULL; | |
d14a1e28 RD |
12316 | } |
12317 | ||
12318 | ||
0085ce49 RD |
12319 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12320 | PyObject *resultobj = 0; | |
12321 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12322 | wxFontFamily result; | |
12323 | void *argp1 = 0 ; | |
12324 | int res1 = 0 ; | |
12325 | PyObject *swig_obj[1] ; | |
12326 | ||
12327 | if (!args) SWIG_fail; | |
12328 | swig_obj[0] = args; | |
12329 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12330 | if (!SWIG_IsOK(res1)) { | |
12331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12332 | } | |
12333 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12334 | { | |
12335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12336 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
12337 | wxPyEndAllowThreads(__tstate); | |
12338 | if (PyErr_Occurred()) SWIG_fail; | |
12339 | } | |
12340 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12341 | return resultobj; | |
12342 | fail: | |
12343 | return NULL; | |
d14a1e28 RD |
12344 | } |
12345 | ||
12346 | ||
0085ce49 RD |
12347 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12348 | PyObject *resultobj = 0; | |
12349 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12350 | wxFontEncoding result; | |
12351 | void *argp1 = 0 ; | |
12352 | int res1 = 0 ; | |
12353 | PyObject *swig_obj[1] ; | |
12354 | ||
12355 | if (!args) SWIG_fail; | |
12356 | swig_obj[0] = args; | |
12357 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12358 | if (!SWIG_IsOK(res1)) { | |
12359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12360 | } | |
12361 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12362 | { | |
12363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12364 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12365 | wxPyEndAllowThreads(__tstate); | |
12366 | if (PyErr_Occurred()) SWIG_fail; | |
12367 | } | |
12368 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12369 | return resultobj; | |
12370 | fail: | |
12371 | return NULL; | |
12372 | } | |
12373 | ||
12374 | ||
12375 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12376 | PyObject *resultobj = 0; | |
12377 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12378 | int arg2 ; | |
12379 | void *argp1 = 0 ; | |
12380 | int res1 = 0 ; | |
12381 | int val2 ; | |
12382 | int ecode2 = 0 ; | |
12383 | PyObject * obj0 = 0 ; | |
12384 | PyObject * obj1 = 0 ; | |
12385 | char * kwnames[] = { | |
12386 | (char *) "self",(char *) "pointsize", NULL | |
12387 | }; | |
12388 | ||
12389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12390 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12391 | if (!SWIG_IsOK(res1)) { | |
12392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12393 | } | |
12394 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12395 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12396 | if (!SWIG_IsOK(ecode2)) { | |
12397 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12398 | } | |
12399 | arg2 = static_cast< int >(val2); | |
12400 | { | |
12401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12402 | (arg1)->SetPointSize(arg2); | |
12403 | wxPyEndAllowThreads(__tstate); | |
12404 | if (PyErr_Occurred()) SWIG_fail; | |
12405 | } | |
12406 | resultobj = SWIG_Py_Void(); | |
12407 | return resultobj; | |
12408 | fail: | |
12409 | return NULL; | |
12410 | } | |
12411 | ||
12412 | ||
12413 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12414 | PyObject *resultobj = 0; | |
12415 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12416 | wxFontStyle arg2 ; | |
12417 | void *argp1 = 0 ; | |
12418 | int res1 = 0 ; | |
12419 | int val2 ; | |
12420 | int ecode2 = 0 ; | |
12421 | PyObject * obj0 = 0 ; | |
12422 | PyObject * obj1 = 0 ; | |
12423 | char * kwnames[] = { | |
12424 | (char *) "self",(char *) "style", NULL | |
12425 | }; | |
12426 | ||
12427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12429 | if (!SWIG_IsOK(res1)) { | |
12430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12431 | } | |
12432 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12433 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12434 | if (!SWIG_IsOK(ecode2)) { | |
12435 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
12436 | } | |
12437 | arg2 = static_cast< wxFontStyle >(val2); | |
12438 | { | |
12439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12440 | (arg1)->SetStyle(arg2); | |
12441 | wxPyEndAllowThreads(__tstate); | |
12442 | if (PyErr_Occurred()) SWIG_fail; | |
12443 | } | |
12444 | resultobj = SWIG_Py_Void(); | |
12445 | return resultobj; | |
12446 | fail: | |
12447 | return NULL; | |
12448 | } | |
12449 | ||
12450 | ||
12451 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12452 | PyObject *resultobj = 0; | |
12453 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12454 | wxFontWeight arg2 ; | |
12455 | void *argp1 = 0 ; | |
12456 | int res1 = 0 ; | |
12457 | int val2 ; | |
12458 | int ecode2 = 0 ; | |
12459 | PyObject * obj0 = 0 ; | |
12460 | PyObject * obj1 = 0 ; | |
12461 | char * kwnames[] = { | |
12462 | (char *) "self",(char *) "weight", NULL | |
12463 | }; | |
12464 | ||
12465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12467 | if (!SWIG_IsOK(res1)) { | |
12468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12469 | } | |
12470 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12471 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12472 | if (!SWIG_IsOK(ecode2)) { | |
12473 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
12474 | } | |
12475 | arg2 = static_cast< wxFontWeight >(val2); | |
12476 | { | |
12477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12478 | (arg1)->SetWeight(arg2); | |
12479 | wxPyEndAllowThreads(__tstate); | |
12480 | if (PyErr_Occurred()) SWIG_fail; | |
12481 | } | |
12482 | resultobj = SWIG_Py_Void(); | |
12483 | return resultobj; | |
12484 | fail: | |
12485 | return NULL; | |
12486 | } | |
12487 | ||
12488 | ||
12489 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12490 | PyObject *resultobj = 0; | |
12491 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12492 | bool arg2 ; | |
12493 | void *argp1 = 0 ; | |
12494 | int res1 = 0 ; | |
12495 | bool val2 ; | |
12496 | int ecode2 = 0 ; | |
12497 | PyObject * obj0 = 0 ; | |
12498 | PyObject * obj1 = 0 ; | |
12499 | char * kwnames[] = { | |
12500 | (char *) "self",(char *) "underlined", NULL | |
12501 | }; | |
12502 | ||
12503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12505 | if (!SWIG_IsOK(res1)) { | |
12506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12507 | } | |
12508 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12509 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12510 | if (!SWIG_IsOK(ecode2)) { | |
12511 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12512 | } | |
12513 | arg2 = static_cast< bool >(val2); | |
12514 | { | |
12515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12516 | (arg1)->SetUnderlined(arg2); | |
12517 | wxPyEndAllowThreads(__tstate); | |
12518 | if (PyErr_Occurred()) SWIG_fail; | |
12519 | } | |
12520 | resultobj = SWIG_Py_Void(); | |
12521 | return resultobj; | |
12522 | fail: | |
12523 | return NULL; | |
12524 | } | |
12525 | ||
12526 | ||
12527 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12528 | PyObject *resultobj = 0; | |
12529 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12530 | wxString arg2 ; | |
704eda0c | 12531 | bool result; |
0085ce49 RD |
12532 | void *argp1 = 0 ; |
12533 | int res1 = 0 ; | |
12534 | PyObject * obj0 = 0 ; | |
12535 | PyObject * obj1 = 0 ; | |
12536 | char * kwnames[] = { | |
12537 | (char *) "self",(char *) "facename", NULL | |
12538 | }; | |
12539 | ||
12540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12542 | if (!SWIG_IsOK(res1)) { | |
12543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12544 | } | |
12545 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12546 | { | |
12547 | wxString* sptr = wxString_in_helper(obj1); | |
12548 | if (sptr == NULL) SWIG_fail; | |
12549 | arg2 = *sptr; | |
12550 | delete sptr; | |
12551 | } | |
12552 | { | |
12553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12554 | result = (bool)(arg1)->SetFaceName(arg2); |
0085ce49 RD |
12555 | wxPyEndAllowThreads(__tstate); |
12556 | if (PyErr_Occurred()) SWIG_fail; | |
12557 | } | |
704eda0c RD |
12558 | { |
12559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12560 | } | |
0085ce49 RD |
12561 | return resultobj; |
12562 | fail: | |
12563 | return NULL; | |
12564 | } | |
12565 | ||
12566 | ||
12567 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12568 | PyObject *resultobj = 0; | |
12569 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12570 | wxFontFamily arg2 ; | |
12571 | void *argp1 = 0 ; | |
12572 | int res1 = 0 ; | |
12573 | int val2 ; | |
12574 | int ecode2 = 0 ; | |
12575 | PyObject * obj0 = 0 ; | |
12576 | PyObject * obj1 = 0 ; | |
12577 | char * kwnames[] = { | |
12578 | (char *) "self",(char *) "family", NULL | |
12579 | }; | |
12580 | ||
12581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12583 | if (!SWIG_IsOK(res1)) { | |
12584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12585 | } | |
12586 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12587 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12588 | if (!SWIG_IsOK(ecode2)) { | |
12589 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12590 | } | |
12591 | arg2 = static_cast< wxFontFamily >(val2); | |
12592 | { | |
12593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12594 | (arg1)->SetFamily(arg2); | |
12595 | wxPyEndAllowThreads(__tstate); | |
12596 | if (PyErr_Occurred()) SWIG_fail; | |
12597 | } | |
12598 | resultobj = SWIG_Py_Void(); | |
12599 | return resultobj; | |
12600 | fail: | |
12601 | return NULL; | |
12602 | } | |
12603 | ||
12604 | ||
12605 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12606 | PyObject *resultobj = 0; | |
12607 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12608 | wxFontEncoding arg2 ; | |
12609 | void *argp1 = 0 ; | |
12610 | int res1 = 0 ; | |
12611 | int val2 ; | |
12612 | int ecode2 = 0 ; | |
12613 | PyObject * obj0 = 0 ; | |
12614 | PyObject * obj1 = 0 ; | |
12615 | char * kwnames[] = { | |
12616 | (char *) "self",(char *) "encoding", NULL | |
12617 | }; | |
12618 | ||
12619 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12620 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12621 | if (!SWIG_IsOK(res1)) { | |
12622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12623 | } | |
12624 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12625 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12626 | if (!SWIG_IsOK(ecode2)) { | |
12627 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12628 | } | |
12629 | arg2 = static_cast< wxFontEncoding >(val2); | |
12630 | { | |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | (arg1)->SetEncoding(arg2); | |
12633 | wxPyEndAllowThreads(__tstate); | |
12634 | if (PyErr_Occurred()) SWIG_fail; | |
12635 | } | |
12636 | resultobj = SWIG_Py_Void(); | |
12637 | return resultobj; | |
12638 | fail: | |
12639 | return NULL; | |
12640 | } | |
12641 | ||
12642 | ||
12643 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12644 | PyObject *resultobj = 0; | |
12645 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12646 | wxString *arg2 = 0 ; | |
12647 | bool result; | |
12648 | void *argp1 = 0 ; | |
12649 | int res1 = 0 ; | |
12650 | bool temp2 = false ; | |
12651 | PyObject * obj0 = 0 ; | |
12652 | PyObject * obj1 = 0 ; | |
12653 | char * kwnames[] = { | |
12654 | (char *) "self",(char *) "s", NULL | |
12655 | }; | |
12656 | ||
12657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12659 | if (!SWIG_IsOK(res1)) { | |
12660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12661 | } | |
12662 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12663 | { | |
12664 | arg2 = wxString_in_helper(obj1); | |
12665 | if (arg2 == NULL) SWIG_fail; | |
12666 | temp2 = true; | |
12667 | } | |
12668 | { | |
12669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12670 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
12671 | wxPyEndAllowThreads(__tstate); | |
12672 | if (PyErr_Occurred()) SWIG_fail; | |
12673 | } | |
12674 | { | |
12675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12676 | } | |
12677 | { | |
12678 | if (temp2) | |
12679 | delete arg2; | |
12680 | } | |
12681 | return resultobj; | |
12682 | fail: | |
12683 | { | |
12684 | if (temp2) | |
12685 | delete arg2; | |
12686 | } | |
12687 | return NULL; | |
d14a1e28 RD |
12688 | } |
12689 | ||
12690 | ||
0085ce49 RD |
12691 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12692 | PyObject *resultobj = 0; | |
12693 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12694 | wxString result; | |
12695 | void *argp1 = 0 ; | |
12696 | int res1 = 0 ; | |
12697 | PyObject *swig_obj[1] ; | |
12698 | ||
12699 | if (!args) SWIG_fail; | |
12700 | swig_obj[0] = args; | |
12701 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12702 | if (!SWIG_IsOK(res1)) { | |
12703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12704 | } | |
12705 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12706 | { | |
12707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12708 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
12709 | wxPyEndAllowThreads(__tstate); | |
12710 | if (PyErr_Occurred()) SWIG_fail; | |
12711 | } | |
12712 | { | |
12713 | #if wxUSE_UNICODE | |
12714 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12715 | #else | |
12716 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12717 | #endif | |
12718 | } | |
12719 | return resultobj; | |
12720 | fail: | |
12721 | return NULL; | |
d14a1e28 RD |
12722 | } |
12723 | ||
12724 | ||
0085ce49 RD |
12725 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12726 | PyObject *resultobj = 0; | |
12727 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12728 | wxString result; | |
12729 | void *argp1 = 0 ; | |
12730 | int res1 = 0 ; | |
12731 | PyObject *swig_obj[1] ; | |
12732 | ||
12733 | if (!args) SWIG_fail; | |
12734 | swig_obj[0] = args; | |
12735 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12736 | if (!SWIG_IsOK(res1)) { | |
12737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12738 | } | |
12739 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12740 | { | |
12741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12742 | result = wxNativeFontInfo___str__(arg1); | |
12743 | wxPyEndAllowThreads(__tstate); | |
12744 | if (PyErr_Occurred()) SWIG_fail; | |
12745 | } | |
12746 | { | |
12747 | #if wxUSE_UNICODE | |
12748 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12749 | #else | |
12750 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12751 | #endif | |
12752 | } | |
12753 | return resultobj; | |
12754 | fail: | |
12755 | return NULL; | |
12756 | } | |
12757 | ||
12758 | ||
12759 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12760 | PyObject *resultobj = 0; | |
12761 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12762 | wxString *arg2 = 0 ; | |
12763 | bool result; | |
12764 | void *argp1 = 0 ; | |
12765 | int res1 = 0 ; | |
12766 | bool temp2 = false ; | |
12767 | PyObject * obj0 = 0 ; | |
12768 | PyObject * obj1 = 0 ; | |
12769 | char * kwnames[] = { | |
12770 | (char *) "self",(char *) "s", NULL | |
12771 | }; | |
12772 | ||
12773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12774 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12775 | if (!SWIG_IsOK(res1)) { | |
12776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12777 | } | |
12778 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12779 | { | |
12780 | arg2 = wxString_in_helper(obj1); | |
12781 | if (arg2 == NULL) SWIG_fail; | |
12782 | temp2 = true; | |
12783 | } | |
12784 | { | |
12785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12786 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
12787 | wxPyEndAllowThreads(__tstate); | |
12788 | if (PyErr_Occurred()) SWIG_fail; | |
12789 | } | |
12790 | { | |
12791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12792 | } | |
12793 | { | |
12794 | if (temp2) | |
12795 | delete arg2; | |
12796 | } | |
12797 | return resultobj; | |
12798 | fail: | |
12799 | { | |
12800 | if (temp2) | |
12801 | delete arg2; | |
12802 | } | |
12803 | return NULL; | |
d14a1e28 RD |
12804 | } |
12805 | ||
12806 | ||
0085ce49 RD |
12807 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12808 | PyObject *resultobj = 0; | |
12809 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12810 | wxString result; | |
12811 | void *argp1 = 0 ; | |
12812 | int res1 = 0 ; | |
12813 | PyObject *swig_obj[1] ; | |
12814 | ||
12815 | if (!args) SWIG_fail; | |
12816 | swig_obj[0] = args; | |
12817 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12818 | if (!SWIG_IsOK(res1)) { | |
12819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12820 | } | |
12821 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12822 | { | |
12823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12824 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
12825 | wxPyEndAllowThreads(__tstate); | |
12826 | if (PyErr_Occurred()) SWIG_fail; | |
12827 | } | |
12828 | { | |
12829 | #if wxUSE_UNICODE | |
12830 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12831 | #else | |
12832 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12833 | #endif | |
12834 | } | |
12835 | return resultobj; | |
12836 | fail: | |
12837 | return NULL; | |
d14a1e28 RD |
12838 | } |
12839 | ||
12840 | ||
0085ce49 RD |
12841 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12842 | PyObject *obj; | |
12843 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12844 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
12845 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12846 | } |
12847 | ||
0085ce49 RD |
12848 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12849 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12850 | } |
12851 | ||
0085ce49 RD |
12852 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12853 | PyObject *resultobj = 0; | |
12854 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12855 | wxString *arg2 = (wxString *) 0 ; | |
12856 | void *argp1 = 0 ; | |
12857 | int res1 = 0 ; | |
12858 | bool temp2 = false ; | |
12859 | PyObject *swig_obj[2] ; | |
12860 | ||
12861 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
12862 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12863 | if (!SWIG_IsOK(res1)) { | |
12864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12865 | } | |
12866 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12867 | { | |
12868 | arg2 = wxString_in_helper(swig_obj[1]); | |
12869 | if (arg2 == NULL) SWIG_fail; | |
12870 | temp2 = true; | |
12871 | } | |
12872 | if (arg1) (arg1)->facename = *arg2; | |
12873 | ||
12874 | resultobj = SWIG_Py_Void(); | |
12875 | { | |
12876 | if (temp2) | |
12877 | delete arg2; | |
12878 | } | |
12879 | return resultobj; | |
12880 | fail: | |
12881 | { | |
12882 | if (temp2) | |
12883 | delete arg2; | |
12884 | } | |
12885 | return NULL; | |
d14a1e28 RD |
12886 | } |
12887 | ||
12888 | ||
0085ce49 RD |
12889 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12890 | PyObject *resultobj = 0; | |
12891 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12892 | wxString *result = 0 ; | |
12893 | void *argp1 = 0 ; | |
12894 | int res1 = 0 ; | |
12895 | PyObject *swig_obj[1] ; | |
12896 | ||
12897 | if (!args) SWIG_fail; | |
12898 | swig_obj[0] = args; | |
12899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12900 | if (!SWIG_IsOK(res1)) { | |
12901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12902 | } | |
12903 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12904 | result = (wxString *)& ((arg1)->facename); | |
12905 | { | |
12906 | #if wxUSE_UNICODE | |
12907 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12908 | #else | |
12909 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12910 | #endif | |
12911 | } | |
12912 | return resultobj; | |
12913 | fail: | |
12914 | return NULL; | |
d14a1e28 RD |
12915 | } |
12916 | ||
12917 | ||
0085ce49 RD |
12918 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12919 | PyObject *resultobj = 0; | |
12920 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12921 | wxFontEncoding arg2 ; | |
12922 | void *argp1 = 0 ; | |
12923 | int res1 = 0 ; | |
12924 | int val2 ; | |
12925 | int ecode2 = 0 ; | |
12926 | PyObject *swig_obj[2] ; | |
12927 | ||
12928 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
12929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12930 | if (!SWIG_IsOK(res1)) { | |
12931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12932 | } | |
12933 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12934 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
12935 | if (!SWIG_IsOK(ecode2)) { | |
12936 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12937 | } | |
12938 | arg2 = static_cast< wxFontEncoding >(val2); | |
12939 | if (arg1) (arg1)->encoding = arg2; | |
12940 | ||
12941 | resultobj = SWIG_Py_Void(); | |
12942 | return resultobj; | |
12943 | fail: | |
12944 | return NULL; | |
d14a1e28 RD |
12945 | } |
12946 | ||
12947 | ||
0085ce49 RD |
12948 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12949 | PyObject *resultobj = 0; | |
12950 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12951 | wxFontEncoding result; | |
12952 | void *argp1 = 0 ; | |
12953 | int res1 = 0 ; | |
12954 | PyObject *swig_obj[1] ; | |
12955 | ||
12956 | if (!args) SWIG_fail; | |
12957 | swig_obj[0] = args; | |
12958 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12959 | if (!SWIG_IsOK(res1)) { | |
12960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12961 | } | |
12962 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12963 | result = (wxFontEncoding) ((arg1)->encoding); | |
12964 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12965 | return resultobj; | |
12966 | fail: | |
12967 | return NULL; | |
d14a1e28 RD |
12968 | } |
12969 | ||
12970 | ||
0085ce49 RD |
12971 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12972 | PyObject *resultobj = 0; | |
12973 | wxNativeEncodingInfo *result = 0 ; | |
12974 | ||
12975 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
12976 | { | |
12977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12978 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
12979 | wxPyEndAllowThreads(__tstate); | |
12980 | if (PyErr_Occurred()) SWIG_fail; | |
12981 | } | |
12982 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
12983 | return resultobj; | |
12984 | fail: | |
12985 | return NULL; | |
d14a1e28 RD |
12986 | } |
12987 | ||
12988 | ||
0085ce49 RD |
12989 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12990 | PyObject *resultobj = 0; | |
12991 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12992 | void *argp1 = 0 ; | |
12993 | int res1 = 0 ; | |
12994 | PyObject *swig_obj[1] ; | |
12995 | ||
12996 | if (!args) SWIG_fail; | |
12997 | swig_obj[0] = args; | |
12998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
12999 | if (!SWIG_IsOK(res1)) { | |
13000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13001 | } | |
13002 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13003 | { | |
13004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13005 | delete arg1; | |
d14a1e28 | 13006 | |
0085ce49 RD |
13007 | wxPyEndAllowThreads(__tstate); |
13008 | if (PyErr_Occurred()) SWIG_fail; | |
13009 | } | |
13010 | resultobj = SWIG_Py_Void(); | |
13011 | return resultobj; | |
13012 | fail: | |
13013 | return NULL; | |
13014 | } | |
13015 | ||
13016 | ||
13017 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13018 | PyObject *resultobj = 0; | |
13019 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13020 | wxString *arg2 = 0 ; | |
13021 | bool result; | |
13022 | void *argp1 = 0 ; | |
13023 | int res1 = 0 ; | |
13024 | bool temp2 = false ; | |
13025 | PyObject * obj0 = 0 ; | |
13026 | PyObject * obj1 = 0 ; | |
13027 | char * kwnames[] = { | |
13028 | (char *) "self",(char *) "s", NULL | |
13029 | }; | |
13030 | ||
13031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13033 | if (!SWIG_IsOK(res1)) { | |
13034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13035 | } | |
13036 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13037 | { | |
13038 | arg2 = wxString_in_helper(obj1); | |
13039 | if (arg2 == NULL) SWIG_fail; | |
13040 | temp2 = true; | |
13041 | } | |
13042 | { | |
13043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13044 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13045 | wxPyEndAllowThreads(__tstate); | |
13046 | if (PyErr_Occurred()) SWIG_fail; | |
13047 | } | |
13048 | { | |
13049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13050 | } | |
13051 | { | |
13052 | if (temp2) | |
13053 | delete arg2; | |
13054 | } | |
13055 | return resultobj; | |
13056 | fail: | |
13057 | { | |
13058 | if (temp2) | |
13059 | delete arg2; | |
13060 | } | |
13061 | return NULL; | |
d14a1e28 RD |
13062 | } |
13063 | ||
13064 | ||
0085ce49 RD |
13065 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13066 | PyObject *resultobj = 0; | |
13067 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13068 | wxString result; | |
13069 | void *argp1 = 0 ; | |
13070 | int res1 = 0 ; | |
13071 | PyObject *swig_obj[1] ; | |
13072 | ||
13073 | if (!args) SWIG_fail; | |
13074 | swig_obj[0] = args; | |
13075 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13076 | if (!SWIG_IsOK(res1)) { | |
13077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
13078 | } | |
13079 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13080 | { | |
13081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13082 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
13083 | wxPyEndAllowThreads(__tstate); | |
13084 | if (PyErr_Occurred()) SWIG_fail; | |
13085 | } | |
13086 | { | |
13087 | #if wxUSE_UNICODE | |
13088 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13089 | #else | |
13090 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13091 | #endif | |
13092 | } | |
13093 | return resultobj; | |
13094 | fail: | |
13095 | return NULL; | |
d14a1e28 RD |
13096 | } |
13097 | ||
13098 | ||
0085ce49 RD |
13099 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13100 | PyObject *obj; | |
13101 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13102 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
13103 | return SWIG_Py_Void(); | |
d14a1e28 RD |
13104 | } |
13105 | ||
0085ce49 RD |
13106 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13107 | return SWIG_Python_InitShadowInstance(args); | |
13108 | } | |
d14a1e28 | 13109 | |
0085ce49 RD |
13110 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13111 | PyObject *resultobj = 0; | |
13112 | wxFontEncoding arg1 ; | |
13113 | wxNativeEncodingInfo *result = 0 ; | |
13114 | int val1 ; | |
13115 | int ecode1 = 0 ; | |
13116 | PyObject * obj0 = 0 ; | |
13117 | char * kwnames[] = { | |
13118 | (char *) "encoding", NULL | |
13119 | }; | |
13120 | ||
13121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13122 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13123 | if (!SWIG_IsOK(ecode1)) { | |
13124 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13125 | } | |
13126 | arg1 = static_cast< wxFontEncoding >(val1); | |
13127 | { | |
13128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13129 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
13130 | wxPyEndAllowThreads(__tstate); | |
13131 | if (PyErr_Occurred()) SWIG_fail; | |
13132 | } | |
13133 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13134 | return resultobj; | |
13135 | fail: | |
13136 | return NULL; | |
13137 | } | |
13138 | ||
13139 | ||
13140 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13141 | PyObject *resultobj = 0; | |
13142 | wxNativeEncodingInfo *arg1 = 0 ; | |
13143 | bool result; | |
13144 | void *argp1 = 0 ; | |
13145 | int res1 = 0 ; | |
13146 | PyObject * obj0 = 0 ; | |
13147 | char * kwnames[] = { | |
13148 | (char *) "info", NULL | |
13149 | }; | |
13150 | ||
13151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13152 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
13153 | if (!SWIG_IsOK(res1)) { | |
13154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13155 | } | |
13156 | if (!argp1) { | |
13157 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13158 | } | |
13159 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13160 | { | |
13161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13162 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
13163 | wxPyEndAllowThreads(__tstate); | |
13164 | if (PyErr_Occurred()) SWIG_fail; | |
13165 | } | |
13166 | { | |
13167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13168 | } | |
13169 | return resultobj; | |
13170 | fail: | |
13171 | return NULL; | |
d14a1e28 RD |
13172 | } |
13173 | ||
13174 | ||
0085ce49 RD |
13175 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13176 | PyObject *resultobj = 0; | |
13177 | wxFontMapper *result = 0 ; | |
13178 | ||
13179 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13180 | { | |
13181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13182 | result = (wxFontMapper *)new wxFontMapper(); | |
13183 | wxPyEndAllowThreads(__tstate); | |
13184 | if (PyErr_Occurred()) SWIG_fail; | |
13185 | } | |
13186 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13187 | return resultobj; | |
13188 | fail: | |
13189 | return NULL; | |
d14a1e28 RD |
13190 | } |
13191 | ||
13192 | ||
0085ce49 RD |
13193 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13194 | PyObject *resultobj = 0; | |
13195 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13196 | void *argp1 = 0 ; | |
13197 | int res1 = 0 ; | |
13198 | PyObject *swig_obj[1] ; | |
13199 | ||
13200 | if (!args) SWIG_fail; | |
13201 | swig_obj[0] = args; | |
13202 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13203 | if (!SWIG_IsOK(res1)) { | |
13204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13205 | } | |
13206 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13207 | { | |
13208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13209 | delete arg1; | |
d14a1e28 | 13210 | |
0085ce49 RD |
13211 | wxPyEndAllowThreads(__tstate); |
13212 | if (PyErr_Occurred()) SWIG_fail; | |
13213 | } | |
13214 | resultobj = SWIG_Py_Void(); | |
13215 | return resultobj; | |
13216 | fail: | |
13217 | return NULL; | |
d14a1e28 RD |
13218 | } |
13219 | ||
13220 | ||
0085ce49 RD |
13221 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13222 | PyObject *resultobj = 0; | |
13223 | wxFontMapper *result = 0 ; | |
13224 | ||
13225 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13226 | { | |
13227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13228 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13229 | wxPyEndAllowThreads(__tstate); | |
13230 | if (PyErr_Occurred()) SWIG_fail; | |
13231 | } | |
13232 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13233 | return resultobj; | |
13234 | fail: | |
13235 | return NULL; | |
13236 | } | |
13237 | ||
13238 | ||
13239 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13240 | PyObject *resultobj = 0; | |
13241 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13242 | wxFontMapper *result = 0 ; | |
13243 | void *argp1 = 0 ; | |
13244 | int res1 = 0 ; | |
13245 | PyObject * obj0 = 0 ; | |
13246 | char * kwnames[] = { | |
13247 | (char *) "mapper", NULL | |
13248 | }; | |
13249 | ||
13250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13252 | if (!SWIG_IsOK(res1)) { | |
13253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13254 | } | |
13255 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13256 | { | |
13257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13258 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13259 | wxPyEndAllowThreads(__tstate); | |
13260 | if (PyErr_Occurred()) SWIG_fail; | |
13261 | } | |
13262 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13263 | return resultobj; | |
13264 | fail: | |
13265 | return NULL; | |
13266 | } | |
13267 | ||
13268 | ||
13269 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13270 | PyObject *resultobj = 0; | |
13271 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13272 | wxString *arg2 = 0 ; | |
13273 | bool arg3 = (bool) true ; | |
13274 | wxFontEncoding result; | |
13275 | void *argp1 = 0 ; | |
13276 | int res1 = 0 ; | |
13277 | bool temp2 = false ; | |
13278 | bool val3 ; | |
13279 | int ecode3 = 0 ; | |
13280 | PyObject * obj0 = 0 ; | |
13281 | PyObject * obj1 = 0 ; | |
13282 | PyObject * obj2 = 0 ; | |
13283 | char * kwnames[] = { | |
13284 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13285 | }; | |
13286 | ||
13287 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13288 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13289 | if (!SWIG_IsOK(res1)) { | |
13290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13291 | } | |
13292 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13293 | { | |
13294 | arg2 = wxString_in_helper(obj1); | |
13295 | if (arg2 == NULL) SWIG_fail; | |
13296 | temp2 = true; | |
13297 | } | |
13298 | if (obj2) { | |
13299 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13300 | if (!SWIG_IsOK(ecode3)) { | |
13301 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13302 | } | |
13303 | arg3 = static_cast< bool >(val3); | |
13304 | } | |
13305 | { | |
13306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13307 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13308 | wxPyEndAllowThreads(__tstate); | |
13309 | if (PyErr_Occurred()) SWIG_fail; | |
13310 | } | |
13311 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13312 | { | |
13313 | if (temp2) | |
13314 | delete arg2; | |
13315 | } | |
13316 | return resultobj; | |
13317 | fail: | |
13318 | { | |
13319 | if (temp2) | |
13320 | delete arg2; | |
13321 | } | |
13322 | return NULL; | |
e6ffcedd RD |
13323 | } |
13324 | ||
13325 | ||
0085ce49 RD |
13326 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13327 | PyObject *resultobj = 0; | |
13328 | size_t result; | |
13329 | ||
13330 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13331 | { | |
13332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13333 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
13337 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13338 | return resultobj; | |
13339 | fail: | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
13344 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13345 | PyObject *resultobj = 0; | |
13346 | size_t arg1 ; | |
13347 | wxFontEncoding result; | |
13348 | size_t val1 ; | |
13349 | int ecode1 = 0 ; | |
13350 | PyObject * obj0 = 0 ; | |
13351 | char * kwnames[] = { | |
13352 | (char *) "n", NULL | |
13353 | }; | |
13354 | ||
13355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
13356 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
13357 | if (!SWIG_IsOK(ecode1)) { | |
13358 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
13359 | } | |
13360 | arg1 = static_cast< size_t >(val1); | |
13361 | { | |
13362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13363 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
13364 | wxPyEndAllowThreads(__tstate); | |
13365 | if (PyErr_Occurred()) SWIG_fail; | |
13366 | } | |
13367 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13368 | return resultobj; | |
13369 | fail: | |
13370 | return NULL; | |
13371 | } | |
13372 | ||
13373 | ||
13374 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13375 | PyObject *resultobj = 0; | |
13376 | wxFontEncoding arg1 ; | |
13377 | wxString result; | |
13378 | int val1 ; | |
13379 | int ecode1 = 0 ; | |
13380 | PyObject * obj0 = 0 ; | |
13381 | char * kwnames[] = { | |
13382 | (char *) "encoding", NULL | |
13383 | }; | |
13384 | ||
13385 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
13386 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13387 | if (!SWIG_IsOK(ecode1)) { | |
13388 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13389 | } | |
13390 | arg1 = static_cast< wxFontEncoding >(val1); | |
13391 | { | |
13392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13393 | result = wxFontMapper::GetEncodingName(arg1); | |
13394 | wxPyEndAllowThreads(__tstate); | |
13395 | if (PyErr_Occurred()) SWIG_fail; | |
13396 | } | |
13397 | { | |
13398 | #if wxUSE_UNICODE | |
13399 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13400 | #else | |
13401 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13402 | #endif | |
13403 | } | |
13404 | return resultobj; | |
13405 | fail: | |
13406 | return NULL; | |
d14a1e28 RD |
13407 | } |
13408 | ||
13409 | ||
0085ce49 RD |
13410 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13411 | PyObject *resultobj = 0; | |
13412 | wxFontEncoding arg1 ; | |
13413 | wxString result; | |
13414 | int val1 ; | |
13415 | int ecode1 = 0 ; | |
13416 | PyObject * obj0 = 0 ; | |
13417 | char * kwnames[] = { | |
13418 | (char *) "encoding", NULL | |
13419 | }; | |
13420 | ||
13421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
13422 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13423 | if (!SWIG_IsOK(ecode1)) { | |
13424 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13425 | } | |
13426 | arg1 = static_cast< wxFontEncoding >(val1); | |
13427 | { | |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | result = wxFontMapper::GetEncodingDescription(arg1); | |
13430 | wxPyEndAllowThreads(__tstate); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | } | |
13433 | { | |
13434 | #if wxUSE_UNICODE | |
13435 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13436 | #else | |
13437 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13438 | #endif | |
13439 | } | |
13440 | return resultobj; | |
13441 | fail: | |
13442 | return NULL; | |
d14a1e28 RD |
13443 | } |
13444 | ||
13445 | ||
0085ce49 RD |
13446 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13447 | PyObject *resultobj = 0; | |
13448 | wxString *arg1 = 0 ; | |
13449 | wxFontEncoding result; | |
13450 | bool temp1 = false ; | |
13451 | PyObject * obj0 = 0 ; | |
13452 | char * kwnames[] = { | |
13453 | (char *) "name", NULL | |
13454 | }; | |
13455 | ||
13456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
13457 | { | |
13458 | arg1 = wxString_in_helper(obj0); | |
13459 | if (arg1 == NULL) SWIG_fail; | |
13460 | temp1 = true; | |
13461 | } | |
13462 | { | |
13463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13464 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
13465 | wxPyEndAllowThreads(__tstate); | |
13466 | if (PyErr_Occurred()) SWIG_fail; | |
13467 | } | |
13468 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13469 | { | |
13470 | if (temp1) | |
13471 | delete arg1; | |
13472 | } | |
13473 | return resultobj; | |
13474 | fail: | |
13475 | { | |
13476 | if (temp1) | |
13477 | delete arg1; | |
13478 | } | |
13479 | return NULL; | |
d14a1e28 RD |
13480 | } |
13481 | ||
13482 | ||
0085ce49 RD |
13483 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13484 | PyObject *resultobj = 0; | |
13485 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13486 | wxString *arg2 = 0 ; | |
13487 | void *argp1 = 0 ; | |
13488 | int res1 = 0 ; | |
13489 | bool temp2 = false ; | |
13490 | PyObject * obj0 = 0 ; | |
13491 | PyObject * obj1 = 0 ; | |
13492 | char * kwnames[] = { | |
13493 | (char *) "self",(char *) "prefix", NULL | |
13494 | }; | |
13495 | ||
13496 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
13497 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13498 | if (!SWIG_IsOK(res1)) { | |
13499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13500 | } | |
13501 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13502 | { | |
13503 | arg2 = wxString_in_helper(obj1); | |
13504 | if (arg2 == NULL) SWIG_fail; | |
13505 | temp2 = true; | |
13506 | } | |
13507 | { | |
13508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13509 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
13510 | wxPyEndAllowThreads(__tstate); | |
13511 | if (PyErr_Occurred()) SWIG_fail; | |
13512 | } | |
13513 | resultobj = SWIG_Py_Void(); | |
13514 | { | |
13515 | if (temp2) | |
13516 | delete arg2; | |
13517 | } | |
13518 | return resultobj; | |
13519 | fail: | |
13520 | { | |
13521 | if (temp2) | |
13522 | delete arg2; | |
13523 | } | |
13524 | return NULL; | |
d14a1e28 RD |
13525 | } |
13526 | ||
13527 | ||
0085ce49 RD |
13528 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13529 | PyObject *resultobj = 0; | |
13530 | wxString result; | |
13531 | ||
13532 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
13533 | { | |
13534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13535 | result = wxFontMapper::GetDefaultConfigPath(); | |
13536 | wxPyEndAllowThreads(__tstate); | |
13537 | if (PyErr_Occurred()) SWIG_fail; | |
13538 | } | |
13539 | { | |
13540 | #if wxUSE_UNICODE | |
13541 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13542 | #else | |
13543 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13544 | #endif | |
13545 | } | |
13546 | return resultobj; | |
13547 | fail: | |
13548 | return NULL; | |
13549 | } | |
13550 | ||
13551 | ||
13552 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13553 | PyObject *resultobj = 0; | |
13554 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13555 | wxFontEncoding arg2 ; | |
13556 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13557 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13558 | bool arg4 = (bool) true ; | |
13559 | PyObject *result = 0 ; | |
13560 | void *argp1 = 0 ; | |
13561 | int res1 = 0 ; | |
13562 | int val2 ; | |
13563 | int ecode2 = 0 ; | |
13564 | bool temp3 = false ; | |
13565 | bool val4 ; | |
13566 | int ecode4 = 0 ; | |
13567 | PyObject * obj0 = 0 ; | |
13568 | PyObject * obj1 = 0 ; | |
13569 | PyObject * obj2 = 0 ; | |
13570 | PyObject * obj3 = 0 ; | |
13571 | char * kwnames[] = { | |
13572 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
13573 | }; | |
13574 | ||
13575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13577 | if (!SWIG_IsOK(res1)) { | |
13578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13579 | } | |
13580 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13581 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13582 | if (!SWIG_IsOK(ecode2)) { | |
13583 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13584 | } | |
13585 | arg2 = static_cast< wxFontEncoding >(val2); | |
13586 | if (obj2) { | |
093d3ff1 | 13587 | { |
0085ce49 RD |
13588 | arg3 = wxString_in_helper(obj2); |
13589 | if (arg3 == NULL) SWIG_fail; | |
13590 | temp3 = true; | |
093d3ff1 | 13591 | } |
0085ce49 RD |
13592 | } |
13593 | if (obj3) { | |
13594 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13595 | if (!SWIG_IsOK(ecode4)) { | |
13596 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
13597 | } | |
13598 | arg4 = static_cast< bool >(val4); | |
13599 | } | |
13600 | { | |
13601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13602 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
13603 | wxPyEndAllowThreads(__tstate); | |
13604 | if (PyErr_Occurred()) SWIG_fail; | |
13605 | } | |
13606 | resultobj = result; | |
13607 | { | |
13608 | if (temp3) | |
13609 | delete arg3; | |
13610 | } | |
13611 | return resultobj; | |
13612 | fail: | |
13613 | { | |
13614 | if (temp3) | |
13615 | delete arg3; | |
13616 | } | |
13617 | return NULL; | |
13618 | } | |
13619 | ||
13620 | ||
13621 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13622 | PyObject *resultobj = 0; | |
13623 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13624 | wxFontEncoding arg2 ; | |
13625 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13626 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13627 | bool result; | |
13628 | void *argp1 = 0 ; | |
13629 | int res1 = 0 ; | |
13630 | int val2 ; | |
13631 | int ecode2 = 0 ; | |
13632 | bool temp3 = false ; | |
13633 | PyObject * obj0 = 0 ; | |
13634 | PyObject * obj1 = 0 ; | |
13635 | PyObject * obj2 = 0 ; | |
13636 | char * kwnames[] = { | |
13637 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
13638 | }; | |
13639 | ||
13640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13642 | if (!SWIG_IsOK(res1)) { | |
13643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13644 | } | |
13645 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13646 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13647 | if (!SWIG_IsOK(ecode2)) { | |
13648 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13649 | } | |
13650 | arg2 = static_cast< wxFontEncoding >(val2); | |
13651 | if (obj2) { | |
d14a1e28 | 13652 | { |
0085ce49 RD |
13653 | arg3 = wxString_in_helper(obj2); |
13654 | if (arg3 == NULL) SWIG_fail; | |
13655 | temp3 = true; | |
d14a1e28 | 13656 | } |
0085ce49 RD |
13657 | } |
13658 | { | |
13659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13660 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
13661 | wxPyEndAllowThreads(__tstate); | |
13662 | if (PyErr_Occurred()) SWIG_fail; | |
13663 | } | |
13664 | { | |
13665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13666 | } | |
13667 | { | |
13668 | if (temp3) | |
13669 | delete arg3; | |
13670 | } | |
13671 | return resultobj; | |
13672 | fail: | |
13673 | { | |
13674 | if (temp3) | |
13675 | delete arg3; | |
13676 | } | |
13677 | return NULL; | |
13678 | } | |
13679 | ||
13680 | ||
13681 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13682 | PyObject *resultobj = 0; | |
13683 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13684 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13685 | void *argp1 = 0 ; | |
13686 | int res1 = 0 ; | |
13687 | void *argp2 = 0 ; | |
13688 | int res2 = 0 ; | |
13689 | PyObject * obj0 = 0 ; | |
13690 | PyObject * obj1 = 0 ; | |
13691 | char * kwnames[] = { | |
13692 | (char *) "self",(char *) "parent", NULL | |
13693 | }; | |
13694 | ||
13695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
13696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13697 | if (!SWIG_IsOK(res1)) { | |
13698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13699 | } | |
13700 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13701 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13702 | if (!SWIG_IsOK(res2)) { | |
13703 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13704 | } | |
13705 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13706 | { | |
13707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13708 | (arg1)->SetDialogParent(arg2); | |
13709 | wxPyEndAllowThreads(__tstate); | |
13710 | if (PyErr_Occurred()) SWIG_fail; | |
13711 | } | |
13712 | resultobj = SWIG_Py_Void(); | |
13713 | return resultobj; | |
13714 | fail: | |
13715 | return NULL; | |
13716 | } | |
13717 | ||
13718 | ||
13719 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13720 | PyObject *resultobj = 0; | |
13721 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13722 | wxString *arg2 = 0 ; | |
13723 | void *argp1 = 0 ; | |
13724 | int res1 = 0 ; | |
13725 | bool temp2 = false ; | |
13726 | PyObject * obj0 = 0 ; | |
13727 | PyObject * obj1 = 0 ; | |
13728 | char * kwnames[] = { | |
13729 | (char *) "self",(char *) "title", NULL | |
13730 | }; | |
13731 | ||
13732 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13733 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13734 | if (!SWIG_IsOK(res1)) { | |
13735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13736 | } | |
13737 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13738 | { | |
13739 | arg2 = wxString_in_helper(obj1); | |
13740 | if (arg2 == NULL) SWIG_fail; | |
13741 | temp2 = true; | |
13742 | } | |
13743 | { | |
13744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13745 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
13746 | wxPyEndAllowThreads(__tstate); | |
13747 | if (PyErr_Occurred()) SWIG_fail; | |
13748 | } | |
13749 | resultobj = SWIG_Py_Void(); | |
13750 | { | |
13751 | if (temp2) | |
13752 | delete arg2; | |
13753 | } | |
13754 | return resultobj; | |
13755 | fail: | |
13756 | { | |
13757 | if (temp2) | |
13758 | delete arg2; | |
13759 | } | |
13760 | return NULL; | |
13761 | } | |
13762 | ||
13763 | ||
13764 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13765 | PyObject *obj; | |
13766 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13767 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
13768 | return SWIG_Py_Void(); | |
13769 | } | |
13770 | ||
13771 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13772 | return SWIG_Python_InitShadowInstance(args); | |
13773 | } | |
13774 | ||
13775 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13776 | PyObject *resultobj = 0; | |
13777 | int arg1 ; | |
13778 | int arg2 ; | |
13779 | int arg3 ; | |
13780 | int arg4 ; | |
13781 | bool arg5 = (bool) false ; | |
13782 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
13783 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13784 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13785 | wxFont *result = 0 ; | |
13786 | int val1 ; | |
13787 | int ecode1 = 0 ; | |
13788 | int val2 ; | |
13789 | int ecode2 = 0 ; | |
13790 | int val3 ; | |
13791 | int ecode3 = 0 ; | |
13792 | int val4 ; | |
13793 | int ecode4 = 0 ; | |
13794 | bool val5 ; | |
13795 | int ecode5 = 0 ; | |
13796 | bool temp6 = false ; | |
13797 | int val7 ; | |
13798 | int ecode7 = 0 ; | |
13799 | PyObject * obj0 = 0 ; | |
13800 | PyObject * obj1 = 0 ; | |
13801 | PyObject * obj2 = 0 ; | |
13802 | PyObject * obj3 = 0 ; | |
13803 | PyObject * obj4 = 0 ; | |
13804 | PyObject * obj5 = 0 ; | |
13805 | PyObject * obj6 = 0 ; | |
13806 | char * kwnames[] = { | |
13807 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
13808 | }; | |
13809 | ||
13810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13811 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13812 | if (!SWIG_IsOK(ecode1)) { | |
13813 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
13814 | } | |
13815 | arg1 = static_cast< int >(val1); | |
13816 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13817 | if (!SWIG_IsOK(ecode2)) { | |
13818 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
13819 | } | |
13820 | arg2 = static_cast< int >(val2); | |
13821 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13822 | if (!SWIG_IsOK(ecode3)) { | |
13823 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
13824 | } | |
13825 | arg3 = static_cast< int >(val3); | |
13826 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
13827 | if (!SWIG_IsOK(ecode4)) { | |
13828 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
13829 | } | |
13830 | arg4 = static_cast< int >(val4); | |
13831 | if (obj4) { | |
13832 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13833 | if (!SWIG_IsOK(ecode5)) { | |
13834 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
13835 | } | |
13836 | arg5 = static_cast< bool >(val5); | |
13837 | } | |
13838 | if (obj5) { | |
093d3ff1 | 13839 | { |
0085ce49 RD |
13840 | arg6 = wxString_in_helper(obj5); |
13841 | if (arg6 == NULL) SWIG_fail; | |
13842 | temp6 = true; | |
093d3ff1 | 13843 | } |
0085ce49 RD |
13844 | } |
13845 | if (obj6) { | |
13846 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
13847 | if (!SWIG_IsOK(ecode7)) { | |
13848 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
13849 | } | |
13850 | arg7 = static_cast< wxFontEncoding >(val7); | |
13851 | } | |
13852 | { | |
13853 | if (!wxPyCheckForApp()) SWIG_fail; | |
13854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13855 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
13856 | wxPyEndAllowThreads(__tstate); | |
13857 | if (PyErr_Occurred()) SWIG_fail; | |
13858 | } | |
13859 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
13860 | { | |
13861 | if (temp6) | |
13862 | delete arg6; | |
13863 | } | |
13864 | return resultobj; | |
13865 | fail: | |
13866 | { | |
13867 | if (temp6) | |
13868 | delete arg6; | |
13869 | } | |
13870 | return NULL; | |
d14a1e28 RD |
13871 | } |
13872 | ||
13873 | ||
0085ce49 RD |
13874 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13875 | PyObject *resultobj = 0; | |
13876 | wxFont *arg1 = (wxFont *) 0 ; | |
13877 | void *argp1 = 0 ; | |
13878 | int res1 = 0 ; | |
13879 | PyObject *swig_obj[1] ; | |
13880 | ||
13881 | if (!args) SWIG_fail; | |
13882 | swig_obj[0] = args; | |
13883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
13884 | if (!SWIG_IsOK(res1)) { | |
13885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13886 | } | |
13887 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13888 | { | |
13889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13890 | delete arg1; | |
d14a1e28 | 13891 | |
0085ce49 RD |
13892 | wxPyEndAllowThreads(__tstate); |
13893 | if (PyErr_Occurred()) SWIG_fail; | |
13894 | } | |
13895 | resultobj = SWIG_Py_Void(); | |
13896 | return resultobj; | |
13897 | fail: | |
13898 | return NULL; | |
13899 | } | |
13900 | ||
13901 | ||
13902 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13903 | PyObject *resultobj = 0; | |
13904 | wxNativeFontInfo *arg1 = 0 ; | |
13905 | wxFont *result = 0 ; | |
13906 | void *argp1 = 0 ; | |
13907 | int res1 = 0 ; | |
13908 | PyObject * obj0 = 0 ; | |
13909 | char * kwnames[] = { | |
13910 | (char *) "info", NULL | |
13911 | }; | |
13912 | ||
13913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
13914 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
13915 | if (!SWIG_IsOK(res1)) { | |
13916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13917 | } | |
13918 | if (!argp1) { | |
13919 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13920 | } | |
13921 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13922 | { | |
13923 | if (!wxPyCheckForApp()) SWIG_fail; | |
13924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13925 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
13926 | wxPyEndAllowThreads(__tstate); | |
13927 | if (PyErr_Occurred()) SWIG_fail; | |
13928 | } | |
13929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13930 | return resultobj; | |
13931 | fail: | |
13932 | return NULL; | |
d14a1e28 RD |
13933 | } |
13934 | ||
13935 | ||
0085ce49 RD |
13936 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13937 | PyObject *resultobj = 0; | |
13938 | wxString *arg1 = 0 ; | |
13939 | wxFont *result = 0 ; | |
13940 | bool temp1 = false ; | |
13941 | PyObject * obj0 = 0 ; | |
13942 | char * kwnames[] = { | |
13943 | (char *) "info", NULL | |
13944 | }; | |
13945 | ||
13946 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
13947 | { | |
13948 | arg1 = wxString_in_helper(obj0); | |
13949 | if (arg1 == NULL) SWIG_fail; | |
13950 | temp1 = true; | |
13951 | } | |
13952 | { | |
13953 | if (!wxPyCheckForApp()) SWIG_fail; | |
13954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13955 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
13956 | wxPyEndAllowThreads(__tstate); | |
13957 | if (PyErr_Occurred()) SWIG_fail; | |
13958 | } | |
13959 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13960 | { | |
13961 | if (temp1) | |
13962 | delete arg1; | |
13963 | } | |
13964 | return resultobj; | |
13965 | fail: | |
13966 | { | |
13967 | if (temp1) | |
13968 | delete arg1; | |
13969 | } | |
13970 | return NULL; | |
13971 | } | |
13972 | ||
13973 | ||
13974 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13975 | PyObject *resultobj = 0; | |
13976 | int arg1 ; | |
13977 | wxFontFamily arg2 ; | |
13978 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
13979 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13980 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13981 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13982 | wxFont *result = 0 ; | |
13983 | int val1 ; | |
13984 | int ecode1 = 0 ; | |
13985 | int val2 ; | |
13986 | int ecode2 = 0 ; | |
13987 | int val3 ; | |
13988 | int ecode3 = 0 ; | |
13989 | bool temp4 = false ; | |
13990 | int val5 ; | |
13991 | int ecode5 = 0 ; | |
13992 | PyObject * obj0 = 0 ; | |
13993 | PyObject * obj1 = 0 ; | |
13994 | PyObject * obj2 = 0 ; | |
13995 | PyObject * obj3 = 0 ; | |
13996 | PyObject * obj4 = 0 ; | |
13997 | char * kwnames[] = { | |
13998 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
13999 | }; | |
14000 | ||
14001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14002 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14003 | if (!SWIG_IsOK(ecode1)) { | |
14004 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
14005 | } | |
14006 | arg1 = static_cast< int >(val1); | |
14007 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14008 | if (!SWIG_IsOK(ecode2)) { | |
14009 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14010 | } | |
14011 | arg2 = static_cast< wxFontFamily >(val2); | |
14012 | if (obj2) { | |
14013 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14014 | if (!SWIG_IsOK(ecode3)) { | |
14015 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
14016 | } | |
14017 | arg3 = static_cast< int >(val3); | |
14018 | } | |
14019 | if (obj3) { | |
093d3ff1 | 14020 | { |
0085ce49 RD |
14021 | arg4 = wxString_in_helper(obj3); |
14022 | if (arg4 == NULL) SWIG_fail; | |
14023 | temp4 = true; | |
093d3ff1 | 14024 | } |
0085ce49 RD |
14025 | } |
14026 | if (obj4) { | |
14027 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14028 | if (!SWIG_IsOK(ecode5)) { | |
14029 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14030 | } | |
14031 | arg5 = static_cast< wxFontEncoding >(val5); | |
14032 | } | |
14033 | { | |
14034 | if (!wxPyCheckForApp()) SWIG_fail; | |
14035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14036 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14037 | wxPyEndAllowThreads(__tstate); | |
14038 | if (PyErr_Occurred()) SWIG_fail; | |
14039 | } | |
14040 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14041 | { | |
14042 | if (temp4) | |
14043 | delete arg4; | |
14044 | } | |
14045 | return resultobj; | |
14046 | fail: | |
14047 | { | |
14048 | if (temp4) | |
14049 | delete arg4; | |
14050 | } | |
14051 | return NULL; | |
14052 | } | |
14053 | ||
14054 | ||
14055 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14056 | PyObject *resultobj = 0; | |
14057 | wxSize *arg1 = 0 ; | |
14058 | int arg2 ; | |
14059 | int arg3 ; | |
14060 | int arg4 ; | |
14061 | bool arg5 = (bool) false ; | |
14062 | wxString const &arg6_defvalue = wxEmptyString ; | |
14063 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14064 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14065 | wxFont *result = 0 ; | |
14066 | wxSize temp1 ; | |
14067 | int val2 ; | |
14068 | int ecode2 = 0 ; | |
14069 | int val3 ; | |
14070 | int ecode3 = 0 ; | |
14071 | int val4 ; | |
14072 | int ecode4 = 0 ; | |
14073 | bool val5 ; | |
14074 | int ecode5 = 0 ; | |
14075 | bool temp6 = false ; | |
14076 | int val7 ; | |
14077 | int ecode7 = 0 ; | |
14078 | PyObject * obj0 = 0 ; | |
14079 | PyObject * obj1 = 0 ; | |
14080 | PyObject * obj2 = 0 ; | |
14081 | PyObject * obj3 = 0 ; | |
14082 | PyObject * obj4 = 0 ; | |
14083 | PyObject * obj5 = 0 ; | |
14084 | PyObject * obj6 = 0 ; | |
14085 | char * kwnames[] = { | |
14086 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
14087 | }; | |
14088 | ||
14089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14090 | { | |
14091 | arg1 = &temp1; | |
14092 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14093 | } | |
14094 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14095 | if (!SWIG_IsOK(ecode2)) { | |
14096 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
14097 | } | |
14098 | arg2 = static_cast< int >(val2); | |
14099 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14100 | if (!SWIG_IsOK(ecode3)) { | |
14101 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14102 | } | |
14103 | arg3 = static_cast< int >(val3); | |
14104 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14105 | if (!SWIG_IsOK(ecode4)) { | |
14106 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
14107 | } | |
14108 | arg4 = static_cast< int >(val4); | |
14109 | if (obj4) { | |
14110 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14111 | if (!SWIG_IsOK(ecode5)) { | |
14112 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
14113 | } | |
14114 | arg5 = static_cast< bool >(val5); | |
14115 | } | |
14116 | if (obj5) { | |
d14a1e28 | 14117 | { |
0085ce49 RD |
14118 | arg6 = wxString_in_helper(obj5); |
14119 | if (arg6 == NULL) SWIG_fail; | |
14120 | temp6 = true; | |
d14a1e28 | 14121 | } |
0085ce49 RD |
14122 | } |
14123 | if (obj6) { | |
14124 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14125 | if (!SWIG_IsOK(ecode7)) { | |
14126 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14127 | } | |
14128 | arg7 = static_cast< wxFontEncoding >(val7); | |
14129 | } | |
14130 | { | |
14131 | if (!wxPyCheckForApp()) SWIG_fail; | |
14132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14133 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14134 | wxPyEndAllowThreads(__tstate); | |
14135 | if (PyErr_Occurred()) SWIG_fail; | |
14136 | } | |
14137 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14138 | { | |
14139 | if (temp6) | |
14140 | delete arg6; | |
14141 | } | |
14142 | return resultobj; | |
14143 | fail: | |
14144 | { | |
14145 | if (temp6) | |
14146 | delete arg6; | |
14147 | } | |
14148 | return NULL; | |
14149 | } | |
14150 | ||
14151 | ||
14152 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14153 | PyObject *resultobj = 0; | |
14154 | wxSize *arg1 = 0 ; | |
14155 | wxFontFamily arg2 ; | |
14156 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14157 | wxString const &arg4_defvalue = wxEmptyString ; | |
14158 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14159 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14160 | wxFont *result = 0 ; | |
14161 | wxSize temp1 ; | |
14162 | int val2 ; | |
14163 | int ecode2 = 0 ; | |
14164 | int val3 ; | |
14165 | int ecode3 = 0 ; | |
14166 | bool temp4 = false ; | |
14167 | int val5 ; | |
14168 | int ecode5 = 0 ; | |
14169 | PyObject * obj0 = 0 ; | |
14170 | PyObject * obj1 = 0 ; | |
14171 | PyObject * obj2 = 0 ; | |
14172 | PyObject * obj3 = 0 ; | |
14173 | PyObject * obj4 = 0 ; | |
14174 | char * kwnames[] = { | |
14175 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14176 | }; | |
14177 | ||
14178 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14179 | { | |
14180 | arg1 = &temp1; | |
14181 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14182 | } | |
14183 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14184 | if (!SWIG_IsOK(ecode2)) { | |
14185 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14186 | } | |
14187 | arg2 = static_cast< wxFontFamily >(val2); | |
14188 | if (obj2) { | |
14189 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14190 | if (!SWIG_IsOK(ecode3)) { | |
14191 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14192 | } | |
14193 | arg3 = static_cast< int >(val3); | |
14194 | } | |
14195 | if (obj3) { | |
093d3ff1 | 14196 | { |
0085ce49 RD |
14197 | arg4 = wxString_in_helper(obj3); |
14198 | if (arg4 == NULL) SWIG_fail; | |
14199 | temp4 = true; | |
093d3ff1 | 14200 | } |
0085ce49 RD |
14201 | } |
14202 | if (obj4) { | |
14203 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14204 | if (!SWIG_IsOK(ecode5)) { | |
14205 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14206 | } | |
14207 | arg5 = static_cast< wxFontEncoding >(val5); | |
14208 | } | |
14209 | { | |
14210 | if (!wxPyCheckForApp()) SWIG_fail; | |
14211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14212 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14213 | wxPyEndAllowThreads(__tstate); | |
14214 | if (PyErr_Occurred()) SWIG_fail; | |
14215 | } | |
14216 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14217 | { | |
14218 | if (temp4) | |
14219 | delete arg4; | |
14220 | } | |
14221 | return resultobj; | |
14222 | fail: | |
14223 | { | |
14224 | if (temp4) | |
14225 | delete arg4; | |
14226 | } | |
14227 | return NULL; | |
d14a1e28 RD |
14228 | } |
14229 | ||
14230 | ||
b39fe951 | 14231 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
14232 | PyObject *resultobj = 0; |
14233 | wxFont *arg1 = (wxFont *) 0 ; | |
14234 | bool result; | |
14235 | void *argp1 = 0 ; | |
14236 | int res1 = 0 ; | |
14237 | PyObject *swig_obj[1] ; | |
14238 | ||
14239 | if (!args) SWIG_fail; | |
14240 | swig_obj[0] = args; | |
14241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14242 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
0085ce49 RD |
14244 | } |
14245 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14246 | { | |
14247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14248 | result = (bool)((wxFont const *)arg1)->IsOk(); |
0085ce49 RD |
14249 | wxPyEndAllowThreads(__tstate); |
14250 | if (PyErr_Occurred()) SWIG_fail; | |
14251 | } | |
14252 | { | |
14253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14254 | } | |
14255 | return resultobj; | |
14256 | fail: | |
14257 | return NULL; | |
14258 | } | |
14259 | ||
14260 | ||
14261 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14262 | PyObject *resultobj = 0; | |
14263 | wxFont *arg1 = (wxFont *) 0 ; | |
14264 | wxFont *arg2 = (wxFont *) 0 ; | |
14265 | bool result; | |
14266 | void *argp1 = 0 ; | |
14267 | int res1 = 0 ; | |
14268 | void *argp2 = 0 ; | |
14269 | int res2 = 0 ; | |
14270 | PyObject * obj0 = 0 ; | |
14271 | PyObject * obj1 = 0 ; | |
14272 | char * kwnames[] = { | |
14273 | (char *) "self",(char *) "other", NULL | |
14274 | }; | |
14275 | ||
14276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14278 | if (!SWIG_IsOK(res1)) { | |
14279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14280 | } | |
14281 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14282 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14283 | if (!SWIG_IsOK(res2)) { | |
14284 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14285 | } | |
14286 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14287 | { | |
14288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14289 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14290 | wxPyEndAllowThreads(__tstate); | |
14291 | if (PyErr_Occurred()) SWIG_fail; | |
14292 | } | |
14293 | { | |
14294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14295 | } | |
14296 | return resultobj; | |
14297 | fail: | |
14298 | return NULL; | |
14299 | } | |
14300 | ||
14301 | ||
14302 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14303 | PyObject *resultobj = 0; | |
14304 | wxFont *arg1 = (wxFont *) 0 ; | |
14305 | wxFont *arg2 = (wxFont *) 0 ; | |
14306 | bool result; | |
14307 | void *argp1 = 0 ; | |
14308 | int res1 = 0 ; | |
14309 | void *argp2 = 0 ; | |
14310 | int res2 = 0 ; | |
14311 | PyObject * obj0 = 0 ; | |
14312 | PyObject * obj1 = 0 ; | |
14313 | char * kwnames[] = { | |
14314 | (char *) "self",(char *) "other", NULL | |
14315 | }; | |
14316 | ||
14317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14319 | if (!SWIG_IsOK(res1)) { | |
14320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14321 | } | |
14322 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14323 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14324 | if (!SWIG_IsOK(res2)) { | |
14325 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14326 | } | |
14327 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14328 | { | |
14329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14330 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14331 | wxPyEndAllowThreads(__tstate); | |
14332 | if (PyErr_Occurred()) SWIG_fail; | |
14333 | } | |
14334 | { | |
14335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14336 | } | |
14337 | return resultobj; | |
14338 | fail: | |
14339 | return NULL; | |
d14a1e28 RD |
14340 | } |
14341 | ||
14342 | ||
0085ce49 RD |
14343 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14344 | PyObject *resultobj = 0; | |
14345 | wxFont *arg1 = (wxFont *) 0 ; | |
14346 | int result; | |
14347 | void *argp1 = 0 ; | |
14348 | int res1 = 0 ; | |
14349 | PyObject *swig_obj[1] ; | |
14350 | ||
14351 | if (!args) SWIG_fail; | |
14352 | swig_obj[0] = args; | |
14353 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14354 | if (!SWIG_IsOK(res1)) { | |
14355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14356 | } | |
14357 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14358 | { | |
14359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14360 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
14361 | wxPyEndAllowThreads(__tstate); | |
14362 | if (PyErr_Occurred()) SWIG_fail; | |
14363 | } | |
14364 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14365 | return resultobj; | |
14366 | fail: | |
14367 | return NULL; | |
d14a1e28 RD |
14368 | } |
14369 | ||
14370 | ||
0085ce49 RD |
14371 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14372 | PyObject *resultobj = 0; | |
14373 | wxFont *arg1 = (wxFont *) 0 ; | |
14374 | wxSize result; | |
14375 | void *argp1 = 0 ; | |
14376 | int res1 = 0 ; | |
14377 | PyObject *swig_obj[1] ; | |
14378 | ||
14379 | if (!args) SWIG_fail; | |
14380 | swig_obj[0] = args; | |
14381 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14382 | if (!SWIG_IsOK(res1)) { | |
14383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14384 | } | |
14385 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14386 | { | |
14387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14388 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
14389 | wxPyEndAllowThreads(__tstate); | |
14390 | if (PyErr_Occurred()) SWIG_fail; | |
14391 | } | |
14392 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
14393 | return resultobj; | |
14394 | fail: | |
14395 | return NULL; | |
d14a1e28 RD |
14396 | } |
14397 | ||
14398 | ||
0085ce49 RD |
14399 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14400 | PyObject *resultobj = 0; | |
14401 | wxFont *arg1 = (wxFont *) 0 ; | |
14402 | bool result; | |
14403 | void *argp1 = 0 ; | |
14404 | int res1 = 0 ; | |
14405 | PyObject *swig_obj[1] ; | |
14406 | ||
14407 | if (!args) SWIG_fail; | |
14408 | swig_obj[0] = args; | |
14409 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14410 | if (!SWIG_IsOK(res1)) { | |
14411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14412 | } | |
14413 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14414 | { | |
14415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14416 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
14417 | wxPyEndAllowThreads(__tstate); | |
14418 | if (PyErr_Occurred()) SWIG_fail; | |
14419 | } | |
14420 | { | |
14421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14422 | } | |
14423 | return resultobj; | |
14424 | fail: | |
14425 | return NULL; | |
d14a1e28 RD |
14426 | } |
14427 | ||
14428 | ||
0085ce49 RD |
14429 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14430 | PyObject *resultobj = 0; | |
14431 | wxFont *arg1 = (wxFont *) 0 ; | |
14432 | int result; | |
14433 | void *argp1 = 0 ; | |
14434 | int res1 = 0 ; | |
14435 | PyObject *swig_obj[1] ; | |
14436 | ||
14437 | if (!args) SWIG_fail; | |
14438 | swig_obj[0] = args; | |
14439 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14440 | if (!SWIG_IsOK(res1)) { | |
14441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14442 | } | |
14443 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14444 | { | |
14445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14446 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
14447 | wxPyEndAllowThreads(__tstate); | |
14448 | if (PyErr_Occurred()) SWIG_fail; | |
14449 | } | |
14450 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14451 | return resultobj; | |
14452 | fail: | |
14453 | return NULL; | |
d14a1e28 RD |
14454 | } |
14455 | ||
14456 | ||
0085ce49 RD |
14457 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14458 | PyObject *resultobj = 0; | |
14459 | wxFont *arg1 = (wxFont *) 0 ; | |
14460 | int result; | |
14461 | void *argp1 = 0 ; | |
14462 | int res1 = 0 ; | |
14463 | PyObject *swig_obj[1] ; | |
14464 | ||
14465 | if (!args) SWIG_fail; | |
14466 | swig_obj[0] = args; | |
14467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14468 | if (!SWIG_IsOK(res1)) { | |
14469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14470 | } | |
14471 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14472 | { | |
14473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14474 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
14475 | wxPyEndAllowThreads(__tstate); | |
14476 | if (PyErr_Occurred()) SWIG_fail; | |
14477 | } | |
14478 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14479 | return resultobj; | |
14480 | fail: | |
14481 | return NULL; | |
d14a1e28 RD |
14482 | } |
14483 | ||
14484 | ||
0085ce49 RD |
14485 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14486 | PyObject *resultobj = 0; | |
14487 | wxFont *arg1 = (wxFont *) 0 ; | |
14488 | int result; | |
14489 | void *argp1 = 0 ; | |
14490 | int res1 = 0 ; | |
14491 | PyObject *swig_obj[1] ; | |
14492 | ||
14493 | if (!args) SWIG_fail; | |
14494 | swig_obj[0] = args; | |
14495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14496 | if (!SWIG_IsOK(res1)) { | |
14497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14498 | } | |
14499 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14500 | { | |
14501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14502 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
14503 | wxPyEndAllowThreads(__tstate); | |
14504 | if (PyErr_Occurred()) SWIG_fail; | |
14505 | } | |
14506 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14507 | return resultobj; | |
14508 | fail: | |
14509 | return NULL; | |
d14a1e28 RD |
14510 | } |
14511 | ||
14512 | ||
0085ce49 RD |
14513 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14514 | PyObject *resultobj = 0; | |
14515 | wxFont *arg1 = (wxFont *) 0 ; | |
14516 | bool result; | |
14517 | void *argp1 = 0 ; | |
14518 | int res1 = 0 ; | |
14519 | PyObject *swig_obj[1] ; | |
14520 | ||
14521 | if (!args) SWIG_fail; | |
14522 | swig_obj[0] = args; | |
14523 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14524 | if (!SWIG_IsOK(res1)) { | |
14525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14526 | } | |
14527 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14528 | { | |
14529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14530 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
14531 | wxPyEndAllowThreads(__tstate); | |
14532 | if (PyErr_Occurred()) SWIG_fail; | |
14533 | } | |
14534 | { | |
14535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14536 | } | |
14537 | return resultobj; | |
14538 | fail: | |
14539 | return NULL; | |
d14a1e28 RD |
14540 | } |
14541 | ||
14542 | ||
0085ce49 RD |
14543 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14544 | PyObject *resultobj = 0; | |
14545 | wxFont *arg1 = (wxFont *) 0 ; | |
14546 | wxString result; | |
14547 | void *argp1 = 0 ; | |
14548 | int res1 = 0 ; | |
14549 | PyObject *swig_obj[1] ; | |
14550 | ||
14551 | if (!args) SWIG_fail; | |
14552 | swig_obj[0] = args; | |
14553 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14554 | if (!SWIG_IsOK(res1)) { | |
14555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14556 | } | |
14557 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14558 | { | |
14559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14560 | result = ((wxFont const *)arg1)->GetFaceName(); | |
14561 | wxPyEndAllowThreads(__tstate); | |
14562 | if (PyErr_Occurred()) SWIG_fail; | |
14563 | } | |
14564 | { | |
14565 | #if wxUSE_UNICODE | |
14566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14567 | #else | |
14568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14569 | #endif | |
14570 | } | |
14571 | return resultobj; | |
14572 | fail: | |
14573 | return NULL; | |
d14a1e28 RD |
14574 | } |
14575 | ||
14576 | ||
0085ce49 RD |
14577 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14578 | PyObject *resultobj = 0; | |
14579 | wxFont *arg1 = (wxFont *) 0 ; | |
14580 | wxFontEncoding result; | |
14581 | void *argp1 = 0 ; | |
14582 | int res1 = 0 ; | |
14583 | PyObject *swig_obj[1] ; | |
14584 | ||
14585 | if (!args) SWIG_fail; | |
14586 | swig_obj[0] = args; | |
14587 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14588 | if (!SWIG_IsOK(res1)) { | |
14589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14590 | } | |
14591 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14592 | { | |
14593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14594 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
14595 | wxPyEndAllowThreads(__tstate); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
14597 | } | |
14598 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14599 | return resultobj; | |
14600 | fail: | |
14601 | return NULL; | |
d14a1e28 RD |
14602 | } |
14603 | ||
14604 | ||
0085ce49 RD |
14605 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14606 | PyObject *resultobj = 0; | |
14607 | wxFont *arg1 = (wxFont *) 0 ; | |
14608 | wxNativeFontInfo *result = 0 ; | |
14609 | void *argp1 = 0 ; | |
14610 | int res1 = 0 ; | |
14611 | PyObject *swig_obj[1] ; | |
14612 | ||
14613 | if (!args) SWIG_fail; | |
14614 | swig_obj[0] = args; | |
14615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14616 | if (!SWIG_IsOK(res1)) { | |
14617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14618 | } | |
14619 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14620 | { | |
14621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14622 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
14623 | wxPyEndAllowThreads(__tstate); | |
14624 | if (PyErr_Occurred()) SWIG_fail; | |
14625 | } | |
14626 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
14627 | return resultobj; | |
14628 | fail: | |
14629 | return NULL; | |
d14a1e28 RD |
14630 | } |
14631 | ||
14632 | ||
0085ce49 RD |
14633 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14634 | PyObject *resultobj = 0; | |
14635 | wxFont *arg1 = (wxFont *) 0 ; | |
14636 | bool result; | |
14637 | void *argp1 = 0 ; | |
14638 | int res1 = 0 ; | |
14639 | PyObject *swig_obj[1] ; | |
14640 | ||
14641 | if (!args) SWIG_fail; | |
14642 | swig_obj[0] = args; | |
14643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14644 | if (!SWIG_IsOK(res1)) { | |
14645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14646 | } | |
14647 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14648 | { | |
14649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14650 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
14651 | wxPyEndAllowThreads(__tstate); | |
14652 | if (PyErr_Occurred()) SWIG_fail; | |
14653 | } | |
14654 | { | |
14655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14656 | } | |
14657 | return resultobj; | |
14658 | fail: | |
14659 | return NULL; | |
d14a1e28 RD |
14660 | } |
14661 | ||
14662 | ||
0085ce49 RD |
14663 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14664 | PyObject *resultobj = 0; | |
14665 | wxFont *arg1 = (wxFont *) 0 ; | |
14666 | wxString result; | |
14667 | void *argp1 = 0 ; | |
14668 | int res1 = 0 ; | |
14669 | PyObject *swig_obj[1] ; | |
14670 | ||
14671 | if (!args) SWIG_fail; | |
14672 | swig_obj[0] = args; | |
14673 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14674 | if (!SWIG_IsOK(res1)) { | |
14675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14676 | } | |
14677 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14678 | { | |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14680 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
14681 | wxPyEndAllowThreads(__tstate); | |
14682 | if (PyErr_Occurred()) SWIG_fail; | |
14683 | } | |
14684 | { | |
14685 | #if wxUSE_UNICODE | |
14686 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14687 | #else | |
14688 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14689 | #endif | |
14690 | } | |
14691 | return resultobj; | |
14692 | fail: | |
14693 | return NULL; | |
d14a1e28 RD |
14694 | } |
14695 | ||
14696 | ||
0085ce49 RD |
14697 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14698 | PyObject *resultobj = 0; | |
14699 | wxFont *arg1 = (wxFont *) 0 ; | |
14700 | wxString result; | |
14701 | void *argp1 = 0 ; | |
14702 | int res1 = 0 ; | |
14703 | PyObject *swig_obj[1] ; | |
14704 | ||
14705 | if (!args) SWIG_fail; | |
14706 | swig_obj[0] = args; | |
14707 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14708 | if (!SWIG_IsOK(res1)) { | |
14709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14710 | } | |
14711 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14712 | { | |
14713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14714 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
14715 | wxPyEndAllowThreads(__tstate); | |
14716 | if (PyErr_Occurred()) SWIG_fail; | |
14717 | } | |
14718 | { | |
14719 | #if wxUSE_UNICODE | |
14720 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14721 | #else | |
14722 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14723 | #endif | |
14724 | } | |
14725 | return resultobj; | |
14726 | fail: | |
14727 | return NULL; | |
14728 | } | |
14729 | ||
14730 | ||
14731 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14732 | PyObject *resultobj = 0; | |
14733 | wxFont *arg1 = (wxFont *) 0 ; | |
14734 | int arg2 ; | |
14735 | void *argp1 = 0 ; | |
14736 | int res1 = 0 ; | |
14737 | int val2 ; | |
14738 | int ecode2 = 0 ; | |
14739 | PyObject * obj0 = 0 ; | |
14740 | PyObject * obj1 = 0 ; | |
14741 | char * kwnames[] = { | |
14742 | (char *) "self",(char *) "pointSize", NULL | |
14743 | }; | |
14744 | ||
14745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14747 | if (!SWIG_IsOK(res1)) { | |
14748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14749 | } | |
14750 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14751 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14752 | if (!SWIG_IsOK(ecode2)) { | |
14753 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
14754 | } | |
14755 | arg2 = static_cast< int >(val2); | |
14756 | { | |
14757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14758 | (arg1)->SetPointSize(arg2); | |
14759 | wxPyEndAllowThreads(__tstate); | |
14760 | if (PyErr_Occurred()) SWIG_fail; | |
14761 | } | |
14762 | resultobj = SWIG_Py_Void(); | |
14763 | return resultobj; | |
14764 | fail: | |
14765 | return NULL; | |
14766 | } | |
14767 | ||
14768 | ||
14769 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14770 | PyObject *resultobj = 0; | |
14771 | wxFont *arg1 = (wxFont *) 0 ; | |
14772 | wxSize *arg2 = 0 ; | |
14773 | void *argp1 = 0 ; | |
14774 | int res1 = 0 ; | |
14775 | wxSize temp2 ; | |
14776 | PyObject * obj0 = 0 ; | |
14777 | PyObject * obj1 = 0 ; | |
14778 | char * kwnames[] = { | |
14779 | (char *) "self",(char *) "pixelSize", NULL | |
14780 | }; | |
14781 | ||
14782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14784 | if (!SWIG_IsOK(res1)) { | |
14785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14786 | } | |
14787 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14788 | { | |
14789 | arg2 = &temp2; | |
14790 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14791 | } | |
14792 | { | |
14793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14794 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
14795 | wxPyEndAllowThreads(__tstate); | |
14796 | if (PyErr_Occurred()) SWIG_fail; | |
14797 | } | |
14798 | resultobj = SWIG_Py_Void(); | |
14799 | return resultobj; | |
14800 | fail: | |
14801 | return NULL; | |
14802 | } | |
14803 | ||
14804 | ||
14805 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14806 | PyObject *resultobj = 0; | |
14807 | wxFont *arg1 = (wxFont *) 0 ; | |
14808 | int arg2 ; | |
14809 | void *argp1 = 0 ; | |
14810 | int res1 = 0 ; | |
14811 | int val2 ; | |
14812 | int ecode2 = 0 ; | |
14813 | PyObject * obj0 = 0 ; | |
14814 | PyObject * obj1 = 0 ; | |
14815 | char * kwnames[] = { | |
14816 | (char *) "self",(char *) "family", NULL | |
14817 | }; | |
14818 | ||
14819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
14820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14821 | if (!SWIG_IsOK(res1)) { | |
14822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14823 | } | |
14824 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14825 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14826 | if (!SWIG_IsOK(ecode2)) { | |
14827 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
14828 | } | |
14829 | arg2 = static_cast< int >(val2); | |
14830 | { | |
14831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14832 | (arg1)->SetFamily(arg2); | |
14833 | wxPyEndAllowThreads(__tstate); | |
14834 | if (PyErr_Occurred()) SWIG_fail; | |
14835 | } | |
14836 | resultobj = SWIG_Py_Void(); | |
14837 | return resultobj; | |
14838 | fail: | |
14839 | return NULL; | |
14840 | } | |
14841 | ||
14842 | ||
14843 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14844 | PyObject *resultobj = 0; | |
14845 | wxFont *arg1 = (wxFont *) 0 ; | |
14846 | int arg2 ; | |
14847 | void *argp1 = 0 ; | |
14848 | int res1 = 0 ; | |
14849 | int val2 ; | |
14850 | int ecode2 = 0 ; | |
14851 | PyObject * obj0 = 0 ; | |
14852 | PyObject * obj1 = 0 ; | |
14853 | char * kwnames[] = { | |
14854 | (char *) "self",(char *) "style", NULL | |
14855 | }; | |
14856 | ||
14857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14859 | if (!SWIG_IsOK(res1)) { | |
14860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14861 | } | |
14862 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14863 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14864 | if (!SWIG_IsOK(ecode2)) { | |
14865 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
14866 | } | |
14867 | arg2 = static_cast< int >(val2); | |
14868 | { | |
14869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14870 | (arg1)->SetStyle(arg2); | |
14871 | wxPyEndAllowThreads(__tstate); | |
14872 | if (PyErr_Occurred()) SWIG_fail; | |
14873 | } | |
14874 | resultobj = SWIG_Py_Void(); | |
14875 | return resultobj; | |
14876 | fail: | |
14877 | return NULL; | |
14878 | } | |
14879 | ||
14880 | ||
14881 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14882 | PyObject *resultobj = 0; | |
14883 | wxFont *arg1 = (wxFont *) 0 ; | |
14884 | int arg2 ; | |
14885 | void *argp1 = 0 ; | |
14886 | int res1 = 0 ; | |
14887 | int val2 ; | |
14888 | int ecode2 = 0 ; | |
14889 | PyObject * obj0 = 0 ; | |
14890 | PyObject * obj1 = 0 ; | |
14891 | char * kwnames[] = { | |
14892 | (char *) "self",(char *) "weight", NULL | |
14893 | }; | |
14894 | ||
14895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
14896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14897 | if (!SWIG_IsOK(res1)) { | |
14898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14899 | } | |
14900 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14901 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14902 | if (!SWIG_IsOK(ecode2)) { | |
14903 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
14904 | } | |
14905 | arg2 = static_cast< int >(val2); | |
14906 | { | |
14907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14908 | (arg1)->SetWeight(arg2); | |
14909 | wxPyEndAllowThreads(__tstate); | |
14910 | if (PyErr_Occurred()) SWIG_fail; | |
14911 | } | |
14912 | resultobj = SWIG_Py_Void(); | |
14913 | return resultobj; | |
14914 | fail: | |
14915 | return NULL; | |
14916 | } | |
14917 | ||
14918 | ||
14919 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14920 | PyObject *resultobj = 0; | |
14921 | wxFont *arg1 = (wxFont *) 0 ; | |
14922 | wxString *arg2 = 0 ; | |
704eda0c | 14923 | bool result; |
0085ce49 RD |
14924 | void *argp1 = 0 ; |
14925 | int res1 = 0 ; | |
14926 | bool temp2 = false ; | |
14927 | PyObject * obj0 = 0 ; | |
14928 | PyObject * obj1 = 0 ; | |
14929 | char * kwnames[] = { | |
14930 | (char *) "self",(char *) "faceName", NULL | |
14931 | }; | |
14932 | ||
14933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
14934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14935 | if (!SWIG_IsOK(res1)) { | |
14936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14937 | } | |
14938 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14939 | { | |
14940 | arg2 = wxString_in_helper(obj1); | |
14941 | if (arg2 == NULL) SWIG_fail; | |
14942 | temp2 = true; | |
14943 | } | |
14944 | { | |
14945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14946 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
0085ce49 RD |
14947 | wxPyEndAllowThreads(__tstate); |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
14949 | } | |
704eda0c RD |
14950 | { |
14951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14952 | } | |
0085ce49 RD |
14953 | { |
14954 | if (temp2) | |
14955 | delete arg2; | |
14956 | } | |
14957 | return resultobj; | |
14958 | fail: | |
14959 | { | |
14960 | if (temp2) | |
14961 | delete arg2; | |
14962 | } | |
14963 | return NULL; | |
14964 | } | |
14965 | ||
14966 | ||
14967 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14968 | PyObject *resultobj = 0; | |
14969 | wxFont *arg1 = (wxFont *) 0 ; | |
14970 | bool arg2 ; | |
14971 | void *argp1 = 0 ; | |
14972 | int res1 = 0 ; | |
14973 | bool val2 ; | |
14974 | int ecode2 = 0 ; | |
14975 | PyObject * obj0 = 0 ; | |
14976 | PyObject * obj1 = 0 ; | |
14977 | char * kwnames[] = { | |
14978 | (char *) "self",(char *) "underlined", NULL | |
14979 | }; | |
14980 | ||
14981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
14982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14983 | if (!SWIG_IsOK(res1)) { | |
14984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14985 | } | |
14986 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14987 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
14988 | if (!SWIG_IsOK(ecode2)) { | |
14989 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
14990 | } | |
14991 | arg2 = static_cast< bool >(val2); | |
14992 | { | |
14993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14994 | (arg1)->SetUnderlined(arg2); | |
14995 | wxPyEndAllowThreads(__tstate); | |
14996 | if (PyErr_Occurred()) SWIG_fail; | |
14997 | } | |
14998 | resultobj = SWIG_Py_Void(); | |
14999 | return resultobj; | |
15000 | fail: | |
15001 | return NULL; | |
15002 | } | |
15003 | ||
15004 | ||
15005 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15006 | PyObject *resultobj = 0; | |
15007 | wxFont *arg1 = (wxFont *) 0 ; | |
15008 | wxFontEncoding arg2 ; | |
15009 | void *argp1 = 0 ; | |
15010 | int res1 = 0 ; | |
15011 | int val2 ; | |
15012 | int ecode2 = 0 ; | |
15013 | PyObject * obj0 = 0 ; | |
15014 | PyObject * obj1 = 0 ; | |
15015 | char * kwnames[] = { | |
15016 | (char *) "self",(char *) "encoding", NULL | |
15017 | }; | |
15018 | ||
15019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
15020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15021 | if (!SWIG_IsOK(res1)) { | |
15022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15023 | } | |
15024 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15025 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15026 | if (!SWIG_IsOK(ecode2)) { | |
15027 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15028 | } | |
15029 | arg2 = static_cast< wxFontEncoding >(val2); | |
15030 | { | |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | (arg1)->SetEncoding(arg2); | |
15033 | wxPyEndAllowThreads(__tstate); | |
15034 | if (PyErr_Occurred()) SWIG_fail; | |
15035 | } | |
15036 | resultobj = SWIG_Py_Void(); | |
15037 | return resultobj; | |
15038 | fail: | |
15039 | return NULL; | |
15040 | } | |
15041 | ||
15042 | ||
15043 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15044 | PyObject *resultobj = 0; | |
15045 | wxFont *arg1 = (wxFont *) 0 ; | |
15046 | wxNativeFontInfo *arg2 = 0 ; | |
15047 | void *argp1 = 0 ; | |
15048 | int res1 = 0 ; | |
15049 | void *argp2 = 0 ; | |
15050 | int res2 = 0 ; | |
15051 | PyObject * obj0 = 0 ; | |
15052 | PyObject * obj1 = 0 ; | |
15053 | char * kwnames[] = { | |
15054 | (char *) "self",(char *) "info", NULL | |
15055 | }; | |
15056 | ||
15057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
15058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15059 | if (!SWIG_IsOK(res1)) { | |
15060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15061 | } | |
15062 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15063 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
15064 | if (!SWIG_IsOK(res2)) { | |
15065 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15066 | } | |
15067 | if (!argp2) { | |
15068 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15069 | } | |
15070 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
15071 | { | |
15072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15073 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
15074 | wxPyEndAllowThreads(__tstate); | |
15075 | if (PyErr_Occurred()) SWIG_fail; | |
15076 | } | |
15077 | resultobj = SWIG_Py_Void(); | |
15078 | return resultobj; | |
15079 | fail: | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
15084 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15085 | PyObject *resultobj = 0; | |
15086 | wxFont *arg1 = (wxFont *) 0 ; | |
15087 | wxString *arg2 = 0 ; | |
704eda0c | 15088 | bool result; |
0085ce49 RD |
15089 | void *argp1 = 0 ; |
15090 | int res1 = 0 ; | |
15091 | bool temp2 = false ; | |
15092 | PyObject * obj0 = 0 ; | |
15093 | PyObject * obj1 = 0 ; | |
15094 | char * kwnames[] = { | |
15095 | (char *) "self",(char *) "info", NULL | |
15096 | }; | |
15097 | ||
15098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15100 | if (!SWIG_IsOK(res1)) { | |
15101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15102 | } | |
15103 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15104 | { | |
15105 | arg2 = wxString_in_helper(obj1); | |
15106 | if (arg2 == NULL) SWIG_fail; | |
15107 | temp2 = true; | |
15108 | } | |
15109 | { | |
15110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15111 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
0085ce49 RD |
15112 | wxPyEndAllowThreads(__tstate); |
15113 | if (PyErr_Occurred()) SWIG_fail; | |
15114 | } | |
704eda0c RD |
15115 | { |
15116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15117 | } | |
0085ce49 RD |
15118 | { |
15119 | if (temp2) | |
15120 | delete arg2; | |
15121 | } | |
15122 | return resultobj; | |
15123 | fail: | |
15124 | { | |
15125 | if (temp2) | |
15126 | delete arg2; | |
15127 | } | |
15128 | return NULL; | |
d14a1e28 RD |
15129 | } |
15130 | ||
15131 | ||
0085ce49 RD |
15132 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15133 | PyObject *resultobj = 0; | |
15134 | wxFont *arg1 = (wxFont *) 0 ; | |
15135 | wxString *arg2 = 0 ; | |
704eda0c | 15136 | bool result; |
0085ce49 RD |
15137 | void *argp1 = 0 ; |
15138 | int res1 = 0 ; | |
15139 | bool temp2 = false ; | |
15140 | PyObject * obj0 = 0 ; | |
15141 | PyObject * obj1 = 0 ; | |
15142 | char * kwnames[] = { | |
15143 | (char *) "self",(char *) "info", NULL | |
15144 | }; | |
15145 | ||
15146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
15147 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15148 | if (!SWIG_IsOK(res1)) { | |
15149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15150 | } | |
15151 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15152 | { | |
15153 | arg2 = wxString_in_helper(obj1); | |
15154 | if (arg2 == NULL) SWIG_fail; | |
15155 | temp2 = true; | |
15156 | } | |
15157 | { | |
15158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15159 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
0085ce49 RD |
15160 | wxPyEndAllowThreads(__tstate); |
15161 | if (PyErr_Occurred()) SWIG_fail; | |
15162 | } | |
704eda0c RD |
15163 | { |
15164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15165 | } | |
0085ce49 RD |
15166 | { |
15167 | if (temp2) | |
15168 | delete arg2; | |
15169 | } | |
15170 | return resultobj; | |
15171 | fail: | |
15172 | { | |
15173 | if (temp2) | |
15174 | delete arg2; | |
15175 | } | |
15176 | return NULL; | |
d14a1e28 RD |
15177 | } |
15178 | ||
15179 | ||
0085ce49 RD |
15180 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15181 | PyObject *resultobj = 0; | |
15182 | wxFont *arg1 = (wxFont *) 0 ; | |
15183 | wxString result; | |
15184 | void *argp1 = 0 ; | |
15185 | int res1 = 0 ; | |
15186 | PyObject *swig_obj[1] ; | |
15187 | ||
15188 | if (!args) SWIG_fail; | |
15189 | swig_obj[0] = args; | |
15190 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15191 | if (!SWIG_IsOK(res1)) { | |
15192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15193 | } | |
15194 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15198 | wxPyEndAllowThreads(__tstate); | |
15199 | if (PyErr_Occurred()) SWIG_fail; | |
15200 | } | |
15201 | { | |
15202 | #if wxUSE_UNICODE | |
15203 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15204 | #else | |
15205 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15206 | #endif | |
15207 | } | |
15208 | return resultobj; | |
15209 | fail: | |
15210 | return NULL; | |
d14a1e28 RD |
15211 | } |
15212 | ||
15213 | ||
0085ce49 RD |
15214 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15215 | PyObject *resultobj = 0; | |
15216 | wxFont *arg1 = (wxFont *) 0 ; | |
15217 | wxString result; | |
15218 | void *argp1 = 0 ; | |
15219 | int res1 = 0 ; | |
15220 | PyObject *swig_obj[1] ; | |
15221 | ||
15222 | if (!args) SWIG_fail; | |
15223 | swig_obj[0] = args; | |
15224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15225 | if (!SWIG_IsOK(res1)) { | |
15226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15227 | } | |
15228 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15229 | { | |
15230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15231 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15232 | wxPyEndAllowThreads(__tstate); | |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
15234 | } | |
15235 | { | |
15236 | #if wxUSE_UNICODE | |
15237 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15238 | #else | |
15239 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15240 | #endif | |
15241 | } | |
15242 | return resultobj; | |
15243 | fail: | |
15244 | return NULL; | |
d14a1e28 RD |
15245 | } |
15246 | ||
15247 | ||
0085ce49 RD |
15248 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15249 | PyObject *resultobj = 0; | |
15250 | wxFont *arg1 = (wxFont *) 0 ; | |
15251 | wxString result; | |
15252 | void *argp1 = 0 ; | |
15253 | int res1 = 0 ; | |
15254 | PyObject *swig_obj[1] ; | |
15255 | ||
15256 | if (!args) SWIG_fail; | |
15257 | swig_obj[0] = args; | |
15258 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15259 | if (!SWIG_IsOK(res1)) { | |
15260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15261 | } | |
15262 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15263 | { | |
15264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15265 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15266 | wxPyEndAllowThreads(__tstate); | |
15267 | if (PyErr_Occurred()) SWIG_fail; | |
15268 | } | |
15269 | { | |
d14a1e28 | 15270 | #if wxUSE_UNICODE |
0085ce49 | 15271 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15272 | #else |
0085ce49 | 15273 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15274 | #endif |
0085ce49 RD |
15275 | } |
15276 | return resultobj; | |
15277 | fail: | |
15278 | return NULL; | |
15279 | } | |
15280 | ||
15281 | ||
15282 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15283 | PyObject *resultobj = 0; | |
15284 | wxFont *arg1 = (wxFont *) 0 ; | |
15285 | bool arg2 = (bool) true ; | |
15286 | void *argp1 = 0 ; | |
15287 | int res1 = 0 ; | |
15288 | bool val2 ; | |
15289 | int ecode2 = 0 ; | |
15290 | PyObject * obj0 = 0 ; | |
15291 | PyObject * obj1 = 0 ; | |
15292 | char * kwnames[] = { | |
15293 | (char *) "self",(char *) "no", NULL | |
15294 | }; | |
15295 | ||
15296 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15297 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15298 | if (!SWIG_IsOK(res1)) { | |
15299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15300 | } | |
15301 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15302 | if (obj1) { | |
15303 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15304 | if (!SWIG_IsOK(ecode2)) { | |
15305 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15306 | } | |
15307 | arg2 = static_cast< bool >(val2); | |
15308 | } | |
15309 | { | |
15310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15311 | (arg1)->SetNoAntiAliasing(arg2); | |
15312 | wxPyEndAllowThreads(__tstate); | |
15313 | if (PyErr_Occurred()) SWIG_fail; | |
15314 | } | |
15315 | resultobj = SWIG_Py_Void(); | |
15316 | return resultobj; | |
15317 | fail: | |
15318 | return NULL; | |
d14a1e28 RD |
15319 | } |
15320 | ||
15321 | ||
0085ce49 RD |
15322 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15323 | PyObject *resultobj = 0; | |
15324 | wxFont *arg1 = (wxFont *) 0 ; | |
15325 | bool result; | |
15326 | void *argp1 = 0 ; | |
15327 | int res1 = 0 ; | |
15328 | PyObject *swig_obj[1] ; | |
15329 | ||
15330 | if (!args) SWIG_fail; | |
15331 | swig_obj[0] = args; | |
15332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15333 | if (!SWIG_IsOK(res1)) { | |
15334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15335 | } | |
15336 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15337 | { | |
15338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15339 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
15340 | wxPyEndAllowThreads(__tstate); | |
15341 | if (PyErr_Occurred()) SWIG_fail; | |
15342 | } | |
15343 | { | |
15344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15345 | } | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
d14a1e28 RD |
15349 | } |
15350 | ||
15351 | ||
0085ce49 RD |
15352 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15353 | PyObject *resultobj = 0; | |
15354 | wxFontEncoding result; | |
15355 | ||
15356 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
15357 | { | |
15358 | if (!wxPyCheckForApp()) SWIG_fail; | |
15359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15360 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
15361 | wxPyEndAllowThreads(__tstate); | |
15362 | if (PyErr_Occurred()) SWIG_fail; | |
15363 | } | |
15364 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15365 | return resultobj; | |
15366 | fail: | |
15367 | return NULL; | |
d14a1e28 RD |
15368 | } |
15369 | ||
15370 | ||
0085ce49 RD |
15371 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15372 | PyObject *resultobj = 0; | |
15373 | wxFontEncoding arg1 ; | |
15374 | int val1 ; | |
15375 | int ecode1 = 0 ; | |
15376 | PyObject * obj0 = 0 ; | |
15377 | char * kwnames[] = { | |
15378 | (char *) "encoding", NULL | |
15379 | }; | |
15380 | ||
15381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
15382 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15383 | if (!SWIG_IsOK(ecode1)) { | |
15384 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15385 | } | |
15386 | arg1 = static_cast< wxFontEncoding >(val1); | |
15387 | { | |
15388 | if (!wxPyCheckForApp()) SWIG_fail; | |
15389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15390 | wxFont::SetDefaultEncoding(arg1); | |
15391 | wxPyEndAllowThreads(__tstate); | |
15392 | if (PyErr_Occurred()) SWIG_fail; | |
15393 | } | |
15394 | resultobj = SWIG_Py_Void(); | |
15395 | return resultobj; | |
15396 | fail: | |
15397 | return NULL; | |
d14a1e28 RD |
15398 | } |
15399 | ||
15400 | ||
0085ce49 RD |
15401 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15402 | PyObject *obj; | |
15403 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15404 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
15405 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15406 | } |
15407 | ||
0085ce49 RD |
15408 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15409 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15410 | } |
15411 | ||
0085ce49 RD |
15412 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15413 | PyObject *resultobj = 0; | |
15414 | wxPyFontEnumerator *result = 0 ; | |
15415 | ||
15416 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
15417 | { | |
15418 | if (!wxPyCheckForApp()) SWIG_fail; | |
15419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15420 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
15421 | wxPyEndAllowThreads(__tstate); | |
15422 | if (PyErr_Occurred()) SWIG_fail; | |
15423 | } | |
15424 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
15425 | return resultobj; | |
15426 | fail: | |
15427 | return NULL; | |
d14a1e28 RD |
15428 | } |
15429 | ||
15430 | ||
0085ce49 RD |
15431 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15432 | PyObject *resultobj = 0; | |
15433 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15434 | void *argp1 = 0 ; | |
15435 | int res1 = 0 ; | |
15436 | PyObject *swig_obj[1] ; | |
15437 | ||
15438 | if (!args) SWIG_fail; | |
15439 | swig_obj[0] = args; | |
15440 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
15441 | if (!SWIG_IsOK(res1)) { | |
15442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15443 | } | |
15444 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15445 | { | |
15446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15447 | delete arg1; | |
d14a1e28 | 15448 | |
0085ce49 RD |
15449 | wxPyEndAllowThreads(__tstate); |
15450 | if (PyErr_Occurred()) SWIG_fail; | |
15451 | } | |
15452 | resultobj = SWIG_Py_Void(); | |
15453 | return resultobj; | |
15454 | fail: | |
15455 | return NULL; | |
15456 | } | |
15457 | ||
15458 | ||
15459 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15460 | PyObject *resultobj = 0; | |
15461 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15462 | PyObject *arg2 = (PyObject *) 0 ; | |
15463 | PyObject *arg3 = (PyObject *) 0 ; | |
c25f90f6 | 15464 | int arg4 = (int) 0 ; |
0085ce49 RD |
15465 | void *argp1 = 0 ; |
15466 | int res1 = 0 ; | |
c25f90f6 | 15467 | int val4 ; |
0085ce49 RD |
15468 | int ecode4 = 0 ; |
15469 | PyObject * obj0 = 0 ; | |
15470 | PyObject * obj1 = 0 ; | |
15471 | PyObject * obj2 = 0 ; | |
15472 | PyObject * obj3 = 0 ; | |
15473 | char * kwnames[] = { | |
15474 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15475 | }; | |
15476 | ||
c25f90f6 | 15477 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
15478 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); |
15479 | if (!SWIG_IsOK(res1)) { | |
15480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15481 | } | |
15482 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15483 | arg2 = obj1; | |
15484 | arg3 = obj2; | |
c25f90f6 RD |
15485 | if (obj3) { |
15486 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15487 | if (!SWIG_IsOK(ecode4)) { | |
15488 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
15489 | } | |
15490 | arg4 = static_cast< int >(val4); | |
15491 | } | |
0085ce49 RD |
15492 | { |
15493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15494 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15495 | wxPyEndAllowThreads(__tstate); | |
15496 | if (PyErr_Occurred()) SWIG_fail; | |
15497 | } | |
15498 | resultobj = SWIG_Py_Void(); | |
15499 | return resultobj; | |
15500 | fail: | |
15501 | return NULL; | |
15502 | } | |
15503 | ||
15504 | ||
15505 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15506 | PyObject *resultobj = 0; | |
15507 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15508 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
15509 | bool arg3 = (bool) false ; | |
15510 | bool result; | |
15511 | void *argp1 = 0 ; | |
15512 | int res1 = 0 ; | |
15513 | int val2 ; | |
15514 | int ecode2 = 0 ; | |
15515 | bool val3 ; | |
15516 | int ecode3 = 0 ; | |
15517 | PyObject * obj0 = 0 ; | |
15518 | PyObject * obj1 = 0 ; | |
15519 | PyObject * obj2 = 0 ; | |
15520 | char * kwnames[] = { | |
15521 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
15522 | }; | |
15523 | ||
15524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15526 | if (!SWIG_IsOK(res1)) { | |
15527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15528 | } | |
15529 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15530 | if (obj1) { | |
15531 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15532 | if (!SWIG_IsOK(ecode2)) { | |
15533 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15534 | } | |
15535 | arg2 = static_cast< wxFontEncoding >(val2); | |
15536 | } | |
15537 | if (obj2) { | |
15538 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15539 | if (!SWIG_IsOK(ecode3)) { | |
15540 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
15541 | } | |
15542 | arg3 = static_cast< bool >(val3); | |
15543 | } | |
15544 | { | |
15545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15546 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
15547 | wxPyEndAllowThreads(__tstate); | |
15548 | if (PyErr_Occurred()) SWIG_fail; | |
15549 | } | |
15550 | { | |
15551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15552 | } | |
15553 | return resultobj; | |
15554 | fail: | |
15555 | return NULL; | |
15556 | } | |
15557 | ||
15558 | ||
15559 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15560 | PyObject *resultobj = 0; | |
15561 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15562 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15563 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15564 | bool result; | |
15565 | void *argp1 = 0 ; | |
15566 | int res1 = 0 ; | |
15567 | bool temp2 = false ; | |
15568 | PyObject * obj0 = 0 ; | |
15569 | PyObject * obj1 = 0 ; | |
15570 | char * kwnames[] = { | |
15571 | (char *) "self",(char *) "facename", NULL | |
15572 | }; | |
15573 | ||
15574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
15575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15576 | if (!SWIG_IsOK(res1)) { | |
15577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15578 | } | |
15579 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15580 | if (obj1) { | |
d14a1e28 | 15581 | { |
0085ce49 RD |
15582 | arg2 = wxString_in_helper(obj1); |
15583 | if (arg2 == NULL) SWIG_fail; | |
15584 | temp2 = true; | |
d14a1e28 | 15585 | } |
0085ce49 RD |
15586 | } |
15587 | { | |
15588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15589 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
15590 | wxPyEndAllowThreads(__tstate); | |
15591 | if (PyErr_Occurred()) SWIG_fail; | |
15592 | } | |
15593 | { | |
15594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15595 | } | |
15596 | { | |
15597 | if (temp2) | |
15598 | delete arg2; | |
15599 | } | |
15600 | return resultobj; | |
15601 | fail: | |
15602 | { | |
15603 | if (temp2) | |
15604 | delete arg2; | |
15605 | } | |
15606 | return NULL; | |
d14a1e28 RD |
15607 | } |
15608 | ||
15609 | ||
0085ce49 RD |
15610 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15611 | PyObject *resultobj = 0; | |
0085ce49 | 15612 | PyObject *result = 0 ; |
0085ce49 | 15613 | |
704eda0c | 15614 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
0085ce49 RD |
15615 | { |
15616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15617 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
0085ce49 RD |
15618 | wxPyEndAllowThreads(__tstate); |
15619 | if (PyErr_Occurred()) SWIG_fail; | |
15620 | } | |
15621 | resultobj = result; | |
15622 | return resultobj; | |
15623 | fail: | |
15624 | return NULL; | |
d14a1e28 RD |
15625 | } |
15626 | ||
15627 | ||
0085ce49 RD |
15628 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15629 | PyObject *resultobj = 0; | |
0085ce49 | 15630 | PyObject *result = 0 ; |
0085ce49 | 15631 | |
704eda0c | 15632 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
0085ce49 RD |
15633 | { |
15634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15635 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
0085ce49 RD |
15636 | wxPyEndAllowThreads(__tstate); |
15637 | if (PyErr_Occurred()) SWIG_fail; | |
15638 | } | |
15639 | resultobj = result; | |
15640 | return resultobj; | |
15641 | fail: | |
15642 | return NULL; | |
d14a1e28 RD |
15643 | } |
15644 | ||
15645 | ||
704eda0c RD |
15646 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15647 | PyObject *resultobj = 0; | |
15648 | wxString *arg1 = 0 ; | |
15649 | bool result; | |
15650 | bool temp1 = false ; | |
15651 | PyObject * obj0 = 0 ; | |
15652 | char * kwnames[] = { | |
15653 | (char *) "str", NULL | |
15654 | }; | |
15655 | ||
15656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
15657 | { | |
15658 | arg1 = wxString_in_helper(obj0); | |
15659 | if (arg1 == NULL) SWIG_fail; | |
15660 | temp1 = true; | |
15661 | } | |
15662 | { | |
15663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15664 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
15665 | wxPyEndAllowThreads(__tstate); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
15667 | } | |
15668 | { | |
15669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15670 | } | |
15671 | { | |
15672 | if (temp1) | |
15673 | delete arg1; | |
15674 | } | |
15675 | return resultobj; | |
15676 | fail: | |
15677 | { | |
15678 | if (temp1) | |
15679 | delete arg1; | |
15680 | } | |
15681 | return NULL; | |
15682 | } | |
15683 | ||
15684 | ||
0085ce49 RD |
15685 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15686 | PyObject *obj; | |
15687 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15688 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
15689 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15690 | } |
15691 | ||
0085ce49 RD |
15692 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15693 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15694 | } |
15695 | ||
0085ce49 RD |
15696 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15697 | PyObject *resultobj = 0; | |
15698 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15699 | int arg2 ; | |
15700 | void *argp1 = 0 ; | |
15701 | int res1 = 0 ; | |
15702 | int val2 ; | |
15703 | int ecode2 = 0 ; | |
15704 | PyObject *swig_obj[2] ; | |
15705 | ||
15706 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
15707 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15708 | if (!SWIG_IsOK(res1)) { | |
15709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15710 | } | |
15711 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15712 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
15713 | if (!SWIG_IsOK(ecode2)) { | |
15714 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
15715 | } | |
15716 | arg2 = static_cast< int >(val2); | |
15717 | if (arg1) (arg1)->Language = arg2; | |
15718 | ||
15719 | resultobj = SWIG_Py_Void(); | |
15720 | return resultobj; | |
15721 | fail: | |
15722 | return NULL; | |
d14a1e28 RD |
15723 | } |
15724 | ||
15725 | ||
0085ce49 RD |
15726 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15727 | PyObject *resultobj = 0; | |
15728 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15729 | int result; | |
15730 | void *argp1 = 0 ; | |
15731 | int res1 = 0 ; | |
15732 | PyObject *swig_obj[1] ; | |
15733 | ||
15734 | if (!args) SWIG_fail; | |
15735 | swig_obj[0] = args; | |
15736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15737 | if (!SWIG_IsOK(res1)) { | |
15738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15739 | } | |
15740 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15741 | result = (int) ((arg1)->Language); | |
15742 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15743 | return resultobj; | |
15744 | fail: | |
15745 | return NULL; | |
15746 | } | |
15747 | ||
15748 | ||
15749 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15750 | PyObject *resultobj = 0; | |
15751 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15752 | wxString *arg2 = (wxString *) 0 ; | |
15753 | void *argp1 = 0 ; | |
15754 | int res1 = 0 ; | |
15755 | bool temp2 = false ; | |
15756 | PyObject *swig_obj[2] ; | |
15757 | ||
15758 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
15759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15760 | if (!SWIG_IsOK(res1)) { | |
15761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15762 | } | |
15763 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15764 | { | |
15765 | arg2 = wxString_in_helper(swig_obj[1]); | |
15766 | if (arg2 == NULL) SWIG_fail; | |
15767 | temp2 = true; | |
15768 | } | |
15769 | if (arg1) (arg1)->CanonicalName = *arg2; | |
15770 | ||
15771 | resultobj = SWIG_Py_Void(); | |
15772 | { | |
15773 | if (temp2) | |
15774 | delete arg2; | |
15775 | } | |
15776 | return resultobj; | |
15777 | fail: | |
15778 | { | |
15779 | if (temp2) | |
15780 | delete arg2; | |
15781 | } | |
15782 | return NULL; | |
d14a1e28 RD |
15783 | } |
15784 | ||
15785 | ||
0085ce49 RD |
15786 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15787 | PyObject *resultobj = 0; | |
15788 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15789 | wxString *result = 0 ; | |
15790 | void *argp1 = 0 ; | |
15791 | int res1 = 0 ; | |
15792 | PyObject *swig_obj[1] ; | |
15793 | ||
15794 | if (!args) SWIG_fail; | |
15795 | swig_obj[0] = args; | |
15796 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15797 | if (!SWIG_IsOK(res1)) { | |
15798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15799 | } | |
15800 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15801 | result = (wxString *)& ((arg1)->CanonicalName); | |
15802 | { | |
093d3ff1 | 15803 | #if wxUSE_UNICODE |
0085ce49 | 15804 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
093d3ff1 | 15805 | #else |
0085ce49 | 15806 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
093d3ff1 | 15807 | #endif |
0085ce49 RD |
15808 | } |
15809 | return resultobj; | |
15810 | fail: | |
15811 | return NULL; | |
d14a1e28 RD |
15812 | } |
15813 | ||
15814 | ||
0085ce49 RD |
15815 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15816 | PyObject *resultobj = 0; | |
15817 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15818 | wxString *arg2 = (wxString *) 0 ; | |
15819 | void *argp1 = 0 ; | |
15820 | int res1 = 0 ; | |
15821 | bool temp2 = false ; | |
15822 | PyObject *swig_obj[2] ; | |
15823 | ||
15824 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
15825 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15826 | if (!SWIG_IsOK(res1)) { | |
15827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15828 | } | |
15829 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15830 | { | |
15831 | arg2 = wxString_in_helper(swig_obj[1]); | |
15832 | if (arg2 == NULL) SWIG_fail; | |
15833 | temp2 = true; | |
15834 | } | |
15835 | if (arg1) (arg1)->Description = *arg2; | |
15836 | ||
15837 | resultobj = SWIG_Py_Void(); | |
15838 | { | |
15839 | if (temp2) | |
15840 | delete arg2; | |
15841 | } | |
15842 | return resultobj; | |
15843 | fail: | |
15844 | { | |
15845 | if (temp2) | |
15846 | delete arg2; | |
15847 | } | |
15848 | return NULL; | |
d14a1e28 RD |
15849 | } |
15850 | ||
15851 | ||
0085ce49 RD |
15852 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15853 | PyObject *resultobj = 0; | |
15854 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15855 | wxString *result = 0 ; | |
15856 | void *argp1 = 0 ; | |
15857 | int res1 = 0 ; | |
15858 | PyObject *swig_obj[1] ; | |
15859 | ||
15860 | if (!args) SWIG_fail; | |
15861 | swig_obj[0] = args; | |
15862 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15863 | if (!SWIG_IsOK(res1)) { | |
15864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15865 | } | |
15866 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15867 | result = (wxString *)& ((arg1)->Description); | |
15868 | { | |
d14a1e28 | 15869 | #if wxUSE_UNICODE |
0085ce49 | 15870 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 15871 | #else |
0085ce49 | 15872 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 15873 | #endif |
0085ce49 RD |
15874 | } |
15875 | return resultobj; | |
15876 | fail: | |
15877 | return NULL; | |
15878 | } | |
15879 | ||
15880 | ||
15881 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15882 | PyObject *obj; | |
15883 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15884 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
15885 | return SWIG_Py_Void(); | |
15886 | } | |
15887 | ||
15888 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15889 | PyObject *resultobj = 0; | |
15890 | int arg1 = (int) -1 ; | |
15891 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
15892 | wxLocale *result = 0 ; | |
15893 | int val1 ; | |
15894 | int ecode1 = 0 ; | |
15895 | int val2 ; | |
15896 | int ecode2 = 0 ; | |
15897 | PyObject * obj0 = 0 ; | |
15898 | PyObject * obj1 = 0 ; | |
15899 | char * kwnames[] = { | |
15900 | (char *) "language",(char *) "flags", NULL | |
15901 | }; | |
15902 | ||
15903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
15904 | if (obj0) { | |
15905 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15906 | if (!SWIG_IsOK(ecode1)) { | |
15907 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
15908 | } | |
15909 | arg1 = static_cast< int >(val1); | |
15910 | } | |
15911 | if (obj1) { | |
15912 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15913 | if (!SWIG_IsOK(ecode2)) { | |
15914 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
15915 | } | |
15916 | arg2 = static_cast< int >(val2); | |
15917 | } | |
15918 | { | |
15919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15920 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
15921 | wxPyEndAllowThreads(__tstate); | |
15922 | if (PyErr_Occurred()) SWIG_fail; | |
15923 | } | |
15924 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
15925 | return resultobj; | |
15926 | fail: | |
15927 | return NULL; | |
d14a1e28 RD |
15928 | } |
15929 | ||
15930 | ||
0085ce49 RD |
15931 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15932 | PyObject *resultobj = 0; | |
15933 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15934 | void *argp1 = 0 ; | |
15935 | int res1 = 0 ; | |
15936 | PyObject *swig_obj[1] ; | |
15937 | ||
15938 | if (!args) SWIG_fail; | |
15939 | swig_obj[0] = args; | |
15940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
15941 | if (!SWIG_IsOK(res1)) { | |
15942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15943 | } | |
15944 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15945 | { | |
15946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15947 | delete arg1; | |
d14a1e28 | 15948 | |
0085ce49 RD |
15949 | wxPyEndAllowThreads(__tstate); |
15950 | if (PyErr_Occurred()) SWIG_fail; | |
15951 | } | |
15952 | resultobj = SWIG_Py_Void(); | |
15953 | return resultobj; | |
15954 | fail: | |
15955 | return NULL; | |
15956 | } | |
15957 | ||
15958 | ||
15959 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15960 | PyObject *resultobj = 0; | |
15961 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15962 | wxString *arg2 = 0 ; | |
15963 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15964 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15965 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15966 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15967 | bool arg5 = (bool) true ; | |
15968 | bool arg6 = (bool) false ; | |
15969 | bool result; | |
15970 | void *argp1 = 0 ; | |
15971 | int res1 = 0 ; | |
15972 | bool temp2 = false ; | |
15973 | bool temp3 = false ; | |
15974 | bool temp4 = false ; | |
15975 | bool val5 ; | |
15976 | int ecode5 = 0 ; | |
15977 | bool val6 ; | |
15978 | int ecode6 = 0 ; | |
15979 | PyObject * obj0 = 0 ; | |
15980 | PyObject * obj1 = 0 ; | |
15981 | PyObject * obj2 = 0 ; | |
15982 | PyObject * obj3 = 0 ; | |
15983 | PyObject * obj4 = 0 ; | |
15984 | PyObject * obj5 = 0 ; | |
15985 | char * kwnames[] = { | |
15986 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
15987 | }; | |
15988 | ||
15989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15991 | if (!SWIG_IsOK(res1)) { | |
15992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15993 | } | |
15994 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15995 | { | |
15996 | arg2 = wxString_in_helper(obj1); | |
15997 | if (arg2 == NULL) SWIG_fail; | |
15998 | temp2 = true; | |
15999 | } | |
16000 | if (obj2) { | |
d14a1e28 | 16001 | { |
0085ce49 RD |
16002 | arg3 = wxString_in_helper(obj2); |
16003 | if (arg3 == NULL) SWIG_fail; | |
16004 | temp3 = true; | |
d14a1e28 | 16005 | } |
0085ce49 RD |
16006 | } |
16007 | if (obj3) { | |
093d3ff1 | 16008 | { |
0085ce49 RD |
16009 | arg4 = wxString_in_helper(obj3); |
16010 | if (arg4 == NULL) SWIG_fail; | |
16011 | temp4 = true; | |
093d3ff1 | 16012 | } |
0085ce49 RD |
16013 | } |
16014 | if (obj4) { | |
16015 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16016 | if (!SWIG_IsOK(ecode5)) { | |
16017 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
16018 | } | |
16019 | arg5 = static_cast< bool >(val5); | |
16020 | } | |
16021 | if (obj5) { | |
16022 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
16023 | if (!SWIG_IsOK(ecode6)) { | |
16024 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
16025 | } | |
16026 | arg6 = static_cast< bool >(val6); | |
16027 | } | |
16028 | { | |
16029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16030 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
16031 | wxPyEndAllowThreads(__tstate); | |
16032 | if (PyErr_Occurred()) SWIG_fail; | |
16033 | } | |
16034 | { | |
16035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16036 | } | |
16037 | { | |
16038 | if (temp2) | |
16039 | delete arg2; | |
16040 | } | |
16041 | { | |
16042 | if (temp3) | |
16043 | delete arg3; | |
16044 | } | |
16045 | { | |
16046 | if (temp4) | |
16047 | delete arg4; | |
16048 | } | |
16049 | return resultobj; | |
16050 | fail: | |
16051 | { | |
16052 | if (temp2) | |
16053 | delete arg2; | |
16054 | } | |
16055 | { | |
16056 | if (temp3) | |
16057 | delete arg3; | |
16058 | } | |
16059 | { | |
16060 | if (temp4) | |
16061 | delete arg4; | |
16062 | } | |
16063 | return NULL; | |
16064 | } | |
16065 | ||
16066 | ||
16067 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16068 | PyObject *resultobj = 0; | |
16069 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16070 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
16071 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16072 | bool result; | |
16073 | void *argp1 = 0 ; | |
16074 | int res1 = 0 ; | |
16075 | int val2 ; | |
16076 | int ecode2 = 0 ; | |
16077 | int val3 ; | |
16078 | int ecode3 = 0 ; | |
16079 | PyObject * obj0 = 0 ; | |
16080 | PyObject * obj1 = 0 ; | |
16081 | PyObject * obj2 = 0 ; | |
16082 | char * kwnames[] = { | |
16083 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
16084 | }; | |
16085 | ||
16086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16088 | if (!SWIG_IsOK(res1)) { | |
16089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16090 | } | |
16091 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16092 | if (obj1) { | |
16093 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16094 | if (!SWIG_IsOK(ecode2)) { | |
16095 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
16096 | } | |
16097 | arg2 = static_cast< int >(val2); | |
16098 | } | |
16099 | if (obj2) { | |
16100 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16101 | if (!SWIG_IsOK(ecode3)) { | |
16102 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
16103 | } | |
16104 | arg3 = static_cast< int >(val3); | |
16105 | } | |
16106 | { | |
16107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16108 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
16109 | wxPyEndAllowThreads(__tstate); | |
16110 | if (PyErr_Occurred()) SWIG_fail; | |
16111 | } | |
16112 | { | |
16113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16114 | } | |
16115 | return resultobj; | |
16116 | fail: | |
16117 | return NULL; | |
093d3ff1 RD |
16118 | } |
16119 | ||
16120 | ||
0085ce49 RD |
16121 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16122 | PyObject *resultobj = 0; | |
16123 | int result; | |
16124 | ||
16125 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
16126 | { | |
16127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16128 | result = (int)wxLocale::GetSystemLanguage(); | |
16129 | wxPyEndAllowThreads(__tstate); | |
16130 | if (PyErr_Occurred()) SWIG_fail; | |
16131 | } | |
16132 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16133 | return resultobj; | |
16134 | fail: | |
16135 | return NULL; | |
d14a1e28 RD |
16136 | } |
16137 | ||
16138 | ||
0085ce49 RD |
16139 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16140 | PyObject *resultobj = 0; | |
16141 | wxFontEncoding result; | |
16142 | ||
16143 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
16144 | { | |
16145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16146 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
16147 | wxPyEndAllowThreads(__tstate); | |
16148 | if (PyErr_Occurred()) SWIG_fail; | |
16149 | } | |
16150 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16151 | return resultobj; | |
16152 | fail: | |
16153 | return NULL; | |
d14a1e28 RD |
16154 | } |
16155 | ||
16156 | ||
0085ce49 RD |
16157 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16158 | PyObject *resultobj = 0; | |
16159 | wxString result; | |
16160 | ||
16161 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
16162 | { | |
16163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16164 | result = wxLocale::GetSystemEncodingName(); | |
16165 | wxPyEndAllowThreads(__tstate); | |
16166 | if (PyErr_Occurred()) SWIG_fail; | |
16167 | } | |
16168 | { | |
d14a1e28 | 16169 | #if wxUSE_UNICODE |
0085ce49 | 16170 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16171 | #else |
0085ce49 | 16172 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16173 | #endif |
0085ce49 RD |
16174 | } |
16175 | return resultobj; | |
16176 | fail: | |
16177 | return NULL; | |
d14a1e28 RD |
16178 | } |
16179 | ||
16180 | ||
0085ce49 RD |
16181 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16182 | PyObject *resultobj = 0; | |
16183 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16184 | bool result; | |
16185 | void *argp1 = 0 ; | |
16186 | int res1 = 0 ; | |
16187 | PyObject *swig_obj[1] ; | |
16188 | ||
16189 | if (!args) SWIG_fail; | |
16190 | swig_obj[0] = args; | |
16191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16192 | if (!SWIG_IsOK(res1)) { | |
16193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16194 | } | |
16195 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16196 | { | |
16197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16198 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16199 | wxPyEndAllowThreads(__tstate); | |
16200 | if (PyErr_Occurred()) SWIG_fail; | |
16201 | } | |
16202 | { | |
16203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16204 | } | |
16205 | return resultobj; | |
16206 | fail: | |
16207 | return NULL; | |
093d3ff1 | 16208 | } |
0085ce49 RD |
16209 | |
16210 | ||
16211 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16212 | PyObject *resultobj = 0; | |
16213 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16214 | wxString result; | |
16215 | void *argp1 = 0 ; | |
16216 | int res1 = 0 ; | |
16217 | PyObject *swig_obj[1] ; | |
16218 | ||
16219 | if (!args) SWIG_fail; | |
16220 | swig_obj[0] = args; | |
16221 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16222 | if (!SWIG_IsOK(res1)) { | |
16223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16224 | } | |
16225 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16226 | { | |
16227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16228 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16229 | wxPyEndAllowThreads(__tstate); | |
16230 | if (PyErr_Occurred()) SWIG_fail; | |
16231 | } | |
16232 | { | |
16233 | #if wxUSE_UNICODE | |
16234 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16235 | #else | |
16236 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16237 | #endif | |
16238 | } | |
16239 | return resultobj; | |
16240 | fail: | |
16241 | return NULL; | |
d14a1e28 RD |
16242 | } |
16243 | ||
16244 | ||
0085ce49 RD |
16245 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16246 | PyObject *resultobj = 0; | |
16247 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16248 | int result; | |
16249 | void *argp1 = 0 ; | |
16250 | int res1 = 0 ; | |
16251 | PyObject *swig_obj[1] ; | |
16252 | ||
16253 | if (!args) SWIG_fail; | |
16254 | swig_obj[0] = args; | |
16255 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16256 | if (!SWIG_IsOK(res1)) { | |
16257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16258 | } | |
16259 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16260 | { | |
16261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16262 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16263 | wxPyEndAllowThreads(__tstate); | |
16264 | if (PyErr_Occurred()) SWIG_fail; | |
16265 | } | |
16266 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16267 | return resultobj; | |
16268 | fail: | |
16269 | return NULL; | |
d14a1e28 RD |
16270 | } |
16271 | ||
16272 | ||
0085ce49 RD |
16273 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16274 | PyObject *resultobj = 0; | |
16275 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16276 | wxString result; | |
16277 | void *argp1 = 0 ; | |
16278 | int res1 = 0 ; | |
16279 | PyObject *swig_obj[1] ; | |
16280 | ||
16281 | if (!args) SWIG_fail; | |
16282 | swig_obj[0] = args; | |
16283 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16284 | if (!SWIG_IsOK(res1)) { | |
16285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16286 | } | |
16287 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16288 | { | |
16289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16290 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16291 | wxPyEndAllowThreads(__tstate); | |
16292 | if (PyErr_Occurred()) SWIG_fail; | |
16293 | } | |
16294 | { | |
16295 | #if wxUSE_UNICODE | |
16296 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16297 | #else | |
16298 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16299 | #endif | |
16300 | } | |
16301 | return resultobj; | |
16302 | fail: | |
16303 | return NULL; | |
d14a1e28 RD |
16304 | } |
16305 | ||
16306 | ||
0085ce49 RD |
16307 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16308 | PyObject *resultobj = 0; | |
16309 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16310 | wxString result; | |
16311 | void *argp1 = 0 ; | |
16312 | int res1 = 0 ; | |
16313 | PyObject *swig_obj[1] ; | |
16314 | ||
16315 | if (!args) SWIG_fail; | |
16316 | swig_obj[0] = args; | |
16317 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16318 | if (!SWIG_IsOK(res1)) { | |
16319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16320 | } | |
16321 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16322 | { | |
16323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16324 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16325 | wxPyEndAllowThreads(__tstate); | |
16326 | if (PyErr_Occurred()) SWIG_fail; | |
16327 | } | |
16328 | { | |
16329 | #if wxUSE_UNICODE | |
16330 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16331 | #else | |
16332 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16333 | #endif | |
16334 | } | |
16335 | return resultobj; | |
16336 | fail: | |
16337 | return NULL; | |
d14a1e28 RD |
16338 | } |
16339 | ||
16340 | ||
0085ce49 RD |
16341 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16342 | PyObject *resultobj = 0; | |
16343 | wxString *arg1 = 0 ; | |
16344 | bool temp1 = false ; | |
16345 | PyObject * obj0 = 0 ; | |
16346 | char * kwnames[] = { | |
16347 | (char *) "prefix", NULL | |
16348 | }; | |
16349 | ||
16350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
16351 | { | |
16352 | arg1 = wxString_in_helper(obj0); | |
16353 | if (arg1 == NULL) SWIG_fail; | |
16354 | temp1 = true; | |
16355 | } | |
16356 | { | |
16357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16358 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
16359 | wxPyEndAllowThreads(__tstate); | |
16360 | if (PyErr_Occurred()) SWIG_fail; | |
16361 | } | |
16362 | resultobj = SWIG_Py_Void(); | |
16363 | { | |
16364 | if (temp1) | |
16365 | delete arg1; | |
16366 | } | |
16367 | return resultobj; | |
16368 | fail: | |
16369 | { | |
16370 | if (temp1) | |
16371 | delete arg1; | |
16372 | } | |
16373 | return NULL; | |
16374 | } | |
16375 | ||
16376 | ||
16377 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16378 | PyObject *resultobj = 0; | |
16379 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16380 | wxString *arg2 = 0 ; | |
16381 | bool result; | |
16382 | void *argp1 = 0 ; | |
16383 | int res1 = 0 ; | |
16384 | bool temp2 = false ; | |
16385 | PyObject * obj0 = 0 ; | |
16386 | PyObject * obj1 = 0 ; | |
16387 | char * kwnames[] = { | |
16388 | (char *) "self",(char *) "szDomain", NULL | |
16389 | }; | |
16390 | ||
16391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16393 | if (!SWIG_IsOK(res1)) { | |
16394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16395 | } | |
16396 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16397 | { | |
16398 | arg2 = wxString_in_helper(obj1); | |
16399 | if (arg2 == NULL) SWIG_fail; | |
16400 | temp2 = true; | |
16401 | } | |
16402 | { | |
16403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16404 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
16405 | wxPyEndAllowThreads(__tstate); | |
16406 | if (PyErr_Occurred()) SWIG_fail; | |
16407 | } | |
16408 | { | |
16409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16410 | } | |
16411 | { | |
16412 | if (temp2) | |
16413 | delete arg2; | |
16414 | } | |
16415 | return resultobj; | |
16416 | fail: | |
16417 | { | |
16418 | if (temp2) | |
16419 | delete arg2; | |
16420 | } | |
16421 | return NULL; | |
16422 | } | |
16423 | ||
16424 | ||
33d6fd3b RD |
16425 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16426 | PyObject *resultobj = 0; | |
16427 | int arg1 ; | |
16428 | bool result; | |
16429 | int val1 ; | |
16430 | int ecode1 = 0 ; | |
16431 | PyObject * obj0 = 0 ; | |
16432 | char * kwnames[] = { | |
16433 | (char *) "lang", NULL | |
16434 | }; | |
16435 | ||
16436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
16437 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16438 | if (!SWIG_IsOK(ecode1)) { | |
16439 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
16440 | } | |
16441 | arg1 = static_cast< int >(val1); | |
16442 | { | |
16443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16444 | result = (bool)wxLocale::IsAvailable(arg1); | |
16445 | wxPyEndAllowThreads(__tstate); | |
16446 | if (PyErr_Occurred()) SWIG_fail; | |
16447 | } | |
16448 | { | |
16449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16450 | } | |
16451 | return resultobj; | |
16452 | fail: | |
16453 | return NULL; | |
16454 | } | |
16455 | ||
16456 | ||
0085ce49 RD |
16457 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16458 | PyObject *resultobj = 0; | |
16459 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16460 | wxString *arg2 = 0 ; | |
16461 | bool result; | |
16462 | void *argp1 = 0 ; | |
16463 | int res1 = 0 ; | |
16464 | bool temp2 = false ; | |
16465 | PyObject * obj0 = 0 ; | |
16466 | PyObject * obj1 = 0 ; | |
16467 | char * kwnames[] = { | |
16468 | (char *) "self",(char *) "szDomain", NULL | |
16469 | }; | |
16470 | ||
16471 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
16472 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16473 | if (!SWIG_IsOK(res1)) { | |
16474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16475 | } | |
16476 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16477 | { | |
16478 | arg2 = wxString_in_helper(obj1); | |
16479 | if (arg2 == NULL) SWIG_fail; | |
16480 | temp2 = true; | |
16481 | } | |
16482 | { | |
16483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16484 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
16485 | wxPyEndAllowThreads(__tstate); | |
16486 | if (PyErr_Occurred()) SWIG_fail; | |
16487 | } | |
16488 | { | |
16489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16490 | } | |
16491 | { | |
16492 | if (temp2) | |
16493 | delete arg2; | |
16494 | } | |
16495 | return resultobj; | |
16496 | fail: | |
16497 | { | |
16498 | if (temp2) | |
16499 | delete arg2; | |
16500 | } | |
16501 | return NULL; | |
d14a1e28 RD |
16502 | } |
16503 | ||
16504 | ||
0085ce49 RD |
16505 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16506 | PyObject *resultobj = 0; | |
16507 | int arg1 ; | |
16508 | wxLanguageInfo *result = 0 ; | |
16509 | int val1 ; | |
16510 | int ecode1 = 0 ; | |
16511 | PyObject * obj0 = 0 ; | |
16512 | char * kwnames[] = { | |
16513 | (char *) "lang", NULL | |
16514 | }; | |
16515 | ||
16516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16517 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16518 | if (!SWIG_IsOK(ecode1)) { | |
16519 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
16520 | } | |
16521 | arg1 = static_cast< int >(val1); | |
16522 | { | |
16523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16524 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
16525 | wxPyEndAllowThreads(__tstate); | |
16526 | if (PyErr_Occurred()) SWIG_fail; | |
16527 | } | |
16528 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16529 | return resultobj; | |
16530 | fail: | |
16531 | return NULL; | |
16532 | } | |
16533 | ||
16534 | ||
16535 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16536 | PyObject *resultobj = 0; | |
16537 | int arg1 ; | |
16538 | wxString result; | |
16539 | int val1 ; | |
16540 | int ecode1 = 0 ; | |
16541 | PyObject * obj0 = 0 ; | |
16542 | char * kwnames[] = { | |
16543 | (char *) "lang", NULL | |
16544 | }; | |
16545 | ||
16546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
16547 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16548 | if (!SWIG_IsOK(ecode1)) { | |
16549 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
16550 | } | |
16551 | arg1 = static_cast< int >(val1); | |
16552 | { | |
16553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16554 | result = wxLocale::GetLanguageName(arg1); | |
16555 | wxPyEndAllowThreads(__tstate); | |
16556 | if (PyErr_Occurred()) SWIG_fail; | |
16557 | } | |
16558 | { | |
16559 | #if wxUSE_UNICODE | |
16560 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16561 | #else | |
16562 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16563 | #endif | |
16564 | } | |
16565 | return resultobj; | |
16566 | fail: | |
16567 | return NULL; | |
d14a1e28 RD |
16568 | } |
16569 | ||
16570 | ||
0085ce49 RD |
16571 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16572 | PyObject *resultobj = 0; | |
16573 | wxString *arg1 = 0 ; | |
16574 | wxLanguageInfo *result = 0 ; | |
16575 | bool temp1 = false ; | |
16576 | PyObject * obj0 = 0 ; | |
16577 | char * kwnames[] = { | |
16578 | (char *) "locale", NULL | |
16579 | }; | |
16580 | ||
16581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16582 | { | |
16583 | arg1 = wxString_in_helper(obj0); | |
16584 | if (arg1 == NULL) SWIG_fail; | |
16585 | temp1 = true; | |
16586 | } | |
16587 | { | |
16588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
16589 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
16590 | wxPyEndAllowThreads(__tstate); | |
16591 | if (PyErr_Occurred()) SWIG_fail; | |
16592 | } | |
16593 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16594 | { | |
16595 | if (temp1) | |
16596 | delete arg1; | |
16597 | } | |
16598 | return resultobj; | |
16599 | fail: | |
16600 | { | |
16601 | if (temp1) | |
16602 | delete arg1; | |
16603 | } | |
16604 | return NULL; | |
16605 | } | |
16606 | ||
16607 | ||
16608 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16609 | PyObject *resultobj = 0; | |
16610 | wxLanguageInfo *arg1 = 0 ; | |
16611 | void *argp1 = 0 ; | |
16612 | int res1 = 0 ; | |
16613 | PyObject * obj0 = 0 ; | |
16614 | char * kwnames[] = { | |
16615 | (char *) "info", NULL | |
16616 | }; | |
16617 | ||
16618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
16619 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
16620 | if (!SWIG_IsOK(res1)) { | |
16621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16622 | } | |
16623 | if (!argp1) { | |
16624 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16625 | } | |
16626 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16627 | { | |
16628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16629 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
16630 | wxPyEndAllowThreads(__tstate); | |
16631 | if (PyErr_Occurred()) SWIG_fail; | |
16632 | } | |
16633 | resultobj = SWIG_Py_Void(); | |
16634 | return resultobj; | |
16635 | fail: | |
16636 | return NULL; | |
16637 | } | |
16638 | ||
16639 | ||
16640 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16641 | PyObject *resultobj = 0; | |
16642 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16643 | wxString *arg2 = 0 ; | |
16644 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16645 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16646 | wxString result; | |
16647 | void *argp1 = 0 ; | |
16648 | int res1 = 0 ; | |
16649 | bool temp2 = false ; | |
16650 | bool temp3 = false ; | |
16651 | PyObject * obj0 = 0 ; | |
16652 | PyObject * obj1 = 0 ; | |
16653 | PyObject * obj2 = 0 ; | |
16654 | char * kwnames[] = { | |
16655 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16656 | }; | |
16657 | ||
16658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16660 | if (!SWIG_IsOK(res1)) { | |
16661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16662 | } | |
16663 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16664 | { | |
16665 | arg2 = wxString_in_helper(obj1); | |
16666 | if (arg2 == NULL) SWIG_fail; | |
16667 | temp2 = true; | |
16668 | } | |
16669 | if (obj2) { | |
16670 | { | |
16671 | arg3 = wxString_in_helper(obj2); | |
16672 | if (arg3 == NULL) SWIG_fail; | |
16673 | temp3 = true; | |
16674 | } | |
16675 | } | |
16676 | { | |
16677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16678 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
16679 | wxPyEndAllowThreads(__tstate); | |
16680 | if (PyErr_Occurred()) SWIG_fail; | |
16681 | } | |
16682 | { | |
16683 | #if wxUSE_UNICODE | |
16684 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16685 | #else | |
16686 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16687 | #endif | |
16688 | } | |
16689 | { | |
16690 | if (temp2) | |
16691 | delete arg2; | |
16692 | } | |
16693 | { | |
16694 | if (temp3) | |
16695 | delete arg3; | |
16696 | } | |
16697 | return resultobj; | |
16698 | fail: | |
16699 | { | |
16700 | if (temp2) | |
16701 | delete arg2; | |
16702 | } | |
16703 | { | |
16704 | if (temp3) | |
16705 | delete arg3; | |
16706 | } | |
16707 | return NULL; | |
16708 | } | |
16709 | ||
16710 | ||
16711 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16712 | PyObject *resultobj = 0; | |
16713 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16714 | wxString *result = 0 ; | |
16715 | void *argp1 = 0 ; | |
16716 | int res1 = 0 ; | |
16717 | PyObject *swig_obj[1] ; | |
16718 | ||
16719 | if (!args) SWIG_fail; | |
16720 | swig_obj[0] = args; | |
16721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16722 | if (!SWIG_IsOK(res1)) { | |
16723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16724 | } | |
16725 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16726 | { | |
16727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16728 | { | |
16729 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
16730 | result = (wxString *) &_result_ref; | |
16731 | } | |
16732 | wxPyEndAllowThreads(__tstate); | |
16733 | if (PyErr_Occurred()) SWIG_fail; | |
16734 | } | |
16735 | { | |
16736 | #if wxUSE_UNICODE | |
16737 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16738 | #else | |
16739 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16740 | #endif | |
16741 | } | |
16742 | return resultobj; | |
16743 | fail: | |
16744 | return NULL; | |
16745 | } | |
16746 | ||
16747 | ||
16748 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16749 | PyObject *obj; | |
16750 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16751 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
16752 | return SWIG_Py_Void(); | |
16753 | } | |
16754 | ||
16755 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16756 | return SWIG_Python_InitShadowInstance(args); | |
16757 | } | |
16758 | ||
16759 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16760 | PyObject *resultobj = 0; | |
16761 | int arg1 = (int) -1 ; | |
16762 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16763 | wxPyLocale *result = 0 ; | |
16764 | int val1 ; | |
16765 | int ecode1 = 0 ; | |
16766 | int val2 ; | |
16767 | int ecode2 = 0 ; | |
16768 | PyObject * obj0 = 0 ; | |
16769 | PyObject * obj1 = 0 ; | |
16770 | char * kwnames[] = { | |
16771 | (char *) "language",(char *) "flags", NULL | |
16772 | }; | |
16773 | ||
16774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16775 | if (obj0) { | |
16776 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16777 | if (!SWIG_IsOK(ecode1)) { | |
16778 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
16779 | } | |
16780 | arg1 = static_cast< int >(val1); | |
16781 | } | |
16782 | if (obj1) { | |
16783 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16784 | if (!SWIG_IsOK(ecode2)) { | |
16785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
16786 | } | |
16787 | arg2 = static_cast< int >(val2); | |
16788 | } | |
16789 | { | |
16790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16791 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
16792 | wxPyEndAllowThreads(__tstate); | |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
16794 | } | |
16795 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
16796 | return resultobj; | |
16797 | fail: | |
16798 | return NULL; | |
16799 | } | |
16800 | ||
16801 | ||
16802 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16803 | PyObject *resultobj = 0; | |
16804 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
16805 | void *argp1 = 0 ; | |
16806 | int res1 = 0 ; | |
16807 | PyObject *swig_obj[1] ; | |
16808 | ||
16809 | if (!args) SWIG_fail; | |
16810 | swig_obj[0] = args; | |
16811 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
16812 | if (!SWIG_IsOK(res1)) { | |
16813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
16814 | } | |
16815 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16816 | { | |
16817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16818 | delete arg1; | |
16819 | ||
0085ce49 RD |
16820 | wxPyEndAllowThreads(__tstate); |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | } | |
fc46b7f3 | 16823 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
16824 | return resultobj; |
16825 | fail: | |
0085ce49 | 16826 | return NULL; |
d14a1e28 RD |
16827 | } |
16828 | ||
16829 | ||
fc46b7f3 | 16830 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16831 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16832 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16833 | PyObject *arg2 = (PyObject *) 0 ; | |
16834 | PyObject *arg3 = (PyObject *) 0 ; | |
0085ce49 RD |
16835 | void *argp1 = 0 ; |
16836 | int res1 = 0 ; | |
16837 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
16838 | PyObject * obj1 = 0 ; |
16839 | PyObject * obj2 = 0 ; | |
0085ce49 | 16840 | char * kwnames[] = { |
fc46b7f3 | 16841 | (char *) "self",(char *) "self",(char *) "_class", NULL |
0085ce49 RD |
16842 | }; |
16843 | ||
fc46b7f3 RD |
16844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16846 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
0085ce49 | 16848 | } |
fc46b7f3 RD |
16849 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16850 | arg2 = obj1; | |
16851 | arg3 = obj2; | |
0085ce49 RD |
16852 | { |
16853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16854 | (arg1)->_setCallbackInfo(arg2,arg3); |
0085ce49 RD |
16855 | wxPyEndAllowThreads(__tstate); |
16856 | if (PyErr_Occurred()) SWIG_fail; | |
16857 | } | |
16858 | resultobj = SWIG_Py_Void(); | |
16859 | return resultobj; | |
16860 | fail: | |
16861 | return NULL; | |
16862 | } | |
16863 | ||
16864 | ||
fc46b7f3 | 16865 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16866 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16867 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16868 | wxChar *arg2 = (wxChar *) 0 ; | |
16869 | wxChar *arg3 = (wxChar *) NULL ; | |
16870 | wxChar *result = 0 ; | |
0085ce49 RD |
16871 | void *argp1 = 0 ; |
16872 | int res1 = 0 ; | |
fc46b7f3 RD |
16873 | void *argp2 = 0 ; |
16874 | int res2 = 0 ; | |
16875 | void *argp3 = 0 ; | |
16876 | int res3 = 0 ; | |
0085ce49 RD |
16877 | PyObject * obj0 = 0 ; |
16878 | PyObject * obj1 = 0 ; | |
16879 | PyObject * obj2 = 0 ; | |
16880 | char * kwnames[] = { | |
16881 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16882 | }; | |
16883 | ||
fc46b7f3 RD |
16884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16886 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
0085ce49 | 16888 | } |
fc46b7f3 RD |
16889 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16890 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16891 | if (!SWIG_IsOK(res2)) { | |
16892 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
0085ce49 | 16893 | } |
fc46b7f3 | 16894 | arg2 = reinterpret_cast< wxChar * >(argp2); |
0085ce49 | 16895 | if (obj2) { |
fc46b7f3 RD |
16896 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
16897 | if (!SWIG_IsOK(res3)) { | |
16898 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
b6294124 | 16899 | } |
fc46b7f3 | 16900 | arg3 = reinterpret_cast< wxChar * >(argp3); |
0085ce49 RD |
16901 | } |
16902 | { | |
16903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16904 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
0085ce49 RD |
16905 | wxPyEndAllowThreads(__tstate); |
16906 | if (PyErr_Occurred()) SWIG_fail; | |
16907 | } | |
fc46b7f3 | 16908 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16909 | return resultobj; |
16910 | fail: | |
0085ce49 | 16911 | return NULL; |
b6294124 RD |
16912 | } |
16913 | ||
16914 | ||
fc46b7f3 | 16915 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16916 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16917 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16918 | wxChar *arg2 = (wxChar *) 0 ; | |
16919 | wxChar *arg3 = (wxChar *) 0 ; | |
16920 | size_t arg4 ; | |
16921 | wxChar *arg5 = (wxChar *) NULL ; | |
16922 | wxChar *result = 0 ; | |
0085ce49 RD |
16923 | void *argp1 = 0 ; |
16924 | int res1 = 0 ; | |
fc46b7f3 RD |
16925 | void *argp2 = 0 ; |
16926 | int res2 = 0 ; | |
16927 | void *argp3 = 0 ; | |
16928 | int res3 = 0 ; | |
16929 | size_t val4 ; | |
16930 | int ecode4 = 0 ; | |
16931 | void *argp5 = 0 ; | |
16932 | int res5 = 0 ; | |
16933 | PyObject * obj0 = 0 ; | |
16934 | PyObject * obj1 = 0 ; | |
16935 | PyObject * obj2 = 0 ; | |
16936 | PyObject * obj3 = 0 ; | |
16937 | PyObject * obj4 = 0 ; | |
16938 | char * kwnames[] = { | |
16939 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
16940 | }; | |
0085ce49 | 16941 | |
fc46b7f3 RD |
16942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
16943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16944 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
16945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
16946 | } | |
16947 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16948 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16949 | if (!SWIG_IsOK(res2)) { | |
16950 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
16951 | } | |
16952 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
16953 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16954 | if (!SWIG_IsOK(res3)) { | |
16955 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
16956 | } | |
16957 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
16958 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
16959 | if (!SWIG_IsOK(ecode4)) { | |
16960 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
16961 | } | |
16962 | arg4 = static_cast< size_t >(val4); | |
16963 | if (obj4) { | |
16964 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16965 | if (!SWIG_IsOK(res5)) { | |
16966 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
16967 | } | |
16968 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
0085ce49 | 16969 | } |
0085ce49 RD |
16970 | { |
16971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16972 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
0085ce49 RD |
16973 | wxPyEndAllowThreads(__tstate); |
16974 | if (PyErr_Occurred()) SWIG_fail; | |
16975 | } | |
fc46b7f3 | 16976 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16977 | return resultobj; |
16978 | fail: | |
16979 | return NULL; | |
d14a1e28 RD |
16980 | } |
16981 | ||
16982 | ||
fc46b7f3 | 16983 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16984 | PyObject *obj; |
16985 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 16986 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
0085ce49 | 16987 | return SWIG_Py_Void(); |
d14a1e28 RD |
16988 | } |
16989 | ||
fc46b7f3 | 16990 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16991 | return SWIG_Python_InitShadowInstance(args); |
16992 | } | |
d14a1e28 | 16993 | |
0085ce49 RD |
16994 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16995 | PyObject *resultobj = 0; | |
16996 | wxLocale *result = 0 ; | |
16997 | ||
16998 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
16999 | { | |
17000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17001 | result = (wxLocale *)wxGetLocale(); | |
17002 | wxPyEndAllowThreads(__tstate); | |
17003 | if (PyErr_Occurred()) SWIG_fail; | |
17004 | } | |
17005 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17006 | return resultobj; | |
17007 | fail: | |
17008 | return NULL; | |
d14a1e28 RD |
17009 | } |
17010 | ||
17011 | ||
0085ce49 RD |
17012 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17013 | PyObject *resultobj = 0; | |
17014 | wxString *arg1 = 0 ; | |
17015 | wxString result; | |
17016 | bool temp1 = false ; | |
17017 | ||
17018 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
17019 | { | |
17020 | arg1 = wxString_in_helper(swig_obj[0]); | |
17021 | if (arg1 == NULL) SWIG_fail; | |
17022 | temp1 = true; | |
17023 | } | |
17024 | { | |
17025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17026 | result = wxGetTranslation((wxString const &)*arg1); | |
17027 | wxPyEndAllowThreads(__tstate); | |
17028 | if (PyErr_Occurred()) SWIG_fail; | |
17029 | } | |
17030 | { | |
093d3ff1 | 17031 | #if wxUSE_UNICODE |
0085ce49 | 17032 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17033 | #else |
0085ce49 | 17034 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17035 | #endif |
0085ce49 RD |
17036 | } |
17037 | { | |
17038 | if (temp1) | |
17039 | delete arg1; | |
17040 | } | |
17041 | return resultobj; | |
17042 | fail: | |
17043 | { | |
17044 | if (temp1) | |
17045 | delete arg1; | |
17046 | } | |
17047 | return NULL; | |
b6294124 RD |
17048 | } |
17049 | ||
17050 | ||
0085ce49 | 17051 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
17052 | PyObject *resultobj = 0; |
17053 | wxString *arg1 = 0 ; | |
17054 | wxString *arg2 = 0 ; | |
17055 | wxString result; | |
17056 | bool temp1 = false ; | |
17057 | bool temp2 = false ; | |
17058 | ||
17059 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
17060 | { | |
17061 | arg1 = wxString_in_helper(swig_obj[0]); | |
17062 | if (arg1 == NULL) SWIG_fail; | |
17063 | temp1 = true; | |
17064 | } | |
17065 | { | |
17066 | arg2 = wxString_in_helper(swig_obj[1]); | |
17067 | if (arg2 == NULL) SWIG_fail; | |
17068 | temp2 = true; | |
17069 | } | |
17070 | { | |
17071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17072 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
17073 | wxPyEndAllowThreads(__tstate); | |
17074 | if (PyErr_Occurred()) SWIG_fail; | |
17075 | } | |
17076 | { | |
17077 | #if wxUSE_UNICODE | |
17078 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17079 | #else | |
17080 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17081 | #endif | |
17082 | } | |
17083 | { | |
17084 | if (temp1) | |
17085 | delete arg1; | |
17086 | } | |
17087 | { | |
17088 | if (temp2) | |
17089 | delete arg2; | |
17090 | } | |
17091 | return resultobj; | |
17092 | fail: | |
17093 | { | |
17094 | if (temp1) | |
17095 | delete arg1; | |
17096 | } | |
17097 | { | |
17098 | if (temp2) | |
17099 | delete arg2; | |
17100 | } | |
17101 | return NULL; | |
17102 | } | |
17103 | ||
17104 | ||
17105 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
0085ce49 RD |
17106 | PyObject *resultobj = 0; |
17107 | wxString *arg1 = 0 ; | |
17108 | wxString *arg2 = 0 ; | |
17109 | size_t arg3 ; | |
17110 | wxString result; | |
17111 | bool temp1 = false ; | |
17112 | bool temp2 = false ; | |
17113 | size_t val3 ; | |
17114 | int ecode3 = 0 ; | |
17115 | ||
17116 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
17117 | { | |
17118 | arg1 = wxString_in_helper(swig_obj[0]); | |
17119 | if (arg1 == NULL) SWIG_fail; | |
17120 | temp1 = true; | |
17121 | } | |
17122 | { | |
17123 | arg2 = wxString_in_helper(swig_obj[1]); | |
17124 | if (arg2 == NULL) SWIG_fail; | |
17125 | temp2 = true; | |
17126 | } | |
17127 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17128 | if (!SWIG_IsOK(ecode3)) { | |
17129 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17130 | } | |
17131 | arg3 = static_cast< size_t >(val3); | |
17132 | { | |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17134 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
17135 | wxPyEndAllowThreads(__tstate); | |
17136 | if (PyErr_Occurred()) SWIG_fail; | |
17137 | } | |
17138 | { | |
17139 | #if wxUSE_UNICODE | |
17140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17141 | #else | |
17142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17143 | #endif | |
17144 | } | |
17145 | { | |
17146 | if (temp1) | |
17147 | delete arg1; | |
17148 | } | |
17149 | { | |
17150 | if (temp2) | |
17151 | delete arg2; | |
17152 | } | |
17153 | return resultobj; | |
17154 | fail: | |
17155 | { | |
17156 | if (temp1) | |
17157 | delete arg1; | |
17158 | } | |
17159 | { | |
17160 | if (temp2) | |
17161 | delete arg2; | |
17162 | } | |
17163 | return NULL; | |
d14a1e28 RD |
17164 | } |
17165 | ||
17166 | ||
fc46b7f3 RD |
17167 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17168 | PyObject *resultobj = 0; | |
17169 | wxString *arg1 = 0 ; | |
17170 | wxString *arg2 = 0 ; | |
17171 | size_t arg3 ; | |
17172 | wxString *arg4 = 0 ; | |
17173 | wxString result; | |
17174 | bool temp1 = false ; | |
17175 | bool temp2 = false ; | |
17176 | size_t val3 ; | |
17177 | int ecode3 = 0 ; | |
17178 | bool temp4 = false ; | |
17179 | ||
17180 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17181 | { | |
17182 | arg1 = wxString_in_helper(swig_obj[0]); | |
17183 | if (arg1 == NULL) SWIG_fail; | |
17184 | temp1 = true; | |
17185 | } | |
17186 | { | |
17187 | arg2 = wxString_in_helper(swig_obj[1]); | |
17188 | if (arg2 == NULL) SWIG_fail; | |
17189 | temp2 = true; | |
17190 | } | |
17191 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17192 | if (!SWIG_IsOK(ecode3)) { | |
17193 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17194 | } | |
17195 | arg3 = static_cast< size_t >(val3); | |
17196 | { | |
17197 | arg4 = wxString_in_helper(swig_obj[3]); | |
17198 | if (arg4 == NULL) SWIG_fail; | |
17199 | temp4 = true; | |
17200 | } | |
17201 | { | |
17202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17203 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17204 | wxPyEndAllowThreads(__tstate); | |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
17206 | } | |
17207 | { | |
17208 | #if wxUSE_UNICODE | |
17209 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17210 | #else | |
17211 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17212 | #endif | |
17213 | } | |
17214 | { | |
17215 | if (temp1) | |
17216 | delete arg1; | |
17217 | } | |
17218 | { | |
17219 | if (temp2) | |
17220 | delete arg2; | |
17221 | } | |
17222 | { | |
17223 | if (temp4) | |
17224 | delete arg4; | |
17225 | } | |
17226 | return resultobj; | |
17227 | fail: | |
17228 | { | |
17229 | if (temp1) | |
17230 | delete arg1; | |
17231 | } | |
17232 | { | |
17233 | if (temp2) | |
17234 | delete arg2; | |
17235 | } | |
17236 | { | |
17237 | if (temp4) | |
17238 | delete arg4; | |
17239 | } | |
17240 | return NULL; | |
17241 | } | |
17242 | ||
17243 | ||
0085ce49 RD |
17244 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17245 | int argc; | |
fc46b7f3 | 17246 | PyObject *argv[5]; |
0085ce49 | 17247 | |
fc46b7f3 | 17248 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
0085ce49 RD |
17249 | --argc; |
17250 | if (argc == 1) { | |
17251 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17252 | } | |
fc46b7f3 | 17253 | if (argc == 2) { |
0085ce49 RD |
17254 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17255 | } | |
fc46b7f3 RD |
17256 | if (argc == 3) { |
17257 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17258 | } | |
17259 | if (argc == 4) { | |
17260 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17261 | } | |
0085ce49 RD |
17262 | |
17263 | fail: | |
17264 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17265 | return NULL; | |
d14a1e28 RD |
17266 | } |
17267 | ||
17268 | ||
0085ce49 RD |
17269 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17270 | PyObject *resultobj = 0; | |
17271 | wxEncodingConverter *result = 0 ; | |
17272 | ||
17273 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17274 | { | |
17275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17276 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17277 | wxPyEndAllowThreads(__tstate); | |
17278 | if (PyErr_Occurred()) SWIG_fail; | |
17279 | } | |
17280 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17281 | return resultobj; | |
17282 | fail: | |
17283 | return NULL; | |
d14a1e28 RD |
17284 | } |
17285 | ||
17286 | ||
0085ce49 RD |
17287 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17288 | PyObject *resultobj = 0; | |
17289 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17290 | void *argp1 = 0 ; | |
17291 | int res1 = 0 ; | |
17292 | PyObject *swig_obj[1] ; | |
17293 | ||
17294 | if (!args) SWIG_fail; | |
17295 | swig_obj[0] = args; | |
17296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17297 | if (!SWIG_IsOK(res1)) { | |
17298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17299 | } | |
17300 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17301 | { | |
17302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17303 | delete arg1; | |
d14a1e28 | 17304 | |
0085ce49 RD |
17305 | wxPyEndAllowThreads(__tstate); |
17306 | if (PyErr_Occurred()) SWIG_fail; | |
17307 | } | |
17308 | resultobj = SWIG_Py_Void(); | |
17309 | return resultobj; | |
17310 | fail: | |
17311 | return NULL; | |
17312 | } | |
17313 | ||
17314 | ||
17315 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17316 | PyObject *resultobj = 0; | |
17317 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17318 | wxFontEncoding arg2 ; | |
17319 | wxFontEncoding arg3 ; | |
17320 | int arg4 = (int) wxCONVERT_STRICT ; | |
17321 | bool result; | |
17322 | void *argp1 = 0 ; | |
17323 | int res1 = 0 ; | |
17324 | int val2 ; | |
17325 | int ecode2 = 0 ; | |
17326 | int val3 ; | |
17327 | int ecode3 = 0 ; | |
17328 | int val4 ; | |
17329 | int ecode4 = 0 ; | |
17330 | PyObject * obj0 = 0 ; | |
17331 | PyObject * obj1 = 0 ; | |
17332 | PyObject * obj2 = 0 ; | |
17333 | PyObject * obj3 = 0 ; | |
17334 | char * kwnames[] = { | |
17335 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17336 | }; | |
17337 | ||
17338 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17339 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17340 | if (!SWIG_IsOK(res1)) { | |
17341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17342 | } | |
17343 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17344 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17345 | if (!SWIG_IsOK(ecode2)) { | |
17346 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17347 | } | |
17348 | arg2 = static_cast< wxFontEncoding >(val2); | |
17349 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17350 | if (!SWIG_IsOK(ecode3)) { | |
17351 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
17352 | } | |
17353 | arg3 = static_cast< wxFontEncoding >(val3); | |
17354 | if (obj3) { | |
17355 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17356 | if (!SWIG_IsOK(ecode4)) { | |
17357 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
17358 | } | |
17359 | arg4 = static_cast< int >(val4); | |
17360 | } | |
17361 | { | |
17362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17363 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
17364 | wxPyEndAllowThreads(__tstate); | |
17365 | if (PyErr_Occurred()) SWIG_fail; | |
17366 | } | |
17367 | { | |
17368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17369 | } | |
17370 | return resultobj; | |
17371 | fail: | |
17372 | return NULL; | |
17373 | } | |
17374 | ||
17375 | ||
17376 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17377 | PyObject *resultobj = 0; | |
17378 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17379 | wxString *arg2 = 0 ; | |
17380 | wxString result; | |
17381 | void *argp1 = 0 ; | |
17382 | int res1 = 0 ; | |
17383 | bool temp2 = false ; | |
17384 | PyObject * obj0 = 0 ; | |
17385 | PyObject * obj1 = 0 ; | |
17386 | char * kwnames[] = { | |
17387 | (char *) "self",(char *) "input", NULL | |
17388 | }; | |
17389 | ||
17390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17392 | if (!SWIG_IsOK(res1)) { | |
17393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17394 | } | |
17395 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17396 | { | |
17397 | arg2 = wxString_in_helper(obj1); | |
17398 | if (arg2 == NULL) SWIG_fail; | |
17399 | temp2 = true; | |
17400 | } | |
17401 | { | |
17402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17403 | result = (arg1)->Convert((wxString const &)*arg2); | |
17404 | wxPyEndAllowThreads(__tstate); | |
17405 | if (PyErr_Occurred()) SWIG_fail; | |
17406 | } | |
17407 | { | |
17408 | #if wxUSE_UNICODE | |
17409 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17410 | #else | |
17411 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17412 | #endif | |
17413 | } | |
17414 | { | |
17415 | if (temp2) | |
17416 | delete arg2; | |
17417 | } | |
17418 | return resultobj; | |
17419 | fail: | |
17420 | { | |
17421 | if (temp2) | |
17422 | delete arg2; | |
17423 | } | |
17424 | return NULL; | |
17425 | } | |
17426 | ||
17427 | ||
17428 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17429 | PyObject *resultobj = 0; | |
17430 | wxFontEncoding arg1 ; | |
17431 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
17432 | wxFontEncodingArray result; | |
17433 | int val1 ; | |
17434 | int ecode1 = 0 ; | |
17435 | int val2 ; | |
17436 | int ecode2 = 0 ; | |
17437 | PyObject * obj0 = 0 ; | |
17438 | PyObject * obj1 = 0 ; | |
17439 | char * kwnames[] = { | |
17440 | (char *) "enc",(char *) "platform", NULL | |
17441 | }; | |
17442 | ||
17443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
17444 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17445 | if (!SWIG_IsOK(ecode1)) { | |
17446 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17447 | } | |
17448 | arg1 = static_cast< wxFontEncoding >(val1); | |
17449 | if (obj1) { | |
17450 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17451 | if (!SWIG_IsOK(ecode2)) { | |
17452 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
17453 | } | |
17454 | arg2 = static_cast< int >(val2); | |
17455 | } | |
17456 | { | |
17457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17458 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
17459 | wxPyEndAllowThreads(__tstate); | |
17460 | if (PyErr_Occurred()) SWIG_fail; | |
17461 | } | |
17462 | { | |
17463 | resultobj = PyList_New(0); | |
17464 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17465 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17466 | PyList_Append(resultobj, number); | |
17467 | Py_DECREF(number); | |
093d3ff1 | 17468 | } |
0085ce49 RD |
17469 | } |
17470 | return resultobj; | |
17471 | fail: | |
17472 | return NULL; | |
d14a1e28 RD |
17473 | } |
17474 | ||
17475 | ||
0085ce49 RD |
17476 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17477 | PyObject *resultobj = 0; | |
17478 | wxFontEncoding arg1 ; | |
17479 | wxFontEncodingArray result; | |
17480 | int val1 ; | |
17481 | int ecode1 = 0 ; | |
17482 | PyObject * obj0 = 0 ; | |
17483 | char * kwnames[] = { | |
17484 | (char *) "enc", NULL | |
17485 | }; | |
17486 | ||
17487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
17488 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17489 | if (!SWIG_IsOK(ecode1)) { | |
17490 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17491 | } | |
17492 | arg1 = static_cast< wxFontEncoding >(val1); | |
17493 | { | |
17494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17495 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
17496 | wxPyEndAllowThreads(__tstate); | |
17497 | if (PyErr_Occurred()) SWIG_fail; | |
17498 | } | |
17499 | { | |
17500 | resultobj = PyList_New(0); | |
17501 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17502 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17503 | PyList_Append(resultobj, number); | |
17504 | Py_DECREF(number); | |
093d3ff1 | 17505 | } |
0085ce49 RD |
17506 | } |
17507 | return resultobj; | |
17508 | fail: | |
17509 | return NULL; | |
17510 | } | |
17511 | ||
17512 | ||
17513 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17514 | PyObject *resultobj = 0; | |
17515 | wxFontEncoding arg1 ; | |
17516 | wxFontEncoding arg2 ; | |
17517 | bool result; | |
17518 | int val1 ; | |
17519 | int ecode1 = 0 ; | |
17520 | int val2 ; | |
17521 | int ecode2 = 0 ; | |
17522 | PyObject * obj0 = 0 ; | |
17523 | PyObject * obj1 = 0 ; | |
17524 | char * kwnames[] = { | |
17525 | (char *) "encIn",(char *) "encOut", NULL | |
17526 | }; | |
17527 | ||
17528 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17529 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17530 | if (!SWIG_IsOK(ecode1)) { | |
17531 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17532 | } | |
17533 | arg1 = static_cast< wxFontEncoding >(val1); | |
17534 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17535 | if (!SWIG_IsOK(ecode2)) { | |
17536 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17537 | } | |
17538 | arg2 = static_cast< wxFontEncoding >(val2); | |
17539 | { | |
17540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17541 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
17542 | wxPyEndAllowThreads(__tstate); | |
17543 | if (PyErr_Occurred()) SWIG_fail; | |
17544 | } | |
17545 | { | |
17546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17547 | } | |
17548 | return resultobj; | |
17549 | fail: | |
17550 | return NULL; | |
d14a1e28 RD |
17551 | } |
17552 | ||
17553 | ||
0085ce49 RD |
17554 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17555 | PyObject *obj; | |
17556 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17557 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
17558 | return SWIG_Py_Void(); | |
d14a1e28 RD |
17559 | } |
17560 | ||
0085ce49 RD |
17561 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17562 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
17563 | } |
17564 | ||
0085ce49 RD |
17565 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17566 | PyObject *resultobj = 0; | |
17567 | wxDC *arg1 = (wxDC *) 0 ; | |
17568 | void *argp1 = 0 ; | |
17569 | int res1 = 0 ; | |
17570 | PyObject *swig_obj[1] ; | |
17571 | ||
17572 | if (!args) SWIG_fail; | |
17573 | swig_obj[0] = args; | |
17574 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
17575 | if (!SWIG_IsOK(res1)) { | |
17576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17577 | } | |
17578 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17579 | { | |
17580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17581 | delete arg1; | |
d14a1e28 | 17582 | |
0085ce49 RD |
17583 | wxPyEndAllowThreads(__tstate); |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | } | |
17586 | resultobj = SWIG_Py_Void(); | |
17587 | return resultobj; | |
17588 | fail: | |
17589 | return NULL; | |
17590 | } | |
17591 | ||
17592 | ||
17593 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17594 | PyObject *resultobj = 0; | |
17595 | wxDC *arg1 = (wxDC *) 0 ; | |
17596 | int arg2 ; | |
17597 | int arg3 ; | |
17598 | wxColour *arg4 = 0 ; | |
17599 | int arg5 = (int) wxFLOOD_SURFACE ; | |
17600 | bool result; | |
17601 | void *argp1 = 0 ; | |
17602 | int res1 = 0 ; | |
17603 | int val2 ; | |
17604 | int ecode2 = 0 ; | |
17605 | int val3 ; | |
17606 | int ecode3 = 0 ; | |
17607 | wxColour temp4 ; | |
17608 | int val5 ; | |
17609 | int ecode5 = 0 ; | |
17610 | PyObject * obj0 = 0 ; | |
17611 | PyObject * obj1 = 0 ; | |
17612 | PyObject * obj2 = 0 ; | |
17613 | PyObject * obj3 = 0 ; | |
17614 | PyObject * obj4 = 0 ; | |
17615 | char * kwnames[] = { | |
17616 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
17617 | }; | |
17618 | ||
17619 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17620 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17621 | if (!SWIG_IsOK(res1)) { | |
17622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17623 | } | |
17624 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17625 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17626 | if (!SWIG_IsOK(ecode2)) { | |
17627 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
17628 | } | |
17629 | arg2 = static_cast< int >(val2); | |
17630 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17631 | if (!SWIG_IsOK(ecode3)) { | |
17632 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
17633 | } | |
17634 | arg3 = static_cast< int >(val3); | |
17635 | { | |
17636 | arg4 = &temp4; | |
17637 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17638 | } | |
17639 | if (obj4) { | |
17640 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17641 | if (!SWIG_IsOK(ecode5)) { | |
17642 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
17643 | } | |
17644 | arg5 = static_cast< int >(val5); | |
17645 | } | |
17646 | { | |
17647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17648 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
17649 | wxPyEndAllowThreads(__tstate); | |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
17651 | } | |
17652 | { | |
17653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17654 | } | |
17655 | return resultobj; | |
17656 | fail: | |
17657 | return NULL; | |
17658 | } | |
17659 | ||
17660 | ||
17661 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17662 | PyObject *resultobj = 0; | |
17663 | wxDC *arg1 = (wxDC *) 0 ; | |
17664 | wxPoint *arg2 = 0 ; | |
17665 | wxColour *arg3 = 0 ; | |
17666 | int arg4 = (int) wxFLOOD_SURFACE ; | |
17667 | bool result; | |
17668 | void *argp1 = 0 ; | |
17669 | int res1 = 0 ; | |
17670 | wxPoint temp2 ; | |
17671 | wxColour temp3 ; | |
17672 | int val4 ; | |
17673 | int ecode4 = 0 ; | |
17674 | PyObject * obj0 = 0 ; | |
17675 | PyObject * obj1 = 0 ; | |
17676 | PyObject * obj2 = 0 ; | |
17677 | PyObject * obj3 = 0 ; | |
17678 | char * kwnames[] = { | |
17679 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
17680 | }; | |
17681 | ||
17682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17684 | if (!SWIG_IsOK(res1)) { | |
17685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17686 | } | |
17687 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17688 | { | |
17689 | arg2 = &temp2; | |
17690 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17691 | } | |
17692 | { | |
17693 | arg3 = &temp3; | |
17694 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17695 | } | |
17696 | if (obj3) { | |
17697 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17698 | if (!SWIG_IsOK(ecode4)) { | |
17699 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
17700 | } | |
17701 | arg4 = static_cast< int >(val4); | |
17702 | } | |
17703 | { | |
17704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17705 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
17706 | wxPyEndAllowThreads(__tstate); | |
17707 | if (PyErr_Occurred()) SWIG_fail; | |
17708 | } | |
17709 | { | |
17710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17711 | } | |
17712 | return resultobj; | |
17713 | fail: | |
17714 | return NULL; | |
17715 | } | |
17716 | ||
17717 | ||
17718 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17719 | PyObject *resultobj = 0; | |
17720 | wxDC *arg1 = (wxDC *) 0 ; | |
17721 | wxRect *arg2 = 0 ; | |
17722 | wxColour *arg3 = 0 ; | |
17723 | wxColour *arg4 = 0 ; | |
17724 | wxPoint *arg5 = 0 ; | |
17725 | void *argp1 = 0 ; | |
17726 | int res1 = 0 ; | |
17727 | wxRect temp2 ; | |
17728 | wxColour temp3 ; | |
17729 | wxColour temp4 ; | |
17730 | wxPoint temp5 ; | |
17731 | PyObject * obj0 = 0 ; | |
17732 | PyObject * obj1 = 0 ; | |
17733 | PyObject * obj2 = 0 ; | |
17734 | PyObject * obj3 = 0 ; | |
17735 | PyObject * obj4 = 0 ; | |
17736 | char * kwnames[] = { | |
17737 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
17738 | }; | |
17739 | ||
17740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17742 | if (!SWIG_IsOK(res1)) { | |
17743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17744 | } | |
17745 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17746 | { | |
17747 | arg2 = &temp2; | |
17748 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17749 | } | |
17750 | { | |
17751 | arg3 = &temp3; | |
17752 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17753 | } | |
17754 | { | |
17755 | arg4 = &temp4; | |
17756 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17757 | } | |
17758 | { | |
17759 | arg5 = &temp5; | |
17760 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
17761 | } | |
17762 | { | |
17763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17764 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
17765 | wxPyEndAllowThreads(__tstate); | |
17766 | if (PyErr_Occurred()) SWIG_fail; | |
17767 | } | |
17768 | resultobj = SWIG_Py_Void(); | |
17769 | return resultobj; | |
17770 | fail: | |
17771 | return NULL; | |
17772 | } | |
17773 | ||
17774 | ||
17775 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17776 | PyObject *resultobj = 0; | |
17777 | wxDC *arg1 = (wxDC *) 0 ; | |
17778 | wxRect *arg2 = 0 ; | |
17779 | wxColour *arg3 = 0 ; | |
17780 | wxColour *arg4 = 0 ; | |
17781 | wxDirection arg5 = (wxDirection) wxEAST ; | |
17782 | void *argp1 = 0 ; | |
17783 | int res1 = 0 ; | |
17784 | wxRect temp2 ; | |
17785 | wxColour temp3 ; | |
17786 | wxColour temp4 ; | |
17787 | int val5 ; | |
17788 | int ecode5 = 0 ; | |
17789 | PyObject * obj0 = 0 ; | |
17790 | PyObject * obj1 = 0 ; | |
17791 | PyObject * obj2 = 0 ; | |
17792 | PyObject * obj3 = 0 ; | |
17793 | PyObject * obj4 = 0 ; | |
17794 | char * kwnames[] = { | |
17795 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
17796 | }; | |
17797 | ||
17798 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17799 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17800 | if (!SWIG_IsOK(res1)) { | |
17801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17802 | } | |
17803 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17804 | { | |
17805 | arg2 = &temp2; | |
17806 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17807 | } | |
17808 | { | |
17809 | arg3 = &temp3; | |
17810 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17811 | } | |
17812 | { | |
17813 | arg4 = &temp4; | |
17814 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17815 | } | |
17816 | if (obj4) { | |
17817 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17818 | if (!SWIG_IsOK(ecode5)) { | |
17819 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
17820 | } | |
17821 | arg5 = static_cast< wxDirection >(val5); | |
17822 | } | |
17823 | { | |
17824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17825 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
17826 | wxPyEndAllowThreads(__tstate); | |
17827 | if (PyErr_Occurred()) SWIG_fail; | |
17828 | } | |
17829 | resultobj = SWIG_Py_Void(); | |
17830 | return resultobj; | |
17831 | fail: | |
17832 | return NULL; | |
17833 | } | |
17834 | ||
17835 | ||
17836 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17837 | PyObject *resultobj = 0; | |
17838 | wxDC *arg1 = (wxDC *) 0 ; | |
17839 | int arg2 ; | |
17840 | int arg3 ; | |
17841 | wxColour result; | |
17842 | void *argp1 = 0 ; | |
17843 | int res1 = 0 ; | |
17844 | int val2 ; | |
17845 | int ecode2 = 0 ; | |
17846 | int val3 ; | |
17847 | int ecode3 = 0 ; | |
17848 | PyObject * obj0 = 0 ; | |
17849 | PyObject * obj1 = 0 ; | |
17850 | PyObject * obj2 = 0 ; | |
17851 | char * kwnames[] = { | |
17852 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17853 | }; | |
17854 | ||
17855 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17856 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17857 | if (!SWIG_IsOK(res1)) { | |
17858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17859 | } | |
17860 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17861 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17862 | if (!SWIG_IsOK(ecode2)) { | |
17863 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
17864 | } | |
17865 | arg2 = static_cast< int >(val2); | |
17866 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17867 | if (!SWIG_IsOK(ecode3)) { | |
17868 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
17869 | } | |
17870 | arg3 = static_cast< int >(val3); | |
17871 | { | |
17872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17873 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
17874 | wxPyEndAllowThreads(__tstate); | |
17875 | if (PyErr_Occurred()) SWIG_fail; | |
17876 | } | |
17877 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17878 | return resultobj; | |
17879 | fail: | |
17880 | return NULL; | |
17881 | } | |
17882 | ||
17883 | ||
17884 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17885 | PyObject *resultobj = 0; | |
17886 | wxDC *arg1 = (wxDC *) 0 ; | |
17887 | wxPoint *arg2 = 0 ; | |
17888 | wxColour result; | |
17889 | void *argp1 = 0 ; | |
17890 | int res1 = 0 ; | |
17891 | wxPoint temp2 ; | |
17892 | PyObject * obj0 = 0 ; | |
17893 | PyObject * obj1 = 0 ; | |
17894 | char * kwnames[] = { | |
17895 | (char *) "self",(char *) "pt", NULL | |
17896 | }; | |
17897 | ||
17898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
17899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17900 | if (!SWIG_IsOK(res1)) { | |
17901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17902 | } | |
17903 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17904 | { | |
17905 | arg2 = &temp2; | |
17906 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17907 | } | |
17908 | { | |
17909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17910 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
17911 | wxPyEndAllowThreads(__tstate); | |
17912 | if (PyErr_Occurred()) SWIG_fail; | |
17913 | } | |
17914 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17915 | return resultobj; | |
17916 | fail: | |
17917 | return NULL; | |
17918 | } | |
17919 | ||
17920 | ||
17921 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17922 | PyObject *resultobj = 0; | |
17923 | wxDC *arg1 = (wxDC *) 0 ; | |
17924 | int arg2 ; | |
17925 | int arg3 ; | |
17926 | int arg4 ; | |
17927 | int arg5 ; | |
17928 | void *argp1 = 0 ; | |
17929 | int res1 = 0 ; | |
17930 | int val2 ; | |
17931 | int ecode2 = 0 ; | |
17932 | int val3 ; | |
17933 | int ecode3 = 0 ; | |
17934 | int val4 ; | |
17935 | int ecode4 = 0 ; | |
17936 | int val5 ; | |
17937 | int ecode5 = 0 ; | |
17938 | PyObject * obj0 = 0 ; | |
17939 | PyObject * obj1 = 0 ; | |
17940 | PyObject * obj2 = 0 ; | |
17941 | PyObject * obj3 = 0 ; | |
17942 | PyObject * obj4 = 0 ; | |
17943 | char * kwnames[] = { | |
17944 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
17945 | }; | |
17946 | ||
17947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17949 | if (!SWIG_IsOK(res1)) { | |
17950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17951 | } | |
17952 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17953 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17954 | if (!SWIG_IsOK(ecode2)) { | |
17955 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
17956 | } | |
17957 | arg2 = static_cast< int >(val2); | |
17958 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17959 | if (!SWIG_IsOK(ecode3)) { | |
17960 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
17961 | } | |
17962 | arg3 = static_cast< int >(val3); | |
17963 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17964 | if (!SWIG_IsOK(ecode4)) { | |
17965 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
17966 | } | |
17967 | arg4 = static_cast< int >(val4); | |
17968 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17969 | if (!SWIG_IsOK(ecode5)) { | |
17970 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
17971 | } | |
17972 | arg5 = static_cast< int >(val5); | |
17973 | { | |
17974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17975 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
17976 | wxPyEndAllowThreads(__tstate); | |
17977 | if (PyErr_Occurred()) SWIG_fail; | |
17978 | } | |
17979 | resultobj = SWIG_Py_Void(); | |
17980 | return resultobj; | |
17981 | fail: | |
17982 | return NULL; | |
17983 | } | |
17984 | ||
17985 | ||
17986 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17987 | PyObject *resultobj = 0; | |
17988 | wxDC *arg1 = (wxDC *) 0 ; | |
17989 | wxPoint *arg2 = 0 ; | |
17990 | wxPoint *arg3 = 0 ; | |
17991 | void *argp1 = 0 ; | |
17992 | int res1 = 0 ; | |
17993 | wxPoint temp2 ; | |
17994 | wxPoint temp3 ; | |
17995 | PyObject * obj0 = 0 ; | |
17996 | PyObject * obj1 = 0 ; | |
17997 | PyObject * obj2 = 0 ; | |
17998 | char * kwnames[] = { | |
17999 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
18000 | }; | |
18001 | ||
18002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18003 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18004 | if (!SWIG_IsOK(res1)) { | |
18005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18006 | } | |
18007 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18008 | { | |
18009 | arg2 = &temp2; | |
18010 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18011 | } | |
18012 | { | |
18013 | arg3 = &temp3; | |
18014 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18015 | } | |
18016 | { | |
18017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18018 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
18019 | wxPyEndAllowThreads(__tstate); | |
18020 | if (PyErr_Occurred()) SWIG_fail; | |
18021 | } | |
18022 | resultobj = SWIG_Py_Void(); | |
18023 | return resultobj; | |
18024 | fail: | |
18025 | return NULL; | |
18026 | } | |
18027 | ||
18028 | ||
18029 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18030 | PyObject *resultobj = 0; | |
18031 | wxDC *arg1 = (wxDC *) 0 ; | |
18032 | int arg2 ; | |
18033 | int arg3 ; | |
18034 | void *argp1 = 0 ; | |
18035 | int res1 = 0 ; | |
18036 | int val2 ; | |
18037 | int ecode2 = 0 ; | |
18038 | int val3 ; | |
18039 | int ecode3 = 0 ; | |
18040 | PyObject * obj0 = 0 ; | |
18041 | PyObject * obj1 = 0 ; | |
18042 | PyObject * obj2 = 0 ; | |
18043 | char * kwnames[] = { | |
18044 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18045 | }; | |
18046 | ||
18047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18049 | if (!SWIG_IsOK(res1)) { | |
18050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18051 | } | |
18052 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18053 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18054 | if (!SWIG_IsOK(ecode2)) { | |
18055 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
18056 | } | |
18057 | arg2 = static_cast< int >(val2); | |
18058 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18059 | if (!SWIG_IsOK(ecode3)) { | |
18060 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
18061 | } | |
18062 | arg3 = static_cast< int >(val3); | |
18063 | { | |
18064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18065 | (arg1)->CrossHair(arg2,arg3); | |
18066 | wxPyEndAllowThreads(__tstate); | |
18067 | if (PyErr_Occurred()) SWIG_fail; | |
18068 | } | |
18069 | resultobj = SWIG_Py_Void(); | |
18070 | return resultobj; | |
18071 | fail: | |
18072 | return NULL; | |
18073 | } | |
18074 | ||
18075 | ||
18076 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18077 | PyObject *resultobj = 0; | |
18078 | wxDC *arg1 = (wxDC *) 0 ; | |
18079 | wxPoint *arg2 = 0 ; | |
18080 | void *argp1 = 0 ; | |
18081 | int res1 = 0 ; | |
18082 | wxPoint temp2 ; | |
18083 | PyObject * obj0 = 0 ; | |
18084 | PyObject * obj1 = 0 ; | |
18085 | char * kwnames[] = { | |
18086 | (char *) "self",(char *) "pt", NULL | |
18087 | }; | |
18088 | ||
18089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18091 | if (!SWIG_IsOK(res1)) { | |
18092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18093 | } | |
18094 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18095 | { | |
18096 | arg2 = &temp2; | |
18097 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18098 | } | |
18099 | { | |
18100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18101 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
18102 | wxPyEndAllowThreads(__tstate); | |
18103 | if (PyErr_Occurred()) SWIG_fail; | |
18104 | } | |
18105 | resultobj = SWIG_Py_Void(); | |
18106 | return resultobj; | |
18107 | fail: | |
18108 | return NULL; | |
18109 | } | |
18110 | ||
18111 | ||
18112 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18113 | PyObject *resultobj = 0; | |
18114 | wxDC *arg1 = (wxDC *) 0 ; | |
18115 | int arg2 ; | |
18116 | int arg3 ; | |
18117 | int arg4 ; | |
18118 | int arg5 ; | |
18119 | int arg6 ; | |
18120 | int arg7 ; | |
18121 | void *argp1 = 0 ; | |
18122 | int res1 = 0 ; | |
18123 | int val2 ; | |
18124 | int ecode2 = 0 ; | |
18125 | int val3 ; | |
18126 | int ecode3 = 0 ; | |
18127 | int val4 ; | |
18128 | int ecode4 = 0 ; | |
18129 | int val5 ; | |
18130 | int ecode5 = 0 ; | |
18131 | int val6 ; | |
18132 | int ecode6 = 0 ; | |
18133 | int val7 ; | |
18134 | int ecode7 = 0 ; | |
18135 | PyObject * obj0 = 0 ; | |
18136 | PyObject * obj1 = 0 ; | |
18137 | PyObject * obj2 = 0 ; | |
18138 | PyObject * obj3 = 0 ; | |
18139 | PyObject * obj4 = 0 ; | |
18140 | PyObject * obj5 = 0 ; | |
18141 | PyObject * obj6 = 0 ; | |
18142 | char * kwnames[] = { | |
18143 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
18144 | }; | |
18145 | ||
18146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18147 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18148 | if (!SWIG_IsOK(res1)) { | |
18149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18150 | } | |
18151 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18152 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18153 | if (!SWIG_IsOK(ecode2)) { | |
18154 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
18155 | } | |
18156 | arg2 = static_cast< int >(val2); | |
18157 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18158 | if (!SWIG_IsOK(ecode3)) { | |
18159 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
18160 | } | |
18161 | arg3 = static_cast< int >(val3); | |
18162 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18163 | if (!SWIG_IsOK(ecode4)) { | |
18164 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
18165 | } | |
18166 | arg4 = static_cast< int >(val4); | |
18167 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18168 | if (!SWIG_IsOK(ecode5)) { | |
18169 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18170 | } | |
18171 | arg5 = static_cast< int >(val5); | |
18172 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18173 | if (!SWIG_IsOK(ecode6)) { | |
18174 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18175 | } | |
18176 | arg6 = static_cast< int >(val6); | |
18177 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18178 | if (!SWIG_IsOK(ecode7)) { | |
18179 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18180 | } | |
18181 | arg7 = static_cast< int >(val7); | |
18182 | { | |
18183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18184 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18185 | wxPyEndAllowThreads(__tstate); | |
18186 | if (PyErr_Occurred()) SWIG_fail; | |
18187 | } | |
18188 | resultobj = SWIG_Py_Void(); | |
18189 | return resultobj; | |
18190 | fail: | |
18191 | return NULL; | |
18192 | } | |
18193 | ||
18194 | ||
18195 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18196 | PyObject *resultobj = 0; | |
18197 | wxDC *arg1 = (wxDC *) 0 ; | |
18198 | wxPoint *arg2 = 0 ; | |
18199 | wxPoint *arg3 = 0 ; | |
18200 | wxPoint *arg4 = 0 ; | |
18201 | void *argp1 = 0 ; | |
18202 | int res1 = 0 ; | |
18203 | wxPoint temp2 ; | |
18204 | wxPoint temp3 ; | |
18205 | wxPoint temp4 ; | |
18206 | PyObject * obj0 = 0 ; | |
18207 | PyObject * obj1 = 0 ; | |
18208 | PyObject * obj2 = 0 ; | |
18209 | PyObject * obj3 = 0 ; | |
18210 | char * kwnames[] = { | |
18211 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18212 | }; | |
18213 | ||
18214 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18216 | if (!SWIG_IsOK(res1)) { | |
18217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18218 | } | |
18219 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18220 | { | |
18221 | arg2 = &temp2; | |
18222 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18223 | } | |
18224 | { | |
18225 | arg3 = &temp3; | |
18226 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18227 | } | |
18228 | { | |
18229 | arg4 = &temp4; | |
18230 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18231 | } | |
18232 | { | |
18233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18234 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18235 | wxPyEndAllowThreads(__tstate); | |
18236 | if (PyErr_Occurred()) SWIG_fail; | |
18237 | } | |
18238 | resultobj = SWIG_Py_Void(); | |
18239 | return resultobj; | |
18240 | fail: | |
18241 | return NULL; | |
18242 | } | |
18243 | ||
18244 | ||
18245 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18246 | PyObject *resultobj = 0; | |
18247 | wxDC *arg1 = (wxDC *) 0 ; | |
18248 | int arg2 ; | |
18249 | int arg3 ; | |
18250 | int arg4 ; | |
18251 | int arg5 ; | |
18252 | void *argp1 = 0 ; | |
18253 | int res1 = 0 ; | |
18254 | int val2 ; | |
18255 | int ecode2 = 0 ; | |
18256 | int val3 ; | |
18257 | int ecode3 = 0 ; | |
18258 | int val4 ; | |
18259 | int ecode4 = 0 ; | |
18260 | int val5 ; | |
18261 | int ecode5 = 0 ; | |
18262 | PyObject * obj0 = 0 ; | |
18263 | PyObject * obj1 = 0 ; | |
18264 | PyObject * obj2 = 0 ; | |
18265 | PyObject * obj3 = 0 ; | |
18266 | PyObject * obj4 = 0 ; | |
18267 | char * kwnames[] = { | |
18268 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18269 | }; | |
18270 | ||
18271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18273 | if (!SWIG_IsOK(res1)) { | |
18274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18275 | } | |
18276 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18277 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18278 | if (!SWIG_IsOK(ecode2)) { | |
18279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18280 | } | |
18281 | arg2 = static_cast< int >(val2); | |
18282 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18283 | if (!SWIG_IsOK(ecode3)) { | |
18284 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18285 | } | |
18286 | arg3 = static_cast< int >(val3); | |
18287 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18288 | if (!SWIG_IsOK(ecode4)) { | |
18289 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18290 | } | |
18291 | arg4 = static_cast< int >(val4); | |
18292 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18293 | if (!SWIG_IsOK(ecode5)) { | |
18294 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18295 | } | |
18296 | arg5 = static_cast< int >(val5); | |
18297 | { | |
18298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18299 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18300 | wxPyEndAllowThreads(__tstate); | |
18301 | if (PyErr_Occurred()) SWIG_fail; | |
18302 | } | |
18303 | resultobj = SWIG_Py_Void(); | |
18304 | return resultobj; | |
18305 | fail: | |
18306 | return NULL; | |
18307 | } | |
18308 | ||
18309 | ||
18310 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18311 | PyObject *resultobj = 0; | |
18312 | wxDC *arg1 = (wxDC *) 0 ; | |
18313 | wxRect *arg2 = 0 ; | |
18314 | void *argp1 = 0 ; | |
18315 | int res1 = 0 ; | |
18316 | wxRect temp2 ; | |
18317 | PyObject * obj0 = 0 ; | |
18318 | PyObject * obj1 = 0 ; | |
18319 | char * kwnames[] = { | |
18320 | (char *) "self",(char *) "rect", NULL | |
18321 | }; | |
18322 | ||
18323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18325 | if (!SWIG_IsOK(res1)) { | |
18326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18327 | } | |
18328 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18329 | { | |
18330 | arg2 = &temp2; | |
18331 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18332 | } | |
18333 | { | |
18334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18335 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18336 | wxPyEndAllowThreads(__tstate); | |
18337 | if (PyErr_Occurred()) SWIG_fail; | |
18338 | } | |
18339 | resultobj = SWIG_Py_Void(); | |
18340 | return resultobj; | |
18341 | fail: | |
18342 | return NULL; | |
18343 | } | |
18344 | ||
18345 | ||
18346 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18347 | PyObject *resultobj = 0; | |
18348 | wxDC *arg1 = (wxDC *) 0 ; | |
18349 | int arg2 ; | |
18350 | int arg3 ; | |
18351 | int arg4 ; | |
18352 | int arg5 ; | |
18353 | double arg6 ; | |
18354 | double arg7 ; | |
18355 | void *argp1 = 0 ; | |
18356 | int res1 = 0 ; | |
18357 | int val2 ; | |
18358 | int ecode2 = 0 ; | |
18359 | int val3 ; | |
18360 | int ecode3 = 0 ; | |
18361 | int val4 ; | |
18362 | int ecode4 = 0 ; | |
18363 | int val5 ; | |
18364 | int ecode5 = 0 ; | |
18365 | double val6 ; | |
18366 | int ecode6 = 0 ; | |
18367 | double val7 ; | |
18368 | int ecode7 = 0 ; | |
18369 | PyObject * obj0 = 0 ; | |
18370 | PyObject * obj1 = 0 ; | |
18371 | PyObject * obj2 = 0 ; | |
18372 | PyObject * obj3 = 0 ; | |
18373 | PyObject * obj4 = 0 ; | |
18374 | PyObject * obj5 = 0 ; | |
18375 | PyObject * obj6 = 0 ; | |
18376 | char * kwnames[] = { | |
18377 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
18378 | }; | |
18379 | ||
18380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18382 | if (!SWIG_IsOK(res1)) { | |
18383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18384 | } | |
18385 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18386 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18387 | if (!SWIG_IsOK(ecode2)) { | |
18388 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
18389 | } | |
18390 | arg2 = static_cast< int >(val2); | |
18391 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18392 | if (!SWIG_IsOK(ecode3)) { | |
18393 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
18394 | } | |
18395 | arg3 = static_cast< int >(val3); | |
18396 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18397 | if (!SWIG_IsOK(ecode4)) { | |
18398 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
18399 | } | |
18400 | arg4 = static_cast< int >(val4); | |
18401 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18402 | if (!SWIG_IsOK(ecode5)) { | |
18403 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
18404 | } | |
18405 | arg5 = static_cast< int >(val5); | |
18406 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18407 | if (!SWIG_IsOK(ecode6)) { | |
18408 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
18409 | } | |
18410 | arg6 = static_cast< double >(val6); | |
18411 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
18412 | if (!SWIG_IsOK(ecode7)) { | |
18413 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
18414 | } | |
18415 | arg7 = static_cast< double >(val7); | |
18416 | { | |
18417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18418 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18419 | wxPyEndAllowThreads(__tstate); | |
18420 | if (PyErr_Occurred()) SWIG_fail; | |
18421 | } | |
18422 | resultobj = SWIG_Py_Void(); | |
18423 | return resultobj; | |
18424 | fail: | |
18425 | return NULL; | |
18426 | } | |
18427 | ||
18428 | ||
18429 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18430 | PyObject *resultobj = 0; | |
18431 | wxDC *arg1 = (wxDC *) 0 ; | |
18432 | wxPoint *arg2 = 0 ; | |
18433 | wxSize *arg3 = 0 ; | |
18434 | double arg4 ; | |
18435 | double arg5 ; | |
18436 | void *argp1 = 0 ; | |
18437 | int res1 = 0 ; | |
18438 | wxPoint temp2 ; | |
18439 | wxSize temp3 ; | |
18440 | double val4 ; | |
18441 | int ecode4 = 0 ; | |
18442 | double val5 ; | |
18443 | int ecode5 = 0 ; | |
18444 | PyObject * obj0 = 0 ; | |
18445 | PyObject * obj1 = 0 ; | |
18446 | PyObject * obj2 = 0 ; | |
18447 | PyObject * obj3 = 0 ; | |
18448 | PyObject * obj4 = 0 ; | |
18449 | char * kwnames[] = { | |
18450 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
18451 | }; | |
18452 | ||
18453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18455 | if (!SWIG_IsOK(res1)) { | |
18456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18457 | } | |
18458 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18459 | { | |
18460 | arg2 = &temp2; | |
18461 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18462 | } | |
18463 | { | |
18464 | arg3 = &temp3; | |
18465 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18466 | } | |
18467 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18468 | if (!SWIG_IsOK(ecode4)) { | |
18469 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
18470 | } | |
18471 | arg4 = static_cast< double >(val4); | |
18472 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
18473 | if (!SWIG_IsOK(ecode5)) { | |
18474 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
18475 | } | |
18476 | arg5 = static_cast< double >(val5); | |
18477 | { | |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
18480 | wxPyEndAllowThreads(__tstate); | |
18481 | if (PyErr_Occurred()) SWIG_fail; | |
18482 | } | |
18483 | resultobj = SWIG_Py_Void(); | |
18484 | return resultobj; | |
18485 | fail: | |
18486 | return NULL; | |
18487 | } | |
18488 | ||
18489 | ||
18490 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18491 | PyObject *resultobj = 0; | |
18492 | wxDC *arg1 = (wxDC *) 0 ; | |
18493 | int arg2 ; | |
18494 | int arg3 ; | |
18495 | void *argp1 = 0 ; | |
18496 | int res1 = 0 ; | |
18497 | int val2 ; | |
18498 | int ecode2 = 0 ; | |
18499 | int val3 ; | |
18500 | int ecode3 = 0 ; | |
18501 | PyObject * obj0 = 0 ; | |
18502 | PyObject * obj1 = 0 ; | |
18503 | PyObject * obj2 = 0 ; | |
18504 | char * kwnames[] = { | |
18505 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18506 | }; | |
18507 | ||
18508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18510 | if (!SWIG_IsOK(res1)) { | |
18511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18512 | } | |
18513 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18514 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18515 | if (!SWIG_IsOK(ecode2)) { | |
18516 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
18517 | } | |
18518 | arg2 = static_cast< int >(val2); | |
18519 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18520 | if (!SWIG_IsOK(ecode3)) { | |
18521 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
18522 | } | |
18523 | arg3 = static_cast< int >(val3); | |
18524 | { | |
18525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18526 | (arg1)->DrawPoint(arg2,arg3); | |
18527 | wxPyEndAllowThreads(__tstate); | |
18528 | if (PyErr_Occurred()) SWIG_fail; | |
18529 | } | |
18530 | resultobj = SWIG_Py_Void(); | |
18531 | return resultobj; | |
18532 | fail: | |
18533 | return NULL; | |
18534 | } | |
18535 | ||
18536 | ||
18537 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18538 | PyObject *resultobj = 0; | |
18539 | wxDC *arg1 = (wxDC *) 0 ; | |
18540 | wxPoint *arg2 = 0 ; | |
18541 | void *argp1 = 0 ; | |
18542 | int res1 = 0 ; | |
18543 | wxPoint temp2 ; | |
18544 | PyObject * obj0 = 0 ; | |
18545 | PyObject * obj1 = 0 ; | |
18546 | char * kwnames[] = { | |
18547 | (char *) "self",(char *) "pt", NULL | |
18548 | }; | |
18549 | ||
18550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18552 | if (!SWIG_IsOK(res1)) { | |
18553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18554 | } | |
18555 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18556 | { | |
18557 | arg2 = &temp2; | |
18558 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18559 | } | |
18560 | { | |
18561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18562 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
18563 | wxPyEndAllowThreads(__tstate); | |
18564 | if (PyErr_Occurred()) SWIG_fail; | |
18565 | } | |
18566 | resultobj = SWIG_Py_Void(); | |
18567 | return resultobj; | |
18568 | fail: | |
18569 | return NULL; | |
18570 | } | |
18571 | ||
18572 | ||
18573 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18574 | PyObject *resultobj = 0; | |
18575 | wxDC *arg1 = (wxDC *) 0 ; | |
18576 | int arg2 ; | |
18577 | int arg3 ; | |
18578 | int arg4 ; | |
18579 | int arg5 ; | |
18580 | void *argp1 = 0 ; | |
18581 | int res1 = 0 ; | |
18582 | int val2 ; | |
18583 | int ecode2 = 0 ; | |
18584 | int val3 ; | |
18585 | int ecode3 = 0 ; | |
18586 | int val4 ; | |
18587 | int ecode4 = 0 ; | |
18588 | int val5 ; | |
18589 | int ecode5 = 0 ; | |
18590 | PyObject * obj0 = 0 ; | |
18591 | PyObject * obj1 = 0 ; | |
18592 | PyObject * obj2 = 0 ; | |
18593 | PyObject * obj3 = 0 ; | |
18594 | PyObject * obj4 = 0 ; | |
18595 | char * kwnames[] = { | |
18596 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18597 | }; | |
18598 | ||
18599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18601 | if (!SWIG_IsOK(res1)) { | |
18602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18603 | } | |
18604 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18605 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18606 | if (!SWIG_IsOK(ecode2)) { | |
18607 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18608 | } | |
18609 | arg2 = static_cast< int >(val2); | |
18610 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18611 | if (!SWIG_IsOK(ecode3)) { | |
18612 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18613 | } | |
18614 | arg3 = static_cast< int >(val3); | |
18615 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18616 | if (!SWIG_IsOK(ecode4)) { | |
18617 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18618 | } | |
18619 | arg4 = static_cast< int >(val4); | |
18620 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18621 | if (!SWIG_IsOK(ecode5)) { | |
18622 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18623 | } | |
18624 | arg5 = static_cast< int >(val5); | |
18625 | { | |
18626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18627 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
18628 | wxPyEndAllowThreads(__tstate); | |
18629 | if (PyErr_Occurred()) SWIG_fail; | |
18630 | } | |
18631 | resultobj = SWIG_Py_Void(); | |
18632 | return resultobj; | |
18633 | fail: | |
18634 | return NULL; | |
18635 | } | |
18636 | ||
18637 | ||
18638 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18639 | PyObject *resultobj = 0; | |
18640 | wxDC *arg1 = (wxDC *) 0 ; | |
18641 | wxRect *arg2 = 0 ; | |
18642 | void *argp1 = 0 ; | |
18643 | int res1 = 0 ; | |
18644 | wxRect temp2 ; | |
18645 | PyObject * obj0 = 0 ; | |
18646 | PyObject * obj1 = 0 ; | |
18647 | char * kwnames[] = { | |
18648 | (char *) "self",(char *) "rect", NULL | |
18649 | }; | |
18650 | ||
18651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18653 | if (!SWIG_IsOK(res1)) { | |
18654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18655 | } | |
18656 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18657 | { | |
18658 | arg2 = &temp2; | |
18659 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18660 | } | |
18661 | { | |
18662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18663 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
18664 | wxPyEndAllowThreads(__tstate); | |
18665 | if (PyErr_Occurred()) SWIG_fail; | |
18666 | } | |
18667 | resultobj = SWIG_Py_Void(); | |
18668 | return resultobj; | |
18669 | fail: | |
18670 | return NULL; | |
18671 | } | |
18672 | ||
18673 | ||
18674 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18675 | PyObject *resultobj = 0; | |
18676 | wxDC *arg1 = (wxDC *) 0 ; | |
18677 | wxPoint *arg2 = 0 ; | |
18678 | wxSize *arg3 = 0 ; | |
18679 | void *argp1 = 0 ; | |
18680 | int res1 = 0 ; | |
18681 | wxPoint temp2 ; | |
18682 | wxSize temp3 ; | |
18683 | PyObject * obj0 = 0 ; | |
18684 | PyObject * obj1 = 0 ; | |
18685 | PyObject * obj2 = 0 ; | |
18686 | char * kwnames[] = { | |
18687 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
18688 | }; | |
18689 | ||
18690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18692 | if (!SWIG_IsOK(res1)) { | |
18693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18694 | } | |
18695 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18696 | { | |
18697 | arg2 = &temp2; | |
18698 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18699 | } | |
18700 | { | |
18701 | arg3 = &temp3; | |
18702 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18703 | } | |
18704 | { | |
18705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18706 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
18707 | wxPyEndAllowThreads(__tstate); | |
18708 | if (PyErr_Occurred()) SWIG_fail; | |
18709 | } | |
18710 | resultobj = SWIG_Py_Void(); | |
18711 | return resultobj; | |
18712 | fail: | |
18713 | return NULL; | |
18714 | } | |
18715 | ||
18716 | ||
18717 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18718 | PyObject *resultobj = 0; | |
18719 | wxDC *arg1 = (wxDC *) 0 ; | |
18720 | int arg2 ; | |
18721 | int arg3 ; | |
18722 | int arg4 ; | |
18723 | int arg5 ; | |
18724 | double arg6 ; | |
18725 | void *argp1 = 0 ; | |
18726 | int res1 = 0 ; | |
18727 | int val2 ; | |
18728 | int ecode2 = 0 ; | |
18729 | int val3 ; | |
18730 | int ecode3 = 0 ; | |
18731 | int val4 ; | |
18732 | int ecode4 = 0 ; | |
18733 | int val5 ; | |
18734 | int ecode5 = 0 ; | |
18735 | double val6 ; | |
18736 | int ecode6 = 0 ; | |
18737 | PyObject * obj0 = 0 ; | |
18738 | PyObject * obj1 = 0 ; | |
18739 | PyObject * obj2 = 0 ; | |
18740 | PyObject * obj3 = 0 ; | |
18741 | PyObject * obj4 = 0 ; | |
18742 | PyObject * obj5 = 0 ; | |
18743 | char * kwnames[] = { | |
18744 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
18745 | }; | |
18746 | ||
18747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18749 | if (!SWIG_IsOK(res1)) { | |
18750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18751 | } | |
18752 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18753 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18754 | if (!SWIG_IsOK(ecode2)) { | |
18755 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18756 | } | |
18757 | arg2 = static_cast< int >(val2); | |
18758 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18759 | if (!SWIG_IsOK(ecode3)) { | |
18760 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18761 | } | |
18762 | arg3 = static_cast< int >(val3); | |
18763 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18764 | if (!SWIG_IsOK(ecode4)) { | |
18765 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18766 | } | |
18767 | arg4 = static_cast< int >(val4); | |
18768 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18769 | if (!SWIG_IsOK(ecode5)) { | |
18770 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18771 | } | |
18772 | arg5 = static_cast< int >(val5); | |
18773 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18774 | if (!SWIG_IsOK(ecode6)) { | |
18775 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
18776 | } | |
18777 | arg6 = static_cast< double >(val6); | |
18778 | { | |
18779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18780 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
18781 | wxPyEndAllowThreads(__tstate); | |
18782 | if (PyErr_Occurred()) SWIG_fail; | |
18783 | } | |
18784 | resultobj = SWIG_Py_Void(); | |
18785 | return resultobj; | |
18786 | fail: | |
18787 | return NULL; | |
18788 | } | |
18789 | ||
18790 | ||
18791 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18792 | PyObject *resultobj = 0; | |
18793 | wxDC *arg1 = (wxDC *) 0 ; | |
18794 | wxRect *arg2 = 0 ; | |
18795 | double arg3 ; | |
18796 | void *argp1 = 0 ; | |
18797 | int res1 = 0 ; | |
18798 | wxRect temp2 ; | |
18799 | double val3 ; | |
18800 | int ecode3 = 0 ; | |
18801 | PyObject * obj0 = 0 ; | |
18802 | PyObject * obj1 = 0 ; | |
18803 | PyObject * obj2 = 0 ; | |
18804 | char * kwnames[] = { | |
18805 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
18806 | }; | |
18807 | ||
18808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18810 | if (!SWIG_IsOK(res1)) { | |
18811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18812 | } | |
18813 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18814 | { | |
18815 | arg2 = &temp2; | |
18816 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18817 | } | |
18818 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
18819 | if (!SWIG_IsOK(ecode3)) { | |
18820 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
18821 | } | |
18822 | arg3 = static_cast< double >(val3); | |
18823 | { | |
18824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18825 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
18826 | wxPyEndAllowThreads(__tstate); | |
18827 | if (PyErr_Occurred()) SWIG_fail; | |
18828 | } | |
18829 | resultobj = SWIG_Py_Void(); | |
18830 | return resultobj; | |
18831 | fail: | |
18832 | return NULL; | |
18833 | } | |
18834 | ||
18835 | ||
18836 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18837 | PyObject *resultobj = 0; | |
18838 | wxDC *arg1 = (wxDC *) 0 ; | |
18839 | wxPoint *arg2 = 0 ; | |
18840 | wxSize *arg3 = 0 ; | |
18841 | double arg4 ; | |
18842 | void *argp1 = 0 ; | |
18843 | int res1 = 0 ; | |
18844 | wxPoint temp2 ; | |
18845 | wxSize temp3 ; | |
18846 | double val4 ; | |
18847 | int ecode4 = 0 ; | |
18848 | PyObject * obj0 = 0 ; | |
18849 | PyObject * obj1 = 0 ; | |
18850 | PyObject * obj2 = 0 ; | |
18851 | PyObject * obj3 = 0 ; | |
18852 | char * kwnames[] = { | |
18853 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
18854 | }; | |
18855 | ||
18856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18858 | if (!SWIG_IsOK(res1)) { | |
18859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18860 | } | |
18861 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18862 | { | |
18863 | arg2 = &temp2; | |
18864 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18865 | } | |
18866 | { | |
18867 | arg3 = &temp3; | |
18868 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18869 | } | |
18870 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18871 | if (!SWIG_IsOK(ecode4)) { | |
18872 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
18873 | } | |
18874 | arg4 = static_cast< double >(val4); | |
18875 | { | |
18876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18877 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
18878 | wxPyEndAllowThreads(__tstate); | |
18879 | if (PyErr_Occurred()) SWIG_fail; | |
18880 | } | |
18881 | resultobj = SWIG_Py_Void(); | |
18882 | return resultobj; | |
18883 | fail: | |
18884 | return NULL; | |
18885 | } | |
18886 | ||
18887 | ||
18888 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18889 | PyObject *resultobj = 0; | |
18890 | wxDC *arg1 = (wxDC *) 0 ; | |
18891 | int arg2 ; | |
18892 | int arg3 ; | |
18893 | int arg4 ; | |
18894 | void *argp1 = 0 ; | |
18895 | int res1 = 0 ; | |
18896 | int val2 ; | |
18897 | int ecode2 = 0 ; | |
18898 | int val3 ; | |
18899 | int ecode3 = 0 ; | |
18900 | int val4 ; | |
18901 | int ecode4 = 0 ; | |
18902 | PyObject * obj0 = 0 ; | |
18903 | PyObject * obj1 = 0 ; | |
18904 | PyObject * obj2 = 0 ; | |
18905 | PyObject * obj3 = 0 ; | |
18906 | char * kwnames[] = { | |
18907 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
18908 | }; | |
18909 | ||
18910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18912 | if (!SWIG_IsOK(res1)) { | |
18913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18914 | } | |
18915 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18916 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18917 | if (!SWIG_IsOK(ecode2)) { | |
18918 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
18919 | } | |
18920 | arg2 = static_cast< int >(val2); | |
18921 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18922 | if (!SWIG_IsOK(ecode3)) { | |
18923 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
18924 | } | |
18925 | arg3 = static_cast< int >(val3); | |
18926 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18927 | if (!SWIG_IsOK(ecode4)) { | |
18928 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
18929 | } | |
18930 | arg4 = static_cast< int >(val4); | |
18931 | { | |
18932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18933 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
18934 | wxPyEndAllowThreads(__tstate); | |
18935 | if (PyErr_Occurred()) SWIG_fail; | |
18936 | } | |
18937 | resultobj = SWIG_Py_Void(); | |
18938 | return resultobj; | |
18939 | fail: | |
18940 | return NULL; | |
18941 | } | |
18942 | ||
18943 | ||
18944 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18945 | PyObject *resultobj = 0; | |
18946 | wxDC *arg1 = (wxDC *) 0 ; | |
18947 | wxPoint *arg2 = 0 ; | |
18948 | int arg3 ; | |
18949 | void *argp1 = 0 ; | |
18950 | int res1 = 0 ; | |
18951 | wxPoint temp2 ; | |
18952 | int val3 ; | |
18953 | int ecode3 = 0 ; | |
18954 | PyObject * obj0 = 0 ; | |
18955 | PyObject * obj1 = 0 ; | |
18956 | PyObject * obj2 = 0 ; | |
18957 | char * kwnames[] = { | |
18958 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
18959 | }; | |
18960 | ||
18961 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18963 | if (!SWIG_IsOK(res1)) { | |
18964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18965 | } | |
18966 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18967 | { | |
18968 | arg2 = &temp2; | |
18969 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18970 | } | |
18971 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18972 | if (!SWIG_IsOK(ecode3)) { | |
18973 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
18974 | } | |
18975 | arg3 = static_cast< int >(val3); | |
18976 | { | |
18977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18978 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
18979 | wxPyEndAllowThreads(__tstate); | |
18980 | if (PyErr_Occurred()) SWIG_fail; | |
18981 | } | |
18982 | resultobj = SWIG_Py_Void(); | |
18983 | return resultobj; | |
18984 | fail: | |
18985 | return NULL; | |
18986 | } | |
18987 | ||
18988 | ||
18989 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18990 | PyObject *resultobj = 0; | |
18991 | wxDC *arg1 = (wxDC *) 0 ; | |
18992 | int arg2 ; | |
18993 | int arg3 ; | |
18994 | int arg4 ; | |
18995 | int arg5 ; | |
18996 | void *argp1 = 0 ; | |
18997 | int res1 = 0 ; | |
18998 | int val2 ; | |
18999 | int ecode2 = 0 ; | |
19000 | int val3 ; | |
19001 | int ecode3 = 0 ; | |
19002 | int val4 ; | |
19003 | int ecode4 = 0 ; | |
19004 | int val5 ; | |
19005 | int ecode5 = 0 ; | |
19006 | PyObject * obj0 = 0 ; | |
19007 | PyObject * obj1 = 0 ; | |
19008 | PyObject * obj2 = 0 ; | |
19009 | PyObject * obj3 = 0 ; | |
19010 | PyObject * obj4 = 0 ; | |
19011 | char * kwnames[] = { | |
19012 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19013 | }; | |
19014 | ||
19015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19017 | if (!SWIG_IsOK(res1)) { | |
19018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19019 | } | |
19020 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19021 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19022 | if (!SWIG_IsOK(ecode2)) { | |
19023 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
19024 | } | |
19025 | arg2 = static_cast< int >(val2); | |
19026 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19027 | if (!SWIG_IsOK(ecode3)) { | |
19028 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
19029 | } | |
19030 | arg3 = static_cast< int >(val3); | |
19031 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19032 | if (!SWIG_IsOK(ecode4)) { | |
19033 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
19034 | } | |
19035 | arg4 = static_cast< int >(val4); | |
19036 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19037 | if (!SWIG_IsOK(ecode5)) { | |
19038 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
19039 | } | |
19040 | arg5 = static_cast< int >(val5); | |
19041 | { | |
19042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19043 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
19044 | wxPyEndAllowThreads(__tstate); | |
19045 | if (PyErr_Occurred()) SWIG_fail; | |
19046 | } | |
19047 | resultobj = SWIG_Py_Void(); | |
19048 | return resultobj; | |
19049 | fail: | |
19050 | return NULL; | |
19051 | } | |
19052 | ||
19053 | ||
19054 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19055 | PyObject *resultobj = 0; | |
19056 | wxDC *arg1 = (wxDC *) 0 ; | |
19057 | wxRect *arg2 = 0 ; | |
19058 | void *argp1 = 0 ; | |
19059 | int res1 = 0 ; | |
19060 | wxRect temp2 ; | |
19061 | PyObject * obj0 = 0 ; | |
19062 | PyObject * obj1 = 0 ; | |
19063 | char * kwnames[] = { | |
19064 | (char *) "self",(char *) "rect", NULL | |
19065 | }; | |
19066 | ||
19067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19069 | if (!SWIG_IsOK(res1)) { | |
19070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19071 | } | |
19072 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19073 | { | |
19074 | arg2 = &temp2; | |
19075 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19076 | } | |
19077 | { | |
19078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19079 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
19080 | wxPyEndAllowThreads(__tstate); | |
19081 | if (PyErr_Occurred()) SWIG_fail; | |
19082 | } | |
19083 | resultobj = SWIG_Py_Void(); | |
19084 | return resultobj; | |
19085 | fail: | |
19086 | return NULL; | |
19087 | } | |
19088 | ||
19089 | ||
19090 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19091 | PyObject *resultobj = 0; | |
19092 | wxDC *arg1 = (wxDC *) 0 ; | |
19093 | wxPoint *arg2 = 0 ; | |
19094 | wxSize *arg3 = 0 ; | |
19095 | void *argp1 = 0 ; | |
19096 | int res1 = 0 ; | |
19097 | wxPoint temp2 ; | |
19098 | wxSize temp3 ; | |
19099 | PyObject * obj0 = 0 ; | |
19100 | PyObject * obj1 = 0 ; | |
19101 | PyObject * obj2 = 0 ; | |
19102 | char * kwnames[] = { | |
19103 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19104 | }; | |
19105 | ||
19106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19108 | if (!SWIG_IsOK(res1)) { | |
19109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19110 | } | |
19111 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19112 | { | |
19113 | arg2 = &temp2; | |
19114 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19115 | } | |
19116 | { | |
19117 | arg3 = &temp3; | |
19118 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19119 | } | |
19120 | { | |
19121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19122 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19123 | wxPyEndAllowThreads(__tstate); | |
19124 | if (PyErr_Occurred()) SWIG_fail; | |
19125 | } | |
19126 | resultobj = SWIG_Py_Void(); | |
19127 | return resultobj; | |
19128 | fail: | |
19129 | return NULL; | |
19130 | } | |
19131 | ||
19132 | ||
19133 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19134 | PyObject *resultobj = 0; | |
19135 | wxDC *arg1 = (wxDC *) 0 ; | |
19136 | wxIcon *arg2 = 0 ; | |
19137 | int arg3 ; | |
19138 | int arg4 ; | |
19139 | void *argp1 = 0 ; | |
19140 | int res1 = 0 ; | |
19141 | void *argp2 = 0 ; | |
19142 | int res2 = 0 ; | |
19143 | int val3 ; | |
19144 | int ecode3 = 0 ; | |
19145 | int val4 ; | |
19146 | int ecode4 = 0 ; | |
19147 | PyObject * obj0 = 0 ; | |
19148 | PyObject * obj1 = 0 ; | |
19149 | PyObject * obj2 = 0 ; | |
19150 | PyObject * obj3 = 0 ; | |
19151 | char * kwnames[] = { | |
19152 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
19153 | }; | |
19154 | ||
19155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19157 | if (!SWIG_IsOK(res1)) { | |
19158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19159 | } | |
19160 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19161 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19162 | if (!SWIG_IsOK(res2)) { | |
19163 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19164 | } | |
19165 | if (!argp2) { | |
19166 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19167 | } | |
19168 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19169 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19170 | if (!SWIG_IsOK(ecode3)) { | |
19171 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19172 | } | |
19173 | arg3 = static_cast< int >(val3); | |
19174 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19175 | if (!SWIG_IsOK(ecode4)) { | |
19176 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19177 | } | |
19178 | arg4 = static_cast< int >(val4); | |
19179 | { | |
19180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19181 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19182 | wxPyEndAllowThreads(__tstate); | |
19183 | if (PyErr_Occurred()) SWIG_fail; | |
19184 | } | |
19185 | resultobj = SWIG_Py_Void(); | |
19186 | return resultobj; | |
19187 | fail: | |
19188 | return NULL; | |
19189 | } | |
19190 | ||
19191 | ||
19192 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19193 | PyObject *resultobj = 0; | |
19194 | wxDC *arg1 = (wxDC *) 0 ; | |
19195 | wxIcon *arg2 = 0 ; | |
19196 | wxPoint *arg3 = 0 ; | |
19197 | void *argp1 = 0 ; | |
19198 | int res1 = 0 ; | |
19199 | void *argp2 = 0 ; | |
19200 | int res2 = 0 ; | |
19201 | wxPoint temp3 ; | |
19202 | PyObject * obj0 = 0 ; | |
19203 | PyObject * obj1 = 0 ; | |
19204 | PyObject * obj2 = 0 ; | |
19205 | char * kwnames[] = { | |
19206 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19207 | }; | |
19208 | ||
19209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19210 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19211 | if (!SWIG_IsOK(res1)) { | |
19212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19213 | } | |
19214 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19215 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19216 | if (!SWIG_IsOK(res2)) { | |
19217 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19218 | } | |
19219 | if (!argp2) { | |
19220 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19221 | } | |
19222 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19223 | { | |
19224 | arg3 = &temp3; | |
19225 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19226 | } | |
19227 | { | |
19228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19229 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
19230 | wxPyEndAllowThreads(__tstate); | |
19231 | if (PyErr_Occurred()) SWIG_fail; | |
19232 | } | |
19233 | resultobj = SWIG_Py_Void(); | |
19234 | return resultobj; | |
19235 | fail: | |
19236 | return NULL; | |
19237 | } | |
19238 | ||
19239 | ||
19240 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19241 | PyObject *resultobj = 0; | |
19242 | wxDC *arg1 = (wxDC *) 0 ; | |
19243 | wxBitmap *arg2 = 0 ; | |
19244 | int arg3 ; | |
19245 | int arg4 ; | |
19246 | bool arg5 = (bool) false ; | |
19247 | void *argp1 = 0 ; | |
19248 | int res1 = 0 ; | |
19249 | void *argp2 = 0 ; | |
19250 | int res2 = 0 ; | |
19251 | int val3 ; | |
19252 | int ecode3 = 0 ; | |
19253 | int val4 ; | |
19254 | int ecode4 = 0 ; | |
19255 | bool val5 ; | |
19256 | int ecode5 = 0 ; | |
19257 | PyObject * obj0 = 0 ; | |
19258 | PyObject * obj1 = 0 ; | |
19259 | PyObject * obj2 = 0 ; | |
19260 | PyObject * obj3 = 0 ; | |
19261 | PyObject * obj4 = 0 ; | |
19262 | char * kwnames[] = { | |
19263 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19264 | }; | |
19265 | ||
19266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19268 | if (!SWIG_IsOK(res1)) { | |
19269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19270 | } | |
19271 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19272 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19273 | if (!SWIG_IsOK(res2)) { | |
19274 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19275 | } | |
19276 | if (!argp2) { | |
19277 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19278 | } | |
19279 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19280 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19281 | if (!SWIG_IsOK(ecode3)) { | |
19282 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19283 | } | |
19284 | arg3 = static_cast< int >(val3); | |
19285 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19286 | if (!SWIG_IsOK(ecode4)) { | |
19287 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19288 | } | |
19289 | arg4 = static_cast< int >(val4); | |
19290 | if (obj4) { | |
19291 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19292 | if (!SWIG_IsOK(ecode5)) { | |
19293 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19294 | } | |
19295 | arg5 = static_cast< bool >(val5); | |
19296 | } | |
19297 | { | |
19298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19299 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19300 | wxPyEndAllowThreads(__tstate); | |
19301 | if (PyErr_Occurred()) SWIG_fail; | |
19302 | } | |
19303 | resultobj = SWIG_Py_Void(); | |
19304 | return resultobj; | |
19305 | fail: | |
19306 | return NULL; | |
19307 | } | |
19308 | ||
19309 | ||
19310 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19311 | PyObject *resultobj = 0; | |
19312 | wxDC *arg1 = (wxDC *) 0 ; | |
19313 | wxBitmap *arg2 = 0 ; | |
19314 | wxPoint *arg3 = 0 ; | |
19315 | bool arg4 = (bool) false ; | |
19316 | void *argp1 = 0 ; | |
19317 | int res1 = 0 ; | |
19318 | void *argp2 = 0 ; | |
19319 | int res2 = 0 ; | |
19320 | wxPoint temp3 ; | |
19321 | bool val4 ; | |
19322 | int ecode4 = 0 ; | |
19323 | PyObject * obj0 = 0 ; | |
19324 | PyObject * obj1 = 0 ; | |
19325 | PyObject * obj2 = 0 ; | |
19326 | PyObject * obj3 = 0 ; | |
19327 | char * kwnames[] = { | |
19328 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19329 | }; | |
19330 | ||
19331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19333 | if (!SWIG_IsOK(res1)) { | |
19334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19335 | } | |
19336 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19337 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19338 | if (!SWIG_IsOK(res2)) { | |
19339 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19340 | } | |
19341 | if (!argp2) { | |
19342 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19343 | } | |
19344 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19345 | { | |
19346 | arg3 = &temp3; | |
19347 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19348 | } | |
19349 | if (obj3) { | |
19350 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19351 | if (!SWIG_IsOK(ecode4)) { | |
19352 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
19353 | } | |
19354 | arg4 = static_cast< bool >(val4); | |
19355 | } | |
19356 | { | |
19357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19358 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19359 | wxPyEndAllowThreads(__tstate); | |
19360 | if (PyErr_Occurred()) SWIG_fail; | |
19361 | } | |
19362 | resultobj = SWIG_Py_Void(); | |
19363 | return resultobj; | |
19364 | fail: | |
19365 | return NULL; | |
19366 | } | |
19367 | ||
19368 | ||
19369 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19370 | PyObject *resultobj = 0; | |
19371 | wxDC *arg1 = (wxDC *) 0 ; | |
19372 | wxString *arg2 = 0 ; | |
19373 | int arg3 ; | |
19374 | int arg4 ; | |
19375 | void *argp1 = 0 ; | |
19376 | int res1 = 0 ; | |
19377 | bool temp2 = false ; | |
19378 | int val3 ; | |
19379 | int ecode3 = 0 ; | |
19380 | int val4 ; | |
19381 | int ecode4 = 0 ; | |
19382 | PyObject * obj0 = 0 ; | |
19383 | PyObject * obj1 = 0 ; | |
19384 | PyObject * obj2 = 0 ; | |
19385 | PyObject * obj3 = 0 ; | |
19386 | char * kwnames[] = { | |
19387 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
19388 | }; | |
19389 | ||
19390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19392 | if (!SWIG_IsOK(res1)) { | |
19393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19394 | } | |
19395 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19396 | { | |
19397 | arg2 = wxString_in_helper(obj1); | |
19398 | if (arg2 == NULL) SWIG_fail; | |
19399 | temp2 = true; | |
19400 | } | |
19401 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19402 | if (!SWIG_IsOK(ecode3)) { | |
19403 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
19404 | } | |
19405 | arg3 = static_cast< int >(val3); | |
19406 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19407 | if (!SWIG_IsOK(ecode4)) { | |
19408 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
19409 | } | |
19410 | arg4 = static_cast< int >(val4); | |
19411 | { | |
19412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19413 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
19414 | wxPyEndAllowThreads(__tstate); | |
19415 | if (PyErr_Occurred()) SWIG_fail; | |
19416 | } | |
19417 | resultobj = SWIG_Py_Void(); | |
19418 | { | |
19419 | if (temp2) | |
19420 | delete arg2; | |
19421 | } | |
19422 | return resultobj; | |
19423 | fail: | |
19424 | { | |
19425 | if (temp2) | |
19426 | delete arg2; | |
19427 | } | |
19428 | return NULL; | |
19429 | } | |
19430 | ||
19431 | ||
19432 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19433 | PyObject *resultobj = 0; | |
19434 | wxDC *arg1 = (wxDC *) 0 ; | |
19435 | wxString *arg2 = 0 ; | |
19436 | wxPoint *arg3 = 0 ; | |
19437 | void *argp1 = 0 ; | |
19438 | int res1 = 0 ; | |
19439 | bool temp2 = false ; | |
19440 | wxPoint temp3 ; | |
19441 | PyObject * obj0 = 0 ; | |
19442 | PyObject * obj1 = 0 ; | |
19443 | PyObject * obj2 = 0 ; | |
19444 | char * kwnames[] = { | |
19445 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
19446 | }; | |
19447 | ||
19448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19449 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19450 | if (!SWIG_IsOK(res1)) { | |
19451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19452 | } | |
19453 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19454 | { | |
19455 | arg2 = wxString_in_helper(obj1); | |
19456 | if (arg2 == NULL) SWIG_fail; | |
19457 | temp2 = true; | |
19458 | } | |
19459 | { | |
19460 | arg3 = &temp3; | |
19461 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19462 | } | |
19463 | { | |
19464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19465 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
19466 | wxPyEndAllowThreads(__tstate); | |
19467 | if (PyErr_Occurred()) SWIG_fail; | |
19468 | } | |
19469 | resultobj = SWIG_Py_Void(); | |
19470 | { | |
19471 | if (temp2) | |
19472 | delete arg2; | |
19473 | } | |
19474 | return resultobj; | |
19475 | fail: | |
19476 | { | |
19477 | if (temp2) | |
19478 | delete arg2; | |
19479 | } | |
19480 | return NULL; | |
19481 | } | |
19482 | ||
19483 | ||
19484 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19485 | PyObject *resultobj = 0; | |
19486 | wxDC *arg1 = (wxDC *) 0 ; | |
19487 | wxString *arg2 = 0 ; | |
19488 | int arg3 ; | |
19489 | int arg4 ; | |
19490 | double arg5 ; | |
19491 | void *argp1 = 0 ; | |
19492 | int res1 = 0 ; | |
19493 | bool temp2 = false ; | |
19494 | int val3 ; | |
19495 | int ecode3 = 0 ; | |
19496 | int val4 ; | |
19497 | int ecode4 = 0 ; | |
19498 | double val5 ; | |
19499 | int ecode5 = 0 ; | |
19500 | PyObject * obj0 = 0 ; | |
19501 | PyObject * obj1 = 0 ; | |
19502 | PyObject * obj2 = 0 ; | |
19503 | PyObject * obj3 = 0 ; | |
19504 | PyObject * obj4 = 0 ; | |
19505 | char * kwnames[] = { | |
19506 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
19507 | }; | |
19508 | ||
19509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19511 | if (!SWIG_IsOK(res1)) { | |
19512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19513 | } | |
19514 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19515 | { | |
19516 | arg2 = wxString_in_helper(obj1); | |
19517 | if (arg2 == NULL) SWIG_fail; | |
19518 | temp2 = true; | |
19519 | } | |
19520 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19521 | if (!SWIG_IsOK(ecode3)) { | |
19522 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
19523 | } | |
19524 | arg3 = static_cast< int >(val3); | |
19525 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19526 | if (!SWIG_IsOK(ecode4)) { | |
19527 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
19528 | } | |
19529 | arg4 = static_cast< int >(val4); | |
19530 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19531 | if (!SWIG_IsOK(ecode5)) { | |
19532 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
19533 | } | |
19534 | arg5 = static_cast< double >(val5); | |
19535 | { | |
19536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19537 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
19538 | wxPyEndAllowThreads(__tstate); | |
19539 | if (PyErr_Occurred()) SWIG_fail; | |
19540 | } | |
19541 | resultobj = SWIG_Py_Void(); | |
19542 | { | |
19543 | if (temp2) | |
19544 | delete arg2; | |
19545 | } | |
19546 | return resultobj; | |
19547 | fail: | |
19548 | { | |
19549 | if (temp2) | |
19550 | delete arg2; | |
19551 | } | |
19552 | return NULL; | |
19553 | } | |
19554 | ||
19555 | ||
19556 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19557 | PyObject *resultobj = 0; | |
19558 | wxDC *arg1 = (wxDC *) 0 ; | |
19559 | wxString *arg2 = 0 ; | |
19560 | wxPoint *arg3 = 0 ; | |
19561 | double arg4 ; | |
19562 | void *argp1 = 0 ; | |
19563 | int res1 = 0 ; | |
19564 | bool temp2 = false ; | |
19565 | wxPoint temp3 ; | |
19566 | double val4 ; | |
19567 | int ecode4 = 0 ; | |
19568 | PyObject * obj0 = 0 ; | |
19569 | PyObject * obj1 = 0 ; | |
19570 | PyObject * obj2 = 0 ; | |
19571 | PyObject * obj3 = 0 ; | |
19572 | char * kwnames[] = { | |
19573 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
19574 | }; | |
19575 | ||
19576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19578 | if (!SWIG_IsOK(res1)) { | |
19579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19580 | } | |
19581 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19582 | { | |
19583 | arg2 = wxString_in_helper(obj1); | |
19584 | if (arg2 == NULL) SWIG_fail; | |
19585 | temp2 = true; | |
19586 | } | |
19587 | { | |
19588 | arg3 = &temp3; | |
19589 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19590 | } | |
19591 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19592 | if (!SWIG_IsOK(ecode4)) { | |
19593 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
19594 | } | |
19595 | arg4 = static_cast< double >(val4); | |
19596 | { | |
19597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19598 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19599 | wxPyEndAllowThreads(__tstate); | |
19600 | if (PyErr_Occurred()) SWIG_fail; | |
19601 | } | |
19602 | resultobj = SWIG_Py_Void(); | |
19603 | { | |
19604 | if (temp2) | |
19605 | delete arg2; | |
19606 | } | |
19607 | return resultobj; | |
19608 | fail: | |
19609 | { | |
19610 | if (temp2) | |
19611 | delete arg2; | |
19612 | } | |
19613 | return NULL; | |
19614 | } | |
19615 | ||
19616 | ||
19617 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19618 | PyObject *resultobj = 0; | |
19619 | wxDC *arg1 = (wxDC *) 0 ; | |
19620 | int arg2 ; | |
19621 | int arg3 ; | |
19622 | int arg4 ; | |
19623 | int arg5 ; | |
19624 | wxDC *arg6 = (wxDC *) 0 ; | |
19625 | int arg7 ; | |
19626 | int arg8 ; | |
19627 | int arg9 = (int) wxCOPY ; | |
19628 | bool arg10 = (bool) false ; | |
19629 | int arg11 = (int) -1 ; | |
19630 | int arg12 = (int) -1 ; | |
19631 | bool result; | |
19632 | void *argp1 = 0 ; | |
19633 | int res1 = 0 ; | |
19634 | int val2 ; | |
19635 | int ecode2 = 0 ; | |
19636 | int val3 ; | |
19637 | int ecode3 = 0 ; | |
19638 | int val4 ; | |
19639 | int ecode4 = 0 ; | |
19640 | int val5 ; | |
19641 | int ecode5 = 0 ; | |
19642 | void *argp6 = 0 ; | |
19643 | int res6 = 0 ; | |
19644 | int val7 ; | |
19645 | int ecode7 = 0 ; | |
19646 | int val8 ; | |
19647 | int ecode8 = 0 ; | |
19648 | int val9 ; | |
19649 | int ecode9 = 0 ; | |
19650 | bool val10 ; | |
19651 | int ecode10 = 0 ; | |
19652 | int val11 ; | |
19653 | int ecode11 = 0 ; | |
19654 | int val12 ; | |
19655 | int ecode12 = 0 ; | |
19656 | PyObject * obj0 = 0 ; | |
19657 | PyObject * obj1 = 0 ; | |
19658 | PyObject * obj2 = 0 ; | |
19659 | PyObject * obj3 = 0 ; | |
19660 | PyObject * obj4 = 0 ; | |
19661 | PyObject * obj5 = 0 ; | |
19662 | PyObject * obj6 = 0 ; | |
19663 | PyObject * obj7 = 0 ; | |
19664 | PyObject * obj8 = 0 ; | |
19665 | PyObject * obj9 = 0 ; | |
19666 | PyObject * obj10 = 0 ; | |
19667 | PyObject * obj11 = 0 ; | |
19668 | char * kwnames[] = { | |
19669 | (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 | |
19670 | }; | |
19671 | ||
19672 | 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; | |
19673 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19674 | if (!SWIG_IsOK(res1)) { | |
19675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19676 | } | |
19677 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19678 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19679 | if (!SWIG_IsOK(ecode2)) { | |
19680 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
19681 | } | |
19682 | arg2 = static_cast< int >(val2); | |
19683 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19684 | if (!SWIG_IsOK(ecode3)) { | |
19685 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
19686 | } | |
19687 | arg3 = static_cast< int >(val3); | |
19688 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19689 | if (!SWIG_IsOK(ecode4)) { | |
19690 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
19691 | } | |
19692 | arg4 = static_cast< int >(val4); | |
19693 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19694 | if (!SWIG_IsOK(ecode5)) { | |
19695 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
19696 | } | |
19697 | arg5 = static_cast< int >(val5); | |
19698 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19699 | if (!SWIG_IsOK(res6)) { | |
19700 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
19701 | } | |
19702 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
19703 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
19704 | if (!SWIG_IsOK(ecode7)) { | |
19705 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
19706 | } | |
19707 | arg7 = static_cast< int >(val7); | |
19708 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
19709 | if (!SWIG_IsOK(ecode8)) { | |
19710 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
19711 | } | |
19712 | arg8 = static_cast< int >(val8); | |
19713 | if (obj8) { | |
19714 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
19715 | if (!SWIG_IsOK(ecode9)) { | |
19716 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
19717 | } | |
19718 | arg9 = static_cast< int >(val9); | |
19719 | } | |
19720 | if (obj9) { | |
19721 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
19722 | if (!SWIG_IsOK(ecode10)) { | |
19723 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
19724 | } | |
19725 | arg10 = static_cast< bool >(val10); | |
19726 | } | |
19727 | if (obj10) { | |
19728 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
19729 | if (!SWIG_IsOK(ecode11)) { | |
19730 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
19731 | } | |
19732 | arg11 = static_cast< int >(val11); | |
19733 | } | |
19734 | if (obj11) { | |
19735 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
19736 | if (!SWIG_IsOK(ecode12)) { | |
19737 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
19738 | } | |
19739 | arg12 = static_cast< int >(val12); | |
19740 | } | |
19741 | { | |
19742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19743 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
19744 | wxPyEndAllowThreads(__tstate); | |
19745 | if (PyErr_Occurred()) SWIG_fail; | |
19746 | } | |
19747 | { | |
19748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19749 | } | |
19750 | return resultobj; | |
19751 | fail: | |
19752 | return NULL; | |
19753 | } | |
19754 | ||
19755 | ||
19756 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19757 | PyObject *resultobj = 0; | |
19758 | wxDC *arg1 = (wxDC *) 0 ; | |
19759 | wxPoint *arg2 = 0 ; | |
19760 | wxSize *arg3 = 0 ; | |
19761 | wxDC *arg4 = (wxDC *) 0 ; | |
19762 | wxPoint *arg5 = 0 ; | |
19763 | int arg6 = (int) wxCOPY ; | |
19764 | bool arg7 = (bool) false ; | |
19765 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
19766 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
19767 | bool result; | |
19768 | void *argp1 = 0 ; | |
19769 | int res1 = 0 ; | |
19770 | wxPoint temp2 ; | |
19771 | wxSize temp3 ; | |
19772 | void *argp4 = 0 ; | |
19773 | int res4 = 0 ; | |
19774 | wxPoint temp5 ; | |
19775 | int val6 ; | |
19776 | int ecode6 = 0 ; | |
19777 | bool val7 ; | |
19778 | int ecode7 = 0 ; | |
19779 | wxPoint temp8 ; | |
19780 | PyObject * obj0 = 0 ; | |
19781 | PyObject * obj1 = 0 ; | |
19782 | PyObject * obj2 = 0 ; | |
19783 | PyObject * obj3 = 0 ; | |
19784 | PyObject * obj4 = 0 ; | |
19785 | PyObject * obj5 = 0 ; | |
19786 | PyObject * obj6 = 0 ; | |
19787 | PyObject * obj7 = 0 ; | |
19788 | char * kwnames[] = { | |
19789 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
19790 | }; | |
19791 | ||
19792 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
19793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19794 | if (!SWIG_IsOK(res1)) { | |
19795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19796 | } | |
19797 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19798 | { | |
19799 | arg2 = &temp2; | |
19800 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19801 | } | |
19802 | { | |
19803 | arg3 = &temp3; | |
19804 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19805 | } | |
19806 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19807 | if (!SWIG_IsOK(res4)) { | |
19808 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
19809 | } | |
19810 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
19811 | { | |
19812 | arg5 = &temp5; | |
19813 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19814 | } | |
19815 | if (obj5) { | |
19816 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
19817 | if (!SWIG_IsOK(ecode6)) { | |
19818 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
19819 | } | |
19820 | arg6 = static_cast< int >(val6); | |
19821 | } | |
19822 | if (obj6) { | |
19823 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
19824 | if (!SWIG_IsOK(ecode7)) { | |
19825 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
19826 | } | |
19827 | arg7 = static_cast< bool >(val7); | |
19828 | } | |
19829 | if (obj7) { | |
093d3ff1 | 19830 | { |
0085ce49 RD |
19831 | arg8 = &temp8; |
19832 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 19833 | } |
0085ce49 RD |
19834 | } |
19835 | { | |
19836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19837 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
19838 | wxPyEndAllowThreads(__tstate); | |
19839 | if (PyErr_Occurred()) SWIG_fail; | |
19840 | } | |
19841 | { | |
19842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19843 | } | |
19844 | return resultobj; | |
19845 | fail: | |
19846 | return NULL; | |
19847 | } | |
19848 | ||
19849 | ||
8f514ab4 RD |
19850 | SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19851 | PyObject *resultobj = 0; | |
19852 | wxDC *arg1 = (wxDC *) 0 ; | |
19853 | wxRect *arg2 = (wxRect *) NULL ; | |
19854 | SwigValueWrapper<wxBitmap > result; | |
19855 | void *argp1 = 0 ; | |
19856 | int res1 = 0 ; | |
19857 | void *argp2 = 0 ; | |
19858 | int res2 = 0 ; | |
19859 | PyObject * obj0 = 0 ; | |
19860 | PyObject * obj1 = 0 ; | |
19861 | char * kwnames[] = { | |
19862 | (char *) "self",(char *) "subrect", NULL | |
19863 | }; | |
19864 | ||
19865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
19866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19867 | if (!SWIG_IsOK(res1)) { | |
19868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19869 | } | |
19870 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19871 | if (obj1) { | |
19872 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
19873 | if (!SWIG_IsOK(res2)) { | |
19874 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'"); | |
19875 | } | |
19876 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
19877 | } | |
19878 | { | |
19879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19880 | result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2); | |
19881 | wxPyEndAllowThreads(__tstate); | |
19882 | if (PyErr_Occurred()) SWIG_fail; | |
19883 | } | |
19884 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
19885 | return resultobj; | |
19886 | fail: | |
19887 | return NULL; | |
19888 | } | |
19889 | ||
19890 | ||
0085ce49 RD |
19891 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19892 | PyObject *resultobj = 0; | |
19893 | wxDC *arg1 = (wxDC *) 0 ; | |
19894 | int arg2 ; | |
19895 | int arg3 ; | |
19896 | int arg4 ; | |
19897 | int arg5 ; | |
19898 | void *argp1 = 0 ; | |
19899 | int res1 = 0 ; | |
19900 | int val2 ; | |
19901 | int ecode2 = 0 ; | |
19902 | int val3 ; | |
19903 | int ecode3 = 0 ; | |
19904 | int val4 ; | |
19905 | int ecode4 = 0 ; | |
19906 | int val5 ; | |
19907 | int ecode5 = 0 ; | |
19908 | PyObject * obj0 = 0 ; | |
19909 | PyObject * obj1 = 0 ; | |
19910 | PyObject * obj2 = 0 ; | |
19911 | PyObject * obj3 = 0 ; | |
19912 | PyObject * obj4 = 0 ; | |
19913 | char * kwnames[] = { | |
19914 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19915 | }; | |
19916 | ||
19917 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19918 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19919 | if (!SWIG_IsOK(res1)) { | |
19920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19921 | } | |
19922 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19923 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19924 | if (!SWIG_IsOK(ecode2)) { | |
19925 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
19926 | } | |
19927 | arg2 = static_cast< int >(val2); | |
19928 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19929 | if (!SWIG_IsOK(ecode3)) { | |
19930 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
19931 | } | |
19932 | arg3 = static_cast< int >(val3); | |
19933 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19934 | if (!SWIG_IsOK(ecode4)) { | |
19935 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
19936 | } | |
19937 | arg4 = static_cast< int >(val4); | |
19938 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19939 | if (!SWIG_IsOK(ecode5)) { | |
19940 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
19941 | } | |
19942 | arg5 = static_cast< int >(val5); | |
19943 | { | |
19944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19945 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
19946 | wxPyEndAllowThreads(__tstate); | |
19947 | if (PyErr_Occurred()) SWIG_fail; | |
19948 | } | |
19949 | resultobj = SWIG_Py_Void(); | |
19950 | return resultobj; | |
19951 | fail: | |
19952 | return NULL; | |
19953 | } | |
19954 | ||
19955 | ||
19956 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19957 | PyObject *resultobj = 0; | |
19958 | wxDC *arg1 = (wxDC *) 0 ; | |
19959 | wxPoint *arg2 = 0 ; | |
19960 | wxSize *arg3 = 0 ; | |
19961 | void *argp1 = 0 ; | |
19962 | int res1 = 0 ; | |
19963 | wxPoint temp2 ; | |
19964 | wxSize temp3 ; | |
19965 | PyObject * obj0 = 0 ; | |
19966 | PyObject * obj1 = 0 ; | |
19967 | PyObject * obj2 = 0 ; | |
19968 | char * kwnames[] = { | |
19969 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19970 | }; | |
19971 | ||
19972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19974 | if (!SWIG_IsOK(res1)) { | |
19975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19976 | } | |
19977 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19978 | { | |
19979 | arg2 = &temp2; | |
19980 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19981 | } | |
19982 | { | |
19983 | arg3 = &temp3; | |
19984 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19985 | } | |
19986 | { | |
19987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19988 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19989 | wxPyEndAllowThreads(__tstate); | |
19990 | if (PyErr_Occurred()) SWIG_fail; | |
19991 | } | |
19992 | resultobj = SWIG_Py_Void(); | |
19993 | return resultobj; | |
19994 | fail: | |
19995 | return NULL; | |
19996 | } | |
19997 | ||
19998 | ||
19999 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20000 | PyObject *resultobj = 0; | |
20001 | wxDC *arg1 = (wxDC *) 0 ; | |
20002 | wxRegion *arg2 = 0 ; | |
20003 | void *argp1 = 0 ; | |
20004 | int res1 = 0 ; | |
20005 | void *argp2 = 0 ; | |
20006 | int res2 = 0 ; | |
20007 | PyObject * obj0 = 0 ; | |
20008 | PyObject * obj1 = 0 ; | |
20009 | char * kwnames[] = { | |
20010 | (char *) "self",(char *) "region", NULL | |
20011 | }; | |
20012 | ||
20013 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
20014 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20015 | if (!SWIG_IsOK(res1)) { | |
20016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20017 | } | |
20018 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20019 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
20020 | if (!SWIG_IsOK(res2)) { | |
20021 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20022 | } | |
20023 | if (!argp2) { | |
20024 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20025 | } | |
20026 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
20027 | { | |
20028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20029 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
20030 | wxPyEndAllowThreads(__tstate); | |
20031 | if (PyErr_Occurred()) SWIG_fail; | |
20032 | } | |
20033 | resultobj = SWIG_Py_Void(); | |
20034 | return resultobj; | |
20035 | fail: | |
20036 | return NULL; | |
20037 | } | |
20038 | ||
20039 | ||
20040 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20041 | PyObject *resultobj = 0; | |
20042 | wxDC *arg1 = (wxDC *) 0 ; | |
20043 | wxRect *arg2 = 0 ; | |
20044 | void *argp1 = 0 ; | |
20045 | int res1 = 0 ; | |
20046 | wxRect temp2 ; | |
20047 | PyObject * obj0 = 0 ; | |
20048 | PyObject * obj1 = 0 ; | |
20049 | char * kwnames[] = { | |
20050 | (char *) "self",(char *) "rect", NULL | |
20051 | }; | |
20052 | ||
20053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
20054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20055 | if (!SWIG_IsOK(res1)) { | |
20056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20057 | } | |
20058 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20059 | { | |
20060 | arg2 = &temp2; | |
20061 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20062 | } | |
20063 | { | |
20064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20065 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
20066 | wxPyEndAllowThreads(__tstate); | |
20067 | if (PyErr_Occurred()) SWIG_fail; | |
20068 | } | |
20069 | resultobj = SWIG_Py_Void(); | |
20070 | return resultobj; | |
20071 | fail: | |
20072 | return NULL; | |
20073 | } | |
20074 | ||
20075 | ||
20076 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20077 | PyObject *resultobj = 0; | |
20078 | wxDC *arg1 = (wxDC *) 0 ; | |
20079 | int arg2 ; | |
20080 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20081 | int arg4 = (int) 0 ; | |
20082 | int arg5 = (int) 0 ; | |
20083 | void *argp1 = 0 ; | |
20084 | int res1 = 0 ; | |
20085 | int val4 ; | |
20086 | int ecode4 = 0 ; | |
20087 | int val5 ; | |
20088 | int ecode5 = 0 ; | |
20089 | PyObject * obj0 = 0 ; | |
20090 | PyObject * obj1 = 0 ; | |
20091 | PyObject * obj2 = 0 ; | |
20092 | PyObject * obj3 = 0 ; | |
20093 | char * kwnames[] = { | |
20094 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
20095 | }; | |
20096 | ||
20097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20099 | if (!SWIG_IsOK(res1)) { | |
20100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20101 | } | |
20102 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20103 | { | |
20104 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20105 | if (arg3 == NULL) SWIG_fail; | |
20106 | } | |
20107 | if (obj2) { | |
20108 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20109 | if (!SWIG_IsOK(ecode4)) { | |
20110 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
20111 | } | |
20112 | arg4 = static_cast< int >(val4); | |
20113 | } | |
20114 | if (obj3) { | |
20115 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20116 | if (!SWIG_IsOK(ecode5)) { | |
20117 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
20118 | } | |
20119 | arg5 = static_cast< int >(val5); | |
20120 | } | |
20121 | { | |
20122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20123 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
20124 | wxPyEndAllowThreads(__tstate); | |
20125 | if (PyErr_Occurred()) SWIG_fail; | |
20126 | } | |
20127 | resultobj = SWIG_Py_Void(); | |
20128 | { | |
20129 | if (arg3) delete [] arg3; | |
20130 | } | |
20131 | return resultobj; | |
20132 | fail: | |
20133 | { | |
20134 | if (arg3) delete [] arg3; | |
20135 | } | |
20136 | return NULL; | |
20137 | } | |
20138 | ||
20139 | ||
20140 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20141 | PyObject *resultobj = 0; | |
20142 | wxDC *arg1 = (wxDC *) 0 ; | |
20143 | int arg2 ; | |
20144 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20145 | int arg4 = (int) 0 ; | |
20146 | int arg5 = (int) 0 ; | |
20147 | int arg6 = (int) wxODDEVEN_RULE ; | |
20148 | void *argp1 = 0 ; | |
20149 | int res1 = 0 ; | |
20150 | int val4 ; | |
20151 | int ecode4 = 0 ; | |
20152 | int val5 ; | |
20153 | int ecode5 = 0 ; | |
20154 | int val6 ; | |
20155 | int ecode6 = 0 ; | |
20156 | PyObject * obj0 = 0 ; | |
20157 | PyObject * obj1 = 0 ; | |
20158 | PyObject * obj2 = 0 ; | |
20159 | PyObject * obj3 = 0 ; | |
20160 | PyObject * obj4 = 0 ; | |
20161 | char * kwnames[] = { | |
20162 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
20163 | }; | |
20164 | ||
20165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20167 | if (!SWIG_IsOK(res1)) { | |
20168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20169 | } | |
20170 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20171 | { | |
20172 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20173 | if (arg3 == NULL) SWIG_fail; | |
20174 | } | |
20175 | if (obj2) { | |
20176 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20177 | if (!SWIG_IsOK(ecode4)) { | |
20178 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
20179 | } | |
20180 | arg4 = static_cast< int >(val4); | |
20181 | } | |
20182 | if (obj3) { | |
20183 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20184 | if (!SWIG_IsOK(ecode5)) { | |
20185 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
20186 | } | |
20187 | arg5 = static_cast< int >(val5); | |
20188 | } | |
20189 | if (obj4) { | |
20190 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
20191 | if (!SWIG_IsOK(ecode6)) { | |
20192 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
20193 | } | |
20194 | arg6 = static_cast< int >(val6); | |
20195 | } | |
20196 | { | |
20197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20198 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
20199 | wxPyEndAllowThreads(__tstate); | |
20200 | if (PyErr_Occurred()) SWIG_fail; | |
20201 | } | |
20202 | resultobj = SWIG_Py_Void(); | |
20203 | { | |
20204 | if (arg3) delete [] arg3; | |
20205 | } | |
20206 | return resultobj; | |
20207 | fail: | |
20208 | { | |
20209 | if (arg3) delete [] arg3; | |
20210 | } | |
20211 | return NULL; | |
20212 | } | |
20213 | ||
20214 | ||
20215 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20216 | PyObject *resultobj = 0; | |
20217 | wxDC *arg1 = (wxDC *) 0 ; | |
20218 | wxString *arg2 = 0 ; | |
20219 | wxRect *arg3 = 0 ; | |
20220 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20221 | int arg5 = (int) -1 ; | |
20222 | void *argp1 = 0 ; | |
20223 | int res1 = 0 ; | |
20224 | bool temp2 = false ; | |
20225 | wxRect temp3 ; | |
20226 | int val4 ; | |
20227 | int ecode4 = 0 ; | |
20228 | int val5 ; | |
20229 | int ecode5 = 0 ; | |
20230 | PyObject * obj0 = 0 ; | |
20231 | PyObject * obj1 = 0 ; | |
20232 | PyObject * obj2 = 0 ; | |
20233 | PyObject * obj3 = 0 ; | |
20234 | PyObject * obj4 = 0 ; | |
20235 | char * kwnames[] = { | |
20236 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20237 | }; | |
20238 | ||
20239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20241 | if (!SWIG_IsOK(res1)) { | |
20242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20243 | } | |
20244 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20245 | { | |
20246 | arg2 = wxString_in_helper(obj1); | |
20247 | if (arg2 == NULL) SWIG_fail; | |
20248 | temp2 = true; | |
20249 | } | |
20250 | { | |
20251 | arg3 = &temp3; | |
20252 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20253 | } | |
20254 | if (obj3) { | |
20255 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20256 | if (!SWIG_IsOK(ecode4)) { | |
20257 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20258 | } | |
20259 | arg4 = static_cast< int >(val4); | |
20260 | } | |
20261 | if (obj4) { | |
20262 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20263 | if (!SWIG_IsOK(ecode5)) { | |
20264 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20265 | } | |
20266 | arg5 = static_cast< int >(val5); | |
20267 | } | |
20268 | { | |
20269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20270 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20271 | wxPyEndAllowThreads(__tstate); | |
20272 | if (PyErr_Occurred()) SWIG_fail; | |
20273 | } | |
20274 | resultobj = SWIG_Py_Void(); | |
20275 | { | |
20276 | if (temp2) | |
20277 | delete arg2; | |
20278 | } | |
20279 | return resultobj; | |
20280 | fail: | |
20281 | { | |
20282 | if (temp2) | |
20283 | delete arg2; | |
20284 | } | |
20285 | return NULL; | |
20286 | } | |
20287 | ||
20288 | ||
20289 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20290 | PyObject *resultobj = 0; | |
20291 | wxDC *arg1 = (wxDC *) 0 ; | |
20292 | wxString *arg2 = 0 ; | |
20293 | wxBitmap *arg3 = 0 ; | |
20294 | wxRect *arg4 = 0 ; | |
20295 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20296 | int arg6 = (int) -1 ; | |
20297 | wxRect result; | |
20298 | void *argp1 = 0 ; | |
20299 | int res1 = 0 ; | |
20300 | bool temp2 = false ; | |
20301 | void *argp3 = 0 ; | |
20302 | int res3 = 0 ; | |
20303 | wxRect temp4 ; | |
20304 | int val5 ; | |
20305 | int ecode5 = 0 ; | |
20306 | int val6 ; | |
20307 | int ecode6 = 0 ; | |
20308 | PyObject * obj0 = 0 ; | |
20309 | PyObject * obj1 = 0 ; | |
20310 | PyObject * obj2 = 0 ; | |
20311 | PyObject * obj3 = 0 ; | |
20312 | PyObject * obj4 = 0 ; | |
20313 | PyObject * obj5 = 0 ; | |
20314 | char * kwnames[] = { | |
20315 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20316 | }; | |
20317 | ||
20318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20320 | if (!SWIG_IsOK(res1)) { | |
20321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20322 | } | |
20323 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20324 | { | |
20325 | arg2 = wxString_in_helper(obj1); | |
20326 | if (arg2 == NULL) SWIG_fail; | |
20327 | temp2 = true; | |
20328 | } | |
20329 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20330 | if (!SWIG_IsOK(res3)) { | |
20331 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20332 | } | |
20333 | if (!argp3) { | |
20334 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20335 | } | |
20336 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20337 | { | |
20338 | arg4 = &temp4; | |
20339 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20340 | } | |
20341 | if (obj4) { | |
20342 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20343 | if (!SWIG_IsOK(ecode5)) { | |
20344 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
20345 | } | |
20346 | arg5 = static_cast< int >(val5); | |
20347 | } | |
20348 | if (obj5) { | |
20349 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20350 | if (!SWIG_IsOK(ecode6)) { | |
20351 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
20352 | } | |
20353 | arg6 = static_cast< int >(val6); | |
20354 | } | |
20355 | { | |
20356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20357 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
20358 | wxPyEndAllowThreads(__tstate); | |
20359 | if (PyErr_Occurred()) SWIG_fail; | |
20360 | } | |
20361 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20362 | { | |
20363 | if (temp2) | |
20364 | delete arg2; | |
20365 | } | |
20366 | return resultobj; | |
20367 | fail: | |
20368 | { | |
20369 | if (temp2) | |
20370 | delete arg2; | |
20371 | } | |
20372 | return NULL; | |
20373 | } | |
20374 | ||
20375 | ||
20376 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20377 | PyObject *resultobj = 0; | |
20378 | wxDC *arg1 = (wxDC *) 0 ; | |
20379 | int arg2 ; | |
20380 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20381 | void *argp1 = 0 ; | |
20382 | int res1 = 0 ; | |
20383 | PyObject * obj0 = 0 ; | |
20384 | PyObject * obj1 = 0 ; | |
20385 | char * kwnames[] = { | |
20386 | (char *) "self",(char *) "points", NULL | |
20387 | }; | |
20388 | ||
20389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
20390 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20391 | if (!SWIG_IsOK(res1)) { | |
20392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20393 | } | |
20394 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20395 | { | |
20396 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20397 | if (arg3 == NULL) SWIG_fail; | |
20398 | } | |
20399 | { | |
20400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20401 | (arg1)->DrawSpline(arg2,arg3); | |
20402 | wxPyEndAllowThreads(__tstate); | |
20403 | if (PyErr_Occurred()) SWIG_fail; | |
20404 | } | |
20405 | resultobj = SWIG_Py_Void(); | |
20406 | { | |
20407 | if (arg3) delete [] arg3; | |
20408 | } | |
20409 | return resultobj; | |
20410 | fail: | |
20411 | { | |
20412 | if (arg3) delete [] arg3; | |
20413 | } | |
20414 | return NULL; | |
20415 | } | |
20416 | ||
20417 | ||
20418 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20419 | PyObject *resultobj = 0; | |
20420 | wxDC *arg1 = (wxDC *) 0 ; | |
20421 | void *argp1 = 0 ; | |
20422 | int res1 = 0 ; | |
20423 | PyObject *swig_obj[1] ; | |
20424 | ||
20425 | if (!args) SWIG_fail; | |
20426 | swig_obj[0] = args; | |
20427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20428 | if (!SWIG_IsOK(res1)) { | |
20429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20430 | } | |
20431 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20432 | { | |
20433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20434 | (arg1)->Clear(); | |
20435 | wxPyEndAllowThreads(__tstate); | |
20436 | if (PyErr_Occurred()) SWIG_fail; | |
20437 | } | |
20438 | resultobj = SWIG_Py_Void(); | |
20439 | return resultobj; | |
20440 | fail: | |
20441 | return NULL; | |
20442 | } | |
20443 | ||
20444 | ||
20445 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20446 | PyObject *resultobj = 0; | |
20447 | wxDC *arg1 = (wxDC *) 0 ; | |
20448 | wxString *arg2 = 0 ; | |
20449 | bool result; | |
20450 | void *argp1 = 0 ; | |
20451 | int res1 = 0 ; | |
20452 | bool temp2 = false ; | |
20453 | PyObject * obj0 = 0 ; | |
20454 | PyObject * obj1 = 0 ; | |
20455 | char * kwnames[] = { | |
20456 | (char *) "self",(char *) "message", NULL | |
20457 | }; | |
20458 | ||
20459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
20460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20461 | if (!SWIG_IsOK(res1)) { | |
20462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20463 | } | |
20464 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20465 | { | |
20466 | arg2 = wxString_in_helper(obj1); | |
20467 | if (arg2 == NULL) SWIG_fail; | |
20468 | temp2 = true; | |
20469 | } | |
20470 | { | |
20471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20472 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
20473 | wxPyEndAllowThreads(__tstate); | |
20474 | if (PyErr_Occurred()) SWIG_fail; | |
20475 | } | |
20476 | { | |
20477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20478 | } | |
20479 | { | |
20480 | if (temp2) | |
20481 | delete arg2; | |
20482 | } | |
20483 | return resultobj; | |
20484 | fail: | |
20485 | { | |
20486 | if (temp2) | |
20487 | delete arg2; | |
20488 | } | |
20489 | return NULL; | |
20490 | } | |
20491 | ||
20492 | ||
20493 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20494 | PyObject *resultobj = 0; | |
20495 | wxDC *arg1 = (wxDC *) 0 ; | |
20496 | void *argp1 = 0 ; | |
20497 | int res1 = 0 ; | |
20498 | PyObject *swig_obj[1] ; | |
20499 | ||
20500 | if (!args) SWIG_fail; | |
20501 | swig_obj[0] = args; | |
20502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20503 | if (!SWIG_IsOK(res1)) { | |
20504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20505 | } | |
20506 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20507 | { | |
20508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20509 | (arg1)->EndDoc(); | |
20510 | wxPyEndAllowThreads(__tstate); | |
20511 | if (PyErr_Occurred()) SWIG_fail; | |
20512 | } | |
20513 | resultobj = SWIG_Py_Void(); | |
20514 | return resultobj; | |
20515 | fail: | |
20516 | return NULL; | |
20517 | } | |
20518 | ||
20519 | ||
20520 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20521 | PyObject *resultobj = 0; | |
20522 | wxDC *arg1 = (wxDC *) 0 ; | |
20523 | void *argp1 = 0 ; | |
20524 | int res1 = 0 ; | |
20525 | PyObject *swig_obj[1] ; | |
20526 | ||
20527 | if (!args) SWIG_fail; | |
20528 | swig_obj[0] = args; | |
20529 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20530 | if (!SWIG_IsOK(res1)) { | |
20531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20532 | } | |
20533 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20534 | { | |
20535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20536 | (arg1)->StartPage(); | |
20537 | wxPyEndAllowThreads(__tstate); | |
20538 | if (PyErr_Occurred()) SWIG_fail; | |
20539 | } | |
20540 | resultobj = SWIG_Py_Void(); | |
20541 | return resultobj; | |
20542 | fail: | |
20543 | return NULL; | |
20544 | } | |
20545 | ||
20546 | ||
20547 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20548 | PyObject *resultobj = 0; | |
20549 | wxDC *arg1 = (wxDC *) 0 ; | |
20550 | void *argp1 = 0 ; | |
20551 | int res1 = 0 ; | |
20552 | PyObject *swig_obj[1] ; | |
20553 | ||
20554 | if (!args) SWIG_fail; | |
20555 | swig_obj[0] = args; | |
20556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20557 | if (!SWIG_IsOK(res1)) { | |
20558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20559 | } | |
20560 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20561 | { | |
20562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20563 | (arg1)->EndPage(); | |
20564 | wxPyEndAllowThreads(__tstate); | |
20565 | if (PyErr_Occurred()) SWIG_fail; | |
20566 | } | |
20567 | resultobj = SWIG_Py_Void(); | |
20568 | return resultobj; | |
20569 | fail: | |
20570 | return NULL; | |
20571 | } | |
20572 | ||
20573 | ||
20574 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20575 | PyObject *resultobj = 0; | |
20576 | wxDC *arg1 = (wxDC *) 0 ; | |
20577 | wxFont *arg2 = 0 ; | |
20578 | void *argp1 = 0 ; | |
20579 | int res1 = 0 ; | |
20580 | void *argp2 = 0 ; | |
20581 | int res2 = 0 ; | |
20582 | PyObject * obj0 = 0 ; | |
20583 | PyObject * obj1 = 0 ; | |
20584 | char * kwnames[] = { | |
20585 | (char *) "self",(char *) "font", NULL | |
20586 | }; | |
20587 | ||
20588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
20589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20590 | if (!SWIG_IsOK(res1)) { | |
20591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20592 | } | |
20593 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20594 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
20595 | if (!SWIG_IsOK(res2)) { | |
20596 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20597 | } | |
20598 | if (!argp2) { | |
20599 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20600 | } | |
20601 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
20602 | { | |
20603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20604 | (arg1)->SetFont((wxFont const &)*arg2); | |
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | resultobj = SWIG_Py_Void(); | |
20609 | return resultobj; | |
20610 | fail: | |
20611 | return NULL; | |
20612 | } | |
20613 | ||
20614 | ||
20615 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20616 | PyObject *resultobj = 0; | |
20617 | wxDC *arg1 = (wxDC *) 0 ; | |
20618 | wxPen *arg2 = 0 ; | |
20619 | void *argp1 = 0 ; | |
20620 | int res1 = 0 ; | |
20621 | void *argp2 = 0 ; | |
20622 | int res2 = 0 ; | |
20623 | PyObject * obj0 = 0 ; | |
20624 | PyObject * obj1 = 0 ; | |
20625 | char * kwnames[] = { | |
20626 | (char *) "self",(char *) "pen", NULL | |
20627 | }; | |
20628 | ||
20629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
20630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20631 | if (!SWIG_IsOK(res1)) { | |
20632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20633 | } | |
20634 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20635 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
20636 | if (!SWIG_IsOK(res2)) { | |
20637 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20638 | } | |
20639 | if (!argp2) { | |
20640 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20641 | } | |
20642 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
20643 | { | |
20644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20645 | (arg1)->SetPen((wxPen const &)*arg2); | |
20646 | wxPyEndAllowThreads(__tstate); | |
20647 | if (PyErr_Occurred()) SWIG_fail; | |
20648 | } | |
20649 | resultobj = SWIG_Py_Void(); | |
20650 | return resultobj; | |
20651 | fail: | |
20652 | return NULL; | |
20653 | } | |
20654 | ||
20655 | ||
20656 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20657 | PyObject *resultobj = 0; | |
20658 | wxDC *arg1 = (wxDC *) 0 ; | |
20659 | wxBrush *arg2 = 0 ; | |
20660 | void *argp1 = 0 ; | |
20661 | int res1 = 0 ; | |
20662 | void *argp2 = 0 ; | |
20663 | int res2 = 0 ; | |
20664 | PyObject * obj0 = 0 ; | |
20665 | PyObject * obj1 = 0 ; | |
20666 | char * kwnames[] = { | |
20667 | (char *) "self",(char *) "brush", NULL | |
20668 | }; | |
20669 | ||
20670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
20671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20672 | if (!SWIG_IsOK(res1)) { | |
20673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20674 | } | |
20675 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20676 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20677 | if (!SWIG_IsOK(res2)) { | |
20678 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20679 | } | |
20680 | if (!argp2) { | |
20681 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20682 | } | |
20683 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20684 | { | |
20685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20686 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
20687 | wxPyEndAllowThreads(__tstate); | |
20688 | if (PyErr_Occurred()) SWIG_fail; | |
20689 | } | |
20690 | resultobj = SWIG_Py_Void(); | |
20691 | return resultobj; | |
20692 | fail: | |
20693 | return NULL; | |
20694 | } | |
20695 | ||
20696 | ||
20697 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20698 | PyObject *resultobj = 0; | |
20699 | wxDC *arg1 = (wxDC *) 0 ; | |
20700 | wxBrush *arg2 = 0 ; | |
20701 | void *argp1 = 0 ; | |
20702 | int res1 = 0 ; | |
20703 | void *argp2 = 0 ; | |
20704 | int res2 = 0 ; | |
20705 | PyObject * obj0 = 0 ; | |
20706 | PyObject * obj1 = 0 ; | |
20707 | char * kwnames[] = { | |
20708 | (char *) "self",(char *) "brush", NULL | |
20709 | }; | |
20710 | ||
20711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
20712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20713 | if (!SWIG_IsOK(res1)) { | |
20714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20715 | } | |
20716 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20717 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20718 | if (!SWIG_IsOK(res2)) { | |
20719 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20720 | } | |
20721 | if (!argp2) { | |
20722 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20723 | } | |
20724 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20725 | { | |
20726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20727 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
20728 | wxPyEndAllowThreads(__tstate); | |
20729 | if (PyErr_Occurred()) SWIG_fail; | |
20730 | } | |
20731 | resultobj = SWIG_Py_Void(); | |
20732 | return resultobj; | |
20733 | fail: | |
20734 | return NULL; | |
20735 | } | |
20736 | ||
20737 | ||
20738 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20739 | PyObject *resultobj = 0; | |
20740 | wxDC *arg1 = (wxDC *) 0 ; | |
20741 | int arg2 ; | |
20742 | void *argp1 = 0 ; | |
20743 | int res1 = 0 ; | |
20744 | int val2 ; | |
20745 | int ecode2 = 0 ; | |
20746 | PyObject * obj0 = 0 ; | |
20747 | PyObject * obj1 = 0 ; | |
20748 | char * kwnames[] = { | |
20749 | (char *) "self",(char *) "mode", NULL | |
20750 | }; | |
20751 | ||
20752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
20753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20754 | if (!SWIG_IsOK(res1)) { | |
20755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20756 | } | |
20757 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20758 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20759 | if (!SWIG_IsOK(ecode2)) { | |
20760 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
20761 | } | |
20762 | arg2 = static_cast< int >(val2); | |
20763 | { | |
20764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20765 | (arg1)->SetBackgroundMode(arg2); | |
20766 | wxPyEndAllowThreads(__tstate); | |
20767 | if (PyErr_Occurred()) SWIG_fail; | |
20768 | } | |
20769 | resultobj = SWIG_Py_Void(); | |
20770 | return resultobj; | |
20771 | fail: | |
20772 | return NULL; | |
20773 | } | |
20774 | ||
20775 | ||
20776 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20777 | PyObject *resultobj = 0; | |
20778 | wxDC *arg1 = (wxDC *) 0 ; | |
20779 | wxPalette *arg2 = 0 ; | |
20780 | void *argp1 = 0 ; | |
20781 | int res1 = 0 ; | |
20782 | void *argp2 = 0 ; | |
20783 | int res2 = 0 ; | |
20784 | PyObject * obj0 = 0 ; | |
20785 | PyObject * obj1 = 0 ; | |
20786 | char * kwnames[] = { | |
20787 | (char *) "self",(char *) "palette", NULL | |
20788 | }; | |
20789 | ||
20790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
20791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20792 | if (!SWIG_IsOK(res1)) { | |
20793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20794 | } | |
20795 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20796 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
20797 | if (!SWIG_IsOK(res2)) { | |
20798 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20799 | } | |
20800 | if (!argp2) { | |
20801 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20802 | } | |
20803 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
20804 | { | |
20805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20806 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
20807 | wxPyEndAllowThreads(__tstate); | |
20808 | if (PyErr_Occurred()) SWIG_fail; | |
20809 | } | |
20810 | resultobj = SWIG_Py_Void(); | |
20811 | return resultobj; | |
20812 | fail: | |
20813 | return NULL; | |
20814 | } | |
20815 | ||
20816 | ||
20817 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20818 | PyObject *resultobj = 0; | |
20819 | wxDC *arg1 = (wxDC *) 0 ; | |
20820 | void *argp1 = 0 ; | |
20821 | int res1 = 0 ; | |
20822 | PyObject *swig_obj[1] ; | |
20823 | ||
20824 | if (!args) SWIG_fail; | |
20825 | swig_obj[0] = args; | |
20826 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20827 | if (!SWIG_IsOK(res1)) { | |
20828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20829 | } | |
20830 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20831 | { | |
20832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20833 | (arg1)->DestroyClippingRegion(); | |
20834 | wxPyEndAllowThreads(__tstate); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
20837 | resultobj = SWIG_Py_Void(); | |
20838 | return resultobj; | |
20839 | fail: | |
20840 | return NULL; | |
20841 | } | |
20842 | ||
20843 | ||
20844 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20845 | PyObject *resultobj = 0; | |
20846 | wxDC *arg1 = (wxDC *) 0 ; | |
20847 | int *arg2 = (int *) 0 ; | |
20848 | int *arg3 = (int *) 0 ; | |
20849 | int *arg4 = (int *) 0 ; | |
20850 | int *arg5 = (int *) 0 ; | |
20851 | void *argp1 = 0 ; | |
20852 | int res1 = 0 ; | |
20853 | int temp2 ; | |
20854 | int res2 = SWIG_TMPOBJ ; | |
20855 | int temp3 ; | |
20856 | int res3 = SWIG_TMPOBJ ; | |
20857 | int temp4 ; | |
20858 | int res4 = SWIG_TMPOBJ ; | |
20859 | int temp5 ; | |
20860 | int res5 = SWIG_TMPOBJ ; | |
20861 | PyObject *swig_obj[1] ; | |
20862 | ||
20863 | arg2 = &temp2; | |
20864 | arg3 = &temp3; | |
20865 | arg4 = &temp4; | |
20866 | arg5 = &temp5; | |
20867 | if (!args) SWIG_fail; | |
20868 | swig_obj[0] = args; | |
20869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20870 | if (!SWIG_IsOK(res1)) { | |
20871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20872 | } | |
20873 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20874 | { | |
20875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20876 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
20877 | wxPyEndAllowThreads(__tstate); | |
20878 | if (PyErr_Occurred()) SWIG_fail; | |
20879 | } | |
20880 | resultobj = SWIG_Py_Void(); | |
20881 | if (SWIG_IsTmpObj(res2)) { | |
20882 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20883 | } else { | |
20884 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20885 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20886 | } | |
20887 | if (SWIG_IsTmpObj(res3)) { | |
20888 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20889 | } else { | |
20890 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20891 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20892 | } | |
20893 | if (SWIG_IsTmpObj(res4)) { | |
20894 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20895 | } else { | |
20896 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20897 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20898 | } | |
20899 | if (SWIG_IsTmpObj(res5)) { | |
20900 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20901 | } else { | |
20902 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20903 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20904 | } | |
20905 | return resultobj; | |
20906 | fail: | |
20907 | return NULL; | |
20908 | } | |
20909 | ||
20910 | ||
20911 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20912 | PyObject *resultobj = 0; | |
20913 | wxDC *arg1 = (wxDC *) 0 ; | |
20914 | wxRect result; | |
20915 | void *argp1 = 0 ; | |
20916 | int res1 = 0 ; | |
20917 | PyObject *swig_obj[1] ; | |
20918 | ||
20919 | if (!args) SWIG_fail; | |
20920 | swig_obj[0] = args; | |
20921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20922 | if (!SWIG_IsOK(res1)) { | |
20923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20924 | } | |
20925 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20926 | { | |
20927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20928 | result = wxDC_GetClippingRect(arg1); | |
20929 | wxPyEndAllowThreads(__tstate); | |
20930 | if (PyErr_Occurred()) SWIG_fail; | |
20931 | } | |
20932 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20933 | return resultobj; | |
20934 | fail: | |
20935 | return NULL; | |
20936 | } | |
20937 | ||
20938 | ||
20939 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20940 | PyObject *resultobj = 0; | |
20941 | wxDC *arg1 = (wxDC *) 0 ; | |
20942 | int result; | |
20943 | void *argp1 = 0 ; | |
20944 | int res1 = 0 ; | |
20945 | PyObject *swig_obj[1] ; | |
20946 | ||
20947 | if (!args) SWIG_fail; | |
20948 | swig_obj[0] = args; | |
20949 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20950 | if (!SWIG_IsOK(res1)) { | |
20951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20952 | } | |
20953 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20954 | { | |
20955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20956 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
20957 | wxPyEndAllowThreads(__tstate); | |
20958 | if (PyErr_Occurred()) SWIG_fail; | |
20959 | } | |
20960 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20961 | return resultobj; | |
20962 | fail: | |
20963 | return NULL; | |
20964 | } | |
20965 | ||
20966 | ||
20967 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20968 | PyObject *resultobj = 0; | |
20969 | wxDC *arg1 = (wxDC *) 0 ; | |
20970 | int result; | |
20971 | void *argp1 = 0 ; | |
20972 | int res1 = 0 ; | |
20973 | PyObject *swig_obj[1] ; | |
20974 | ||
20975 | if (!args) SWIG_fail; | |
20976 | swig_obj[0] = args; | |
20977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20978 | if (!SWIG_IsOK(res1)) { | |
20979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20980 | } | |
20981 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20982 | { | |
20983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20984 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
20985 | wxPyEndAllowThreads(__tstate); | |
20986 | if (PyErr_Occurred()) SWIG_fail; | |
20987 | } | |
20988 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20989 | return resultobj; | |
20990 | fail: | |
20991 | return NULL; | |
20992 | } | |
20993 | ||
20994 | ||
20995 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20996 | PyObject *resultobj = 0; | |
20997 | wxDC *arg1 = (wxDC *) 0 ; | |
20998 | wxString *arg2 = 0 ; | |
20999 | int *arg3 = (int *) 0 ; | |
21000 | int *arg4 = (int *) 0 ; | |
21001 | void *argp1 = 0 ; | |
21002 | int res1 = 0 ; | |
21003 | bool temp2 = false ; | |
21004 | int temp3 ; | |
21005 | int res3 = SWIG_TMPOBJ ; | |
21006 | int temp4 ; | |
21007 | int res4 = SWIG_TMPOBJ ; | |
21008 | PyObject * obj0 = 0 ; | |
21009 | PyObject * obj1 = 0 ; | |
21010 | char * kwnames[] = { | |
21011 | (char *) "self",(char *) "string", NULL | |
21012 | }; | |
21013 | ||
21014 | arg3 = &temp3; | |
21015 | arg4 = &temp4; | |
21016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21018 | if (!SWIG_IsOK(res1)) { | |
21019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21020 | } | |
21021 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21022 | { | |
21023 | arg2 = wxString_in_helper(obj1); | |
21024 | if (arg2 == NULL) SWIG_fail; | |
21025 | temp2 = true; | |
21026 | } | |
21027 | { | |
21028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21029 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
21030 | wxPyEndAllowThreads(__tstate); | |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
21032 | } | |
21033 | resultobj = SWIG_Py_Void(); | |
21034 | if (SWIG_IsTmpObj(res3)) { | |
21035 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21036 | } else { | |
21037 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21038 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21039 | } | |
21040 | if (SWIG_IsTmpObj(res4)) { | |
21041 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21042 | } else { | |
21043 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21044 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21045 | } | |
21046 | { | |
21047 | if (temp2) | |
21048 | delete arg2; | |
21049 | } | |
21050 | return resultobj; | |
21051 | fail: | |
21052 | { | |
21053 | if (temp2) | |
21054 | delete arg2; | |
21055 | } | |
21056 | return NULL; | |
21057 | } | |
21058 | ||
21059 | ||
21060 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21061 | PyObject *resultobj = 0; | |
21062 | wxDC *arg1 = (wxDC *) 0 ; | |
21063 | wxString *arg2 = 0 ; | |
21064 | int *arg3 = (int *) 0 ; | |
21065 | int *arg4 = (int *) 0 ; | |
21066 | int *arg5 = (int *) 0 ; | |
21067 | int *arg6 = (int *) 0 ; | |
21068 | wxFont *arg7 = (wxFont *) NULL ; | |
21069 | void *argp1 = 0 ; | |
21070 | int res1 = 0 ; | |
21071 | bool temp2 = false ; | |
21072 | int temp3 ; | |
21073 | int res3 = SWIG_TMPOBJ ; | |
21074 | int temp4 ; | |
21075 | int res4 = SWIG_TMPOBJ ; | |
21076 | int temp5 ; | |
21077 | int res5 = SWIG_TMPOBJ ; | |
21078 | int temp6 ; | |
21079 | int res6 = SWIG_TMPOBJ ; | |
21080 | void *argp7 = 0 ; | |
21081 | int res7 = 0 ; | |
21082 | PyObject * obj0 = 0 ; | |
21083 | PyObject * obj1 = 0 ; | |
21084 | PyObject * obj2 = 0 ; | |
21085 | char * kwnames[] = { | |
21086 | (char *) "self",(char *) "string",(char *) "font", NULL | |
21087 | }; | |
21088 | ||
21089 | arg3 = &temp3; | |
21090 | arg4 = &temp4; | |
21091 | arg5 = &temp5; | |
21092 | arg6 = &temp6; | |
21093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21095 | if (!SWIG_IsOK(res1)) { | |
21096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21097 | } | |
21098 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21099 | { | |
21100 | arg2 = wxString_in_helper(obj1); | |
21101 | if (arg2 == NULL) SWIG_fail; | |
21102 | temp2 = true; | |
21103 | } | |
21104 | if (obj2) { | |
21105 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21106 | if (!SWIG_IsOK(res7)) { | |
21107 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 21108 | } |
0085ce49 RD |
21109 | arg7 = reinterpret_cast< wxFont * >(argp7); |
21110 | } | |
21111 | { | |
21112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21113 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
21114 | wxPyEndAllowThreads(__tstate); | |
21115 | if (PyErr_Occurred()) SWIG_fail; | |
21116 | } | |
21117 | resultobj = SWIG_Py_Void(); | |
21118 | if (SWIG_IsTmpObj(res3)) { | |
21119 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21120 | } else { | |
21121 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21122 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21123 | } | |
21124 | if (SWIG_IsTmpObj(res4)) { | |
21125 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21126 | } else { | |
21127 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21128 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21129 | } | |
21130 | if (SWIG_IsTmpObj(res5)) { | |
21131 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21132 | } else { | |
21133 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21134 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21135 | } | |
21136 | if (SWIG_IsTmpObj(res6)) { | |
21137 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
21138 | } else { | |
21139 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21140 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
21141 | } | |
21142 | { | |
21143 | if (temp2) | |
21144 | delete arg2; | |
21145 | } | |
21146 | return resultobj; | |
21147 | fail: | |
21148 | { | |
21149 | if (temp2) | |
21150 | delete arg2; | |
21151 | } | |
21152 | return NULL; | |
21153 | } | |
21154 | ||
21155 | ||
21156 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21157 | PyObject *resultobj = 0; | |
21158 | wxDC *arg1 = (wxDC *) 0 ; | |
21159 | wxString *arg2 = 0 ; | |
21160 | int *arg3 = (int *) 0 ; | |
21161 | int *arg4 = (int *) 0 ; | |
21162 | int *arg5 = (int *) 0 ; | |
21163 | wxFont *arg6 = (wxFont *) NULL ; | |
21164 | void *argp1 = 0 ; | |
21165 | int res1 = 0 ; | |
21166 | bool temp2 = false ; | |
21167 | int temp3 ; | |
21168 | int res3 = SWIG_TMPOBJ ; | |
21169 | int temp4 ; | |
21170 | int res4 = SWIG_TMPOBJ ; | |
21171 | int temp5 ; | |
21172 | int res5 = SWIG_TMPOBJ ; | |
21173 | void *argp6 = 0 ; | |
21174 | int res6 = 0 ; | |
21175 | PyObject * obj0 = 0 ; | |
21176 | PyObject * obj1 = 0 ; | |
21177 | PyObject * obj2 = 0 ; | |
21178 | char * kwnames[] = { | |
21179 | (char *) "self",(char *) "text",(char *) "font", NULL | |
21180 | }; | |
21181 | ||
21182 | arg3 = &temp3; | |
21183 | arg4 = &temp4; | |
21184 | arg5 = &temp5; | |
21185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21187 | if (!SWIG_IsOK(res1)) { | |
21188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21189 | } | |
21190 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21191 | { | |
21192 | arg2 = wxString_in_helper(obj1); | |
21193 | if (arg2 == NULL) SWIG_fail; | |
21194 | temp2 = true; | |
21195 | } | |
21196 | if (obj2) { | |
21197 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21198 | if (!SWIG_IsOK(res6)) { | |
21199 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 21200 | } |
0085ce49 RD |
21201 | arg6 = reinterpret_cast< wxFont * >(argp6); |
21202 | } | |
21203 | { | |
21204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21205 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
21206 | wxPyEndAllowThreads(__tstate); | |
21207 | if (PyErr_Occurred()) SWIG_fail; | |
21208 | } | |
21209 | resultobj = SWIG_Py_Void(); | |
21210 | if (SWIG_IsTmpObj(res3)) { | |
21211 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21212 | } else { | |
21213 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21214 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21215 | } | |
21216 | if (SWIG_IsTmpObj(res4)) { | |
21217 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21218 | } else { | |
21219 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21220 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21221 | } | |
21222 | if (SWIG_IsTmpObj(res5)) { | |
21223 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21224 | } else { | |
21225 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21226 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21227 | } | |
21228 | { | |
21229 | if (temp2) | |
21230 | delete arg2; | |
21231 | } | |
21232 | return resultobj; | |
21233 | fail: | |
21234 | { | |
21235 | if (temp2) | |
21236 | delete arg2; | |
21237 | } | |
21238 | return NULL; | |
21239 | } | |
21240 | ||
21241 | ||
21242 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21243 | PyObject *resultobj = 0; | |
21244 | wxDC *arg1 = (wxDC *) 0 ; | |
21245 | wxString *arg2 = 0 ; | |
21246 | wxArrayInt result; | |
21247 | void *argp1 = 0 ; | |
21248 | int res1 = 0 ; | |
21249 | bool temp2 = false ; | |
21250 | PyObject * obj0 = 0 ; | |
21251 | PyObject * obj1 = 0 ; | |
21252 | char * kwnames[] = { | |
21253 | (char *) "self",(char *) "text", NULL | |
21254 | }; | |
21255 | ||
21256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21258 | if (!SWIG_IsOK(res1)) { | |
21259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21260 | } | |
21261 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21262 | { | |
21263 | arg2 = wxString_in_helper(obj1); | |
21264 | if (arg2 == NULL) SWIG_fail; | |
21265 | temp2 = true; | |
21266 | } | |
21267 | { | |
21268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21269 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21270 | wxPyEndAllowThreads(__tstate); | |
21271 | if (PyErr_Occurred()) SWIG_fail; | |
21272 | } | |
21273 | { | |
b39fe951 | 21274 | resultobj = wxArrayInt2PyList_helper(result); |
0085ce49 RD |
21275 | } |
21276 | { | |
21277 | if (temp2) | |
21278 | delete arg2; | |
21279 | } | |
21280 | return resultobj; | |
21281 | fail: | |
21282 | { | |
21283 | if (temp2) | |
21284 | delete arg2; | |
21285 | } | |
21286 | return NULL; | |
21287 | } | |
21288 | ||
21289 | ||
21290 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21291 | PyObject *resultobj = 0; | |
21292 | wxDC *arg1 = (wxDC *) 0 ; | |
21293 | wxSize result; | |
21294 | void *argp1 = 0 ; | |
21295 | int res1 = 0 ; | |
21296 | PyObject *swig_obj[1] ; | |
21297 | ||
21298 | if (!args) SWIG_fail; | |
21299 | swig_obj[0] = args; | |
21300 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21301 | if (!SWIG_IsOK(res1)) { | |
21302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21303 | } | |
21304 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21305 | { | |
21306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21307 | result = (arg1)->GetSize(); | |
21308 | wxPyEndAllowThreads(__tstate); | |
21309 | if (PyErr_Occurred()) SWIG_fail; | |
21310 | } | |
21311 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21312 | return resultobj; | |
21313 | fail: | |
21314 | return NULL; | |
21315 | } | |
21316 | ||
21317 | ||
21318 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21319 | PyObject *resultobj = 0; | |
21320 | wxDC *arg1 = (wxDC *) 0 ; | |
21321 | int *arg2 = (int *) 0 ; | |
21322 | int *arg3 = (int *) 0 ; | |
21323 | void *argp1 = 0 ; | |
21324 | int res1 = 0 ; | |
21325 | int temp2 ; | |
21326 | int res2 = SWIG_TMPOBJ ; | |
21327 | int temp3 ; | |
21328 | int res3 = SWIG_TMPOBJ ; | |
21329 | PyObject *swig_obj[1] ; | |
21330 | ||
21331 | arg2 = &temp2; | |
21332 | arg3 = &temp3; | |
21333 | if (!args) SWIG_fail; | |
21334 | swig_obj[0] = args; | |
21335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21336 | if (!SWIG_IsOK(res1)) { | |
21337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21338 | } | |
21339 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21340 | { | |
21341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21342 | (arg1)->GetSize(arg2,arg3); | |
21343 | wxPyEndAllowThreads(__tstate); | |
21344 | if (PyErr_Occurred()) SWIG_fail; | |
21345 | } | |
21346 | resultobj = SWIG_Py_Void(); | |
21347 | if (SWIG_IsTmpObj(res2)) { | |
21348 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21349 | } else { | |
21350 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21351 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21352 | } | |
21353 | if (SWIG_IsTmpObj(res3)) { | |
21354 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21355 | } else { | |
21356 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21357 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21358 | } | |
21359 | return resultobj; | |
21360 | fail: | |
21361 | return NULL; | |
21362 | } | |
21363 | ||
21364 | ||
21365 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21366 | PyObject *resultobj = 0; | |
21367 | wxDC *arg1 = (wxDC *) 0 ; | |
21368 | wxSize result; | |
21369 | void *argp1 = 0 ; | |
21370 | int res1 = 0 ; | |
21371 | PyObject *swig_obj[1] ; | |
21372 | ||
21373 | if (!args) SWIG_fail; | |
21374 | swig_obj[0] = args; | |
21375 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21376 | if (!SWIG_IsOK(res1)) { | |
21377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21378 | } | |
21379 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21380 | { | |
21381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21382 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
21383 | wxPyEndAllowThreads(__tstate); | |
21384 | if (PyErr_Occurred()) SWIG_fail; | |
21385 | } | |
21386 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21387 | return resultobj; | |
21388 | fail: | |
21389 | return NULL; | |
21390 | } | |
21391 | ||
21392 | ||
21393 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21394 | PyObject *resultobj = 0; | |
21395 | wxDC *arg1 = (wxDC *) 0 ; | |
21396 | int *arg2 = (int *) 0 ; | |
21397 | int *arg3 = (int *) 0 ; | |
21398 | void *argp1 = 0 ; | |
21399 | int res1 = 0 ; | |
21400 | int temp2 ; | |
21401 | int res2 = SWIG_TMPOBJ ; | |
21402 | int temp3 ; | |
21403 | int res3 = SWIG_TMPOBJ ; | |
21404 | PyObject *swig_obj[1] ; | |
21405 | ||
21406 | arg2 = &temp2; | |
21407 | arg3 = &temp3; | |
21408 | if (!args) SWIG_fail; | |
21409 | swig_obj[0] = args; | |
21410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21411 | if (!SWIG_IsOK(res1)) { | |
21412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21413 | } | |
21414 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21415 | { | |
21416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21417 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
21418 | wxPyEndAllowThreads(__tstate); | |
21419 | if (PyErr_Occurred()) SWIG_fail; | |
21420 | } | |
21421 | resultobj = SWIG_Py_Void(); | |
21422 | if (SWIG_IsTmpObj(res2)) { | |
21423 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21424 | } else { | |
21425 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21426 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21427 | } | |
21428 | if (SWIG_IsTmpObj(res3)) { | |
21429 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21430 | } else { | |
21431 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21432 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21433 | } | |
21434 | return resultobj; | |
21435 | fail: | |
21436 | return NULL; | |
21437 | } | |
21438 | ||
21439 | ||
21440 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21441 | PyObject *resultobj = 0; | |
21442 | wxDC *arg1 = (wxDC *) 0 ; | |
21443 | int arg2 ; | |
21444 | int result; | |
21445 | void *argp1 = 0 ; | |
21446 | int res1 = 0 ; | |
21447 | int val2 ; | |
21448 | int ecode2 = 0 ; | |
21449 | PyObject * obj0 = 0 ; | |
21450 | PyObject * obj1 = 0 ; | |
21451 | char * kwnames[] = { | |
21452 | (char *) "self",(char *) "x", NULL | |
21453 | }; | |
21454 | ||
21455 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21456 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21457 | if (!SWIG_IsOK(res1)) { | |
21458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21459 | } | |
21460 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21461 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21462 | if (!SWIG_IsOK(ecode2)) { | |
21463 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
21464 | } | |
21465 | arg2 = static_cast< int >(val2); | |
21466 | { | |
21467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21468 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
21469 | wxPyEndAllowThreads(__tstate); | |
21470 | if (PyErr_Occurred()) SWIG_fail; | |
21471 | } | |
21472 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21473 | return resultobj; | |
21474 | fail: | |
21475 | return NULL; | |
21476 | } | |
21477 | ||
21478 | ||
21479 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21480 | PyObject *resultobj = 0; | |
21481 | wxDC *arg1 = (wxDC *) 0 ; | |
21482 | int arg2 ; | |
21483 | int result; | |
21484 | void *argp1 = 0 ; | |
21485 | int res1 = 0 ; | |
21486 | int val2 ; | |
21487 | int ecode2 = 0 ; | |
21488 | PyObject * obj0 = 0 ; | |
21489 | PyObject * obj1 = 0 ; | |
21490 | char * kwnames[] = { | |
21491 | (char *) "self",(char *) "y", NULL | |
21492 | }; | |
21493 | ||
21494 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21495 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21496 | if (!SWIG_IsOK(res1)) { | |
21497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21498 | } | |
21499 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21500 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21501 | if (!SWIG_IsOK(ecode2)) { | |
21502 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
21503 | } | |
21504 | arg2 = static_cast< int >(val2); | |
21505 | { | |
21506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21507 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
21508 | wxPyEndAllowThreads(__tstate); | |
21509 | if (PyErr_Occurred()) SWIG_fail; | |
21510 | } | |
21511 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21512 | return resultobj; | |
21513 | fail: | |
21514 | return NULL; | |
21515 | } | |
21516 | ||
21517 | ||
21518 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21519 | PyObject *resultobj = 0; | |
21520 | wxDC *arg1 = (wxDC *) 0 ; | |
21521 | int arg2 ; | |
21522 | int result; | |
21523 | void *argp1 = 0 ; | |
21524 | int res1 = 0 ; | |
21525 | int val2 ; | |
21526 | int ecode2 = 0 ; | |
21527 | PyObject * obj0 = 0 ; | |
21528 | PyObject * obj1 = 0 ; | |
21529 | char * kwnames[] = { | |
21530 | (char *) "self",(char *) "x", NULL | |
21531 | }; | |
21532 | ||
21533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21535 | if (!SWIG_IsOK(res1)) { | |
21536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21537 | } | |
21538 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21539 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21540 | if (!SWIG_IsOK(ecode2)) { | |
21541 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
21542 | } | |
21543 | arg2 = static_cast< int >(val2); | |
21544 | { | |
21545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21546 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
21547 | wxPyEndAllowThreads(__tstate); | |
21548 | if (PyErr_Occurred()) SWIG_fail; | |
21549 | } | |
21550 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21551 | return resultobj; | |
21552 | fail: | |
21553 | return NULL; | |
21554 | } | |
21555 | ||
21556 | ||
21557 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21558 | PyObject *resultobj = 0; | |
21559 | wxDC *arg1 = (wxDC *) 0 ; | |
21560 | int arg2 ; | |
21561 | int result; | |
21562 | void *argp1 = 0 ; | |
21563 | int res1 = 0 ; | |
21564 | int val2 ; | |
21565 | int ecode2 = 0 ; | |
21566 | PyObject * obj0 = 0 ; | |
21567 | PyObject * obj1 = 0 ; | |
21568 | char * kwnames[] = { | |
21569 | (char *) "self",(char *) "y", NULL | |
21570 | }; | |
21571 | ||
21572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21574 | if (!SWIG_IsOK(res1)) { | |
21575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21576 | } | |
21577 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21578 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21579 | if (!SWIG_IsOK(ecode2)) { | |
21580 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
21581 | } | |
21582 | arg2 = static_cast< int >(val2); | |
21583 | { | |
21584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21585 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
21586 | wxPyEndAllowThreads(__tstate); | |
21587 | if (PyErr_Occurred()) SWIG_fail; | |
21588 | } | |
21589 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21590 | return resultobj; | |
21591 | fail: | |
21592 | return NULL; | |
21593 | } | |
21594 | ||
21595 | ||
21596 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21597 | PyObject *resultobj = 0; | |
21598 | wxDC *arg1 = (wxDC *) 0 ; | |
21599 | int arg2 ; | |
21600 | int result; | |
21601 | void *argp1 = 0 ; | |
21602 | int res1 = 0 ; | |
21603 | int val2 ; | |
21604 | int ecode2 = 0 ; | |
21605 | PyObject * obj0 = 0 ; | |
21606 | PyObject * obj1 = 0 ; | |
21607 | char * kwnames[] = { | |
21608 | (char *) "self",(char *) "x", NULL | |
21609 | }; | |
21610 | ||
21611 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21613 | if (!SWIG_IsOK(res1)) { | |
21614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21615 | } | |
21616 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21617 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21618 | if (!SWIG_IsOK(ecode2)) { | |
21619 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
21620 | } | |
21621 | arg2 = static_cast< int >(val2); | |
21622 | { | |
21623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21624 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
21625 | wxPyEndAllowThreads(__tstate); | |
21626 | if (PyErr_Occurred()) SWIG_fail; | |
21627 | } | |
21628 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21629 | return resultobj; | |
21630 | fail: | |
21631 | return NULL; | |
21632 | } | |
21633 | ||
21634 | ||
21635 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21636 | PyObject *resultobj = 0; | |
21637 | wxDC *arg1 = (wxDC *) 0 ; | |
21638 | int arg2 ; | |
21639 | int result; | |
21640 | void *argp1 = 0 ; | |
21641 | int res1 = 0 ; | |
21642 | int val2 ; | |
21643 | int ecode2 = 0 ; | |
21644 | PyObject * obj0 = 0 ; | |
21645 | PyObject * obj1 = 0 ; | |
21646 | char * kwnames[] = { | |
21647 | (char *) "self",(char *) "y", NULL | |
21648 | }; | |
21649 | ||
21650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21652 | if (!SWIG_IsOK(res1)) { | |
21653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21654 | } | |
21655 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21656 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21657 | if (!SWIG_IsOK(ecode2)) { | |
21658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
21659 | } | |
21660 | arg2 = static_cast< int >(val2); | |
21661 | { | |
21662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21663 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
21664 | wxPyEndAllowThreads(__tstate); | |
21665 | if (PyErr_Occurred()) SWIG_fail; | |
21666 | } | |
21667 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21668 | return resultobj; | |
21669 | fail: | |
21670 | return NULL; | |
21671 | } | |
21672 | ||
21673 | ||
21674 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21675 | PyObject *resultobj = 0; | |
21676 | wxDC *arg1 = (wxDC *) 0 ; | |
21677 | int arg2 ; | |
21678 | int result; | |
21679 | void *argp1 = 0 ; | |
21680 | int res1 = 0 ; | |
21681 | int val2 ; | |
21682 | int ecode2 = 0 ; | |
21683 | PyObject * obj0 = 0 ; | |
21684 | PyObject * obj1 = 0 ; | |
21685 | char * kwnames[] = { | |
21686 | (char *) "self",(char *) "x", NULL | |
21687 | }; | |
21688 | ||
21689 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21690 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21691 | if (!SWIG_IsOK(res1)) { | |
21692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21693 | } | |
21694 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21695 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21696 | if (!SWIG_IsOK(ecode2)) { | |
21697 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
21698 | } | |
21699 | arg2 = static_cast< int >(val2); | |
21700 | { | |
21701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21702 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
21703 | wxPyEndAllowThreads(__tstate); | |
21704 | if (PyErr_Occurred()) SWIG_fail; | |
21705 | } | |
21706 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21707 | return resultobj; | |
21708 | fail: | |
21709 | return NULL; | |
21710 | } | |
21711 | ||
21712 | ||
21713 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21714 | PyObject *resultobj = 0; | |
21715 | wxDC *arg1 = (wxDC *) 0 ; | |
21716 | int arg2 ; | |
21717 | int result; | |
21718 | void *argp1 = 0 ; | |
21719 | int res1 = 0 ; | |
21720 | int val2 ; | |
21721 | int ecode2 = 0 ; | |
21722 | PyObject * obj0 = 0 ; | |
21723 | PyObject * obj1 = 0 ; | |
21724 | char * kwnames[] = { | |
21725 | (char *) "self",(char *) "y", NULL | |
21726 | }; | |
21727 | ||
21728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21730 | if (!SWIG_IsOK(res1)) { | |
21731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21732 | } | |
21733 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21734 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21735 | if (!SWIG_IsOK(ecode2)) { | |
21736 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
21737 | } | |
21738 | arg2 = static_cast< int >(val2); | |
21739 | { | |
21740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21741 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
21742 | wxPyEndAllowThreads(__tstate); | |
21743 | if (PyErr_Occurred()) SWIG_fail; | |
21744 | } | |
21745 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21746 | return resultobj; | |
21747 | fail: | |
21748 | return NULL; | |
21749 | } | |
21750 | ||
21751 | ||
21752 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21753 | PyObject *resultobj = 0; | |
21754 | wxDC *arg1 = (wxDC *) 0 ; | |
21755 | bool result; | |
21756 | void *argp1 = 0 ; | |
21757 | int res1 = 0 ; | |
21758 | PyObject *swig_obj[1] ; | |
21759 | ||
21760 | if (!args) SWIG_fail; | |
21761 | swig_obj[0] = args; | |
21762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21763 | if (!SWIG_IsOK(res1)) { | |
21764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21765 | } | |
21766 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21767 | { | |
21768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21769 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
21770 | wxPyEndAllowThreads(__tstate); | |
21771 | if (PyErr_Occurred()) SWIG_fail; | |
21772 | } | |
21773 | { | |
21774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21775 | } | |
21776 | return resultobj; | |
21777 | fail: | |
21778 | return NULL; | |
21779 | } | |
21780 | ||
21781 | ||
21782 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21783 | PyObject *resultobj = 0; | |
21784 | wxDC *arg1 = (wxDC *) 0 ; | |
21785 | bool result; | |
21786 | void *argp1 = 0 ; | |
21787 | int res1 = 0 ; | |
21788 | PyObject *swig_obj[1] ; | |
21789 | ||
21790 | if (!args) SWIG_fail; | |
21791 | swig_obj[0] = args; | |
21792 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21793 | if (!SWIG_IsOK(res1)) { | |
21794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21795 | } | |
21796 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21797 | { | |
21798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21799 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
21800 | wxPyEndAllowThreads(__tstate); | |
21801 | if (PyErr_Occurred()) SWIG_fail; | |
21802 | } | |
21803 | { | |
21804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21805 | } | |
21806 | return resultobj; | |
21807 | fail: | |
21808 | return NULL; | |
21809 | } | |
21810 | ||
21811 | ||
21812 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21813 | PyObject *resultobj = 0; | |
21814 | wxDC *arg1 = (wxDC *) 0 ; | |
21815 | int result; | |
21816 | void *argp1 = 0 ; | |
21817 | int res1 = 0 ; | |
21818 | PyObject *swig_obj[1] ; | |
21819 | ||
21820 | if (!args) SWIG_fail; | |
21821 | swig_obj[0] = args; | |
21822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21823 | if (!SWIG_IsOK(res1)) { | |
21824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21825 | } | |
21826 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21827 | { | |
21828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21829 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
21830 | wxPyEndAllowThreads(__tstate); | |
21831 | if (PyErr_Occurred()) SWIG_fail; | |
21832 | } | |
21833 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21834 | return resultobj; | |
21835 | fail: | |
21836 | return NULL; | |
21837 | } | |
21838 | ||
21839 | ||
21840 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21841 | PyObject *resultobj = 0; | |
21842 | wxDC *arg1 = (wxDC *) 0 ; | |
21843 | wxSize result; | |
21844 | void *argp1 = 0 ; | |
21845 | int res1 = 0 ; | |
21846 | PyObject *swig_obj[1] ; | |
21847 | ||
21848 | if (!args) SWIG_fail; | |
21849 | swig_obj[0] = args; | |
21850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21851 | if (!SWIG_IsOK(res1)) { | |
21852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21853 | } | |
21854 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21855 | { | |
21856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21857 | result = ((wxDC const *)arg1)->GetPPI(); | |
21858 | wxPyEndAllowThreads(__tstate); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | } | |
21861 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21862 | return resultobj; | |
21863 | fail: | |
21864 | return NULL; | |
21865 | } | |
21866 | ||
21867 | ||
b39fe951 | 21868 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
21869 | PyObject *resultobj = 0; |
21870 | wxDC *arg1 = (wxDC *) 0 ; | |
21871 | bool result; | |
21872 | void *argp1 = 0 ; | |
21873 | int res1 = 0 ; | |
21874 | PyObject *swig_obj[1] ; | |
21875 | ||
21876 | if (!args) SWIG_fail; | |
21877 | swig_obj[0] = args; | |
21878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21879 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 21880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
0085ce49 RD |
21881 | } |
21882 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21883 | { | |
21884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 21885 | result = (bool)((wxDC const *)arg1)->IsOk(); |
0085ce49 RD |
21886 | wxPyEndAllowThreads(__tstate); |
21887 | if (PyErr_Occurred()) SWIG_fail; | |
21888 | } | |
21889 | { | |
21890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21891 | } | |
21892 | return resultobj; | |
21893 | fail: | |
21894 | return NULL; | |
21895 | } | |
21896 | ||
21897 | ||
21898 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21899 | PyObject *resultobj = 0; | |
21900 | wxDC *arg1 = (wxDC *) 0 ; | |
21901 | int result; | |
21902 | void *argp1 = 0 ; | |
21903 | int res1 = 0 ; | |
21904 | PyObject *swig_obj[1] ; | |
21905 | ||
21906 | if (!args) SWIG_fail; | |
21907 | swig_obj[0] = args; | |
21908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21909 | if (!SWIG_IsOK(res1)) { | |
21910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21911 | } | |
21912 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21913 | { | |
21914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21915 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
21916 | wxPyEndAllowThreads(__tstate); | |
21917 | if (PyErr_Occurred()) SWIG_fail; | |
21918 | } | |
21919 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21920 | return resultobj; | |
21921 | fail: | |
21922 | return NULL; | |
21923 | } | |
21924 | ||
21925 | ||
21926 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21927 | PyObject *resultobj = 0; | |
21928 | wxDC *arg1 = (wxDC *) 0 ; | |
21929 | wxBrush *result = 0 ; | |
21930 | void *argp1 = 0 ; | |
21931 | int res1 = 0 ; | |
21932 | PyObject *swig_obj[1] ; | |
21933 | ||
21934 | if (!args) SWIG_fail; | |
21935 | swig_obj[0] = args; | |
21936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21937 | if (!SWIG_IsOK(res1)) { | |
21938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21939 | } | |
21940 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21941 | { | |
21942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21943 | { |
0085ce49 RD |
21944 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
21945 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21946 | } |
0085ce49 RD |
21947 | wxPyEndAllowThreads(__tstate); |
21948 | if (PyErr_Occurred()) SWIG_fail; | |
21949 | } | |
21950 | { | |
21951 | wxBrush* resultptr = new wxBrush(*result); | |
21952 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21953 | } | |
21954 | return resultobj; | |
21955 | fail: | |
21956 | return NULL; | |
21957 | } | |
21958 | ||
21959 | ||
21960 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21961 | PyObject *resultobj = 0; | |
21962 | wxDC *arg1 = (wxDC *) 0 ; | |
21963 | wxBrush *result = 0 ; | |
21964 | void *argp1 = 0 ; | |
21965 | int res1 = 0 ; | |
21966 | PyObject *swig_obj[1] ; | |
21967 | ||
21968 | if (!args) SWIG_fail; | |
21969 | swig_obj[0] = args; | |
21970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21971 | if (!SWIG_IsOK(res1)) { | |
21972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21973 | } | |
21974 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21975 | { | |
21976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21977 | { |
0085ce49 RD |
21978 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
21979 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21980 | } |
0085ce49 RD |
21981 | wxPyEndAllowThreads(__tstate); |
21982 | if (PyErr_Occurred()) SWIG_fail; | |
21983 | } | |
21984 | { | |
21985 | wxBrush* resultptr = new wxBrush(*result); | |
21986 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21987 | } | |
21988 | return resultobj; | |
21989 | fail: | |
21990 | return NULL; | |
21991 | } | |
21992 | ||
21993 | ||
21994 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21995 | PyObject *resultobj = 0; | |
21996 | wxDC *arg1 = (wxDC *) 0 ; | |
21997 | wxFont *result = 0 ; | |
21998 | void *argp1 = 0 ; | |
21999 | int res1 = 0 ; | |
22000 | PyObject *swig_obj[1] ; | |
22001 | ||
22002 | if (!args) SWIG_fail; | |
22003 | swig_obj[0] = args; | |
22004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22005 | if (!SWIG_IsOK(res1)) { | |
22006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22007 | } | |
22008 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22009 | { | |
22010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22011 | { |
0085ce49 RD |
22012 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
22013 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 22014 | } |
0085ce49 RD |
22015 | wxPyEndAllowThreads(__tstate); |
22016 | if (PyErr_Occurred()) SWIG_fail; | |
22017 | } | |
22018 | { | |
22019 | wxFont* resultptr = new wxFont(*result); | |
22020 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
22021 | } | |
22022 | return resultobj; | |
22023 | fail: | |
22024 | return NULL; | |
22025 | } | |
22026 | ||
22027 | ||
22028 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22029 | PyObject *resultobj = 0; | |
22030 | wxDC *arg1 = (wxDC *) 0 ; | |
22031 | wxPen *result = 0 ; | |
22032 | void *argp1 = 0 ; | |
22033 | int res1 = 0 ; | |
22034 | PyObject *swig_obj[1] ; | |
22035 | ||
22036 | if (!args) SWIG_fail; | |
22037 | swig_obj[0] = args; | |
22038 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22039 | if (!SWIG_IsOK(res1)) { | |
22040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22041 | } | |
22042 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22043 | { | |
22044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22045 | { |
0085ce49 RD |
22046 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
22047 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 22048 | } |
0085ce49 RD |
22049 | wxPyEndAllowThreads(__tstate); |
22050 | if (PyErr_Occurred()) SWIG_fail; | |
22051 | } | |
22052 | { | |
22053 | wxPen* resultptr = new wxPen(*result); | |
22054 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
22055 | } | |
22056 | return resultobj; | |
22057 | fail: | |
22058 | return NULL; | |
22059 | } | |
22060 | ||
22061 | ||
22062 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22063 | PyObject *resultobj = 0; | |
22064 | wxDC *arg1 = (wxDC *) 0 ; | |
22065 | wxColour *result = 0 ; | |
22066 | void *argp1 = 0 ; | |
22067 | int res1 = 0 ; | |
22068 | PyObject *swig_obj[1] ; | |
22069 | ||
22070 | if (!args) SWIG_fail; | |
22071 | swig_obj[0] = args; | |
22072 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22073 | if (!SWIG_IsOK(res1)) { | |
22074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22075 | } | |
22076 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22077 | { | |
22078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22079 | { |
0085ce49 RD |
22080 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
22081 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22082 | } |
0085ce49 RD |
22083 | wxPyEndAllowThreads(__tstate); |
22084 | if (PyErr_Occurred()) SWIG_fail; | |
22085 | } | |
22086 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22087 | return resultobj; | |
22088 | fail: | |
22089 | return NULL; | |
22090 | } | |
22091 | ||
22092 | ||
22093 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22094 | PyObject *resultobj = 0; | |
22095 | wxDC *arg1 = (wxDC *) 0 ; | |
22096 | wxColour *result = 0 ; | |
22097 | void *argp1 = 0 ; | |
22098 | int res1 = 0 ; | |
22099 | PyObject *swig_obj[1] ; | |
22100 | ||
22101 | if (!args) SWIG_fail; | |
22102 | swig_obj[0] = args; | |
22103 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22104 | if (!SWIG_IsOK(res1)) { | |
22105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22106 | } | |
22107 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22108 | { | |
22109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22110 | { |
0085ce49 RD |
22111 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
22112 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22113 | } |
0085ce49 RD |
22114 | wxPyEndAllowThreads(__tstate); |
22115 | if (PyErr_Occurred()) SWIG_fail; | |
22116 | } | |
22117 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22118 | return resultobj; | |
22119 | fail: | |
22120 | return NULL; | |
22121 | } | |
22122 | ||
22123 | ||
22124 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22125 | PyObject *resultobj = 0; | |
22126 | wxDC *arg1 = (wxDC *) 0 ; | |
22127 | wxColour *arg2 = 0 ; | |
22128 | void *argp1 = 0 ; | |
22129 | int res1 = 0 ; | |
22130 | wxColour temp2 ; | |
22131 | PyObject * obj0 = 0 ; | |
22132 | PyObject * obj1 = 0 ; | |
22133 | char * kwnames[] = { | |
22134 | (char *) "self",(char *) "colour", NULL | |
22135 | }; | |
22136 | ||
22137 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22138 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22139 | if (!SWIG_IsOK(res1)) { | |
22140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22141 | } | |
22142 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22143 | { | |
22144 | arg2 = &temp2; | |
22145 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22146 | } | |
22147 | { | |
22148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22149 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
22150 | wxPyEndAllowThreads(__tstate); | |
22151 | if (PyErr_Occurred()) SWIG_fail; | |
22152 | } | |
22153 | resultobj = SWIG_Py_Void(); | |
22154 | return resultobj; | |
22155 | fail: | |
22156 | return NULL; | |
22157 | } | |
22158 | ||
22159 | ||
22160 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22161 | PyObject *resultobj = 0; | |
22162 | wxDC *arg1 = (wxDC *) 0 ; | |
22163 | wxColour *arg2 = 0 ; | |
22164 | void *argp1 = 0 ; | |
22165 | int res1 = 0 ; | |
22166 | wxColour temp2 ; | |
22167 | PyObject * obj0 = 0 ; | |
22168 | PyObject * obj1 = 0 ; | |
22169 | char * kwnames[] = { | |
22170 | (char *) "self",(char *) "colour", NULL | |
22171 | }; | |
22172 | ||
22173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22175 | if (!SWIG_IsOK(res1)) { | |
22176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22177 | } | |
22178 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22179 | { | |
22180 | arg2 = &temp2; | |
22181 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22182 | } | |
22183 | { | |
22184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22185 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
22186 | wxPyEndAllowThreads(__tstate); | |
22187 | if (PyErr_Occurred()) SWIG_fail; | |
22188 | } | |
22189 | resultobj = SWIG_Py_Void(); | |
22190 | return resultobj; | |
22191 | fail: | |
22192 | return NULL; | |
22193 | } | |
22194 | ||
22195 | ||
22196 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22197 | PyObject *resultobj = 0; | |
22198 | wxDC *arg1 = (wxDC *) 0 ; | |
22199 | int result; | |
22200 | void *argp1 = 0 ; | |
22201 | int res1 = 0 ; | |
22202 | PyObject *swig_obj[1] ; | |
22203 | ||
22204 | if (!args) SWIG_fail; | |
22205 | swig_obj[0] = args; | |
22206 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22207 | if (!SWIG_IsOK(res1)) { | |
22208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22209 | } | |
22210 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22211 | { | |
22212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22213 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22214 | wxPyEndAllowThreads(__tstate); | |
22215 | if (PyErr_Occurred()) SWIG_fail; | |
22216 | } | |
22217 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22218 | return resultobj; | |
22219 | fail: | |
22220 | return NULL; | |
22221 | } | |
22222 | ||
22223 | ||
22224 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22225 | PyObject *resultobj = 0; | |
22226 | wxDC *arg1 = (wxDC *) 0 ; | |
22227 | int arg2 ; | |
22228 | void *argp1 = 0 ; | |
22229 | int res1 = 0 ; | |
22230 | int val2 ; | |
22231 | int ecode2 = 0 ; | |
22232 | PyObject * obj0 = 0 ; | |
22233 | PyObject * obj1 = 0 ; | |
22234 | char * kwnames[] = { | |
22235 | (char *) "self",(char *) "mode", NULL | |
22236 | }; | |
22237 | ||
22238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22240 | if (!SWIG_IsOK(res1)) { | |
22241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22242 | } | |
22243 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22244 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22245 | if (!SWIG_IsOK(ecode2)) { | |
22246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22247 | } | |
22248 | arg2 = static_cast< int >(val2); | |
22249 | { | |
22250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22251 | (arg1)->SetMapMode(arg2); | |
22252 | wxPyEndAllowThreads(__tstate); | |
22253 | if (PyErr_Occurred()) SWIG_fail; | |
22254 | } | |
22255 | resultobj = SWIG_Py_Void(); | |
22256 | return resultobj; | |
22257 | fail: | |
22258 | return NULL; | |
22259 | } | |
22260 | ||
22261 | ||
22262 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22263 | PyObject *resultobj = 0; | |
22264 | wxDC *arg1 = (wxDC *) 0 ; | |
22265 | double *arg2 = (double *) 0 ; | |
22266 | double *arg3 = (double *) 0 ; | |
22267 | void *argp1 = 0 ; | |
22268 | int res1 = 0 ; | |
22269 | double temp2 ; | |
22270 | int res2 = SWIG_TMPOBJ ; | |
22271 | double temp3 ; | |
22272 | int res3 = SWIG_TMPOBJ ; | |
22273 | PyObject *swig_obj[1] ; | |
22274 | ||
22275 | arg2 = &temp2; | |
22276 | arg3 = &temp3; | |
22277 | if (!args) SWIG_fail; | |
22278 | swig_obj[0] = args; | |
22279 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22280 | if (!SWIG_IsOK(res1)) { | |
22281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22282 | } | |
22283 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22284 | { | |
22285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22286 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22287 | wxPyEndAllowThreads(__tstate); | |
22288 | if (PyErr_Occurred()) SWIG_fail; | |
22289 | } | |
22290 | resultobj = SWIG_Py_Void(); | |
22291 | if (SWIG_IsTmpObj(res2)) { | |
22292 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22293 | } else { | |
22294 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22295 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22296 | } | |
22297 | if (SWIG_IsTmpObj(res3)) { | |
22298 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22299 | } else { | |
22300 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22301 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22302 | } | |
22303 | return resultobj; | |
22304 | fail: | |
22305 | return NULL; | |
22306 | } | |
22307 | ||
22308 | ||
22309 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22310 | PyObject *resultobj = 0; | |
22311 | wxDC *arg1 = (wxDC *) 0 ; | |
22312 | double arg2 ; | |
22313 | double arg3 ; | |
22314 | void *argp1 = 0 ; | |
22315 | int res1 = 0 ; | |
22316 | double val2 ; | |
22317 | int ecode2 = 0 ; | |
22318 | double val3 ; | |
22319 | int ecode3 = 0 ; | |
22320 | PyObject * obj0 = 0 ; | |
22321 | PyObject * obj1 = 0 ; | |
22322 | PyObject * obj2 = 0 ; | |
22323 | char * kwnames[] = { | |
22324 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22325 | }; | |
22326 | ||
22327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22329 | if (!SWIG_IsOK(res1)) { | |
22330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22331 | } | |
22332 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22333 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22334 | if (!SWIG_IsOK(ecode2)) { | |
22335 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22336 | } | |
22337 | arg2 = static_cast< double >(val2); | |
22338 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22339 | if (!SWIG_IsOK(ecode3)) { | |
22340 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
22341 | } | |
22342 | arg3 = static_cast< double >(val3); | |
22343 | { | |
22344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22345 | (arg1)->SetUserScale(arg2,arg3); | |
22346 | wxPyEndAllowThreads(__tstate); | |
22347 | if (PyErr_Occurred()) SWIG_fail; | |
22348 | } | |
22349 | resultobj = SWIG_Py_Void(); | |
22350 | return resultobj; | |
22351 | fail: | |
22352 | return NULL; | |
22353 | } | |
22354 | ||
22355 | ||
22356 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22357 | PyObject *resultobj = 0; | |
22358 | wxDC *arg1 = (wxDC *) 0 ; | |
22359 | double *arg2 = (double *) 0 ; | |
22360 | double *arg3 = (double *) 0 ; | |
22361 | void *argp1 = 0 ; | |
22362 | int res1 = 0 ; | |
22363 | double temp2 ; | |
22364 | int res2 = SWIG_TMPOBJ ; | |
22365 | double temp3 ; | |
22366 | int res3 = SWIG_TMPOBJ ; | |
22367 | PyObject *swig_obj[1] ; | |
22368 | ||
22369 | arg2 = &temp2; | |
22370 | arg3 = &temp3; | |
22371 | if (!args) SWIG_fail; | |
22372 | swig_obj[0] = args; | |
22373 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22374 | if (!SWIG_IsOK(res1)) { | |
22375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22376 | } | |
22377 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22378 | { | |
22379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22380 | (arg1)->GetLogicalScale(arg2,arg3); | |
22381 | wxPyEndAllowThreads(__tstate); | |
22382 | if (PyErr_Occurred()) SWIG_fail; | |
22383 | } | |
22384 | resultobj = SWIG_Py_Void(); | |
22385 | if (SWIG_IsTmpObj(res2)) { | |
22386 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22387 | } else { | |
22388 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22389 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22390 | } | |
22391 | if (SWIG_IsTmpObj(res3)) { | |
22392 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22393 | } else { | |
22394 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22395 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22396 | } | |
22397 | return resultobj; | |
22398 | fail: | |
22399 | return NULL; | |
22400 | } | |
22401 | ||
22402 | ||
22403 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22404 | PyObject *resultobj = 0; | |
22405 | wxDC *arg1 = (wxDC *) 0 ; | |
22406 | double arg2 ; | |
22407 | double arg3 ; | |
22408 | void *argp1 = 0 ; | |
22409 | int res1 = 0 ; | |
22410 | double val2 ; | |
22411 | int ecode2 = 0 ; | |
22412 | double val3 ; | |
22413 | int ecode3 = 0 ; | |
22414 | PyObject * obj0 = 0 ; | |
22415 | PyObject * obj1 = 0 ; | |
22416 | PyObject * obj2 = 0 ; | |
22417 | char * kwnames[] = { | |
22418 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22419 | }; | |
22420 | ||
22421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22423 | if (!SWIG_IsOK(res1)) { | |
22424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22425 | } | |
22426 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22427 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22428 | if (!SWIG_IsOK(ecode2)) { | |
22429 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
22430 | } | |
22431 | arg2 = static_cast< double >(val2); | |
22432 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22433 | if (!SWIG_IsOK(ecode3)) { | |
22434 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
22435 | } | |
22436 | arg3 = static_cast< double >(val3); | |
22437 | { | |
22438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22439 | (arg1)->SetLogicalScale(arg2,arg3); | |
22440 | wxPyEndAllowThreads(__tstate); | |
22441 | if (PyErr_Occurred()) SWIG_fail; | |
22442 | } | |
22443 | resultobj = SWIG_Py_Void(); | |
22444 | return resultobj; | |
22445 | fail: | |
22446 | return NULL; | |
22447 | } | |
22448 | ||
22449 | ||
22450 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22451 | PyObject *resultobj = 0; | |
22452 | wxDC *arg1 = (wxDC *) 0 ; | |
22453 | wxPoint result; | |
22454 | void *argp1 = 0 ; | |
22455 | int res1 = 0 ; | |
22456 | PyObject *swig_obj[1] ; | |
22457 | ||
22458 | if (!args) SWIG_fail; | |
22459 | swig_obj[0] = args; | |
22460 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22461 | if (!SWIG_IsOK(res1)) { | |
22462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22463 | } | |
22464 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22465 | { | |
22466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22467 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
22468 | wxPyEndAllowThreads(__tstate); | |
22469 | if (PyErr_Occurred()) SWIG_fail; | |
22470 | } | |
22471 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22472 | return resultobj; | |
22473 | fail: | |
22474 | return NULL; | |
22475 | } | |
22476 | ||
22477 | ||
22478 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22479 | PyObject *resultobj = 0; | |
22480 | wxDC *arg1 = (wxDC *) 0 ; | |
22481 | int *arg2 = (int *) 0 ; | |
22482 | int *arg3 = (int *) 0 ; | |
22483 | void *argp1 = 0 ; | |
22484 | int res1 = 0 ; | |
22485 | int temp2 ; | |
22486 | int res2 = SWIG_TMPOBJ ; | |
22487 | int temp3 ; | |
22488 | int res3 = SWIG_TMPOBJ ; | |
22489 | PyObject *swig_obj[1] ; | |
22490 | ||
22491 | arg2 = &temp2; | |
22492 | arg3 = &temp3; | |
22493 | if (!args) SWIG_fail; | |
22494 | swig_obj[0] = args; | |
22495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22496 | if (!SWIG_IsOK(res1)) { | |
22497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22498 | } | |
22499 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22500 | { | |
22501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22502 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
22503 | wxPyEndAllowThreads(__tstate); | |
22504 | if (PyErr_Occurred()) SWIG_fail; | |
22505 | } | |
22506 | resultobj = SWIG_Py_Void(); | |
22507 | if (SWIG_IsTmpObj(res2)) { | |
22508 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22509 | } else { | |
22510 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22511 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22512 | } | |
22513 | if (SWIG_IsTmpObj(res3)) { | |
22514 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22515 | } else { | |
22516 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22517 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22518 | } | |
22519 | return resultobj; | |
22520 | fail: | |
22521 | return NULL; | |
22522 | } | |
22523 | ||
22524 | ||
22525 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22526 | PyObject *resultobj = 0; | |
22527 | wxDC *arg1 = (wxDC *) 0 ; | |
22528 | int arg2 ; | |
22529 | int arg3 ; | |
22530 | void *argp1 = 0 ; | |
22531 | int res1 = 0 ; | |
22532 | int val2 ; | |
22533 | int ecode2 = 0 ; | |
22534 | int val3 ; | |
22535 | int ecode3 = 0 ; | |
22536 | PyObject * obj0 = 0 ; | |
22537 | PyObject * obj1 = 0 ; | |
22538 | PyObject * obj2 = 0 ; | |
22539 | char * kwnames[] = { | |
22540 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22541 | }; | |
22542 | ||
22543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22545 | if (!SWIG_IsOK(res1)) { | |
22546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22547 | } | |
22548 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22549 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22550 | if (!SWIG_IsOK(ecode2)) { | |
22551 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22552 | } | |
22553 | arg2 = static_cast< int >(val2); | |
22554 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22555 | if (!SWIG_IsOK(ecode3)) { | |
22556 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22557 | } | |
22558 | arg3 = static_cast< int >(val3); | |
22559 | { | |
22560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22561 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
22562 | wxPyEndAllowThreads(__tstate); | |
22563 | if (PyErr_Occurred()) SWIG_fail; | |
22564 | } | |
22565 | resultobj = SWIG_Py_Void(); | |
22566 | return resultobj; | |
22567 | fail: | |
22568 | return NULL; | |
22569 | } | |
22570 | ||
22571 | ||
22572 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22573 | PyObject *resultobj = 0; | |
22574 | wxDC *arg1 = (wxDC *) 0 ; | |
22575 | wxPoint *arg2 = 0 ; | |
22576 | void *argp1 = 0 ; | |
22577 | int res1 = 0 ; | |
22578 | wxPoint temp2 ; | |
22579 | PyObject * obj0 = 0 ; | |
22580 | PyObject * obj1 = 0 ; | |
22581 | char * kwnames[] = { | |
22582 | (char *) "self",(char *) "point", NULL | |
22583 | }; | |
22584 | ||
22585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22587 | if (!SWIG_IsOK(res1)) { | |
22588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22589 | } | |
22590 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22591 | { | |
22592 | arg2 = &temp2; | |
22593 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22594 | } | |
22595 | { | |
22596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22597 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
22601 | resultobj = SWIG_Py_Void(); | |
22602 | return resultobj; | |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22609 | PyObject *resultobj = 0; | |
22610 | wxDC *arg1 = (wxDC *) 0 ; | |
22611 | wxPoint result; | |
22612 | void *argp1 = 0 ; | |
22613 | int res1 = 0 ; | |
22614 | PyObject *swig_obj[1] ; | |
22615 | ||
22616 | if (!args) SWIG_fail; | |
22617 | swig_obj[0] = args; | |
22618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22619 | if (!SWIG_IsOK(res1)) { | |
22620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22621 | } | |
22622 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22623 | { | |
22624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22625 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
22626 | wxPyEndAllowThreads(__tstate); | |
22627 | if (PyErr_Occurred()) SWIG_fail; | |
22628 | } | |
22629 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22630 | return resultobj; | |
22631 | fail: | |
22632 | return NULL; | |
22633 | } | |
22634 | ||
22635 | ||
22636 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22637 | PyObject *resultobj = 0; | |
22638 | wxDC *arg1 = (wxDC *) 0 ; | |
22639 | int *arg2 = (int *) 0 ; | |
22640 | int *arg3 = (int *) 0 ; | |
22641 | void *argp1 = 0 ; | |
22642 | int res1 = 0 ; | |
22643 | int temp2 ; | |
22644 | int res2 = SWIG_TMPOBJ ; | |
22645 | int temp3 ; | |
22646 | int res3 = SWIG_TMPOBJ ; | |
22647 | PyObject *swig_obj[1] ; | |
22648 | ||
22649 | arg2 = &temp2; | |
22650 | arg3 = &temp3; | |
22651 | if (!args) SWIG_fail; | |
22652 | swig_obj[0] = args; | |
22653 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22654 | if (!SWIG_IsOK(res1)) { | |
22655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22656 | } | |
22657 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22658 | { | |
22659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22660 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
22661 | wxPyEndAllowThreads(__tstate); | |
22662 | if (PyErr_Occurred()) SWIG_fail; | |
22663 | } | |
22664 | resultobj = SWIG_Py_Void(); | |
22665 | if (SWIG_IsTmpObj(res2)) { | |
22666 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22667 | } else { | |
22668 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22669 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22670 | } | |
22671 | if (SWIG_IsTmpObj(res3)) { | |
22672 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22673 | } else { | |
22674 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22675 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22676 | } | |
22677 | return resultobj; | |
22678 | fail: | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
22683 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22684 | PyObject *resultobj = 0; | |
22685 | wxDC *arg1 = (wxDC *) 0 ; | |
22686 | int arg2 ; | |
22687 | int arg3 ; | |
22688 | void *argp1 = 0 ; | |
22689 | int res1 = 0 ; | |
22690 | int val2 ; | |
22691 | int ecode2 = 0 ; | |
22692 | int val3 ; | |
22693 | int ecode3 = 0 ; | |
22694 | PyObject * obj0 = 0 ; | |
22695 | PyObject * obj1 = 0 ; | |
22696 | PyObject * obj2 = 0 ; | |
22697 | char * kwnames[] = { | |
22698 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22699 | }; | |
22700 | ||
22701 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22702 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22703 | if (!SWIG_IsOK(res1)) { | |
22704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22705 | } | |
22706 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22707 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22708 | if (!SWIG_IsOK(ecode2)) { | |
22709 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22710 | } | |
22711 | arg2 = static_cast< int >(val2); | |
22712 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22713 | if (!SWIG_IsOK(ecode3)) { | |
22714 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22715 | } | |
22716 | arg3 = static_cast< int >(val3); | |
22717 | { | |
22718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22719 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
22720 | wxPyEndAllowThreads(__tstate); | |
22721 | if (PyErr_Occurred()) SWIG_fail; | |
22722 | } | |
22723 | resultobj = SWIG_Py_Void(); | |
22724 | return resultobj; | |
22725 | fail: | |
22726 | return NULL; | |
22727 | } | |
22728 | ||
22729 | ||
22730 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22731 | PyObject *resultobj = 0; | |
22732 | wxDC *arg1 = (wxDC *) 0 ; | |
22733 | wxPoint *arg2 = 0 ; | |
22734 | void *argp1 = 0 ; | |
22735 | int res1 = 0 ; | |
22736 | wxPoint temp2 ; | |
22737 | PyObject * obj0 = 0 ; | |
22738 | PyObject * obj1 = 0 ; | |
22739 | char * kwnames[] = { | |
22740 | (char *) "self",(char *) "point", NULL | |
22741 | }; | |
22742 | ||
22743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22745 | if (!SWIG_IsOK(res1)) { | |
22746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22747 | } | |
22748 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22749 | { | |
22750 | arg2 = &temp2; | |
22751 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22752 | } | |
22753 | { | |
22754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22755 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
22756 | wxPyEndAllowThreads(__tstate); | |
22757 | if (PyErr_Occurred()) SWIG_fail; | |
22758 | } | |
22759 | resultobj = SWIG_Py_Void(); | |
22760 | return resultobj; | |
22761 | fail: | |
22762 | return NULL; | |
22763 | } | |
22764 | ||
22765 | ||
22766 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22767 | PyObject *resultobj = 0; | |
22768 | wxDC *arg1 = (wxDC *) 0 ; | |
22769 | bool arg2 ; | |
22770 | bool arg3 ; | |
22771 | void *argp1 = 0 ; | |
22772 | int res1 = 0 ; | |
22773 | bool val2 ; | |
22774 | int ecode2 = 0 ; | |
22775 | bool val3 ; | |
22776 | int ecode3 = 0 ; | |
22777 | PyObject * obj0 = 0 ; | |
22778 | PyObject * obj1 = 0 ; | |
22779 | PyObject * obj2 = 0 ; | |
22780 | char * kwnames[] = { | |
22781 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
22782 | }; | |
22783 | ||
22784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22785 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22786 | if (!SWIG_IsOK(res1)) { | |
22787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22788 | } | |
22789 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22790 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22791 | if (!SWIG_IsOK(ecode2)) { | |
22792 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
22793 | } | |
22794 | arg2 = static_cast< bool >(val2); | |
22795 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22796 | if (!SWIG_IsOK(ecode3)) { | |
22797 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
22798 | } | |
22799 | arg3 = static_cast< bool >(val3); | |
22800 | { | |
22801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22802 | (arg1)->SetAxisOrientation(arg2,arg3); | |
22803 | wxPyEndAllowThreads(__tstate); | |
22804 | if (PyErr_Occurred()) SWIG_fail; | |
22805 | } | |
22806 | resultobj = SWIG_Py_Void(); | |
22807 | return resultobj; | |
22808 | fail: | |
22809 | return NULL; | |
22810 | } | |
22811 | ||
22812 | ||
22813 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22814 | PyObject *resultobj = 0; | |
22815 | wxDC *arg1 = (wxDC *) 0 ; | |
22816 | int result; | |
22817 | void *argp1 = 0 ; | |
22818 | int res1 = 0 ; | |
22819 | PyObject *swig_obj[1] ; | |
22820 | ||
22821 | if (!args) SWIG_fail; | |
22822 | swig_obj[0] = args; | |
22823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22824 | if (!SWIG_IsOK(res1)) { | |
22825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22826 | } | |
22827 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22828 | { | |
22829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22830 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
22831 | wxPyEndAllowThreads(__tstate); | |
22832 | if (PyErr_Occurred()) SWIG_fail; | |
22833 | } | |
22834 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22835 | return resultobj; | |
22836 | fail: | |
22837 | return NULL; | |
22838 | } | |
22839 | ||
22840 | ||
22841 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22842 | PyObject *resultobj = 0; | |
22843 | wxDC *arg1 = (wxDC *) 0 ; | |
22844 | int arg2 ; | |
22845 | void *argp1 = 0 ; | |
22846 | int res1 = 0 ; | |
22847 | int val2 ; | |
22848 | int ecode2 = 0 ; | |
22849 | PyObject * obj0 = 0 ; | |
22850 | PyObject * obj1 = 0 ; | |
22851 | char * kwnames[] = { | |
22852 | (char *) "self",(char *) "function", NULL | |
22853 | }; | |
22854 | ||
22855 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
22856 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22857 | if (!SWIG_IsOK(res1)) { | |
22858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22859 | } | |
22860 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22861 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22862 | if (!SWIG_IsOK(ecode2)) { | |
22863 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
22864 | } | |
22865 | arg2 = static_cast< int >(val2); | |
22866 | { | |
22867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22868 | (arg1)->SetLogicalFunction(arg2); | |
22869 | wxPyEndAllowThreads(__tstate); | |
22870 | if (PyErr_Occurred()) SWIG_fail; | |
22871 | } | |
22872 | resultobj = SWIG_Py_Void(); | |
22873 | return resultobj; | |
22874 | fail: | |
22875 | return NULL; | |
22876 | } | |
22877 | ||
22878 | ||
22879 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22880 | PyObject *resultobj = 0; | |
22881 | wxDC *arg1 = (wxDC *) 0 ; | |
22882 | void *argp1 = 0 ; | |
22883 | int res1 = 0 ; | |
22884 | PyObject *swig_obj[1] ; | |
22885 | ||
22886 | if (!args) SWIG_fail; | |
22887 | swig_obj[0] = args; | |
22888 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22889 | if (!SWIG_IsOK(res1)) { | |
22890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22891 | } | |
22892 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22893 | { | |
22894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22895 | (arg1)->ComputeScaleAndOrigin(); | |
22896 | wxPyEndAllowThreads(__tstate); | |
22897 | if (PyErr_Occurred()) SWIG_fail; | |
22898 | } | |
22899 | resultobj = SWIG_Py_Void(); | |
22900 | return resultobj; | |
22901 | fail: | |
22902 | return NULL; | |
22903 | } | |
22904 | ||
22905 | ||
22906 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22907 | PyObject *resultobj = 0; | |
22908 | wxDC *arg1 = (wxDC *) 0 ; | |
22909 | int arg2 ; | |
22910 | int arg3 ; | |
22911 | void *argp1 = 0 ; | |
22912 | int res1 = 0 ; | |
22913 | int val2 ; | |
22914 | int ecode2 = 0 ; | |
22915 | int val3 ; | |
22916 | int ecode3 = 0 ; | |
22917 | PyObject * obj0 = 0 ; | |
22918 | PyObject * obj1 = 0 ; | |
22919 | PyObject * obj2 = 0 ; | |
22920 | char * kwnames[] = { | |
22921 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22922 | }; | |
22923 | ||
22924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22926 | if (!SWIG_IsOK(res1)) { | |
22927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22928 | } | |
22929 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22930 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22931 | if (!SWIG_IsOK(ecode2)) { | |
22932 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
22933 | } | |
22934 | arg2 = static_cast< int >(val2); | |
22935 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22936 | if (!SWIG_IsOK(ecode3)) { | |
22937 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
22938 | } | |
22939 | arg3 = static_cast< int >(val3); | |
22940 | { | |
22941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22942 | (arg1)->CalcBoundingBox(arg2,arg3); | |
22943 | wxPyEndAllowThreads(__tstate); | |
22944 | if (PyErr_Occurred()) SWIG_fail; | |
22945 | } | |
22946 | resultobj = SWIG_Py_Void(); | |
22947 | return resultobj; | |
22948 | fail: | |
22949 | return NULL; | |
22950 | } | |
22951 | ||
22952 | ||
22953 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22954 | PyObject *resultobj = 0; | |
22955 | wxDC *arg1 = (wxDC *) 0 ; | |
22956 | wxPoint *arg2 = 0 ; | |
22957 | void *argp1 = 0 ; | |
22958 | int res1 = 0 ; | |
22959 | wxPoint temp2 ; | |
22960 | PyObject * obj0 = 0 ; | |
22961 | PyObject * obj1 = 0 ; | |
22962 | char * kwnames[] = { | |
22963 | (char *) "self",(char *) "point", NULL | |
22964 | }; | |
22965 | ||
22966 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22968 | if (!SWIG_IsOK(res1)) { | |
22969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22970 | } | |
22971 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22972 | { | |
22973 | arg2 = &temp2; | |
22974 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22975 | } | |
22976 | { | |
22977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22978 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
22979 | wxPyEndAllowThreads(__tstate); | |
22980 | if (PyErr_Occurred()) SWIG_fail; | |
22981 | } | |
22982 | resultobj = SWIG_Py_Void(); | |
22983 | return resultobj; | |
22984 | fail: | |
22985 | return NULL; | |
22986 | } | |
22987 | ||
22988 | ||
22989 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22990 | PyObject *resultobj = 0; | |
22991 | wxDC *arg1 = (wxDC *) 0 ; | |
22992 | void *argp1 = 0 ; | |
22993 | int res1 = 0 ; | |
22994 | PyObject *swig_obj[1] ; | |
22995 | ||
22996 | if (!args) SWIG_fail; | |
22997 | swig_obj[0] = args; | |
22998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22999 | if (!SWIG_IsOK(res1)) { | |
23000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23001 | } | |
23002 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23003 | { | |
23004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23005 | (arg1)->ResetBoundingBox(); | |
23006 | wxPyEndAllowThreads(__tstate); | |
23007 | if (PyErr_Occurred()) SWIG_fail; | |
23008 | } | |
23009 | resultobj = SWIG_Py_Void(); | |
23010 | return resultobj; | |
23011 | fail: | |
23012 | return NULL; | |
23013 | } | |
23014 | ||
23015 | ||
23016 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23017 | PyObject *resultobj = 0; | |
23018 | wxDC *arg1 = (wxDC *) 0 ; | |
23019 | int result; | |
23020 | void *argp1 = 0 ; | |
23021 | int res1 = 0 ; | |
23022 | PyObject *swig_obj[1] ; | |
23023 | ||
23024 | if (!args) SWIG_fail; | |
23025 | swig_obj[0] = args; | |
23026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23027 | if (!SWIG_IsOK(res1)) { | |
23028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23029 | } | |
23030 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23031 | { | |
23032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23033 | result = (int)((wxDC const *)arg1)->MinX(); | |
23034 | wxPyEndAllowThreads(__tstate); | |
23035 | if (PyErr_Occurred()) SWIG_fail; | |
23036 | } | |
23037 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23038 | return resultobj; | |
23039 | fail: | |
23040 | return NULL; | |
23041 | } | |
23042 | ||
23043 | ||
23044 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23045 | PyObject *resultobj = 0; | |
23046 | wxDC *arg1 = (wxDC *) 0 ; | |
23047 | int result; | |
23048 | void *argp1 = 0 ; | |
23049 | int res1 = 0 ; | |
23050 | PyObject *swig_obj[1] ; | |
23051 | ||
23052 | if (!args) SWIG_fail; | |
23053 | swig_obj[0] = args; | |
23054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23055 | if (!SWIG_IsOK(res1)) { | |
23056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23057 | } | |
23058 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23059 | { | |
23060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23061 | result = (int)((wxDC const *)arg1)->MaxX(); | |
23062 | wxPyEndAllowThreads(__tstate); | |
23063 | if (PyErr_Occurred()) SWIG_fail; | |
23064 | } | |
23065 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23066 | return resultobj; | |
23067 | fail: | |
23068 | return NULL; | |
23069 | } | |
23070 | ||
23071 | ||
23072 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23073 | PyObject *resultobj = 0; | |
23074 | wxDC *arg1 = (wxDC *) 0 ; | |
23075 | int result; | |
23076 | void *argp1 = 0 ; | |
23077 | int res1 = 0 ; | |
23078 | PyObject *swig_obj[1] ; | |
23079 | ||
23080 | if (!args) SWIG_fail; | |
23081 | swig_obj[0] = args; | |
23082 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23083 | if (!SWIG_IsOK(res1)) { | |
23084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23085 | } | |
23086 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23087 | { | |
23088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23089 | result = (int)((wxDC const *)arg1)->MinY(); | |
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23094 | return resultobj; | |
23095 | fail: | |
23096 | return NULL; | |
23097 | } | |
23098 | ||
23099 | ||
23100 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23101 | PyObject *resultobj = 0; | |
23102 | wxDC *arg1 = (wxDC *) 0 ; | |
23103 | int result; | |
23104 | void *argp1 = 0 ; | |
23105 | int res1 = 0 ; | |
23106 | PyObject *swig_obj[1] ; | |
23107 | ||
23108 | if (!args) SWIG_fail; | |
23109 | swig_obj[0] = args; | |
23110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23111 | if (!SWIG_IsOK(res1)) { | |
23112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23113 | } | |
23114 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23115 | { | |
23116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23117 | result = (int)((wxDC const *)arg1)->MaxY(); | |
23118 | wxPyEndAllowThreads(__tstate); | |
23119 | if (PyErr_Occurred()) SWIG_fail; | |
23120 | } | |
23121 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23122 | return resultobj; | |
23123 | fail: | |
23124 | return NULL; | |
23125 | } | |
23126 | ||
23127 | ||
23128 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23129 | PyObject *resultobj = 0; | |
23130 | wxDC *arg1 = (wxDC *) 0 ; | |
23131 | int *arg2 = (int *) 0 ; | |
23132 | int *arg3 = (int *) 0 ; | |
23133 | int *arg4 = (int *) 0 ; | |
23134 | int *arg5 = (int *) 0 ; | |
23135 | void *argp1 = 0 ; | |
23136 | int res1 = 0 ; | |
23137 | int temp2 ; | |
23138 | int res2 = SWIG_TMPOBJ ; | |
23139 | int temp3 ; | |
23140 | int res3 = SWIG_TMPOBJ ; | |
23141 | int temp4 ; | |
23142 | int res4 = SWIG_TMPOBJ ; | |
23143 | int temp5 ; | |
23144 | int res5 = SWIG_TMPOBJ ; | |
23145 | PyObject *swig_obj[1] ; | |
23146 | ||
23147 | arg2 = &temp2; | |
23148 | arg3 = &temp3; | |
23149 | arg4 = &temp4; | |
23150 | arg5 = &temp5; | |
23151 | if (!args) SWIG_fail; | |
23152 | swig_obj[0] = args; | |
23153 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23154 | if (!SWIG_IsOK(res1)) { | |
23155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23156 | } | |
23157 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23158 | { | |
23159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23160 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
23161 | wxPyEndAllowThreads(__tstate); | |
23162 | if (PyErr_Occurred()) SWIG_fail; | |
23163 | } | |
23164 | resultobj = SWIG_Py_Void(); | |
23165 | if (SWIG_IsTmpObj(res2)) { | |
23166 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23167 | } else { | |
23168 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23169 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23170 | } | |
23171 | if (SWIG_IsTmpObj(res3)) { | |
23172 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23173 | } else { | |
23174 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23175 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23176 | } | |
23177 | if (SWIG_IsTmpObj(res4)) { | |
23178 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
23179 | } else { | |
23180 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23181 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
23182 | } | |
23183 | if (SWIG_IsTmpObj(res5)) { | |
23184 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
23185 | } else { | |
23186 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23187 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
23188 | } | |
23189 | return resultobj; | |
23190 | fail: | |
23191 | return NULL; | |
23192 | } | |
23193 | ||
23194 | ||
b39fe951 RD |
23195 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23196 | PyObject *resultobj = 0; | |
23197 | wxDC *arg1 = (wxDC *) 0 ; | |
23198 | wxLayoutDirection result; | |
23199 | void *argp1 = 0 ; | |
23200 | int res1 = 0 ; | |
23201 | PyObject *swig_obj[1] ; | |
23202 | ||
23203 | if (!args) SWIG_fail; | |
23204 | swig_obj[0] = args; | |
23205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23206 | if (!SWIG_IsOK(res1)) { | |
23207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23208 | } | |
23209 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23210 | { | |
23211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23212 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23213 | wxPyEndAllowThreads(__tstate); | |
23214 | if (PyErr_Occurred()) SWIG_fail; | |
23215 | } | |
23216 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23217 | return resultobj; | |
23218 | fail: | |
23219 | return NULL; | |
23220 | } | |
23221 | ||
23222 | ||
23223 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23224 | PyObject *resultobj = 0; | |
23225 | wxDC *arg1 = (wxDC *) 0 ; | |
23226 | wxLayoutDirection arg2 ; | |
23227 | void *argp1 = 0 ; | |
23228 | int res1 = 0 ; | |
23229 | int val2 ; | |
23230 | int ecode2 = 0 ; | |
23231 | PyObject * obj0 = 0 ; | |
23232 | PyObject * obj1 = 0 ; | |
23233 | char * kwnames[] = { | |
23234 | (char *) "self",(char *) "dir", NULL | |
23235 | }; | |
23236 | ||
23237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23239 | if (!SWIG_IsOK(res1)) { | |
23240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23241 | } | |
23242 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23243 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23244 | if (!SWIG_IsOK(ecode2)) { | |
23245 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23246 | } | |
23247 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23248 | { | |
23249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23250 | (arg1)->SetLayoutDirection(arg2); | |
23251 | wxPyEndAllowThreads(__tstate); | |
23252 | if (PyErr_Occurred()) SWIG_fail; | |
23253 | } | |
23254 | resultobj = SWIG_Py_Void(); | |
23255 | return resultobj; | |
23256 | fail: | |
23257 | return NULL; | |
23258 | } | |
23259 | ||
23260 | ||
0085ce49 RD |
23261 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23262 | PyObject *resultobj = 0; | |
23263 | wxDC *arg1 = (wxDC *) 0 ; | |
23264 | PyObject *arg2 = (PyObject *) 0 ; | |
23265 | PyObject *arg3 = (PyObject *) 0 ; | |
23266 | PyObject *arg4 = (PyObject *) 0 ; | |
23267 | PyObject *result = 0 ; | |
23268 | void *argp1 = 0 ; | |
23269 | int res1 = 0 ; | |
23270 | PyObject * obj0 = 0 ; | |
23271 | PyObject * obj1 = 0 ; | |
23272 | PyObject * obj2 = 0 ; | |
23273 | PyObject * obj3 = 0 ; | |
23274 | char * kwnames[] = { | |
23275 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23276 | }; | |
23277 | ||
23278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23280 | if (!SWIG_IsOK(res1)) { | |
23281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23282 | } | |
23283 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23284 | arg2 = obj1; | |
23285 | arg3 = obj2; | |
23286 | arg4 = obj3; | |
23287 | { | |
23288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23289 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23290 | wxPyEndAllowThreads(__tstate); | |
23291 | if (PyErr_Occurred()) SWIG_fail; | |
23292 | } | |
23293 | resultobj = result; | |
23294 | return resultobj; | |
23295 | fail: | |
23296 | return NULL; | |
23297 | } | |
23298 | ||
23299 | ||
23300 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23301 | PyObject *resultobj = 0; | |
23302 | wxDC *arg1 = (wxDC *) 0 ; | |
23303 | PyObject *arg2 = (PyObject *) 0 ; | |
23304 | PyObject *arg3 = (PyObject *) 0 ; | |
23305 | PyObject *arg4 = (PyObject *) 0 ; | |
23306 | PyObject *result = 0 ; | |
23307 | void *argp1 = 0 ; | |
23308 | int res1 = 0 ; | |
23309 | PyObject * obj0 = 0 ; | |
23310 | PyObject * obj1 = 0 ; | |
23311 | PyObject * obj2 = 0 ; | |
23312 | PyObject * obj3 = 0 ; | |
23313 | char * kwnames[] = { | |
23314 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23315 | }; | |
23316 | ||
23317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23319 | if (!SWIG_IsOK(res1)) { | |
23320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23321 | } | |
23322 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23323 | arg2 = obj1; | |
23324 | arg3 = obj2; | |
23325 | arg4 = obj3; | |
23326 | { | |
23327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23328 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
23329 | wxPyEndAllowThreads(__tstate); | |
23330 | if (PyErr_Occurred()) SWIG_fail; | |
23331 | } | |
23332 | resultobj = result; | |
23333 | return resultobj; | |
23334 | fail: | |
23335 | return NULL; | |
23336 | } | |
23337 | ||
23338 | ||
23339 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23340 | PyObject *resultobj = 0; | |
23341 | wxDC *arg1 = (wxDC *) 0 ; | |
23342 | PyObject *arg2 = (PyObject *) 0 ; | |
23343 | PyObject *arg3 = (PyObject *) 0 ; | |
23344 | PyObject *arg4 = (PyObject *) 0 ; | |
23345 | PyObject *result = 0 ; | |
23346 | void *argp1 = 0 ; | |
23347 | int res1 = 0 ; | |
23348 | PyObject * obj0 = 0 ; | |
23349 | PyObject * obj1 = 0 ; | |
23350 | PyObject * obj2 = 0 ; | |
23351 | PyObject * obj3 = 0 ; | |
23352 | char * kwnames[] = { | |
23353 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23354 | }; | |
23355 | ||
23356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23358 | if (!SWIG_IsOK(res1)) { | |
23359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23360 | } | |
23361 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23362 | arg2 = obj1; | |
23363 | arg3 = obj2; | |
23364 | arg4 = obj3; | |
23365 | { | |
23366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23367 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
23368 | wxPyEndAllowThreads(__tstate); | |
23369 | if (PyErr_Occurred()) SWIG_fail; | |
23370 | } | |
23371 | resultobj = result; | |
23372 | return resultobj; | |
23373 | fail: | |
23374 | return NULL; | |
23375 | } | |
23376 | ||
23377 | ||
23378 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23379 | PyObject *resultobj = 0; | |
23380 | wxDC *arg1 = (wxDC *) 0 ; | |
23381 | PyObject *arg2 = (PyObject *) 0 ; | |
23382 | PyObject *arg3 = (PyObject *) 0 ; | |
23383 | PyObject *arg4 = (PyObject *) 0 ; | |
23384 | PyObject *result = 0 ; | |
23385 | void *argp1 = 0 ; | |
23386 | int res1 = 0 ; | |
23387 | PyObject * obj0 = 0 ; | |
23388 | PyObject * obj1 = 0 ; | |
23389 | PyObject * obj2 = 0 ; | |
23390 | PyObject * obj3 = 0 ; | |
23391 | char * kwnames[] = { | |
23392 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23393 | }; | |
23394 | ||
23395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23397 | if (!SWIG_IsOK(res1)) { | |
23398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23399 | } | |
23400 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23401 | arg2 = obj1; | |
23402 | arg3 = obj2; | |
23403 | arg4 = obj3; | |
23404 | { | |
23405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23406 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
23407 | wxPyEndAllowThreads(__tstate); | |
23408 | if (PyErr_Occurred()) SWIG_fail; | |
23409 | } | |
23410 | resultobj = result; | |
23411 | return resultobj; | |
23412 | fail: | |
23413 | return NULL; | |
23414 | } | |
23415 | ||
23416 | ||
23417 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23418 | PyObject *resultobj = 0; | |
23419 | wxDC *arg1 = (wxDC *) 0 ; | |
23420 | PyObject *arg2 = (PyObject *) 0 ; | |
23421 | PyObject *arg3 = (PyObject *) 0 ; | |
23422 | PyObject *arg4 = (PyObject *) 0 ; | |
23423 | PyObject *result = 0 ; | |
23424 | void *argp1 = 0 ; | |
23425 | int res1 = 0 ; | |
23426 | PyObject * obj0 = 0 ; | |
23427 | PyObject * obj1 = 0 ; | |
23428 | PyObject * obj2 = 0 ; | |
23429 | PyObject * obj3 = 0 ; | |
23430 | char * kwnames[] = { | |
23431 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23432 | }; | |
23433 | ||
23434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23436 | if (!SWIG_IsOK(res1)) { | |
23437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23438 | } | |
23439 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23440 | arg2 = obj1; | |
23441 | arg3 = obj2; | |
23442 | arg4 = obj3; | |
23443 | { | |
23444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23445 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
23446 | wxPyEndAllowThreads(__tstate); | |
23447 | if (PyErr_Occurred()) SWIG_fail; | |
23448 | } | |
23449 | resultobj = result; | |
23450 | return resultobj; | |
23451 | fail: | |
23452 | return NULL; | |
23453 | } | |
23454 | ||
23455 | ||
23456 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23457 | PyObject *resultobj = 0; | |
23458 | wxDC *arg1 = (wxDC *) 0 ; | |
23459 | PyObject *arg2 = (PyObject *) 0 ; | |
23460 | PyObject *arg3 = (PyObject *) 0 ; | |
23461 | PyObject *arg4 = (PyObject *) 0 ; | |
23462 | PyObject *arg5 = (PyObject *) 0 ; | |
23463 | PyObject *result = 0 ; | |
23464 | void *argp1 = 0 ; | |
23465 | int res1 = 0 ; | |
23466 | PyObject * obj0 = 0 ; | |
23467 | PyObject * obj1 = 0 ; | |
23468 | PyObject * obj2 = 0 ; | |
23469 | PyObject * obj3 = 0 ; | |
23470 | PyObject * obj4 = 0 ; | |
23471 | char * kwnames[] = { | |
23472 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
23473 | }; | |
23474 | ||
23475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23476 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23477 | if (!SWIG_IsOK(res1)) { | |
23478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23479 | } | |
23480 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23481 | arg2 = obj1; | |
23482 | arg3 = obj2; | |
23483 | arg4 = obj3; | |
23484 | arg5 = obj4; | |
23485 | { | |
23486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23487 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
23488 | wxPyEndAllowThreads(__tstate); | |
23489 | if (PyErr_Occurred()) SWIG_fail; | |
23490 | } | |
23491 | resultobj = result; | |
23492 | return resultobj; | |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
23498 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23499 | PyObject *obj; | |
23500 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23501 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
23502 | return SWIG_Py_Void(); | |
23503 | } | |
23504 | ||
70d7cb34 RD |
23505 | SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23506 | PyObject *resultobj = 0; | |
23507 | wxDC *arg1 = 0 ; | |
23508 | wxColour *arg2 = 0 ; | |
23509 | wxDCTextColourChanger *result = 0 ; | |
23510 | void *argp1 = 0 ; | |
23511 | int res1 = 0 ; | |
23512 | wxColour temp2 ; | |
23513 | PyObject * obj0 = 0 ; | |
23514 | PyObject * obj1 = 0 ; | |
23515 | char * kwnames[] = { | |
23516 | (char *) "dc",(char *) "col", NULL | |
23517 | }; | |
23518 | ||
23519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23520 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23521 | if (!SWIG_IsOK(res1)) { | |
23522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23523 | } | |
23524 | if (!argp1) { | |
23525 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23526 | } | |
23527 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23528 | { | |
23529 | arg2 = &temp2; | |
23530 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23531 | } | |
23532 | { | |
23533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23534 | result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2); | |
23535 | wxPyEndAllowThreads(__tstate); | |
23536 | if (PyErr_Occurred()) SWIG_fail; | |
23537 | } | |
23538 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 ); | |
23539 | return resultobj; | |
23540 | fail: | |
23541 | return NULL; | |
23542 | } | |
23543 | ||
23544 | ||
23545 | SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23546 | PyObject *resultobj = 0; | |
23547 | wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ; | |
23548 | void *argp1 = 0 ; | |
23549 | int res1 = 0 ; | |
23550 | PyObject *swig_obj[1] ; | |
23551 | ||
23552 | if (!args) SWIG_fail; | |
23553 | swig_obj[0] = args; | |
23554 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 ); | |
23555 | if (!SWIG_IsOK(res1)) { | |
23556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'"); | |
23557 | } | |
23558 | arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1); | |
23559 | { | |
23560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23561 | delete arg1; | |
23562 | ||
23563 | wxPyEndAllowThreads(__tstate); | |
23564 | if (PyErr_Occurred()) SWIG_fail; | |
23565 | } | |
23566 | resultobj = SWIG_Py_Void(); | |
23567 | return resultobj; | |
23568 | fail: | |
23569 | return NULL; | |
23570 | } | |
23571 | ||
23572 | ||
23573 | SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23574 | PyObject *obj; | |
23575 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23576 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj)); | |
23577 | return SWIG_Py_Void(); | |
23578 | } | |
23579 | ||
23580 | SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23581 | return SWIG_Python_InitShadowInstance(args); | |
23582 | } | |
23583 | ||
23584 | SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23585 | PyObject *resultobj = 0; | |
23586 | wxDC *arg1 = 0 ; | |
23587 | wxPen *arg2 = 0 ; | |
23588 | wxDCPenChanger *result = 0 ; | |
23589 | void *argp1 = 0 ; | |
23590 | int res1 = 0 ; | |
23591 | void *argp2 = 0 ; | |
23592 | int res2 = 0 ; | |
23593 | PyObject * obj0 = 0 ; | |
23594 | PyObject * obj1 = 0 ; | |
23595 | char * kwnames[] = { | |
23596 | (char *) "dc",(char *) "pen", NULL | |
23597 | }; | |
23598 | ||
23599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23600 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23601 | if (!SWIG_IsOK(res1)) { | |
23602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23603 | } | |
23604 | if (!argp1) { | |
23605 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23606 | } | |
23607 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23608 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
23609 | if (!SWIG_IsOK(res2)) { | |
23610 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23611 | } | |
23612 | if (!argp2) { | |
23613 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23614 | } | |
23615 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
23616 | { | |
23617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23618 | result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2); | |
23619 | wxPyEndAllowThreads(__tstate); | |
23620 | if (PyErr_Occurred()) SWIG_fail; | |
23621 | } | |
23622 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 ); | |
23623 | return resultobj; | |
23624 | fail: | |
23625 | return NULL; | |
23626 | } | |
23627 | ||
23628 | ||
23629 | SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23630 | PyObject *resultobj = 0; | |
23631 | wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ; | |
23632 | void *argp1 = 0 ; | |
23633 | int res1 = 0 ; | |
23634 | PyObject *swig_obj[1] ; | |
23635 | ||
23636 | if (!args) SWIG_fail; | |
23637 | swig_obj[0] = args; | |
23638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 ); | |
23639 | if (!SWIG_IsOK(res1)) { | |
23640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'"); | |
23641 | } | |
23642 | arg1 = reinterpret_cast< wxDCPenChanger * >(argp1); | |
23643 | { | |
23644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23645 | delete arg1; | |
23646 | ||
23647 | wxPyEndAllowThreads(__tstate); | |
23648 | if (PyErr_Occurred()) SWIG_fail; | |
23649 | } | |
23650 | resultobj = SWIG_Py_Void(); | |
23651 | return resultobj; | |
23652 | fail: | |
23653 | return NULL; | |
23654 | } | |
23655 | ||
23656 | ||
23657 | SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23658 | PyObject *obj; | |
23659 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23660 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj)); | |
23661 | return SWIG_Py_Void(); | |
23662 | } | |
23663 | ||
23664 | SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23665 | return SWIG_Python_InitShadowInstance(args); | |
23666 | } | |
23667 | ||
23668 | SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23669 | PyObject *resultobj = 0; | |
23670 | wxDC *arg1 = 0 ; | |
23671 | wxBrush *arg2 = 0 ; | |
23672 | wxDCBrushChanger *result = 0 ; | |
23673 | void *argp1 = 0 ; | |
23674 | int res1 = 0 ; | |
23675 | void *argp2 = 0 ; | |
23676 | int res2 = 0 ; | |
23677 | PyObject * obj0 = 0 ; | |
23678 | PyObject * obj1 = 0 ; | |
23679 | char * kwnames[] = { | |
23680 | (char *) "dc",(char *) "brush", NULL | |
23681 | }; | |
23682 | ||
23683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23684 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23685 | if (!SWIG_IsOK(res1)) { | |
23686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23687 | } | |
23688 | if (!argp1) { | |
23689 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23690 | } | |
23691 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23692 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
23693 | if (!SWIG_IsOK(res2)) { | |
23694 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23695 | } | |
23696 | if (!argp2) { | |
23697 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23698 | } | |
23699 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
23700 | { | |
23701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23702 | result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2); | |
23703 | wxPyEndAllowThreads(__tstate); | |
23704 | if (PyErr_Occurred()) SWIG_fail; | |
23705 | } | |
23706 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 ); | |
23707 | return resultobj; | |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
23713 | SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23714 | PyObject *resultobj = 0; | |
23715 | wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ; | |
23716 | void *argp1 = 0 ; | |
23717 | int res1 = 0 ; | |
23718 | PyObject *swig_obj[1] ; | |
23719 | ||
23720 | if (!args) SWIG_fail; | |
23721 | swig_obj[0] = args; | |
23722 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 ); | |
23723 | if (!SWIG_IsOK(res1)) { | |
23724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'"); | |
23725 | } | |
23726 | arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1); | |
23727 | { | |
23728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23729 | delete arg1; | |
23730 | ||
23731 | wxPyEndAllowThreads(__tstate); | |
23732 | if (PyErr_Occurred()) SWIG_fail; | |
23733 | } | |
23734 | resultobj = SWIG_Py_Void(); | |
23735 | return resultobj; | |
23736 | fail: | |
23737 | return NULL; | |
23738 | } | |
23739 | ||
23740 | ||
23741 | SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23742 | PyObject *obj; | |
23743 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23744 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj)); | |
23745 | return SWIG_Py_Void(); | |
23746 | } | |
23747 | ||
23748 | SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23749 | return SWIG_Python_InitShadowInstance(args); | |
23750 | } | |
23751 | ||
23752 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23753 | PyObject *resultobj = 0; | |
23754 | wxDC *arg1 = 0 ; | |
23755 | wxRegion *arg2 = 0 ; | |
23756 | wxDCClipper *result = 0 ; | |
23757 | void *argp1 = 0 ; | |
23758 | int res1 = 0 ; | |
23759 | void *argp2 = 0 ; | |
23760 | int res2 = 0 ; | |
23761 | ||
23762 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23764 | if (!SWIG_IsOK(res1)) { | |
23765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23766 | } | |
23767 | if (!argp1) { | |
23768 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23769 | } | |
23770 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23771 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
23772 | if (!SWIG_IsOK(res2)) { | |
23773 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23774 | } | |
23775 | if (!argp2) { | |
23776 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23777 | } | |
23778 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
23779 | { | |
23780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23781 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2); | |
23782 | wxPyEndAllowThreads(__tstate); | |
23783 | if (PyErr_Occurred()) SWIG_fail; | |
23784 | } | |
23785 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23786 | return resultobj; | |
23787 | fail: | |
23788 | return NULL; | |
23789 | } | |
23790 | ||
23791 | ||
23792 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23793 | PyObject *resultobj = 0; | |
23794 | wxDC *arg1 = 0 ; | |
23795 | wxRect *arg2 = 0 ; | |
23796 | wxDCClipper *result = 0 ; | |
23797 | void *argp1 = 0 ; | |
23798 | int res1 = 0 ; | |
23799 | wxRect temp2 ; | |
23800 | ||
23801 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23802 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23803 | if (!SWIG_IsOK(res1)) { | |
23804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23805 | } | |
23806 | if (!argp1) { | |
23807 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23808 | } | |
23809 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23810 | { | |
23811 | arg2 = &temp2; | |
23812 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
23813 | } | |
23814 | { | |
23815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23816 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2); | |
23817 | wxPyEndAllowThreads(__tstate); | |
23818 | if (PyErr_Occurred()) SWIG_fail; | |
23819 | } | |
23820 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23821 | return resultobj; | |
23822 | fail: | |
23823 | return NULL; | |
23824 | } | |
23825 | ||
23826 | ||
23827 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23828 | PyObject *resultobj = 0; | |
23829 | wxDC *arg1 = 0 ; | |
23830 | int arg2 ; | |
23831 | int arg3 ; | |
23832 | int arg4 ; | |
23833 | int arg5 ; | |
23834 | wxDCClipper *result = 0 ; | |
23835 | void *argp1 = 0 ; | |
23836 | int res1 = 0 ; | |
23837 | int val2 ; | |
23838 | int ecode2 = 0 ; | |
23839 | int val3 ; | |
23840 | int ecode3 = 0 ; | |
23841 | int val4 ; | |
23842 | int ecode4 = 0 ; | |
23843 | int val5 ; | |
23844 | int ecode5 = 0 ; | |
23845 | ||
23846 | if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; | |
23847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23848 | if (!SWIG_IsOK(res1)) { | |
23849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23850 | } | |
23851 | if (!argp1) { | |
23852 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23853 | } | |
23854 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23855 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
23856 | if (!SWIG_IsOK(ecode2)) { | |
23857 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'"); | |
23858 | } | |
23859 | arg2 = static_cast< int >(val2); | |
23860 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
23861 | if (!SWIG_IsOK(ecode3)) { | |
23862 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'"); | |
23863 | } | |
23864 | arg3 = static_cast< int >(val3); | |
23865 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
23866 | if (!SWIG_IsOK(ecode4)) { | |
23867 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'"); | |
23868 | } | |
23869 | arg4 = static_cast< int >(val4); | |
23870 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
23871 | if (!SWIG_IsOK(ecode5)) { | |
23872 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'"); | |
23873 | } | |
23874 | arg5 = static_cast< int >(val5); | |
23875 | { | |
23876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23877 | result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5); | |
23878 | wxPyEndAllowThreads(__tstate); | |
23879 | if (PyErr_Occurred()) SWIG_fail; | |
23880 | } | |
23881 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23882 | return resultobj; | |
23883 | fail: | |
23884 | return NULL; | |
23885 | } | |
23886 | ||
23887 | ||
23888 | SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) { | |
23889 | int argc; | |
23890 | PyObject *argv[6]; | |
23891 | ||
23892 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail; | |
23893 | --argc; | |
23894 | if (argc == 2) { | |
23895 | int _v = 0; | |
23896 | { | |
23897 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0); | |
23898 | _v = SWIG_CheckState(res); | |
23899 | } | |
23900 | if (!_v) goto check_1; | |
23901 | return _wrap_new_DCClipper__SWIG_0(self, argc, argv); | |
23902 | } | |
23903 | check_1: | |
23904 | ||
23905 | if (argc == 2) { | |
23906 | return _wrap_new_DCClipper__SWIG_1(self, argc, argv); | |
23907 | } | |
23908 | if (argc == 5) { | |
23909 | return _wrap_new_DCClipper__SWIG_2(self, argc, argv); | |
23910 | } | |
23911 | ||
23912 | fail: | |
23913 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'"); | |
23914 | return NULL; | |
23915 | } | |
23916 | ||
23917 | ||
23918 | SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23919 | PyObject *resultobj = 0; | |
23920 | wxDCClipper *arg1 = (wxDCClipper *) 0 ; | |
23921 | void *argp1 = 0 ; | |
23922 | int res1 = 0 ; | |
23923 | PyObject *swig_obj[1] ; | |
23924 | ||
23925 | if (!args) SWIG_fail; | |
23926 | swig_obj[0] = args; | |
23927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 ); | |
23928 | if (!SWIG_IsOK(res1)) { | |
23929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'"); | |
23930 | } | |
23931 | arg1 = reinterpret_cast< wxDCClipper * >(argp1); | |
23932 | { | |
23933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23934 | delete arg1; | |
23935 | ||
23936 | wxPyEndAllowThreads(__tstate); | |
23937 | if (PyErr_Occurred()) SWIG_fail; | |
23938 | } | |
23939 | resultobj = SWIG_Py_Void(); | |
23940 | return resultobj; | |
23941 | fail: | |
23942 | return NULL; | |
23943 | } | |
23944 | ||
23945 | ||
23946 | SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23947 | PyObject *obj; | |
23948 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23949 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj)); | |
23950 | return SWIG_Py_Void(); | |
23951 | } | |
23952 | ||
23953 | SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23954 | return SWIG_Python_InitShadowInstance(args); | |
23955 | } | |
23956 | ||
24f6c4e8 RD |
23957 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23958 | PyObject *resultobj = 0; | |
23959 | wxScreenDC *result = 0 ; | |
23960 | ||
23961 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
23962 | { | |
23963 | if (!wxPyCheckForApp()) SWIG_fail; | |
23964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23965 | result = (wxScreenDC *)new wxScreenDC(); | |
23966 | wxPyEndAllowThreads(__tstate); | |
23967 | if (PyErr_Occurred()) SWIG_fail; | |
23968 | } | |
23969 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
23970 | return resultobj; | |
23971 | fail: | |
23972 | return NULL; | |
23973 | } | |
23974 | ||
23975 | ||
23976 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23977 | PyObject *resultobj = 0; | |
23978 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23979 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23980 | bool result; | |
23981 | void *argp1 = 0 ; | |
23982 | int res1 = 0 ; | |
23983 | void *argp2 = 0 ; | |
23984 | int res2 = 0 ; | |
23985 | PyObject * obj0 = 0 ; | |
23986 | PyObject * obj1 = 0 ; | |
23987 | char * kwnames[] = { | |
23988 | (char *) "self",(char *) "window", NULL | |
23989 | }; | |
23990 | ||
23991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
23992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23993 | if (!SWIG_IsOK(res1)) { | |
23994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23995 | } | |
23996 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
23997 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23998 | if (!SWIG_IsOK(res2)) { | |
23999 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24000 | } | |
24001 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24002 | { | |
24003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24004 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24005 | wxPyEndAllowThreads(__tstate); | |
24006 | if (PyErr_Occurred()) SWIG_fail; | |
24007 | } | |
24008 | { | |
24009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24010 | } | |
24011 | return resultobj; | |
24012 | fail: | |
24013 | return NULL; | |
24014 | } | |
24015 | ||
24016 | ||
24017 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24018 | PyObject *resultobj = 0; | |
24019 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24020 | wxRect *arg2 = (wxRect *) NULL ; | |
24021 | bool result; | |
24022 | void *argp1 = 0 ; | |
24023 | int res1 = 0 ; | |
24024 | void *argp2 = 0 ; | |
24025 | int res2 = 0 ; | |
24026 | PyObject * obj0 = 0 ; | |
24027 | PyObject * obj1 = 0 ; | |
24028 | char * kwnames[] = { | |
24029 | (char *) "self",(char *) "rect", NULL | |
24030 | }; | |
24031 | ||
24032 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
24033 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24034 | if (!SWIG_IsOK(res1)) { | |
24035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24036 | } | |
24037 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24038 | if (obj1) { | |
24039 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
24040 | if (!SWIG_IsOK(res2)) { | |
24041 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
24042 | } | |
24043 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
24044 | } | |
24045 | { | |
24046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24047 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24048 | wxPyEndAllowThreads(__tstate); | |
24049 | if (PyErr_Occurred()) SWIG_fail; | |
24050 | } | |
24051 | { | |
24052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24053 | } | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
24060 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24061 | PyObject *resultobj = 0; | |
24062 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24063 | bool result; | |
24064 | void *argp1 = 0 ; | |
24065 | int res1 = 0 ; | |
24066 | PyObject *swig_obj[1] ; | |
24067 | ||
24068 | if (!args) SWIG_fail; | |
24069 | swig_obj[0] = args; | |
24070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24071 | if (!SWIG_IsOK(res1)) { | |
24072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24073 | } | |
24074 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24075 | { | |
24076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24077 | result = (bool)(arg1)->EndDrawingOnTop(); | |
24078 | wxPyEndAllowThreads(__tstate); | |
24079 | if (PyErr_Occurred()) SWIG_fail; | |
24080 | } | |
24081 | { | |
24082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24083 | } | |
24084 | return resultobj; | |
24085 | fail: | |
24086 | return NULL; | |
24087 | } | |
24088 | ||
24089 | ||
24090 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24091 | PyObject *obj; | |
24092 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24093 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24094 | return SWIG_Py_Void(); | |
24095 | } | |
24096 | ||
24097 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24098 | return SWIG_Python_InitShadowInstance(args); | |
24099 | } | |
24100 | ||
24101 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24102 | PyObject *resultobj = 0; | |
24103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24104 | wxWindowDC *result = 0 ; | |
24105 | void *argp1 = 0 ; | |
24106 | int res1 = 0 ; | |
24107 | PyObject * obj0 = 0 ; | |
24108 | char * kwnames[] = { | |
24109 | (char *) "win", NULL | |
24110 | }; | |
24111 | ||
24112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24114 | if (!SWIG_IsOK(res1)) { | |
24115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24116 | } | |
24117 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24118 | { | |
24119 | if (!wxPyCheckForApp()) SWIG_fail; | |
24120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24121 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24122 | wxPyEndAllowThreads(__tstate); | |
24123 | if (PyErr_Occurred()) SWIG_fail; | |
24124 | } | |
24125 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24126 | return resultobj; | |
24127 | fail: | |
24128 | return NULL; | |
24129 | } | |
24130 | ||
24131 | ||
24132 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24133 | PyObject *obj; | |
24134 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24135 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24136 | return SWIG_Py_Void(); | |
24137 | } | |
24138 | ||
24139 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24140 | return SWIG_Python_InitShadowInstance(args); | |
24141 | } | |
24142 | ||
24143 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24144 | PyObject *resultobj = 0; | |
24145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24146 | wxClientDC *result = 0 ; | |
24147 | void *argp1 = 0 ; | |
24148 | int res1 = 0 ; | |
24149 | PyObject * obj0 = 0 ; | |
24150 | char * kwnames[] = { | |
24151 | (char *) "win", NULL | |
24152 | }; | |
24153 | ||
24154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24156 | if (!SWIG_IsOK(res1)) { | |
24157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24158 | } | |
24159 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24160 | { | |
24161 | if (!wxPyCheckForApp()) SWIG_fail; | |
24162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24163 | result = (wxClientDC *)new wxClientDC(arg1); | |
24164 | wxPyEndAllowThreads(__tstate); | |
24165 | if (PyErr_Occurred()) SWIG_fail; | |
24166 | } | |
24167 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24168 | return resultobj; | |
24169 | fail: | |
24170 | return NULL; | |
24171 | } | |
24172 | ||
24173 | ||
24174 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24175 | PyObject *obj; | |
24176 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24177 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
24178 | return SWIG_Py_Void(); | |
24179 | } | |
24180 | ||
24181 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24182 | return SWIG_Python_InitShadowInstance(args); | |
24183 | } | |
24184 | ||
24185 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24186 | PyObject *resultobj = 0; | |
24187 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24188 | wxPaintDC *result = 0 ; | |
24189 | void *argp1 = 0 ; | |
24190 | int res1 = 0 ; | |
24191 | PyObject * obj0 = 0 ; | |
24192 | char * kwnames[] = { | |
24193 | (char *) "win", NULL | |
24194 | }; | |
24195 | ||
24196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24198 | if (!SWIG_IsOK(res1)) { | |
24199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24200 | } | |
24201 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24202 | { | |
24203 | if (!wxPyCheckForApp()) SWIG_fail; | |
24204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24205 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24206 | wxPyEndAllowThreads(__tstate); | |
24207 | if (PyErr_Occurred()) SWIG_fail; | |
24208 | } | |
24209 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24210 | return resultobj; | |
24211 | fail: | |
24212 | return NULL; | |
24213 | } | |
24214 | ||
24215 | ||
24216 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24217 | PyObject *obj; | |
24218 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24219 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24220 | return SWIG_Py_Void(); | |
24221 | } | |
24222 | ||
24223 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24224 | return SWIG_Python_InitShadowInstance(args); | |
24225 | } | |
24226 | ||
26c4d26f RD |
24227 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24228 | PyObject *resultobj = 0; | |
24229 | wxBitmap &arg1_defvalue = wxNullBitmap ; | |
24230 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24231 | wxMemoryDC *result = 0 ; | |
24232 | void *argp1 = 0 ; | |
24233 | int res1 = 0 ; | |
24234 | PyObject * obj0 = 0 ; | |
24235 | char * kwnames[] = { | |
24236 | (char *) "bitmap", NULL | |
24237 | }; | |
24238 | ||
24239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; | |
24240 | if (obj0) { | |
24241 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
24242 | if (!SWIG_IsOK(res1)) { | |
24243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24244 | } | |
24245 | if (!argp1) { | |
24246 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24247 | } | |
24248 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
24249 | } | |
24250 | { | |
24251 | if (!wxPyCheckForApp()) SWIG_fail; | |
24252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24253 | result = (wxMemoryDC *)new wxMemoryDC(*arg1); | |
24254 | wxPyEndAllowThreads(__tstate); | |
24255 | if (PyErr_Occurred()) SWIG_fail; | |
24256 | } | |
24257 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
24258 | return resultobj; | |
24259 | fail: | |
24260 | return NULL; | |
24261 | } | |
24262 | ||
24263 | ||
24264 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24265 | PyObject *resultobj = 0; | |
24266 | wxDC *arg1 = (wxDC *) 0 ; | |
24267 | wxMemoryDC *result = 0 ; | |
24268 | void *argp1 = 0 ; | |
24269 | int res1 = 0 ; | |
24270 | PyObject * obj0 = 0 ; | |
24271 | char * kwnames[] = { | |
24272 | (char *) "oldDC", NULL | |
24273 | }; | |
24274 | ||
24275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
24276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24277 | if (!SWIG_IsOK(res1)) { | |
24278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24279 | } | |
24280 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24281 | { | |
24282 | if (!wxPyCheckForApp()) SWIG_fail; | |
24283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24284 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
24285 | wxPyEndAllowThreads(__tstate); | |
24286 | if (PyErr_Occurred()) SWIG_fail; | |
24287 | } | |
24288 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
24289 | return resultobj; | |
24290 | fail: | |
24291 | return NULL; | |
24292 | } | |
24293 | ||
24294 | ||
24295 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24296 | PyObject *resultobj = 0; | |
24297 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24298 | wxBitmap *arg2 = 0 ; | |
24299 | void *argp1 = 0 ; | |
24300 | int res1 = 0 ; | |
24301 | void *argp2 = 0 ; | |
24302 | int res2 = 0 ; | |
24303 | PyObject * obj0 = 0 ; | |
24304 | PyObject * obj1 = 0 ; | |
24305 | char * kwnames[] = { | |
24306 | (char *) "self",(char *) "bitmap", NULL | |
24307 | }; | |
24308 | ||
24309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
24310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24311 | if (!SWIG_IsOK(res1)) { | |
24312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24313 | } | |
24314 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
24315 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
24316 | if (!SWIG_IsOK(res2)) { | |
24317 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24318 | } | |
24319 | if (!argp2) { | |
24320 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24321 | } | |
24322 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24323 | { | |
24324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24325 | (arg1)->SelectObject(*arg2); | |
24326 | wxPyEndAllowThreads(__tstate); | |
24327 | if (PyErr_Occurred()) SWIG_fail; | |
24328 | } | |
24329 | resultobj = SWIG_Py_Void(); | |
24330 | return resultobj; | |
24331 | fail: | |
24332 | return NULL; | |
24333 | } | |
24334 | ||
24335 | ||
24336 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24337 | PyObject *resultobj = 0; | |
24338 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24339 | wxBitmap *arg2 = 0 ; | |
24340 | void *argp1 = 0 ; | |
24341 | int res1 = 0 ; | |
24342 | void *argp2 = 0 ; | |
24343 | int res2 = 0 ; | |
24344 | PyObject * obj0 = 0 ; | |
24345 | PyObject * obj1 = 0 ; | |
24346 | char * kwnames[] = { | |
24347 | (char *) "self",(char *) "bmp", NULL | |
24348 | }; | |
24349 | ||
24350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail; | |
24351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24352 | if (!SWIG_IsOK(res1)) { | |
24353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24354 | } | |
24355 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
24356 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24357 | if (!SWIG_IsOK(res2)) { | |
24358 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24359 | } | |
24360 | if (!argp2) { | |
24361 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24362 | } | |
24363 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24364 | { | |
24365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24366 | (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2); | |
24367 | wxPyEndAllowThreads(__tstate); | |
24368 | if (PyErr_Occurred()) SWIG_fail; | |
24369 | } | |
24370 | resultobj = SWIG_Py_Void(); | |
24371 | return resultobj; | |
24372 | fail: | |
24373 | return NULL; | |
24374 | } | |
24375 | ||
24376 | ||
24377 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24378 | PyObject *obj; | |
24379 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24380 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
24381 | return SWIG_Py_Void(); | |
24382 | } | |
24383 | ||
24384 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24385 | return SWIG_Python_InitShadowInstance(args); | |
24386 | } | |
24387 | ||
0085ce49 RD |
24388 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24389 | PyObject *resultobj = 0; | |
24390 | wxDC *arg1 = (wxDC *) 0 ; | |
b6df5cf9 | 24391 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
0085ce49 RD |
24392 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
24393 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24394 | wxBufferedDC *result = 0 ; | |
24395 | void *argp1 = 0 ; | |
24396 | int res1 = 0 ; | |
24397 | void *argp2 = 0 ; | |
24398 | int res2 = 0 ; | |
24399 | int val3 ; | |
24400 | int ecode3 = 0 ; | |
24401 | ||
24402 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
24403 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24404 | if (!SWIG_IsOK(res1)) { | |
24405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24406 | } | |
24407 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24408 | if (swig_obj[1]) { | |
b6df5cf9 | 24409 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
0085ce49 | 24410 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 24411 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24412 | } |
0085ce49 | 24413 | if (!argp2) { |
b6df5cf9 | 24414 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24415 | } |
0085ce49 RD |
24416 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24417 | } | |
24418 | if (swig_obj[2]) { | |
24419 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24420 | if (!SWIG_IsOK(ecode3)) { | |
24421 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24422 | } | |
24423 | arg3 = static_cast< int >(val3); | |
24424 | } | |
24425 | { | |
24426 | if (!wxPyCheckForApp()) SWIG_fail; | |
24427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 24428 | result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3); |
0085ce49 RD |
24429 | wxPyEndAllowThreads(__tstate); |
24430 | if (PyErr_Occurred()) SWIG_fail; | |
24431 | } | |
24432 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24433 | return resultobj; | |
24434 | fail: | |
24435 | return NULL; | |
24436 | } | |
24437 | ||
24438 | ||
24439 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24440 | PyObject *resultobj = 0; | |
24441 | wxDC *arg1 = (wxDC *) 0 ; | |
24442 | wxSize *arg2 = 0 ; | |
24443 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24444 | wxBufferedDC *result = 0 ; | |
24445 | void *argp1 = 0 ; | |
24446 | int res1 = 0 ; | |
24447 | wxSize temp2 ; | |
24448 | int val3 ; | |
24449 | int ecode3 = 0 ; | |
24450 | ||
24451 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
24452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24453 | if (!SWIG_IsOK(res1)) { | |
24454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24455 | } | |
24456 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24457 | { | |
24458 | arg2 = &temp2; | |
24459 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24460 | } | |
24461 | if (swig_obj[2]) { | |
24462 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24463 | if (!SWIG_IsOK(ecode3)) { | |
24464 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24465 | } | |
24466 | arg3 = static_cast< int >(val3); | |
24467 | } | |
24468 | { | |
24469 | if (!wxPyCheckForApp()) SWIG_fail; | |
24470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24471 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
24472 | wxPyEndAllowThreads(__tstate); | |
24473 | if (PyErr_Occurred()) SWIG_fail; | |
24474 | } | |
24475 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24476 | return resultobj; | |
24477 | fail: | |
24478 | return NULL; | |
24479 | } | |
24480 | ||
24481 | ||
24482 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
24483 | int argc; | |
8e99bda9 | 24484 | PyObject *argv[4]; |
0085ce49 | 24485 | |
8e99bda9 | 24486 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
0085ce49 RD |
24487 | --argc; |
24488 | if ((argc >= 1) && (argc <= 3)) { | |
24489 | int _v = 0; | |
24490 | if (argc > 1) { | |
24491 | { | |
b6df5cf9 RD |
24492 | void *vptr = 0; |
24493 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0); | |
0085ce49 RD |
24494 | _v = SWIG_CheckState(res); |
24495 | } | |
24496 | if (!_v) goto check_1; | |
093d3ff1 | 24497 | } |
0085ce49 RD |
24498 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
24499 | } | |
24500 | check_1: | |
24501 | ||
24502 | if ((argc >= 2) && (argc <= 3)) { | |
24503 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
24504 | } | |
24505 | ||
24506 | fail: | |
24507 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
24508 | return NULL; | |
24509 | } | |
24510 | ||
24511 | ||
24512 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24513 | PyObject *resultobj = 0; | |
24514 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24515 | void *argp1 = 0 ; | |
24516 | int res1 = 0 ; | |
24517 | PyObject *swig_obj[1] ; | |
24518 | ||
24519 | if (!args) SWIG_fail; | |
24520 | swig_obj[0] = args; | |
24521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
24522 | if (!SWIG_IsOK(res1)) { | |
24523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24524 | } | |
24525 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24526 | { | |
24527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24528 | delete arg1; | |
24529 | ||
24530 | wxPyEndAllowThreads(__tstate); | |
24531 | if (PyErr_Occurred()) SWIG_fail; | |
24532 | } | |
24533 | resultobj = SWIG_Py_Void(); | |
24534 | return resultobj; | |
24535 | fail: | |
24536 | return NULL; | |
24537 | } | |
24538 | ||
24539 | ||
24540 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24541 | PyObject *resultobj = 0; | |
24542 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24543 | void *argp1 = 0 ; | |
24544 | int res1 = 0 ; | |
24545 | PyObject *swig_obj[1] ; | |
24546 | ||
24547 | if (!args) SWIG_fail; | |
24548 | swig_obj[0] = args; | |
24549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24550 | if (!SWIG_IsOK(res1)) { | |
24551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24552 | } | |
24553 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24554 | { | |
24555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24556 | (arg1)->UnMask(); | |
24557 | wxPyEndAllowThreads(__tstate); | |
24558 | if (PyErr_Occurred()) SWIG_fail; | |
24559 | } | |
24560 | resultobj = SWIG_Py_Void(); | |
24561 | return resultobj; | |
24562 | fail: | |
24563 | return NULL; | |
24564 | } | |
24565 | ||
24566 | ||
b6df5cf9 RD |
24567 | SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24568 | PyObject *resultobj = 0; | |
24569 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24570 | int arg2 ; | |
24571 | void *argp1 = 0 ; | |
24572 | int res1 = 0 ; | |
24573 | int val2 ; | |
24574 | int ecode2 = 0 ; | |
24575 | PyObject * obj0 = 0 ; | |
24576 | PyObject * obj1 = 0 ; | |
24577 | char * kwnames[] = { | |
24578 | (char *) "self",(char *) "style", NULL | |
24579 | }; | |
24580 | ||
24581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
24582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24583 | if (!SWIG_IsOK(res1)) { | |
24584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24585 | } | |
24586 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24587 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24588 | if (!SWIG_IsOK(ecode2)) { | |
24589 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
24590 | } | |
24591 | arg2 = static_cast< int >(val2); | |
24592 | { | |
24593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24594 | (arg1)->SetStyle(arg2); | |
24595 | wxPyEndAllowThreads(__tstate); | |
24596 | if (PyErr_Occurred()) SWIG_fail; | |
24597 | } | |
24598 | resultobj = SWIG_Py_Void(); | |
24599 | return resultobj; | |
24600 | fail: | |
24601 | return NULL; | |
24602 | } | |
24603 | ||
24604 | ||
24605 | SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24606 | PyObject *resultobj = 0; | |
24607 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24608 | int result; | |
24609 | void *argp1 = 0 ; | |
24610 | int res1 = 0 ; | |
24611 | PyObject *swig_obj[1] ; | |
24612 | ||
24613 | if (!args) SWIG_fail; | |
24614 | swig_obj[0] = args; | |
24615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24616 | if (!SWIG_IsOK(res1)) { | |
24617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'"); | |
24618 | } | |
24619 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24620 | { | |
24621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24622 | result = (int)((wxBufferedDC const *)arg1)->GetStyle(); | |
24623 | wxPyEndAllowThreads(__tstate); | |
24624 | if (PyErr_Occurred()) SWIG_fail; | |
24625 | } | |
24626 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24627 | return resultobj; | |
24628 | fail: | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
0085ce49 RD |
24633 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24634 | PyObject *obj; | |
24635 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24636 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
24637 | return SWIG_Py_Void(); | |
24638 | } | |
24639 | ||
24640 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24641 | return SWIG_Python_InitShadowInstance(args); | |
24642 | } | |
24643 | ||
24644 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24645 | PyObject *resultobj = 0; | |
24646 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b6df5cf9 | 24647 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
0085ce49 RD |
24648 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
24649 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24650 | wxBufferedPaintDC *result = 0 ; | |
24651 | void *argp1 = 0 ; | |
24652 | int res1 = 0 ; | |
24653 | void *argp2 = 0 ; | |
24654 | int res2 = 0 ; | |
24655 | int val3 ; | |
24656 | int ecode3 = 0 ; | |
24657 | PyObject * obj0 = 0 ; | |
24658 | PyObject * obj1 = 0 ; | |
24659 | PyObject * obj2 = 0 ; | |
24660 | char * kwnames[] = { | |
24661 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
24662 | }; | |
24663 | ||
24664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24666 | if (!SWIG_IsOK(res1)) { | |
24667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24668 | } | |
24669 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24670 | if (obj1) { | |
b6df5cf9 | 24671 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
0085ce49 | 24672 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 24673 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24674 | } |
0085ce49 | 24675 | if (!argp2) { |
b6df5cf9 | 24676 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24677 | } |
0085ce49 RD |
24678 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24679 | } | |
24680 | if (obj2) { | |
24681 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24682 | if (!SWIG_IsOK(ecode3)) { | |
24683 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
24684 | } | |
24685 | arg3 = static_cast< int >(val3); | |
24686 | } | |
24687 | { | |
24688 | if (!wxPyCheckForApp()) SWIG_fail; | |
24689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 24690 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3); |
0085ce49 RD |
24691 | wxPyEndAllowThreads(__tstate); |
24692 | if (PyErr_Occurred()) SWIG_fail; | |
24693 | } | |
24694 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
24695 | return resultobj; | |
24696 | fail: | |
24697 | return NULL; | |
24698 | } | |
24699 | ||
24700 | ||
24701 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24702 | PyObject *obj; | |
24703 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24704 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
24705 | return SWIG_Py_Void(); | |
24706 | } | |
24707 | ||
24708 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24709 | return SWIG_Python_InitShadowInstance(args); | |
24710 | } | |
24711 | ||
24f6c4e8 | 24712 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
24713 | PyObject *resultobj = 0; |
24714 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 24715 | wxAutoBufferedPaintDC *result = 0 ; |
0085ce49 RD |
24716 | void *argp1 = 0 ; |
24717 | int res1 = 0 ; | |
24718 | PyObject * obj0 = 0 ; | |
24719 | char * kwnames[] = { | |
24720 | (char *) "win", NULL | |
24721 | }; | |
24722 | ||
24f6c4e8 | 24723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
0085ce49 RD |
24724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
24725 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 24726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
0085ce49 RD |
24727 | } |
24728 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24729 | { | |
0085ce49 | 24730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 24731 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
0085ce49 RD |
24732 | wxPyEndAllowThreads(__tstate); |
24733 | if (PyErr_Occurred()) SWIG_fail; | |
24734 | } | |
24f6c4e8 | 24735 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
0085ce49 RD |
24736 | return resultobj; |
24737 | fail: | |
24738 | return NULL; | |
24739 | } | |
24740 | ||
24741 | ||
24f6c4e8 | 24742 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24743 | PyObject *obj; |
24744 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 24745 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
0085ce49 RD |
24746 | return SWIG_Py_Void(); |
24747 | } | |
24748 | ||
24f6c4e8 | 24749 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24750 | return SWIG_Python_InitShadowInstance(args); |
24751 | } | |
24752 | ||
8e99bda9 RD |
24753 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24754 | PyObject *resultobj = 0; | |
24755 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24756 | wxDC *result = 0 ; | |
24757 | void *argp1 = 0 ; | |
24758 | int res1 = 0 ; | |
24759 | PyObject * obj0 = 0 ; | |
24760 | char * kwnames[] = { | |
24761 | (char *) "window", NULL | |
24762 | }; | |
24763 | ||
24764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
24765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24766 | if (!SWIG_IsOK(res1)) { | |
24767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24768 | } | |
24769 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24770 | { | |
24771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24772 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
24773 | wxPyEndAllowThreads(__tstate); | |
24774 | if (PyErr_Occurred()) SWIG_fail; | |
24775 | } | |
24776 | { | |
24777 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
24778 | } | |
24779 | return resultobj; | |
24780 | fail: | |
24781 | return NULL; | |
24782 | } | |
24783 | ||
24784 | ||
0085ce49 RD |
24785 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24786 | PyObject *resultobj = 0; | |
24787 | wxDC *arg1 = 0 ; | |
24788 | bool arg2 ; | |
24789 | wxMirrorDC *result = 0 ; | |
24790 | void *argp1 = 0 ; | |
24791 | int res1 = 0 ; | |
24792 | bool val2 ; | |
24793 | int ecode2 = 0 ; | |
24794 | PyObject * obj0 = 0 ; | |
24795 | PyObject * obj1 = 0 ; | |
24796 | char * kwnames[] = { | |
24797 | (char *) "dc",(char *) "mirror", NULL | |
24798 | }; | |
24799 | ||
24800 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
24801 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24802 | if (!SWIG_IsOK(res1)) { | |
24803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24804 | } | |
24805 | if (!argp1) { | |
24806 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24807 | } | |
24808 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24809 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24810 | if (!SWIG_IsOK(ecode2)) { | |
24811 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
24812 | } | |
24813 | arg2 = static_cast< bool >(val2); | |
24814 | { | |
24815 | if (!wxPyCheckForApp()) SWIG_fail; | |
24816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24817 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
24818 | wxPyEndAllowThreads(__tstate); | |
24819 | if (PyErr_Occurred()) SWIG_fail; | |
24820 | } | |
24821 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
24822 | return resultobj; | |
24823 | fail: | |
24824 | return NULL; | |
24825 | } | |
24826 | ||
24827 | ||
24828 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24829 | PyObject *obj; | |
24830 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24831 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
24832 | return SWIG_Py_Void(); | |
24833 | } | |
24834 | ||
24835 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24836 | return SWIG_Python_InitShadowInstance(args); | |
24837 | } | |
24838 | ||
24839 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24840 | PyObject *resultobj = 0; | |
24841 | wxPrintData *arg1 = 0 ; | |
24842 | wxPostScriptDC *result = 0 ; | |
24843 | void *argp1 = 0 ; | |
24844 | int res1 = 0 ; | |
24845 | PyObject * obj0 = 0 ; | |
24846 | char * kwnames[] = { | |
24847 | (char *) "printData", NULL | |
24848 | }; | |
24849 | ||
24850 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
24851 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24852 | if (!SWIG_IsOK(res1)) { | |
24853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24854 | } | |
24855 | if (!argp1) { | |
24856 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24857 | } | |
24858 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24859 | { | |
24860 | if (!wxPyCheckForApp()) SWIG_fail; | |
24861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24862 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
24863 | wxPyEndAllowThreads(__tstate); | |
24864 | if (PyErr_Occurred()) SWIG_fail; | |
24865 | } | |
24866 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
24867 | return resultobj; | |
24868 | fail: | |
24869 | return NULL; | |
24870 | } | |
24871 | ||
24872 | ||
24873 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24874 | PyObject *resultobj = 0; | |
24875 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24876 | wxPrintData *result = 0 ; | |
24877 | void *argp1 = 0 ; | |
24878 | int res1 = 0 ; | |
24879 | PyObject *swig_obj[1] ; | |
24880 | ||
24881 | if (!args) SWIG_fail; | |
24882 | swig_obj[0] = args; | |
24883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24884 | if (!SWIG_IsOK(res1)) { | |
24885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24886 | } | |
24887 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24888 | { | |
24889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 24890 | { |
0085ce49 RD |
24891 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
24892 | result = (wxPrintData *) &_result_ref; | |
e2950dbb | 24893 | } |
0085ce49 RD |
24894 | wxPyEndAllowThreads(__tstate); |
24895 | if (PyErr_Occurred()) SWIG_fail; | |
24896 | } | |
24897 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24898 | return resultobj; | |
24899 | fail: | |
24900 | return NULL; | |
24901 | } | |
24902 | ||
24903 | ||
24904 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24905 | PyObject *resultobj = 0; | |
24906 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24907 | wxPrintData *arg2 = 0 ; | |
24908 | void *argp1 = 0 ; | |
24909 | int res1 = 0 ; | |
24910 | void *argp2 = 0 ; | |
24911 | int res2 = 0 ; | |
24912 | PyObject * obj0 = 0 ; | |
24913 | PyObject * obj1 = 0 ; | |
24914 | char * kwnames[] = { | |
24915 | (char *) "self",(char *) "data", NULL | |
24916 | }; | |
24917 | ||
24918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24920 | if (!SWIG_IsOK(res1)) { | |
24921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24922 | } | |
24923 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24924 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24925 | if (!SWIG_IsOK(res2)) { | |
24926 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24927 | } | |
24928 | if (!argp2) { | |
24929 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24930 | } | |
24931 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
24932 | { | |
24933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24934 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
24935 | wxPyEndAllowThreads(__tstate); | |
24936 | if (PyErr_Occurred()) SWIG_fail; | |
24937 | } | |
24938 | resultobj = SWIG_Py_Void(); | |
24939 | return resultobj; | |
24940 | fail: | |
24941 | return NULL; | |
24942 | } | |
24943 | ||
24944 | ||
24945 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24946 | PyObject *resultobj = 0; | |
24947 | int arg1 ; | |
24948 | int val1 ; | |
24949 | int ecode1 = 0 ; | |
24950 | PyObject * obj0 = 0 ; | |
24951 | char * kwnames[] = { | |
24952 | (char *) "ppi", NULL | |
24953 | }; | |
24954 | ||
24955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
24956 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24957 | if (!SWIG_IsOK(ecode1)) { | |
24958 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
24959 | } | |
24960 | arg1 = static_cast< int >(val1); | |
24961 | { | |
24962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24963 | wxPostScriptDC::SetResolution(arg1); | |
24964 | wxPyEndAllowThreads(__tstate); | |
24965 | if (PyErr_Occurred()) SWIG_fail; | |
24966 | } | |
24967 | resultobj = SWIG_Py_Void(); | |
24968 | return resultobj; | |
24969 | fail: | |
24970 | return NULL; | |
24971 | } | |
24972 | ||
24973 | ||
24974 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24975 | PyObject *resultobj = 0; | |
24976 | int result; | |
24977 | ||
24978 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
24979 | { | |
24980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24981 | result = (int)wxPostScriptDC::GetResolution(); | |
24982 | wxPyEndAllowThreads(__tstate); | |
24983 | if (PyErr_Occurred()) SWIG_fail; | |
24984 | } | |
24985 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24986 | return resultobj; | |
24987 | fail: | |
24988 | return NULL; | |
24989 | } | |
24990 | ||
24991 | ||
24992 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24993 | PyObject *obj; | |
24994 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24995 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
24996 | return SWIG_Py_Void(); | |
24997 | } | |
24998 | ||
24999 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25000 | return SWIG_Python_InitShadowInstance(args); | |
25001 | } | |
25002 | ||
25003 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25004 | PyObject *resultobj = 0; | |
25005 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25006 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25007 | wxMetaFile *result = 0 ; | |
25008 | bool temp1 = false ; | |
25009 | PyObject * obj0 = 0 ; | |
25010 | char * kwnames[] = { | |
25011 | (char *) "filename", NULL | |
25012 | }; | |
25013 | ||
25014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
25015 | if (obj0) { | |
093d3ff1 | 25016 | { |
0085ce49 RD |
25017 | arg1 = wxString_in_helper(obj0); |
25018 | if (arg1 == NULL) SWIG_fail; | |
25019 | temp1 = true; | |
093d3ff1 | 25020 | } |
0085ce49 RD |
25021 | } |
25022 | { | |
25023 | if (!wxPyCheckForApp()) SWIG_fail; | |
25024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25025 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
25026 | wxPyEndAllowThreads(__tstate); | |
25027 | if (PyErr_Occurred()) SWIG_fail; | |
25028 | } | |
25029 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
25030 | { | |
25031 | if (temp1) | |
25032 | delete arg1; | |
25033 | } | |
25034 | return resultobj; | |
25035 | fail: | |
25036 | { | |
25037 | if (temp1) | |
25038 | delete arg1; | |
25039 | } | |
25040 | return NULL; | |
25041 | } | |
25042 | ||
25043 | ||
25044 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25045 | PyObject *obj; | |
25046 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25047 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
25048 | return SWIG_Py_Void(); | |
25049 | } | |
25050 | ||
25051 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25052 | return SWIG_Python_InitShadowInstance(args); | |
25053 | } | |
25054 | ||
25055 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25056 | PyObject *resultobj = 0; | |
25057 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25058 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25059 | int arg2 = (int) 0 ; | |
25060 | int arg3 = (int) 0 ; | |
25061 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25062 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25063 | wxMetaFileDC *result = 0 ; | |
25064 | bool temp1 = false ; | |
25065 | int val2 ; | |
25066 | int ecode2 = 0 ; | |
25067 | int val3 ; | |
25068 | int ecode3 = 0 ; | |
25069 | bool temp4 = false ; | |
25070 | PyObject * obj0 = 0 ; | |
25071 | PyObject * obj1 = 0 ; | |
25072 | PyObject * obj2 = 0 ; | |
25073 | PyObject * obj3 = 0 ; | |
25074 | char * kwnames[] = { | |
25075 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
25076 | }; | |
25077 | ||
25078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
25079 | if (obj0) { | |
093d3ff1 | 25080 | { |
0085ce49 RD |
25081 | arg1 = wxString_in_helper(obj0); |
25082 | if (arg1 == NULL) SWIG_fail; | |
25083 | temp1 = true; | |
093d3ff1 | 25084 | } |
0085ce49 RD |
25085 | } |
25086 | if (obj1) { | |
25087 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25088 | if (!SWIG_IsOK(ecode2)) { | |
25089 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
25090 | } | |
25091 | arg2 = static_cast< int >(val2); | |
25092 | } | |
25093 | if (obj2) { | |
25094 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25095 | if (!SWIG_IsOK(ecode3)) { | |
25096 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
25097 | } | |
25098 | arg3 = static_cast< int >(val3); | |
25099 | } | |
25100 | if (obj3) { | |
093d3ff1 | 25101 | { |
0085ce49 RD |
25102 | arg4 = wxString_in_helper(obj3); |
25103 | if (arg4 == NULL) SWIG_fail; | |
25104 | temp4 = true; | |
093d3ff1 | 25105 | } |
0085ce49 RD |
25106 | } |
25107 | { | |
25108 | if (!wxPyCheckForApp()) SWIG_fail; | |
25109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25110 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
25111 | wxPyEndAllowThreads(__tstate); | |
25112 | if (PyErr_Occurred()) SWIG_fail; | |
25113 | } | |
25114 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
25115 | { | |
25116 | if (temp1) | |
25117 | delete arg1; | |
25118 | } | |
25119 | { | |
25120 | if (temp4) | |
25121 | delete arg4; | |
25122 | } | |
25123 | return resultobj; | |
25124 | fail: | |
25125 | { | |
25126 | if (temp1) | |
25127 | delete arg1; | |
25128 | } | |
25129 | { | |
25130 | if (temp4) | |
25131 | delete arg4; | |
25132 | } | |
25133 | return NULL; | |
25134 | } | |
25135 | ||
25136 | ||
25137 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25138 | PyObject *obj; | |
25139 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25140 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
25141 | return SWIG_Py_Void(); | |
25142 | } | |
25143 | ||
25144 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25145 | return SWIG_Python_InitShadowInstance(args); | |
25146 | } | |
25147 | ||
25148 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25149 | PyObject *resultobj = 0; | |
25150 | wxPrintData *arg1 = 0 ; | |
25151 | wxPrinterDC *result = 0 ; | |
25152 | void *argp1 = 0 ; | |
25153 | int res1 = 0 ; | |
25154 | PyObject * obj0 = 0 ; | |
25155 | char * kwnames[] = { | |
25156 | (char *) "printData", NULL | |
25157 | }; | |
25158 | ||
25159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
25160 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25161 | if (!SWIG_IsOK(res1)) { | |
25162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25163 | } | |
25164 | if (!argp1) { | |
25165 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25166 | } | |
25167 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25168 | { | |
25169 | if (!wxPyCheckForApp()) SWIG_fail; | |
25170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25171 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
25172 | wxPyEndAllowThreads(__tstate); | |
25173 | if (PyErr_Occurred()) SWIG_fail; | |
25174 | } | |
25175 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
25176 | return resultobj; | |
25177 | fail: | |
25178 | return NULL; | |
25179 | } | |
25180 | ||
25181 | ||
25182 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25183 | PyObject *obj; | |
25184 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25185 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
25186 | return SWIG_Py_Void(); | |
25187 | } | |
25188 | ||
25189 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25190 | return SWIG_Python_InitShadowInstance(args); | |
25191 | } | |
25192 | ||
70d7cb34 RD |
25193 | SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25194 | PyObject *resultobj = 0; | |
25195 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ; | |
25196 | wxGraphicsObject *result = 0 ; | |
25197 | void *argp1 = 0 ; | |
25198 | int res1 = 0 ; | |
25199 | PyObject * obj0 = 0 ; | |
25200 | char * kwnames[] = { | |
25201 | (char *) "renderer", NULL | |
25202 | }; | |
25203 | ||
25204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail; | |
25205 | if (obj0) { | |
25206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25207 | if (!SWIG_IsOK(res1)) { | |
25208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
25209 | } | |
25210 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
25211 | } | |
25212 | { | |
25213 | result = (wxGraphicsObject *)new wxGraphicsObject(arg1); | |
25214 | if (PyErr_Occurred()) SWIG_fail; | |
25215 | } | |
25216 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 ); | |
25217 | return resultobj; | |
25218 | fail: | |
25219 | return NULL; | |
25220 | } | |
25221 | ||
25222 | ||
25223 | SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25224 | PyObject *resultobj = 0; | |
25225 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25226 | void *argp1 = 0 ; | |
25227 | int res1 = 0 ; | |
25228 | PyObject *swig_obj[1] ; | |
25229 | ||
25230 | if (!args) SWIG_fail; | |
25231 | swig_obj[0] = args; | |
25232 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 ); | |
25233 | if (!SWIG_IsOK(res1)) { | |
25234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'"); | |
25235 | } | |
25236 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25237 | { | |
25238 | delete arg1; | |
25239 | ||
25240 | if (PyErr_Occurred()) SWIG_fail; | |
25241 | } | |
25242 | resultobj = SWIG_Py_Void(); | |
25243 | return resultobj; | |
25244 | fail: | |
25245 | return NULL; | |
25246 | } | |
25247 | ||
25248 | ||
25249 | SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25250 | PyObject *resultobj = 0; | |
25251 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25252 | bool result; | |
25253 | void *argp1 = 0 ; | |
25254 | int res1 = 0 ; | |
25255 | PyObject *swig_obj[1] ; | |
25256 | ||
25257 | if (!args) SWIG_fail; | |
25258 | swig_obj[0] = args; | |
25259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25260 | if (!SWIG_IsOK(res1)) { | |
25261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25262 | } | |
25263 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25264 | { | |
25265 | result = (bool)((wxGraphicsObject const *)arg1)->IsNull(); | |
25266 | if (PyErr_Occurred()) SWIG_fail; | |
25267 | } | |
25268 | { | |
25269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25270 | } | |
25271 | return resultobj; | |
25272 | fail: | |
25273 | return NULL; | |
25274 | } | |
25275 | ||
25276 | ||
25277 | SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25278 | PyObject *resultobj = 0; | |
25279 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25280 | wxGraphicsRenderer *result = 0 ; | |
25281 | void *argp1 = 0 ; | |
25282 | int res1 = 0 ; | |
25283 | PyObject *swig_obj[1] ; | |
25284 | ||
25285 | if (!args) SWIG_fail; | |
25286 | swig_obj[0] = args; | |
25287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25288 | if (!SWIG_IsOK(res1)) { | |
25289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25290 | } | |
25291 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25292 | { | |
25293 | result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer(); | |
25294 | if (PyErr_Occurred()) SWIG_fail; | |
25295 | } | |
25296 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25297 | return resultobj; | |
25298 | fail: | |
25299 | return NULL; | |
25300 | } | |
25301 | ||
25302 | ||
25303 | SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25304 | PyObject *obj; | |
25305 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25306 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj)); | |
25307 | return SWIG_Py_Void(); | |
25308 | } | |
25309 | ||
25310 | SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25311 | return SWIG_Python_InitShadowInstance(args); | |
25312 | } | |
25313 | ||
25314 | SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25315 | PyObject *resultobj = 0; | |
25316 | wxGraphicsPen *result = 0 ; | |
25317 | ||
25318 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail; | |
25319 | { | |
25320 | result = (wxGraphicsPen *)new wxGraphicsPen(); | |
25321 | if (PyErr_Occurred()) SWIG_fail; | |
25322 | } | |
25323 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 ); | |
25324 | return resultobj; | |
25325 | fail: | |
25326 | return NULL; | |
25327 | } | |
25328 | ||
25329 | ||
25330 | SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25331 | PyObject *resultobj = 0; | |
25332 | wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ; | |
25333 | void *argp1 = 0 ; | |
25334 | int res1 = 0 ; | |
25335 | PyObject *swig_obj[1] ; | |
25336 | ||
25337 | if (!args) SWIG_fail; | |
25338 | swig_obj[0] = args; | |
25339 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 ); | |
25340 | if (!SWIG_IsOK(res1)) { | |
25341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'"); | |
25342 | } | |
25343 | arg1 = reinterpret_cast< wxGraphicsPen * >(argp1); | |
25344 | { | |
25345 | delete arg1; | |
25346 | ||
25347 | if (PyErr_Occurred()) SWIG_fail; | |
25348 | } | |
25349 | resultobj = SWIG_Py_Void(); | |
25350 | return resultobj; | |
25351 | fail: | |
25352 | return NULL; | |
25353 | } | |
25354 | ||
25355 | ||
25356 | SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25357 | PyObject *obj; | |
25358 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25359 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj)); | |
25360 | return SWIG_Py_Void(); | |
25361 | } | |
25362 | ||
25363 | SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25364 | return SWIG_Python_InitShadowInstance(args); | |
25365 | } | |
25366 | ||
25367 | SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25368 | PyObject *resultobj = 0; | |
25369 | wxGraphicsBrush *result = 0 ; | |
25370 | ||
25371 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail; | |
25372 | { | |
25373 | result = (wxGraphicsBrush *)new wxGraphicsBrush(); | |
25374 | if (PyErr_Occurred()) SWIG_fail; | |
25375 | } | |
25376 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 ); | |
25377 | return resultobj; | |
25378 | fail: | |
25379 | return NULL; | |
25380 | } | |
25381 | ||
25382 | ||
25383 | SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25384 | PyObject *resultobj = 0; | |
25385 | wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ; | |
25386 | void *argp1 = 0 ; | |
25387 | int res1 = 0 ; | |
25388 | PyObject *swig_obj[1] ; | |
25389 | ||
25390 | if (!args) SWIG_fail; | |
25391 | swig_obj[0] = args; | |
25392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 ); | |
25393 | if (!SWIG_IsOK(res1)) { | |
25394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'"); | |
25395 | } | |
25396 | arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1); | |
25397 | { | |
25398 | delete arg1; | |
25399 | ||
25400 | if (PyErr_Occurred()) SWIG_fail; | |
25401 | } | |
25402 | resultobj = SWIG_Py_Void(); | |
25403 | return resultobj; | |
25404 | fail: | |
25405 | return NULL; | |
25406 | } | |
25407 | ||
25408 | ||
25409 | SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25410 | PyObject *obj; | |
25411 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25412 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj)); | |
25413 | return SWIG_Py_Void(); | |
25414 | } | |
25415 | ||
25416 | SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25417 | return SWIG_Python_InitShadowInstance(args); | |
25418 | } | |
25419 | ||
25420 | SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25421 | PyObject *resultobj = 0; | |
25422 | wxGraphicsFont *result = 0 ; | |
25423 | ||
25424 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail; | |
25425 | { | |
25426 | result = (wxGraphicsFont *)new wxGraphicsFont(); | |
25427 | if (PyErr_Occurred()) SWIG_fail; | |
25428 | } | |
25429 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 ); | |
25430 | return resultobj; | |
25431 | fail: | |
25432 | return NULL; | |
25433 | } | |
25434 | ||
25435 | ||
25436 | SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25437 | PyObject *resultobj = 0; | |
25438 | wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ; | |
25439 | void *argp1 = 0 ; | |
25440 | int res1 = 0 ; | |
25441 | PyObject *swig_obj[1] ; | |
25442 | ||
25443 | if (!args) SWIG_fail; | |
25444 | swig_obj[0] = args; | |
25445 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 ); | |
25446 | if (!SWIG_IsOK(res1)) { | |
25447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'"); | |
25448 | } | |
25449 | arg1 = reinterpret_cast< wxGraphicsFont * >(argp1); | |
25450 | { | |
25451 | delete arg1; | |
25452 | ||
25453 | if (PyErr_Occurred()) SWIG_fail; | |
25454 | } | |
25455 | resultobj = SWIG_Py_Void(); | |
25456 | return resultobj; | |
25457 | fail: | |
25458 | return NULL; | |
25459 | } | |
25460 | ||
25461 | ||
25462 | SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25463 | PyObject *obj; | |
25464 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25465 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj)); | |
25466 | return SWIG_Py_Void(); | |
25467 | } | |
25468 | ||
25469 | SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25470 | return SWIG_Python_InitShadowInstance(args); | |
25471 | } | |
25472 | ||
8f514ab4 RD |
25473 | SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25474 | PyObject *resultobj = 0; | |
25475 | wxGraphicsMatrix *result = 0 ; | |
25476 | ||
25477 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail; | |
25478 | { | |
25479 | result = (wxGraphicsMatrix *)new wxGraphicsMatrix(); | |
25480 | if (PyErr_Occurred()) SWIG_fail; | |
25481 | } | |
25482 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 ); | |
25483 | return resultobj; | |
25484 | fail: | |
25485 | return NULL; | |
25486 | } | |
25487 | ||
25488 | ||
5c8c7dd3 | 25489 | SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25490 | PyObject *resultobj = 0; |
5c8c7dd3 | 25491 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25492 | void *argp1 = 0 ; |
25493 | int res1 = 0 ; | |
25494 | PyObject *swig_obj[1] ; | |
25495 | ||
25496 | if (!args) SWIG_fail; | |
25497 | swig_obj[0] = args; | |
5c8c7dd3 | 25498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 25499 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25501 | } |
5c8c7dd3 | 25502 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25503 | { |
0085ce49 RD |
25504 | delete arg1; |
25505 | ||
0085ce49 RD |
25506 | if (PyErr_Occurred()) SWIG_fail; |
25507 | } | |
25508 | resultobj = SWIG_Py_Void(); | |
25509 | return resultobj; | |
25510 | fail: | |
25511 | return NULL; | |
25512 | } | |
25513 | ||
25514 | ||
5c8c7dd3 | 25515 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25516 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25517 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25518 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
25519 | void *argp1 = 0 ; |
25520 | int res1 = 0 ; | |
5c8c7dd3 RD |
25521 | void *argp2 = 0 ; |
25522 | int res2 = 0 ; | |
25523 | PyObject * obj0 = 0 ; | |
25524 | PyObject * obj1 = 0 ; | |
25525 | char * kwnames[] = { | |
25526 | (char *) "self",(char *) "t", NULL | |
25527 | }; | |
70d7cb34 | 25528 | |
5c8c7dd3 RD |
25529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail; |
25530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25531 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25533 | } |
5c8c7dd3 RD |
25534 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25535 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25536 | if (!SWIG_IsOK(res2)) { | |
25537 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25538 | } | |
25539 | if (!argp2) { | |
25540 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25541 | } | |
25542 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 25543 | { |
5c8c7dd3 | 25544 | (arg1)->Concat((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25545 | if (PyErr_Occurred()) SWIG_fail; |
25546 | } | |
5c8c7dd3 | 25547 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
25548 | return resultobj; |
25549 | fail: | |
25550 | return NULL; | |
25551 | } | |
25552 | ||
25553 | ||
5c8c7dd3 | 25554 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25555 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25556 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25557 | wxDouble arg2 = (wxDouble) 1.0 ; | |
25558 | wxDouble arg3 = (wxDouble) 0.0 ; | |
25559 | wxDouble arg4 = (wxDouble) 0.0 ; | |
25560 | wxDouble arg5 = (wxDouble) 1.0 ; | |
25561 | wxDouble arg6 = (wxDouble) 0.0 ; | |
25562 | wxDouble arg7 = (wxDouble) 0.0 ; | |
70d7cb34 RD |
25563 | void *argp1 = 0 ; |
25564 | int res1 = 0 ; | |
5c8c7dd3 RD |
25565 | double val2 ; |
25566 | int ecode2 = 0 ; | |
25567 | double val3 ; | |
25568 | int ecode3 = 0 ; | |
25569 | double val4 ; | |
25570 | int ecode4 = 0 ; | |
25571 | double val5 ; | |
25572 | int ecode5 = 0 ; | |
25573 | double val6 ; | |
25574 | int ecode6 = 0 ; | |
25575 | double val7 ; | |
25576 | int ecode7 = 0 ; | |
25577 | PyObject * obj0 = 0 ; | |
25578 | PyObject * obj1 = 0 ; | |
25579 | PyObject * obj2 = 0 ; | |
25580 | PyObject * obj3 = 0 ; | |
25581 | PyObject * obj4 = 0 ; | |
25582 | PyObject * obj5 = 0 ; | |
25583 | PyObject * obj6 = 0 ; | |
25584 | char * kwnames[] = { | |
25585 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
25586 | }; | |
70d7cb34 | 25587 | |
5c8c7dd3 RD |
25588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
25589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25590 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25592 | } |
5c8c7dd3 RD |
25593 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25594 | if (obj1) { | |
25595 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25596 | if (!SWIG_IsOK(ecode2)) { | |
25597 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25598 | } | |
25599 | arg2 = static_cast< wxDouble >(val2); | |
25600 | } | |
25601 | if (obj2) { | |
25602 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25603 | if (!SWIG_IsOK(ecode3)) { | |
25604 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25605 | } | |
25606 | arg3 = static_cast< wxDouble >(val3); | |
25607 | } | |
25608 | if (obj3) { | |
25609 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25610 | if (!SWIG_IsOK(ecode4)) { | |
25611 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25612 | } | |
25613 | arg4 = static_cast< wxDouble >(val4); | |
25614 | } | |
25615 | if (obj4) { | |
25616 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25617 | if (!SWIG_IsOK(ecode5)) { | |
25618 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25619 | } | |
25620 | arg5 = static_cast< wxDouble >(val5); | |
25621 | } | |
25622 | if (obj5) { | |
25623 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
25624 | if (!SWIG_IsOK(ecode6)) { | |
25625 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'"); | |
25626 | } | |
25627 | arg6 = static_cast< wxDouble >(val6); | |
25628 | } | |
25629 | if (obj6) { | |
25630 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
25631 | if (!SWIG_IsOK(ecode7)) { | |
25632 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'"); | |
25633 | } | |
25634 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 RD |
25635 | } |
25636 | { | |
5c8c7dd3 | 25637 | (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
25638 | if (PyErr_Occurred()) SWIG_fail; |
25639 | } | |
25640 | resultobj = SWIG_Py_Void(); | |
25641 | return resultobj; | |
25642 | fail: | |
25643 | return NULL; | |
25644 | } | |
25645 | ||
25646 | ||
248802d0 RD |
25647 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25648 | PyObject *resultobj = 0; | |
25649 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25650 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25651 | wxDouble *arg3 = (wxDouble *) 0 ; | |
25652 | wxDouble *arg4 = (wxDouble *) 0 ; | |
25653 | wxDouble *arg5 = (wxDouble *) 0 ; | |
25654 | wxDouble *arg6 = (wxDouble *) 0 ; | |
25655 | wxDouble *arg7 = (wxDouble *) 0 ; | |
25656 | void *argp1 = 0 ; | |
25657 | int res1 = 0 ; | |
25658 | wxDouble temp2 ; | |
25659 | int res2 = SWIG_TMPOBJ ; | |
25660 | wxDouble temp3 ; | |
25661 | int res3 = SWIG_TMPOBJ ; | |
25662 | wxDouble temp4 ; | |
25663 | int res4 = SWIG_TMPOBJ ; | |
25664 | wxDouble temp5 ; | |
25665 | int res5 = SWIG_TMPOBJ ; | |
25666 | wxDouble temp6 ; | |
25667 | int res6 = SWIG_TMPOBJ ; | |
25668 | wxDouble temp7 ; | |
25669 | int res7 = SWIG_TMPOBJ ; | |
25670 | PyObject *swig_obj[1] ; | |
25671 | ||
25672 | arg2 = &temp2; | |
25673 | arg3 = &temp3; | |
25674 | arg4 = &temp4; | |
25675 | arg5 = &temp5; | |
25676 | arg6 = &temp6; | |
25677 | arg7 = &temp7; | |
25678 | if (!args) SWIG_fail; | |
25679 | swig_obj[0] = args; | |
25680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25681 | if (!SWIG_IsOK(res1)) { | |
25682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); | |
25683 | } | |
25684 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25685 | { | |
25686 | (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7); | |
25687 | if (PyErr_Occurred()) SWIG_fail; | |
25688 | } | |
25689 | resultobj = SWIG_Py_Void(); | |
25690 | if (SWIG_IsTmpObj(res2)) { | |
25691 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
25692 | } else { | |
25693 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25694 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
25695 | } | |
25696 | if (SWIG_IsTmpObj(res3)) { | |
25697 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
25698 | } else { | |
25699 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25700 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
25701 | } | |
25702 | if (SWIG_IsTmpObj(res4)) { | |
25703 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
25704 | } else { | |
25705 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25706 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
25707 | } | |
25708 | if (SWIG_IsTmpObj(res5)) { | |
25709 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
25710 | } else { | |
25711 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25712 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
25713 | } | |
25714 | if (SWIG_IsTmpObj(res6)) { | |
25715 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
25716 | } else { | |
25717 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25718 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
25719 | } | |
25720 | if (SWIG_IsTmpObj(res7)) { | |
25721 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7))); | |
25722 | } else { | |
25723 | int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25724 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags)); | |
25725 | } | |
25726 | return resultobj; | |
25727 | fail: | |
25728 | return NULL; | |
25729 | } | |
25730 | ||
25731 | ||
5c8c7dd3 | 25732 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25733 | PyObject *resultobj = 0; |
5c8c7dd3 | 25734 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25735 | void *argp1 = 0 ; |
25736 | int res1 = 0 ; | |
5c8c7dd3 | 25737 | PyObject *swig_obj[1] ; |
0085ce49 | 25738 | |
5c8c7dd3 RD |
25739 | if (!args) SWIG_fail; |
25740 | swig_obj[0] = args; | |
25741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
0085ce49 | 25742 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25744 | } |
5c8c7dd3 | 25745 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25746 | { |
5c8c7dd3 | 25747 | (arg1)->Invert(); |
0085ce49 RD |
25748 | if (PyErr_Occurred()) SWIG_fail; |
25749 | } | |
72ef6efb | 25750 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
25751 | return resultobj; |
25752 | fail: | |
25753 | return NULL; | |
25754 | } | |
25755 | ||
25756 | ||
5c8c7dd3 | 25757 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25758 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25759 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25760 | wxGraphicsMatrix *arg2 = 0 ; | |
25761 | bool result; | |
70d7cb34 RD |
25762 | void *argp1 = 0 ; |
25763 | int res1 = 0 ; | |
5c8c7dd3 RD |
25764 | void *argp2 = 0 ; |
25765 | int res2 = 0 ; | |
25766 | PyObject * obj0 = 0 ; | |
25767 | PyObject * obj1 = 0 ; | |
25768 | char * kwnames[] = { | |
25769 | (char *) "self",(char *) "t", NULL | |
25770 | }; | |
70d7cb34 | 25771 | |
5c8c7dd3 RD |
25772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; |
25773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25774 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 25776 | } |
5c8c7dd3 RD |
25777 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25778 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25779 | if (!SWIG_IsOK(res2)) { | |
25780 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25781 | } | |
25782 | if (!argp2) { | |
25783 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
70d7cb34 | 25784 | } |
5c8c7dd3 | 25785 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); |
70d7cb34 | 25786 | { |
5c8c7dd3 | 25787 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25788 | if (PyErr_Occurred()) SWIG_fail; |
25789 | } | |
5c8c7dd3 RD |
25790 | { |
25791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25792 | } | |
70d7cb34 RD |
25793 | return resultobj; |
25794 | fail: | |
25795 | return NULL; | |
25796 | } | |
25797 | ||
25798 | ||
5c8c7dd3 RD |
25799 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25800 | PyObject *resultobj = 0; | |
25801 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25802 | bool result; | |
25803 | void *argp1 = 0 ; | |
25804 | int res1 = 0 ; | |
25805 | PyObject *swig_obj[1] ; | |
70d7cb34 | 25806 | |
5c8c7dd3 RD |
25807 | if (!args) SWIG_fail; |
25808 | swig_obj[0] = args; | |
25809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25810 | if (!SWIG_IsOK(res1)) { | |
25811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
70d7cb34 | 25812 | } |
5c8c7dd3 RD |
25813 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25814 | { | |
25815 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity(); | |
25816 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 25817 | } |
5c8c7dd3 RD |
25818 | { |
25819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25820 | } | |
25821 | return resultobj; | |
70d7cb34 | 25822 | fail: |
70d7cb34 RD |
25823 | return NULL; |
25824 | } | |
25825 | ||
25826 | ||
5c8c7dd3 | 25827 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 25828 | PyObject *resultobj = 0; |
5c8c7dd3 | 25829 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
72ef6efb RD |
25830 | wxDouble arg2 ; |
25831 | wxDouble arg3 ; | |
0085ce49 RD |
25832 | void *argp1 = 0 ; |
25833 | int res1 = 0 ; | |
72ef6efb RD |
25834 | double val2 ; |
25835 | int ecode2 = 0 ; | |
25836 | double val3 ; | |
25837 | int ecode3 = 0 ; | |
5c8c7dd3 RD |
25838 | PyObject * obj0 = 0 ; |
25839 | PyObject * obj1 = 0 ; | |
25840 | PyObject * obj2 = 0 ; | |
25841 | char * kwnames[] = { | |
25842 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
25843 | }; | |
72ef6efb | 25844 | |
5c8c7dd3 RD |
25845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25847 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
72ef6efb | 25849 | } |
5c8c7dd3 RD |
25850 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25851 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
72ef6efb | 25852 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 25853 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
25854 | } |
25855 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 25856 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 25857 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 25858 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
25859 | } |
25860 | arg3 = static_cast< wxDouble >(val3); | |
72ef6efb | 25861 | { |
5c8c7dd3 | 25862 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
25863 | if (PyErr_Occurred()) SWIG_fail; |
25864 | } | |
25865 | resultobj = SWIG_Py_Void(); | |
25866 | return resultobj; | |
25867 | fail: | |
25868 | return NULL; | |
25869 | } | |
25870 | ||
25871 | ||
5c8c7dd3 | 25872 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25873 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25874 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25875 | wxDouble arg2 ; | |
25876 | wxDouble arg3 ; | |
70d7cb34 RD |
25877 | void *argp1 = 0 ; |
25878 | int res1 = 0 ; | |
5c8c7dd3 RD |
25879 | double val2 ; |
25880 | int ecode2 = 0 ; | |
25881 | double val3 ; | |
25882 | int ecode3 = 0 ; | |
25883 | PyObject * obj0 = 0 ; | |
25884 | PyObject * obj1 = 0 ; | |
25885 | PyObject * obj2 = 0 ; | |
25886 | char * kwnames[] = { | |
25887 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
25888 | }; | |
70d7cb34 | 25889 | |
5c8c7dd3 RD |
25890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25891 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25892 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25894 | } |
5c8c7dd3 RD |
25895 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25896 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25897 | if (!SWIG_IsOK(ecode2)) { | |
25898 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25899 | } | |
25900 | arg2 = static_cast< wxDouble >(val2); | |
25901 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25902 | if (!SWIG_IsOK(ecode3)) { | |
25903 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25904 | } | |
25905 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 25906 | { |
5c8c7dd3 | 25907 | (arg1)->Scale(arg2,arg3); |
70d7cb34 RD |
25908 | if (PyErr_Occurred()) SWIG_fail; |
25909 | } | |
25910 | resultobj = SWIG_Py_Void(); | |
25911 | return resultobj; | |
25912 | fail: | |
25913 | return NULL; | |
25914 | } | |
25915 | ||
25916 | ||
5c8c7dd3 | 25917 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25918 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25919 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25920 | wxDouble arg2 ; | |
70d7cb34 RD |
25921 | void *argp1 = 0 ; |
25922 | int res1 = 0 ; | |
5c8c7dd3 RD |
25923 | double val2 ; |
25924 | int ecode2 = 0 ; | |
70d7cb34 RD |
25925 | PyObject * obj0 = 0 ; |
25926 | PyObject * obj1 = 0 ; | |
25927 | char * kwnames[] = { | |
5c8c7dd3 | 25928 | (char *) "self",(char *) "angle", NULL |
70d7cb34 RD |
25929 | }; |
25930 | ||
5c8c7dd3 RD |
25931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; |
25932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25933 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25935 | } |
5c8c7dd3 RD |
25936 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25937 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25938 | if (!SWIG_IsOK(ecode2)) { | |
25939 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25940 | } | |
25941 | arg2 = static_cast< wxDouble >(val2); | |
70d7cb34 | 25942 | { |
5c8c7dd3 | 25943 | (arg1)->Rotate(arg2); |
70d7cb34 RD |
25944 | if (PyErr_Occurred()) SWIG_fail; |
25945 | } | |
25946 | resultobj = SWIG_Py_Void(); | |
25947 | return resultobj; | |
25948 | fail: | |
25949 | return NULL; | |
25950 | } | |
25951 | ||
25952 | ||
5c8c7dd3 | 25953 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 25954 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25955 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25956 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25957 | wxDouble *arg3 = (wxDouble *) 0 ; | |
72ef6efb RD |
25958 | void *argp1 = 0 ; |
25959 | int res1 = 0 ; | |
5c8c7dd3 RD |
25960 | wxDouble temp2 ; |
25961 | int res2 = 0 ; | |
25962 | wxDouble temp3 ; | |
25963 | int res3 = 0 ; | |
25964 | PyObject * obj0 = 0 ; | |
25965 | PyObject * obj1 = 0 ; | |
25966 | PyObject * obj2 = 0 ; | |
25967 | char * kwnames[] = { | |
25968 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
25969 | }; | |
72ef6efb | 25970 | |
5c8c7dd3 RD |
25971 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25972 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25973 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
25974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
25975 | } | |
25976 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25977 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
25978 | double val; | |
25979 | int ecode = SWIG_AsVal_double(obj1, &val); | |
25980 | if (!SWIG_IsOK(ecode)) { | |
25981 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25982 | } | |
25983 | temp2 = static_cast< wxDouble >(val); | |
25984 | arg2 = &temp2; | |
25985 | res2 = SWIG_AddTmpMask(ecode); | |
25986 | } | |
25987 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
25988 | double val; | |
25989 | int ecode = SWIG_AsVal_double(obj2, &val); | |
25990 | if (!SWIG_IsOK(ecode)) { | |
25991 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25992 | } | |
25993 | temp3 = static_cast< wxDouble >(val); | |
25994 | arg3 = &temp3; | |
25995 | res3 = SWIG_AddTmpMask(ecode); | |
25996 | } | |
25997 | { | |
25998 | ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3); | |
25999 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb RD |
26000 | } |
26001 | resultobj = SWIG_Py_Void(); | |
5c8c7dd3 RD |
26002 | if (SWIG_IsTmpObj(res2)) { |
26003 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26004 | } else { | |
26005 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26006 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26007 | } | |
26008 | if (SWIG_IsTmpObj(res3)) { | |
26009 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26010 | } else { | |
26011 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26012 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26013 | } | |
72ef6efb RD |
26014 | return resultobj; |
26015 | fail: | |
26016 | return NULL; | |
26017 | } | |
26018 | ||
26019 | ||
5c8c7dd3 RD |
26020 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26021 | PyObject *resultobj = 0; | |
26022 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26023 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26024 | wxDouble *arg3 = (wxDouble *) 0 ; | |
26025 | void *argp1 = 0 ; | |
26026 | int res1 = 0 ; | |
26027 | wxDouble temp2 ; | |
26028 | int res2 = 0 ; | |
26029 | wxDouble temp3 ; | |
26030 | int res3 = 0 ; | |
26031 | PyObject * obj0 = 0 ; | |
26032 | PyObject * obj1 = 0 ; | |
26033 | PyObject * obj2 = 0 ; | |
26034 | char * kwnames[] = { | |
26035 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26036 | }; | |
26037 | ||
26038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26040 | if (!SWIG_IsOK(res1)) { | |
26041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
26042 | } | |
26043 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26044 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26045 | double val; | |
26046 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26047 | if (!SWIG_IsOK(ecode)) { | |
26048 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26049 | } | |
26050 | temp2 = static_cast< wxDouble >(val); | |
26051 | arg2 = &temp2; | |
26052 | res2 = SWIG_AddTmpMask(ecode); | |
26053 | } | |
26054 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
26055 | double val; | |
26056 | int ecode = SWIG_AsVal_double(obj2, &val); | |
26057 | if (!SWIG_IsOK(ecode)) { | |
26058 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26059 | } | |
26060 | temp3 = static_cast< wxDouble >(val); | |
26061 | arg3 = &temp3; | |
26062 | res3 = SWIG_AddTmpMask(ecode); | |
26063 | } | |
26064 | { | |
26065 | ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3); | |
26066 | if (PyErr_Occurred()) SWIG_fail; | |
26067 | } | |
26068 | resultobj = SWIG_Py_Void(); | |
26069 | if (SWIG_IsTmpObj(res2)) { | |
26070 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26071 | } else { | |
26072 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26073 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26074 | } | |
26075 | if (SWIG_IsTmpObj(res3)) { | |
26076 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26077 | } else { | |
26078 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26079 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26080 | } | |
26081 | return resultobj; | |
26082 | fail: | |
26083 | return NULL; | |
26084 | } | |
26085 | ||
26086 | ||
26087 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26088 | PyObject *resultobj = 0; | |
26089 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26090 | void *result = 0 ; | |
26091 | void *argp1 = 0 ; | |
26092 | int res1 = 0 ; | |
26093 | PyObject *swig_obj[1] ; | |
26094 | ||
26095 | if (!args) SWIG_fail; | |
26096 | swig_obj[0] = args; | |
26097 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26098 | if (!SWIG_IsOK(res1)) { | |
26099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
26100 | } | |
26101 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26102 | { | |
26103 | result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix(); | |
26104 | if (PyErr_Occurred()) SWIG_fail; | |
26105 | } | |
26106 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
26107 | return resultobj; | |
26108 | fail: | |
26109 | return NULL; | |
26110 | } | |
26111 | ||
26112 | ||
26113 | SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26114 | PyObject *obj; | |
26115 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26116 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj)); | |
26117 | return SWIG_Py_Void(); | |
26118 | } | |
26119 | ||
8f514ab4 RD |
26120 | SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26121 | return SWIG_Python_InitShadowInstance(args); | |
26122 | } | |
26123 | ||
26124 | SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26125 | PyObject *resultobj = 0; | |
26126 | wxGraphicsPath *result = 0 ; | |
26127 | ||
26128 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail; | |
26129 | { | |
26130 | if (!wxPyCheckForApp()) SWIG_fail; | |
26131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26132 | result = (wxGraphicsPath *)new wxGraphicsPath(); | |
26133 | wxPyEndAllowThreads(__tstate); | |
26134 | if (PyErr_Occurred()) SWIG_fail; | |
26135 | } | |
26136 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 ); | |
26137 | return resultobj; | |
26138 | fail: | |
26139 | return NULL; | |
26140 | } | |
26141 | ||
26142 | ||
5c8c7dd3 | 26143 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
26144 | PyObject *resultobj = 0; |
26145 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
72ef6efb RD |
26146 | void *argp1 = 0 ; |
26147 | int res1 = 0 ; | |
26148 | PyObject *swig_obj[1] ; | |
26149 | ||
26150 | if (!args) SWIG_fail; | |
26151 | swig_obj[0] = args; | |
5c8c7dd3 | 26152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
72ef6efb | 26153 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
72ef6efb RD |
26155 | } |
26156 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26157 | { | |
5c8c7dd3 RD |
26158 | delete arg1; |
26159 | ||
72ef6efb RD |
26160 | if (PyErr_Occurred()) SWIG_fail; |
26161 | } | |
5c8c7dd3 | 26162 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26163 | return resultobj; |
26164 | fail: | |
26165 | return NULL; | |
26166 | } | |
26167 | ||
26168 | ||
5c8c7dd3 | 26169 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26170 | PyObject *resultobj = 0; |
26171 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26172 | wxDouble arg2 ; | |
26173 | wxDouble arg3 ; | |
70d7cb34 RD |
26174 | void *argp1 = 0 ; |
26175 | int res1 = 0 ; | |
26176 | double val2 ; | |
26177 | int ecode2 = 0 ; | |
26178 | double val3 ; | |
26179 | int ecode3 = 0 ; | |
70d7cb34 | 26180 | |
5c8c7dd3 | 26181 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
70d7cb34 RD |
26182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26183 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26185 | } |
26186 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26187 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26188 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26189 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26190 | } |
26191 | arg2 = static_cast< wxDouble >(val2); | |
26192 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26193 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26194 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26195 | } |
26196 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26197 | { |
5c8c7dd3 | 26198 | (arg1)->MoveToPoint(arg2,arg3); |
70d7cb34 RD |
26199 | if (PyErr_Occurred()) SWIG_fail; |
26200 | } | |
26201 | resultobj = SWIG_Py_Void(); | |
26202 | return resultobj; | |
26203 | fail: | |
26204 | return NULL; | |
26205 | } | |
26206 | ||
26207 | ||
5c8c7dd3 | 26208 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26209 | PyObject *resultobj = 0; |
26210 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26211 | wxPoint2D *arg2 = 0 ; | |
70d7cb34 RD |
26212 | void *argp1 = 0 ; |
26213 | int res1 = 0 ; | |
26214 | wxPoint2D temp2 ; | |
70d7cb34 | 26215 | |
5c8c7dd3 | 26216 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
70d7cb34 RD |
26217 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26218 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26220 | } |
26221 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26222 | { | |
26223 | arg2 = &temp2; | |
26224 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26225 | } | |
70d7cb34 | 26226 | { |
5c8c7dd3 | 26227 | (arg1)->MoveToPoint((wxPoint2D const &)*arg2); |
70d7cb34 RD |
26228 | if (PyErr_Occurred()) SWIG_fail; |
26229 | } | |
26230 | resultobj = SWIG_Py_Void(); | |
26231 | return resultobj; | |
26232 | fail: | |
26233 | return NULL; | |
26234 | } | |
26235 | ||
26236 | ||
5c8c7dd3 | 26237 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) { |
70d7cb34 | 26238 | int argc; |
5c8c7dd3 | 26239 | PyObject *argv[4]; |
70d7cb34 | 26240 | |
5c8c7dd3 | 26241 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail; |
70d7cb34 | 26242 | --argc; |
5c8c7dd3 RD |
26243 | if (argc == 2) { |
26244 | return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26245 | } |
5c8c7dd3 RD |
26246 | if (argc == 3) { |
26247 | return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
26248 | } |
26249 | ||
26250 | fail: | |
5c8c7dd3 | 26251 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'"); |
70d7cb34 RD |
26252 | return NULL; |
26253 | } | |
26254 | ||
26255 | ||
5c8c7dd3 | 26256 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26257 | PyObject *resultobj = 0; |
26258 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26259 | wxDouble arg2 ; | |
26260 | wxDouble arg3 ; | |
70d7cb34 RD |
26261 | void *argp1 = 0 ; |
26262 | int res1 = 0 ; | |
26263 | double val2 ; | |
26264 | int ecode2 = 0 ; | |
26265 | double val3 ; | |
26266 | int ecode3 = 0 ; | |
70d7cb34 | 26267 | |
5c8c7dd3 RD |
26268 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
26269 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26270 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26272 | } |
26273 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26274 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26275 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26276 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26277 | } |
26278 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26279 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26280 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26281 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26282 | } |
26283 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26284 | { |
5c8c7dd3 | 26285 | (arg1)->AddLineToPoint(arg2,arg3); |
70d7cb34 RD |
26286 | if (PyErr_Occurred()) SWIG_fail; |
26287 | } | |
26288 | resultobj = SWIG_Py_Void(); | |
26289 | return resultobj; | |
26290 | fail: | |
26291 | return NULL; | |
26292 | } | |
26293 | ||
26294 | ||
5c8c7dd3 | 26295 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26296 | PyObject *resultobj = 0; |
26297 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26298 | wxPoint2D *arg2 = 0 ; |
70d7cb34 RD |
26299 | void *argp1 = 0 ; |
26300 | int res1 = 0 ; | |
5c8c7dd3 | 26301 | wxPoint2D temp2 ; |
70d7cb34 | 26302 | |
5c8c7dd3 RD |
26303 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
26304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26305 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26307 | } |
26308 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26309 | { |
5c8c7dd3 RD |
26310 | arg2 = &temp2; |
26311 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26312 | } | |
26313 | { | |
26314 | (arg1)->AddLineToPoint((wxPoint2D const &)*arg2); | |
70d7cb34 RD |
26315 | if (PyErr_Occurred()) SWIG_fail; |
26316 | } | |
26317 | resultobj = SWIG_Py_Void(); | |
26318 | return resultobj; | |
26319 | fail: | |
26320 | return NULL; | |
26321 | } | |
26322 | ||
26323 | ||
5c8c7dd3 RD |
26324 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) { |
26325 | int argc; | |
26326 | PyObject *argv[4]; | |
70d7cb34 | 26327 | |
5c8c7dd3 RD |
26328 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail; |
26329 | --argc; | |
26330 | if (argc == 2) { | |
26331 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26332 | } |
5c8c7dd3 RD |
26333 | if (argc == 3) { |
26334 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26335 | } |
5c8c7dd3 | 26336 | |
70d7cb34 | 26337 | fail: |
5c8c7dd3 | 26338 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'"); |
70d7cb34 RD |
26339 | return NULL; |
26340 | } | |
26341 | ||
26342 | ||
5c8c7dd3 | 26343 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26344 | PyObject *resultobj = 0; |
26345 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26346 | wxDouble arg2 ; | |
26347 | wxDouble arg3 ; | |
26348 | wxDouble arg4 ; | |
26349 | wxDouble arg5 ; | |
26350 | wxDouble arg6 ; | |
5c8c7dd3 | 26351 | wxDouble arg7 ; |
70d7cb34 RD |
26352 | void *argp1 = 0 ; |
26353 | int res1 = 0 ; | |
26354 | double val2 ; | |
26355 | int ecode2 = 0 ; | |
26356 | double val3 ; | |
26357 | int ecode3 = 0 ; | |
26358 | double val4 ; | |
26359 | int ecode4 = 0 ; | |
26360 | double val5 ; | |
26361 | int ecode5 = 0 ; | |
26362 | double val6 ; | |
26363 | int ecode6 = 0 ; | |
5c8c7dd3 RD |
26364 | double val7 ; |
26365 | int ecode7 = 0 ; | |
70d7cb34 | 26366 | |
5c8c7dd3 RD |
26367 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
26368 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26369 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26371 | } |
26372 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26373 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26374 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26375 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26376 | } |
26377 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26378 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26379 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26380 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26381 | } |
26382 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 | 26383 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
70d7cb34 | 26384 | if (!SWIG_IsOK(ecode4)) { |
5c8c7dd3 | 26385 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26386 | } |
26387 | arg4 = static_cast< wxDouble >(val4); | |
5c8c7dd3 | 26388 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); |
70d7cb34 | 26389 | if (!SWIG_IsOK(ecode5)) { |
5c8c7dd3 | 26390 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26391 | } |
26392 | arg5 = static_cast< wxDouble >(val5); | |
5c8c7dd3 | 26393 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); |
70d7cb34 | 26394 | if (!SWIG_IsOK(ecode6)) { |
5c8c7dd3 | 26395 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26396 | } |
26397 | arg6 = static_cast< wxDouble >(val6); | |
5c8c7dd3 RD |
26398 | ecode7 = SWIG_AsVal_double(swig_obj[6], &val7); |
26399 | if (!SWIG_IsOK(ecode7)) { | |
26400 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
26401 | } | |
26402 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 | 26403 | { |
5c8c7dd3 | 26404 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26405 | if (PyErr_Occurred()) SWIG_fail; |
26406 | } | |
26407 | resultobj = SWIG_Py_Void(); | |
26408 | return resultobj; | |
26409 | fail: | |
26410 | return NULL; | |
26411 | } | |
26412 | ||
26413 | ||
5c8c7dd3 | 26414 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26415 | PyObject *resultobj = 0; |
26416 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26417 | wxPoint2D *arg2 = 0 ; |
26418 | wxPoint2D *arg3 = 0 ; | |
26419 | wxPoint2D *arg4 = 0 ; | |
70d7cb34 RD |
26420 | void *argp1 = 0 ; |
26421 | int res1 = 0 ; | |
5c8c7dd3 RD |
26422 | wxPoint2D temp2 ; |
26423 | wxPoint2D temp3 ; | |
26424 | wxPoint2D temp4 ; | |
70d7cb34 | 26425 | |
5c8c7dd3 RD |
26426 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; |
26427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26428 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26430 | } |
26431 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26432 | { |
5c8c7dd3 RD |
26433 | arg2 = &temp2; |
26434 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26435 | } |
5c8c7dd3 RD |
26436 | { |
26437 | arg3 = &temp3; | |
26438 | if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail; | |
70d7cb34 | 26439 | } |
70d7cb34 | 26440 | { |
5c8c7dd3 RD |
26441 | arg4 = &temp4; |
26442 | if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail; | |
26443 | } | |
26444 | { | |
26445 | (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4); | |
70d7cb34 RD |
26446 | if (PyErr_Occurred()) SWIG_fail; |
26447 | } | |
26448 | resultobj = SWIG_Py_Void(); | |
26449 | return resultobj; | |
26450 | fail: | |
26451 | return NULL; | |
26452 | } | |
26453 | ||
26454 | ||
5c8c7dd3 RD |
26455 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) { |
26456 | int argc; | |
26457 | PyObject *argv[8]; | |
70d7cb34 | 26458 | |
5c8c7dd3 RD |
26459 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail; |
26460 | --argc; | |
26461 | if (argc == 4) { | |
26462 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26463 | } |
5c8c7dd3 RD |
26464 | if (argc == 7) { |
26465 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26466 | } |
5c8c7dd3 | 26467 | |
70d7cb34 | 26468 | fail: |
5c8c7dd3 | 26469 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'"); |
70d7cb34 RD |
26470 | return NULL; |
26471 | } | |
26472 | ||
26473 | ||
5c8c7dd3 | 26474 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 RD |
26475 | PyObject *resultobj = 0; |
26476 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26477 | wxGraphicsPath *arg2 = 0 ; |
70d7cb34 RD |
26478 | void *argp1 = 0 ; |
26479 | int res1 = 0 ; | |
5c8c7dd3 RD |
26480 | void *argp2 = 0 ; |
26481 | int res2 = 0 ; | |
70d7cb34 RD |
26482 | PyObject * obj0 = 0 ; |
26483 | PyObject * obj1 = 0 ; | |
26484 | char * kwnames[] = { | |
5c8c7dd3 | 26485 | (char *) "self",(char *) "path", NULL |
70d7cb34 RD |
26486 | }; |
26487 | ||
5c8c7dd3 | 26488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail; |
70d7cb34 RD |
26489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26490 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26492 | } |
26493 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26494 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
70d7cb34 | 26495 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
26496 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
26497 | } | |
26498 | if (!argp2) { | |
26499 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
70d7cb34 | 26500 | } |
5c8c7dd3 | 26501 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); |
70d7cb34 | 26502 | { |
5c8c7dd3 | 26503 | (arg1)->AddPath((wxGraphicsPath const &)*arg2); |
70d7cb34 RD |
26504 | if (PyErr_Occurred()) SWIG_fail; |
26505 | } | |
26506 | resultobj = SWIG_Py_Void(); | |
26507 | return resultobj; | |
26508 | fail: | |
26509 | return NULL; | |
26510 | } | |
26511 | ||
26512 | ||
5c8c7dd3 | 26513 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26514 | PyObject *resultobj = 0; |
26515 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
70d7cb34 RD |
26516 | void *argp1 = 0 ; |
26517 | int res1 = 0 ; | |
5c8c7dd3 | 26518 | PyObject *swig_obj[1] ; |
70d7cb34 | 26519 | |
5c8c7dd3 RD |
26520 | if (!args) SWIG_fail; |
26521 | swig_obj[0] = args; | |
26522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26523 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26525 | } |
26526 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26527 | { |
5c8c7dd3 | 26528 | (arg1)->CloseSubpath(); |
70d7cb34 RD |
26529 | if (PyErr_Occurred()) SWIG_fail; |
26530 | } | |
26531 | resultobj = SWIG_Py_Void(); | |
26532 | return resultobj; | |
26533 | fail: | |
26534 | return NULL; | |
26535 | } | |
26536 | ||
26537 | ||
5c8c7dd3 | 26538 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26539 | PyObject *resultobj = 0; |
26540 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26541 | wxPoint2D result; |
70d7cb34 RD |
26542 | void *argp1 = 0 ; |
26543 | int res1 = 0 ; | |
26544 | PyObject *swig_obj[1] ; | |
26545 | ||
26546 | if (!args) SWIG_fail; | |
26547 | swig_obj[0] = args; | |
26548 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
26549 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 RD |
26551 | } |
26552 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26553 | { | |
5c8c7dd3 | 26554 | result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint(); |
70d7cb34 RD |
26555 | if (PyErr_Occurred()) SWIG_fail; |
26556 | } | |
5c8c7dd3 | 26557 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
26558 | return resultobj; |
26559 | fail: | |
26560 | return NULL; | |
26561 | } | |
26562 | ||
26563 | ||
5c8c7dd3 | 26564 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26565 | PyObject *resultobj = 0; |
26566 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26567 | wxDouble arg2 ; | |
26568 | wxDouble arg3 ; | |
5c8c7dd3 RD |
26569 | wxDouble arg4 ; |
26570 | wxDouble arg5 ; | |
26571 | wxDouble arg6 ; | |
89d1e2ee | 26572 | bool arg7 = (bool) true ; |
70d7cb34 RD |
26573 | void *argp1 = 0 ; |
26574 | int res1 = 0 ; | |
26575 | double val2 ; | |
26576 | int ecode2 = 0 ; | |
26577 | double val3 ; | |
26578 | int ecode3 = 0 ; | |
5c8c7dd3 | 26579 | double val4 ; |
70d7cb34 | 26580 | int ecode4 = 0 ; |
5c8c7dd3 RD |
26581 | double val5 ; |
26582 | int ecode5 = 0 ; | |
26583 | double val6 ; | |
26584 | int ecode6 = 0 ; | |
26585 | bool val7 ; | |
26586 | int ecode7 = 0 ; | |
70d7cb34 | 26587 | |
89d1e2ee | 26588 | if ((nobjs < 6) || (nobjs > 7)) SWIG_fail; |
70d7cb34 RD |
26589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26590 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26592 | } |
26593 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26594 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26595 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26596 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26597 | } |
26598 | arg2 = static_cast< wxDouble >(val2); | |
26599 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26600 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26601 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26602 | } |
26603 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 RD |
26604 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
26605 | if (!SWIG_IsOK(ecode4)) { | |
26606 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26607 | } | |
26608 | arg4 = static_cast< wxDouble >(val4); | |
26609 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26610 | if (!SWIG_IsOK(ecode5)) { | |
26611 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26612 | } | |
26613 | arg5 = static_cast< wxDouble >(val5); | |
26614 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); | |
26615 | if (!SWIG_IsOK(ecode6)) { | |
26616 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26617 | } | |
26618 | arg6 = static_cast< wxDouble >(val6); | |
89d1e2ee RD |
26619 | if (swig_obj[6]) { |
26620 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
26621 | if (!SWIG_IsOK(ecode7)) { | |
26622 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
26623 | } | |
26624 | arg7 = static_cast< bool >(val7); | |
26625 | } | |
70d7cb34 | 26626 | { |
5c8c7dd3 | 26627 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26628 | if (PyErr_Occurred()) SWIG_fail; |
26629 | } | |
5c8c7dd3 | 26630 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26631 | return resultobj; |
26632 | fail: | |
26633 | return NULL; | |
26634 | } | |
26635 | ||
26636 | ||
5c8c7dd3 | 26637 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26638 | PyObject *resultobj = 0; |
26639 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26640 | wxPoint2D *arg2 = 0 ; |
26641 | wxDouble arg3 ; | |
26642 | wxDouble arg4 ; | |
26643 | wxDouble arg5 ; | |
89d1e2ee | 26644 | bool arg6 = (bool) true ; |
70d7cb34 RD |
26645 | void *argp1 = 0 ; |
26646 | int res1 = 0 ; | |
5c8c7dd3 RD |
26647 | wxPoint2D temp2 ; |
26648 | double val3 ; | |
70d7cb34 | 26649 | int ecode3 = 0 ; |
5c8c7dd3 RD |
26650 | double val4 ; |
26651 | int ecode4 = 0 ; | |
26652 | double val5 ; | |
26653 | int ecode5 = 0 ; | |
26654 | bool val6 ; | |
26655 | int ecode6 = 0 ; | |
70d7cb34 | 26656 | |
89d1e2ee | 26657 | if ((nobjs < 5) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
26658 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26659 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26661 | } |
26662 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26663 | { |
5c8c7dd3 RD |
26664 | arg2 = &temp2; |
26665 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26666 | } |
5c8c7dd3 RD |
26667 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
26668 | if (!SWIG_IsOK(ecode3)) { | |
26669 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26670 | } | |
26671 | arg3 = static_cast< wxDouble >(val3); | |
26672 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
26673 | if (!SWIG_IsOK(ecode4)) { | |
26674 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26675 | } | |
26676 | arg4 = static_cast< wxDouble >(val4); | |
26677 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26678 | if (!SWIG_IsOK(ecode5)) { | |
26679 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26680 | } | |
26681 | arg5 = static_cast< wxDouble >(val5); | |
89d1e2ee RD |
26682 | if (swig_obj[5]) { |
26683 | ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); | |
26684 | if (!SWIG_IsOK(ecode6)) { | |
26685 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'"); | |
26686 | } | |
26687 | arg6 = static_cast< bool >(val6); | |
26688 | } | |
70d7cb34 | 26689 | { |
5c8c7dd3 RD |
26690 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
26691 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 26692 | } |
5c8c7dd3 | 26693 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26694 | return resultobj; |
26695 | fail: | |
26696 | return NULL; | |
26697 | } | |
26698 | ||
26699 | ||
5c8c7dd3 | 26700 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 26701 | int argc; |
5c8c7dd3 | 26702 | PyObject *argv[8]; |
70d7cb34 | 26703 | |
5c8c7dd3 | 26704 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 26705 | --argc; |
89d1e2ee RD |
26706 | if ((argc >= 5) && (argc <= 6)) { |
26707 | int _v = 0; | |
26708 | { | |
26709 | { | |
26710 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2); | |
26711 | } | |
26712 | } | |
26713 | if (!_v) goto check_1; | |
26714 | if (argc > 5) { | |
26715 | { | |
26716 | { | |
26717 | int res = SWIG_AsVal_bool(argv[5], NULL); | |
26718 | _v = SWIG_CheckState(res); | |
26719 | } | |
26720 | } | |
26721 | if (!_v) goto check_1; | |
26722 | } | |
5c8c7dd3 | 26723 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); |
70d7cb34 | 26724 | } |
89d1e2ee RD |
26725 | check_1: |
26726 | ||
26727 | if ((argc >= 6) && (argc <= 7)) { | |
5c8c7dd3 | 26728 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); |
70d7cb34 RD |
26729 | } |
26730 | ||
26731 | fail: | |
5c8c7dd3 | 26732 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
26733 | return NULL; |
26734 | } | |
26735 | ||
26736 | ||
5c8c7dd3 | 26737 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26738 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26739 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26740 | wxDouble arg2 ; | |
26741 | wxDouble arg3 ; | |
26742 | wxDouble arg4 ; | |
26743 | wxDouble arg5 ; | |
70d7cb34 RD |
26744 | void *argp1 = 0 ; |
26745 | int res1 = 0 ; | |
5c8c7dd3 RD |
26746 | double val2 ; |
26747 | int ecode2 = 0 ; | |
26748 | double val3 ; | |
26749 | int ecode3 = 0 ; | |
26750 | double val4 ; | |
26751 | int ecode4 = 0 ; | |
26752 | double val5 ; | |
26753 | int ecode5 = 0 ; | |
26754 | PyObject * obj0 = 0 ; | |
26755 | PyObject * obj1 = 0 ; | |
26756 | PyObject * obj2 = 0 ; | |
26757 | PyObject * obj3 = 0 ; | |
26758 | PyObject * obj4 = 0 ; | |
26759 | char * kwnames[] = { | |
26760 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
26761 | }; | |
70d7cb34 | 26762 | |
5c8c7dd3 RD |
26763 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26764 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26765 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26767 | } |
5c8c7dd3 RD |
26768 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26769 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26770 | if (!SWIG_IsOK(ecode2)) { | |
26771 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26772 | } | |
26773 | arg2 = static_cast< wxDouble >(val2); | |
26774 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26775 | if (!SWIG_IsOK(ecode3)) { | |
26776 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26777 | } | |
26778 | arg3 = static_cast< wxDouble >(val3); | |
26779 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26780 | if (!SWIG_IsOK(ecode4)) { | |
26781 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26782 | } | |
26783 | arg4 = static_cast< wxDouble >(val4); | |
26784 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26785 | if (!SWIG_IsOK(ecode5)) { | |
26786 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26787 | } | |
26788 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26789 | { |
5c8c7dd3 | 26790 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26791 | if (PyErr_Occurred()) SWIG_fail; |
26792 | } | |
26793 | resultobj = SWIG_Py_Void(); | |
26794 | return resultobj; | |
26795 | fail: | |
26796 | return NULL; | |
26797 | } | |
26798 | ||
26799 | ||
5c8c7dd3 | 26800 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26801 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26802 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26803 | wxDouble arg2 ; | |
26804 | wxDouble arg3 ; | |
26805 | wxDouble arg4 ; | |
26806 | wxDouble arg5 ; | |
70d7cb34 RD |
26807 | void *argp1 = 0 ; |
26808 | int res1 = 0 ; | |
5c8c7dd3 RD |
26809 | double val2 ; |
26810 | int ecode2 = 0 ; | |
26811 | double val3 ; | |
26812 | int ecode3 = 0 ; | |
26813 | double val4 ; | |
26814 | int ecode4 = 0 ; | |
26815 | double val5 ; | |
26816 | int ecode5 = 0 ; | |
70d7cb34 RD |
26817 | PyObject * obj0 = 0 ; |
26818 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26819 | PyObject * obj2 = 0 ; |
26820 | PyObject * obj3 = 0 ; | |
26821 | PyObject * obj4 = 0 ; | |
70d7cb34 | 26822 | char * kwnames[] = { |
5c8c7dd3 | 26823 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
26824 | }; |
26825 | ||
5c8c7dd3 RD |
26826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26828 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26830 | } |
5c8c7dd3 RD |
26831 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26832 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26833 | if (!SWIG_IsOK(ecode2)) { | |
26834 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26835 | } | |
26836 | arg2 = static_cast< wxDouble >(val2); | |
26837 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26838 | if (!SWIG_IsOK(ecode3)) { | |
26839 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26840 | } | |
26841 | arg3 = static_cast< wxDouble >(val3); | |
26842 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26843 | if (!SWIG_IsOK(ecode4)) { | |
26844 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26845 | } | |
26846 | arg4 = static_cast< wxDouble >(val4); | |
26847 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26848 | if (!SWIG_IsOK(ecode5)) { | |
26849 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26850 | } | |
26851 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26852 | { |
5c8c7dd3 | 26853 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26854 | if (PyErr_Occurred()) SWIG_fail; |
26855 | } | |
26856 | resultobj = SWIG_Py_Void(); | |
26857 | return resultobj; | |
26858 | fail: | |
26859 | return NULL; | |
26860 | } | |
26861 | ||
26862 | ||
5c8c7dd3 | 26863 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26864 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26865 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26866 | wxDouble arg2 ; | |
26867 | wxDouble arg3 ; | |
26868 | wxDouble arg4 ; | |
70d7cb34 RD |
26869 | void *argp1 = 0 ; |
26870 | int res1 = 0 ; | |
5c8c7dd3 RD |
26871 | double val2 ; |
26872 | int ecode2 = 0 ; | |
26873 | double val3 ; | |
26874 | int ecode3 = 0 ; | |
26875 | double val4 ; | |
26876 | int ecode4 = 0 ; | |
70d7cb34 RD |
26877 | PyObject * obj0 = 0 ; |
26878 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26879 | PyObject * obj2 = 0 ; |
26880 | PyObject * obj3 = 0 ; | |
70d7cb34 | 26881 | char * kwnames[] = { |
5c8c7dd3 | 26882 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
26883 | }; |
26884 | ||
5c8c7dd3 RD |
26885 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
26886 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26887 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26889 | } |
5c8c7dd3 RD |
26890 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26891 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26892 | if (!SWIG_IsOK(ecode2)) { | |
26893 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26894 | } | |
26895 | arg2 = static_cast< wxDouble >(val2); | |
26896 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26897 | if (!SWIG_IsOK(ecode3)) { | |
26898 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26899 | } | |
26900 | arg3 = static_cast< wxDouble >(val3); | |
26901 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26902 | if (!SWIG_IsOK(ecode4)) { | |
26903 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26904 | } | |
26905 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 26906 | { |
5c8c7dd3 | 26907 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
26908 | if (PyErr_Occurred()) SWIG_fail; |
26909 | } | |
26910 | resultobj = SWIG_Py_Void(); | |
26911 | return resultobj; | |
26912 | fail: | |
26913 | return NULL; | |
26914 | } | |
26915 | ||
26916 | ||
5c8c7dd3 | 26917 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26918 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26919 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26920 | wxDouble arg2 ; | |
26921 | wxDouble arg3 ; | |
26922 | wxDouble arg4 ; | |
26923 | wxDouble arg5 ; | |
26924 | wxDouble arg6 ; | |
70d7cb34 RD |
26925 | void *argp1 = 0 ; |
26926 | int res1 = 0 ; | |
26927 | double val2 ; | |
26928 | int ecode2 = 0 ; | |
26929 | double val3 ; | |
26930 | int ecode3 = 0 ; | |
26931 | double val4 ; | |
26932 | int ecode4 = 0 ; | |
26933 | double val5 ; | |
26934 | int ecode5 = 0 ; | |
26935 | double val6 ; | |
26936 | int ecode6 = 0 ; | |
70d7cb34 RD |
26937 | PyObject * obj0 = 0 ; |
26938 | PyObject * obj1 = 0 ; | |
26939 | PyObject * obj2 = 0 ; | |
26940 | PyObject * obj3 = 0 ; | |
26941 | PyObject * obj4 = 0 ; | |
26942 | PyObject * obj5 = 0 ; | |
70d7cb34 | 26943 | char * kwnames[] = { |
5c8c7dd3 | 26944 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
26945 | }; |
26946 | ||
5c8c7dd3 RD |
26947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
26948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26949 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26951 | } |
5c8c7dd3 RD |
26952 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26953 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26954 | if (!SWIG_IsOK(ecode2)) { | |
26955 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26956 | } | |
26957 | arg2 = static_cast< wxDouble >(val2); | |
26958 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26959 | if (!SWIG_IsOK(ecode3)) { | |
26960 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26961 | } | |
26962 | arg3 = static_cast< wxDouble >(val3); | |
26963 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26964 | if (!SWIG_IsOK(ecode4)) { | |
26965 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26966 | } | |
26967 | arg4 = static_cast< wxDouble >(val4); | |
26968 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26969 | if (!SWIG_IsOK(ecode5)) { | |
26970 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26971 | } | |
26972 | arg5 = static_cast< wxDouble >(val5); | |
26973 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26974 | if (!SWIG_IsOK(ecode6)) { | |
26975 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26976 | } | |
26977 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 26978 | { |
5c8c7dd3 | 26979 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
26980 | if (PyErr_Occurred()) SWIG_fail; |
26981 | } | |
26982 | resultobj = SWIG_Py_Void(); | |
26983 | return resultobj; | |
26984 | fail: | |
26985 | return NULL; | |
26986 | } | |
26987 | ||
26988 | ||
5c8c7dd3 | 26989 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26990 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26991 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26992 | wxDouble arg2 ; | |
26993 | wxDouble arg3 ; | |
26994 | wxDouble arg4 ; | |
26995 | wxDouble arg5 ; | |
70d7cb34 RD |
26996 | void *argp1 = 0 ; |
26997 | int res1 = 0 ; | |
5c8c7dd3 RD |
26998 | double val2 ; |
26999 | int ecode2 = 0 ; | |
27000 | double val3 ; | |
27001 | int ecode3 = 0 ; | |
27002 | double val4 ; | |
27003 | int ecode4 = 0 ; | |
27004 | double val5 ; | |
27005 | int ecode5 = 0 ; | |
27006 | PyObject * obj0 = 0 ; | |
27007 | PyObject * obj1 = 0 ; | |
27008 | PyObject * obj2 = 0 ; | |
27009 | PyObject * obj3 = 0 ; | |
27010 | PyObject * obj4 = 0 ; | |
27011 | char * kwnames[] = { | |
27012 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27013 | }; | |
70d7cb34 | 27014 | |
5c8c7dd3 RD |
27015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27017 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27019 | } |
5c8c7dd3 RD |
27020 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27021 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27022 | if (!SWIG_IsOK(ecode2)) { | |
27023 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27024 | } | |
27025 | arg2 = static_cast< wxDouble >(val2); | |
27026 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27027 | if (!SWIG_IsOK(ecode3)) { | |
27028 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27029 | } | |
27030 | arg3 = static_cast< wxDouble >(val3); | |
27031 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27032 | if (!SWIG_IsOK(ecode4)) { | |
27033 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27034 | } | |
27035 | arg4 = static_cast< wxDouble >(val4); | |
27036 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27037 | if (!SWIG_IsOK(ecode5)) { | |
27038 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27039 | } | |
27040 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27041 | { |
5c8c7dd3 | 27042 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27043 | if (PyErr_Occurred()) SWIG_fail; |
27044 | } | |
27045 | resultobj = SWIG_Py_Void(); | |
27046 | return resultobj; | |
27047 | fail: | |
27048 | return NULL; | |
27049 | } | |
27050 | ||
27051 | ||
5c8c7dd3 | 27052 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27053 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27054 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27055 | wxDouble arg2 ; | |
27056 | wxDouble arg3 ; | |
27057 | wxDouble arg4 ; | |
27058 | wxDouble arg5 ; | |
27059 | wxDouble arg6 ; | |
70d7cb34 RD |
27060 | void *argp1 = 0 ; |
27061 | int res1 = 0 ; | |
5c8c7dd3 RD |
27062 | double val2 ; |
27063 | int ecode2 = 0 ; | |
27064 | double val3 ; | |
27065 | int ecode3 = 0 ; | |
27066 | double val4 ; | |
27067 | int ecode4 = 0 ; | |
27068 | double val5 ; | |
27069 | int ecode5 = 0 ; | |
27070 | double val6 ; | |
27071 | int ecode6 = 0 ; | |
70d7cb34 RD |
27072 | PyObject * obj0 = 0 ; |
27073 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27074 | PyObject * obj2 = 0 ; |
27075 | PyObject * obj3 = 0 ; | |
27076 | PyObject * obj4 = 0 ; | |
27077 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27078 | char * kwnames[] = { |
5c8c7dd3 | 27079 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
27080 | }; |
27081 | ||
5c8c7dd3 RD |
27082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27084 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27086 | } |
5c8c7dd3 RD |
27087 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27088 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27089 | if (!SWIG_IsOK(ecode2)) { | |
27090 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27091 | } | |
27092 | arg2 = static_cast< wxDouble >(val2); | |
27093 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27094 | if (!SWIG_IsOK(ecode3)) { | |
27095 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27096 | } | |
27097 | arg3 = static_cast< wxDouble >(val3); | |
27098 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27099 | if (!SWIG_IsOK(ecode4)) { | |
27100 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27101 | } | |
27102 | arg4 = static_cast< wxDouble >(val4); | |
27103 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27104 | if (!SWIG_IsOK(ecode5)) { | |
27105 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27106 | } | |
27107 | arg5 = static_cast< wxDouble >(val5); | |
27108 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27109 | if (!SWIG_IsOK(ecode6)) { | |
27110 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27111 | } | |
27112 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27113 | { |
5c8c7dd3 | 27114 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27115 | if (PyErr_Occurred()) SWIG_fail; |
27116 | } | |
5c8c7dd3 | 27117 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27118 | return resultobj; |
27119 | fail: | |
27120 | return NULL; | |
27121 | } | |
27122 | ||
27123 | ||
5c8c7dd3 | 27124 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27125 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27126 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27127 | void *result = 0 ; | |
70d7cb34 RD |
27128 | void *argp1 = 0 ; |
27129 | int res1 = 0 ; | |
27130 | PyObject *swig_obj[1] ; | |
27131 | ||
27132 | if (!args) SWIG_fail; | |
27133 | swig_obj[0] = args; | |
5c8c7dd3 | 27134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 27135 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27137 | } |
5c8c7dd3 | 27138 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27139 | { |
5c8c7dd3 | 27140 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
27141 | if (PyErr_Occurred()) SWIG_fail; |
27142 | } | |
5c8c7dd3 | 27143 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
27144 | return resultobj; |
27145 | fail: | |
27146 | return NULL; | |
27147 | } | |
27148 | ||
27149 | ||
5c8c7dd3 | 27150 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27151 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27152 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27153 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
27154 | void *argp1 = 0 ; |
27155 | int res1 = 0 ; | |
5c8c7dd3 | 27156 | int res2 ; |
70d7cb34 RD |
27157 | PyObject * obj0 = 0 ; |
27158 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27159 | char * kwnames[] = { |
5c8c7dd3 | 27160 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
27161 | }; |
27162 | ||
5c8c7dd3 RD |
27163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
27164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27165 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
27166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
27167 | } | |
27168 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27169 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
27170 | if (!SWIG_IsOK(res2)) { | |
27171 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 27172 | } |
70d7cb34 | 27173 | { |
5c8c7dd3 | 27174 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
27175 | if (PyErr_Occurred()) SWIG_fail; |
27176 | } | |
27177 | resultobj = SWIG_Py_Void(); | |
27178 | return resultobj; | |
27179 | fail: | |
27180 | return NULL; | |
27181 | } | |
27182 | ||
27183 | ||
5c8c7dd3 | 27184 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27185 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27186 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27187 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
27188 | void *argp1 = 0 ; |
27189 | int res1 = 0 ; | |
5c8c7dd3 RD |
27190 | void *argp2 = 0 ; |
27191 | int res2 = 0 ; | |
70d7cb34 RD |
27192 | PyObject * obj0 = 0 ; |
27193 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27194 | char * kwnames[] = { |
5c8c7dd3 | 27195 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
27196 | }; |
27197 | ||
5c8c7dd3 RD |
27198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
27199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27200 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27202 | } |
5c8c7dd3 RD |
27203 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27204 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
27205 | if (!SWIG_IsOK(res2)) { | |
27206 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27207 | } | |
27208 | if (!argp2) { | |
27209 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27210 | } | |
27211 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 27212 | { |
5c8c7dd3 | 27213 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
27214 | if (PyErr_Occurred()) SWIG_fail; |
27215 | } | |
27216 | resultobj = SWIG_Py_Void(); | |
27217 | return resultobj; | |
27218 | fail: | |
27219 | return NULL; | |
27220 | } | |
27221 | ||
27222 | ||
5c8c7dd3 | 27223 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27224 | PyObject *resultobj = 0; |
5c8c7dd3 | 27225 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
4fe9ce47 | 27226 | wxRect2D result; |
70d7cb34 RD |
27227 | void *argp1 = 0 ; |
27228 | int res1 = 0 ; | |
5c8c7dd3 | 27229 | PyObject *swig_obj[1] ; |
70d7cb34 | 27230 | |
5c8c7dd3 RD |
27231 | if (!args) SWIG_fail; |
27232 | swig_obj[0] = args; | |
27233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27234 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27236 | } |
5c8c7dd3 | 27237 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27238 | { |
5c8c7dd3 | 27239 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
27240 | if (PyErr_Occurred()) SWIG_fail; |
27241 | } | |
4fe9ce47 | 27242 | resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
27243 | return resultobj; |
27244 | fail: | |
27245 | return NULL; | |
27246 | } | |
27247 | ||
27248 | ||
5c8c7dd3 | 27249 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27250 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27251 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27252 | wxDouble arg2 ; | |
27253 | wxDouble arg3 ; | |
27254 | int arg4 = (int) wxODDEVEN_RULE ; | |
27255 | bool result; | |
70d7cb34 RD |
27256 | void *argp1 = 0 ; |
27257 | int res1 = 0 ; | |
5c8c7dd3 RD |
27258 | double val2 ; |
27259 | int ecode2 = 0 ; | |
27260 | double val3 ; | |
27261 | int ecode3 = 0 ; | |
27262 | int val4 ; | |
27263 | int ecode4 = 0 ; | |
70d7cb34 | 27264 | |
5c8c7dd3 RD |
27265 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
27266 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27267 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27269 | } |
5c8c7dd3 RD |
27270 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27271 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27272 | if (!SWIG_IsOK(ecode2)) { | |
27273 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27274 | } | |
27275 | arg2 = static_cast< wxDouble >(val2); | |
27276 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27277 | if (!SWIG_IsOK(ecode3)) { | |
27278 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27279 | } | |
27280 | arg3 = static_cast< wxDouble >(val3); | |
27281 | if (swig_obj[3]) { | |
27282 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
27283 | if (!SWIG_IsOK(ecode4)) { | |
27284 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
27285 | } | |
27286 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
27287 | } |
27288 | { | |
5c8c7dd3 | 27289 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
27290 | if (PyErr_Occurred()) SWIG_fail; |
27291 | } | |
5c8c7dd3 RD |
27292 | { |
27293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27294 | } |
27295 | return resultobj; | |
27296 | fail: | |
27297 | return NULL; | |
27298 | } | |
27299 | ||
27300 | ||
5c8c7dd3 | 27301 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27302 | PyObject *resultobj = 0; |
5c8c7dd3 | 27303 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
4fe9ce47 | 27304 | wxPoint2D *arg2 = 0 ; |
5c8c7dd3 RD |
27305 | int arg3 = (int) wxODDEVEN_RULE ; |
27306 | bool result; | |
70d7cb34 RD |
27307 | void *argp1 = 0 ; |
27308 | int res1 = 0 ; | |
4fe9ce47 | 27309 | wxPoint2D temp2 ; |
5c8c7dd3 RD |
27310 | int val3 ; |
27311 | int ecode3 = 0 ; | |
70d7cb34 | 27312 | |
5c8c7dd3 RD |
27313 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
27314 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27315 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27317 | } |
5c8c7dd3 | 27318 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
4fe9ce47 RD |
27319 | { |
27320 | arg2 = &temp2; | |
27321 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
5c8c7dd3 | 27322 | } |
5c8c7dd3 RD |
27323 | if (swig_obj[2]) { |
27324 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
27325 | if (!SWIG_IsOK(ecode3)) { | |
27326 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
27327 | } | |
27328 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
27329 | } |
27330 | { | |
4fe9ce47 | 27331 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3); |
70d7cb34 RD |
27332 | if (PyErr_Occurred()) SWIG_fail; |
27333 | } | |
5c8c7dd3 RD |
27334 | { |
27335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27336 | } |
27337 | return resultobj; | |
27338 | fail: | |
27339 | return NULL; | |
27340 | } | |
27341 | ||
27342 | ||
5c8c7dd3 RD |
27343 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
27344 | int argc; | |
27345 | PyObject *argv[5]; | |
70d7cb34 | 27346 | |
5c8c7dd3 RD |
27347 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
27348 | --argc; | |
27349 | if ((argc >= 2) && (argc <= 3)) { | |
27350 | int _v = 0; | |
27351 | { | |
4fe9ce47 RD |
27352 | { |
27353 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2); | |
27354 | } | |
5c8c7dd3 RD |
27355 | } |
27356 | if (!_v) goto check_1; | |
27357 | if (argc > 2) { | |
27358 | { | |
27359 | { | |
27360 | int res = SWIG_AsVal_int(argv[2], NULL); | |
27361 | _v = SWIG_CheckState(res); | |
27362 | } | |
27363 | } | |
27364 | if (!_v) goto check_1; | |
27365 | } | |
27366 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 27367 | } |
5c8c7dd3 RD |
27368 | check_1: |
27369 | ||
27370 | if ((argc >= 3) && (argc <= 4)) { | |
27371 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 27372 | } |
5c8c7dd3 | 27373 | |
70d7cb34 | 27374 | fail: |
5c8c7dd3 | 27375 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
27376 | return NULL; |
27377 | } | |
27378 | ||
27379 | ||
5c8c7dd3 | 27380 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27381 | PyObject *obj; |
27382 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 27383 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
27384 | return SWIG_Py_Void(); |
27385 | } | |
27386 | ||
8f514ab4 RD |
27387 | SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27388 | return SWIG_Python_InitShadowInstance(args); | |
27389 | } | |
27390 | ||
5c8c7dd3 RD |
27391 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
27392 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
27393 | return 1; | |
27394 | } | |
27395 | ||
27396 | ||
27397 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
27398 | PyObject *pyobj = 0; | |
27399 | ||
27400 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
27401 | return pyobj; | |
27402 | } | |
27403 | ||
27404 | ||
27405 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
27406 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
27407 | return 1; | |
27408 | } | |
27409 | ||
27410 | ||
27411 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
27412 | PyObject *pyobj = 0; | |
27413 | ||
27414 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
27415 | return pyobj; | |
27416 | } | |
27417 | ||
27418 | ||
27419 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
27420 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
27421 | return 1; | |
27422 | } | |
27423 | ||
27424 | ||
27425 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
27426 | PyObject *pyobj = 0; | |
27427 | ||
27428 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
27429 | return pyobj; | |
27430 | } | |
27431 | ||
27432 | ||
27433 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
27434 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
27435 | return 1; | |
27436 | } | |
27437 | ||
27438 | ||
27439 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
27440 | PyObject *pyobj = 0; | |
27441 | ||
27442 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
27443 | return pyobj; | |
27444 | } | |
27445 | ||
27446 | ||
27447 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
27448 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
27449 | return 1; | |
27450 | } | |
27451 | ||
27452 | ||
27453 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
27454 | PyObject *pyobj = 0; | |
27455 | ||
27456 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
27457 | return pyobj; | |
27458 | } | |
27459 | ||
27460 | ||
70d7cb34 RD |
27461 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27462 | PyObject *resultobj = 0; | |
27463 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27464 | void *argp1 = 0 ; | |
27465 | int res1 = 0 ; | |
27466 | PyObject *swig_obj[1] ; | |
27467 | ||
27468 | if (!args) SWIG_fail; | |
27469 | swig_obj[0] = args; | |
27470 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
27471 | if (!SWIG_IsOK(res1)) { | |
27472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27473 | } | |
27474 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27475 | { | |
27476 | delete arg1; | |
27477 | ||
27478 | if (PyErr_Occurred()) SWIG_fail; | |
27479 | } | |
27480 | resultobj = SWIG_Py_Void(); | |
27481 | return resultobj; | |
27482 | fail: | |
27483 | return NULL; | |
27484 | } | |
27485 | ||
27486 | ||
27487 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27488 | PyObject *resultobj = 0; | |
27489 | wxWindowDC *arg1 = 0 ; | |
27490 | wxGraphicsContext *result = 0 ; | |
27491 | void *argp1 = 0 ; | |
27492 | int res1 = 0 ; | |
27493 | ||
27494 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
27496 | if (!SWIG_IsOK(res1)) { | |
27497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27498 | } | |
27499 | if (!argp1) { | |
27500 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27501 | } | |
27502 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
27503 | { | |
27504 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
27505 | if (PyErr_Occurred()) SWIG_fail; | |
27506 | } | |
27507 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27508 | return resultobj; | |
27509 | fail: | |
27510 | return NULL; | |
27511 | } | |
27512 | ||
27513 | ||
27514 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27515 | PyObject *resultobj = 0; | |
27516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27517 | wxGraphicsContext *result = 0 ; | |
27518 | void *argp1 = 0 ; | |
27519 | int res1 = 0 ; | |
27520 | ||
27521 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27523 | if (!SWIG_IsOK(res1)) { | |
27524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
27525 | } | |
27526 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
27527 | { | |
27528 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
27529 | if (PyErr_Occurred()) SWIG_fail; | |
27530 | } | |
27531 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27532 | return resultobj; | |
27533 | fail: | |
27534 | return NULL; | |
27535 | } | |
27536 | ||
27537 | ||
27538 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
27539 | int argc; | |
27540 | PyObject *argv[2]; | |
27541 | ||
27542 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
27543 | --argc; | |
27544 | if (argc == 1) { | |
27545 | int _v = 0; | |
27546 | { | |
27547 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
27548 | _v = SWIG_CheckState(res); | |
27549 | } | |
27550 | if (!_v) goto check_1; | |
27551 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
27552 | } | |
27553 | check_1: | |
27554 | ||
27555 | if (argc == 1) { | |
27556 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
27557 | } | |
27558 | ||
27559 | fail: | |
27560 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
27561 | return NULL; | |
27562 | } | |
27563 | ||
27564 | ||
f89238b9 RD |
27565 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27566 | PyObject *resultobj = 0; | |
27567 | wxGraphicsContext *result = 0 ; | |
27568 | ||
27569 | if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail; | |
27570 | { | |
27571 | result = (wxGraphicsContext *)wxGraphicsContext::Create(); | |
27572 | if (PyErr_Occurred()) SWIG_fail; | |
27573 | } | |
27574 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27575 | return resultobj; | |
27576 | fail: | |
27577 | return NULL; | |
27578 | } | |
27579 | ||
27580 | ||
70d7cb34 RD |
27581 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27582 | PyObject *resultobj = 0; | |
27583 | void *arg1 = (void *) 0 ; | |
27584 | wxGraphicsContext *result = 0 ; | |
27585 | int res1 ; | |
27586 | PyObject * obj0 = 0 ; | |
27587 | char * kwnames[] = { | |
27588 | (char *) "context", NULL | |
27589 | }; | |
27590 | ||
27591 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
27592 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27593 | if (!SWIG_IsOK(res1)) { | |
27594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
27595 | } | |
27596 | { | |
27597 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
27598 | if (PyErr_Occurred()) SWIG_fail; | |
27599 | } | |
27600 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27601 | return resultobj; | |
27602 | fail: | |
27603 | return NULL; | |
27604 | } | |
27605 | ||
27606 | ||
27607 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27608 | PyObject *resultobj = 0; | |
27609 | void *arg1 = (void *) 0 ; | |
27610 | wxGraphicsContext *result = 0 ; | |
27611 | int res1 ; | |
27612 | PyObject * obj0 = 0 ; | |
27613 | char * kwnames[] = { | |
27614 | (char *) "window", NULL | |
27615 | }; | |
27616 | ||
27617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
27618 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27619 | if (!SWIG_IsOK(res1)) { | |
27620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
27621 | } | |
27622 | { | |
27623 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
27624 | if (PyErr_Occurred()) SWIG_fail; | |
27625 | } | |
27626 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27627 | return resultobj; | |
27628 | fail: | |
27629 | return NULL; | |
27630 | } | |
27631 | ||
27632 | ||
27633 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27634 | PyObject *resultobj = 0; | |
27635 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 27636 | wxGraphicsPath result; |
70d7cb34 RD |
27637 | void *argp1 = 0 ; |
27638 | int res1 = 0 ; | |
27639 | PyObject *swig_obj[1] ; | |
27640 | ||
27641 | if (!args) SWIG_fail; | |
27642 | swig_obj[0] = args; | |
27643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27644 | if (!SWIG_IsOK(res1)) { | |
27645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27646 | } | |
27647 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27648 | { | |
5c8c7dd3 | 27649 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
27650 | if (PyErr_Occurred()) SWIG_fail; |
27651 | } | |
5c8c7dd3 | 27652 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27653 | return resultobj; |
27654 | fail: | |
27655 | return NULL; | |
27656 | } | |
27657 | ||
27658 | ||
70d7cb34 | 27659 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27660 | PyObject *resultobj = 0; |
70d7cb34 RD |
27661 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27662 | wxPen *arg2 = 0 ; | |
27663 | wxGraphicsPen result; | |
72ef6efb RD |
27664 | void *argp1 = 0 ; |
27665 | int res1 = 0 ; | |
70d7cb34 RD |
27666 | void *argp2 = 0 ; |
27667 | int res2 = 0 ; | |
72ef6efb RD |
27668 | PyObject * obj0 = 0 ; |
27669 | PyObject * obj1 = 0 ; | |
72ef6efb | 27670 | char * kwnames[] = { |
70d7cb34 | 27671 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
27672 | }; |
27673 | ||
70d7cb34 RD |
27674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
27675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27676 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27678 | } |
70d7cb34 RD |
27679 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27680 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
27681 | if (!SWIG_IsOK(res2)) { | |
27682 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27683 | } | |
27684 | if (!argp2) { | |
27685 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27686 | } | |
27687 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 27688 | { |
70d7cb34 | 27689 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
27690 | if (PyErr_Occurred()) SWIG_fail; |
27691 | } | |
70d7cb34 | 27692 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27693 | return resultobj; |
27694 | fail: | |
27695 | return NULL; | |
27696 | } | |
27697 | ||
27698 | ||
70d7cb34 | 27699 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27700 | PyObject *resultobj = 0; |
70d7cb34 RD |
27701 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27702 | wxBrush *arg2 = 0 ; | |
27703 | wxGraphicsBrush result; | |
72ef6efb RD |
27704 | void *argp1 = 0 ; |
27705 | int res1 = 0 ; | |
70d7cb34 RD |
27706 | void *argp2 = 0 ; |
27707 | int res2 = 0 ; | |
72ef6efb RD |
27708 | PyObject * obj0 = 0 ; |
27709 | PyObject * obj1 = 0 ; | |
72ef6efb | 27710 | char * kwnames[] = { |
70d7cb34 | 27711 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
27712 | }; |
27713 | ||
70d7cb34 RD |
27714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
27715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27716 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27718 | } |
70d7cb34 RD |
27719 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27720 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
27721 | if (!SWIG_IsOK(res2)) { | |
27722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27723 | } | |
27724 | if (!argp2) { | |
27725 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27726 | } | |
27727 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 27728 | { |
70d7cb34 | 27729 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
27730 | if (PyErr_Occurred()) SWIG_fail; |
27731 | } | |
70d7cb34 | 27732 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27733 | return resultobj; |
27734 | fail: | |
27735 | return NULL; | |
27736 | } | |
27737 | ||
27738 | ||
70d7cb34 | 27739 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27740 | PyObject *resultobj = 0; |
70d7cb34 | 27741 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27742 | wxDouble arg2 ; |
27743 | wxDouble arg3 ; | |
27744 | wxDouble arg4 ; | |
27745 | wxDouble arg5 ; | |
70d7cb34 RD |
27746 | wxColour *arg6 = 0 ; |
27747 | wxColour *arg7 = 0 ; | |
27748 | wxGraphicsBrush result; | |
72ef6efb RD |
27749 | void *argp1 = 0 ; |
27750 | int res1 = 0 ; | |
27751 | double val2 ; | |
27752 | int ecode2 = 0 ; | |
27753 | double val3 ; | |
27754 | int ecode3 = 0 ; | |
27755 | double val4 ; | |
27756 | int ecode4 = 0 ; | |
27757 | double val5 ; | |
27758 | int ecode5 = 0 ; | |
70d7cb34 RD |
27759 | wxColour temp6 ; |
27760 | wxColour temp7 ; | |
72ef6efb RD |
27761 | PyObject * obj0 = 0 ; |
27762 | PyObject * obj1 = 0 ; | |
27763 | PyObject * obj2 = 0 ; | |
27764 | PyObject * obj3 = 0 ; | |
27765 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
27766 | PyObject * obj5 = 0 ; |
27767 | PyObject * obj6 = 0 ; | |
72ef6efb | 27768 | char * kwnames[] = { |
70d7cb34 | 27769 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
27770 | }; |
27771 | ||
70d7cb34 RD |
27772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27774 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27776 | } |
70d7cb34 | 27777 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27778 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27779 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27780 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27781 | } |
27782 | arg2 = static_cast< wxDouble >(val2); | |
27783 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27784 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27785 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27786 | } |
27787 | arg3 = static_cast< wxDouble >(val3); | |
27788 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27789 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27790 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27791 | } |
27792 | arg4 = static_cast< wxDouble >(val4); | |
27793 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27794 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27795 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27796 | } |
27797 | arg5 = static_cast< wxDouble >(val5); | |
27798 | { | |
70d7cb34 RD |
27799 | arg6 = &temp6; |
27800 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 27801 | } |
70d7cb34 RD |
27802 | { |
27803 | arg7 = &temp7; | |
27804 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 27805 | } |
72ef6efb | 27806 | { |
70d7cb34 | 27807 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
27808 | if (PyErr_Occurred()) SWIG_fail; |
27809 | } | |
70d7cb34 | 27810 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27811 | return resultobj; |
27812 | fail: | |
27813 | return NULL; | |
27814 | } | |
27815 | ||
27816 | ||
70d7cb34 | 27817 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27818 | PyObject *resultobj = 0; |
70d7cb34 | 27819 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27820 | wxDouble arg2 ; |
27821 | wxDouble arg3 ; | |
27822 | wxDouble arg4 ; | |
27823 | wxDouble arg5 ; | |
27824 | wxDouble arg6 ; | |
70d7cb34 RD |
27825 | wxColour *arg7 = 0 ; |
27826 | wxColour *arg8 = 0 ; | |
27827 | wxGraphicsBrush result; | |
72ef6efb RD |
27828 | void *argp1 = 0 ; |
27829 | int res1 = 0 ; | |
27830 | double val2 ; | |
27831 | int ecode2 = 0 ; | |
27832 | double val3 ; | |
27833 | int ecode3 = 0 ; | |
27834 | double val4 ; | |
27835 | int ecode4 = 0 ; | |
27836 | double val5 ; | |
27837 | int ecode5 = 0 ; | |
27838 | double val6 ; | |
27839 | int ecode6 = 0 ; | |
70d7cb34 RD |
27840 | wxColour temp7 ; |
27841 | wxColour temp8 ; | |
72ef6efb RD |
27842 | PyObject * obj0 = 0 ; |
27843 | PyObject * obj1 = 0 ; | |
27844 | PyObject * obj2 = 0 ; | |
27845 | PyObject * obj3 = 0 ; | |
27846 | PyObject * obj4 = 0 ; | |
27847 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
27848 | PyObject * obj6 = 0 ; |
27849 | PyObject * obj7 = 0 ; | |
72ef6efb | 27850 | char * kwnames[] = { |
70d7cb34 | 27851 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
27852 | }; |
27853 | ||
70d7cb34 RD |
27854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
27855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27856 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27858 | } |
70d7cb34 | 27859 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27860 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27861 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27862 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27863 | } |
27864 | arg2 = static_cast< wxDouble >(val2); | |
27865 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27866 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27867 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27868 | } |
27869 | arg3 = static_cast< wxDouble >(val3); | |
27870 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27871 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27872 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27873 | } |
27874 | arg4 = static_cast< wxDouble >(val4); | |
27875 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27876 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27877 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27878 | } |
27879 | arg5 = static_cast< wxDouble >(val5); | |
27880 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27881 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 27882 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
27883 | } |
27884 | arg6 = static_cast< wxDouble >(val6); | |
27885 | { | |
70d7cb34 RD |
27886 | arg7 = &temp7; |
27887 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
27888 | } | |
27889 | { | |
27890 | arg8 = &temp8; | |
27891 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
27892 | } | |
27893 | { | |
27894 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
27895 | if (PyErr_Occurred()) SWIG_fail; |
27896 | } | |
70d7cb34 | 27897 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27898 | return resultobj; |
27899 | fail: | |
27900 | return NULL; | |
27901 | } | |
27902 | ||
27903 | ||
70d7cb34 | 27904 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27905 | PyObject *resultobj = 0; |
27906 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
27907 | wxFont *arg2 = 0 ; |
27908 | wxColour const &arg3_defvalue = *wxBLACK ; | |
27909 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
27910 | wxGraphicsFont result; | |
72ef6efb RD |
27911 | void *argp1 = 0 ; |
27912 | int res1 = 0 ; | |
70d7cb34 RD |
27913 | void *argp2 = 0 ; |
27914 | int res2 = 0 ; | |
27915 | wxColour temp3 ; | |
27916 | PyObject * obj0 = 0 ; | |
27917 | PyObject * obj1 = 0 ; | |
27918 | PyObject * obj2 = 0 ; | |
27919 | char * kwnames[] = { | |
27920 | (char *) "self",(char *) "font",(char *) "col", NULL | |
27921 | }; | |
72ef6efb | 27922 | |
70d7cb34 RD |
27923 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
27924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27925 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
27927 | } |
27928 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
27929 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
27930 | if (!SWIG_IsOK(res2)) { | |
27931 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27932 | } |
70d7cb34 RD |
27933 | if (!argp2) { |
27934 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27935 | } |
70d7cb34 RD |
27936 | arg2 = reinterpret_cast< wxFont * >(argp2); |
27937 | if (obj2) { | |
27938 | { | |
27939 | arg3 = &temp3; | |
27940 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
27941 | } | |
72ef6efb | 27942 | } |
72ef6efb | 27943 | { |
70d7cb34 | 27944 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
27945 | if (PyErr_Occurred()) SWIG_fail; |
27946 | } | |
70d7cb34 | 27947 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27948 | return resultobj; |
27949 | fail: | |
27950 | return NULL; | |
27951 | } | |
27952 | ||
27953 | ||
70d7cb34 | 27954 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 27955 | PyObject *resultobj = 0; |
70d7cb34 RD |
27956 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27957 | wxDouble arg2 = (wxDouble) 1.0 ; | |
27958 | wxDouble arg3 = (wxDouble) 0.0 ; | |
27959 | wxDouble arg4 = (wxDouble) 0.0 ; | |
27960 | wxDouble arg5 = (wxDouble) 1.0 ; | |
27961 | wxDouble arg6 = (wxDouble) 0.0 ; | |
27962 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 27963 | wxGraphicsMatrix result; |
0a27f394 RD |
27964 | void *argp1 = 0 ; |
27965 | int res1 = 0 ; | |
70d7cb34 RD |
27966 | double val2 ; |
27967 | int ecode2 = 0 ; | |
27968 | double val3 ; | |
27969 | int ecode3 = 0 ; | |
27970 | double val4 ; | |
27971 | int ecode4 = 0 ; | |
27972 | double val5 ; | |
27973 | int ecode5 = 0 ; | |
27974 | double val6 ; | |
27975 | int ecode6 = 0 ; | |
27976 | double val7 ; | |
27977 | int ecode7 = 0 ; | |
27978 | PyObject * obj0 = 0 ; | |
27979 | PyObject * obj1 = 0 ; | |
27980 | PyObject * obj2 = 0 ; | |
27981 | PyObject * obj3 = 0 ; | |
27982 | PyObject * obj4 = 0 ; | |
27983 | PyObject * obj5 = 0 ; | |
27984 | PyObject * obj6 = 0 ; | |
27985 | char * kwnames[] = { | |
27986 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
27987 | }; | |
0a27f394 | 27988 | |
70d7cb34 RD |
27989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 27991 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 27993 | } |
70d7cb34 RD |
27994 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27995 | if (obj1) { | |
27996 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27997 | if (!SWIG_IsOK(ecode2)) { | |
27998 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27999 | } | |
28000 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 28001 | } |
70d7cb34 RD |
28002 | if (obj2) { |
28003 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28004 | if (!SWIG_IsOK(ecode3)) { | |
28005 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28006 | } | |
28007 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 28008 | } |
70d7cb34 RD |
28009 | if (obj3) { |
28010 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28011 | if (!SWIG_IsOK(ecode4)) { | |
28012 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28013 | } | |
28014 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 28015 | } |
70d7cb34 RD |
28016 | if (obj4) { |
28017 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28018 | if (!SWIG_IsOK(ecode5)) { | |
28019 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28020 | } | |
28021 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 28022 | } |
70d7cb34 RD |
28023 | if (obj5) { |
28024 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28025 | if (!SWIG_IsOK(ecode6)) { | |
28026 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28027 | } | |
28028 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 28029 | } |
70d7cb34 RD |
28030 | if (obj6) { |
28031 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
28032 | if (!SWIG_IsOK(ecode7)) { | |
28033 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
28034 | } | |
28035 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 28036 | } |
72ef6efb | 28037 | { |
5c8c7dd3 | 28038 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
28039 | if (PyErr_Occurred()) SWIG_fail; |
28040 | } | |
5c8c7dd3 | 28041 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28042 | return resultobj; |
28043 | fail: | |
28044 | return NULL; | |
28045 | } | |
28046 | ||
28047 | ||
28048 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28049 | PyObject *resultobj = 0; | |
28050 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28051 | void *argp1 = 0 ; | |
28052 | int res1 = 0 ; | |
28053 | PyObject *swig_obj[1] ; | |
28054 | ||
28055 | if (!args) SWIG_fail; | |
28056 | swig_obj[0] = args; | |
28057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28058 | if (!SWIG_IsOK(res1)) { | |
28059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28060 | } | |
28061 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28062 | { | |
72ef6efb | 28063 | (arg1)->PushState(); |
72ef6efb RD |
28064 | if (PyErr_Occurred()) SWIG_fail; |
28065 | } | |
28066 | resultobj = SWIG_Py_Void(); | |
28067 | return resultobj; | |
28068 | fail: | |
28069 | return NULL; | |
28070 | } | |
28071 | ||
28072 | ||
28073 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28074 | PyObject *resultobj = 0; | |
28075 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28076 | void *argp1 = 0 ; | |
28077 | int res1 = 0 ; | |
28078 | PyObject *swig_obj[1] ; | |
28079 | ||
28080 | if (!args) SWIG_fail; | |
28081 | swig_obj[0] = args; | |
28082 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28083 | if (!SWIG_IsOK(res1)) { | |
28084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28085 | } | |
28086 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28087 | { | |
72ef6efb | 28088 | (arg1)->PopState(); |
72ef6efb RD |
28089 | if (PyErr_Occurred()) SWIG_fail; |
28090 | } | |
28091 | resultobj = SWIG_Py_Void(); | |
28092 | return resultobj; | |
28093 | fail: | |
28094 | return NULL; | |
28095 | } | |
28096 | ||
28097 | ||
0a27f394 | 28098 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28099 | PyObject *resultobj = 0; |
28100 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28101 | wxRegion *arg2 = 0 ; | |
28102 | void *argp1 = 0 ; | |
28103 | int res1 = 0 ; | |
28104 | void *argp2 = 0 ; | |
28105 | int res2 = 0 ; | |
28106 | PyObject * obj0 = 0 ; | |
28107 | PyObject * obj1 = 0 ; | |
28108 | char * kwnames[] = { | |
28109 | (char *) "self",(char *) "region", NULL | |
28110 | }; | |
28111 | ||
0a27f394 | 28112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
28114 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 28115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28116 | } |
28117 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28118 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
28119 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 28120 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28121 | } |
28122 | if (!argp2) { | |
0a27f394 | 28123 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28124 | } |
28125 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
28126 | { | |
72ef6efb | 28127 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
28128 | if (PyErr_Occurred()) SWIG_fail; |
28129 | } | |
28130 | resultobj = SWIG_Py_Void(); | |
28131 | return resultobj; | |
28132 | fail: | |
28133 | return NULL; | |
28134 | } | |
28135 | ||
28136 | ||
0a27f394 RD |
28137 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28138 | PyObject *resultobj = 0; | |
28139 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28140 | wxDouble arg2 ; | |
28141 | wxDouble arg3 ; | |
28142 | wxDouble arg4 ; | |
28143 | wxDouble arg5 ; | |
28144 | void *argp1 = 0 ; | |
28145 | int res1 = 0 ; | |
28146 | double val2 ; | |
28147 | int ecode2 = 0 ; | |
28148 | double val3 ; | |
28149 | int ecode3 = 0 ; | |
28150 | double val4 ; | |
28151 | int ecode4 = 0 ; | |
28152 | double val5 ; | |
28153 | int ecode5 = 0 ; | |
28154 | PyObject * obj0 = 0 ; | |
28155 | PyObject * obj1 = 0 ; | |
28156 | PyObject * obj2 = 0 ; | |
28157 | PyObject * obj3 = 0 ; | |
28158 | PyObject * obj4 = 0 ; | |
28159 | char * kwnames[] = { | |
28160 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
28161 | }; | |
28162 | ||
28163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28165 | if (!SWIG_IsOK(res1)) { | |
28166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28167 | } | |
28168 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28169 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28170 | if (!SWIG_IsOK(ecode2)) { | |
28171 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28172 | } | |
28173 | arg2 = static_cast< wxDouble >(val2); | |
28174 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28175 | if (!SWIG_IsOK(ecode3)) { | |
28176 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28177 | } | |
28178 | arg3 = static_cast< wxDouble >(val3); | |
28179 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28180 | if (!SWIG_IsOK(ecode4)) { | |
28181 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28182 | } | |
28183 | arg4 = static_cast< wxDouble >(val4); | |
28184 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28185 | if (!SWIG_IsOK(ecode5)) { | |
28186 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28187 | } | |
28188 | arg5 = static_cast< wxDouble >(val5); | |
28189 | { | |
28190 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
28191 | if (PyErr_Occurred()) SWIG_fail; | |
28192 | } | |
28193 | resultobj = SWIG_Py_Void(); | |
28194 | return resultobj; | |
28195 | fail: | |
28196 | return NULL; | |
28197 | } | |
28198 | ||
28199 | ||
28200 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28201 | PyObject *resultobj = 0; | |
28202 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28203 | void *argp1 = 0 ; | |
28204 | int res1 = 0 ; | |
28205 | PyObject *swig_obj[1] ; | |
28206 | ||
28207 | if (!args) SWIG_fail; | |
28208 | swig_obj[0] = args; | |
28209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28210 | if (!SWIG_IsOK(res1)) { | |
28211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28212 | } | |
28213 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28214 | { | |
28215 | (arg1)->ResetClip(); | |
28216 | if (PyErr_Occurred()) SWIG_fail; | |
28217 | } | |
28218 | resultobj = SWIG_Py_Void(); | |
28219 | return resultobj; | |
28220 | fail: | |
28221 | return NULL; | |
28222 | } | |
28223 | ||
28224 | ||
28225 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28226 | PyObject *resultobj = 0; | |
28227 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28228 | void *result = 0 ; | |
28229 | void *argp1 = 0 ; | |
28230 | int res1 = 0 ; | |
28231 | PyObject *swig_obj[1] ; | |
28232 | ||
28233 | if (!args) SWIG_fail; | |
28234 | swig_obj[0] = args; | |
28235 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28236 | if (!SWIG_IsOK(res1)) { | |
28237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28238 | } | |
28239 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28240 | { | |
28241 | result = (void *)(arg1)->GetNativeContext(); | |
28242 | if (PyErr_Occurred()) SWIG_fail; | |
28243 | } | |
28244 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
28245 | return resultobj; | |
28246 | fail: | |
28247 | return NULL; | |
28248 | } | |
28249 | ||
28250 | ||
c8aaaf9e RD |
28251 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28252 | PyObject *resultobj = 0; | |
28253 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28254 | int result; | |
28255 | void *argp1 = 0 ; | |
28256 | int res1 = 0 ; | |
28257 | PyObject *swig_obj[1] ; | |
28258 | ||
28259 | if (!args) SWIG_fail; | |
28260 | swig_obj[0] = args; | |
28261 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28262 | if (!SWIG_IsOK(res1)) { | |
28263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28264 | } | |
28265 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28266 | { | |
28267 | result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction(); | |
28268 | if (PyErr_Occurred()) SWIG_fail; | |
28269 | } | |
28270 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28271 | return resultobj; | |
28272 | fail: | |
28273 | return NULL; | |
28274 | } | |
28275 | ||
28276 | ||
28277 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28278 | PyObject *resultobj = 0; | |
28279 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28280 | int arg2 ; | |
28281 | bool result; | |
28282 | void *argp1 = 0 ; | |
28283 | int res1 = 0 ; | |
28284 | int val2 ; | |
28285 | int ecode2 = 0 ; | |
28286 | PyObject * obj0 = 0 ; | |
28287 | PyObject * obj1 = 0 ; | |
28288 | char * kwnames[] = { | |
28289 | (char *) "self",(char *) "function", NULL | |
28290 | }; | |
28291 | ||
28292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
28293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28294 | if (!SWIG_IsOK(res1)) { | |
28295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28296 | } | |
28297 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28298 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28299 | if (!SWIG_IsOK(ecode2)) { | |
28300 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
28301 | } | |
28302 | arg2 = static_cast< int >(val2); | |
28303 | { | |
28304 | result = (bool)(arg1)->SetLogicalFunction(arg2); | |
28305 | if (PyErr_Occurred()) SWIG_fail; | |
28306 | } | |
28307 | { | |
28308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28309 | } | |
28310 | return resultobj; | |
28311 | fail: | |
28312 | return NULL; | |
28313 | } | |
28314 | ||
28315 | ||
72ef6efb RD |
28316 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28317 | PyObject *resultobj = 0; | |
28318 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28319 | wxDouble arg2 ; | |
28320 | wxDouble arg3 ; | |
28321 | void *argp1 = 0 ; | |
28322 | int res1 = 0 ; | |
28323 | double val2 ; | |
28324 | int ecode2 = 0 ; | |
28325 | double val3 ; | |
28326 | int ecode3 = 0 ; | |
28327 | PyObject * obj0 = 0 ; | |
28328 | PyObject * obj1 = 0 ; | |
28329 | PyObject * obj2 = 0 ; | |
28330 | char * kwnames[] = { | |
28331 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
28332 | }; | |
28333 | ||
28334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28336 | if (!SWIG_IsOK(res1)) { | |
28337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28338 | } | |
28339 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28340 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28341 | if (!SWIG_IsOK(ecode2)) { | |
28342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28343 | } | |
28344 | arg2 = static_cast< wxDouble >(val2); | |
28345 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28346 | if (!SWIG_IsOK(ecode3)) { | |
28347 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28348 | } | |
28349 | arg3 = static_cast< wxDouble >(val3); | |
28350 | { | |
72ef6efb | 28351 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
28352 | if (PyErr_Occurred()) SWIG_fail; |
28353 | } | |
28354 | resultobj = SWIG_Py_Void(); | |
28355 | return resultobj; | |
28356 | fail: | |
28357 | return NULL; | |
28358 | } | |
28359 | ||
28360 | ||
28361 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28362 | PyObject *resultobj = 0; | |
28363 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28364 | wxDouble arg2 ; | |
28365 | wxDouble arg3 ; | |
28366 | void *argp1 = 0 ; | |
28367 | int res1 = 0 ; | |
28368 | double val2 ; | |
28369 | int ecode2 = 0 ; | |
28370 | double val3 ; | |
28371 | int ecode3 = 0 ; | |
28372 | PyObject * obj0 = 0 ; | |
28373 | PyObject * obj1 = 0 ; | |
28374 | PyObject * obj2 = 0 ; | |
28375 | char * kwnames[] = { | |
28376 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
28377 | }; | |
28378 | ||
28379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28380 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28381 | if (!SWIG_IsOK(res1)) { | |
28382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28383 | } | |
28384 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28385 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28386 | if (!SWIG_IsOK(ecode2)) { | |
28387 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28388 | } | |
28389 | arg2 = static_cast< wxDouble >(val2); | |
28390 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28391 | if (!SWIG_IsOK(ecode3)) { | |
28392 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28393 | } | |
28394 | arg3 = static_cast< wxDouble >(val3); | |
28395 | { | |
72ef6efb | 28396 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
28397 | if (PyErr_Occurred()) SWIG_fail; |
28398 | } | |
28399 | resultobj = SWIG_Py_Void(); | |
28400 | return resultobj; | |
28401 | fail: | |
28402 | return NULL; | |
28403 | } | |
28404 | ||
28405 | ||
28406 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28407 | PyObject *resultobj = 0; | |
28408 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28409 | wxDouble arg2 ; | |
28410 | void *argp1 = 0 ; | |
28411 | int res1 = 0 ; | |
28412 | double val2 ; | |
28413 | int ecode2 = 0 ; | |
28414 | PyObject * obj0 = 0 ; | |
28415 | PyObject * obj1 = 0 ; | |
28416 | char * kwnames[] = { | |
28417 | (char *) "self",(char *) "angle", NULL | |
28418 | }; | |
28419 | ||
28420 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
28421 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28422 | if (!SWIG_IsOK(res1)) { | |
28423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28424 | } | |
28425 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28426 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28427 | if (!SWIG_IsOK(ecode2)) { | |
28428 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28429 | } | |
28430 | arg2 = static_cast< wxDouble >(val2); | |
28431 | { | |
72ef6efb | 28432 | (arg1)->Rotate(arg2); |
72ef6efb RD |
28433 | if (PyErr_Occurred()) SWIG_fail; |
28434 | } | |
28435 | resultobj = SWIG_Py_Void(); | |
28436 | return resultobj; | |
28437 | fail: | |
28438 | return NULL; | |
28439 | } | |
28440 | ||
28441 | ||
5c8c7dd3 RD |
28442 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28443 | PyObject *resultobj = 0; | |
28444 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28445 | wxGraphicsMatrix *arg2 = 0 ; | |
28446 | void *argp1 = 0 ; | |
28447 | int res1 = 0 ; | |
28448 | void *argp2 = 0 ; | |
28449 | int res2 = 0 ; | |
28450 | PyObject * obj0 = 0 ; | |
28451 | PyObject * obj1 = 0 ; | |
28452 | char * kwnames[] = { | |
28453 | (char *) "self",(char *) "matrix", NULL | |
28454 | }; | |
28455 | ||
28456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28458 | if (!SWIG_IsOK(res1)) { | |
28459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28460 | } | |
28461 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28462 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28463 | if (!SWIG_IsOK(res2)) { | |
28464 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28465 | } | |
28466 | if (!argp2) { | |
28467 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28468 | } | |
28469 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28470 | { | |
28471 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
28472 | if (PyErr_Occurred()) SWIG_fail; | |
28473 | } | |
28474 | resultobj = SWIG_Py_Void(); | |
28475 | return resultobj; | |
28476 | fail: | |
28477 | return NULL; | |
28478 | } | |
28479 | ||
28480 | ||
28481 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28482 | PyObject *resultobj = 0; | |
28483 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28484 | wxGraphicsMatrix *arg2 = 0 ; | |
28485 | void *argp1 = 0 ; | |
28486 | int res1 = 0 ; | |
28487 | void *argp2 = 0 ; | |
28488 | int res2 = 0 ; | |
28489 | PyObject * obj0 = 0 ; | |
28490 | PyObject * obj1 = 0 ; | |
28491 | char * kwnames[] = { | |
28492 | (char *) "self",(char *) "matrix", NULL | |
28493 | }; | |
28494 | ||
28495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28497 | if (!SWIG_IsOK(res1)) { | |
28498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28499 | } | |
28500 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28501 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28502 | if (!SWIG_IsOK(res2)) { | |
28503 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28504 | } | |
28505 | if (!argp2) { | |
28506 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28507 | } | |
28508 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28509 | { | |
28510 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
28511 | if (PyErr_Occurred()) SWIG_fail; | |
28512 | } | |
28513 | resultobj = SWIG_Py_Void(); | |
28514 | return resultobj; | |
28515 | fail: | |
28516 | return NULL; | |
28517 | } | |
28518 | ||
28519 | ||
28520 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28521 | PyObject *resultobj = 0; | |
28522 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28523 | wxGraphicsMatrix result; | |
28524 | void *argp1 = 0 ; | |
28525 | int res1 = 0 ; | |
28526 | PyObject *swig_obj[1] ; | |
28527 | ||
28528 | if (!args) SWIG_fail; | |
28529 | swig_obj[0] = args; | |
28530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28531 | if (!SWIG_IsOK(res1)) { | |
28532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28533 | } | |
28534 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28535 | { | |
28536 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
28537 | if (PyErr_Occurred()) SWIG_fail; | |
28538 | } | |
28539 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
28540 | return resultobj; | |
28541 | fail: | |
28542 | return NULL; | |
28543 | } | |
28544 | ||
28545 | ||
70d7cb34 RD |
28546 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
28547 | PyObject *resultobj = 0; | |
28548 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28549 | wxGraphicsPen *arg2 = 0 ; | |
28550 | void *argp1 = 0 ; | |
28551 | int res1 = 0 ; | |
28552 | void *argp2 = 0 ; | |
28553 | int res2 = 0 ; | |
28554 | ||
28555 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28557 | if (!SWIG_IsOK(res1)) { | |
28558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28559 | } | |
28560 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28561 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
28562 | if (!SWIG_IsOK(res2)) { | |
28563 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28564 | } | |
28565 | if (!argp2) { | |
28566 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28567 | } | |
28568 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
28569 | { | |
28570 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
28571 | if (PyErr_Occurred()) SWIG_fail; | |
28572 | } | |
28573 | resultobj = SWIG_Py_Void(); | |
28574 | return resultobj; | |
28575 | fail: | |
28576 | return NULL; | |
28577 | } | |
28578 | ||
28579 | ||
28580 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28581 | PyObject *resultobj = 0; |
28582 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28583 | wxPen *arg2 = 0 ; | |
28584 | void *argp1 = 0 ; | |
28585 | int res1 = 0 ; | |
28586 | void *argp2 = 0 ; | |
28587 | int res2 = 0 ; | |
72ef6efb | 28588 | |
70d7cb34 RD |
28589 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28590 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28591 | if (!SWIG_IsOK(res1)) { |
28592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28593 | } | |
28594 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28595 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
28596 | if (!SWIG_IsOK(res2)) { |
28597 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28598 | } | |
28599 | if (!argp2) { | |
28600 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28601 | } | |
28602 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
28603 | { | |
72ef6efb | 28604 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
28605 | if (PyErr_Occurred()) SWIG_fail; |
28606 | } | |
28607 | resultobj = SWIG_Py_Void(); | |
28608 | return resultobj; | |
28609 | fail: | |
28610 | return NULL; | |
28611 | } | |
28612 | ||
28613 | ||
70d7cb34 RD |
28614 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
28615 | int argc; | |
28616 | PyObject *argv[3]; | |
28617 | ||
28618 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
28619 | --argc; | |
28620 | if (argc == 2) { | |
28621 | int _v = 0; | |
28622 | { | |
28623 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
28624 | _v = SWIG_CheckState(res); | |
28625 | } | |
28626 | if (!_v) goto check_1; | |
28627 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
28628 | } | |
28629 | check_1: | |
28630 | ||
28631 | if (argc == 2) { | |
28632 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
28633 | } | |
28634 | ||
28635 | fail: | |
28636 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
28637 | return NULL; | |
28638 | } | |
28639 | ||
28640 | ||
28641 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28642 | PyObject *resultobj = 0; | |
28643 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28644 | wxGraphicsBrush *arg2 = 0 ; | |
28645 | void *argp1 = 0 ; | |
28646 | int res1 = 0 ; | |
28647 | void *argp2 = 0 ; | |
28648 | int res2 = 0 ; | |
28649 | ||
28650 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28651 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28652 | if (!SWIG_IsOK(res1)) { | |
28653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28654 | } | |
28655 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28656 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
28657 | if (!SWIG_IsOK(res2)) { | |
28658 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28659 | } | |
28660 | if (!argp2) { | |
28661 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28662 | } | |
28663 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
28664 | { | |
28665 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
28666 | if (PyErr_Occurred()) SWIG_fail; | |
28667 | } | |
28668 | resultobj = SWIG_Py_Void(); | |
28669 | return resultobj; | |
28670 | fail: | |
28671 | return NULL; | |
28672 | } | |
28673 | ||
28674 | ||
28675 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28676 | PyObject *resultobj = 0; |
28677 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28678 | wxBrush *arg2 = 0 ; | |
28679 | void *argp1 = 0 ; | |
28680 | int res1 = 0 ; | |
28681 | void *argp2 = 0 ; | |
28682 | int res2 = 0 ; | |
72ef6efb | 28683 | |
70d7cb34 RD |
28684 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28686 | if (!SWIG_IsOK(res1)) { |
28687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28688 | } | |
28689 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28690 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
28691 | if (!SWIG_IsOK(res2)) { |
28692 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28693 | } | |
28694 | if (!argp2) { | |
28695 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28696 | } | |
28697 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
28698 | { | |
72ef6efb | 28699 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28700 | if (PyErr_Occurred()) SWIG_fail; |
28701 | } | |
28702 | resultobj = SWIG_Py_Void(); | |
28703 | return resultobj; | |
28704 | fail: | |
28705 | return NULL; | |
28706 | } | |
28707 | ||
28708 | ||
70d7cb34 RD |
28709 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
28710 | int argc; | |
28711 | PyObject *argv[3]; | |
72ef6efb | 28712 | |
70d7cb34 RD |
28713 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
28714 | --argc; | |
28715 | if (argc == 2) { | |
28716 | int _v = 0; | |
28717 | { | |
28718 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
28719 | _v = SWIG_CheckState(res); | |
28720 | } | |
28721 | if (!_v) goto check_1; | |
28722 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 28723 | } |
70d7cb34 RD |
28724 | check_1: |
28725 | ||
28726 | if (argc == 2) { | |
28727 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 28728 | } |
70d7cb34 | 28729 | |
72ef6efb | 28730 | fail: |
70d7cb34 | 28731 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
28732 | return NULL; |
28733 | } | |
28734 | ||
28735 | ||
70d7cb34 | 28736 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28737 | PyObject *resultobj = 0; |
28738 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 28739 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
28740 | void *argp1 = 0 ; |
28741 | int res1 = 0 ; | |
70d7cb34 RD |
28742 | void *argp2 = 0 ; |
28743 | int res2 = 0 ; | |
72ef6efb | 28744 | |
70d7cb34 RD |
28745 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28747 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28749 | } |
28750 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28751 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
28752 | if (!SWIG_IsOK(res2)) { | |
28753 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28754 | } |
70d7cb34 RD |
28755 | if (!argp2) { |
28756 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28757 | } |
70d7cb34 | 28758 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 28759 | { |
70d7cb34 | 28760 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
28761 | if (PyErr_Occurred()) SWIG_fail; |
28762 | } | |
28763 | resultobj = SWIG_Py_Void(); | |
28764 | return resultobj; | |
28765 | fail: | |
28766 | return NULL; | |
28767 | } | |
28768 | ||
28769 | ||
70d7cb34 | 28770 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28771 | PyObject *resultobj = 0; |
28772 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28773 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
28774 | wxColour const &arg3_defvalue = *wxBLACK ; |
28775 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
28776 | void *argp1 = 0 ; |
28777 | int res1 = 0 ; | |
28778 | void *argp2 = 0 ; | |
28779 | int res2 = 0 ; | |
70d7cb34 | 28780 | wxColour temp3 ; |
72ef6efb | 28781 | |
70d7cb34 RD |
28782 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
28783 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28784 | if (!SWIG_IsOK(res1)) { |
28785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28786 | } | |
28787 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28788 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
28789 | if (!SWIG_IsOK(res2)) { |
28790 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28791 | } | |
28792 | if (!argp2) { | |
28793 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28794 | } | |
28795 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
28796 | if (swig_obj[2]) { |
28797 | { | |
28798 | arg3 = &temp3; | |
28799 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
28800 | } | |
28801 | } | |
72ef6efb | 28802 | { |
70d7cb34 | 28803 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28804 | if (PyErr_Occurred()) SWIG_fail; |
28805 | } | |
28806 | resultobj = SWIG_Py_Void(); | |
28807 | return resultobj; | |
28808 | fail: | |
28809 | return NULL; | |
28810 | } | |
28811 | ||
28812 | ||
70d7cb34 RD |
28813 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
28814 | int argc; | |
28815 | PyObject *argv[4]; | |
72ef6efb | 28816 | |
70d7cb34 RD |
28817 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
28818 | --argc; | |
28819 | if (argc == 2) { | |
28820 | int _v = 0; | |
28821 | { | |
28822 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
28823 | _v = SWIG_CheckState(res); | |
28824 | } | |
28825 | if (!_v) goto check_1; | |
28826 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 28827 | } |
70d7cb34 RD |
28828 | check_1: |
28829 | ||
28830 | if ((argc >= 2) && (argc <= 3)) { | |
28831 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 28832 | } |
70d7cb34 | 28833 | |
72ef6efb | 28834 | fail: |
70d7cb34 | 28835 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
28836 | return NULL; |
28837 | } | |
28838 | ||
28839 | ||
28840 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28841 | PyObject *resultobj = 0; | |
28842 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28843 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
28844 | void *argp1 = 0 ; |
28845 | int res1 = 0 ; | |
28846 | void *argp2 = 0 ; | |
28847 | int res2 = 0 ; | |
28848 | PyObject * obj0 = 0 ; | |
28849 | PyObject * obj1 = 0 ; | |
28850 | char * kwnames[] = { | |
28851 | (char *) "self",(char *) "path", NULL | |
28852 | }; | |
28853 | ||
28854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
28855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28856 | if (!SWIG_IsOK(res1)) { | |
28857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28858 | } | |
28859 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28860 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28861 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28862 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28863 | } | |
28864 | if (!argp2) { | |
28865 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28866 | } |
28867 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28868 | { | |
5c8c7dd3 | 28869 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
28870 | if (PyErr_Occurred()) SWIG_fail; |
28871 | } | |
28872 | resultobj = SWIG_Py_Void(); | |
28873 | return resultobj; | |
28874 | fail: | |
28875 | return NULL; | |
28876 | } | |
28877 | ||
28878 | ||
28879 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28880 | PyObject *resultobj = 0; | |
28881 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28882 | wxGraphicsPath *arg2 = 0 ; |
28883 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28884 | void *argp1 = 0 ; |
28885 | int res1 = 0 ; | |
28886 | void *argp2 = 0 ; | |
28887 | int res2 = 0 ; | |
28888 | int val3 ; | |
28889 | int ecode3 = 0 ; | |
28890 | PyObject * obj0 = 0 ; | |
28891 | PyObject * obj1 = 0 ; | |
28892 | PyObject * obj2 = 0 ; | |
28893 | char * kwnames[] = { | |
28894 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28895 | }; | |
28896 | ||
28897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28899 | if (!SWIG_IsOK(res1)) { | |
28900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28901 | } | |
28902 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28903 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28904 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28905 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28906 | } | |
28907 | if (!argp2) { | |
28908 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28909 | } |
28910 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28911 | if (obj2) { | |
28912 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28913 | if (!SWIG_IsOK(ecode3)) { | |
28914 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
28915 | } | |
28916 | arg3 = static_cast< int >(val3); | |
28917 | } | |
28918 | { | |
5c8c7dd3 | 28919 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28920 | if (PyErr_Occurred()) SWIG_fail; |
28921 | } | |
28922 | resultobj = SWIG_Py_Void(); | |
28923 | return resultobj; | |
28924 | fail: | |
28925 | return NULL; | |
28926 | } | |
28927 | ||
28928 | ||
28929 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28930 | PyObject *resultobj = 0; | |
28931 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28932 | wxGraphicsPath *arg2 = 0 ; |
28933 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28934 | void *argp1 = 0 ; |
28935 | int res1 = 0 ; | |
28936 | void *argp2 = 0 ; | |
28937 | int res2 = 0 ; | |
28938 | int val3 ; | |
28939 | int ecode3 = 0 ; | |
28940 | PyObject * obj0 = 0 ; | |
28941 | PyObject * obj1 = 0 ; | |
28942 | PyObject * obj2 = 0 ; | |
28943 | char * kwnames[] = { | |
28944 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28945 | }; | |
28946 | ||
28947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28949 | if (!SWIG_IsOK(res1)) { | |
28950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28951 | } | |
28952 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28953 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28954 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28955 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28956 | } | |
28957 | if (!argp2) { | |
28958 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28959 | } |
28960 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28961 | if (obj2) { | |
28962 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28963 | if (!SWIG_IsOK(ecode3)) { | |
28964 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
28965 | } | |
28966 | arg3 = static_cast< int >(val3); | |
28967 | } | |
28968 | { | |
5c8c7dd3 | 28969 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28970 | if (PyErr_Occurred()) SWIG_fail; |
28971 | } | |
28972 | resultobj = SWIG_Py_Void(); | |
28973 | return resultobj; | |
28974 | fail: | |
28975 | return NULL; | |
28976 | } | |
28977 | ||
28978 | ||
b39fe951 | 28979 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28980 | PyObject *resultobj = 0; |
28981 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28982 | wxString *arg2 = 0 ; | |
28983 | wxDouble arg3 ; | |
28984 | wxDouble arg4 ; | |
f89238b9 RD |
28985 | wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ; |
28986 | wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ; | |
72ef6efb RD |
28987 | void *argp1 = 0 ; |
28988 | int res1 = 0 ; | |
28989 | bool temp2 = false ; | |
28990 | double val3 ; | |
28991 | int ecode3 = 0 ; | |
28992 | double val4 ; | |
28993 | int ecode4 = 0 ; | |
f89238b9 RD |
28994 | void *argp5 = 0 ; |
28995 | int res5 = 0 ; | |
b39fe951 RD |
28996 | PyObject * obj0 = 0 ; |
28997 | PyObject * obj1 = 0 ; | |
28998 | PyObject * obj2 = 0 ; | |
28999 | PyObject * obj3 = 0 ; | |
f89238b9 | 29000 | PyObject * obj4 = 0 ; |
b39fe951 | 29001 | char * kwnames[] = { |
f89238b9 | 29002 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL |
b39fe951 | 29003 | }; |
72ef6efb | 29004 | |
f89238b9 | 29005 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
b39fe951 | 29006 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb RD |
29007 | if (!SWIG_IsOK(res1)) { |
29008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29009 | } | |
29010 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29011 | { | |
b39fe951 | 29012 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29013 | if (arg2 == NULL) SWIG_fail; |
29014 | temp2 = true; | |
29015 | } | |
b39fe951 | 29016 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
29017 | if (!SWIG_IsOK(ecode3)) { |
29018 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29019 | } | |
29020 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29021 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
29022 | if (!SWIG_IsOK(ecode4)) { |
29023 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29024 | } | |
29025 | arg4 = static_cast< wxDouble >(val4); | |
f89238b9 RD |
29026 | if (obj4) { |
29027 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29028 | if (!SWIG_IsOK(res5)) { | |
29029 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29030 | } | |
29031 | if (!argp5) { | |
29032 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29033 | } | |
29034 | arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5); | |
29035 | } | |
72ef6efb | 29036 | { |
f89238b9 | 29037 | wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5); |
72ef6efb RD |
29038 | if (PyErr_Occurred()) SWIG_fail; |
29039 | } | |
29040 | resultobj = SWIG_Py_Void(); | |
29041 | { | |
29042 | if (temp2) | |
29043 | delete arg2; | |
29044 | } | |
29045 | return resultobj; | |
29046 | fail: | |
29047 | { | |
29048 | if (temp2) | |
29049 | delete arg2; | |
29050 | } | |
29051 | return NULL; | |
29052 | } | |
29053 | ||
29054 | ||
b39fe951 | 29055 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29056 | PyObject *resultobj = 0; |
29057 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29058 | wxString *arg2 = 0 ; | |
29059 | wxDouble arg3 ; | |
29060 | wxDouble arg4 ; | |
29061 | wxDouble arg5 ; | |
f89238b9 RD |
29062 | wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ; |
29063 | wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ; | |
72ef6efb RD |
29064 | void *argp1 = 0 ; |
29065 | int res1 = 0 ; | |
29066 | bool temp2 = false ; | |
29067 | double val3 ; | |
29068 | int ecode3 = 0 ; | |
29069 | double val4 ; | |
29070 | int ecode4 = 0 ; | |
29071 | double val5 ; | |
29072 | int ecode5 = 0 ; | |
f89238b9 RD |
29073 | void *argp6 = 0 ; |
29074 | int res6 = 0 ; | |
b39fe951 RD |
29075 | PyObject * obj0 = 0 ; |
29076 | PyObject * obj1 = 0 ; | |
29077 | PyObject * obj2 = 0 ; | |
29078 | PyObject * obj3 = 0 ; | |
29079 | PyObject * obj4 = 0 ; | |
f89238b9 | 29080 | PyObject * obj5 = 0 ; |
b39fe951 | 29081 | char * kwnames[] = { |
f89238b9 | 29082 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL |
b39fe951 | 29083 | }; |
72ef6efb | 29084 | |
f89238b9 | 29085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
b39fe951 | 29086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb | 29087 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 29088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29089 | } |
29090 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29091 | { | |
b39fe951 | 29092 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29093 | if (arg2 == NULL) SWIG_fail; |
29094 | temp2 = true; | |
29095 | } | |
b39fe951 | 29096 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 29097 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 29098 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29099 | } |
29100 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29101 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 29102 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 29103 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29104 | } |
29105 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 29106 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 29107 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 29108 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29109 | } |
29110 | arg5 = static_cast< wxDouble >(val5); | |
f89238b9 RD |
29111 | if (obj5) { |
29112 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29113 | if (!SWIG_IsOK(res6)) { | |
29114 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29115 | } | |
29116 | if (!argp6) { | |
29117 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29118 | } | |
29119 | arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6); | |
29120 | } | |
72ef6efb | 29121 | { |
f89238b9 | 29122 | wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6); |
72ef6efb RD |
29123 | if (PyErr_Occurred()) SWIG_fail; |
29124 | } | |
29125 | resultobj = SWIG_Py_Void(); | |
29126 | { | |
29127 | if (temp2) | |
29128 | delete arg2; | |
29129 | } | |
29130 | return resultobj; | |
29131 | fail: | |
29132 | { | |
29133 | if (temp2) | |
29134 | delete arg2; | |
29135 | } | |
29136 | return NULL; | |
29137 | } | |
29138 | ||
29139 | ||
be68621e | 29140 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29141 | PyObject *resultobj = 0; |
29142 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29143 | wxString *arg2 = 0 ; | |
29144 | wxDouble *arg3 = (wxDouble *) 0 ; | |
29145 | wxDouble *arg4 = (wxDouble *) 0 ; | |
29146 | wxDouble *arg5 = (wxDouble *) 0 ; | |
29147 | wxDouble *arg6 = (wxDouble *) 0 ; | |
29148 | void *argp1 = 0 ; | |
29149 | int res1 = 0 ; | |
29150 | bool temp2 = false ; | |
29151 | wxDouble temp3 ; | |
29152 | int res3 = SWIG_TMPOBJ ; | |
29153 | wxDouble temp4 ; | |
29154 | int res4 = SWIG_TMPOBJ ; | |
29155 | wxDouble temp5 ; | |
29156 | int res5 = SWIG_TMPOBJ ; | |
29157 | wxDouble temp6 ; | |
29158 | int res6 = SWIG_TMPOBJ ; | |
29159 | PyObject * obj0 = 0 ; | |
29160 | PyObject * obj1 = 0 ; | |
29161 | char * kwnames[] = { | |
29162 | (char *) "self",(char *) "text", NULL | |
29163 | }; | |
29164 | ||
29165 | arg3 = &temp3; | |
29166 | arg4 = &temp4; | |
29167 | arg5 = &temp5; | |
29168 | arg6 = &temp6; | |
be68621e | 29169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29170 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29171 | if (!SWIG_IsOK(res1)) { | |
be68621e | 29172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29173 | } |
29174 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29175 | { | |
29176 | arg2 = wxString_in_helper(obj1); | |
29177 | if (arg2 == NULL) SWIG_fail; | |
29178 | temp2 = true; | |
29179 | } | |
29180 | { | |
72ef6efb | 29181 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29182 | if (PyErr_Occurred()) SWIG_fail; |
29183 | } | |
29184 | resultobj = SWIG_Py_Void(); | |
29185 | if (SWIG_IsTmpObj(res3)) { | |
29186 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
29187 | } else { | |
29188 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29189 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
29190 | } | |
29191 | if (SWIG_IsTmpObj(res4)) { | |
29192 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
29193 | } else { | |
29194 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29195 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
29196 | } | |
29197 | if (SWIG_IsTmpObj(res5)) { | |
29198 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
29199 | } else { | |
29200 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29201 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
29202 | } | |
29203 | if (SWIG_IsTmpObj(res6)) { | |
29204 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
29205 | } else { | |
29206 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29207 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
29208 | } | |
29209 | { | |
29210 | if (temp2) | |
29211 | delete arg2; | |
29212 | } | |
29213 | return resultobj; | |
29214 | fail: | |
29215 | { | |
29216 | if (temp2) | |
29217 | delete arg2; | |
29218 | } | |
29219 | return NULL; | |
29220 | } | |
29221 | ||
29222 | ||
be68621e RD |
29223 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29224 | PyObject *resultobj = 0; | |
29225 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29226 | wxString *arg2 = 0 ; | |
29227 | PyObject *result = 0 ; | |
29228 | void *argp1 = 0 ; | |
29229 | int res1 = 0 ; | |
29230 | bool temp2 = false ; | |
29231 | PyObject * obj0 = 0 ; | |
29232 | PyObject * obj1 = 0 ; | |
29233 | char * kwnames[] = { | |
29234 | (char *) "self",(char *) "text", NULL | |
29235 | }; | |
29236 | ||
29237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
29238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29239 | if (!SWIG_IsOK(res1)) { | |
29240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29241 | } | |
29242 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29243 | { | |
29244 | arg2 = wxString_in_helper(obj1); | |
29245 | if (arg2 == NULL) SWIG_fail; | |
29246 | temp2 = true; | |
29247 | } | |
29248 | { | |
29249 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
29250 | if (PyErr_Occurred()) SWIG_fail; | |
29251 | } | |
29252 | resultobj = result; | |
29253 | { | |
29254 | if (temp2) | |
29255 | delete arg2; | |
29256 | } | |
29257 | return resultobj; | |
29258 | fail: | |
29259 | { | |
29260 | if (temp2) | |
29261 | delete arg2; | |
29262 | } | |
29263 | return NULL; | |
29264 | } | |
29265 | ||
29266 | ||
72ef6efb RD |
29267 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29268 | PyObject *resultobj = 0; | |
29269 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29270 | wxString *arg2 = 0 ; | |
b39fe951 | 29271 | wxArrayDouble result; |
72ef6efb RD |
29272 | void *argp1 = 0 ; |
29273 | int res1 = 0 ; | |
29274 | bool temp2 = false ; | |
72ef6efb RD |
29275 | PyObject * obj0 = 0 ; |
29276 | PyObject * obj1 = 0 ; | |
72ef6efb | 29277 | char * kwnames[] = { |
b39fe951 | 29278 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
29279 | }; |
29280 | ||
b39fe951 | 29281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29283 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 29284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29285 | } |
29286 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29287 | { | |
29288 | arg2 = wxString_in_helper(obj1); | |
29289 | if (arg2 == NULL) SWIG_fail; | |
29290 | temp2 = true; | |
29291 | } | |
72ef6efb | 29292 | { |
b39fe951 | 29293 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
29294 | if (PyErr_Occurred()) SWIG_fail; |
29295 | } | |
b39fe951 RD |
29296 | { |
29297 | resultobj = wxArrayDouble2PyList_helper(result); | |
29298 | } | |
72ef6efb RD |
29299 | { |
29300 | if (temp2) | |
29301 | delete arg2; | |
29302 | } | |
29303 | return resultobj; | |
29304 | fail: | |
29305 | { | |
29306 | if (temp2) | |
29307 | delete arg2; | |
29308 | } | |
29309 | return NULL; | |
29310 | } | |
29311 | ||
29312 | ||
29313 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29314 | PyObject *resultobj = 0; | |
29315 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29316 | wxBitmap *arg2 = 0 ; | |
29317 | wxDouble arg3 ; | |
29318 | wxDouble arg4 ; | |
29319 | wxDouble arg5 ; | |
29320 | wxDouble arg6 ; | |
29321 | void *argp1 = 0 ; | |
29322 | int res1 = 0 ; | |
29323 | void *argp2 = 0 ; | |
29324 | int res2 = 0 ; | |
29325 | double val3 ; | |
29326 | int ecode3 = 0 ; | |
29327 | double val4 ; | |
29328 | int ecode4 = 0 ; | |
29329 | double val5 ; | |
29330 | int ecode5 = 0 ; | |
29331 | double val6 ; | |
29332 | int ecode6 = 0 ; | |
29333 | PyObject * obj0 = 0 ; | |
29334 | PyObject * obj1 = 0 ; | |
29335 | PyObject * obj2 = 0 ; | |
29336 | PyObject * obj3 = 0 ; | |
29337 | PyObject * obj4 = 0 ; | |
29338 | PyObject * obj5 = 0 ; | |
29339 | char * kwnames[] = { | |
29340 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29341 | }; | |
29342 | ||
29343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29345 | if (!SWIG_IsOK(res1)) { | |
29346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29347 | } | |
29348 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29349 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
29350 | if (!SWIG_IsOK(res2)) { | |
29351 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29352 | } | |
29353 | if (!argp2) { | |
29354 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29355 | } | |
29356 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
29357 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29358 | if (!SWIG_IsOK(ecode3)) { | |
29359 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29360 | } | |
29361 | arg3 = static_cast< wxDouble >(val3); | |
29362 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29363 | if (!SWIG_IsOK(ecode4)) { | |
29364 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29365 | } | |
29366 | arg4 = static_cast< wxDouble >(val4); | |
29367 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29368 | if (!SWIG_IsOK(ecode5)) { | |
29369 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29370 | } | |
29371 | arg5 = static_cast< wxDouble >(val5); | |
29372 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29373 | if (!SWIG_IsOK(ecode6)) { | |
29374 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29375 | } | |
29376 | arg6 = static_cast< wxDouble >(val6); | |
29377 | { | |
72ef6efb | 29378 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29379 | if (PyErr_Occurred()) SWIG_fail; |
29380 | } | |
29381 | resultobj = SWIG_Py_Void(); | |
29382 | return resultobj; | |
29383 | fail: | |
29384 | return NULL; | |
29385 | } | |
29386 | ||
29387 | ||
29388 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29389 | PyObject *resultobj = 0; | |
29390 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29391 | wxIcon *arg2 = 0 ; | |
29392 | wxDouble arg3 ; | |
29393 | wxDouble arg4 ; | |
29394 | wxDouble arg5 ; | |
29395 | wxDouble arg6 ; | |
29396 | void *argp1 = 0 ; | |
29397 | int res1 = 0 ; | |
29398 | void *argp2 = 0 ; | |
29399 | int res2 = 0 ; | |
29400 | double val3 ; | |
29401 | int ecode3 = 0 ; | |
29402 | double val4 ; | |
29403 | int ecode4 = 0 ; | |
29404 | double val5 ; | |
29405 | int ecode5 = 0 ; | |
70d7cb34 RD |
29406 | double val6 ; |
29407 | int ecode6 = 0 ; | |
29408 | PyObject * obj0 = 0 ; | |
29409 | PyObject * obj1 = 0 ; | |
29410 | PyObject * obj2 = 0 ; | |
29411 | PyObject * obj3 = 0 ; | |
29412 | PyObject * obj4 = 0 ; | |
29413 | PyObject * obj5 = 0 ; | |
29414 | char * kwnames[] = { | |
29415 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29416 | }; | |
29417 | ||
29418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29420 | if (!SWIG_IsOK(res1)) { | |
29421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29422 | } | |
29423 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29424 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
29425 | if (!SWIG_IsOK(res2)) { | |
29426 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29427 | } | |
29428 | if (!argp2) { | |
29429 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29430 | } | |
29431 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
29432 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29433 | if (!SWIG_IsOK(ecode3)) { | |
29434 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29435 | } | |
29436 | arg3 = static_cast< wxDouble >(val3); | |
29437 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29438 | if (!SWIG_IsOK(ecode4)) { | |
29439 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29440 | } | |
29441 | arg4 = static_cast< wxDouble >(val4); | |
29442 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29443 | if (!SWIG_IsOK(ecode5)) { | |
29444 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29445 | } | |
29446 | arg5 = static_cast< wxDouble >(val5); | |
29447 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29448 | if (!SWIG_IsOK(ecode6)) { | |
29449 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29450 | } | |
29451 | arg6 = static_cast< wxDouble >(val6); | |
29452 | { | |
29453 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
29454 | if (PyErr_Occurred()) SWIG_fail; | |
29455 | } | |
29456 | resultobj = SWIG_Py_Void(); | |
29457 | return resultobj; | |
29458 | fail: | |
29459 | return NULL; | |
29460 | } | |
29461 | ||
29462 | ||
29463 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29464 | PyObject *resultobj = 0; | |
29465 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29466 | wxDouble arg2 ; | |
29467 | wxDouble arg3 ; | |
29468 | wxDouble arg4 ; | |
29469 | wxDouble arg5 ; | |
29470 | void *argp1 = 0 ; | |
29471 | int res1 = 0 ; | |
29472 | double val2 ; | |
29473 | int ecode2 = 0 ; | |
29474 | double val3 ; | |
29475 | int ecode3 = 0 ; | |
29476 | double val4 ; | |
29477 | int ecode4 = 0 ; | |
29478 | double val5 ; | |
29479 | int ecode5 = 0 ; | |
29480 | PyObject * obj0 = 0 ; | |
29481 | PyObject * obj1 = 0 ; | |
29482 | PyObject * obj2 = 0 ; | |
29483 | PyObject * obj3 = 0 ; | |
29484 | PyObject * obj4 = 0 ; | |
29485 | char * kwnames[] = { | |
29486 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
29487 | }; | |
29488 | ||
29489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29491 | if (!SWIG_IsOK(res1)) { | |
29492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29493 | } | |
29494 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29495 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29496 | if (!SWIG_IsOK(ecode2)) { | |
29497 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29498 | } | |
29499 | arg2 = static_cast< wxDouble >(val2); | |
29500 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29501 | if (!SWIG_IsOK(ecode3)) { | |
29502 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29503 | } | |
29504 | arg3 = static_cast< wxDouble >(val3); | |
29505 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29506 | if (!SWIG_IsOK(ecode4)) { | |
29507 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29508 | } | |
29509 | arg4 = static_cast< wxDouble >(val4); | |
29510 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29511 | if (!SWIG_IsOK(ecode5)) { | |
29512 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29513 | } | |
29514 | arg5 = static_cast< wxDouble >(val5); | |
29515 | { | |
29516 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
29517 | if (PyErr_Occurred()) SWIG_fail; | |
29518 | } | |
29519 | resultobj = SWIG_Py_Void(); | |
29520 | return resultobj; | |
29521 | fail: | |
29522 | return NULL; | |
29523 | } | |
29524 | ||
29525 | ||
29526 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29527 | PyObject *resultobj = 0; | |
29528 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29529 | size_t arg2 ; | |
29530 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
29531 | void *argp1 = 0 ; | |
29532 | int res1 = 0 ; | |
29533 | PyObject * obj0 = 0 ; | |
29534 | PyObject * obj1 = 0 ; | |
29535 | char * kwnames[] = { | |
29536 | (char *) "self",(char *) "points", NULL | |
29537 | }; | |
29538 | ||
29539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
29540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29541 | if (!SWIG_IsOK(res1)) { | |
29542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29543 | } | |
29544 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29545 | { | |
29546 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29547 | if (arg3 == NULL) SWIG_fail; | |
29548 | } | |
29549 | { | |
29550 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
29551 | if (PyErr_Occurred()) SWIG_fail; | |
29552 | } | |
29553 | resultobj = SWIG_Py_Void(); | |
29554 | { | |
29555 | if (arg3) delete [] arg3; | |
29556 | } | |
29557 | return resultobj; | |
29558 | fail: | |
29559 | { | |
29560 | if (arg3) delete [] arg3; | |
29561 | } | |
29562 | return NULL; | |
29563 | } | |
29564 | ||
29565 | ||
29566 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29567 | PyObject *resultobj = 0; | |
29568 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29569 | PyObject *arg2 = (PyObject *) 0 ; | |
29570 | PyObject *arg3 = (PyObject *) 0 ; | |
29571 | void *argp1 = 0 ; | |
29572 | int res1 = 0 ; | |
29573 | PyObject * obj0 = 0 ; | |
29574 | PyObject * obj1 = 0 ; | |
29575 | PyObject * obj2 = 0 ; | |
29576 | char * kwnames[] = { | |
29577 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
29578 | }; | |
29579 | ||
29580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29582 | if (!SWIG_IsOK(res1)) { | |
29583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29584 | } | |
29585 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29586 | arg2 = obj1; | |
29587 | arg3 = obj2; | |
29588 | { | |
29589 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
29590 | if (PyErr_Occurred()) SWIG_fail; | |
29591 | } | |
29592 | resultobj = SWIG_Py_Void(); | |
29593 | return resultobj; | |
29594 | fail: | |
29595 | return NULL; | |
29596 | } | |
29597 | ||
29598 | ||
29599 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29600 | PyObject *resultobj = 0; | |
29601 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29602 | size_t arg2 ; | |
29603 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
5c8c7dd3 | 29604 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
29605 | void *argp1 = 0 ; |
29606 | int res1 = 0 ; | |
29607 | int val4 ; | |
29608 | int ecode4 = 0 ; | |
29609 | PyObject * obj0 = 0 ; | |
29610 | PyObject * obj1 = 0 ; | |
29611 | PyObject * obj2 = 0 ; | |
29612 | char * kwnames[] = { | |
29613 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
29614 | }; | |
29615 | ||
29616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29618 | if (!SWIG_IsOK(res1)) { | |
29619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29620 | } | |
29621 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29622 | { | |
29623 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29624 | if (arg3 == NULL) SWIG_fail; | |
29625 | } | |
29626 | if (obj2) { | |
29627 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
29628 | if (!SWIG_IsOK(ecode4)) { | |
29629 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
29630 | } | |
29631 | arg4 = static_cast< int >(val4); | |
29632 | } | |
29633 | { | |
29634 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
29635 | if (PyErr_Occurred()) SWIG_fail; | |
29636 | } | |
29637 | resultobj = SWIG_Py_Void(); | |
29638 | { | |
29639 | if (arg3) delete [] arg3; | |
29640 | } | |
29641 | return resultobj; | |
29642 | fail: | |
29643 | { | |
29644 | if (arg3) delete [] arg3; | |
29645 | } | |
29646 | return NULL; | |
29647 | } | |
29648 | ||
29649 | ||
29650 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29651 | PyObject *resultobj = 0; | |
29652 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29653 | wxDouble arg2 ; | |
29654 | wxDouble arg3 ; | |
29655 | wxDouble arg4 ; | |
29656 | wxDouble arg5 ; | |
29657 | void *argp1 = 0 ; | |
29658 | int res1 = 0 ; | |
29659 | double val2 ; | |
29660 | int ecode2 = 0 ; | |
29661 | double val3 ; | |
29662 | int ecode3 = 0 ; | |
29663 | double val4 ; | |
29664 | int ecode4 = 0 ; | |
29665 | double val5 ; | |
29666 | int ecode5 = 0 ; | |
29667 | PyObject * obj0 = 0 ; | |
29668 | PyObject * obj1 = 0 ; | |
29669 | PyObject * obj2 = 0 ; | |
29670 | PyObject * obj3 = 0 ; | |
29671 | PyObject * obj4 = 0 ; | |
29672 | char * kwnames[] = { | |
29673 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29674 | }; | |
29675 | ||
29676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29678 | if (!SWIG_IsOK(res1)) { | |
29679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29680 | } | |
29681 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29682 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29683 | if (!SWIG_IsOK(ecode2)) { | |
29684 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29685 | } | |
29686 | arg2 = static_cast< wxDouble >(val2); | |
29687 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29688 | if (!SWIG_IsOK(ecode3)) { | |
29689 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29690 | } | |
29691 | arg3 = static_cast< wxDouble >(val3); | |
29692 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29693 | if (!SWIG_IsOK(ecode4)) { | |
29694 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29695 | } | |
29696 | arg4 = static_cast< wxDouble >(val4); | |
29697 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29698 | if (!SWIG_IsOK(ecode5)) { | |
29699 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29700 | } | |
29701 | arg5 = static_cast< wxDouble >(val5); | |
29702 | { | |
29703 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
29704 | if (PyErr_Occurred()) SWIG_fail; | |
29705 | } | |
29706 | resultobj = SWIG_Py_Void(); | |
29707 | return resultobj; | |
29708 | fail: | |
29709 | return NULL; | |
29710 | } | |
29711 | ||
29712 | ||
29713 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29714 | PyObject *resultobj = 0; | |
29715 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29716 | wxDouble arg2 ; | |
29717 | wxDouble arg3 ; | |
29718 | wxDouble arg4 ; | |
29719 | wxDouble arg5 ; | |
29720 | void *argp1 = 0 ; | |
29721 | int res1 = 0 ; | |
29722 | double val2 ; | |
29723 | int ecode2 = 0 ; | |
29724 | double val3 ; | |
29725 | int ecode3 = 0 ; | |
29726 | double val4 ; | |
29727 | int ecode4 = 0 ; | |
29728 | double val5 ; | |
29729 | int ecode5 = 0 ; | |
72ef6efb RD |
29730 | PyObject * obj0 = 0 ; |
29731 | PyObject * obj1 = 0 ; | |
29732 | PyObject * obj2 = 0 ; | |
29733 | PyObject * obj3 = 0 ; | |
29734 | PyObject * obj4 = 0 ; | |
72ef6efb | 29735 | char * kwnames[] = { |
70d7cb34 | 29736 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
29737 | }; |
29738 | ||
70d7cb34 | 29739 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
29740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29741 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29743 | } |
29744 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29745 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
29746 | if (!SWIG_IsOK(ecode2)) { | |
29747 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29748 | } | |
29749 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
29750 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
29751 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29752 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29753 | } |
29754 | arg3 = static_cast< wxDouble >(val3); | |
29755 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29756 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29757 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29758 | } |
29759 | arg4 = static_cast< wxDouble >(val4); | |
29760 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29761 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29762 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29763 | } |
29764 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 29765 | { |
70d7cb34 | 29766 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
29767 | if (PyErr_Occurred()) SWIG_fail; |
29768 | } | |
29769 | resultobj = SWIG_Py_Void(); | |
29770 | return resultobj; | |
29771 | fail: | |
29772 | return NULL; | |
29773 | } | |
29774 | ||
29775 | ||
70d7cb34 | 29776 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29777 | PyObject *resultobj = 0; |
29778 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29779 | wxDouble arg2 ; | |
29780 | wxDouble arg3 ; | |
29781 | wxDouble arg4 ; | |
29782 | wxDouble arg5 ; | |
70d7cb34 | 29783 | wxDouble arg6 ; |
72ef6efb RD |
29784 | void *argp1 = 0 ; |
29785 | int res1 = 0 ; | |
29786 | double val2 ; | |
29787 | int ecode2 = 0 ; | |
29788 | double val3 ; | |
29789 | int ecode3 = 0 ; | |
29790 | double val4 ; | |
29791 | int ecode4 = 0 ; | |
29792 | double val5 ; | |
29793 | int ecode5 = 0 ; | |
70d7cb34 RD |
29794 | double val6 ; |
29795 | int ecode6 = 0 ; | |
72ef6efb RD |
29796 | PyObject * obj0 = 0 ; |
29797 | PyObject * obj1 = 0 ; | |
29798 | PyObject * obj2 = 0 ; | |
29799 | PyObject * obj3 = 0 ; | |
29800 | PyObject * obj4 = 0 ; | |
70d7cb34 | 29801 | PyObject * obj5 = 0 ; |
72ef6efb | 29802 | char * kwnames[] = { |
70d7cb34 | 29803 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
29804 | }; |
29805 | ||
70d7cb34 | 29806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
29807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29808 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29810 | } |
29811 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29812 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29813 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 29814 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
29815 | } |
29816 | arg2 = static_cast< wxDouble >(val2); | |
29817 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29818 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29819 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29820 | } |
29821 | arg3 = static_cast< wxDouble >(val3); | |
29822 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29823 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29824 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29825 | } |
29826 | arg4 = static_cast< wxDouble >(val4); | |
29827 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29828 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29829 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29830 | } |
29831 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
29832 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
29833 | if (!SWIG_IsOK(ecode6)) { | |
29834 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29835 | } | |
29836 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 29837 | { |
70d7cb34 | 29838 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29839 | if (PyErr_Occurred()) SWIG_fail; |
29840 | } | |
29841 | resultobj = SWIG_Py_Void(); | |
29842 | return resultobj; | |
29843 | fail: | |
29844 | return NULL; | |
29845 | } | |
29846 | ||
29847 | ||
70d7cb34 | 29848 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
29849 | PyObject *resultobj = 0; |
29850 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29851 | bool result; |
72ef6efb RD |
29852 | void *argp1 = 0 ; |
29853 | int res1 = 0 ; | |
70d7cb34 | 29854 | PyObject *swig_obj[1] ; |
72ef6efb | 29855 | |
70d7cb34 RD |
29856 | if (!args) SWIG_fail; |
29857 | swig_obj[0] = args; | |
29858 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29859 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29861 | } |
29862 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 29863 | { |
70d7cb34 RD |
29864 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
29865 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 29866 | } |
72ef6efb | 29867 | { |
70d7cb34 RD |
29868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
29869 | } | |
29870 | return resultobj; | |
29871 | fail: | |
29872 | return NULL; | |
29873 | } | |
29874 | ||
29875 | ||
29876 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29877 | PyObject *obj; | |
29878 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29879 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
29880 | return SWIG_Py_Void(); | |
29881 | } | |
29882 | ||
29883 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29884 | PyObject *resultobj = 0; | |
29885 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29886 | void *argp1 = 0 ; | |
29887 | int res1 = 0 ; | |
29888 | PyObject *swig_obj[1] ; | |
29889 | ||
29890 | if (!args) SWIG_fail; | |
29891 | swig_obj[0] = args; | |
29892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
29893 | if (!SWIG_IsOK(res1)) { | |
29894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29895 | } | |
29896 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29897 | { | |
29898 | delete arg1; | |
29899 | ||
72ef6efb RD |
29900 | if (PyErr_Occurred()) SWIG_fail; |
29901 | } | |
29902 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
29903 | return resultobj; |
29904 | fail: | |
29905 | return NULL; | |
29906 | } | |
29907 | ||
29908 | ||
29909 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29910 | PyObject *resultobj = 0; | |
29911 | wxGraphicsRenderer *result = 0 ; | |
29912 | ||
29913 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 29914 | { |
70d7cb34 RD |
29915 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
29916 | if (PyErr_Occurred()) SWIG_fail; | |
29917 | } | |
29918 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29919 | return resultobj; | |
29920 | fail: | |
29921 | return NULL; | |
29922 | } | |
29923 | ||
29924 | ||
29925 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29926 | PyObject *resultobj = 0; | |
29927 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29928 | wxWindowDC *arg2 = 0 ; | |
29929 | wxGraphicsContext *result = 0 ; | |
29930 | void *argp1 = 0 ; | |
29931 | int res1 = 0 ; | |
29932 | void *argp2 = 0 ; | |
29933 | int res2 = 0 ; | |
29934 | ||
29935 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29937 | if (!SWIG_IsOK(res1)) { | |
29938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29939 | } | |
29940 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29941 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
29942 | if (!SWIG_IsOK(res2)) { | |
29943 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29944 | } | |
29945 | if (!argp2) { | |
29946 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29947 | } | |
29948 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
29949 | { | |
29950 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
29951 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29952 | } |
70d7cb34 | 29953 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29954 | return resultobj; |
29955 | fail: | |
70d7cb34 RD |
29956 | return NULL; |
29957 | } | |
29958 | ||
29959 | ||
29960 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29961 | PyObject *resultobj = 0; | |
29962 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29963 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29964 | wxGraphicsContext *result = 0 ; | |
29965 | void *argp1 = 0 ; | |
29966 | int res1 = 0 ; | |
29967 | void *argp2 = 0 ; | |
29968 | int res2 = 0 ; | |
29969 | ||
29970 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29972 | if (!SWIG_IsOK(res1)) { | |
29973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29974 | } | |
29975 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29976 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29977 | if (!SWIG_IsOK(res2)) { | |
29978 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29979 | } | |
29980 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 29981 | { |
70d7cb34 RD |
29982 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
29983 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29984 | } |
70d7cb34 RD |
29985 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
29986 | return resultobj; | |
29987 | fail: | |
72ef6efb RD |
29988 | return NULL; |
29989 | } | |
29990 | ||
29991 | ||
70d7cb34 RD |
29992 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
29993 | int argc; | |
29994 | PyObject *argv[3]; | |
29995 | ||
29996 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
29997 | --argc; | |
29998 | if (argc == 2) { | |
29999 | int _v = 0; | |
30000 | { | |
30001 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
30002 | _v = SWIG_CheckState(res); | |
30003 | } | |
30004 | if (!_v) goto check_1; | |
30005 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
30006 | } | |
30007 | check_1: | |
30008 | ||
30009 | if (argc == 2) { | |
30010 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
30011 | } | |
30012 | ||
30013 | fail: | |
30014 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
30015 | return NULL; | |
30016 | } | |
30017 | ||
30018 | ||
f89238b9 RD |
30019 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30020 | PyObject *resultobj = 0; | |
30021 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30022 | wxGraphicsContext *result = 0 ; | |
30023 | void *argp1 = 0 ; | |
30024 | int res1 = 0 ; | |
30025 | PyObject *swig_obj[1] ; | |
30026 | ||
30027 | if (!args) SWIG_fail; | |
30028 | swig_obj[0] = args; | |
30029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30030 | if (!SWIG_IsOK(res1)) { | |
30031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30032 | } | |
30033 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30034 | { | |
30035 | result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext(); | |
30036 | if (PyErr_Occurred()) SWIG_fail; | |
30037 | } | |
30038 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30039 | return resultobj; | |
30040 | fail: | |
30041 | return NULL; | |
30042 | } | |
30043 | ||
30044 | ||
70d7cb34 | 30045 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30046 | PyObject *resultobj = 0; |
70d7cb34 RD |
30047 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30048 | void *arg2 = (void *) 0 ; | |
30049 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30050 | void *argp1 = 0 ; |
30051 | int res1 = 0 ; | |
70d7cb34 | 30052 | int res2 ; |
b39fe951 RD |
30053 | PyObject * obj0 = 0 ; |
30054 | PyObject * obj1 = 0 ; | |
b39fe951 | 30055 | char * kwnames[] = { |
70d7cb34 | 30056 | (char *) "self",(char *) "context", NULL |
b39fe951 | 30057 | }; |
72ef6efb | 30058 | |
70d7cb34 RD |
30059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
30060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30061 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30063 | } | |
30064 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30065 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30066 | if (!SWIG_IsOK(res2)) { | |
30067 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 30068 | } |
72ef6efb | 30069 | { |
70d7cb34 | 30070 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
30071 | if (PyErr_Occurred()) SWIG_fail; |
30072 | } | |
70d7cb34 | 30073 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30074 | return resultobj; |
30075 | fail: | |
30076 | return NULL; | |
30077 | } | |
30078 | ||
30079 | ||
70d7cb34 | 30080 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30081 | PyObject *resultobj = 0; |
70d7cb34 RD |
30082 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30083 | void *arg2 = (void *) 0 ; | |
30084 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30085 | void *argp1 = 0 ; |
30086 | int res1 = 0 ; | |
70d7cb34 | 30087 | int res2 ; |
72ef6efb RD |
30088 | PyObject * obj0 = 0 ; |
30089 | PyObject * obj1 = 0 ; | |
72ef6efb | 30090 | char * kwnames[] = { |
70d7cb34 | 30091 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
30092 | }; |
30093 | ||
70d7cb34 RD |
30094 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail; |
30095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30096 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30098 | } |
70d7cb34 RD |
30099 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
30100 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30101 | if (!SWIG_IsOK(res2)) { | |
30102 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
30103 | } |
30104 | { | |
70d7cb34 | 30105 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
30106 | if (PyErr_Occurred()) SWIG_fail; |
30107 | } | |
70d7cb34 | 30108 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30109 | return resultobj; |
30110 | fail: | |
70d7cb34 RD |
30111 | return NULL; |
30112 | } | |
30113 | ||
30114 | ||
30115 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30116 | PyObject *resultobj = 0; | |
30117 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 30118 | wxGraphicsPath result; |
70d7cb34 RD |
30119 | void *argp1 = 0 ; |
30120 | int res1 = 0 ; | |
30121 | PyObject *swig_obj[1] ; | |
30122 | ||
30123 | if (!args) SWIG_fail; | |
30124 | swig_obj[0] = args; | |
30125 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30126 | if (!SWIG_IsOK(res1)) { | |
30127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30128 | } | |
30129 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 30130 | { |
5c8c7dd3 | 30131 | result = (arg1)->CreatePath(); |
70d7cb34 | 30132 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 30133 | } |
5c8c7dd3 | 30134 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
30135 | return resultobj; |
30136 | fail: | |
72ef6efb RD |
30137 | return NULL; |
30138 | } | |
30139 | ||
30140 | ||
70d7cb34 | 30141 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30142 | PyObject *resultobj = 0; |
70d7cb34 RD |
30143 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30144 | wxDouble arg2 = (wxDouble) 1.0 ; | |
30145 | wxDouble arg3 = (wxDouble) 0.0 ; | |
30146 | wxDouble arg4 = (wxDouble) 0.0 ; | |
30147 | wxDouble arg5 = (wxDouble) 1.0 ; | |
30148 | wxDouble arg6 = (wxDouble) 0.0 ; | |
30149 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 30150 | wxGraphicsMatrix result; |
72ef6efb RD |
30151 | void *argp1 = 0 ; |
30152 | int res1 = 0 ; | |
30153 | double val2 ; | |
30154 | int ecode2 = 0 ; | |
30155 | double val3 ; | |
30156 | int ecode3 = 0 ; | |
30157 | double val4 ; | |
30158 | int ecode4 = 0 ; | |
30159 | double val5 ; | |
30160 | int ecode5 = 0 ; | |
70d7cb34 RD |
30161 | double val6 ; |
30162 | int ecode6 = 0 ; | |
30163 | double val7 ; | |
30164 | int ecode7 = 0 ; | |
72ef6efb RD |
30165 | PyObject * obj0 = 0 ; |
30166 | PyObject * obj1 = 0 ; | |
30167 | PyObject * obj2 = 0 ; | |
30168 | PyObject * obj3 = 0 ; | |
30169 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30170 | PyObject * obj5 = 0 ; |
30171 | PyObject * obj6 = 0 ; | |
72ef6efb | 30172 | char * kwnames[] = { |
70d7cb34 | 30173 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
30174 | }; |
30175 | ||
70d7cb34 RD |
30176 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30177 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30178 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30180 | } | |
30181 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30182 | if (obj1) { | |
30183 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30184 | if (!SWIG_IsOK(ecode2)) { | |
30185 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30186 | } | |
30187 | arg2 = static_cast< wxDouble >(val2); | |
30188 | } | |
30189 | if (obj2) { | |
30190 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30191 | if (!SWIG_IsOK(ecode3)) { | |
30192 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30193 | } | |
30194 | arg3 = static_cast< wxDouble >(val3); | |
30195 | } | |
30196 | if (obj3) { | |
30197 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30198 | if (!SWIG_IsOK(ecode4)) { | |
30199 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30200 | } | |
30201 | arg4 = static_cast< wxDouble >(val4); | |
30202 | } | |
30203 | if (obj4) { | |
30204 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30205 | if (!SWIG_IsOK(ecode5)) { | |
30206 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30207 | } | |
30208 | arg5 = static_cast< wxDouble >(val5); | |
30209 | } | |
30210 | if (obj5) { | |
30211 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30212 | if (!SWIG_IsOK(ecode6)) { | |
30213 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30214 | } | |
30215 | arg6 = static_cast< wxDouble >(val6); | |
30216 | } | |
30217 | if (obj6) { | |
30218 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
30219 | if (!SWIG_IsOK(ecode7)) { | |
30220 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
30221 | } | |
30222 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 30223 | } |
72ef6efb | 30224 | { |
5c8c7dd3 | 30225 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
30226 | if (PyErr_Occurred()) SWIG_fail; |
30227 | } | |
5c8c7dd3 | 30228 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30229 | return resultobj; |
30230 | fail: | |
30231 | return NULL; | |
30232 | } | |
30233 | ||
30234 | ||
70d7cb34 | 30235 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30236 | PyObject *resultobj = 0; |
70d7cb34 RD |
30237 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30238 | wxPen *arg2 = 0 ; | |
30239 | wxGraphicsPen result; | |
30240 | void *argp1 = 0 ; | |
30241 | int res1 = 0 ; | |
30242 | void *argp2 = 0 ; | |
30243 | int res2 = 0 ; | |
30244 | PyObject * obj0 = 0 ; | |
30245 | PyObject * obj1 = 0 ; | |
30246 | char * kwnames[] = { | |
30247 | (char *) "self",(char *) "pen", NULL | |
30248 | }; | |
30249 | ||
30250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
30251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30252 | if (!SWIG_IsOK(res1)) { | |
30253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30254 | } | |
30255 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30256 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
30257 | if (!SWIG_IsOK(res2)) { | |
30258 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30259 | } | |
30260 | if (!argp2) { | |
30261 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30262 | } | |
30263 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
30264 | { | |
30265 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
30266 | if (PyErr_Occurred()) SWIG_fail; | |
30267 | } | |
30268 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
30269 | return resultobj; | |
30270 | fail: | |
30271 | return NULL; | |
30272 | } | |
30273 | ||
30274 | ||
30275 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30276 | PyObject *resultobj = 0; | |
30277 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30278 | wxBrush *arg2 = 0 ; | |
30279 | wxGraphicsBrush result; | |
30280 | void *argp1 = 0 ; | |
30281 | int res1 = 0 ; | |
30282 | void *argp2 = 0 ; | |
30283 | int res2 = 0 ; | |
30284 | PyObject * obj0 = 0 ; | |
30285 | PyObject * obj1 = 0 ; | |
30286 | char * kwnames[] = { | |
30287 | (char *) "self",(char *) "brush", NULL | |
30288 | }; | |
30289 | ||
30290 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
30291 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30292 | if (!SWIG_IsOK(res1)) { | |
30293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30294 | } | |
30295 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30296 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
30297 | if (!SWIG_IsOK(res2)) { | |
30298 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30299 | } | |
30300 | if (!argp2) { | |
30301 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30302 | } | |
30303 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
30304 | { | |
30305 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
30306 | if (PyErr_Occurred()) SWIG_fail; | |
30307 | } | |
30308 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
30309 | return resultobj; | |
30310 | fail: | |
30311 | return NULL; | |
30312 | } | |
30313 | ||
30314 | ||
30315 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30316 | PyObject *resultobj = 0; | |
30317 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
30318 | wxDouble arg2 ; |
30319 | wxDouble arg3 ; | |
30320 | wxDouble arg4 ; | |
30321 | wxDouble arg5 ; | |
70d7cb34 RD |
30322 | wxColour *arg6 = 0 ; |
30323 | wxColour *arg7 = 0 ; | |
30324 | wxGraphicsBrush result; | |
72ef6efb RD |
30325 | void *argp1 = 0 ; |
30326 | int res1 = 0 ; | |
30327 | double val2 ; | |
30328 | int ecode2 = 0 ; | |
30329 | double val3 ; | |
30330 | int ecode3 = 0 ; | |
30331 | double val4 ; | |
30332 | int ecode4 = 0 ; | |
30333 | double val5 ; | |
30334 | int ecode5 = 0 ; | |
70d7cb34 RD |
30335 | wxColour temp6 ; |
30336 | wxColour temp7 ; | |
72ef6efb RD |
30337 | PyObject * obj0 = 0 ; |
30338 | PyObject * obj1 = 0 ; | |
30339 | PyObject * obj2 = 0 ; | |
30340 | PyObject * obj3 = 0 ; | |
30341 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30342 | PyObject * obj5 = 0 ; |
30343 | PyObject * obj6 = 0 ; | |
72ef6efb | 30344 | char * kwnames[] = { |
70d7cb34 | 30345 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
30346 | }; |
30347 | ||
70d7cb34 RD |
30348 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30349 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30350 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30352 | } |
70d7cb34 | 30353 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30354 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30355 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30356 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30357 | } |
30358 | arg2 = static_cast< wxDouble >(val2); | |
30359 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30360 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30361 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30362 | } |
30363 | arg3 = static_cast< wxDouble >(val3); | |
30364 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30365 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30366 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30367 | } |
30368 | arg4 = static_cast< wxDouble >(val4); | |
30369 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30370 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30371 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30372 | } |
30373 | arg5 = static_cast< wxDouble >(val5); | |
30374 | { | |
70d7cb34 RD |
30375 | arg6 = &temp6; |
30376 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
30377 | } | |
30378 | { | |
30379 | arg7 = &temp7; | |
30380 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30381 | } | |
30382 | { | |
30383 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
30384 | if (PyErr_Occurred()) SWIG_fail; |
30385 | } | |
70d7cb34 | 30386 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30387 | return resultobj; |
30388 | fail: | |
30389 | return NULL; | |
30390 | } | |
30391 | ||
30392 | ||
70d7cb34 | 30393 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30394 | PyObject *resultobj = 0; |
70d7cb34 | 30395 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
30396 | wxDouble arg2 ; |
30397 | wxDouble arg3 ; | |
30398 | wxDouble arg4 ; | |
30399 | wxDouble arg5 ; | |
30400 | wxDouble arg6 ; | |
70d7cb34 RD |
30401 | wxColour *arg7 = 0 ; |
30402 | wxColour *arg8 = 0 ; | |
30403 | wxGraphicsBrush result; | |
72ef6efb RD |
30404 | void *argp1 = 0 ; |
30405 | int res1 = 0 ; | |
30406 | double val2 ; | |
30407 | int ecode2 = 0 ; | |
30408 | double val3 ; | |
30409 | int ecode3 = 0 ; | |
30410 | double val4 ; | |
30411 | int ecode4 = 0 ; | |
30412 | double val5 ; | |
30413 | int ecode5 = 0 ; | |
30414 | double val6 ; | |
30415 | int ecode6 = 0 ; | |
70d7cb34 RD |
30416 | wxColour temp7 ; |
30417 | wxColour temp8 ; | |
72ef6efb RD |
30418 | PyObject * obj0 = 0 ; |
30419 | PyObject * obj1 = 0 ; | |
30420 | PyObject * obj2 = 0 ; | |
30421 | PyObject * obj3 = 0 ; | |
30422 | PyObject * obj4 = 0 ; | |
30423 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
30424 | PyObject * obj6 = 0 ; |
30425 | PyObject * obj7 = 0 ; | |
72ef6efb | 30426 | char * kwnames[] = { |
70d7cb34 | 30427 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
30428 | }; |
30429 | ||
70d7cb34 RD |
30430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
30431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30432 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30434 | } |
70d7cb34 | 30435 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30436 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30437 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30438 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30439 | } |
30440 | arg2 = static_cast< wxDouble >(val2); | |
30441 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30442 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30443 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30444 | } |
30445 | arg3 = static_cast< wxDouble >(val3); | |
30446 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30447 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30448 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30449 | } |
30450 | arg4 = static_cast< wxDouble >(val4); | |
30451 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30452 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30453 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30454 | } |
30455 | arg5 = static_cast< wxDouble >(val5); | |
30456 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30457 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 30458 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
30459 | } |
30460 | arg6 = static_cast< wxDouble >(val6); | |
30461 | { | |
70d7cb34 RD |
30462 | arg7 = &temp7; |
30463 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30464 | } | |
30465 | { | |
30466 | arg8 = &temp8; | |
30467 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
30468 | } | |
30469 | { | |
30470 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
30471 | if (PyErr_Occurred()) SWIG_fail; |
30472 | } | |
70d7cb34 | 30473 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30474 | return resultobj; |
30475 | fail: | |
30476 | return NULL; | |
30477 | } | |
30478 | ||
30479 | ||
70d7cb34 RD |
30480 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30481 | PyObject *resultobj = 0; | |
30482 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30483 | wxFont *arg2 = 0 ; | |
30484 | wxColour const &arg3_defvalue = *wxBLACK ; | |
30485 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
30486 | wxGraphicsFont result; | |
30487 | void *argp1 = 0 ; | |
30488 | int res1 = 0 ; | |
30489 | void *argp2 = 0 ; | |
30490 | int res2 = 0 ; | |
30491 | wxColour temp3 ; | |
30492 | PyObject * obj0 = 0 ; | |
30493 | PyObject * obj1 = 0 ; | |
30494 | PyObject * obj2 = 0 ; | |
30495 | char * kwnames[] = { | |
30496 | (char *) "self",(char *) "font",(char *) "col", NULL | |
30497 | }; | |
30498 | ||
30499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30501 | if (!SWIG_IsOK(res1)) { | |
30502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30503 | } | |
30504 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30505 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
30506 | if (!SWIG_IsOK(res2)) { | |
30507 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30508 | } | |
30509 | if (!argp2) { | |
30510 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30511 | } | |
30512 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
30513 | if (obj2) { | |
30514 | { | |
30515 | arg3 = &temp3; | |
30516 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30517 | } | |
30518 | } | |
30519 | { | |
30520 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
30521 | if (PyErr_Occurred()) SWIG_fail; | |
30522 | } | |
30523 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
30524 | return resultobj; | |
30525 | fail: | |
30526 | return NULL; | |
30527 | } | |
30528 | ||
30529 | ||
30530 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
30531 | PyObject *obj; |
30532 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 30533 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
30534 | return SWIG_Py_Void(); |
30535 | } | |
30536 | ||
48a0c021 | 30537 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
30538 | PyObject *resultobj = 0; |
30539 | wxWindowDC *arg1 = 0 ; | |
30540 | wxGCDC *result = 0 ; | |
30541 | void *argp1 = 0 ; | |
30542 | int res1 = 0 ; | |
72ef6efb | 30543 | |
48a0c021 RD |
30544 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; |
30545 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
72ef6efb RD |
30546 | if (!SWIG_IsOK(res1)) { |
30547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30548 | } | |
30549 | if (!argp1) { | |
30550 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30551 | } | |
30552 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
30553 | { | |
30554 | if (!wxPyCheckForApp()) SWIG_fail; | |
30555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30556 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
30557 | wxPyEndAllowThreads(__tstate); | |
30558 | if (PyErr_Occurred()) SWIG_fail; | |
30559 | } | |
30560 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
30561 | return resultobj; | |
30562 | fail: | |
30563 | return NULL; | |
30564 | } | |
30565 | ||
30566 | ||
48a0c021 RD |
30567 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
30568 | PyObject *resultobj = 0; | |
30569 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30570 | wxGCDC *result = 0 ; | |
30571 | void *argp1 = 0 ; | |
30572 | int res1 = 0 ; | |
30573 | ||
30574 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
30575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30576 | if (!SWIG_IsOK(res1)) { | |
30577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
30578 | } | |
30579 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
30580 | { | |
30581 | if (!wxPyCheckForApp()) SWIG_fail; | |
30582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30583 | result = (wxGCDC *)new wxGCDC(arg1); | |
30584 | wxPyEndAllowThreads(__tstate); | |
30585 | if (PyErr_Occurred()) SWIG_fail; | |
30586 | } | |
30587 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
30588 | return resultobj; | |
30589 | fail: | |
30590 | return NULL; | |
30591 | } | |
30592 | ||
30593 | ||
30594 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) { | |
30595 | int argc; | |
30596 | PyObject *argv[2]; | |
30597 | ||
30598 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail; | |
30599 | --argc; | |
30600 | if (argc == 1) { | |
30601 | int _v = 0; | |
30602 | { | |
30603 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
30604 | _v = SWIG_CheckState(res); | |
30605 | } | |
30606 | if (!_v) goto check_1; | |
30607 | return _wrap_new_GCDC__SWIG_0(self, argc, argv); | |
30608 | } | |
30609 | check_1: | |
30610 | ||
30611 | if (argc == 1) { | |
30612 | return _wrap_new_GCDC__SWIG_1(self, argc, argv); | |
30613 | } | |
30614 | ||
30615 | fail: | |
30616 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'"); | |
30617 | return NULL; | |
30618 | } | |
30619 | ||
30620 | ||
72ef6efb RD |
30621 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30622 | PyObject *resultobj = 0; | |
30623 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30624 | void *argp1 = 0 ; | |
30625 | int res1 = 0 ; | |
30626 | PyObject *swig_obj[1] ; | |
30627 | ||
30628 | if (!args) SWIG_fail; | |
30629 | swig_obj[0] = args; | |
30630 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
30631 | if (!SWIG_IsOK(res1)) { | |
30632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30633 | } | |
30634 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30635 | { | |
72ef6efb RD |
30636 | delete arg1; |
30637 | ||
72ef6efb RD |
30638 | if (PyErr_Occurred()) SWIG_fail; |
30639 | } | |
30640 | resultobj = SWIG_Py_Void(); | |
30641 | return resultobj; | |
30642 | fail: | |
30643 | return NULL; | |
30644 | } | |
30645 | ||
30646 | ||
0a27f394 | 30647 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30648 | PyObject *resultobj = 0; |
30649 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30650 | wxGraphicsContext *result = 0 ; | |
30651 | void *argp1 = 0 ; | |
30652 | int res1 = 0 ; | |
30653 | PyObject *swig_obj[1] ; | |
30654 | ||
30655 | if (!args) SWIG_fail; | |
30656 | swig_obj[0] = args; | |
30657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30658 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 30659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
30660 | } |
30661 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30662 | { | |
0a27f394 | 30663 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
30664 | if (PyErr_Occurred()) SWIG_fail; |
30665 | } | |
30666 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30667 | return resultobj; | |
30668 | fail: | |
30669 | return NULL; | |
30670 | } | |
30671 | ||
30672 | ||
0a27f394 RD |
30673 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30674 | PyObject *resultobj = 0; | |
30675 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30676 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
30677 | void *argp1 = 0 ; | |
30678 | int res1 = 0 ; | |
30679 | void *argp2 = 0 ; | |
30680 | int res2 = 0 ; | |
30681 | PyObject * obj0 = 0 ; | |
30682 | PyObject * obj1 = 0 ; | |
30683 | char * kwnames[] = { | |
30684 | (char *) "self",(char *) "ctx", NULL | |
30685 | }; | |
30686 | ||
30687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
30688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30689 | if (!SWIG_IsOK(res1)) { | |
30690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30691 | } | |
30692 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30693 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30694 | if (!SWIG_IsOK(res2)) { | |
30695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
30696 | } | |
30697 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
30698 | { | |
30699 | (arg1)->SetGraphicsContext(arg2); | |
30700 | if (PyErr_Occurred()) SWIG_fail; | |
30701 | } | |
30702 | resultobj = SWIG_Py_Void(); | |
30703 | return resultobj; | |
30704 | fail: | |
30705 | return NULL; | |
30706 | } | |
30707 | ||
30708 | ||
72ef6efb RD |
30709 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30710 | PyObject *obj; | |
30711 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30712 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
30713 | return SWIG_Py_Void(); | |
30714 | } | |
30715 | ||
30716 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30717 | return SWIG_Python_InitShadowInstance(args); | |
30718 | } | |
30719 | ||
b39fe951 RD |
30720 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30721 | PyObject *resultobj = 0; | |
30722 | wxOverlay *result = 0 ; | |
30723 | ||
30724 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
30725 | { | |
30726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30727 | result = (wxOverlay *)new wxOverlay(); | |
30728 | wxPyEndAllowThreads(__tstate); | |
30729 | if (PyErr_Occurred()) SWIG_fail; | |
30730 | } | |
30731 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
30732 | return resultobj; | |
30733 | fail: | |
30734 | return NULL; | |
30735 | } | |
30736 | ||
30737 | ||
30738 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30739 | PyObject *resultobj = 0; | |
30740 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30741 | void *argp1 = 0 ; | |
30742 | int res1 = 0 ; | |
30743 | PyObject *swig_obj[1] ; | |
30744 | ||
30745 | if (!args) SWIG_fail; | |
30746 | swig_obj[0] = args; | |
30747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30748 | if (!SWIG_IsOK(res1)) { | |
30749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30750 | } | |
30751 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30752 | { | |
30753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30754 | delete arg1; | |
30755 | ||
30756 | wxPyEndAllowThreads(__tstate); | |
30757 | if (PyErr_Occurred()) SWIG_fail; | |
30758 | } | |
30759 | resultobj = SWIG_Py_Void(); | |
30760 | return resultobj; | |
30761 | fail: | |
30762 | return NULL; | |
30763 | } | |
30764 | ||
30765 | ||
30766 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30767 | PyObject *resultobj = 0; | |
30768 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30769 | void *argp1 = 0 ; | |
30770 | int res1 = 0 ; | |
30771 | PyObject *swig_obj[1] ; | |
30772 | ||
30773 | if (!args) SWIG_fail; | |
30774 | swig_obj[0] = args; | |
30775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
30776 | if (!SWIG_IsOK(res1)) { | |
30777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30778 | } | |
30779 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30780 | { | |
30781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30782 | (arg1)->Reset(); | |
30783 | wxPyEndAllowThreads(__tstate); | |
30784 | if (PyErr_Occurred()) SWIG_fail; | |
30785 | } | |
30786 | resultobj = SWIG_Py_Void(); | |
30787 | return resultobj; | |
30788 | fail: | |
30789 | return NULL; | |
30790 | } | |
30791 | ||
30792 | ||
30793 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30794 | PyObject *obj; | |
30795 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30796 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
30797 | return SWIG_Py_Void(); | |
30798 | } | |
30799 | ||
30800 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30801 | return SWIG_Python_InitShadowInstance(args); | |
30802 | } | |
30803 | ||
30804 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30805 | PyObject *resultobj = 0; | |
30806 | wxOverlay *arg1 = 0 ; | |
30807 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30808 | int arg3 ; | |
30809 | int arg4 ; | |
30810 | int arg5 ; | |
30811 | int arg6 ; | |
30812 | wxDCOverlay *result = 0 ; | |
30813 | void *argp1 = 0 ; | |
30814 | int res1 = 0 ; | |
30815 | void *argp2 = 0 ; | |
30816 | int res2 = 0 ; | |
30817 | int val3 ; | |
30818 | int ecode3 = 0 ; | |
30819 | int val4 ; | |
30820 | int ecode4 = 0 ; | |
30821 | int val5 ; | |
30822 | int ecode5 = 0 ; | |
30823 | int val6 ; | |
30824 | int ecode6 = 0 ; | |
30825 | ||
30826 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
30827 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30828 | if (!SWIG_IsOK(res1)) { | |
30829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30830 | } | |
30831 | if (!argp1) { | |
30832 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30833 | } | |
30834 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30835 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30836 | if (!SWIG_IsOK(res2)) { | |
30837 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30838 | } | |
30839 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30840 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
30841 | if (!SWIG_IsOK(ecode3)) { | |
30842 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
30843 | } | |
30844 | arg3 = static_cast< int >(val3); | |
30845 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
30846 | if (!SWIG_IsOK(ecode4)) { | |
30847 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
30848 | } | |
30849 | arg4 = static_cast< int >(val4); | |
30850 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
30851 | if (!SWIG_IsOK(ecode5)) { | |
30852 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
30853 | } | |
30854 | arg5 = static_cast< int >(val5); | |
30855 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
30856 | if (!SWIG_IsOK(ecode6)) { | |
30857 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
30858 | } | |
30859 | arg6 = static_cast< int >(val6); | |
30860 | { | |
30861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30862 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
30863 | wxPyEndAllowThreads(__tstate); | |
30864 | if (PyErr_Occurred()) SWIG_fail; | |
30865 | } | |
30866 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30867 | return resultobj; | |
30868 | fail: | |
30869 | return NULL; | |
30870 | } | |
30871 | ||
30872 | ||
30873 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30874 | PyObject *resultobj = 0; | |
30875 | wxOverlay *arg1 = 0 ; | |
30876 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30877 | wxDCOverlay *result = 0 ; | |
30878 | void *argp1 = 0 ; | |
30879 | int res1 = 0 ; | |
30880 | void *argp2 = 0 ; | |
30881 | int res2 = 0 ; | |
30882 | ||
30883 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30885 | if (!SWIG_IsOK(res1)) { | |
30886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30887 | } | |
30888 | if (!argp1) { | |
30889 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30890 | } | |
30891 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30892 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30893 | if (!SWIG_IsOK(res2)) { | |
30894 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30895 | } | |
30896 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30897 | { | |
30898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30899 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
30900 | wxPyEndAllowThreads(__tstate); | |
30901 | if (PyErr_Occurred()) SWIG_fail; | |
30902 | } | |
30903 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30904 | return resultobj; | |
30905 | fail: | |
30906 | return NULL; | |
30907 | } | |
30908 | ||
30909 | ||
30910 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
30911 | int argc; | |
30912 | PyObject *argv[7]; | |
30913 | ||
30914 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
30915 | --argc; | |
30916 | if (argc == 2) { | |
30917 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
30918 | } | |
30919 | if (argc == 6) { | |
30920 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
30921 | } | |
30922 | ||
30923 | fail: | |
30924 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
30925 | return NULL; | |
30926 | } | |
30927 | ||
30928 | ||
30929 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30930 | PyObject *resultobj = 0; | |
30931 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30932 | void *argp1 = 0 ; | |
30933 | int res1 = 0 ; | |
30934 | PyObject *swig_obj[1] ; | |
30935 | ||
30936 | if (!args) SWIG_fail; | |
30937 | swig_obj[0] = args; | |
30938 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30939 | if (!SWIG_IsOK(res1)) { | |
30940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30941 | } | |
30942 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30943 | { | |
30944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30945 | delete arg1; | |
30946 | ||
30947 | wxPyEndAllowThreads(__tstate); | |
30948 | if (PyErr_Occurred()) SWIG_fail; | |
30949 | } | |
30950 | resultobj = SWIG_Py_Void(); | |
30951 | return resultobj; | |
30952 | fail: | |
30953 | return NULL; | |
30954 | } | |
30955 | ||
30956 | ||
30957 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30958 | PyObject *resultobj = 0; | |
30959 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30960 | void *argp1 = 0 ; | |
30961 | int res1 = 0 ; | |
30962 | PyObject *swig_obj[1] ; | |
30963 | ||
30964 | if (!args) SWIG_fail; | |
30965 | swig_obj[0] = args; | |
30966 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
30967 | if (!SWIG_IsOK(res1)) { | |
30968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30969 | } | |
30970 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30971 | { | |
30972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30973 | (arg1)->Clear(); | |
30974 | wxPyEndAllowThreads(__tstate); | |
30975 | if (PyErr_Occurred()) SWIG_fail; | |
30976 | } | |
30977 | resultobj = SWIG_Py_Void(); | |
30978 | return resultobj; | |
30979 | fail: | |
30980 | return NULL; | |
30981 | } | |
30982 | ||
30983 | ||
30984 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30985 | PyObject *obj; | |
30986 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30987 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
30988 | return SWIG_Py_Void(); | |
30989 | } | |
30990 | ||
30991 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30992 | return SWIG_Python_InitShadowInstance(args); | |
30993 | } | |
30994 | ||
72ef6efb RD |
30995 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30996 | PyObject *resultobj = 0; | |
30997 | int arg1 ; | |
30998 | int arg2 ; | |
30999 | int arg3 = (int) true ; | |
31000 | int arg4 = (int) 1 ; | |
31001 | wxImageList *result = 0 ; | |
31002 | int val1 ; | |
31003 | int ecode1 = 0 ; | |
31004 | int val2 ; | |
31005 | int ecode2 = 0 ; | |
31006 | int val3 ; | |
31007 | int ecode3 = 0 ; | |
31008 | int val4 ; | |
31009 | int ecode4 = 0 ; | |
31010 | PyObject * obj0 = 0 ; | |
31011 | PyObject * obj1 = 0 ; | |
31012 | PyObject * obj2 = 0 ; | |
31013 | PyObject * obj3 = 0 ; | |
31014 | char * kwnames[] = { | |
31015 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
31016 | }; | |
31017 | ||
31018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31019 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31020 | if (!SWIG_IsOK(ecode1)) { | |
31021 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
31022 | } | |
31023 | arg1 = static_cast< int >(val1); | |
31024 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31025 | if (!SWIG_IsOK(ecode2)) { | |
31026 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
31027 | } | |
31028 | arg2 = static_cast< int >(val2); | |
31029 | if (obj2) { | |
31030 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31031 | if (!SWIG_IsOK(ecode3)) { | |
31032 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
31033 | } | |
31034 | arg3 = static_cast< int >(val3); | |
31035 | } | |
31036 | if (obj3) { | |
31037 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31038 | if (!SWIG_IsOK(ecode4)) { | |
31039 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
31040 | } | |
31041 | arg4 = static_cast< int >(val4); | |
31042 | } | |
31043 | { | |
31044 | if (!wxPyCheckForApp()) SWIG_fail; | |
31045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31046 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
31047 | wxPyEndAllowThreads(__tstate); | |
31048 | if (PyErr_Occurred()) SWIG_fail; | |
31049 | } | |
e02c0a13 | 31050 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
31051 | return resultobj; |
31052 | fail: | |
31053 | return NULL; | |
31054 | } | |
31055 | ||
31056 | ||
31057 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31058 | PyObject *resultobj = 0; | |
31059 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31060 | void *argp1 = 0 ; | |
31061 | int res1 = 0 ; | |
31062 | PyObject *swig_obj[1] ; | |
31063 | ||
31064 | if (!args) SWIG_fail; | |
31065 | swig_obj[0] = args; | |
31066 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
31067 | if (!SWIG_IsOK(res1)) { | |
31068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31069 | } | |
31070 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31071 | { | |
31072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31073 | delete arg1; | |
31074 | ||
31075 | wxPyEndAllowThreads(__tstate); | |
31076 | if (PyErr_Occurred()) SWIG_fail; | |
31077 | } | |
31078 | resultobj = SWIG_Py_Void(); | |
31079 | return resultobj; | |
31080 | fail: | |
31081 | return NULL; | |
31082 | } | |
31083 | ||
31084 | ||
31085 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31086 | PyObject *resultobj = 0; | |
31087 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31088 | wxBitmap *arg2 = 0 ; | |
31089 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31090 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31091 | int result; | |
31092 | void *argp1 = 0 ; | |
31093 | int res1 = 0 ; | |
31094 | void *argp2 = 0 ; | |
31095 | int res2 = 0 ; | |
31096 | void *argp3 = 0 ; | |
31097 | int res3 = 0 ; | |
31098 | PyObject * obj0 = 0 ; | |
31099 | PyObject * obj1 = 0 ; | |
31100 | PyObject * obj2 = 0 ; | |
31101 | char * kwnames[] = { | |
31102 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
31103 | }; | |
31104 | ||
31105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31107 | if (!SWIG_IsOK(res1)) { | |
31108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31109 | } | |
31110 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31111 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31112 | if (!SWIG_IsOK(res2)) { | |
31113 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31114 | } | |
31115 | if (!argp2) { | |
31116 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31117 | } | |
31118 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31119 | if (obj2) { | |
31120 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31121 | if (!SWIG_IsOK(res3)) { | |
31122 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31123 | } | |
31124 | if (!argp3) { | |
31125 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31126 | } | |
31127 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
31128 | } | |
31129 | { | |
31130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31131 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31132 | wxPyEndAllowThreads(__tstate); | |
31133 | if (PyErr_Occurred()) SWIG_fail; | |
31134 | } | |
31135 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31136 | return resultobj; | |
31137 | fail: | |
31138 | return NULL; | |
31139 | } | |
31140 | ||
31141 | ||
31142 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31143 | PyObject *resultobj = 0; | |
31144 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31145 | wxBitmap *arg2 = 0 ; | |
31146 | wxColour *arg3 = 0 ; | |
31147 | int result; | |
31148 | void *argp1 = 0 ; | |
31149 | int res1 = 0 ; | |
31150 | void *argp2 = 0 ; | |
31151 | int res2 = 0 ; | |
31152 | wxColour temp3 ; | |
31153 | PyObject * obj0 = 0 ; | |
31154 | PyObject * obj1 = 0 ; | |
31155 | PyObject * obj2 = 0 ; | |
31156 | char * kwnames[] = { | |
31157 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
31158 | }; | |
31159 | ||
31160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31162 | if (!SWIG_IsOK(res1)) { | |
31163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31164 | } | |
31165 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31166 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31167 | if (!SWIG_IsOK(res2)) { | |
31168 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31169 | } | |
31170 | if (!argp2) { | |
31171 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31172 | } | |
31173 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31174 | { | |
31175 | arg3 = &temp3; | |
31176 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31177 | } | |
31178 | { | |
31179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31180 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
31181 | wxPyEndAllowThreads(__tstate); | |
31182 | if (PyErr_Occurred()) SWIG_fail; | |
31183 | } | |
31184 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31185 | return resultobj; | |
31186 | fail: | |
31187 | return NULL; | |
31188 | } | |
31189 | ||
31190 | ||
31191 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31192 | PyObject *resultobj = 0; | |
31193 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31194 | wxIcon *arg2 = 0 ; | |
31195 | int result; | |
31196 | void *argp1 = 0 ; | |
31197 | int res1 = 0 ; | |
31198 | void *argp2 = 0 ; | |
31199 | int res2 = 0 ; | |
31200 | PyObject * obj0 = 0 ; | |
31201 | PyObject * obj1 = 0 ; | |
31202 | char * kwnames[] = { | |
31203 | (char *) "self",(char *) "icon", NULL | |
31204 | }; | |
31205 | ||
31206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31208 | if (!SWIG_IsOK(res1)) { | |
31209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31210 | } | |
0085ce49 RD |
31211 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
31212 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
31213 | if (!SWIG_IsOK(res2)) { | |
31214 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31215 | } | |
31216 | if (!argp2) { | |
31217 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31218 | } | |
31219 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
31220 | { | |
31221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31222 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
31223 | wxPyEndAllowThreads(__tstate); | |
31224 | if (PyErr_Occurred()) SWIG_fail; | |
31225 | } | |
31226 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31227 | return resultobj; | |
31228 | fail: | |
31229 | return NULL; | |
31230 | } | |
31231 | ||
31232 | ||
31233 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31234 | PyObject *resultobj = 0; | |
31235 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31236 | int arg2 ; | |
31237 | SwigValueWrapper<wxBitmap > result; | |
31238 | void *argp1 = 0 ; | |
31239 | int res1 = 0 ; | |
31240 | int val2 ; | |
31241 | int ecode2 = 0 ; | |
31242 | PyObject * obj0 = 0 ; | |
31243 | PyObject * obj1 = 0 ; | |
31244 | char * kwnames[] = { | |
31245 | (char *) "self",(char *) "index", NULL | |
31246 | }; | |
31247 | ||
31248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
31249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31250 | if (!SWIG_IsOK(res1)) { | |
31251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31252 | } | |
31253 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31254 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31255 | if (!SWIG_IsOK(ecode2)) { | |
31256 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
31257 | } | |
31258 | arg2 = static_cast< int >(val2); | |
31259 | { | |
31260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31261 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
31262 | wxPyEndAllowThreads(__tstate); | |
31263 | if (PyErr_Occurred()) SWIG_fail; | |
31264 | } | |
31265 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
31266 | return resultobj; | |
31267 | fail: | |
31268 | return NULL; | |
31269 | } | |
31270 | ||
31271 | ||
31272 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31273 | PyObject *resultobj = 0; | |
31274 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31275 | int arg2 ; | |
31276 | wxIcon result; | |
31277 | void *argp1 = 0 ; | |
31278 | int res1 = 0 ; | |
31279 | int val2 ; | |
31280 | int ecode2 = 0 ; | |
31281 | PyObject * obj0 = 0 ; | |
31282 | PyObject * obj1 = 0 ; | |
31283 | char * kwnames[] = { | |
31284 | (char *) "self",(char *) "index", NULL | |
31285 | }; | |
31286 | ||
31287 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31288 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31289 | if (!SWIG_IsOK(res1)) { | |
31290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31291 | } | |
31292 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31293 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31294 | if (!SWIG_IsOK(ecode2)) { | |
31295 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
31296 | } | |
31297 | arg2 = static_cast< int >(val2); | |
31298 | { | |
31299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31300 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
31301 | wxPyEndAllowThreads(__tstate); | |
31302 | if (PyErr_Occurred()) SWIG_fail; | |
31303 | } | |
31304 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
31305 | return resultobj; | |
31306 | fail: | |
31307 | return NULL; | |
31308 | } | |
31309 | ||
31310 | ||
31311 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31312 | PyObject *resultobj = 0; | |
31313 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31314 | int arg2 ; | |
31315 | wxBitmap *arg3 = 0 ; | |
01f6b6d3 RD |
31316 | wxBitmap const &arg4_defvalue = wxNullBitmap ; |
31317 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
0085ce49 RD |
31318 | bool result; |
31319 | void *argp1 = 0 ; | |
31320 | int res1 = 0 ; | |
31321 | int val2 ; | |
31322 | int ecode2 = 0 ; | |
31323 | void *argp3 = 0 ; | |
31324 | int res3 = 0 ; | |
01f6b6d3 RD |
31325 | void *argp4 = 0 ; |
31326 | int res4 = 0 ; | |
0085ce49 RD |
31327 | PyObject * obj0 = 0 ; |
31328 | PyObject * obj1 = 0 ; | |
31329 | PyObject * obj2 = 0 ; | |
01f6b6d3 | 31330 | PyObject * obj3 = 0 ; |
0085ce49 | 31331 | char * kwnames[] = { |
01f6b6d3 | 31332 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL |
0085ce49 RD |
31333 | }; |
31334 | ||
01f6b6d3 | 31335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
31336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); |
31337 | if (!SWIG_IsOK(res1)) { | |
31338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31339 | } | |
31340 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31341 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31342 | if (!SWIG_IsOK(ecode2)) { | |
31343 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
31344 | } | |
31345 | arg2 = static_cast< int >(val2); | |
31346 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31347 | if (!SWIG_IsOK(res3)) { | |
31348 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31349 | } | |
31350 | if (!argp3) { | |
31351 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31352 | } | |
31353 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
01f6b6d3 RD |
31354 | if (obj3) { |
31355 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31356 | if (!SWIG_IsOK(res4)) { | |
31357 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
31358 | } | |
31359 | if (!argp4) { | |
31360 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
31361 | } | |
31362 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
31363 | } | |
0085ce49 RD |
31364 | { |
31365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 31366 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); |
0085ce49 RD |
31367 | wxPyEndAllowThreads(__tstate); |
31368 | if (PyErr_Occurred()) SWIG_fail; | |
31369 | } | |
31370 | { | |
31371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31372 | } | |
31373 | return resultobj; | |
31374 | fail: | |
31375 | return NULL; | |
31376 | } | |
31377 | ||
31378 | ||
31379 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31380 | PyObject *resultobj = 0; | |
31381 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31382 | int arg2 ; | |
31383 | wxDC *arg3 = 0 ; | |
31384 | int arg4 ; | |
31385 | int arg5 ; | |
31386 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
31387 | bool arg7 = (bool) (bool)false ; | |
31388 | bool result; | |
31389 | void *argp1 = 0 ; | |
31390 | int res1 = 0 ; | |
31391 | int val2 ; | |
31392 | int ecode2 = 0 ; | |
31393 | void *argp3 = 0 ; | |
31394 | int res3 = 0 ; | |
31395 | int val4 ; | |
31396 | int ecode4 = 0 ; | |
31397 | int val5 ; | |
31398 | int ecode5 = 0 ; | |
31399 | int val6 ; | |
31400 | int ecode6 = 0 ; | |
31401 | bool val7 ; | |
31402 | int ecode7 = 0 ; | |
31403 | PyObject * obj0 = 0 ; | |
31404 | PyObject * obj1 = 0 ; | |
31405 | PyObject * obj2 = 0 ; | |
31406 | PyObject * obj3 = 0 ; | |
31407 | PyObject * obj4 = 0 ; | |
31408 | PyObject * obj5 = 0 ; | |
31409 | PyObject * obj6 = 0 ; | |
31410 | char * kwnames[] = { | |
31411 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
31412 | }; | |
31413 | ||
31414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31416 | if (!SWIG_IsOK(res1)) { | |
31417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31418 | } | |
31419 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31420 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31421 | if (!SWIG_IsOK(ecode2)) { | |
31422 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
31423 | } | |
31424 | arg2 = static_cast< int >(val2); | |
31425 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31426 | if (!SWIG_IsOK(res3)) { | |
31427 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31428 | } | |
31429 | if (!argp3) { | |
31430 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31431 | } | |
31432 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31433 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31434 | if (!SWIG_IsOK(ecode4)) { | |
31435 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
31436 | } | |
31437 | arg4 = static_cast< int >(val4); | |
31438 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31439 | if (!SWIG_IsOK(ecode5)) { | |
31440 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
31441 | } | |
31442 | arg5 = static_cast< int >(val5); | |
31443 | if (obj5) { | |
31444 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
31445 | if (!SWIG_IsOK(ecode6)) { | |
31446 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
31447 | } | |
31448 | arg6 = static_cast< int >(val6); | |
31449 | } | |
31450 | if (obj6) { | |
31451 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
31452 | if (!SWIG_IsOK(ecode7)) { | |
31453 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
31454 | } | |
31455 | arg7 = static_cast< bool >(val7); | |
31456 | } | |
31457 | { | |
31458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31459 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
31460 | wxPyEndAllowThreads(__tstate); | |
31461 | if (PyErr_Occurred()) SWIG_fail; | |
31462 | } | |
31463 | { | |
31464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31465 | } | |
31466 | return resultobj; | |
31467 | fail: | |
31468 | return NULL; | |
31469 | } | |
31470 | ||
31471 | ||
31472 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31473 | PyObject *resultobj = 0; | |
31474 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31475 | int result; | |
31476 | void *argp1 = 0 ; | |
31477 | int res1 = 0 ; | |
31478 | PyObject *swig_obj[1] ; | |
31479 | ||
31480 | if (!args) SWIG_fail; | |
31481 | swig_obj[0] = args; | |
31482 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31483 | if (!SWIG_IsOK(res1)) { | |
31484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31485 | } | |
31486 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31487 | { | |
31488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31489 | result = (int)(arg1)->GetImageCount(); | |
31490 | wxPyEndAllowThreads(__tstate); | |
31491 | if (PyErr_Occurred()) SWIG_fail; | |
31492 | } | |
31493 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31494 | return resultobj; | |
31495 | fail: | |
31496 | return NULL; | |
31497 | } | |
31498 | ||
31499 | ||
31500 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31501 | PyObject *resultobj = 0; | |
31502 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31503 | int arg2 ; | |
31504 | bool result; | |
31505 | void *argp1 = 0 ; | |
31506 | int res1 = 0 ; | |
31507 | int val2 ; | |
31508 | int ecode2 = 0 ; | |
31509 | PyObject * obj0 = 0 ; | |
31510 | PyObject * obj1 = 0 ; | |
31511 | char * kwnames[] = { | |
31512 | (char *) "self",(char *) "index", NULL | |
31513 | }; | |
31514 | ||
31515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
31516 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31517 | if (!SWIG_IsOK(res1)) { | |
31518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31519 | } | |
31520 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31521 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31522 | if (!SWIG_IsOK(ecode2)) { | |
31523 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
31524 | } | |
31525 | arg2 = static_cast< int >(val2); | |
31526 | { | |
31527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31528 | result = (bool)(arg1)->Remove(arg2); | |
31529 | wxPyEndAllowThreads(__tstate); | |
31530 | if (PyErr_Occurred()) SWIG_fail; | |
31531 | } | |
31532 | { | |
31533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31534 | } | |
31535 | return resultobj; | |
31536 | fail: | |
31537 | return NULL; | |
31538 | } | |
31539 | ||
31540 | ||
31541 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31542 | PyObject *resultobj = 0; | |
31543 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31544 | bool result; | |
31545 | void *argp1 = 0 ; | |
31546 | int res1 = 0 ; | |
31547 | PyObject *swig_obj[1] ; | |
31548 | ||
31549 | if (!args) SWIG_fail; | |
31550 | swig_obj[0] = args; | |
31551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31552 | if (!SWIG_IsOK(res1)) { | |
31553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31554 | } | |
31555 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31556 | { | |
31557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31558 | result = (bool)(arg1)->RemoveAll(); | |
31559 | wxPyEndAllowThreads(__tstate); | |
31560 | if (PyErr_Occurred()) SWIG_fail; | |
31561 | } | |
31562 | { | |
31563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31564 | } | |
31565 | return resultobj; | |
31566 | fail: | |
31567 | return NULL; | |
31568 | } | |
31569 | ||
31570 | ||
31571 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31572 | PyObject *resultobj = 0; | |
31573 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31574 | int arg2 ; | |
31575 | int *arg3 = 0 ; | |
31576 | int *arg4 = 0 ; | |
31577 | void *argp1 = 0 ; | |
31578 | int res1 = 0 ; | |
31579 | int val2 ; | |
31580 | int ecode2 = 0 ; | |
31581 | int temp3 ; | |
31582 | int res3 = SWIG_TMPOBJ ; | |
31583 | int temp4 ; | |
31584 | int res4 = SWIG_TMPOBJ ; | |
31585 | PyObject * obj0 = 0 ; | |
31586 | PyObject * obj1 = 0 ; | |
31587 | char * kwnames[] = { | |
31588 | (char *) "self",(char *) "index", NULL | |
31589 | }; | |
31590 | ||
31591 | arg3 = &temp3; | |
31592 | arg4 = &temp4; | |
31593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
31594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31595 | if (!SWIG_IsOK(res1)) { | |
31596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31597 | } | |
31598 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31599 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31600 | if (!SWIG_IsOK(ecode2)) { | |
31601 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
31602 | } | |
31603 | arg2 = static_cast< int >(val2); | |
31604 | { | |
31605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31606 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
31607 | wxPyEndAllowThreads(__tstate); | |
31608 | if (PyErr_Occurred()) SWIG_fail; | |
31609 | } | |
31610 | resultobj = SWIG_Py_Void(); | |
31611 | if (SWIG_IsTmpObj(res3)) { | |
31612 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31613 | } else { | |
31614 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31615 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31616 | } | |
31617 | if (SWIG_IsTmpObj(res4)) { | |
31618 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
31619 | } else { | |
31620 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31621 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
31622 | } | |
31623 | return resultobj; | |
31624 | fail: | |
31625 | return NULL; | |
31626 | } | |
31627 | ||
31628 | ||
31629 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31630 | PyObject *obj; | |
31631 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31632 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
31633 | return SWIG_Py_Void(); | |
31634 | } | |
31635 | ||
31636 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31637 | return SWIG_Python_InitShadowInstance(args); | |
31638 | } | |
31639 | ||
50efceee RD |
31640 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31641 | PyObject *resultobj = 0; | |
31642 | wxStockGDI *result = 0 ; | |
0085ce49 | 31643 | |
50efceee RD |
31644 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
31645 | { | |
31646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31647 | result = (wxStockGDI *)new wxStockGDI(); | |
31648 | wxPyEndAllowThreads(__tstate); | |
31649 | if (PyErr_Occurred()) SWIG_fail; | |
31650 | } | |
31651 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
31652 | return resultobj; | |
31653 | fail: | |
31654 | return NULL; | |
0085ce49 RD |
31655 | } |
31656 | ||
31657 | ||
50efceee RD |
31658 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31659 | PyObject *resultobj = 0; | |
31660 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31661 | void *argp1 = 0 ; | |
31662 | int res1 = 0 ; | |
31663 | PyObject *swig_obj[1] ; | |
0085ce49 | 31664 | |
50efceee RD |
31665 | if (!args) SWIG_fail; |
31666 | swig_obj[0] = args; | |
31667 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
31668 | if (!SWIG_IsOK(res1)) { | |
31669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31670 | } | |
31671 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31672 | { | |
31673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31674 | delete arg1; | |
31675 | ||
31676 | wxPyEndAllowThreads(__tstate); | |
31677 | if (PyErr_Occurred()) SWIG_fail; | |
31678 | } | |
31679 | resultobj = SWIG_Py_Void(); | |
31680 | return resultobj; | |
31681 | fail: | |
31682 | return NULL; | |
0085ce49 RD |
31683 | } |
31684 | ||
31685 | ||
50efceee RD |
31686 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31687 | PyObject *resultobj = 0; | |
0085ce49 | 31688 | |
50efceee RD |
31689 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
31690 | { | |
31691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31692 | wxStockGDI::DeleteAll(); | |
31693 | wxPyEndAllowThreads(__tstate); | |
31694 | if (PyErr_Occurred()) SWIG_fail; | |
31695 | } | |
31696 | resultobj = SWIG_Py_Void(); | |
31697 | return resultobj; | |
31698 | fail: | |
31699 | return NULL; | |
0085ce49 RD |
31700 | } |
31701 | ||
31702 | ||
50efceee RD |
31703 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31704 | PyObject *resultobj = 0; | |
31705 | wxStockGDI *result = 0 ; | |
0085ce49 | 31706 | |
50efceee RD |
31707 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
31708 | { | |
31709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31710 | { | |
31711 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
31712 | result = (wxStockGDI *) &_result_ref; | |
31713 | } | |
31714 | wxPyEndAllowThreads(__tstate); | |
31715 | if (PyErr_Occurred()) SWIG_fail; | |
31716 | } | |
31717 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31718 | return resultobj; | |
31719 | fail: | |
31720 | return NULL; | |
0085ce49 RD |
31721 | } |
31722 | ||
31723 | ||
50efceee RD |
31724 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31725 | PyObject *resultobj = 0; | |
31726 | wxStockGDI::Item arg1 ; | |
31727 | wxBrush *result = 0 ; | |
31728 | int val1 ; | |
31729 | int ecode1 = 0 ; | |
31730 | PyObject * obj0 = 0 ; | |
31731 | char * kwnames[] = { | |
31732 | (char *) "item", NULL | |
31733 | }; | |
31734 | ||
31735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
31736 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31737 | if (!SWIG_IsOK(ecode1)) { | |
31738 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31739 | } | |
31740 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31741 | { | |
31742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31743 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
31744 | wxPyEndAllowThreads(__tstate); | |
31745 | if (PyErr_Occurred()) SWIG_fail; | |
31746 | } | |
31747 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31748 | return resultobj; | |
31749 | fail: | |
31750 | return NULL; | |
0085ce49 RD |
31751 | } |
31752 | ||
31753 | ||
50efceee RD |
31754 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31755 | PyObject *resultobj = 0; | |
31756 | wxStockGDI::Item arg1 ; | |
31757 | wxColour *result = 0 ; | |
31758 | int val1 ; | |
31759 | int ecode1 = 0 ; | |
31760 | PyObject * obj0 = 0 ; | |
31761 | char * kwnames[] = { | |
31762 | (char *) "item", NULL | |
31763 | }; | |
0085ce49 | 31764 | |
50efceee RD |
31765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
31766 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31767 | if (!SWIG_IsOK(ecode1)) { | |
31768 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31769 | } | |
31770 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31771 | { | |
31772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31773 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
31774 | wxPyEndAllowThreads(__tstate); | |
31775 | if (PyErr_Occurred()) SWIG_fail; | |
31776 | } | |
31777 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
31778 | return resultobj; | |
31779 | fail: | |
31780 | return NULL; | |
0085ce49 RD |
31781 | } |
31782 | ||
31783 | ||
50efceee RD |
31784 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31785 | PyObject *resultobj = 0; | |
31786 | wxStockGDI::Item arg1 ; | |
31787 | wxCursor *result = 0 ; | |
31788 | int val1 ; | |
31789 | int ecode1 = 0 ; | |
31790 | PyObject * obj0 = 0 ; | |
31791 | char * kwnames[] = { | |
31792 | (char *) "item", NULL | |
31793 | }; | |
31794 | ||
31795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
31796 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31797 | if (!SWIG_IsOK(ecode1)) { | |
31798 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31799 | } | |
31800 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31801 | { | |
31802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31803 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
31804 | wxPyEndAllowThreads(__tstate); | |
31805 | if (PyErr_Occurred()) SWIG_fail; | |
31806 | } | |
31807 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
31808 | return resultobj; | |
31809 | fail: | |
31810 | return NULL; | |
0085ce49 RD |
31811 | } |
31812 | ||
31813 | ||
50efceee RD |
31814 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31815 | PyObject *resultobj = 0; | |
31816 | wxStockGDI::Item arg1 ; | |
31817 | wxPen *result = 0 ; | |
31818 | int val1 ; | |
31819 | int ecode1 = 0 ; | |
31820 | PyObject * obj0 = 0 ; | |
31821 | char * kwnames[] = { | |
31822 | (char *) "item", NULL | |
31823 | }; | |
31824 | ||
31825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
31826 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31827 | if (!SWIG_IsOK(ecode1)) { | |
31828 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31829 | } | |
31830 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31831 | { | |
31832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31833 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
31834 | wxPyEndAllowThreads(__tstate); | |
31835 | if (PyErr_Occurred()) SWIG_fail; | |
31836 | } | |
31837 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
31838 | return resultobj; | |
31839 | fail: | |
31840 | return NULL; | |
0085ce49 RD |
31841 | } |
31842 | ||
31843 | ||
50efceee RD |
31844 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31845 | PyObject *resultobj = 0; | |
31846 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31847 | wxStockGDI::Item arg2 ; | |
31848 | wxFont *result = 0 ; | |
31849 | void *argp1 = 0 ; | |
31850 | int res1 = 0 ; | |
31851 | int val2 ; | |
31852 | int ecode2 = 0 ; | |
31853 | PyObject * obj0 = 0 ; | |
31854 | PyObject * obj1 = 0 ; | |
31855 | char * kwnames[] = { | |
31856 | (char *) "self",(char *) "item", NULL | |
31857 | }; | |
0085ce49 | 31858 | |
50efceee RD |
31859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
31860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31861 | if (!SWIG_IsOK(res1)) { | |
31862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31863 | } | |
31864 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31865 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31866 | if (!SWIG_IsOK(ecode2)) { | |
31867 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
31868 | } | |
31869 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
31870 | { | |
31871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31872 | result = (wxFont *)(arg1)->GetFont(arg2); | |
31873 | wxPyEndAllowThreads(__tstate); | |
31874 | if (PyErr_Occurred()) SWIG_fail; | |
31875 | } | |
31876 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
31877 | return resultobj; | |
31878 | fail: | |
31879 | return NULL; | |
0085ce49 RD |
31880 | } |
31881 | ||
31882 | ||
50efceee RD |
31883 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31884 | PyObject *obj; | |
31885 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31886 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
31887 | return SWIG_Py_Void(); | |
0085ce49 RD |
31888 | } |
31889 | ||
50efceee RD |
31890 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31891 | return SWIG_Python_InitShadowInstance(args); | |
0085ce49 RD |
31892 | } |
31893 | ||
0085ce49 RD |
31894 | SWIGINTERN int NullBitmap_set(PyObject *) { |
31895 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
31896 | return 1; | |
31897 | } | |
31898 | ||
31899 | ||
31900 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
31901 | PyObject *pyobj = 0; | |
31902 | ||
31903 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
31904 | return pyobj; | |
31905 | } | |
31906 | ||
31907 | ||
31908 | SWIGINTERN int NullIcon_set(PyObject *) { | |
31909 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
31910 | return 1; | |
31911 | } | |
31912 | ||
31913 | ||
31914 | SWIGINTERN PyObject *NullIcon_get(void) { | |
31915 | PyObject *pyobj = 0; | |
31916 | ||
31917 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
31918 | return pyobj; | |
31919 | } | |
31920 | ||
31921 | ||
31922 | SWIGINTERN int NullCursor_set(PyObject *) { | |
31923 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
31924 | return 1; | |
31925 | } | |
31926 | ||
31927 | ||
31928 | SWIGINTERN PyObject *NullCursor_get(void) { | |
31929 | PyObject *pyobj = 0; | |
31930 | ||
31931 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
31932 | return pyobj; | |
31933 | } | |
31934 | ||
31935 | ||
31936 | SWIGINTERN int NullPen_set(PyObject *) { | |
31937 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
31938 | return 1; | |
31939 | } | |
31940 | ||
31941 | ||
31942 | SWIGINTERN PyObject *NullPen_get(void) { | |
31943 | PyObject *pyobj = 0; | |
31944 | ||
31945 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
31946 | return pyobj; | |
31947 | } | |
31948 | ||
31949 | ||
31950 | SWIGINTERN int NullBrush_set(PyObject *) { | |
31951 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
31952 | return 1; | |
31953 | } | |
31954 | ||
31955 | ||
31956 | SWIGINTERN PyObject *NullBrush_get(void) { | |
31957 | PyObject *pyobj = 0; | |
31958 | ||
31959 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
31960 | return pyobj; | |
31961 | } | |
31962 | ||
31963 | ||
31964 | SWIGINTERN int NullPalette_set(PyObject *) { | |
31965 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
31966 | return 1; | |
31967 | } | |
31968 | ||
31969 | ||
31970 | SWIGINTERN PyObject *NullPalette_get(void) { | |
31971 | PyObject *pyobj = 0; | |
31972 | ||
31973 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
31974 | return pyobj; | |
31975 | } | |
31976 | ||
31977 | ||
31978 | SWIGINTERN int NullFont_set(PyObject *) { | |
31979 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
31980 | return 1; | |
31981 | } | |
31982 | ||
31983 | ||
31984 | SWIGINTERN PyObject *NullFont_get(void) { | |
31985 | PyObject *pyobj = 0; | |
31986 | ||
31987 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
31988 | return pyobj; | |
31989 | } | |
31990 | ||
31991 | ||
31992 | SWIGINTERN int NullColour_set(PyObject *) { | |
31993 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
31994 | return 1; | |
31995 | } | |
31996 | ||
31997 | ||
31998 | SWIGINTERN PyObject *NullColour_get(void) { | |
31999 | PyObject *pyobj = 0; | |
32000 | ||
32001 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
32002 | return pyobj; | |
32003 | } | |
32004 | ||
32005 | ||
50efceee | 32006 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 32007 | PyObject *resultobj = 0; |
50efceee RD |
32008 | wxGDIObjListBase *result = 0 ; |
32009 | ||
32010 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
32011 | { | |
32012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32013 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
32014 | wxPyEndAllowThreads(__tstate); | |
32015 | if (PyErr_Occurred()) SWIG_fail; | |
32016 | } | |
32017 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
32018 | return resultobj; | |
32019 | fail: | |
32020 | return NULL; | |
32021 | } | |
32022 | ||
32023 | ||
32024 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32025 | PyObject *resultobj = 0; | |
32026 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
0085ce49 RD |
32027 | void *argp1 = 0 ; |
32028 | int res1 = 0 ; | |
50efceee | 32029 | PyObject *swig_obj[1] ; |
0085ce49 | 32030 | |
50efceee RD |
32031 | if (!args) SWIG_fail; |
32032 | swig_obj[0] = args; | |
32033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
0085ce49 | 32034 | if (!SWIG_IsOK(res1)) { |
50efceee | 32035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
0085ce49 | 32036 | } |
50efceee | 32037 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
0085ce49 RD |
32038 | { |
32039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
32040 | delete arg1; |
32041 | ||
0085ce49 RD |
32042 | wxPyEndAllowThreads(__tstate); |
32043 | if (PyErr_Occurred()) SWIG_fail; | |
32044 | } | |
32045 | resultobj = SWIG_Py_Void(); | |
32046 | return resultobj; | |
32047 | fail: | |
32048 | return NULL; | |
32049 | } | |
32050 | ||
32051 | ||
50efceee RD |
32052 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32053 | PyObject *obj; | |
32054 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32055 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
32056 | return SWIG_Py_Void(); | |
32057 | } | |
32058 | ||
32059 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32060 | return SWIG_Python_InitShadowInstance(args); | |
32061 | } | |
32062 | ||
0085ce49 RD |
32063 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32064 | PyObject *resultobj = 0; | |
32065 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32066 | wxColour *arg2 = 0 ; | |
32067 | int arg3 ; | |
32068 | int arg4 ; | |
32069 | wxPen *result = 0 ; | |
32070 | void *argp1 = 0 ; | |
32071 | int res1 = 0 ; | |
32072 | wxColour temp2 ; | |
32073 | int val3 ; | |
32074 | int ecode3 = 0 ; | |
32075 | int val4 ; | |
32076 | int ecode4 = 0 ; | |
32077 | PyObject * obj0 = 0 ; | |
32078 | PyObject * obj1 = 0 ; | |
32079 | PyObject * obj2 = 0 ; | |
32080 | PyObject * obj3 = 0 ; | |
32081 | char * kwnames[] = { | |
32082 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
32083 | }; | |
32084 | ||
32085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
32087 | if (!SWIG_IsOK(res1)) { | |
32088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
32089 | } | |
32090 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32091 | { | |
32092 | arg2 = &temp2; | |
32093 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32094 | } | |
32095 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32096 | if (!SWIG_IsOK(ecode3)) { | |
32097 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
32098 | } | |
32099 | arg3 = static_cast< int >(val3); | |
32100 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32101 | if (!SWIG_IsOK(ecode4)) { | |
32102 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
32103 | } | |
32104 | arg4 = static_cast< int >(val4); | |
32105 | { | |
32106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32107 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
32108 | wxPyEndAllowThreads(__tstate); | |
32109 | if (PyErr_Occurred()) SWIG_fail; | |
32110 | } | |
32111 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32112 | return resultobj; | |
32113 | fail: | |
32114 | return NULL; | |
32115 | } | |
32116 | ||
32117 | ||
50efceee | 32118 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
32119 | PyObject *resultobj = 0; |
32120 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32121 | wxPen *arg2 = (wxPen *) 0 ; | |
32122 | void *argp1 = 0 ; | |
32123 | int res1 = 0 ; | |
32124 | void *argp2 = 0 ; | |
32125 | int res2 = 0 ; | |
32126 | PyObject * obj0 = 0 ; | |
32127 | PyObject * obj1 = 0 ; | |
32128 | char * kwnames[] = { | |
32129 | (char *) "self",(char *) "pen", NULL | |
32130 | }; | |
32131 | ||
50efceee | 32132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
0085ce49 RD |
32133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
32134 | if (!SWIG_IsOK(res1)) { | |
50efceee | 32135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
32136 | } |
32137 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32138 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
32139 | if (!SWIG_IsOK(res2)) { | |
50efceee | 32140 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
0085ce49 RD |
32141 | } |
32142 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
32143 | { | |
32144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32145 | (arg1)->AddPen(arg2); |
0085ce49 RD |
32146 | wxPyEndAllowThreads(__tstate); |
32147 | if (PyErr_Occurred()) SWIG_fail; | |
32148 | } | |
32149 | resultobj = SWIG_Py_Void(); | |
32150 | return resultobj; | |
32151 | fail: | |
32152 | return NULL; | |
32153 | } | |
32154 | ||
32155 | ||
50efceee | 32156 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
32157 | PyObject *resultobj = 0; |
32158 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 32159 | wxPen *arg2 = (wxPen *) 0 ; |
0085ce49 RD |
32160 | void *argp1 = 0 ; |
32161 | int res1 = 0 ; | |
50efceee RD |
32162 | void *argp2 = 0 ; |
32163 | int res2 = 0 ; | |
32164 | PyObject * obj0 = 0 ; | |
32165 | PyObject * obj1 = 0 ; | |
32166 | char * kwnames[] = { | |
32167 | (char *) "self",(char *) "pen", NULL | |
32168 | }; | |
0085ce49 | 32169 | |
50efceee RD |
32170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
32171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
0085ce49 | 32172 | if (!SWIG_IsOK(res1)) { |
50efceee | 32173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
32174 | } |
32175 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
32176 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
32177 | if (!SWIG_IsOK(res2)) { | |
32178 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
32179 | } | |
32180 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
0085ce49 RD |
32181 | { |
32182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32183 | (arg1)->RemovePen(arg2); |
0085ce49 RD |
32184 | wxPyEndAllowThreads(__tstate); |
32185 | if (PyErr_Occurred()) SWIG_fail; | |
32186 | } | |
50efceee | 32187 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
32188 | return resultobj; |
32189 | fail: | |
32190 | return NULL; | |
32191 | } | |
32192 | ||
32193 | ||
32194 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32195 | PyObject *obj; | |
32196 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32197 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
32198 | return SWIG_Py_Void(); | |
32199 | } | |
32200 | ||
50efceee RD |
32201 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32202 | PyObject *resultobj = 0; | |
32203 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32204 | wxColour *arg2 = 0 ; | |
32205 | int arg3 = (int) wxSOLID ; | |
32206 | wxBrush *result = 0 ; | |
32207 | void *argp1 = 0 ; | |
32208 | int res1 = 0 ; | |
32209 | wxColour temp2 ; | |
32210 | int val3 ; | |
32211 | int ecode3 = 0 ; | |
32212 | PyObject * obj0 = 0 ; | |
32213 | PyObject * obj1 = 0 ; | |
32214 | PyObject * obj2 = 0 ; | |
32215 | char * kwnames[] = { | |
32216 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
32217 | }; | |
32218 | ||
32219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32221 | if (!SWIG_IsOK(res1)) { | |
32222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32223 | } | |
32224 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32225 | { | |
32226 | arg2 = &temp2; | |
32227 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32228 | } | |
32229 | if (obj2) { | |
32230 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32231 | if (!SWIG_IsOK(ecode3)) { | |
32232 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
32233 | } | |
32234 | arg3 = static_cast< int >(val3); | |
32235 | } | |
32236 | { | |
32237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32238 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
32239 | wxPyEndAllowThreads(__tstate); | |
32240 | if (PyErr_Occurred()) SWIG_fail; | |
32241 | } | |
32242 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32243 | return resultobj; | |
32244 | fail: | |
32245 | return NULL; | |
32246 | } | |
32247 | ||
32248 | ||
0085ce49 RD |
32249 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32250 | PyObject *resultobj = 0; | |
32251 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32252 | wxBrush *arg2 = (wxBrush *) 0 ; | |
32253 | void *argp1 = 0 ; | |
32254 | int res1 = 0 ; | |
32255 | void *argp2 = 0 ; | |
32256 | int res2 = 0 ; | |
32257 | PyObject * obj0 = 0 ; | |
32258 | PyObject * obj1 = 0 ; | |
32259 | char * kwnames[] = { | |
32260 | (char *) "self",(char *) "brush", NULL | |
32261 | }; | |
32262 | ||
32263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
32264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32265 | if (!SWIG_IsOK(res1)) { | |
32266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32267 | } | |
32268 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32269 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32270 | if (!SWIG_IsOK(res2)) { | |
32271 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
32272 | } | |
32273 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
32274 | { | |
32275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32276 | (arg1)->AddBrush(arg2); | |
32277 | wxPyEndAllowThreads(__tstate); | |
32278 | if (PyErr_Occurred()) SWIG_fail; | |
32279 | } | |
32280 | resultobj = SWIG_Py_Void(); | |
32281 | return resultobj; | |
32282 | fail: | |
32283 | return NULL; | |
32284 | } | |
32285 | ||
32286 | ||
50efceee | 32287 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
32288 | PyObject *resultobj = 0; |
32289 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 32290 | wxBrush *arg2 = (wxBrush *) 0 ; |
0085ce49 RD |
32291 | void *argp1 = 0 ; |
32292 | int res1 = 0 ; | |
50efceee RD |
32293 | void *argp2 = 0 ; |
32294 | int res2 = 0 ; | |
32295 | PyObject * obj0 = 0 ; | |
32296 | PyObject * obj1 = 0 ; | |
32297 | char * kwnames[] = { | |
32298 | (char *) "self",(char *) "brush", NULL | |
32299 | }; | |
32300 | ||
32301 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
32302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32303 | if (!SWIG_IsOK(res1)) { | |
32304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32305 | } | |
32306 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32307 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32308 | if (!SWIG_IsOK(res2)) { | |
32309 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
32310 | } | |
32311 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
32312 | { | |
32313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32314 | (arg1)->RemoveBrush(arg2); | |
32315 | wxPyEndAllowThreads(__tstate); | |
32316 | if (PyErr_Occurred()) SWIG_fail; | |
32317 | } | |
32318 | resultobj = SWIG_Py_Void(); | |
32319 | return resultobj; | |
32320 | fail: | |
32321 | return NULL; | |
32322 | } | |
32323 | ||
32324 | ||
32325 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32326 | PyObject *obj; | |
32327 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32328 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
32329 | return SWIG_Py_Void(); | |
32330 | } | |
32331 | ||
32332 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32333 | PyObject *resultobj = 0; | |
32334 | wxFontList *arg1 = (wxFontList *) 0 ; | |
32335 | int arg2 ; | |
32336 | int arg3 ; | |
32337 | int arg4 ; | |
32338 | int arg5 ; | |
32339 | bool arg6 = (bool) false ; | |
32340 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
32341 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32342 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
32343 | wxFont *result = 0 ; | |
32344 | void *argp1 = 0 ; | |
32345 | int res1 = 0 ; | |
32346 | int val2 ; | |
32347 | int ecode2 = 0 ; | |
0085ce49 RD |
32348 | int val3 ; |
32349 | int ecode3 = 0 ; | |
50efceee RD |
32350 | int val4 ; |
32351 | int ecode4 = 0 ; | |
32352 | int val5 ; | |
32353 | int ecode5 = 0 ; | |
32354 | bool val6 ; | |
32355 | int ecode6 = 0 ; | |
32356 | bool temp7 = false ; | |
32357 | int val8 ; | |
32358 | int ecode8 = 0 ; | |
0085ce49 RD |
32359 | PyObject * obj0 = 0 ; |
32360 | PyObject * obj1 = 0 ; | |
32361 | PyObject * obj2 = 0 ; | |
50efceee RD |
32362 | PyObject * obj3 = 0 ; |
32363 | PyObject * obj4 = 0 ; | |
32364 | PyObject * obj5 = 0 ; | |
32365 | PyObject * obj6 = 0 ; | |
32366 | PyObject * obj7 = 0 ; | |
0085ce49 | 32367 | char * kwnames[] = { |
50efceee | 32368 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
0085ce49 RD |
32369 | }; |
32370 | ||
50efceee RD |
32371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
32372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32373 | if (!SWIG_IsOK(res1)) { |
50efceee | 32374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32375 | } |
50efceee RD |
32376 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32377 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32378 | if (!SWIG_IsOK(ecode2)) { | |
32379 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
32380 | } | |
32381 | arg2 = static_cast< int >(val2); | |
32382 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32383 | if (!SWIG_IsOK(ecode3)) { | |
32384 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
32385 | } | |
32386 | arg3 = static_cast< int >(val3); | |
32387 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32388 | if (!SWIG_IsOK(ecode4)) { | |
32389 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
32390 | } | |
32391 | arg4 = static_cast< int >(val4); | |
32392 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32393 | if (!SWIG_IsOK(ecode5)) { | |
32394 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
32395 | } | |
32396 | arg5 = static_cast< int >(val5); | |
32397 | if (obj5) { | |
32398 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
32399 | if (!SWIG_IsOK(ecode6)) { | |
32400 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
32401 | } | |
32402 | arg6 = static_cast< bool >(val6); | |
0085ce49 | 32403 | } |
50efceee RD |
32404 | if (obj6) { |
32405 | { | |
32406 | arg7 = wxString_in_helper(obj6); | |
32407 | if (arg7 == NULL) SWIG_fail; | |
32408 | temp7 = true; | |
32409 | } | |
32410 | } | |
32411 | if (obj7) { | |
32412 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
32413 | if (!SWIG_IsOK(ecode8)) { | |
32414 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
0085ce49 | 32415 | } |
50efceee | 32416 | arg8 = static_cast< wxFontEncoding >(val8); |
0085ce49 RD |
32417 | } |
32418 | { | |
32419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32420 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
0085ce49 RD |
32421 | wxPyEndAllowThreads(__tstate); |
32422 | if (PyErr_Occurred()) SWIG_fail; | |
32423 | } | |
50efceee RD |
32424 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
32425 | { | |
32426 | if (temp7) | |
32427 | delete arg7; | |
32428 | } | |
0085ce49 RD |
32429 | return resultobj; |
32430 | fail: | |
50efceee RD |
32431 | { |
32432 | if (temp7) | |
32433 | delete arg7; | |
32434 | } | |
0085ce49 RD |
32435 | return NULL; |
32436 | } | |
32437 | ||
32438 | ||
50efceee | 32439 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 32440 | PyObject *resultobj = 0; |
50efceee RD |
32441 | wxFontList *arg1 = (wxFontList *) 0 ; |
32442 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
32443 | void *argp1 = 0 ; |
32444 | int res1 = 0 ; | |
32445 | void *argp2 = 0 ; | |
32446 | int res2 = 0 ; | |
32447 | PyObject * obj0 = 0 ; | |
32448 | PyObject * obj1 = 0 ; | |
32449 | char * kwnames[] = { | |
50efceee | 32450 | (char *) "self",(char *) "font", NULL |
0085ce49 RD |
32451 | }; |
32452 | ||
50efceee RD |
32453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32455 | if (!SWIG_IsOK(res1)) { |
50efceee | 32456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32457 | } |
50efceee RD |
32458 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32459 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
0085ce49 | 32460 | if (!SWIG_IsOK(res2)) { |
50efceee | 32461 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
0085ce49 | 32462 | } |
50efceee | 32463 | arg2 = reinterpret_cast< wxFont * >(argp2); |
0085ce49 RD |
32464 | { |
32465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32466 | (arg1)->AddFont(arg2); |
0085ce49 RD |
32467 | wxPyEndAllowThreads(__tstate); |
32468 | if (PyErr_Occurred()) SWIG_fail; | |
32469 | } | |
32470 | resultobj = SWIG_Py_Void(); | |
32471 | return resultobj; | |
32472 | fail: | |
32473 | return NULL; | |
32474 | } | |
32475 | ||
32476 | ||
50efceee | 32477 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 32478 | PyObject *resultobj = 0; |
50efceee RD |
32479 | wxFontList *arg1 = (wxFontList *) 0 ; |
32480 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
32481 | void *argp1 = 0 ; |
32482 | int res1 = 0 ; | |
50efceee RD |
32483 | void *argp2 = 0 ; |
32484 | int res2 = 0 ; | |
32485 | PyObject * obj0 = 0 ; | |
32486 | PyObject * obj1 = 0 ; | |
32487 | char * kwnames[] = { | |
32488 | (char *) "self",(char *) "font", NULL | |
32489 | }; | |
0085ce49 | 32490 | |
50efceee RD |
32491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32493 | if (!SWIG_IsOK(res1)) { |
50efceee | 32494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32495 | } |
50efceee RD |
32496 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32497 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
32498 | if (!SWIG_IsOK(res2)) { | |
32499 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
32500 | } | |
32501 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
0085ce49 RD |
32502 | { |
32503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32504 | (arg1)->RemoveFont(arg2); |
0085ce49 RD |
32505 | wxPyEndAllowThreads(__tstate); |
32506 | if (PyErr_Occurred()) SWIG_fail; | |
32507 | } | |
50efceee | 32508 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
32509 | return resultobj; |
32510 | fail: | |
32511 | return NULL; | |
32512 | } | |
32513 | ||
32514 | ||
50efceee | 32515 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
32516 | PyObject *obj; |
32517 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 32518 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
0085ce49 RD |
32519 | return SWIG_Py_Void(); |
32520 | } | |
32521 | ||
32522 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32523 | PyObject *resultobj = 0; | |
32524 | wxColourDatabase *result = 0 ; | |
32525 | ||
32526 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
32527 | { | |
32528 | if (!wxPyCheckForApp()) SWIG_fail; | |
32529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32530 | result = (wxColourDatabase *)new wxColourDatabase(); | |
32531 | wxPyEndAllowThreads(__tstate); | |
32532 | if (PyErr_Occurred()) SWIG_fail; | |
32533 | } | |
32534 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
32535 | return resultobj; | |
32536 | fail: | |
32537 | return NULL; | |
32538 | } | |
32539 | ||
32540 | ||
32541 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32542 | PyObject *resultobj = 0; | |
32543 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32544 | void *argp1 = 0 ; | |
32545 | int res1 = 0 ; | |
32546 | PyObject *swig_obj[1] ; | |
32547 | ||
32548 | if (!args) SWIG_fail; | |
32549 | swig_obj[0] = args; | |
32550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
32551 | if (!SWIG_IsOK(res1)) { | |
32552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32553 | } | |
32554 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32555 | { | |
32556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32557 | delete arg1; | |
32558 | ||
32559 | wxPyEndAllowThreads(__tstate); | |
32560 | if (PyErr_Occurred()) SWIG_fail; | |
32561 | } | |
32562 | resultobj = SWIG_Py_Void(); | |
32563 | return resultobj; | |
32564 | fail: | |
32565 | return NULL; | |
32566 | } | |
32567 | ||
32568 | ||
32569 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32570 | PyObject *resultobj = 0; | |
32571 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32572 | wxString *arg2 = 0 ; | |
32573 | wxColour result; | |
32574 | void *argp1 = 0 ; | |
32575 | int res1 = 0 ; | |
32576 | bool temp2 = false ; | |
32577 | PyObject * obj0 = 0 ; | |
32578 | PyObject * obj1 = 0 ; | |
32579 | char * kwnames[] = { | |
32580 | (char *) "self",(char *) "name", NULL | |
32581 | }; | |
32582 | ||
32583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
32584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32585 | if (!SWIG_IsOK(res1)) { | |
32586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32587 | } | |
32588 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32589 | { | |
32590 | arg2 = wxString_in_helper(obj1); | |
32591 | if (arg2 == NULL) SWIG_fail; | |
32592 | temp2 = true; | |
32593 | } | |
32594 | { | |
32595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32596 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
32597 | wxPyEndAllowThreads(__tstate); | |
32598 | if (PyErr_Occurred()) SWIG_fail; | |
32599 | } | |
32600 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32601 | { | |
32602 | if (temp2) | |
32603 | delete arg2; | |
32604 | } | |
32605 | return resultobj; | |
32606 | fail: | |
32607 | { | |
32608 | if (temp2) | |
32609 | delete arg2; | |
32610 | } | |
32611 | return NULL; | |
32612 | } | |
32613 | ||
32614 | ||
32615 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32616 | PyObject *resultobj = 0; | |
32617 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32618 | wxColour *arg2 = 0 ; | |
32619 | wxString result; | |
32620 | void *argp1 = 0 ; | |
32621 | int res1 = 0 ; | |
32622 | wxColour temp2 ; | |
32623 | PyObject * obj0 = 0 ; | |
32624 | PyObject * obj1 = 0 ; | |
32625 | char * kwnames[] = { | |
32626 | (char *) "self",(char *) "colour", NULL | |
32627 | }; | |
32628 | ||
32629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
32630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32631 | if (!SWIG_IsOK(res1)) { | |
32632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32633 | } | |
32634 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32635 | { | |
32636 | arg2 = &temp2; | |
32637 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32638 | } | |
32639 | { | |
32640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32641 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
32642 | wxPyEndAllowThreads(__tstate); | |
32643 | if (PyErr_Occurred()) SWIG_fail; | |
32644 | } | |
32645 | { | |
32646 | #if wxUSE_UNICODE | |
32647 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32648 | #else | |
32649 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32650 | #endif | |
32651 | } | |
32652 | return resultobj; | |
32653 | fail: | |
32654 | return NULL; | |
32655 | } | |
32656 | ||
32657 | ||
32658 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32659 | PyObject *resultobj = 0; | |
32660 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32661 | wxString *arg2 = 0 ; | |
32662 | wxColour *arg3 = 0 ; | |
32663 | void *argp1 = 0 ; | |
32664 | int res1 = 0 ; | |
32665 | bool temp2 = false ; | |
32666 | wxColour temp3 ; | |
32667 | PyObject * obj0 = 0 ; | |
32668 | PyObject * obj1 = 0 ; | |
32669 | PyObject * obj2 = 0 ; | |
32670 | char * kwnames[] = { | |
32671 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
32672 | }; | |
32673 | ||
32674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32676 | if (!SWIG_IsOK(res1)) { | |
32677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32678 | } | |
32679 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32680 | { | |
32681 | arg2 = wxString_in_helper(obj1); | |
32682 | if (arg2 == NULL) SWIG_fail; | |
32683 | temp2 = true; | |
32684 | } | |
32685 | { | |
32686 | arg3 = &temp3; | |
32687 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32688 | } | |
32689 | { | |
32690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32691 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
32692 | wxPyEndAllowThreads(__tstate); | |
32693 | if (PyErr_Occurred()) SWIG_fail; | |
32694 | } | |
32695 | resultobj = SWIG_Py_Void(); | |
32696 | { | |
32697 | if (temp2) | |
32698 | delete arg2; | |
32699 | } | |
32700 | return resultobj; | |
32701 | fail: | |
32702 | { | |
32703 | if (temp2) | |
32704 | delete arg2; | |
32705 | } | |
32706 | return NULL; | |
32707 | } | |
32708 | ||
32709 | ||
32710 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32711 | PyObject *resultobj = 0; | |
32712 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32713 | wxString *arg2 = 0 ; | |
32714 | int arg3 ; | |
32715 | int arg4 ; | |
32716 | int arg5 ; | |
32717 | void *argp1 = 0 ; | |
32718 | int res1 = 0 ; | |
32719 | bool temp2 = false ; | |
32720 | int val3 ; | |
32721 | int ecode3 = 0 ; | |
32722 | int val4 ; | |
32723 | int ecode4 = 0 ; | |
50efceee RD |
32724 | int val5 ; |
32725 | int ecode5 = 0 ; | |
0085ce49 RD |
32726 | PyObject * obj0 = 0 ; |
32727 | PyObject * obj1 = 0 ; | |
32728 | PyObject * obj2 = 0 ; | |
32729 | PyObject * obj3 = 0 ; | |
32730 | PyObject * obj4 = 0 ; | |
0085ce49 | 32731 | char * kwnames[] = { |
50efceee | 32732 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
0085ce49 RD |
32733 | }; |
32734 | ||
50efceee RD |
32735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
32736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
0085ce49 | 32737 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
32738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
32739 | } | |
32740 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32741 | { | |
32742 | arg2 = wxString_in_helper(obj1); | |
32743 | if (arg2 == NULL) SWIG_fail; | |
32744 | temp2 = true; | |
0085ce49 | 32745 | } |
0085ce49 RD |
32746 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
32747 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 32748 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
0085ce49 RD |
32749 | } |
32750 | arg3 = static_cast< int >(val3); | |
32751 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32752 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 32753 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
0085ce49 RD |
32754 | } |
32755 | arg4 = static_cast< int >(val4); | |
32756 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32757 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 32758 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
0085ce49 RD |
32759 | } |
32760 | arg5 = static_cast< int >(val5); | |
0085ce49 RD |
32761 | { |
32762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32763 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
0085ce49 RD |
32764 | wxPyEndAllowThreads(__tstate); |
32765 | if (PyErr_Occurred()) SWIG_fail; | |
32766 | } | |
50efceee | 32767 | resultobj = SWIG_Py_Void(); |
0085ce49 | 32768 | { |
50efceee RD |
32769 | if (temp2) |
32770 | delete arg2; | |
0085ce49 RD |
32771 | } |
32772 | return resultobj; | |
32773 | fail: | |
32774 | { | |
50efceee RD |
32775 | if (temp2) |
32776 | delete arg2; | |
0085ce49 RD |
32777 | } |
32778 | return NULL; | |
32779 | } | |
32780 | ||
32781 | ||
50efceee RD |
32782 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32783 | PyObject *obj; | |
32784 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32785 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
32786 | return SWIG_Py_Void(); | |
32787 | } | |
32788 | ||
32789 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32790 | return SWIG_Python_InitShadowInstance(args); | |
32791 | } | |
32792 | ||
32793 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
0085ce49 | 32794 | PyObject *resultobj = 0; |
50efceee | 32795 | wxFontList *result = 0 ; |
0085ce49 | 32796 | |
50efceee | 32797 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32798 | { |
32799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32800 | result = (wxFontList *)_wxPyInitTheFontList(); |
0085ce49 RD |
32801 | wxPyEndAllowThreads(__tstate); |
32802 | if (PyErr_Occurred()) SWIG_fail; | |
32803 | } | |
50efceee | 32804 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
0085ce49 RD |
32805 | return resultobj; |
32806 | fail: | |
32807 | return NULL; | |
32808 | } | |
32809 | ||
32810 | ||
50efceee | 32811 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 32812 | PyObject *resultobj = 0; |
50efceee | 32813 | wxPenList *result = 0 ; |
0085ce49 | 32814 | |
50efceee | 32815 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32816 | { |
32817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32818 | result = (wxPenList *)_wxPyInitThePenList(); |
0085ce49 RD |
32819 | wxPyEndAllowThreads(__tstate); |
32820 | if (PyErr_Occurred()) SWIG_fail; | |
32821 | } | |
50efceee | 32822 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
0085ce49 RD |
32823 | return resultobj; |
32824 | fail: | |
32825 | return NULL; | |
32826 | } | |
32827 | ||
32828 | ||
50efceee RD |
32829 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32830 | PyObject *resultobj = 0; | |
32831 | wxBrushList *result = 0 ; | |
0085ce49 | 32832 | |
50efceee RD |
32833 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
32834 | { | |
32835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32836 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
32837 | wxPyEndAllowThreads(__tstate); | |
32838 | if (PyErr_Occurred()) SWIG_fail; | |
32839 | } | |
32840 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32841 | return resultobj; | |
32842 | fail: | |
32843 | return NULL; | |
0085ce49 RD |
32844 | } |
32845 | ||
32846 | ||
50efceee RD |
32847 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32848 | PyObject *resultobj = 0; | |
32849 | wxColourDatabase *result = 0 ; | |
0085ce49 | 32850 | |
50efceee RD |
32851 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
32852 | { | |
32853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32854 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
32855 | wxPyEndAllowThreads(__tstate); | |
32856 | if (PyErr_Occurred()) SWIG_fail; | |
32857 | } | |
32858 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32859 | return resultobj; | |
32860 | fail: | |
32861 | return NULL; | |
0085ce49 RD |
32862 | } |
32863 | ||
32864 | ||
32865 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32866 | PyObject *resultobj = 0; | |
32867 | wxEffects *result = 0 ; | |
32868 | ||
32869 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
32870 | { | |
32871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32872 | result = (wxEffects *)new wxEffects(); | |
32873 | wxPyEndAllowThreads(__tstate); | |
32874 | if (PyErr_Occurred()) SWIG_fail; | |
32875 | } | |
32876 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
32877 | return resultobj; | |
32878 | fail: | |
32879 | return NULL; | |
32880 | } | |
32881 | ||
32882 | ||
32883 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32884 | PyObject *resultobj = 0; | |
32885 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32886 | wxColour result; | |
32887 | void *argp1 = 0 ; | |
32888 | int res1 = 0 ; | |
32889 | PyObject *swig_obj[1] ; | |
32890 | ||
32891 | if (!args) SWIG_fail; | |
32892 | swig_obj[0] = args; | |
32893 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32894 | if (!SWIG_IsOK(res1)) { | |
32895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32896 | } | |
32897 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32898 | { | |
32899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32900 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
32901 | wxPyEndAllowThreads(__tstate); | |
32902 | if (PyErr_Occurred()) SWIG_fail; | |
32903 | } | |
32904 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32905 | return resultobj; | |
32906 | fail: | |
32907 | return NULL; | |
32908 | } | |
32909 | ||
32910 | ||
32911 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32912 | PyObject *resultobj = 0; | |
32913 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32914 | wxColour result; | |
32915 | void *argp1 = 0 ; | |
32916 | int res1 = 0 ; | |
32917 | PyObject *swig_obj[1] ; | |
32918 | ||
32919 | if (!args) SWIG_fail; | |
32920 | swig_obj[0] = args; | |
32921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32922 | if (!SWIG_IsOK(res1)) { | |
32923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32924 | } | |
32925 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32926 | { | |
32927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32928 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
32929 | wxPyEndAllowThreads(__tstate); | |
32930 | if (PyErr_Occurred()) SWIG_fail; | |
32931 | } | |
32932 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32933 | return resultobj; | |
32934 | fail: | |
32935 | return NULL; | |
32936 | } | |
32937 | ||
32938 | ||
32939 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32940 | PyObject *resultobj = 0; | |
32941 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32942 | wxColour result; | |
32943 | void *argp1 = 0 ; | |
32944 | int res1 = 0 ; | |
32945 | PyObject *swig_obj[1] ; | |
32946 | ||
32947 | if (!args) SWIG_fail; | |
32948 | swig_obj[0] = args; | |
32949 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32950 | if (!SWIG_IsOK(res1)) { | |
32951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32952 | } | |
32953 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32954 | { | |
32955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32956 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
32957 | wxPyEndAllowThreads(__tstate); | |
32958 | if (PyErr_Occurred()) SWIG_fail; | |
32959 | } | |
32960 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32961 | return resultobj; | |
32962 | fail: | |
32963 | return NULL; | |
32964 | } | |
32965 | ||
32966 | ||
32967 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32968 | PyObject *resultobj = 0; | |
32969 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32970 | wxColour result; | |
32971 | void *argp1 = 0 ; | |
32972 | int res1 = 0 ; | |
32973 | PyObject *swig_obj[1] ; | |
32974 | ||
32975 | if (!args) SWIG_fail; | |
32976 | swig_obj[0] = args; | |
32977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32978 | if (!SWIG_IsOK(res1)) { | |
32979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32980 | } | |
32981 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32982 | { | |
32983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32984 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
32985 | wxPyEndAllowThreads(__tstate); | |
32986 | if (PyErr_Occurred()) SWIG_fail; | |
32987 | } | |
32988 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32989 | return resultobj; | |
32990 | fail: | |
32991 | return NULL; | |
32992 | } | |
32993 | ||
32994 | ||
32995 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32996 | PyObject *resultobj = 0; | |
32997 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32998 | wxColour result; | |
32999 | void *argp1 = 0 ; | |
33000 | int res1 = 0 ; | |
33001 | PyObject *swig_obj[1] ; | |
33002 | ||
33003 | if (!args) SWIG_fail; | |
33004 | swig_obj[0] = args; | |
33005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33006 | if (!SWIG_IsOK(res1)) { | |
33007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33008 | } | |
33009 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33010 | { | |
33011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33012 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
33013 | wxPyEndAllowThreads(__tstate); | |
33014 | if (PyErr_Occurred()) SWIG_fail; | |
33015 | } | |
33016 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33017 | return resultobj; | |
33018 | fail: | |
33019 | return NULL; | |
33020 | } | |
33021 | ||
33022 | ||
33023 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33024 | PyObject *resultobj = 0; | |
33025 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33026 | wxColour *arg2 = 0 ; | |
33027 | void *argp1 = 0 ; | |
33028 | int res1 = 0 ; | |
33029 | wxColour temp2 ; | |
33030 | PyObject * obj0 = 0 ; | |
33031 | PyObject * obj1 = 0 ; | |
33032 | char * kwnames[] = { | |
33033 | (char *) "self",(char *) "c", NULL | |
33034 | }; | |
33035 | ||
33036 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33037 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33038 | if (!SWIG_IsOK(res1)) { | |
33039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33040 | } | |
33041 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33042 | { | |
33043 | arg2 = &temp2; | |
33044 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33045 | } | |
33046 | { | |
33047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33048 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
33049 | wxPyEndAllowThreads(__tstate); | |
33050 | if (PyErr_Occurred()) SWIG_fail; | |
33051 | } | |
33052 | resultobj = SWIG_Py_Void(); | |
33053 | return resultobj; | |
33054 | fail: | |
33055 | return NULL; | |
33056 | } | |
33057 | ||
33058 | ||
33059 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33060 | PyObject *resultobj = 0; | |
33061 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33062 | wxColour *arg2 = 0 ; | |
33063 | void *argp1 = 0 ; | |
33064 | int res1 = 0 ; | |
33065 | wxColour temp2 ; | |
33066 | PyObject * obj0 = 0 ; | |
33067 | PyObject * obj1 = 0 ; | |
33068 | char * kwnames[] = { | |
33069 | (char *) "self",(char *) "c", NULL | |
33070 | }; | |
33071 | ||
33072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33074 | if (!SWIG_IsOK(res1)) { | |
33075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33076 | } | |
33077 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33078 | { | |
33079 | arg2 = &temp2; | |
33080 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33081 | } | |
33082 | { | |
33083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33084 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
33085 | wxPyEndAllowThreads(__tstate); | |
33086 | if (PyErr_Occurred()) SWIG_fail; | |
33087 | } | |
33088 | resultobj = SWIG_Py_Void(); | |
33089 | return resultobj; | |
33090 | fail: | |
33091 | return NULL; | |
33092 | } | |
33093 | ||
33094 | ||
33095 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33096 | PyObject *resultobj = 0; | |
33097 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33098 | wxColour *arg2 = 0 ; | |
33099 | void *argp1 = 0 ; | |
33100 | int res1 = 0 ; | |
33101 | wxColour temp2 ; | |
33102 | PyObject * obj0 = 0 ; | |
33103 | PyObject * obj1 = 0 ; | |
33104 | char * kwnames[] = { | |
33105 | (char *) "self",(char *) "c", NULL | |
33106 | }; | |
33107 | ||
33108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33110 | if (!SWIG_IsOK(res1)) { | |
33111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33112 | } | |
33113 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33114 | { | |
33115 | arg2 = &temp2; | |
33116 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33117 | } | |
33118 | { | |
33119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33120 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
33121 | wxPyEndAllowThreads(__tstate); | |
33122 | if (PyErr_Occurred()) SWIG_fail; | |
33123 | } | |
33124 | resultobj = SWIG_Py_Void(); | |
33125 | return resultobj; | |
33126 | fail: | |
33127 | return NULL; | |
33128 | } | |
33129 | ||
33130 | ||
33131 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33132 | PyObject *resultobj = 0; | |
33133 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33134 | wxColour *arg2 = 0 ; | |
33135 | void *argp1 = 0 ; | |
33136 | int res1 = 0 ; | |
33137 | wxColour temp2 ; | |
33138 | PyObject * obj0 = 0 ; | |
33139 | PyObject * obj1 = 0 ; | |
33140 | char * kwnames[] = { | |
33141 | (char *) "self",(char *) "c", NULL | |
33142 | }; | |
33143 | ||
33144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33146 | if (!SWIG_IsOK(res1)) { | |
33147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33148 | } | |
33149 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33150 | { | |
33151 | arg2 = &temp2; | |
33152 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33153 | } | |
33154 | { | |
33155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33156 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
33157 | wxPyEndAllowThreads(__tstate); | |
33158 | if (PyErr_Occurred()) SWIG_fail; | |
33159 | } | |
33160 | resultobj = SWIG_Py_Void(); | |
33161 | return resultobj; | |
33162 | fail: | |
33163 | return NULL; | |
33164 | } | |
33165 | ||
33166 | ||
33167 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33168 | PyObject *resultobj = 0; | |
33169 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33170 | wxColour *arg2 = 0 ; | |
33171 | void *argp1 = 0 ; | |
33172 | int res1 = 0 ; | |
33173 | wxColour temp2 ; | |
33174 | PyObject * obj0 = 0 ; | |
33175 | PyObject * obj1 = 0 ; | |
33176 | char * kwnames[] = { | |
33177 | (char *) "self",(char *) "c", NULL | |
33178 | }; | |
33179 | ||
33180 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33181 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33182 | if (!SWIG_IsOK(res1)) { | |
33183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33184 | } | |
33185 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33186 | { | |
33187 | arg2 = &temp2; | |
33188 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33189 | } | |
33190 | { | |
33191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33192 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
33193 | wxPyEndAllowThreads(__tstate); | |
33194 | if (PyErr_Occurred()) SWIG_fail; | |
33195 | } | |
33196 | resultobj = SWIG_Py_Void(); | |
33197 | return resultobj; | |
33198 | fail: | |
33199 | return NULL; | |
33200 | } | |
33201 | ||
33202 | ||
33203 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33204 | PyObject *resultobj = 0; | |
33205 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33206 | wxColour *arg2 = 0 ; | |
33207 | wxColour *arg3 = 0 ; | |
33208 | wxColour *arg4 = 0 ; | |
33209 | wxColour *arg5 = 0 ; | |
33210 | wxColour *arg6 = 0 ; | |
33211 | void *argp1 = 0 ; | |
33212 | int res1 = 0 ; | |
33213 | wxColour temp2 ; | |
33214 | wxColour temp3 ; | |
33215 | wxColour temp4 ; | |
33216 | wxColour temp5 ; | |
33217 | wxColour temp6 ; | |
33218 | PyObject * obj0 = 0 ; | |
33219 | PyObject * obj1 = 0 ; | |
33220 | PyObject * obj2 = 0 ; | |
33221 | PyObject * obj3 = 0 ; | |
33222 | PyObject * obj4 = 0 ; | |
33223 | PyObject * obj5 = 0 ; | |
33224 | char * kwnames[] = { | |
33225 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
33226 | }; | |
33227 | ||
33228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
33229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33230 | if (!SWIG_IsOK(res1)) { | |
33231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33232 | } | |
33233 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33234 | { | |
33235 | arg2 = &temp2; | |
33236 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33237 | } | |
33238 | { | |
33239 | arg3 = &temp3; | |
33240 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
33241 | } | |
33242 | { | |
33243 | arg4 = &temp4; | |
33244 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
33245 | } | |
33246 | { | |
33247 | arg5 = &temp5; | |
33248 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
33249 | } | |
33250 | { | |
33251 | arg6 = &temp6; | |
33252 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
33253 | } | |
33254 | { | |
33255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33256 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
33257 | wxPyEndAllowThreads(__tstate); | |
33258 | if (PyErr_Occurred()) SWIG_fail; | |
33259 | } | |
33260 | resultobj = SWIG_Py_Void(); | |
33261 | return resultobj; | |
33262 | fail: | |
33263 | return NULL; | |
33264 | } | |
33265 | ||
33266 | ||
33267 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33268 | PyObject *resultobj = 0; | |
33269 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33270 | wxDC *arg2 = 0 ; | |
33271 | wxRect *arg3 = 0 ; | |
33272 | int arg4 = (int) 1 ; | |
33273 | void *argp1 = 0 ; | |
33274 | int res1 = 0 ; | |
33275 | void *argp2 = 0 ; | |
33276 | int res2 = 0 ; | |
33277 | wxRect temp3 ; | |
33278 | int val4 ; | |
33279 | int ecode4 = 0 ; | |
33280 | PyObject * obj0 = 0 ; | |
33281 | PyObject * obj1 = 0 ; | |
33282 | PyObject * obj2 = 0 ; | |
33283 | PyObject * obj3 = 0 ; | |
33284 | char * kwnames[] = { | |
33285 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
33286 | }; | |
33287 | ||
33288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33289 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33290 | if (!SWIG_IsOK(res1)) { | |
33291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33292 | } | |
33293 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33294 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
33295 | if (!SWIG_IsOK(res2)) { | |
33296 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
33297 | } | |
33298 | if (!argp2) { | |
33299 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
33300 | } | |
33301 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
33302 | { | |
33303 | arg3 = &temp3; | |
33304 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
33305 | } | |
33306 | if (obj3) { | |
33307 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33308 | if (!SWIG_IsOK(ecode4)) { | |
33309 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
33310 | } | |
33311 | arg4 = static_cast< int >(val4); | |
33312 | } | |
33313 | { | |
33314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33315 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
33316 | wxPyEndAllowThreads(__tstate); | |
33317 | if (PyErr_Occurred()) SWIG_fail; | |
33318 | } | |
33319 | resultobj = SWIG_Py_Void(); | |
33320 | return resultobj; | |
33321 | fail: | |
33322 | return NULL; | |
33323 | } | |
33324 | ||
33325 | ||
33326 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33327 | PyObject *resultobj = 0; | |
33328 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33329 | wxRect *arg2 = 0 ; | |
33330 | wxDC *arg3 = 0 ; | |
33331 | wxBitmap *arg4 = 0 ; | |
33332 | bool result; | |
33333 | void *argp1 = 0 ; | |
33334 | int res1 = 0 ; | |
33335 | wxRect temp2 ; | |
33336 | void *argp3 = 0 ; | |
33337 | int res3 = 0 ; | |
33338 | void *argp4 = 0 ; | |
33339 | int res4 = 0 ; | |
33340 | PyObject * obj0 = 0 ; | |
33341 | PyObject * obj1 = 0 ; | |
33342 | PyObject * obj2 = 0 ; | |
33343 | PyObject * obj3 = 0 ; | |
33344 | char * kwnames[] = { | |
33345 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
33346 | }; | |
33347 | ||
33348 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33349 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33350 | if (!SWIG_IsOK(res1)) { | |
33351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33352 | } | |
33353 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33354 | { | |
33355 | arg2 = &temp2; | |
33356 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
33357 | } | |
33358 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33359 | if (!SWIG_IsOK(res3)) { | |
33360 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33361 | } | |
33362 | if (!argp3) { | |
33363 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33364 | } | |
33365 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33366 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
33367 | if (!SWIG_IsOK(res4)) { | |
33368 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33369 | } | |
33370 | if (!argp4) { | |
33371 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33372 | } | |
33373 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
33374 | { | |
33375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33376 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
33377 | wxPyEndAllowThreads(__tstate); | |
33378 | if (PyErr_Occurred()) SWIG_fail; | |
33379 | } | |
33380 | { | |
33381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33382 | } | |
33383 | return resultobj; | |
33384 | fail: | |
33385 | return NULL; | |
33386 | } | |
33387 | ||
33388 | ||
33389 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33390 | PyObject *obj; | |
33391 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33392 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
33393 | return SWIG_Py_Void(); | |
33394 | } | |
33395 | ||
33396 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33397 | return SWIG_Python_InitShadowInstance(args); | |
33398 | } | |
33399 | ||
33400 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33401 | PyObject *resultobj = 0; | |
33402 | int arg1 ; | |
33403 | int arg2 ; | |
33404 | bool arg3 ; | |
33405 | wxSplitterRenderParams *result = 0 ; | |
33406 | int val1 ; | |
33407 | int ecode1 = 0 ; | |
33408 | int val2 ; | |
33409 | int ecode2 = 0 ; | |
33410 | bool val3 ; | |
33411 | int ecode3 = 0 ; | |
33412 | PyObject * obj0 = 0 ; | |
33413 | PyObject * obj1 = 0 ; | |
33414 | PyObject * obj2 = 0 ; | |
33415 | char * kwnames[] = { | |
33416 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
33417 | }; | |
33418 | ||
33419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33420 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
33421 | if (!SWIG_IsOK(ecode1)) { | |
33422 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
33423 | } | |
33424 | arg1 = static_cast< int >(val1); | |
33425 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33426 | if (!SWIG_IsOK(ecode2)) { | |
33427 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
33428 | } | |
33429 | arg2 = static_cast< int >(val2); | |
33430 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
33431 | if (!SWIG_IsOK(ecode3)) { | |
33432 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
33433 | } | |
33434 | arg3 = static_cast< bool >(val3); | |
33435 | { | |
33436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33437 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
33438 | wxPyEndAllowThreads(__tstate); | |
33439 | if (PyErr_Occurred()) SWIG_fail; | |
33440 | } | |
33441 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
33442 | return resultobj; | |
33443 | fail: | |
33444 | return NULL; | |
33445 | } | |
33446 | ||
33447 | ||
33448 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33449 | PyObject *resultobj = 0; | |
33450 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33451 | void *argp1 = 0 ; | |
33452 | int res1 = 0 ; | |
33453 | PyObject *swig_obj[1] ; | |
33454 | ||
33455 | if (!args) SWIG_fail; | |
33456 | swig_obj[0] = args; | |
33457 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
33458 | if (!SWIG_IsOK(res1)) { | |
33459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33460 | } | |
33461 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33462 | { | |
33463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33464 | delete arg1; | |
33465 | ||
33466 | wxPyEndAllowThreads(__tstate); | |
33467 | if (PyErr_Occurred()) SWIG_fail; | |
33468 | } | |
33469 | resultobj = SWIG_Py_Void(); | |
33470 | return resultobj; | |
33471 | fail: | |
33472 | return NULL; | |
33473 | } | |
33474 | ||
33475 | ||
33476 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33477 | PyObject *resultobj = 0; | |
33478 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33479 | int result; | |
33480 | void *argp1 = 0 ; | |
33481 | int res1 = 0 ; | |
33482 | PyObject *swig_obj[1] ; | |
33483 | ||
33484 | if (!args) SWIG_fail; | |
33485 | swig_obj[0] = args; | |
33486 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33487 | if (!SWIG_IsOK(res1)) { | |
33488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33489 | } | |
33490 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33491 | result = (int)(int) ((arg1)->widthSash); | |
33492 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33493 | return resultobj; | |
33494 | fail: | |
33495 | return NULL; | |
33496 | } | |
33497 | ||
33498 | ||
33499 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33500 | PyObject *resultobj = 0; | |
33501 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33502 | int result; | |
33503 | void *argp1 = 0 ; | |
33504 | int res1 = 0 ; | |
33505 | PyObject *swig_obj[1] ; | |
33506 | ||
33507 | if (!args) SWIG_fail; | |
33508 | swig_obj[0] = args; | |
33509 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33510 | if (!SWIG_IsOK(res1)) { | |
33511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33512 | } | |
33513 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33514 | result = (int)(int) ((arg1)->border); | |
33515 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33516 | return resultobj; | |
33517 | fail: | |
33518 | return NULL; | |
33519 | } | |
33520 | ||
33521 | ||
33522 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33523 | PyObject *resultobj = 0; | |
33524 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33525 | bool result; | |
33526 | void *argp1 = 0 ; | |
33527 | int res1 = 0 ; | |
33528 | PyObject *swig_obj[1] ; | |
33529 | ||
33530 | if (!args) SWIG_fail; | |
33531 | swig_obj[0] = args; | |
33532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33533 | if (!SWIG_IsOK(res1)) { | |
33534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33535 | } | |
33536 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33537 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
33538 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
33539 | return resultobj; | |
33540 | fail: | |
33541 | return NULL; | |
33542 | } | |
33543 | ||
33544 | ||
33545 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33546 | PyObject *obj; | |
33547 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33548 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
33549 | return SWIG_Py_Void(); | |
33550 | } | |
33551 | ||
33552 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33553 | return SWIG_Python_InitShadowInstance(args); | |
33554 | } | |
33555 | ||
33d6fd3b RD |
33556 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33557 | PyObject *resultobj = 0; | |
33558 | wxHeaderButtonParams *result = 0 ; | |
33559 | ||
33560 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
33561 | { | |
33562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33563 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
33564 | wxPyEndAllowThreads(__tstate); | |
33565 | if (PyErr_Occurred()) SWIG_fail; | |
33566 | } | |
33567 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
33568 | return resultobj; | |
33569 | fail: | |
33570 | return NULL; | |
33571 | } | |
33572 | ||
33573 | ||
33574 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33575 | PyObject *resultobj = 0; | |
33576 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33577 | void *argp1 = 0 ; | |
33578 | int res1 = 0 ; | |
33579 | PyObject *swig_obj[1] ; | |
33580 | ||
33581 | if (!args) SWIG_fail; | |
33582 | swig_obj[0] = args; | |
33583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
33584 | if (!SWIG_IsOK(res1)) { | |
33585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33586 | } | |
33587 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33588 | { | |
33589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33590 | delete arg1; | |
33591 | ||
33592 | wxPyEndAllowThreads(__tstate); | |
33593 | if (PyErr_Occurred()) SWIG_fail; | |
33594 | } | |
33595 | resultobj = SWIG_Py_Void(); | |
33596 | return resultobj; | |
33597 | fail: | |
33598 | return NULL; | |
33599 | } | |
33600 | ||
33601 | ||
33602 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33603 | PyObject *resultobj = 0; | |
33604 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33605 | wxColour *arg2 = (wxColour *) 0 ; | |
33606 | void *argp1 = 0 ; | |
33607 | int res1 = 0 ; | |
33608 | wxColour temp2 ; | |
33609 | PyObject *swig_obj[2] ; | |
33610 | ||
33611 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_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_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33615 | } | |
33616 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33617 | { | |
33618 | arg2 = &temp2; | |
33619 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33620 | } | |
33621 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
33622 | ||
33623 | resultobj = SWIG_Py_Void(); | |
33624 | return resultobj; | |
33625 | fail: | |
33626 | return NULL; | |
33627 | } | |
33628 | ||
33629 | ||
33630 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33631 | PyObject *resultobj = 0; | |
33632 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33633 | wxColour *result = 0 ; | |
33634 | void *argp1 = 0 ; | |
33635 | int res1 = 0 ; | |
33636 | PyObject *swig_obj[1] ; | |
33637 | ||
33638 | if (!args) SWIG_fail; | |
33639 | swig_obj[0] = args; | |
33640 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33641 | if (!SWIG_IsOK(res1)) { | |
33642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33643 | } | |
33644 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33645 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
33646 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33647 | return resultobj; | |
33648 | fail: | |
33649 | return NULL; | |
33650 | } | |
33651 | ||
33652 | ||
33653 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33654 | PyObject *resultobj = 0; | |
33655 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33656 | wxColour *arg2 = (wxColour *) 0 ; | |
33657 | void *argp1 = 0 ; | |
33658 | int res1 = 0 ; | |
33659 | wxColour temp2 ; | |
33660 | PyObject *swig_obj[2] ; | |
33661 | ||
33662 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
33663 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33664 | if (!SWIG_IsOK(res1)) { | |
33665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33666 | } | |
33667 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33668 | { | |
33669 | arg2 = &temp2; | |
33670 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33671 | } | |
33672 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
33673 | ||
33674 | resultobj = SWIG_Py_Void(); | |
33675 | return resultobj; | |
33676 | fail: | |
33677 | return NULL; | |
33678 | } | |
33679 | ||
33680 | ||
33681 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33682 | PyObject *resultobj = 0; | |
33683 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33684 | wxColour *result = 0 ; | |
33685 | void *argp1 = 0 ; | |
33686 | int res1 = 0 ; | |
33687 | PyObject *swig_obj[1] ; | |
33688 | ||
33689 | if (!args) SWIG_fail; | |
33690 | swig_obj[0] = args; | |
33691 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33692 | if (!SWIG_IsOK(res1)) { | |
33693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33694 | } | |
33695 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33696 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
33697 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33698 | return resultobj; | |
33699 | fail: | |
33700 | return NULL; | |
33701 | } | |
33702 | ||
33703 | ||
33704 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33705 | PyObject *resultobj = 0; | |
33706 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33707 | wxString *arg2 = (wxString *) 0 ; | |
33708 | void *argp1 = 0 ; | |
33709 | int res1 = 0 ; | |
33710 | bool temp2 = false ; | |
33711 | PyObject *swig_obj[2] ; | |
33712 | ||
33713 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
33714 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33715 | if (!SWIG_IsOK(res1)) { | |
33716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33717 | } | |
33718 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33719 | { | |
33720 | arg2 = wxString_in_helper(swig_obj[1]); | |
33721 | if (arg2 == NULL) SWIG_fail; | |
33722 | temp2 = true; | |
33723 | } | |
33724 | if (arg1) (arg1)->m_labelText = *arg2; | |
33725 | ||
33726 | resultobj = SWIG_Py_Void(); | |
33727 | { | |
33728 | if (temp2) | |
33729 | delete arg2; | |
33730 | } | |
33731 | return resultobj; | |
33732 | fail: | |
33733 | { | |
33734 | if (temp2) | |
33735 | delete arg2; | |
33736 | } | |
33737 | return NULL; | |
33738 | } | |
33739 | ||
33740 | ||
33741 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33742 | PyObject *resultobj = 0; | |
33743 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33744 | wxString *result = 0 ; | |
33745 | void *argp1 = 0 ; | |
33746 | int res1 = 0 ; | |
33747 | PyObject *swig_obj[1] ; | |
33748 | ||
33749 | if (!args) SWIG_fail; | |
33750 | swig_obj[0] = args; | |
33751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33752 | if (!SWIG_IsOK(res1)) { | |
33753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33754 | } | |
33755 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33756 | result = (wxString *)& ((arg1)->m_labelText); | |
33757 | { | |
33758 | #if wxUSE_UNICODE | |
33759 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33760 | #else | |
33761 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33762 | #endif | |
33763 | } | |
33764 | return resultobj; | |
33765 | fail: | |
33766 | return NULL; | |
33767 | } | |
33768 | ||
33769 | ||
33770 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33771 | PyObject *resultobj = 0; | |
33772 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33773 | wxFont *arg2 = (wxFont *) 0 ; | |
33774 | void *argp1 = 0 ; | |
33775 | int res1 = 0 ; | |
33776 | void *argp2 = 0 ; | |
33777 | int res2 = 0 ; | |
33778 | PyObject *swig_obj[2] ; | |
33779 | ||
33780 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
33781 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33782 | if (!SWIG_IsOK(res1)) { | |
33783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33784 | } | |
33785 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33786 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
33787 | if (!SWIG_IsOK(res2)) { | |
33788 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
33789 | } | |
33790 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
33791 | if (arg1) (arg1)->m_labelFont = *arg2; | |
33792 | ||
33793 | resultobj = SWIG_Py_Void(); | |
33794 | return resultobj; | |
33795 | fail: | |
33796 | return NULL; | |
33797 | } | |
33798 | ||
33799 | ||
33800 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33801 | PyObject *resultobj = 0; | |
33802 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33803 | wxFont *result = 0 ; | |
33804 | void *argp1 = 0 ; | |
33805 | int res1 = 0 ; | |
33806 | PyObject *swig_obj[1] ; | |
33807 | ||
33808 | if (!args) SWIG_fail; | |
33809 | swig_obj[0] = args; | |
33810 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33811 | if (!SWIG_IsOK(res1)) { | |
33812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33813 | } | |
33814 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33815 | result = (wxFont *)& ((arg1)->m_labelFont); | |
33816 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
33817 | return resultobj; | |
33818 | fail: | |
33819 | return NULL; | |
33820 | } | |
33821 | ||
33822 | ||
33823 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33824 | PyObject *resultobj = 0; | |
33825 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33826 | wxColour *arg2 = (wxColour *) 0 ; | |
33827 | void *argp1 = 0 ; | |
33828 | int res1 = 0 ; | |
33829 | wxColour temp2 ; | |
33830 | PyObject *swig_obj[2] ; | |
33831 | ||
33832 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
33833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33834 | if (!SWIG_IsOK(res1)) { | |
33835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33836 | } | |
33837 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33838 | { | |
33839 | arg2 = &temp2; | |
33840 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33841 | } | |
33842 | if (arg1) (arg1)->m_labelColour = *arg2; | |
33843 | ||
33844 | resultobj = SWIG_Py_Void(); | |
33845 | return resultobj; | |
33846 | fail: | |
33847 | return NULL; | |
33848 | } | |
33849 | ||
33850 | ||
33851 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33852 | PyObject *resultobj = 0; | |
33853 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33854 | wxColour *result = 0 ; | |
33855 | void *argp1 = 0 ; | |
33856 | int res1 = 0 ; | |
33857 | PyObject *swig_obj[1] ; | |
33858 | ||
33859 | if (!args) SWIG_fail; | |
33860 | swig_obj[0] = args; | |
33861 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33862 | if (!SWIG_IsOK(res1)) { | |
33863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33864 | } | |
33865 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33866 | result = (wxColour *)& ((arg1)->m_labelColour); | |
33867 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33868 | return resultobj; | |
33869 | fail: | |
33870 | return NULL; | |
33871 | } | |
33872 | ||
33873 | ||
33874 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33875 | PyObject *resultobj = 0; | |
33876 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33877 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
33878 | void *argp1 = 0 ; | |
33879 | int res1 = 0 ; | |
33880 | void *argp2 = 0 ; | |
33881 | int res2 = 0 ; | |
33882 | PyObject *swig_obj[2] ; | |
33883 | ||
33884 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
33885 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33886 | if (!SWIG_IsOK(res1)) { | |
33887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33888 | } | |
33889 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33890 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33891 | if (!SWIG_IsOK(res2)) { | |
33892 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
33893 | } | |
33894 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
33895 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
33896 | ||
33897 | resultobj = SWIG_Py_Void(); | |
33898 | return resultobj; | |
33899 | fail: | |
33900 | return NULL; | |
33901 | } | |
33902 | ||
33903 | ||
33904 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33905 | PyObject *resultobj = 0; | |
33906 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33907 | wxBitmap *result = 0 ; | |
33908 | void *argp1 = 0 ; | |
33909 | int res1 = 0 ; | |
33910 | PyObject *swig_obj[1] ; | |
33911 | ||
33912 | if (!args) SWIG_fail; | |
33913 | swig_obj[0] = args; | |
33914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33915 | if (!SWIG_IsOK(res1)) { | |
33916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33917 | } | |
33918 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33919 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
33920 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33921 | return resultobj; | |
33922 | fail: | |
33923 | return NULL; | |
33924 | } | |
33925 | ||
33926 | ||
33927 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33928 | PyObject *resultobj = 0; | |
33929 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33930 | int arg2 ; | |
33931 | void *argp1 = 0 ; | |
33932 | int res1 = 0 ; | |
33933 | int val2 ; | |
33934 | int ecode2 = 0 ; | |
33935 | PyObject *swig_obj[2] ; | |
33936 | ||
33937 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
33938 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33939 | if (!SWIG_IsOK(res1)) { | |
33940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33941 | } | |
33942 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33943 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
33944 | if (!SWIG_IsOK(ecode2)) { | |
33945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
33946 | } | |
33947 | arg2 = static_cast< int >(val2); | |
33948 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
33949 | ||
33950 | resultobj = SWIG_Py_Void(); | |
33951 | return resultobj; | |
33952 | fail: | |
33953 | return NULL; | |
33954 | } | |
33955 | ||
33956 | ||
33957 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33958 | PyObject *resultobj = 0; | |
33959 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33960 | int result; | |
33961 | void *argp1 = 0 ; | |
33962 | int res1 = 0 ; | |
33963 | PyObject *swig_obj[1] ; | |
33964 | ||
33965 | if (!args) SWIG_fail; | |
33966 | swig_obj[0] = args; | |
33967 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33968 | if (!SWIG_IsOK(res1)) { | |
33969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33970 | } | |
33971 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33972 | result = (int) ((arg1)->m_labelAlignment); | |
33973 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33974 | return resultobj; | |
33975 | fail: | |
33976 | return NULL; | |
33977 | } | |
33978 | ||
33979 | ||
33980 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33981 | PyObject *obj; | |
33982 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33983 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
33984 | return SWIG_Py_Void(); | |
33985 | } | |
33986 | ||
33987 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33988 | return SWIG_Python_InitShadowInstance(args); | |
33989 | } | |
33990 | ||
0085ce49 RD |
33991 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33992 | PyObject *resultobj = 0; | |
33993 | int arg1 ; | |
33994 | int arg2 ; | |
33995 | wxRendererVersion *result = 0 ; | |
33996 | int val1 ; | |
33997 | int ecode1 = 0 ; | |
33998 | int val2 ; | |
33999 | int ecode2 = 0 ; | |
34000 | PyObject * obj0 = 0 ; | |
34001 | PyObject * obj1 = 0 ; | |
34002 | char * kwnames[] = { | |
34003 | (char *) "version_",(char *) "age_", NULL | |
34004 | }; | |
34005 | ||
34006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
34007 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34008 | if (!SWIG_IsOK(ecode1)) { | |
34009 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
34010 | } | |
34011 | arg1 = static_cast< int >(val1); | |
34012 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34013 | if (!SWIG_IsOK(ecode2)) { | |
34014 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
34015 | } | |
34016 | arg2 = static_cast< int >(val2); | |
34017 | { | |
34018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34019 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
34020 | wxPyEndAllowThreads(__tstate); | |
34021 | if (PyErr_Occurred()) SWIG_fail; | |
34022 | } | |
34023 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
34024 | return resultobj; | |
34025 | fail: | |
34026 | return NULL; | |
34027 | } | |
34028 | ||
34029 | ||
34030 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34031 | PyObject *resultobj = 0; | |
34032 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34033 | void *argp1 = 0 ; | |
34034 | int res1 = 0 ; | |
34035 | PyObject *swig_obj[1] ; | |
34036 | ||
34037 | if (!args) SWIG_fail; | |
34038 | swig_obj[0] = args; | |
34039 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
34040 | if (!SWIG_IsOK(res1)) { | |
34041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34042 | } | |
34043 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34044 | { | |
34045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34046 | delete arg1; | |
34047 | ||
34048 | wxPyEndAllowThreads(__tstate); | |
34049 | if (PyErr_Occurred()) SWIG_fail; | |
34050 | } | |
34051 | resultobj = SWIG_Py_Void(); | |
34052 | return resultobj; | |
34053 | fail: | |
34054 | return NULL; | |
34055 | } | |
34056 | ||
34057 | ||
34058 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34059 | PyObject *resultobj = 0; | |
34060 | wxRendererVersion *arg1 = 0 ; | |
34061 | bool result; | |
34062 | void *argp1 = 0 ; | |
34063 | int res1 = 0 ; | |
34064 | PyObject * obj0 = 0 ; | |
34065 | char * kwnames[] = { | |
34066 | (char *) "ver", NULL | |
34067 | }; | |
34068 | ||
34069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
34070 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
34071 | if (!SWIG_IsOK(res1)) { | |
34072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34073 | } | |
34074 | if (!argp1) { | |
34075 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34076 | } | |
34077 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34078 | { | |
34079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34080 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
34081 | wxPyEndAllowThreads(__tstate); | |
34082 | if (PyErr_Occurred()) SWIG_fail; | |
34083 | } | |
34084 | { | |
34085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34086 | } | |
34087 | return resultobj; | |
34088 | fail: | |
34089 | return NULL; | |
34090 | } | |
34091 | ||
34092 | ||
34093 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34094 | PyObject *resultobj = 0; | |
34095 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34096 | int result; | |
34097 | void *argp1 = 0 ; | |
34098 | int res1 = 0 ; | |
34099 | PyObject *swig_obj[1] ; | |
34100 | ||
34101 | if (!args) SWIG_fail; | |
34102 | swig_obj[0] = args; | |
34103 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34104 | if (!SWIG_IsOK(res1)) { | |
34105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34106 | } | |
34107 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34108 | result = (int)(int) ((arg1)->version); | |
34109 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34110 | return resultobj; | |
34111 | fail: | |
34112 | return NULL; | |
34113 | } | |
34114 | ||
34115 | ||
34116 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34117 | PyObject *resultobj = 0; | |
34118 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34119 | int result; | |
34120 | void *argp1 = 0 ; | |
34121 | int res1 = 0 ; | |
34122 | PyObject *swig_obj[1] ; | |
34123 | ||
34124 | if (!args) SWIG_fail; | |
34125 | swig_obj[0] = args; | |
34126 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34127 | if (!SWIG_IsOK(res1)) { | |
34128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34129 | } | |
34130 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34131 | result = (int)(int) ((arg1)->age); | |
34132 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34133 | return resultobj; | |
34134 | fail: | |
34135 | return NULL; | |
34136 | } | |
34137 | ||
34138 | ||
34139 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34140 | PyObject *obj; | |
34141 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34142 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
34143 | return SWIG_Py_Void(); | |
34144 | } | |
34145 | ||
34146 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34147 | return SWIG_Python_InitShadowInstance(args); | |
34148 | } | |
34149 | ||
34150 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34151 | PyObject *resultobj = 0; | |
34152 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34153 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34154 | wxDC *arg3 = 0 ; | |
34155 | wxRect *arg4 = 0 ; | |
34156 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
34157 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
34158 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 34159 | int result; |
0085ce49 RD |
34160 | void *argp1 = 0 ; |
34161 | int res1 = 0 ; | |
34162 | void *argp2 = 0 ; | |
34163 | int res2 = 0 ; | |
34164 | void *argp3 = 0 ; | |
34165 | int res3 = 0 ; | |
34166 | wxRect temp4 ; | |
34167 | int val5 ; | |
34168 | int ecode5 = 0 ; | |
33d6fd3b RD |
34169 | int val6 ; |
34170 | int ecode6 = 0 ; | |
34171 | void *argp7 = 0 ; | |
34172 | int res7 = 0 ; | |
0085ce49 RD |
34173 | PyObject * obj0 = 0 ; |
34174 | PyObject * obj1 = 0 ; | |
34175 | PyObject * obj2 = 0 ; | |
34176 | PyObject * obj3 = 0 ; | |
34177 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
34178 | PyObject * obj5 = 0 ; |
34179 | PyObject * obj6 = 0 ; | |
0085ce49 | 34180 | char * kwnames[] = { |
33d6fd3b | 34181 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
0085ce49 RD |
34182 | }; |
34183 | ||
33d6fd3b | 34184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
0085ce49 RD |
34185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34186 | if (!SWIG_IsOK(res1)) { | |
34187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34188 | } | |
34189 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34190 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34191 | if (!SWIG_IsOK(res2)) { | |
34192 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34193 | } | |
34194 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34195 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34196 | if (!SWIG_IsOK(res3)) { | |
34197 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34198 | } | |
34199 | if (!argp3) { | |
34200 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34201 | } | |
34202 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34203 | { | |
34204 | arg4 = &temp4; | |
34205 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34206 | } | |
34207 | if (obj4) { | |
34208 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34209 | if (!SWIG_IsOK(ecode5)) { | |
34210 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
34211 | } | |
34212 | arg5 = static_cast< int >(val5); | |
34213 | } | |
33d6fd3b RD |
34214 | if (obj5) { |
34215 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34216 | if (!SWIG_IsOK(ecode6)) { | |
34217 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34218 | } | |
34219 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34220 | } | |
34221 | if (obj6) { | |
34222 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34223 | if (!SWIG_IsOK(res7)) { | |
34224 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
34225 | } | |
34226 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
34227 | } | |
34228 | { | |
34229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 34230 | result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
33d6fd3b RD |
34231 | wxPyEndAllowThreads(__tstate); |
34232 | if (PyErr_Occurred()) SWIG_fail; | |
34233 | } | |
723282b6 | 34234 | resultobj = SWIG_From_int(static_cast< int >(result)); |
33d6fd3b RD |
34235 | return resultobj; |
34236 | fail: | |
34237 | return NULL; | |
34238 | } | |
34239 | ||
34240 | ||
34241 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34242 | PyObject *resultobj = 0; | |
34243 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34244 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34245 | wxDC *arg3 = 0 ; | |
34246 | wxRect *arg4 = 0 ; | |
34247 | int arg5 = (int) 0 ; | |
34248 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
34249 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 34250 | int result; |
33d6fd3b RD |
34251 | void *argp1 = 0 ; |
34252 | int res1 = 0 ; | |
34253 | void *argp2 = 0 ; | |
34254 | int res2 = 0 ; | |
34255 | void *argp3 = 0 ; | |
34256 | int res3 = 0 ; | |
34257 | wxRect temp4 ; | |
34258 | int val5 ; | |
34259 | int ecode5 = 0 ; | |
34260 | int val6 ; | |
34261 | int ecode6 = 0 ; | |
34262 | void *argp7 = 0 ; | |
34263 | int res7 = 0 ; | |
34264 | PyObject * obj0 = 0 ; | |
34265 | PyObject * obj1 = 0 ; | |
34266 | PyObject * obj2 = 0 ; | |
34267 | PyObject * obj3 = 0 ; | |
34268 | PyObject * obj4 = 0 ; | |
34269 | PyObject * obj5 = 0 ; | |
34270 | PyObject * obj6 = 0 ; | |
34271 | char * kwnames[] = { | |
34272 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
34273 | }; | |
34274 | ||
34275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34277 | if (!SWIG_IsOK(res1)) { | |
34278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34279 | } | |
34280 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34281 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34282 | if (!SWIG_IsOK(res2)) { | |
34283 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34284 | } | |
34285 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34286 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34287 | if (!SWIG_IsOK(res3)) { | |
34288 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34289 | } | |
34290 | if (!argp3) { | |
34291 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34292 | } | |
34293 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34294 | { | |
34295 | arg4 = &temp4; | |
34296 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34297 | } | |
34298 | if (obj4) { | |
34299 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34300 | if (!SWIG_IsOK(ecode5)) { | |
34301 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
34302 | } | |
34303 | arg5 = static_cast< int >(val5); | |
34304 | } | |
34305 | if (obj5) { | |
34306 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34307 | if (!SWIG_IsOK(ecode6)) { | |
34308 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34309 | } | |
34310 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34311 | } | |
34312 | if (obj6) { | |
34313 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34314 | if (!SWIG_IsOK(res7)) { | |
34315 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
34316 | } | |
34317 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
34318 | } | |
0085ce49 RD |
34319 | { |
34320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 34321 | result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
0085ce49 RD |
34322 | wxPyEndAllowThreads(__tstate); |
34323 | if (PyErr_Occurred()) SWIG_fail; | |
34324 | } | |
723282b6 | 34325 | resultobj = SWIG_From_int(static_cast< int >(result)); |
0085ce49 RD |
34326 | return resultobj; |
34327 | fail: | |
34328 | return NULL; | |
34329 | } | |
34330 | ||
34331 | ||
33d6fd3b RD |
34332 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34333 | PyObject *resultobj = 0; | |
34334 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34335 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34336 | int result; | |
34337 | void *argp1 = 0 ; | |
34338 | int res1 = 0 ; | |
34339 | void *argp2 = 0 ; | |
34340 | int res2 = 0 ; | |
34341 | PyObject * obj0 = 0 ; | |
34342 | PyObject * obj1 = 0 ; | |
34343 | char * kwnames[] = { | |
34344 | (char *) "self",(char *) "win", NULL | |
34345 | }; | |
34346 | ||
34347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
34348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34349 | if (!SWIG_IsOK(res1)) { | |
34350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34351 | } | |
34352 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34353 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34354 | if (!SWIG_IsOK(res2)) { | |
34355 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34356 | } | |
34357 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34358 | { | |
34359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34360 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
34361 | wxPyEndAllowThreads(__tstate); | |
34362 | if (PyErr_Occurred()) SWIG_fail; | |
34363 | } | |
34364 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34365 | return resultobj; | |
34366 | fail: | |
34367 | return NULL; | |
34368 | } | |
34369 | ||
34370 | ||
0085ce49 RD |
34371 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34372 | PyObject *resultobj = 0; | |
34373 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34374 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34375 | wxDC *arg3 = 0 ; | |
34376 | wxRect *arg4 = 0 ; | |
34377 | int arg5 = (int) 0 ; | |
34378 | void *argp1 = 0 ; | |
34379 | int res1 = 0 ; | |
34380 | void *argp2 = 0 ; | |
34381 | int res2 = 0 ; | |
34382 | void *argp3 = 0 ; | |
34383 | int res3 = 0 ; | |
34384 | wxRect temp4 ; | |
34385 | int val5 ; | |
34386 | int ecode5 = 0 ; | |
34387 | PyObject * obj0 = 0 ; | |
34388 | PyObject * obj1 = 0 ; | |
34389 | PyObject * obj2 = 0 ; | |
34390 | PyObject * obj3 = 0 ; | |
34391 | PyObject * obj4 = 0 ; | |
34392 | char * kwnames[] = { | |
34393 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34394 | }; | |
34395 | ||
34396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34398 | if (!SWIG_IsOK(res1)) { | |
34399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34400 | } | |
34401 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34402 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34403 | if (!SWIG_IsOK(res2)) { | |
34404 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34405 | } | |
34406 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34407 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34408 | if (!SWIG_IsOK(res3)) { | |
34409 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34410 | } | |
34411 | if (!argp3) { | |
34412 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34413 | } | |
34414 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34415 | { | |
34416 | arg4 = &temp4; | |
34417 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34418 | } | |
34419 | if (obj4) { | |
34420 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34421 | if (!SWIG_IsOK(ecode5)) { | |
34422 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
34423 | } | |
34424 | arg5 = static_cast< int >(val5); | |
34425 | } | |
34426 | { | |
34427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34428 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34429 | wxPyEndAllowThreads(__tstate); | |
34430 | if (PyErr_Occurred()) SWIG_fail; | |
34431 | } | |
34432 | resultobj = SWIG_Py_Void(); | |
34433 | return resultobj; | |
34434 | fail: | |
34435 | return NULL; | |
34436 | } | |
34437 | ||
34438 | ||
34439 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34440 | PyObject *resultobj = 0; | |
34441 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34442 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34443 | wxDC *arg3 = 0 ; | |
34444 | wxRect *arg4 = 0 ; | |
34445 | int arg5 = (int) 0 ; | |
34446 | void *argp1 = 0 ; | |
34447 | int res1 = 0 ; | |
34448 | void *argp2 = 0 ; | |
34449 | int res2 = 0 ; | |
34450 | void *argp3 = 0 ; | |
34451 | int res3 = 0 ; | |
34452 | wxRect temp4 ; | |
34453 | int val5 ; | |
34454 | int ecode5 = 0 ; | |
34455 | PyObject * obj0 = 0 ; | |
34456 | PyObject * obj1 = 0 ; | |
34457 | PyObject * obj2 = 0 ; | |
34458 | PyObject * obj3 = 0 ; | |
34459 | PyObject * obj4 = 0 ; | |
34460 | char * kwnames[] = { | |
34461 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34462 | }; | |
34463 | ||
34464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34466 | if (!SWIG_IsOK(res1)) { | |
34467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34468 | } | |
34469 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34470 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34471 | if (!SWIG_IsOK(res2)) { | |
34472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34473 | } | |
34474 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34475 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34476 | if (!SWIG_IsOK(res3)) { | |
34477 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34478 | } | |
34479 | if (!argp3) { | |
34480 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34481 | } | |
34482 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34483 | { | |
34484 | arg4 = &temp4; | |
34485 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34486 | } | |
34487 | if (obj4) { | |
34488 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34489 | if (!SWIG_IsOK(ecode5)) { | |
34490 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
34491 | } | |
34492 | arg5 = static_cast< int >(val5); | |
34493 | } | |
34494 | { | |
34495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34496 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34497 | wxPyEndAllowThreads(__tstate); | |
34498 | if (PyErr_Occurred()) SWIG_fail; | |
34499 | } | |
34500 | resultobj = SWIG_Py_Void(); | |
34501 | return resultobj; | |
34502 | fail: | |
34503 | return NULL; | |
34504 | } | |
34505 | ||
34506 | ||
34507 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34508 | PyObject *resultobj = 0; | |
34509 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34510 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34511 | wxDC *arg3 = 0 ; | |
34512 | wxSize *arg4 = 0 ; | |
34513 | int arg5 ; | |
34514 | wxOrientation arg6 ; | |
34515 | int arg7 = (int) 0 ; | |
34516 | void *argp1 = 0 ; | |
34517 | int res1 = 0 ; | |
34518 | void *argp2 = 0 ; | |
34519 | int res2 = 0 ; | |
34520 | void *argp3 = 0 ; | |
34521 | int res3 = 0 ; | |
34522 | wxSize temp4 ; | |
34523 | int val5 ; | |
34524 | int ecode5 = 0 ; | |
34525 | int val6 ; | |
34526 | int ecode6 = 0 ; | |
34527 | int val7 ; | |
34528 | int ecode7 = 0 ; | |
34529 | PyObject * obj0 = 0 ; | |
34530 | PyObject * obj1 = 0 ; | |
34531 | PyObject * obj2 = 0 ; | |
34532 | PyObject * obj3 = 0 ; | |
34533 | PyObject * obj4 = 0 ; | |
34534 | PyObject * obj5 = 0 ; | |
34535 | PyObject * obj6 = 0 ; | |
34536 | char * kwnames[] = { | |
34537 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
34538 | }; | |
34539 | ||
34540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34542 | if (!SWIG_IsOK(res1)) { | |
34543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34544 | } | |
34545 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34546 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34547 | if (!SWIG_IsOK(res2)) { | |
34548 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34549 | } | |
34550 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34551 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34552 | if (!SWIG_IsOK(res3)) { | |
34553 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34554 | } | |
34555 | if (!argp3) { | |
34556 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34557 | } | |
34558 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34559 | { | |
34560 | arg4 = &temp4; | |
34561 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
34562 | } | |
34563 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34564 | if (!SWIG_IsOK(ecode5)) { | |
34565 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
34566 | } | |
34567 | arg5 = static_cast< int >(val5); | |
34568 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34569 | if (!SWIG_IsOK(ecode6)) { | |
34570 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
34571 | } | |
34572 | arg6 = static_cast< wxOrientation >(val6); | |
34573 | if (obj6) { | |
34574 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
34575 | if (!SWIG_IsOK(ecode7)) { | |
34576 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
34577 | } | |
34578 | arg7 = static_cast< int >(val7); | |
34579 | } | |
34580 | { | |
34581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34582 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
34583 | wxPyEndAllowThreads(__tstate); | |
34584 | if (PyErr_Occurred()) SWIG_fail; | |
34585 | } | |
34586 | resultobj = SWIG_Py_Void(); | |
34587 | return resultobj; | |
34588 | fail: | |
34589 | return NULL; | |
34590 | } | |
34591 | ||
34592 | ||
34593 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34594 | PyObject *resultobj = 0; | |
34595 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34596 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34597 | wxDC *arg3 = 0 ; | |
34598 | wxRect *arg4 = 0 ; | |
34599 | int arg5 = (int) 0 ; | |
34600 | void *argp1 = 0 ; | |
34601 | int res1 = 0 ; | |
34602 | void *argp2 = 0 ; | |
34603 | int res2 = 0 ; | |
34604 | void *argp3 = 0 ; | |
34605 | int res3 = 0 ; | |
34606 | wxRect temp4 ; | |
34607 | int val5 ; | |
34608 | int ecode5 = 0 ; | |
34609 | PyObject * obj0 = 0 ; | |
34610 | PyObject * obj1 = 0 ; | |
34611 | PyObject * obj2 = 0 ; | |
34612 | PyObject * obj3 = 0 ; | |
34613 | PyObject * obj4 = 0 ; | |
34614 | char * kwnames[] = { | |
34615 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34616 | }; | |
34617 | ||
34618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34620 | if (!SWIG_IsOK(res1)) { | |
34621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34622 | } | |
34623 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34624 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34625 | if (!SWIG_IsOK(res2)) { | |
34626 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34627 | } | |
34628 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34629 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34630 | if (!SWIG_IsOK(res3)) { | |
34631 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34632 | } | |
34633 | if (!argp3) { | |
34634 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34635 | } | |
34636 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34637 | { | |
34638 | arg4 = &temp4; | |
34639 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34640 | } | |
34641 | if (obj4) { | |
34642 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34643 | if (!SWIG_IsOK(ecode5)) { | |
34644 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
34645 | } | |
34646 | arg5 = static_cast< int >(val5); | |
34647 | } | |
34648 | { | |
34649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34650 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34651 | wxPyEndAllowThreads(__tstate); | |
34652 | if (PyErr_Occurred()) SWIG_fail; | |
34653 | } | |
34654 | resultobj = SWIG_Py_Void(); | |
34655 | return resultobj; | |
34656 | fail: | |
34657 | return NULL; | |
34658 | } | |
34659 | ||
34660 | ||
34661 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34662 | PyObject *resultobj = 0; | |
34663 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34664 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34665 | wxDC *arg3 = 0 ; | |
34666 | wxRect *arg4 = 0 ; | |
34667 | int arg5 = (int) 0 ; | |
34668 | void *argp1 = 0 ; | |
34669 | int res1 = 0 ; | |
34670 | void *argp2 = 0 ; | |
34671 | int res2 = 0 ; | |
34672 | void *argp3 = 0 ; | |
34673 | int res3 = 0 ; | |
34674 | wxRect temp4 ; | |
34675 | int val5 ; | |
34676 | int ecode5 = 0 ; | |
34677 | PyObject * obj0 = 0 ; | |
34678 | PyObject * obj1 = 0 ; | |
34679 | PyObject * obj2 = 0 ; | |
34680 | PyObject * obj3 = 0 ; | |
34681 | PyObject * obj4 = 0 ; | |
34682 | char * kwnames[] = { | |
34683 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34684 | }; | |
34685 | ||
34686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34688 | if (!SWIG_IsOK(res1)) { | |
34689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34690 | } | |
34691 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34692 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34693 | if (!SWIG_IsOK(res2)) { | |
34694 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34695 | } | |
34696 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34697 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34698 | if (!SWIG_IsOK(res3)) { | |
34699 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34700 | } | |
34701 | if (!argp3) { | |
34702 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34703 | } | |
34704 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34705 | { | |
34706 | arg4 = &temp4; | |
34707 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34708 | } | |
34709 | if (obj4) { | |
34710 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34711 | if (!SWIG_IsOK(ecode5)) { | |
34712 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
34713 | } | |
34714 | arg5 = static_cast< int >(val5); | |
34715 | } | |
34716 | { | |
34717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34718 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34719 | wxPyEndAllowThreads(__tstate); | |
34720 | if (PyErr_Occurred()) SWIG_fail; | |
34721 | } | |
34722 | resultobj = SWIG_Py_Void(); | |
34723 | return resultobj; | |
34724 | fail: | |
34725 | return NULL; | |
34726 | } | |
34727 | ||
34728 | ||
01f6b6d3 RD |
34729 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34730 | PyObject *resultobj = 0; | |
34731 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34732 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34733 | wxDC *arg3 = 0 ; | |
34734 | wxRect *arg4 = 0 ; | |
34735 | int arg5 = (int) 0 ; | |
34736 | void *argp1 = 0 ; | |
34737 | int res1 = 0 ; | |
34738 | void *argp2 = 0 ; | |
34739 | int res2 = 0 ; | |
34740 | void *argp3 = 0 ; | |
34741 | int res3 = 0 ; | |
34742 | wxRect temp4 ; | |
34743 | int val5 ; | |
34744 | int ecode5 = 0 ; | |
34745 | PyObject * obj0 = 0 ; | |
34746 | PyObject * obj1 = 0 ; | |
34747 | PyObject * obj2 = 0 ; | |
34748 | PyObject * obj3 = 0 ; | |
34749 | PyObject * obj4 = 0 ; | |
34750 | char * kwnames[] = { | |
34751 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34752 | }; | |
34753 | ||
34754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34755 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34756 | if (!SWIG_IsOK(res1)) { | |
34757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34758 | } | |
34759 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34760 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34761 | if (!SWIG_IsOK(res2)) { | |
34762 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34763 | } | |
34764 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34765 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34766 | if (!SWIG_IsOK(res3)) { | |
34767 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34768 | } | |
34769 | if (!argp3) { | |
34770 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34771 | } | |
34772 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34773 | { | |
34774 | arg4 = &temp4; | |
34775 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34776 | } | |
34777 | if (obj4) { | |
34778 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34779 | if (!SWIG_IsOK(ecode5)) { | |
34780 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
34781 | } | |
34782 | arg5 = static_cast< int >(val5); | |
34783 | } | |
34784 | { | |
34785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34786 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34787 | wxPyEndAllowThreads(__tstate); | |
34788 | if (PyErr_Occurred()) SWIG_fail; | |
34789 | } | |
34790 | resultobj = SWIG_Py_Void(); | |
34791 | return resultobj; | |
34792 | fail: | |
34793 | return NULL; | |
34794 | } | |
34795 | ||
34796 | ||
34797 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34798 | PyObject *resultobj = 0; | |
34799 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34800 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34801 | wxDC *arg3 = 0 ; | |
34802 | wxRect *arg4 = 0 ; | |
34803 | int arg5 = (int) 0 ; | |
34804 | void *argp1 = 0 ; | |
34805 | int res1 = 0 ; | |
34806 | void *argp2 = 0 ; | |
34807 | int res2 = 0 ; | |
34808 | void *argp3 = 0 ; | |
34809 | int res3 = 0 ; | |
34810 | wxRect temp4 ; | |
34811 | int val5 ; | |
34812 | int ecode5 = 0 ; | |
34813 | PyObject * obj0 = 0 ; | |
34814 | PyObject * obj1 = 0 ; | |
34815 | PyObject * obj2 = 0 ; | |
34816 | PyObject * obj3 = 0 ; | |
34817 | PyObject * obj4 = 0 ; | |
34818 | char * kwnames[] = { | |
34819 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34820 | }; | |
34821 | ||
34822 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34823 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34824 | if (!SWIG_IsOK(res1)) { | |
34825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34826 | } | |
34827 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34828 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34829 | if (!SWIG_IsOK(res2)) { | |
34830 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34831 | } | |
34832 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34833 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34834 | if (!SWIG_IsOK(res3)) { | |
34835 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34836 | } | |
34837 | if (!argp3) { | |
34838 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34839 | } | |
34840 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34841 | { | |
34842 | arg4 = &temp4; | |
34843 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34844 | } | |
34845 | if (obj4) { | |
34846 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34847 | if (!SWIG_IsOK(ecode5)) { | |
34848 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
34849 | } | |
34850 | arg5 = static_cast< int >(val5); | |
34851 | } | |
34852 | { | |
34853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34854 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34855 | wxPyEndAllowThreads(__tstate); | |
34856 | if (PyErr_Occurred()) SWIG_fail; | |
34857 | } | |
34858 | resultobj = SWIG_Py_Void(); | |
34859 | return resultobj; | |
34860 | fail: | |
34861 | return NULL; | |
34862 | } | |
34863 | ||
34864 | ||
34865 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
34866 | PyObject *resultobj = 0; |
34867 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34868 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34869 | wxDC *arg3 = 0 ; | |
34870 | wxRect *arg4 = 0 ; | |
34871 | int arg5 = (int) 0 ; | |
34872 | void *argp1 = 0 ; | |
34873 | int res1 = 0 ; | |
34874 | void *argp2 = 0 ; | |
34875 | int res2 = 0 ; | |
34876 | void *argp3 = 0 ; | |
34877 | int res3 = 0 ; | |
34878 | wxRect temp4 ; | |
34879 | int val5 ; | |
34880 | int ecode5 = 0 ; | |
34881 | PyObject * obj0 = 0 ; | |
34882 | PyObject * obj1 = 0 ; | |
34883 | PyObject * obj2 = 0 ; | |
34884 | PyObject * obj3 = 0 ; | |
34885 | PyObject * obj4 = 0 ; | |
34886 | char * kwnames[] = { | |
34887 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34888 | }; | |
34889 | ||
01f6b6d3 | 34890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
34891 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34892 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 34893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
34894 | } |
34895 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34896 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34897 | if (!SWIG_IsOK(res2)) { | |
01f6b6d3 | 34898 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
34899 | } |
34900 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34901 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34902 | if (!SWIG_IsOK(res3)) { | |
01f6b6d3 | 34903 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34904 | } |
34905 | if (!argp3) { | |
01f6b6d3 | 34906 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34907 | } |
34908 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34909 | { | |
34910 | arg4 = &temp4; | |
34911 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34912 | } | |
34913 | if (obj4) { | |
34914 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34915 | if (!SWIG_IsOK(ecode5)) { | |
01f6b6d3 | 34916 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
34917 | } |
34918 | arg5 = static_cast< int >(val5); | |
34919 | } | |
34920 | { | |
34921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 34922 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
34923 | wxPyEndAllowThreads(__tstate); |
34924 | if (PyErr_Occurred()) SWIG_fail; | |
34925 | } | |
34926 | resultobj = SWIG_Py_Void(); | |
34927 | return resultobj; | |
34928 | fail: | |
34929 | return NULL; | |
34930 | } | |
34931 | ||
34932 | ||
0085ce49 RD |
34933 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34934 | PyObject *resultobj = 0; | |
34935 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34936 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34937 | SwigValueWrapper<wxSplitterRenderParams > result; | |
34938 | void *argp1 = 0 ; | |
34939 | int res1 = 0 ; | |
34940 | void *argp2 = 0 ; | |
34941 | int res2 = 0 ; | |
34942 | PyObject * obj0 = 0 ; | |
34943 | PyObject * obj1 = 0 ; | |
34944 | char * kwnames[] = { | |
34945 | (char *) "self",(char *) "win", NULL | |
34946 | }; | |
34947 | ||
34948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
34949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34950 | if (!SWIG_IsOK(res1)) { | |
34951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34952 | } | |
34953 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34954 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34955 | if (!SWIG_IsOK(res2)) { | |
34956 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
34957 | } | |
34958 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34959 | { | |
34960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34961 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
34962 | wxPyEndAllowThreads(__tstate); | |
34963 | if (PyErr_Occurred()) SWIG_fail; | |
34964 | } | |
34965 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
34966 | return resultobj; | |
34967 | fail: | |
34968 | return NULL; | |
34969 | } | |
34970 | ||
34971 | ||
34972 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34973 | PyObject *resultobj = 0; | |
34974 | wxRendererNative *result = 0 ; | |
34975 | ||
34976 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
34977 | { | |
704eda0c | 34978 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 34980 | { |
0085ce49 RD |
34981 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
34982 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 34983 | } |
0085ce49 RD |
34984 | wxPyEndAllowThreads(__tstate); |
34985 | if (PyErr_Occurred()) SWIG_fail; | |
34986 | } | |
34987 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34988 | return resultobj; | |
34989 | fail: | |
34990 | return NULL; | |
34991 | } | |
34992 | ||
34993 | ||
34994 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34995 | PyObject *resultobj = 0; | |
34996 | wxRendererNative *result = 0 ; | |
34997 | ||
34998 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
34999 | { | |
704eda0c | 35000 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 35001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 35002 | { |
0085ce49 RD |
35003 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
35004 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 35005 | } |
0085ce49 RD |
35006 | wxPyEndAllowThreads(__tstate); |
35007 | if (PyErr_Occurred()) SWIG_fail; | |
35008 | } | |
35009 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35010 | return resultobj; | |
35011 | fail: | |
35012 | return NULL; | |
35013 | } | |
35014 | ||
35015 | ||
35016 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35017 | PyObject *resultobj = 0; | |
35018 | wxRendererNative *result = 0 ; | |
35019 | ||
35020 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
35021 | { | |
704eda0c | 35022 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 35023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 35024 | { |
0085ce49 RD |
35025 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
35026 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 35027 | } |
0085ce49 RD |
35028 | wxPyEndAllowThreads(__tstate); |
35029 | if (PyErr_Occurred()) SWIG_fail; | |
35030 | } | |
35031 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35032 | return resultobj; | |
35033 | fail: | |
35034 | return NULL; | |
35035 | } | |
35036 | ||
35037 | ||
35038 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35039 | PyObject *resultobj = 0; | |
35040 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35041 | wxRendererNative *result = 0 ; | |
35042 | void *argp1 = 0 ; | |
35043 | int res1 = 0 ; | |
35044 | PyObject * obj0 = 0 ; | |
35045 | char * kwnames[] = { | |
35046 | (char *) "renderer", NULL | |
35047 | }; | |
35048 | ||
35049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
35050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35051 | if (!SWIG_IsOK(res1)) { | |
35052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35053 | } | |
35054 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35055 | { | |
704eda0c | 35056 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 RD |
35057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35058 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
35059 | wxPyEndAllowThreads(__tstate); | |
35060 | if (PyErr_Occurred()) SWIG_fail; | |
35061 | } | |
35062 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35063 | return resultobj; | |
35064 | fail: | |
35065 | return NULL; | |
35066 | } | |
35067 | ||
35068 | ||
35069 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35070 | PyObject *resultobj = 0; | |
35071 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35072 | SwigValueWrapper<wxRendererVersion > result; | |
35073 | void *argp1 = 0 ; | |
35074 | int res1 = 0 ; | |
35075 | PyObject *swig_obj[1] ; | |
35076 | ||
35077 | if (!args) SWIG_fail; | |
35078 | swig_obj[0] = args; | |
35079 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35080 | if (!SWIG_IsOK(res1)) { | |
35081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
35082 | } | |
35083 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35084 | { | |
35085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35086 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
35087 | wxPyEndAllowThreads(__tstate); | |
35088 | if (PyErr_Occurred()) SWIG_fail; | |
35089 | } | |
35090 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
35091 | return resultobj; | |
35092 | fail: | |
35093 | return NULL; | |
35094 | } | |
35095 | ||
35096 | ||
35097 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35098 | PyObject *obj; | |
35099 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
35100 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
35101 | return SWIG_Py_Void(); | |
35102 | } | |
35103 | ||
27e45892 RD |
35104 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35105 | PyObject *resultobj = 0; | |
35106 | wxPseudoDC *result = 0 ; | |
35107 | ||
35108 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
35109 | { | |
35110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35111 | result = (wxPseudoDC *)new wxPseudoDC(); | |
35112 | wxPyEndAllowThreads(__tstate); | |
35113 | if (PyErr_Occurred()) SWIG_fail; | |
35114 | } | |
35115 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
35116 | return resultobj; | |
35117 | fail: | |
35118 | return NULL; | |
35119 | } | |
35120 | ||
35121 | ||
35122 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35123 | PyObject *resultobj = 0; | |
35124 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35125 | void *argp1 = 0 ; | |
35126 | int res1 = 0 ; | |
35127 | PyObject *swig_obj[1] ; | |
35128 | ||
35129 | if (!args) SWIG_fail; | |
35130 | swig_obj[0] = args; | |
35131 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35132 | if (!SWIG_IsOK(res1)) { | |
35133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35134 | } | |
35135 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35136 | { | |
35137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35138 | (arg1)->BeginDrawing(); | |
35139 | wxPyEndAllowThreads(__tstate); | |
35140 | if (PyErr_Occurred()) SWIG_fail; | |
35141 | } | |
35142 | resultobj = SWIG_Py_Void(); | |
35143 | return resultobj; | |
35144 | fail: | |
35145 | return NULL; | |
35146 | } | |
35147 | ||
35148 | ||
35149 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35150 | PyObject *resultobj = 0; | |
35151 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35152 | void *argp1 = 0 ; | |
35153 | int res1 = 0 ; | |
35154 | PyObject *swig_obj[1] ; | |
35155 | ||
35156 | if (!args) SWIG_fail; | |
35157 | swig_obj[0] = args; | |
35158 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35159 | if (!SWIG_IsOK(res1)) { | |
35160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35161 | } | |
35162 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35163 | { | |
35164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35165 | (arg1)->EndDrawing(); | |
35166 | wxPyEndAllowThreads(__tstate); | |
35167 | if (PyErr_Occurred()) SWIG_fail; | |
35168 | } | |
35169 | resultobj = SWIG_Py_Void(); | |
35170 | return resultobj; | |
35171 | fail: | |
35172 | return NULL; | |
35173 | } | |
35174 | ||
35175 | ||
35176 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35177 | PyObject *resultobj = 0; | |
35178 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35179 | void *argp1 = 0 ; | |
35180 | int res1 = 0 ; | |
35181 | PyObject *swig_obj[1] ; | |
35182 | ||
35183 | if (!args) SWIG_fail; | |
35184 | swig_obj[0] = args; | |
35185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
35186 | if (!SWIG_IsOK(res1)) { | |
35187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35188 | } | |
35189 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35190 | { | |
35191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35192 | delete arg1; | |
35193 | ||
35194 | wxPyEndAllowThreads(__tstate); | |
35195 | if (PyErr_Occurred()) SWIG_fail; | |
35196 | } | |
35197 | resultobj = SWIG_Py_Void(); | |
35198 | return resultobj; | |
35199 | fail: | |
35200 | return NULL; | |
35201 | } | |
35202 | ||
35203 | ||
35204 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35205 | PyObject *resultobj = 0; | |
35206 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35207 | void *argp1 = 0 ; | |
35208 | int res1 = 0 ; | |
35209 | PyObject *swig_obj[1] ; | |
35210 | ||
35211 | if (!args) SWIG_fail; | |
35212 | swig_obj[0] = args; | |
35213 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35214 | if (!SWIG_IsOK(res1)) { | |
35215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35216 | } | |
35217 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35218 | { | |
35219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35220 | (arg1)->RemoveAll(); | |
35221 | wxPyEndAllowThreads(__tstate); | |
35222 | if (PyErr_Occurred()) SWIG_fail; | |
35223 | } | |
35224 | resultobj = SWIG_Py_Void(); | |
35225 | return resultobj; | |
35226 | fail: | |
35227 | return NULL; | |
35228 | } | |
35229 | ||
35230 | ||
35231 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35232 | PyObject *resultobj = 0; | |
35233 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35234 | int result; | |
35235 | void *argp1 = 0 ; | |
35236 | int res1 = 0 ; | |
35237 | PyObject *swig_obj[1] ; | |
35238 | ||
35239 | if (!args) SWIG_fail; | |
35240 | swig_obj[0] = args; | |
35241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35242 | if (!SWIG_IsOK(res1)) { | |
35243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35244 | } | |
35245 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35246 | { | |
35247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35248 | result = (int)(arg1)->GetLen(); | |
35249 | wxPyEndAllowThreads(__tstate); | |
35250 | if (PyErr_Occurred()) SWIG_fail; | |
35251 | } | |
35252 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35253 | return resultobj; | |
35254 | fail: | |
35255 | return NULL; | |
35256 | } | |
35257 | ||
35258 | ||
35259 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35260 | PyObject *resultobj = 0; | |
35261 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35262 | int arg2 ; | |
35263 | void *argp1 = 0 ; | |
35264 | int res1 = 0 ; | |
35265 | int val2 ; | |
35266 | int ecode2 = 0 ; | |
35267 | PyObject * obj0 = 0 ; | |
35268 | PyObject * obj1 = 0 ; | |
35269 | char * kwnames[] = { | |
35270 | (char *) "self",(char *) "id", NULL | |
35271 | }; | |
35272 | ||
35273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35275 | if (!SWIG_IsOK(res1)) { | |
35276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35277 | } | |
35278 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35279 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35280 | if (!SWIG_IsOK(ecode2)) { | |
35281 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
35282 | } | |
35283 | arg2 = static_cast< int >(val2); | |
35284 | { | |
35285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35286 | (arg1)->SetId(arg2); | |
35287 | wxPyEndAllowThreads(__tstate); | |
35288 | if (PyErr_Occurred()) SWIG_fail; | |
35289 | } | |
35290 | resultobj = SWIG_Py_Void(); | |
35291 | return resultobj; | |
35292 | fail: | |
35293 | return NULL; | |
35294 | } | |
35295 | ||
35296 | ||
35297 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35298 | PyObject *resultobj = 0; | |
35299 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35300 | int arg2 ; | |
35301 | void *argp1 = 0 ; | |
35302 | int res1 = 0 ; | |
35303 | int val2 ; | |
35304 | int ecode2 = 0 ; | |
35305 | PyObject * obj0 = 0 ; | |
35306 | PyObject * obj1 = 0 ; | |
35307 | char * kwnames[] = { | |
35308 | (char *) "self",(char *) "id", NULL | |
35309 | }; | |
35310 | ||
35311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35313 | if (!SWIG_IsOK(res1)) { | |
35314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35315 | } | |
35316 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35317 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35318 | if (!SWIG_IsOK(ecode2)) { | |
35319 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
35320 | } | |
35321 | arg2 = static_cast< int >(val2); | |
35322 | { | |
35323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35324 | (arg1)->ClearId(arg2); | |
35325 | wxPyEndAllowThreads(__tstate); | |
35326 | if (PyErr_Occurred()) SWIG_fail; | |
35327 | } | |
35328 | resultobj = SWIG_Py_Void(); | |
35329 | return resultobj; | |
35330 | fail: | |
35331 | return NULL; | |
35332 | } | |
35333 | ||
35334 | ||
35335 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35336 | PyObject *resultobj = 0; | |
35337 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35338 | int arg2 ; | |
35339 | void *argp1 = 0 ; | |
35340 | int res1 = 0 ; | |
35341 | int val2 ; | |
35342 | int ecode2 = 0 ; | |
35343 | PyObject * obj0 = 0 ; | |
35344 | PyObject * obj1 = 0 ; | |
35345 | char * kwnames[] = { | |
35346 | (char *) "self",(char *) "id", NULL | |
35347 | }; | |
35348 | ||
35349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35351 | if (!SWIG_IsOK(res1)) { | |
35352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35353 | } | |
35354 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35355 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35356 | if (!SWIG_IsOK(ecode2)) { | |
35357 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
35358 | } | |
35359 | arg2 = static_cast< int >(val2); | |
35360 | { | |
35361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35362 | (arg1)->RemoveId(arg2); | |
35363 | wxPyEndAllowThreads(__tstate); | |
35364 | if (PyErr_Occurred()) SWIG_fail; | |
35365 | } | |
35366 | resultobj = SWIG_Py_Void(); | |
35367 | return resultobj; | |
35368 | fail: | |
35369 | return NULL; | |
35370 | } | |
35371 | ||
35372 | ||
35373 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35374 | PyObject *resultobj = 0; | |
35375 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35376 | int arg2 ; | |
35377 | int arg3 ; | |
35378 | int arg4 ; | |
35379 | void *argp1 = 0 ; | |
35380 | int res1 = 0 ; | |
35381 | int val2 ; | |
35382 | int ecode2 = 0 ; | |
35383 | int val3 ; | |
35384 | int ecode3 = 0 ; | |
35385 | int val4 ; | |
35386 | int ecode4 = 0 ; | |
35387 | PyObject * obj0 = 0 ; | |
35388 | PyObject * obj1 = 0 ; | |
35389 | PyObject * obj2 = 0 ; | |
35390 | PyObject * obj3 = 0 ; | |
35391 | char * kwnames[] = { | |
35392 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
35393 | }; | |
35394 | ||
35395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35397 | if (!SWIG_IsOK(res1)) { | |
35398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35399 | } | |
35400 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35401 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35402 | if (!SWIG_IsOK(ecode2)) { | |
35403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
35404 | } | |
35405 | arg2 = static_cast< int >(val2); | |
35406 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35407 | if (!SWIG_IsOK(ecode3)) { | |
35408 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
35409 | } | |
35410 | arg3 = static_cast< int >(val3); | |
35411 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35412 | if (!SWIG_IsOK(ecode4)) { | |
35413 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
35414 | } | |
35415 | arg4 = static_cast< int >(val4); | |
35416 | { | |
35417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35418 | (arg1)->TranslateId(arg2,arg3,arg4); | |
35419 | wxPyEndAllowThreads(__tstate); | |
35420 | if (PyErr_Occurred()) SWIG_fail; | |
35421 | } | |
35422 | resultobj = SWIG_Py_Void(); | |
35423 | return resultobj; | |
35424 | fail: | |
35425 | return NULL; | |
35426 | } | |
35427 | ||
35428 | ||
72ef6efb RD |
35429 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35430 | PyObject *resultobj = 0; | |
35431 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35432 | int arg2 ; | |
35433 | bool arg3 = (bool) true ; | |
35434 | void *argp1 = 0 ; | |
35435 | int res1 = 0 ; | |
35436 | int val2 ; | |
35437 | int ecode2 = 0 ; | |
35438 | bool val3 ; | |
35439 | int ecode3 = 0 ; | |
35440 | PyObject * obj0 = 0 ; | |
35441 | PyObject * obj1 = 0 ; | |
35442 | PyObject * obj2 = 0 ; | |
35443 | char * kwnames[] = { | |
35444 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
35445 | }; | |
35446 | ||
35447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35449 | if (!SWIG_IsOK(res1)) { | |
35450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35451 | } | |
35452 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35453 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35454 | if (!SWIG_IsOK(ecode2)) { | |
35455 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35456 | } | |
35457 | arg2 = static_cast< int >(val2); | |
35458 | if (obj2) { | |
35459 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35460 | if (!SWIG_IsOK(ecode3)) { | |
35461 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
35462 | } | |
35463 | arg3 = static_cast< bool >(val3); | |
35464 | } | |
35465 | { | |
35466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35467 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
35468 | wxPyEndAllowThreads(__tstate); | |
35469 | if (PyErr_Occurred()) SWIG_fail; | |
35470 | } | |
35471 | resultobj = SWIG_Py_Void(); | |
35472 | return resultobj; | |
35473 | fail: | |
35474 | return NULL; | |
35475 | } | |
35476 | ||
35477 | ||
35478 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35479 | PyObject *resultobj = 0; | |
35480 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35481 | int arg2 ; | |
35482 | bool result; | |
35483 | void *argp1 = 0 ; | |
35484 | int res1 = 0 ; | |
35485 | int val2 ; | |
35486 | int ecode2 = 0 ; | |
35487 | PyObject * obj0 = 0 ; | |
35488 | PyObject * obj1 = 0 ; | |
35489 | char * kwnames[] = { | |
35490 | (char *) "self",(char *) "id", NULL | |
35491 | }; | |
35492 | ||
35493 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
35494 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35495 | if (!SWIG_IsOK(res1)) { | |
35496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35497 | } | |
35498 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35499 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35500 | if (!SWIG_IsOK(ecode2)) { | |
35501 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35502 | } | |
35503 | arg2 = static_cast< int >(val2); | |
35504 | { | |
35505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35506 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
35507 | wxPyEndAllowThreads(__tstate); | |
35508 | if (PyErr_Occurred()) SWIG_fail; | |
35509 | } | |
35510 | { | |
35511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35512 | } | |
35513 | return resultobj; | |
35514 | fail: | |
35515 | return NULL; | |
35516 | } | |
35517 | ||
35518 | ||
35519 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35520 | PyObject *resultobj = 0; | |
35521 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35522 | int arg2 ; | |
35523 | int arg3 ; | |
35524 | int arg4 = (int) 1 ; | |
59ccbf7f RD |
35525 | wxColour const &arg5_defvalue = *wxWHITE ; |
35526 | wxColour *arg5 = (wxColour *) &arg5_defvalue ; | |
72ef6efb RD |
35527 | PyObject *result = 0 ; |
35528 | void *argp1 = 0 ; | |
35529 | int res1 = 0 ; | |
35530 | int val2 ; | |
35531 | int ecode2 = 0 ; | |
35532 | int val3 ; | |
35533 | int ecode3 = 0 ; | |
35534 | int val4 ; | |
35535 | int ecode4 = 0 ; | |
59ccbf7f | 35536 | wxColour temp5 ; |
72ef6efb RD |
35537 | PyObject * obj0 = 0 ; |
35538 | PyObject * obj1 = 0 ; | |
35539 | PyObject * obj2 = 0 ; | |
35540 | PyObject * obj3 = 0 ; | |
35541 | PyObject * obj4 = 0 ; | |
35542 | char * kwnames[] = { | |
35543 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
35544 | }; | |
35545 | ||
35546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35548 | if (!SWIG_IsOK(res1)) { | |
35549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35550 | } | |
35551 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35552 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35553 | if (!SWIG_IsOK(ecode2)) { | |
35554 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
35555 | } | |
35556 | arg2 = static_cast< int >(val2); | |
35557 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35558 | if (!SWIG_IsOK(ecode3)) { | |
35559 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
35560 | } | |
35561 | arg3 = static_cast< int >(val3); | |
35562 | if (obj3) { | |
35563 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35564 | if (!SWIG_IsOK(ecode4)) { | |
35565 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
35566 | } | |
35567 | arg4 = static_cast< int >(val4); | |
35568 | } | |
35569 | if (obj4) { | |
59ccbf7f RD |
35570 | { |
35571 | arg5 = &temp5; | |
35572 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
72ef6efb | 35573 | } |
72ef6efb RD |
35574 | } |
35575 | { | |
59ccbf7f | 35576 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5); |
72ef6efb RD |
35577 | if (PyErr_Occurred()) SWIG_fail; |
35578 | } | |
35579 | resultobj = result; | |
35580 | return resultobj; | |
35581 | fail: | |
35582 | return NULL; | |
35583 | } | |
35584 | ||
35585 | ||
35586 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35587 | PyObject *resultobj = 0; | |
35588 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35589 | int arg2 ; | |
35590 | int arg3 ; | |
35591 | PyObject *result = 0 ; | |
35592 | void *argp1 = 0 ; | |
35593 | int res1 = 0 ; | |
35594 | int val2 ; | |
35595 | int ecode2 = 0 ; | |
35596 | int val3 ; | |
35597 | int ecode3 = 0 ; | |
35598 | PyObject * obj0 = 0 ; | |
35599 | PyObject * obj1 = 0 ; | |
35600 | PyObject * obj2 = 0 ; | |
35601 | char * kwnames[] = { | |
35602 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35603 | }; | |
35604 | ||
35605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35607 | if (!SWIG_IsOK(res1)) { | |
35608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35609 | } | |
35610 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35611 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35612 | if (!SWIG_IsOK(ecode2)) { | |
35613 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
35614 | } | |
35615 | arg2 = static_cast< int >(val2); | |
35616 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35617 | if (!SWIG_IsOK(ecode3)) { | |
35618 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
35619 | } | |
35620 | arg3 = static_cast< int >(val3); | |
35621 | { | |
35622 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
35623 | if (PyErr_Occurred()) SWIG_fail; | |
35624 | } | |
35625 | resultobj = result; | |
35626 | return resultobj; | |
35627 | fail: | |
35628 | return NULL; | |
35629 | } | |
35630 | ||
35631 | ||
27e45892 RD |
35632 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35633 | PyObject *resultobj = 0; | |
35634 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35635 | int arg2 ; | |
35636 | wxDC *arg3 = (wxDC *) 0 ; | |
35637 | void *argp1 = 0 ; | |
35638 | int res1 = 0 ; | |
35639 | int val2 ; | |
35640 | int ecode2 = 0 ; | |
35641 | void *argp3 = 0 ; | |
35642 | int res3 = 0 ; | |
35643 | PyObject * obj0 = 0 ; | |
35644 | PyObject * obj1 = 0 ; | |
35645 | PyObject * obj2 = 0 ; | |
35646 | char * kwnames[] = { | |
35647 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
35648 | }; | |
35649 | ||
35650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35652 | if (!SWIG_IsOK(res1)) { | |
35653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35654 | } | |
35655 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35656 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35657 | if (!SWIG_IsOK(ecode2)) { | |
35658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
35659 | } | |
35660 | arg2 = static_cast< int >(val2); | |
35661 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35662 | if (!SWIG_IsOK(res3)) { | |
35663 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
35664 | } | |
35665 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35666 | { | |
35667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35668 | (arg1)->DrawIdToDC(arg2,arg3); | |
35669 | wxPyEndAllowThreads(__tstate); | |
35670 | if (PyErr_Occurred()) SWIG_fail; | |
35671 | } | |
35672 | resultobj = SWIG_Py_Void(); | |
35673 | return resultobj; | |
35674 | fail: | |
35675 | return NULL; | |
35676 | } | |
35677 | ||
35678 | ||
35679 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35680 | PyObject *resultobj = 0; | |
35681 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35682 | int arg2 ; | |
35683 | wxRect *arg3 = 0 ; | |
35684 | void *argp1 = 0 ; | |
35685 | int res1 = 0 ; | |
35686 | int val2 ; | |
35687 | int ecode2 = 0 ; | |
35688 | wxRect temp3 ; | |
35689 | PyObject * obj0 = 0 ; | |
35690 | PyObject * obj1 = 0 ; | |
35691 | PyObject * obj2 = 0 ; | |
35692 | char * kwnames[] = { | |
35693 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
35694 | }; | |
35695 | ||
35696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35698 | if (!SWIG_IsOK(res1)) { | |
35699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35700 | } | |
35701 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35702 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35703 | if (!SWIG_IsOK(ecode2)) { | |
35704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35705 | } | |
35706 | arg2 = static_cast< int >(val2); | |
35707 | { | |
35708 | arg3 = &temp3; | |
35709 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35710 | } | |
35711 | { | |
35712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35713 | (arg1)->SetIdBounds(arg2,*arg3); | |
35714 | wxPyEndAllowThreads(__tstate); | |
35715 | if (PyErr_Occurred()) SWIG_fail; | |
35716 | } | |
35717 | resultobj = SWIG_Py_Void(); | |
35718 | return resultobj; | |
35719 | fail: | |
35720 | return NULL; | |
35721 | } | |
35722 | ||
35723 | ||
35724 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35725 | PyObject *resultobj = 0; | |
35726 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35727 | int arg2 ; | |
35728 | wxRect result; | |
35729 | void *argp1 = 0 ; | |
35730 | int res1 = 0 ; | |
35731 | int val2 ; | |
35732 | int ecode2 = 0 ; | |
35733 | PyObject * obj0 = 0 ; | |
35734 | PyObject * obj1 = 0 ; | |
35735 | char * kwnames[] = { | |
35736 | (char *) "self",(char *) "id", NULL | |
35737 | }; | |
35738 | ||
35739 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
35740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35741 | if (!SWIG_IsOK(res1)) { | |
35742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35743 | } | |
35744 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35745 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35746 | if (!SWIG_IsOK(ecode2)) { | |
35747 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35748 | } | |
35749 | arg2 = static_cast< int >(val2); | |
35750 | { | |
35751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35752 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
35753 | wxPyEndAllowThreads(__tstate); | |
35754 | if (PyErr_Occurred()) SWIG_fail; | |
35755 | } | |
35756 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
35757 | return resultobj; | |
35758 | fail: | |
35759 | return NULL; | |
35760 | } | |
35761 | ||
35762 | ||
35763 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35764 | PyObject *resultobj = 0; | |
35765 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35766 | wxDC *arg2 = (wxDC *) 0 ; | |
35767 | wxRect *arg3 = 0 ; | |
35768 | void *argp1 = 0 ; | |
35769 | int res1 = 0 ; | |
35770 | void *argp2 = 0 ; | |
35771 | int res2 = 0 ; | |
35772 | wxRect temp3 ; | |
35773 | PyObject * obj0 = 0 ; | |
35774 | PyObject * obj1 = 0 ; | |
35775 | PyObject * obj2 = 0 ; | |
35776 | char * kwnames[] = { | |
35777 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
35778 | }; | |
35779 | ||
35780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35782 | if (!SWIG_IsOK(res1)) { | |
35783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35784 | } | |
35785 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35786 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35787 | if (!SWIG_IsOK(res2)) { | |
35788 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35789 | } | |
35790 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35791 | { | |
35792 | arg3 = &temp3; | |
35793 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35794 | } | |
35795 | { | |
35796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35797 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
35798 | wxPyEndAllowThreads(__tstate); | |
35799 | if (PyErr_Occurred()) SWIG_fail; | |
35800 | } | |
35801 | resultobj = SWIG_Py_Void(); | |
35802 | return resultobj; | |
35803 | fail: | |
35804 | return NULL; | |
35805 | } | |
35806 | ||
35807 | ||
35808 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35809 | PyObject *resultobj = 0; | |
35810 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35811 | wxDC *arg2 = (wxDC *) 0 ; | |
35812 | wxRegion *arg3 = 0 ; | |
35813 | void *argp1 = 0 ; | |
35814 | int res1 = 0 ; | |
35815 | void *argp2 = 0 ; | |
35816 | int res2 = 0 ; | |
35817 | void *argp3 = 0 ; | |
35818 | int res3 = 0 ; | |
35819 | PyObject * obj0 = 0 ; | |
35820 | PyObject * obj1 = 0 ; | |
35821 | PyObject * obj2 = 0 ; | |
35822 | char * kwnames[] = { | |
35823 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
35824 | }; | |
35825 | ||
35826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35828 | if (!SWIG_IsOK(res1)) { | |
35829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35830 | } | |
35831 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35832 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35833 | if (!SWIG_IsOK(res2)) { | |
35834 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35835 | } | |
35836 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35837 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
35838 | if (!SWIG_IsOK(res3)) { | |
35839 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35840 | } | |
35841 | if (!argp3) { | |
35842 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35843 | } | |
35844 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
35845 | { | |
35846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35847 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
35848 | wxPyEndAllowThreads(__tstate); | |
35849 | if (PyErr_Occurred()) SWIG_fail; | |
35850 | } | |
35851 | resultobj = SWIG_Py_Void(); | |
35852 | return resultobj; | |
35853 | fail: | |
35854 | return NULL; | |
35855 | } | |
35856 | ||
35857 | ||
35858 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35859 | PyObject *resultobj = 0; | |
35860 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35861 | wxDC *arg2 = (wxDC *) 0 ; | |
35862 | void *argp1 = 0 ; | |
35863 | int res1 = 0 ; | |
35864 | void *argp2 = 0 ; | |
35865 | int res2 = 0 ; | |
35866 | PyObject * obj0 = 0 ; | |
35867 | PyObject * obj1 = 0 ; | |
35868 | char * kwnames[] = { | |
35869 | (char *) "self",(char *) "dc", NULL | |
35870 | }; | |
35871 | ||
35872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
35873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35874 | if (!SWIG_IsOK(res1)) { | |
35875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35876 | } | |
35877 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35878 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35879 | if (!SWIG_IsOK(res2)) { | |
35880 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35881 | } | |
35882 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35883 | { | |
35884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35885 | (arg1)->DrawToDC(arg2); | |
35886 | wxPyEndAllowThreads(__tstate); | |
35887 | if (PyErr_Occurred()) SWIG_fail; | |
35888 | } | |
35889 | resultobj = SWIG_Py_Void(); | |
35890 | return resultobj; | |
35891 | fail: | |
35892 | return NULL; | |
35893 | } | |
35894 | ||
35895 | ||
35896 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35897 | PyObject *resultobj = 0; | |
35898 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35899 | int arg2 ; | |
35900 | int arg3 ; | |
35901 | wxColour *arg4 = 0 ; | |
35902 | int arg5 = (int) wxFLOOD_SURFACE ; | |
35903 | void *argp1 = 0 ; | |
35904 | int res1 = 0 ; | |
35905 | int val2 ; | |
35906 | int ecode2 = 0 ; | |
35907 | int val3 ; | |
35908 | int ecode3 = 0 ; | |
35909 | wxColour temp4 ; | |
35910 | int val5 ; | |
35911 | int ecode5 = 0 ; | |
35912 | PyObject * obj0 = 0 ; | |
35913 | PyObject * obj1 = 0 ; | |
35914 | PyObject * obj2 = 0 ; | |
35915 | PyObject * obj3 = 0 ; | |
35916 | PyObject * obj4 = 0 ; | |
35917 | char * kwnames[] = { | |
35918 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
35919 | }; | |
35920 | ||
35921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35923 | if (!SWIG_IsOK(res1)) { | |
35924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35925 | } | |
35926 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35927 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35928 | if (!SWIG_IsOK(ecode2)) { | |
35929 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
35930 | } | |
35931 | arg2 = static_cast< int >(val2); | |
35932 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35933 | if (!SWIG_IsOK(ecode3)) { | |
35934 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
35935 | } | |
35936 | arg3 = static_cast< int >(val3); | |
35937 | { | |
35938 | arg4 = &temp4; | |
35939 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
35940 | } | |
35941 | if (obj4) { | |
35942 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35943 | if (!SWIG_IsOK(ecode5)) { | |
35944 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
35945 | } | |
35946 | arg5 = static_cast< int >(val5); | |
35947 | } | |
35948 | { | |
35949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35950 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
35951 | wxPyEndAllowThreads(__tstate); | |
35952 | if (PyErr_Occurred()) SWIG_fail; | |
35953 | } | |
35954 | resultobj = SWIG_Py_Void(); | |
35955 | return resultobj; | |
35956 | fail: | |
35957 | return NULL; | |
35958 | } | |
35959 | ||
35960 | ||
35961 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35962 | PyObject *resultobj = 0; | |
35963 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35964 | wxPoint *arg2 = 0 ; | |
35965 | wxColour *arg3 = 0 ; | |
35966 | int arg4 = (int) wxFLOOD_SURFACE ; | |
35967 | void *argp1 = 0 ; | |
35968 | int res1 = 0 ; | |
35969 | wxPoint temp2 ; | |
35970 | wxColour temp3 ; | |
35971 | int val4 ; | |
35972 | int ecode4 = 0 ; | |
35973 | PyObject * obj0 = 0 ; | |
35974 | PyObject * obj1 = 0 ; | |
35975 | PyObject * obj2 = 0 ; | |
35976 | PyObject * obj3 = 0 ; | |
35977 | char * kwnames[] = { | |
35978 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
35979 | }; | |
35980 | ||
35981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35983 | if (!SWIG_IsOK(res1)) { | |
35984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35985 | } | |
35986 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35987 | { | |
35988 | arg2 = &temp2; | |
35989 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35990 | } | |
35991 | { | |
35992 | arg3 = &temp3; | |
35993 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35994 | } | |
35995 | if (obj3) { | |
35996 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35997 | if (!SWIG_IsOK(ecode4)) { | |
35998 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
35999 | } | |
36000 | arg4 = static_cast< int >(val4); | |
36001 | } | |
36002 | { | |
36003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36004 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
36005 | wxPyEndAllowThreads(__tstate); | |
36006 | if (PyErr_Occurred()) SWIG_fail; | |
36007 | } | |
36008 | resultobj = SWIG_Py_Void(); | |
36009 | return resultobj; | |
36010 | fail: | |
36011 | return NULL; | |
36012 | } | |
36013 | ||
36014 | ||
36015 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36016 | PyObject *resultobj = 0; | |
36017 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36018 | int arg2 ; | |
36019 | int arg3 ; | |
36020 | int arg4 ; | |
36021 | int arg5 ; | |
36022 | void *argp1 = 0 ; | |
36023 | int res1 = 0 ; | |
36024 | int val2 ; | |
36025 | int ecode2 = 0 ; | |
36026 | int val3 ; | |
36027 | int ecode3 = 0 ; | |
36028 | int val4 ; | |
36029 | int ecode4 = 0 ; | |
36030 | int val5 ; | |
36031 | int ecode5 = 0 ; | |
36032 | PyObject * obj0 = 0 ; | |
36033 | PyObject * obj1 = 0 ; | |
36034 | PyObject * obj2 = 0 ; | |
36035 | PyObject * obj3 = 0 ; | |
36036 | PyObject * obj4 = 0 ; | |
36037 | char * kwnames[] = { | |
36038 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
36039 | }; | |
36040 | ||
36041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36043 | if (!SWIG_IsOK(res1)) { | |
36044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36045 | } | |
36046 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36047 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36048 | if (!SWIG_IsOK(ecode2)) { | |
36049 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
36050 | } | |
36051 | arg2 = static_cast< int >(val2); | |
36052 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36053 | if (!SWIG_IsOK(ecode3)) { | |
36054 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
36055 | } | |
36056 | arg3 = static_cast< int >(val3); | |
36057 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36058 | if (!SWIG_IsOK(ecode4)) { | |
36059 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
36060 | } | |
36061 | arg4 = static_cast< int >(val4); | |
36062 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36063 | if (!SWIG_IsOK(ecode5)) { | |
36064 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
36065 | } | |
36066 | arg5 = static_cast< int >(val5); | |
36067 | { | |
36068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36069 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
36070 | wxPyEndAllowThreads(__tstate); | |
36071 | if (PyErr_Occurred()) SWIG_fail; | |
36072 | } | |
36073 | resultobj = SWIG_Py_Void(); | |
36074 | return resultobj; | |
36075 | fail: | |
36076 | return NULL; | |
36077 | } | |
36078 | ||
36079 | ||
36080 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36081 | PyObject *resultobj = 0; | |
36082 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36083 | wxPoint *arg2 = 0 ; | |
36084 | wxPoint *arg3 = 0 ; | |
36085 | void *argp1 = 0 ; | |
36086 | int res1 = 0 ; | |
36087 | wxPoint temp2 ; | |
36088 | wxPoint temp3 ; | |
36089 | PyObject * obj0 = 0 ; | |
36090 | PyObject * obj1 = 0 ; | |
36091 | PyObject * obj2 = 0 ; | |
36092 | char * kwnames[] = { | |
36093 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
36094 | }; | |
36095 | ||
36096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36097 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36098 | if (!SWIG_IsOK(res1)) { | |
36099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36100 | } | |
36101 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36102 | { | |
36103 | arg2 = &temp2; | |
36104 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36105 | } | |
36106 | { | |
36107 | arg3 = &temp3; | |
36108 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36109 | } | |
36110 | { | |
36111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36112 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
36113 | wxPyEndAllowThreads(__tstate); | |
36114 | if (PyErr_Occurred()) SWIG_fail; | |
36115 | } | |
36116 | resultobj = SWIG_Py_Void(); | |
36117 | return resultobj; | |
36118 | fail: | |
36119 | return NULL; | |
36120 | } | |
36121 | ||
36122 | ||
36123 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36124 | PyObject *resultobj = 0; | |
36125 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36126 | int arg2 ; | |
36127 | int arg3 ; | |
36128 | void *argp1 = 0 ; | |
36129 | int res1 = 0 ; | |
36130 | int val2 ; | |
36131 | int ecode2 = 0 ; | |
36132 | int val3 ; | |
36133 | int ecode3 = 0 ; | |
36134 | PyObject * obj0 = 0 ; | |
36135 | PyObject * obj1 = 0 ; | |
36136 | PyObject * obj2 = 0 ; | |
36137 | char * kwnames[] = { | |
36138 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36139 | }; | |
36140 | ||
36141 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36142 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36143 | if (!SWIG_IsOK(res1)) { | |
36144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36145 | } | |
36146 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36147 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36148 | if (!SWIG_IsOK(ecode2)) { | |
36149 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
36150 | } | |
36151 | arg2 = static_cast< int >(val2); | |
36152 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36153 | if (!SWIG_IsOK(ecode3)) { | |
36154 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
36155 | } | |
36156 | arg3 = static_cast< int >(val3); | |
36157 | { | |
36158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36159 | (arg1)->CrossHair(arg2,arg3); | |
36160 | wxPyEndAllowThreads(__tstate); | |
36161 | if (PyErr_Occurred()) SWIG_fail; | |
36162 | } | |
36163 | resultobj = SWIG_Py_Void(); | |
36164 | return resultobj; | |
36165 | fail: | |
36166 | return NULL; | |
36167 | } | |
36168 | ||
36169 | ||
36170 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36171 | PyObject *resultobj = 0; | |
36172 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36173 | wxPoint *arg2 = 0 ; | |
36174 | void *argp1 = 0 ; | |
36175 | int res1 = 0 ; | |
36176 | wxPoint temp2 ; | |
36177 | PyObject * obj0 = 0 ; | |
36178 | PyObject * obj1 = 0 ; | |
36179 | char * kwnames[] = { | |
36180 | (char *) "self",(char *) "pt", NULL | |
36181 | }; | |
36182 | ||
36183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36185 | if (!SWIG_IsOK(res1)) { | |
36186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36187 | } | |
36188 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36189 | { | |
36190 | arg2 = &temp2; | |
36191 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36192 | } | |
36193 | { | |
36194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36195 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
36196 | wxPyEndAllowThreads(__tstate); | |
36197 | if (PyErr_Occurred()) SWIG_fail; | |
36198 | } | |
36199 | resultobj = SWIG_Py_Void(); | |
36200 | return resultobj; | |
36201 | fail: | |
36202 | return NULL; | |
36203 | } | |
36204 | ||
36205 | ||
36206 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36207 | PyObject *resultobj = 0; | |
36208 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36209 | int arg2 ; | |
36210 | int arg3 ; | |
36211 | int arg4 ; | |
36212 | int arg5 ; | |
36213 | int arg6 ; | |
36214 | int arg7 ; | |
36215 | void *argp1 = 0 ; | |
36216 | int res1 = 0 ; | |
36217 | int val2 ; | |
36218 | int ecode2 = 0 ; | |
36219 | int val3 ; | |
36220 | int ecode3 = 0 ; | |
36221 | int val4 ; | |
36222 | int ecode4 = 0 ; | |
36223 | int val5 ; | |
36224 | int ecode5 = 0 ; | |
36225 | int val6 ; | |
36226 | int ecode6 = 0 ; | |
36227 | int val7 ; | |
36228 | int ecode7 = 0 ; | |
36229 | PyObject * obj0 = 0 ; | |
36230 | PyObject * obj1 = 0 ; | |
36231 | PyObject * obj2 = 0 ; | |
36232 | PyObject * obj3 = 0 ; | |
36233 | PyObject * obj4 = 0 ; | |
36234 | PyObject * obj5 = 0 ; | |
36235 | PyObject * obj6 = 0 ; | |
36236 | char * kwnames[] = { | |
36237 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
36238 | }; | |
36239 | ||
36240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36242 | if (!SWIG_IsOK(res1)) { | |
36243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36244 | } | |
36245 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36246 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36247 | if (!SWIG_IsOK(ecode2)) { | |
36248 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
36249 | } | |
36250 | arg2 = static_cast< int >(val2); | |
36251 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36252 | if (!SWIG_IsOK(ecode3)) { | |
36253 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
36254 | } | |
36255 | arg3 = static_cast< int >(val3); | |
36256 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36257 | if (!SWIG_IsOK(ecode4)) { | |
36258 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
36259 | } | |
36260 | arg4 = static_cast< int >(val4); | |
36261 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36262 | if (!SWIG_IsOK(ecode5)) { | |
36263 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
36264 | } | |
36265 | arg5 = static_cast< int >(val5); | |
36266 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36267 | if (!SWIG_IsOK(ecode6)) { | |
36268 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
36269 | } | |
36270 | arg6 = static_cast< int >(val6); | |
36271 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
36272 | if (!SWIG_IsOK(ecode7)) { | |
36273 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
36274 | } | |
36275 | arg7 = static_cast< int >(val7); | |
36276 | { | |
36277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36278 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36279 | wxPyEndAllowThreads(__tstate); | |
36280 | if (PyErr_Occurred()) SWIG_fail; | |
36281 | } | |
36282 | resultobj = SWIG_Py_Void(); | |
36283 | return resultobj; | |
36284 | fail: | |
36285 | return NULL; | |
36286 | } | |
36287 | ||
36288 | ||
36289 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36290 | PyObject *resultobj = 0; | |
36291 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36292 | wxPoint *arg2 = 0 ; | |
36293 | wxPoint *arg3 = 0 ; | |
36294 | wxPoint *arg4 = 0 ; | |
36295 | void *argp1 = 0 ; | |
36296 | int res1 = 0 ; | |
36297 | wxPoint temp2 ; | |
36298 | wxPoint temp3 ; | |
36299 | wxPoint temp4 ; | |
36300 | PyObject * obj0 = 0 ; | |
36301 | PyObject * obj1 = 0 ; | |
36302 | PyObject * obj2 = 0 ; | |
36303 | PyObject * obj3 = 0 ; | |
36304 | char * kwnames[] = { | |
36305 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
36306 | }; | |
36307 | ||
36308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36310 | if (!SWIG_IsOK(res1)) { | |
36311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36312 | } | |
36313 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36314 | { | |
36315 | arg2 = &temp2; | |
36316 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36317 | } | |
36318 | { | |
36319 | arg3 = &temp3; | |
36320 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36321 | } | |
36322 | { | |
36323 | arg4 = &temp4; | |
36324 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36325 | } | |
36326 | { | |
36327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36328 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
36329 | wxPyEndAllowThreads(__tstate); | |
36330 | if (PyErr_Occurred()) SWIG_fail; | |
36331 | } | |
36332 | resultobj = SWIG_Py_Void(); | |
36333 | return resultobj; | |
36334 | fail: | |
36335 | return NULL; | |
36336 | } | |
36337 | ||
36338 | ||
36339 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36340 | PyObject *resultobj = 0; | |
36341 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36342 | int arg2 ; | |
36343 | int arg3 ; | |
36344 | int arg4 ; | |
36345 | int arg5 ; | |
36346 | void *argp1 = 0 ; | |
36347 | int res1 = 0 ; | |
36348 | int val2 ; | |
36349 | int ecode2 = 0 ; | |
36350 | int val3 ; | |
36351 | int ecode3 = 0 ; | |
36352 | int val4 ; | |
36353 | int ecode4 = 0 ; | |
36354 | int val5 ; | |
36355 | int ecode5 = 0 ; | |
36356 | PyObject * obj0 = 0 ; | |
36357 | PyObject * obj1 = 0 ; | |
36358 | PyObject * obj2 = 0 ; | |
36359 | PyObject * obj3 = 0 ; | |
36360 | PyObject * obj4 = 0 ; | |
36361 | char * kwnames[] = { | |
36362 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36363 | }; | |
36364 | ||
36365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36367 | if (!SWIG_IsOK(res1)) { | |
36368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36369 | } | |
36370 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36371 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36372 | if (!SWIG_IsOK(ecode2)) { | |
36373 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
36374 | } | |
36375 | arg2 = static_cast< int >(val2); | |
36376 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36377 | if (!SWIG_IsOK(ecode3)) { | |
36378 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
36379 | } | |
36380 | arg3 = static_cast< int >(val3); | |
36381 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36382 | if (!SWIG_IsOK(ecode4)) { | |
36383 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
36384 | } | |
36385 | arg4 = static_cast< int >(val4); | |
36386 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36387 | if (!SWIG_IsOK(ecode5)) { | |
36388 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
36389 | } | |
36390 | arg5 = static_cast< int >(val5); | |
36391 | { | |
36392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36393 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
36394 | wxPyEndAllowThreads(__tstate); | |
36395 | if (PyErr_Occurred()) SWIG_fail; | |
36396 | } | |
36397 | resultobj = SWIG_Py_Void(); | |
36398 | return resultobj; | |
36399 | fail: | |
36400 | return NULL; | |
36401 | } | |
36402 | ||
36403 | ||
36404 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36405 | PyObject *resultobj = 0; | |
36406 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36407 | wxRect *arg2 = 0 ; | |
36408 | void *argp1 = 0 ; | |
36409 | int res1 = 0 ; | |
36410 | wxRect temp2 ; | |
36411 | PyObject * obj0 = 0 ; | |
36412 | PyObject * obj1 = 0 ; | |
36413 | char * kwnames[] = { | |
36414 | (char *) "self",(char *) "rect", NULL | |
36415 | }; | |
36416 | ||
36417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36418 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36419 | if (!SWIG_IsOK(res1)) { | |
36420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36421 | } | |
36422 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36423 | { | |
36424 | arg2 = &temp2; | |
36425 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36426 | } | |
36427 | { | |
36428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36429 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
36430 | wxPyEndAllowThreads(__tstate); | |
36431 | if (PyErr_Occurred()) SWIG_fail; | |
36432 | } | |
36433 | resultobj = SWIG_Py_Void(); | |
36434 | return resultobj; | |
36435 | fail: | |
36436 | return NULL; | |
36437 | } | |
36438 | ||
36439 | ||
36440 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36441 | PyObject *resultobj = 0; | |
36442 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36443 | int arg2 ; | |
36444 | int arg3 ; | |
36445 | int arg4 ; | |
36446 | int arg5 ; | |
36447 | double arg6 ; | |
36448 | double arg7 ; | |
36449 | void *argp1 = 0 ; | |
36450 | int res1 = 0 ; | |
36451 | int val2 ; | |
36452 | int ecode2 = 0 ; | |
36453 | int val3 ; | |
36454 | int ecode3 = 0 ; | |
36455 | int val4 ; | |
36456 | int ecode4 = 0 ; | |
36457 | int val5 ; | |
36458 | int ecode5 = 0 ; | |
36459 | double val6 ; | |
36460 | int ecode6 = 0 ; | |
36461 | double val7 ; | |
36462 | int ecode7 = 0 ; | |
36463 | PyObject * obj0 = 0 ; | |
36464 | PyObject * obj1 = 0 ; | |
36465 | PyObject * obj2 = 0 ; | |
36466 | PyObject * obj3 = 0 ; | |
36467 | PyObject * obj4 = 0 ; | |
36468 | PyObject * obj5 = 0 ; | |
36469 | PyObject * obj6 = 0 ; | |
36470 | char * kwnames[] = { | |
36471 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
36472 | }; | |
36473 | ||
36474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36476 | if (!SWIG_IsOK(res1)) { | |
36477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36478 | } | |
36479 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36480 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36481 | if (!SWIG_IsOK(ecode2)) { | |
36482 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
36483 | } | |
36484 | arg2 = static_cast< int >(val2); | |
36485 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36486 | if (!SWIG_IsOK(ecode3)) { | |
36487 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
36488 | } | |
36489 | arg3 = static_cast< int >(val3); | |
36490 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36491 | if (!SWIG_IsOK(ecode4)) { | |
36492 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
36493 | } | |
36494 | arg4 = static_cast< int >(val4); | |
36495 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36496 | if (!SWIG_IsOK(ecode5)) { | |
36497 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
36498 | } | |
36499 | arg5 = static_cast< int >(val5); | |
36500 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36501 | if (!SWIG_IsOK(ecode6)) { | |
36502 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
36503 | } | |
36504 | arg6 = static_cast< double >(val6); | |
36505 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
36506 | if (!SWIG_IsOK(ecode7)) { | |
36507 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
36508 | } | |
36509 | arg7 = static_cast< double >(val7); | |
36510 | { | |
36511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36512 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36513 | wxPyEndAllowThreads(__tstate); | |
36514 | if (PyErr_Occurred()) SWIG_fail; | |
36515 | } | |
36516 | resultobj = SWIG_Py_Void(); | |
36517 | return resultobj; | |
36518 | fail: | |
36519 | return NULL; | |
36520 | } | |
36521 | ||
36522 | ||
36523 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36524 | PyObject *resultobj = 0; | |
36525 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36526 | wxPoint *arg2 = 0 ; | |
36527 | wxSize *arg3 = 0 ; | |
36528 | double arg4 ; | |
36529 | double arg5 ; | |
36530 | void *argp1 = 0 ; | |
36531 | int res1 = 0 ; | |
36532 | wxPoint temp2 ; | |
36533 | wxSize temp3 ; | |
36534 | double val4 ; | |
36535 | int ecode4 = 0 ; | |
36536 | double val5 ; | |
36537 | int ecode5 = 0 ; | |
36538 | PyObject * obj0 = 0 ; | |
36539 | PyObject * obj1 = 0 ; | |
36540 | PyObject * obj2 = 0 ; | |
36541 | PyObject * obj3 = 0 ; | |
36542 | PyObject * obj4 = 0 ; | |
36543 | char * kwnames[] = { | |
36544 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
36545 | }; | |
36546 | ||
36547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawEllipticArcPointSize" "', 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 | arg3 = &temp3; | |
36559 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36560 | } | |
36561 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36562 | if (!SWIG_IsOK(ecode4)) { | |
36563 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
36564 | } | |
36565 | arg4 = static_cast< double >(val4); | |
36566 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
36567 | if (!SWIG_IsOK(ecode5)) { | |
36568 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
36569 | } | |
36570 | arg5 = static_cast< double >(val5); | |
36571 | { | |
36572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36573 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
36574 | wxPyEndAllowThreads(__tstate); | |
36575 | if (PyErr_Occurred()) SWIG_fail; | |
36576 | } | |
36577 | resultobj = SWIG_Py_Void(); | |
36578 | return resultobj; | |
36579 | fail: | |
36580 | return NULL; | |
36581 | } | |
36582 | ||
36583 | ||
36584 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36585 | PyObject *resultobj = 0; | |
36586 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36587 | int arg2 ; | |
36588 | int arg3 ; | |
36589 | void *argp1 = 0 ; | |
36590 | int res1 = 0 ; | |
36591 | int val2 ; | |
36592 | int ecode2 = 0 ; | |
36593 | int val3 ; | |
36594 | int ecode3 = 0 ; | |
36595 | PyObject * obj0 = 0 ; | |
36596 | PyObject * obj1 = 0 ; | |
36597 | PyObject * obj2 = 0 ; | |
36598 | char * kwnames[] = { | |
36599 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36600 | }; | |
36601 | ||
36602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36603 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36604 | if (!SWIG_IsOK(res1)) { | |
36605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36606 | } | |
36607 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36608 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36609 | if (!SWIG_IsOK(ecode2)) { | |
36610 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
36611 | } | |
36612 | arg2 = static_cast< int >(val2); | |
36613 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36614 | if (!SWIG_IsOK(ecode3)) { | |
36615 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
36616 | } | |
36617 | arg3 = static_cast< int >(val3); | |
36618 | { | |
36619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36620 | (arg1)->DrawPoint(arg2,arg3); | |
36621 | wxPyEndAllowThreads(__tstate); | |
36622 | if (PyErr_Occurred()) SWIG_fail; | |
36623 | } | |
36624 | resultobj = SWIG_Py_Void(); | |
36625 | return resultobj; | |
36626 | fail: | |
36627 | return NULL; | |
36628 | } | |
36629 | ||
36630 | ||
36631 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36632 | PyObject *resultobj = 0; | |
36633 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36634 | wxPoint *arg2 = 0 ; | |
36635 | void *argp1 = 0 ; | |
36636 | int res1 = 0 ; | |
36637 | wxPoint temp2 ; | |
36638 | PyObject * obj0 = 0 ; | |
36639 | PyObject * obj1 = 0 ; | |
36640 | char * kwnames[] = { | |
36641 | (char *) "self",(char *) "pt", NULL | |
36642 | }; | |
36643 | ||
36644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36646 | if (!SWIG_IsOK(res1)) { | |
36647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36648 | } | |
36649 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36650 | { | |
36651 | arg2 = &temp2; | |
36652 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36653 | } | |
36654 | { | |
36655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36656 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
36657 | wxPyEndAllowThreads(__tstate); | |
36658 | if (PyErr_Occurred()) SWIG_fail; | |
36659 | } | |
36660 | resultobj = SWIG_Py_Void(); | |
36661 | return resultobj; | |
36662 | fail: | |
36663 | return NULL; | |
36664 | } | |
36665 | ||
36666 | ||
36667 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36668 | PyObject *resultobj = 0; | |
36669 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36670 | int arg2 ; | |
36671 | int arg3 ; | |
36672 | int arg4 ; | |
36673 | int arg5 ; | |
36674 | void *argp1 = 0 ; | |
36675 | int res1 = 0 ; | |
36676 | int val2 ; | |
36677 | int ecode2 = 0 ; | |
36678 | int val3 ; | |
36679 | int ecode3 = 0 ; | |
36680 | int val4 ; | |
36681 | int ecode4 = 0 ; | |
36682 | int val5 ; | |
36683 | int ecode5 = 0 ; | |
36684 | PyObject * obj0 = 0 ; | |
36685 | PyObject * obj1 = 0 ; | |
36686 | PyObject * obj2 = 0 ; | |
36687 | PyObject * obj3 = 0 ; | |
36688 | PyObject * obj4 = 0 ; | |
36689 | char * kwnames[] = { | |
36690 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36691 | }; | |
36692 | ||
36693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36695 | if (!SWIG_IsOK(res1)) { | |
36696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36697 | } | |
36698 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36699 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36700 | if (!SWIG_IsOK(ecode2)) { | |
36701 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36702 | } | |
36703 | arg2 = static_cast< int >(val2); | |
36704 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36705 | if (!SWIG_IsOK(ecode3)) { | |
36706 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36707 | } | |
36708 | arg3 = static_cast< int >(val3); | |
36709 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36710 | if (!SWIG_IsOK(ecode4)) { | |
36711 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36712 | } | |
36713 | arg4 = static_cast< int >(val4); | |
36714 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36715 | if (!SWIG_IsOK(ecode5)) { | |
36716 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36717 | } | |
36718 | arg5 = static_cast< int >(val5); | |
36719 | { | |
36720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36721 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
36722 | wxPyEndAllowThreads(__tstate); | |
36723 | if (PyErr_Occurred()) SWIG_fail; | |
36724 | } | |
36725 | resultobj = SWIG_Py_Void(); | |
36726 | return resultobj; | |
36727 | fail: | |
36728 | return NULL; | |
36729 | } | |
36730 | ||
36731 | ||
36732 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36733 | PyObject *resultobj = 0; | |
36734 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36735 | wxRect *arg2 = 0 ; | |
36736 | void *argp1 = 0 ; | |
36737 | int res1 = 0 ; | |
36738 | wxRect temp2 ; | |
36739 | PyObject * obj0 = 0 ; | |
36740 | PyObject * obj1 = 0 ; | |
36741 | char * kwnames[] = { | |
36742 | (char *) "self",(char *) "rect", NULL | |
36743 | }; | |
36744 | ||
36745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36747 | if (!SWIG_IsOK(res1)) { | |
36748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36749 | } | |
36750 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36751 | { | |
36752 | arg2 = &temp2; | |
36753 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36754 | } | |
36755 | { | |
36756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36757 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
36758 | wxPyEndAllowThreads(__tstate); | |
36759 | if (PyErr_Occurred()) SWIG_fail; | |
36760 | } | |
36761 | resultobj = SWIG_Py_Void(); | |
36762 | return resultobj; | |
36763 | fail: | |
36764 | return NULL; | |
36765 | } | |
36766 | ||
36767 | ||
36768 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36769 | PyObject *resultobj = 0; | |
36770 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36771 | wxPoint *arg2 = 0 ; | |
36772 | wxSize *arg3 = 0 ; | |
36773 | void *argp1 = 0 ; | |
36774 | int res1 = 0 ; | |
36775 | wxPoint temp2 ; | |
36776 | wxSize temp3 ; | |
36777 | PyObject * obj0 = 0 ; | |
36778 | PyObject * obj1 = 0 ; | |
36779 | PyObject * obj2 = 0 ; | |
36780 | char * kwnames[] = { | |
36781 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
36782 | }; | |
36783 | ||
36784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36785 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36786 | if (!SWIG_IsOK(res1)) { | |
36787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36788 | } | |
36789 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36790 | { | |
36791 | arg2 = &temp2; | |
36792 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36793 | } | |
36794 | { | |
36795 | arg3 = &temp3; | |
36796 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36797 | } | |
36798 | { | |
36799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36800 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
36801 | wxPyEndAllowThreads(__tstate); | |
36802 | if (PyErr_Occurred()) SWIG_fail; | |
36803 | } | |
36804 | resultobj = SWIG_Py_Void(); | |
36805 | return resultobj; | |
36806 | fail: | |
36807 | return NULL; | |
36808 | } | |
36809 | ||
36810 | ||
36811 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36812 | PyObject *resultobj = 0; | |
36813 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36814 | int arg2 ; | |
36815 | int arg3 ; | |
36816 | int arg4 ; | |
36817 | int arg5 ; | |
36818 | double arg6 ; | |
36819 | void *argp1 = 0 ; | |
36820 | int res1 = 0 ; | |
36821 | int val2 ; | |
36822 | int ecode2 = 0 ; | |
36823 | int val3 ; | |
36824 | int ecode3 = 0 ; | |
36825 | int val4 ; | |
36826 | int ecode4 = 0 ; | |
36827 | int val5 ; | |
36828 | int ecode5 = 0 ; | |
36829 | double val6 ; | |
36830 | int ecode6 = 0 ; | |
36831 | PyObject * obj0 = 0 ; | |
36832 | PyObject * obj1 = 0 ; | |
36833 | PyObject * obj2 = 0 ; | |
36834 | PyObject * obj3 = 0 ; | |
36835 | PyObject * obj4 = 0 ; | |
36836 | PyObject * obj5 = 0 ; | |
36837 | char * kwnames[] = { | |
36838 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
36839 | }; | |
36840 | ||
36841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36843 | if (!SWIG_IsOK(res1)) { | |
36844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36845 | } | |
36846 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36847 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36848 | if (!SWIG_IsOK(ecode2)) { | |
36849 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36850 | } | |
36851 | arg2 = static_cast< int >(val2); | |
36852 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36853 | if (!SWIG_IsOK(ecode3)) { | |
36854 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36855 | } | |
36856 | arg3 = static_cast< int >(val3); | |
36857 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36858 | if (!SWIG_IsOK(ecode4)) { | |
36859 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36860 | } | |
36861 | arg4 = static_cast< int >(val4); | |
36862 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36863 | if (!SWIG_IsOK(ecode5)) { | |
36864 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36865 | } | |
36866 | arg5 = static_cast< int >(val5); | |
36867 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36868 | if (!SWIG_IsOK(ecode6)) { | |
36869 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
36870 | } | |
36871 | arg6 = static_cast< double >(val6); | |
36872 | { | |
36873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36874 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
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_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36886 | PyObject *resultobj = 0; | |
36887 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36888 | wxRect *arg2 = 0 ; | |
36889 | double arg3 ; | |
36890 | void *argp1 = 0 ; | |
36891 | int res1 = 0 ; | |
36892 | wxRect temp2 ; | |
36893 | double val3 ; | |
36894 | int ecode3 = 0 ; | |
36895 | PyObject * obj0 = 0 ; | |
36896 | PyObject * obj1 = 0 ; | |
36897 | PyObject * obj2 = 0 ; | |
36898 | char * kwnames[] = { | |
36899 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
36900 | }; | |
36901 | ||
36902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36904 | if (!SWIG_IsOK(res1)) { | |
36905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36906 | } | |
36907 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36908 | { | |
36909 | arg2 = &temp2; | |
36910 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36911 | } | |
36912 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
36913 | if (!SWIG_IsOK(ecode3)) { | |
36914 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
36915 | } | |
36916 | arg3 = static_cast< double >(val3); | |
36917 | { | |
36918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36919 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
36920 | wxPyEndAllowThreads(__tstate); | |
36921 | if (PyErr_Occurred()) SWIG_fail; | |
36922 | } | |
36923 | resultobj = SWIG_Py_Void(); | |
36924 | return resultobj; | |
36925 | fail: | |
36926 | return NULL; | |
36927 | } | |
36928 | ||
36929 | ||
36930 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36931 | PyObject *resultobj = 0; | |
36932 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36933 | wxPoint *arg2 = 0 ; | |
36934 | wxSize *arg3 = 0 ; | |
36935 | double arg4 ; | |
36936 | void *argp1 = 0 ; | |
36937 | int res1 = 0 ; | |
36938 | wxPoint temp2 ; | |
36939 | wxSize temp3 ; | |
36940 | double val4 ; | |
36941 | int ecode4 = 0 ; | |
36942 | PyObject * obj0 = 0 ; | |
36943 | PyObject * obj1 = 0 ; | |
36944 | PyObject * obj2 = 0 ; | |
36945 | PyObject * obj3 = 0 ; | |
36946 | char * kwnames[] = { | |
36947 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
36948 | }; | |
36949 | ||
36950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36952 | if (!SWIG_IsOK(res1)) { | |
36953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36954 | } | |
36955 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36956 | { | |
36957 | arg2 = &temp2; | |
36958 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36959 | } | |
36960 | { | |
36961 | arg3 = &temp3; | |
36962 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36963 | } | |
36964 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36965 | if (!SWIG_IsOK(ecode4)) { | |
36966 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
36967 | } | |
36968 | arg4 = static_cast< double >(val4); | |
36969 | { | |
36970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36971 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
36972 | wxPyEndAllowThreads(__tstate); | |
36973 | if (PyErr_Occurred()) SWIG_fail; | |
36974 | } | |
36975 | resultobj = SWIG_Py_Void(); | |
36976 | return resultobj; | |
36977 | fail: | |
36978 | return NULL; | |
36979 | } | |
36980 | ||
36981 | ||
36982 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36983 | PyObject *resultobj = 0; | |
36984 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36985 | int arg2 ; | |
36986 | int arg3 ; | |
36987 | int arg4 ; | |
36988 | void *argp1 = 0 ; | |
36989 | int res1 = 0 ; | |
36990 | int val2 ; | |
36991 | int ecode2 = 0 ; | |
36992 | int val3 ; | |
36993 | int ecode3 = 0 ; | |
36994 | int val4 ; | |
36995 | int ecode4 = 0 ; | |
36996 | PyObject * obj0 = 0 ; | |
36997 | PyObject * obj1 = 0 ; | |
36998 | PyObject * obj2 = 0 ; | |
36999 | PyObject * obj3 = 0 ; | |
37000 | char * kwnames[] = { | |
37001 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
37002 | }; | |
37003 | ||
37004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37006 | if (!SWIG_IsOK(res1)) { | |
37007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37008 | } | |
37009 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37010 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37011 | if (!SWIG_IsOK(ecode2)) { | |
37012 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
37013 | } | |
37014 | arg2 = static_cast< int >(val2); | |
37015 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37016 | if (!SWIG_IsOK(ecode3)) { | |
37017 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
37018 | } | |
37019 | arg3 = static_cast< int >(val3); | |
37020 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37021 | if (!SWIG_IsOK(ecode4)) { | |
37022 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
37023 | } | |
37024 | arg4 = static_cast< int >(val4); | |
37025 | { | |
37026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37027 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
37028 | wxPyEndAllowThreads(__tstate); | |
37029 | if (PyErr_Occurred()) SWIG_fail; | |
37030 | } | |
37031 | resultobj = SWIG_Py_Void(); | |
37032 | return resultobj; | |
37033 | fail: | |
37034 | return NULL; | |
37035 | } | |
37036 | ||
37037 | ||
37038 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37039 | PyObject *resultobj = 0; | |
37040 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37041 | wxPoint *arg2 = 0 ; | |
37042 | int arg3 ; | |
37043 | void *argp1 = 0 ; | |
37044 | int res1 = 0 ; | |
37045 | wxPoint temp2 ; | |
37046 | int val3 ; | |
37047 | int ecode3 = 0 ; | |
37048 | PyObject * obj0 = 0 ; | |
37049 | PyObject * obj1 = 0 ; | |
37050 | PyObject * obj2 = 0 ; | |
37051 | char * kwnames[] = { | |
37052 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
37053 | }; | |
37054 | ||
37055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37057 | if (!SWIG_IsOK(res1)) { | |
37058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37059 | } | |
37060 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37061 | { | |
37062 | arg2 = &temp2; | |
37063 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37064 | } | |
37065 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37066 | if (!SWIG_IsOK(ecode3)) { | |
37067 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
37068 | } | |
37069 | arg3 = static_cast< int >(val3); | |
37070 | { | |
37071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37072 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
37073 | wxPyEndAllowThreads(__tstate); | |
37074 | if (PyErr_Occurred()) SWIG_fail; | |
37075 | } | |
37076 | resultobj = SWIG_Py_Void(); | |
37077 | return resultobj; | |
37078 | fail: | |
37079 | return NULL; | |
37080 | } | |
37081 | ||
37082 | ||
37083 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37084 | PyObject *resultobj = 0; | |
37085 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37086 | int arg2 ; | |
37087 | int arg3 ; | |
37088 | int arg4 ; | |
37089 | int arg5 ; | |
37090 | void *argp1 = 0 ; | |
37091 | int res1 = 0 ; | |
37092 | int val2 ; | |
37093 | int ecode2 = 0 ; | |
37094 | int val3 ; | |
37095 | int ecode3 = 0 ; | |
37096 | int val4 ; | |
37097 | int ecode4 = 0 ; | |
37098 | int val5 ; | |
37099 | int ecode5 = 0 ; | |
37100 | PyObject * obj0 = 0 ; | |
37101 | PyObject * obj1 = 0 ; | |
37102 | PyObject * obj2 = 0 ; | |
37103 | PyObject * obj3 = 0 ; | |
37104 | PyObject * obj4 = 0 ; | |
37105 | char * kwnames[] = { | |
37106 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37107 | }; | |
37108 | ||
37109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37110 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37111 | if (!SWIG_IsOK(res1)) { | |
37112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37113 | } | |
37114 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37115 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37116 | if (!SWIG_IsOK(ecode2)) { | |
37117 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
37118 | } | |
37119 | arg2 = static_cast< int >(val2); | |
37120 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37121 | if (!SWIG_IsOK(ecode3)) { | |
37122 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
37123 | } | |
37124 | arg3 = static_cast< int >(val3); | |
37125 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37126 | if (!SWIG_IsOK(ecode4)) { | |
37127 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
37128 | } | |
37129 | arg4 = static_cast< int >(val4); | |
37130 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37131 | if (!SWIG_IsOK(ecode5)) { | |
37132 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
37133 | } | |
37134 | arg5 = static_cast< int >(val5); | |
37135 | { | |
37136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37137 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
37138 | wxPyEndAllowThreads(__tstate); | |
37139 | if (PyErr_Occurred()) SWIG_fail; | |
37140 | } | |
37141 | resultobj = SWIG_Py_Void(); | |
37142 | return resultobj; | |
37143 | fail: | |
37144 | return NULL; | |
37145 | } | |
37146 | ||
37147 | ||
37148 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37149 | PyObject *resultobj = 0; | |
37150 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37151 | wxRect *arg2 = 0 ; | |
37152 | void *argp1 = 0 ; | |
37153 | int res1 = 0 ; | |
37154 | wxRect temp2 ; | |
37155 | PyObject * obj0 = 0 ; | |
37156 | PyObject * obj1 = 0 ; | |
37157 | char * kwnames[] = { | |
37158 | (char *) "self",(char *) "rect", NULL | |
37159 | }; | |
37160 | ||
37161 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37163 | if (!SWIG_IsOK(res1)) { | |
37164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37165 | } | |
37166 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37167 | { | |
37168 | arg2 = &temp2; | |
37169 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37170 | } | |
37171 | { | |
37172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37173 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
37174 | wxPyEndAllowThreads(__tstate); | |
37175 | if (PyErr_Occurred()) SWIG_fail; | |
37176 | } | |
37177 | resultobj = SWIG_Py_Void(); | |
37178 | return resultobj; | |
37179 | fail: | |
37180 | return NULL; | |
37181 | } | |
37182 | ||
37183 | ||
37184 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37185 | PyObject *resultobj = 0; | |
37186 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37187 | wxPoint *arg2 = 0 ; | |
37188 | wxSize *arg3 = 0 ; | |
37189 | void *argp1 = 0 ; | |
37190 | int res1 = 0 ; | |
37191 | wxPoint temp2 ; | |
37192 | wxSize temp3 ; | |
37193 | PyObject * obj0 = 0 ; | |
37194 | PyObject * obj1 = 0 ; | |
37195 | PyObject * obj2 = 0 ; | |
37196 | char * kwnames[] = { | |
37197 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37198 | }; | |
37199 | ||
37200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37202 | if (!SWIG_IsOK(res1)) { | |
37203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37204 | } | |
37205 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37206 | { | |
37207 | arg2 = &temp2; | |
37208 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37209 | } | |
37210 | { | |
37211 | arg3 = &temp3; | |
37212 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37213 | } | |
37214 | { | |
37215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37216 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37217 | wxPyEndAllowThreads(__tstate); | |
37218 | if (PyErr_Occurred()) SWIG_fail; | |
37219 | } | |
37220 | resultobj = SWIG_Py_Void(); | |
37221 | return resultobj; | |
37222 | fail: | |
37223 | return NULL; | |
37224 | } | |
37225 | ||
37226 | ||
37227 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37228 | PyObject *resultobj = 0; | |
37229 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37230 | wxIcon *arg2 = 0 ; | |
37231 | int arg3 ; | |
37232 | int arg4 ; | |
37233 | void *argp1 = 0 ; | |
37234 | int res1 = 0 ; | |
37235 | void *argp2 = 0 ; | |
37236 | int res2 = 0 ; | |
37237 | int val3 ; | |
37238 | int ecode3 = 0 ; | |
37239 | int val4 ; | |
37240 | int ecode4 = 0 ; | |
37241 | PyObject * obj0 = 0 ; | |
37242 | PyObject * obj1 = 0 ; | |
37243 | PyObject * obj2 = 0 ; | |
37244 | PyObject * obj3 = 0 ; | |
37245 | char * kwnames[] = { | |
37246 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
37247 | }; | |
37248 | ||
37249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37251 | if (!SWIG_IsOK(res1)) { | |
37252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37253 | } | |
37254 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37255 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
37256 | if (!SWIG_IsOK(res2)) { | |
37257 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37258 | } | |
37259 | if (!argp2) { | |
37260 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37261 | } | |
37262 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
37263 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37264 | if (!SWIG_IsOK(ecode3)) { | |
37265 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
37266 | } | |
37267 | arg3 = static_cast< int >(val3); | |
37268 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37269 | if (!SWIG_IsOK(ecode4)) { | |
37270 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
37271 | } | |
37272 | arg4 = static_cast< int >(val4); | |
37273 | { | |
37274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37275 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
37276 | wxPyEndAllowThreads(__tstate); | |
37277 | if (PyErr_Occurred()) SWIG_fail; | |
37278 | } | |
37279 | resultobj = SWIG_Py_Void(); | |
37280 | return resultobj; | |
37281 | fail: | |
37282 | return NULL; | |
37283 | } | |
37284 | ||
37285 | ||
37286 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37287 | PyObject *resultobj = 0; | |
37288 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37289 | wxIcon *arg2 = 0 ; | |
37290 | wxPoint *arg3 = 0 ; | |
37291 | void *argp1 = 0 ; | |
37292 | int res1 = 0 ; | |
37293 | void *argp2 = 0 ; | |
37294 | int res2 = 0 ; | |
37295 | wxPoint temp3 ; | |
37296 | PyObject * obj0 = 0 ; | |
37297 | PyObject * obj1 = 0 ; | |
37298 | PyObject * obj2 = 0 ; | |
37299 | char * kwnames[] = { | |
37300 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
37301 | }; | |
37302 | ||
37303 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37304 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37305 | if (!SWIG_IsOK(res1)) { | |
37306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37307 | } | |
37308 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37309 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
37310 | if (!SWIG_IsOK(res2)) { | |
37311 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37312 | } | |
37313 | if (!argp2) { | |
37314 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37315 | } | |
37316 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
37317 | { | |
37318 | arg3 = &temp3; | |
37319 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37320 | } | |
37321 | { | |
37322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37323 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
37324 | wxPyEndAllowThreads(__tstate); | |
37325 | if (PyErr_Occurred()) SWIG_fail; | |
37326 | } | |
37327 | resultobj = SWIG_Py_Void(); | |
37328 | return resultobj; | |
37329 | fail: | |
37330 | return NULL; | |
37331 | } | |
37332 | ||
37333 | ||
37334 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37335 | PyObject *resultobj = 0; | |
37336 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37337 | wxBitmap *arg2 = 0 ; | |
37338 | int arg3 ; | |
37339 | int arg4 ; | |
37340 | bool arg5 = (bool) false ; | |
37341 | void *argp1 = 0 ; | |
37342 | int res1 = 0 ; | |
37343 | void *argp2 = 0 ; | |
37344 | int res2 = 0 ; | |
37345 | int val3 ; | |
37346 | int ecode3 = 0 ; | |
37347 | int val4 ; | |
37348 | int ecode4 = 0 ; | |
37349 | bool val5 ; | |
37350 | int ecode5 = 0 ; | |
37351 | PyObject * obj0 = 0 ; | |
37352 | PyObject * obj1 = 0 ; | |
37353 | PyObject * obj2 = 0 ; | |
37354 | PyObject * obj3 = 0 ; | |
37355 | PyObject * obj4 = 0 ; | |
37356 | char * kwnames[] = { | |
37357 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
37358 | }; | |
37359 | ||
37360 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37361 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37362 | if (!SWIG_IsOK(res1)) { | |
37363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37364 | } | |
37365 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37366 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37367 | if (!SWIG_IsOK(res2)) { | |
37368 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37369 | } | |
37370 | if (!argp2) { | |
37371 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37372 | } | |
37373 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37374 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37375 | if (!SWIG_IsOK(ecode3)) { | |
37376 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
37377 | } | |
37378 | arg3 = static_cast< int >(val3); | |
37379 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37380 | if (!SWIG_IsOK(ecode4)) { | |
37381 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
37382 | } | |
37383 | arg4 = static_cast< int >(val4); | |
37384 | if (obj4) { | |
37385 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
37386 | if (!SWIG_IsOK(ecode5)) { | |
37387 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
37388 | } | |
37389 | arg5 = static_cast< bool >(val5); | |
37390 | } | |
37391 | { | |
37392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37393 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
37394 | wxPyEndAllowThreads(__tstate); | |
37395 | if (PyErr_Occurred()) SWIG_fail; | |
37396 | } | |
37397 | resultobj = SWIG_Py_Void(); | |
37398 | return resultobj; | |
37399 | fail: | |
37400 | return NULL; | |
37401 | } | |
37402 | ||
37403 | ||
37404 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37405 | PyObject *resultobj = 0; | |
37406 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37407 | wxBitmap *arg2 = 0 ; | |
37408 | wxPoint *arg3 = 0 ; | |
37409 | bool arg4 = (bool) false ; | |
37410 | void *argp1 = 0 ; | |
37411 | int res1 = 0 ; | |
37412 | void *argp2 = 0 ; | |
37413 | int res2 = 0 ; | |
37414 | wxPoint temp3 ; | |
37415 | bool val4 ; | |
37416 | int ecode4 = 0 ; | |
37417 | PyObject * obj0 = 0 ; | |
37418 | PyObject * obj1 = 0 ; | |
37419 | PyObject * obj2 = 0 ; | |
37420 | PyObject * obj3 = 0 ; | |
37421 | char * kwnames[] = { | |
37422 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
37423 | }; | |
37424 | ||
37425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37427 | if (!SWIG_IsOK(res1)) { | |
37428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37429 | } | |
37430 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37431 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37432 | if (!SWIG_IsOK(res2)) { | |
37433 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37434 | } | |
37435 | if (!argp2) { | |
37436 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37437 | } | |
37438 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37439 | { | |
37440 | arg3 = &temp3; | |
37441 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37442 | } | |
37443 | if (obj3) { | |
37444 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
37445 | if (!SWIG_IsOK(ecode4)) { | |
37446 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
37447 | } | |
37448 | arg4 = static_cast< bool >(val4); | |
37449 | } | |
37450 | { | |
37451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37452 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37453 | wxPyEndAllowThreads(__tstate); | |
37454 | if (PyErr_Occurred()) SWIG_fail; | |
37455 | } | |
37456 | resultobj = SWIG_Py_Void(); | |
37457 | return resultobj; | |
37458 | fail: | |
37459 | return NULL; | |
37460 | } | |
37461 | ||
37462 | ||
37463 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37464 | PyObject *resultobj = 0; | |
37465 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37466 | wxString *arg2 = 0 ; | |
37467 | int arg3 ; | |
37468 | int arg4 ; | |
37469 | void *argp1 = 0 ; | |
37470 | int res1 = 0 ; | |
37471 | bool temp2 = false ; | |
37472 | int val3 ; | |
37473 | int ecode3 = 0 ; | |
37474 | int val4 ; | |
37475 | int ecode4 = 0 ; | |
37476 | PyObject * obj0 = 0 ; | |
37477 | PyObject * obj1 = 0 ; | |
37478 | PyObject * obj2 = 0 ; | |
37479 | PyObject * obj3 = 0 ; | |
37480 | char * kwnames[] = { | |
37481 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
37482 | }; | |
37483 | ||
37484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37486 | if (!SWIG_IsOK(res1)) { | |
37487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37488 | } | |
37489 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37490 | { | |
37491 | arg2 = wxString_in_helper(obj1); | |
37492 | if (arg2 == NULL) SWIG_fail; | |
37493 | temp2 = true; | |
37494 | } | |
37495 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37496 | if (!SWIG_IsOK(ecode3)) { | |
37497 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
37498 | } | |
37499 | arg3 = static_cast< int >(val3); | |
37500 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37501 | if (!SWIG_IsOK(ecode4)) { | |
37502 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
37503 | } | |
37504 | arg4 = static_cast< int >(val4); | |
37505 | { | |
37506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37507 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
37508 | wxPyEndAllowThreads(__tstate); | |
37509 | if (PyErr_Occurred()) SWIG_fail; | |
37510 | } | |
37511 | resultobj = SWIG_Py_Void(); | |
37512 | { | |
37513 | if (temp2) | |
37514 | delete arg2; | |
37515 | } | |
37516 | return resultobj; | |
37517 | fail: | |
37518 | { | |
37519 | if (temp2) | |
37520 | delete arg2; | |
37521 | } | |
37522 | return NULL; | |
37523 | } | |
37524 | ||
37525 | ||
37526 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37527 | PyObject *resultobj = 0; | |
37528 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37529 | wxString *arg2 = 0 ; | |
37530 | wxPoint *arg3 = 0 ; | |
37531 | void *argp1 = 0 ; | |
37532 | int res1 = 0 ; | |
37533 | bool temp2 = false ; | |
37534 | wxPoint temp3 ; | |
37535 | PyObject * obj0 = 0 ; | |
37536 | PyObject * obj1 = 0 ; | |
37537 | PyObject * obj2 = 0 ; | |
37538 | char * kwnames[] = { | |
37539 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
37540 | }; | |
37541 | ||
37542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37544 | if (!SWIG_IsOK(res1)) { | |
37545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37546 | } | |
37547 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37548 | { | |
37549 | arg2 = wxString_in_helper(obj1); | |
37550 | if (arg2 == NULL) SWIG_fail; | |
37551 | temp2 = true; | |
37552 | } | |
37553 | { | |
37554 | arg3 = &temp3; | |
37555 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37556 | } | |
37557 | { | |
37558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37559 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
37560 | wxPyEndAllowThreads(__tstate); | |
37561 | if (PyErr_Occurred()) SWIG_fail; | |
37562 | } | |
37563 | resultobj = SWIG_Py_Void(); | |
37564 | { | |
37565 | if (temp2) | |
37566 | delete arg2; | |
37567 | } | |
37568 | return resultobj; | |
37569 | fail: | |
37570 | { | |
37571 | if (temp2) | |
37572 | delete arg2; | |
37573 | } | |
37574 | return NULL; | |
37575 | } | |
37576 | ||
37577 | ||
37578 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37579 | PyObject *resultobj = 0; | |
37580 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37581 | wxString *arg2 = 0 ; | |
37582 | int arg3 ; | |
37583 | int arg4 ; | |
37584 | double arg5 ; | |
37585 | void *argp1 = 0 ; | |
37586 | int res1 = 0 ; | |
37587 | bool temp2 = false ; | |
37588 | int val3 ; | |
37589 | int ecode3 = 0 ; | |
37590 | int val4 ; | |
37591 | int ecode4 = 0 ; | |
37592 | double val5 ; | |
37593 | int ecode5 = 0 ; | |
37594 | PyObject * obj0 = 0 ; | |
37595 | PyObject * obj1 = 0 ; | |
37596 | PyObject * obj2 = 0 ; | |
37597 | PyObject * obj3 = 0 ; | |
37598 | PyObject * obj4 = 0 ; | |
37599 | char * kwnames[] = { | |
37600 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
37601 | }; | |
37602 | ||
37603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37605 | if (!SWIG_IsOK(res1)) { | |
37606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37607 | } | |
37608 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37609 | { | |
37610 | arg2 = wxString_in_helper(obj1); | |
37611 | if (arg2 == NULL) SWIG_fail; | |
37612 | temp2 = true; | |
37613 | } | |
37614 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37615 | if (!SWIG_IsOK(ecode3)) { | |
37616 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
37617 | } | |
37618 | arg3 = static_cast< int >(val3); | |
37619 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37620 | if (!SWIG_IsOK(ecode4)) { | |
37621 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
37622 | } | |
37623 | arg4 = static_cast< int >(val4); | |
37624 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37625 | if (!SWIG_IsOK(ecode5)) { | |
37626 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
37627 | } | |
37628 | arg5 = static_cast< double >(val5); | |
37629 | { | |
37630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37631 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
37632 | wxPyEndAllowThreads(__tstate); | |
37633 | if (PyErr_Occurred()) SWIG_fail; | |
37634 | } | |
37635 | resultobj = SWIG_Py_Void(); | |
37636 | { | |
37637 | if (temp2) | |
37638 | delete arg2; | |
37639 | } | |
37640 | return resultobj; | |
37641 | fail: | |
37642 | { | |
37643 | if (temp2) | |
37644 | delete arg2; | |
37645 | } | |
37646 | return NULL; | |
37647 | } | |
37648 | ||
37649 | ||
37650 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37651 | PyObject *resultobj = 0; | |
37652 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37653 | wxString *arg2 = 0 ; | |
37654 | wxPoint *arg3 = 0 ; | |
37655 | double arg4 ; | |
37656 | void *argp1 = 0 ; | |
37657 | int res1 = 0 ; | |
37658 | bool temp2 = false ; | |
37659 | wxPoint temp3 ; | |
37660 | double val4 ; | |
37661 | int ecode4 = 0 ; | |
37662 | PyObject * obj0 = 0 ; | |
37663 | PyObject * obj1 = 0 ; | |
37664 | PyObject * obj2 = 0 ; | |
37665 | PyObject * obj3 = 0 ; | |
37666 | char * kwnames[] = { | |
37667 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
37668 | }; | |
37669 | ||
37670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37672 | if (!SWIG_IsOK(res1)) { | |
37673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37674 | } | |
37675 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37676 | { | |
37677 | arg2 = wxString_in_helper(obj1); | |
37678 | if (arg2 == NULL) SWIG_fail; | |
37679 | temp2 = true; | |
37680 | } | |
37681 | { | |
37682 | arg3 = &temp3; | |
37683 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37684 | } | |
37685 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37686 | if (!SWIG_IsOK(ecode4)) { | |
37687 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
37688 | } | |
37689 | arg4 = static_cast< double >(val4); | |
37690 | { | |
37691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37692 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37693 | wxPyEndAllowThreads(__tstate); | |
37694 | if (PyErr_Occurred()) SWIG_fail; | |
37695 | } | |
37696 | resultobj = SWIG_Py_Void(); | |
37697 | { | |
37698 | if (temp2) | |
37699 | delete arg2; | |
37700 | } | |
37701 | return resultobj; | |
37702 | fail: | |
37703 | { | |
37704 | if (temp2) | |
37705 | delete arg2; | |
37706 | } | |
37707 | return NULL; | |
37708 | } | |
37709 | ||
37710 | ||
37711 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37712 | PyObject *resultobj = 0; | |
37713 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37714 | int arg2 ; | |
37715 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37716 | int arg4 = (int) 0 ; | |
37717 | int arg5 = (int) 0 ; | |
37718 | void *argp1 = 0 ; | |
37719 | int res1 = 0 ; | |
37720 | int val4 ; | |
37721 | int ecode4 = 0 ; | |
37722 | int val5 ; | |
37723 | int ecode5 = 0 ; | |
37724 | PyObject * obj0 = 0 ; | |
37725 | PyObject * obj1 = 0 ; | |
37726 | PyObject * obj2 = 0 ; | |
37727 | PyObject * obj3 = 0 ; | |
37728 | char * kwnames[] = { | |
37729 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
37730 | }; | |
37731 | ||
37732 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37733 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37734 | if (!SWIG_IsOK(res1)) { | |
37735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37736 | } | |
37737 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37738 | { | |
37739 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37740 | if (arg3 == NULL) SWIG_fail; | |
37741 | } | |
37742 | if (obj2) { | |
37743 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37744 | if (!SWIG_IsOK(ecode4)) { | |
37745 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
37746 | } | |
37747 | arg4 = static_cast< int >(val4); | |
37748 | } | |
37749 | if (obj3) { | |
37750 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37751 | if (!SWIG_IsOK(ecode5)) { | |
37752 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
37753 | } | |
37754 | arg5 = static_cast< int >(val5); | |
37755 | } | |
37756 | { | |
37757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37758 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
37759 | wxPyEndAllowThreads(__tstate); | |
37760 | if (PyErr_Occurred()) SWIG_fail; | |
37761 | } | |
37762 | resultobj = SWIG_Py_Void(); | |
37763 | { | |
37764 | if (arg3) delete [] arg3; | |
37765 | } | |
37766 | return resultobj; | |
37767 | fail: | |
37768 | { | |
37769 | if (arg3) delete [] arg3; | |
37770 | } | |
37771 | return NULL; | |
37772 | } | |
37773 | ||
37774 | ||
37775 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37776 | PyObject *resultobj = 0; | |
37777 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37778 | int arg2 ; | |
37779 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37780 | int arg4 = (int) 0 ; | |
37781 | int arg5 = (int) 0 ; | |
37782 | int arg6 = (int) wxODDEVEN_RULE ; | |
37783 | void *argp1 = 0 ; | |
37784 | int res1 = 0 ; | |
37785 | int val4 ; | |
37786 | int ecode4 = 0 ; | |
37787 | int val5 ; | |
37788 | int ecode5 = 0 ; | |
37789 | int val6 ; | |
37790 | int ecode6 = 0 ; | |
37791 | PyObject * obj0 = 0 ; | |
37792 | PyObject * obj1 = 0 ; | |
37793 | PyObject * obj2 = 0 ; | |
37794 | PyObject * obj3 = 0 ; | |
37795 | PyObject * obj4 = 0 ; | |
37796 | char * kwnames[] = { | |
37797 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
37798 | }; | |
37799 | ||
37800 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37801 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37802 | if (!SWIG_IsOK(res1)) { | |
37803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37804 | } | |
37805 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37806 | { | |
37807 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37808 | if (arg3 == NULL) SWIG_fail; | |
37809 | } | |
37810 | if (obj2) { | |
37811 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37812 | if (!SWIG_IsOK(ecode4)) { | |
37813 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
37814 | } | |
37815 | arg4 = static_cast< int >(val4); | |
37816 | } | |
37817 | if (obj3) { | |
37818 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37819 | if (!SWIG_IsOK(ecode5)) { | |
37820 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
37821 | } | |
37822 | arg5 = static_cast< int >(val5); | |
37823 | } | |
37824 | if (obj4) { | |
37825 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
37826 | if (!SWIG_IsOK(ecode6)) { | |
37827 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
37828 | } | |
37829 | arg6 = static_cast< int >(val6); | |
37830 | } | |
37831 | { | |
37832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37833 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
37834 | wxPyEndAllowThreads(__tstate); | |
37835 | if (PyErr_Occurred()) SWIG_fail; | |
37836 | } | |
37837 | resultobj = SWIG_Py_Void(); | |
37838 | { | |
37839 | if (arg3) delete [] arg3; | |
37840 | } | |
37841 | return resultobj; | |
37842 | fail: | |
37843 | { | |
37844 | if (arg3) delete [] arg3; | |
37845 | } | |
37846 | return NULL; | |
37847 | } | |
37848 | ||
37849 | ||
37850 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37851 | PyObject *resultobj = 0; | |
37852 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37853 | wxString *arg2 = 0 ; | |
37854 | wxRect *arg3 = 0 ; | |
37855 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37856 | int arg5 = (int) -1 ; | |
37857 | void *argp1 = 0 ; | |
37858 | int res1 = 0 ; | |
37859 | bool temp2 = false ; | |
37860 | wxRect temp3 ; | |
37861 | int val4 ; | |
37862 | int ecode4 = 0 ; | |
37863 | int val5 ; | |
37864 | int ecode5 = 0 ; | |
37865 | PyObject * obj0 = 0 ; | |
37866 | PyObject * obj1 = 0 ; | |
37867 | PyObject * obj2 = 0 ; | |
37868 | PyObject * obj3 = 0 ; | |
37869 | PyObject * obj4 = 0 ; | |
37870 | char * kwnames[] = { | |
37871 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37872 | }; | |
37873 | ||
37874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37876 | if (!SWIG_IsOK(res1)) { | |
37877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37878 | } | |
37879 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37880 | { | |
37881 | arg2 = wxString_in_helper(obj1); | |
37882 | if (arg2 == NULL) SWIG_fail; | |
37883 | temp2 = true; | |
37884 | } | |
37885 | { | |
37886 | arg3 = &temp3; | |
37887 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
37888 | } | |
37889 | if (obj3) { | |
37890 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37891 | if (!SWIG_IsOK(ecode4)) { | |
37892 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
37893 | } | |
37894 | arg4 = static_cast< int >(val4); | |
37895 | } | |
37896 | if (obj4) { | |
37897 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37898 | if (!SWIG_IsOK(ecode5)) { | |
37899 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
37900 | } | |
37901 | arg5 = static_cast< int >(val5); | |
37902 | } | |
37903 | { | |
37904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37905 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
37906 | wxPyEndAllowThreads(__tstate); | |
37907 | if (PyErr_Occurred()) SWIG_fail; | |
37908 | } | |
37909 | resultobj = SWIG_Py_Void(); | |
37910 | { | |
37911 | if (temp2) | |
37912 | delete arg2; | |
37913 | } | |
37914 | return resultobj; | |
37915 | fail: | |
37916 | { | |
37917 | if (temp2) | |
37918 | delete arg2; | |
37919 | } | |
37920 | return NULL; | |
37921 | } | |
37922 | ||
37923 | ||
37924 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37925 | PyObject *resultobj = 0; | |
37926 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37927 | wxString *arg2 = 0 ; | |
37928 | wxBitmap *arg3 = 0 ; | |
37929 | wxRect *arg4 = 0 ; | |
37930 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37931 | int arg6 = (int) -1 ; | |
37932 | void *argp1 = 0 ; | |
37933 | int res1 = 0 ; | |
37934 | bool temp2 = false ; | |
37935 | void *argp3 = 0 ; | |
37936 | int res3 = 0 ; | |
37937 | wxRect temp4 ; | |
37938 | int val5 ; | |
37939 | int ecode5 = 0 ; | |
37940 | int val6 ; | |
37941 | int ecode6 = 0 ; | |
37942 | PyObject * obj0 = 0 ; | |
37943 | PyObject * obj1 = 0 ; | |
37944 | PyObject * obj2 = 0 ; | |
37945 | PyObject * obj3 = 0 ; | |
37946 | PyObject * obj4 = 0 ; | |
37947 | PyObject * obj5 = 0 ; | |
37948 | char * kwnames[] = { | |
37949 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37950 | }; | |
37951 | ||
37952 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37953 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37954 | if (!SWIG_IsOK(res1)) { | |
37955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37956 | } | |
37957 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37958 | { | |
37959 | arg2 = wxString_in_helper(obj1); | |
37960 | if (arg2 == NULL) SWIG_fail; | |
37961 | temp2 = true; | |
37962 | } | |
37963 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37964 | if (!SWIG_IsOK(res3)) { | |
37965 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37966 | } | |
37967 | if (!argp3) { | |
37968 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37969 | } | |
37970 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
37971 | { | |
37972 | arg4 = &temp4; | |
37973 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
37974 | } | |
37975 | if (obj4) { | |
37976 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37977 | if (!SWIG_IsOK(ecode5)) { | |
37978 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
37979 | } | |
37980 | arg5 = static_cast< int >(val5); | |
37981 | } | |
37982 | if (obj5) { | |
37983 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
37984 | if (!SWIG_IsOK(ecode6)) { | |
37985 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
37986 | } | |
37987 | arg6 = static_cast< int >(val6); | |
37988 | } | |
37989 | { | |
37990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37991 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
37992 | wxPyEndAllowThreads(__tstate); | |
37993 | if (PyErr_Occurred()) SWIG_fail; | |
37994 | } | |
37995 | resultobj = SWIG_Py_Void(); | |
37996 | { | |
37997 | if (temp2) | |
37998 | delete arg2; | |
37999 | } | |
38000 | return resultobj; | |
38001 | fail: | |
38002 | { | |
38003 | if (temp2) | |
38004 | delete arg2; | |
38005 | } | |
38006 | return NULL; | |
38007 | } | |
38008 | ||
38009 | ||
38010 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38011 | PyObject *resultobj = 0; | |
38012 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38013 | int arg2 ; | |
38014 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38015 | void *argp1 = 0 ; | |
38016 | int res1 = 0 ; | |
38017 | PyObject * obj0 = 0 ; | |
38018 | PyObject * obj1 = 0 ; | |
38019 | char * kwnames[] = { | |
38020 | (char *) "self",(char *) "points", NULL | |
38021 | }; | |
38022 | ||
38023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
38024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38025 | if (!SWIG_IsOK(res1)) { | |
38026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38027 | } | |
38028 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38029 | { | |
38030 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38031 | if (arg3 == NULL) SWIG_fail; | |
38032 | } | |
38033 | { | |
38034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38035 | (arg1)->DrawSpline(arg2,arg3); | |
38036 | wxPyEndAllowThreads(__tstate); | |
38037 | if (PyErr_Occurred()) SWIG_fail; | |
38038 | } | |
38039 | resultobj = SWIG_Py_Void(); | |
38040 | { | |
38041 | if (arg3) delete [] arg3; | |
38042 | } | |
38043 | return resultobj; | |
38044 | fail: | |
38045 | { | |
38046 | if (arg3) delete [] arg3; | |
38047 | } | |
38048 | return NULL; | |
38049 | } | |
38050 | ||
38051 | ||
38052 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38053 | PyObject *resultobj = 0; | |
38054 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38055 | void *argp1 = 0 ; | |
38056 | int res1 = 0 ; | |
38057 | PyObject *swig_obj[1] ; | |
38058 | ||
38059 | if (!args) SWIG_fail; | |
38060 | swig_obj[0] = args; | |
38061 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38062 | if (!SWIG_IsOK(res1)) { | |
38063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38064 | } | |
38065 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38066 | { | |
38067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38068 | (arg1)->Clear(); | |
38069 | wxPyEndAllowThreads(__tstate); | |
38070 | if (PyErr_Occurred()) SWIG_fail; | |
38071 | } | |
38072 | resultobj = SWIG_Py_Void(); | |
38073 | return resultobj; | |
38074 | fail: | |
38075 | return NULL; | |
38076 | } | |
38077 | ||
38078 | ||
38079 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38080 | PyObject *resultobj = 0; | |
38081 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38082 | wxFont *arg2 = 0 ; | |
38083 | void *argp1 = 0 ; | |
38084 | int res1 = 0 ; | |
38085 | void *argp2 = 0 ; | |
38086 | int res2 = 0 ; | |
38087 | PyObject * obj0 = 0 ; | |
38088 | PyObject * obj1 = 0 ; | |
38089 | char * kwnames[] = { | |
38090 | (char *) "self",(char *) "font", NULL | |
38091 | }; | |
38092 | ||
38093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
38094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38095 | if (!SWIG_IsOK(res1)) { | |
38096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38097 | } | |
38098 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38099 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
38100 | if (!SWIG_IsOK(res2)) { | |
38101 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38102 | } | |
38103 | if (!argp2) { | |
38104 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38105 | } | |
38106 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
38107 | { | |
38108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38109 | (arg1)->SetFont((wxFont const &)*arg2); | |
38110 | wxPyEndAllowThreads(__tstate); | |
38111 | if (PyErr_Occurred()) SWIG_fail; | |
38112 | } | |
38113 | resultobj = SWIG_Py_Void(); | |
38114 | return resultobj; | |
38115 | fail: | |
38116 | return NULL; | |
38117 | } | |
38118 | ||
38119 | ||
38120 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38121 | PyObject *resultobj = 0; | |
38122 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38123 | wxPen *arg2 = 0 ; | |
38124 | void *argp1 = 0 ; | |
38125 | int res1 = 0 ; | |
38126 | void *argp2 = 0 ; | |
38127 | int res2 = 0 ; | |
38128 | PyObject * obj0 = 0 ; | |
38129 | PyObject * obj1 = 0 ; | |
38130 | char * kwnames[] = { | |
38131 | (char *) "self",(char *) "pen", NULL | |
38132 | }; | |
38133 | ||
38134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
38135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38136 | if (!SWIG_IsOK(res1)) { | |
38137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38138 | } | |
38139 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38140 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
38141 | if (!SWIG_IsOK(res2)) { | |
38142 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38143 | } | |
38144 | if (!argp2) { | |
38145 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38146 | } | |
38147 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
38148 | { | |
38149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38150 | (arg1)->SetPen((wxPen const &)*arg2); | |
38151 | wxPyEndAllowThreads(__tstate); | |
38152 | if (PyErr_Occurred()) SWIG_fail; | |
38153 | } | |
38154 | resultobj = SWIG_Py_Void(); | |
38155 | return resultobj; | |
38156 | fail: | |
38157 | return NULL; | |
38158 | } | |
38159 | ||
38160 | ||
38161 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38162 | PyObject *resultobj = 0; | |
38163 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38164 | wxBrush *arg2 = 0 ; | |
38165 | void *argp1 = 0 ; | |
38166 | int res1 = 0 ; | |
38167 | void *argp2 = 0 ; | |
38168 | int res2 = 0 ; | |
38169 | PyObject * obj0 = 0 ; | |
38170 | PyObject * obj1 = 0 ; | |
38171 | char * kwnames[] = { | |
38172 | (char *) "self",(char *) "brush", NULL | |
38173 | }; | |
38174 | ||
38175 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
38176 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38177 | if (!SWIG_IsOK(res1)) { | |
38178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38179 | } | |
38180 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38181 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38182 | if (!SWIG_IsOK(res2)) { | |
38183 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38184 | } | |
38185 | if (!argp2) { | |
38186 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38187 | } | |
38188 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38189 | { | |
38190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38191 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
38192 | wxPyEndAllowThreads(__tstate); | |
38193 | if (PyErr_Occurred()) SWIG_fail; | |
38194 | } | |
38195 | resultobj = SWIG_Py_Void(); | |
38196 | return resultobj; | |
38197 | fail: | |
38198 | return NULL; | |
38199 | } | |
38200 | ||
38201 | ||
38202 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38203 | PyObject *resultobj = 0; | |
38204 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38205 | wxBrush *arg2 = 0 ; | |
38206 | void *argp1 = 0 ; | |
38207 | int res1 = 0 ; | |
38208 | void *argp2 = 0 ; | |
38209 | int res2 = 0 ; | |
38210 | PyObject * obj0 = 0 ; | |
38211 | PyObject * obj1 = 0 ; | |
38212 | char * kwnames[] = { | |
38213 | (char *) "self",(char *) "brush", NULL | |
38214 | }; | |
38215 | ||
38216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38218 | if (!SWIG_IsOK(res1)) { | |
38219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38220 | } | |
38221 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38222 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38223 | if (!SWIG_IsOK(res2)) { | |
38224 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38225 | } | |
38226 | if (!argp2) { | |
38227 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38228 | } | |
38229 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38230 | { | |
38231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38232 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
38233 | wxPyEndAllowThreads(__tstate); | |
38234 | if (PyErr_Occurred()) SWIG_fail; | |
38235 | } | |
38236 | resultobj = SWIG_Py_Void(); | |
38237 | return resultobj; | |
38238 | fail: | |
38239 | return NULL; | |
38240 | } | |
38241 | ||
38242 | ||
38243 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38244 | PyObject *resultobj = 0; | |
38245 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38246 | int arg2 ; | |
38247 | void *argp1 = 0 ; | |
38248 | int res1 = 0 ; | |
38249 | int val2 ; | |
38250 | int ecode2 = 0 ; | |
38251 | PyObject * obj0 = 0 ; | |
38252 | PyObject * obj1 = 0 ; | |
38253 | char * kwnames[] = { | |
38254 | (char *) "self",(char *) "mode", NULL | |
38255 | }; | |
38256 | ||
38257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
38258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38259 | if (!SWIG_IsOK(res1)) { | |
38260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38261 | } | |
38262 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38263 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38264 | if (!SWIG_IsOK(ecode2)) { | |
38265 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
38266 | } | |
38267 | arg2 = static_cast< int >(val2); | |
38268 | { | |
38269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38270 | (arg1)->SetBackgroundMode(arg2); | |
38271 | wxPyEndAllowThreads(__tstate); | |
38272 | if (PyErr_Occurred()) SWIG_fail; | |
38273 | } | |
38274 | resultobj = SWIG_Py_Void(); | |
38275 | return resultobj; | |
38276 | fail: | |
38277 | return NULL; | |
38278 | } | |
38279 | ||
38280 | ||
38281 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38282 | PyObject *resultobj = 0; | |
38283 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38284 | wxPalette *arg2 = 0 ; | |
38285 | void *argp1 = 0 ; | |
38286 | int res1 = 0 ; | |
38287 | void *argp2 = 0 ; | |
38288 | int res2 = 0 ; | |
38289 | PyObject * obj0 = 0 ; | |
38290 | PyObject * obj1 = 0 ; | |
38291 | char * kwnames[] = { | |
38292 | (char *) "self",(char *) "palette", NULL | |
38293 | }; | |
38294 | ||
38295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
38296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38297 | if (!SWIG_IsOK(res1)) { | |
38298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38299 | } | |
38300 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38301 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
38302 | if (!SWIG_IsOK(res2)) { | |
38303 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
38304 | } | |
38305 | if (!argp2) { | |
38306 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
38307 | } | |
38308 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
38309 | { | |
38310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38311 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
38312 | wxPyEndAllowThreads(__tstate); | |
38313 | if (PyErr_Occurred()) SWIG_fail; | |
38314 | } | |
38315 | resultobj = SWIG_Py_Void(); | |
38316 | return resultobj; | |
38317 | fail: | |
38318 | return NULL; | |
38319 | } | |
38320 | ||
38321 | ||
38322 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38323 | PyObject *resultobj = 0; | |
38324 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38325 | wxColour *arg2 = 0 ; | |
38326 | void *argp1 = 0 ; | |
38327 | int res1 = 0 ; | |
38328 | wxColour temp2 ; | |
38329 | PyObject * obj0 = 0 ; | |
38330 | PyObject * obj1 = 0 ; | |
38331 | char * kwnames[] = { | |
38332 | (char *) "self",(char *) "colour", NULL | |
38333 | }; | |
38334 | ||
38335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38337 | if (!SWIG_IsOK(res1)) { | |
38338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38339 | } | |
38340 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38341 | { | |
38342 | arg2 = &temp2; | |
38343 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
38344 | } | |
38345 | { | |
38346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38347 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
38348 | wxPyEndAllowThreads(__tstate); | |
38349 | if (PyErr_Occurred()) SWIG_fail; | |
38350 | } | |
38351 | resultobj = SWIG_Py_Void(); | |
38352 | return resultobj; | |
38353 | fail: | |
38354 | return NULL; | |
38355 | } | |
38356 | ||
38357 | ||
38358 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38359 | PyObject *resultobj = 0; | |
38360 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38361 | wxColour *arg2 = 0 ; | |
38362 | void *argp1 = 0 ; | |
38363 | int res1 = 0 ; | |
38364 | wxColour temp2 ; | |
38365 | PyObject * obj0 = 0 ; | |
38366 | PyObject * obj1 = 0 ; | |
38367 | char * kwnames[] = { | |
38368 | (char *) "self",(char *) "colour", NULL | |
38369 | }; | |
38370 | ||
38371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38373 | if (!SWIG_IsOK(res1)) { | |
38374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38375 | } | |
38376 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38377 | { | |
38378 | arg2 = &temp2; | |
38379 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
38380 | } | |
38381 | { | |
38382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38383 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
38384 | wxPyEndAllowThreads(__tstate); | |
38385 | if (PyErr_Occurred()) SWIG_fail; | |
38386 | } | |
38387 | resultobj = SWIG_Py_Void(); | |
38388 | return resultobj; | |
38389 | fail: | |
38390 | return NULL; | |
38391 | } | |
38392 | ||
38393 | ||
38394 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38395 | PyObject *resultobj = 0; | |
38396 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38397 | int arg2 ; | |
38398 | void *argp1 = 0 ; | |
38399 | int res1 = 0 ; | |
38400 | int val2 ; | |
38401 | int ecode2 = 0 ; | |
38402 | PyObject * obj0 = 0 ; | |
38403 | PyObject * obj1 = 0 ; | |
38404 | char * kwnames[] = { | |
38405 | (char *) "self",(char *) "function", NULL | |
38406 | }; | |
38407 | ||
38408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
38409 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38410 | if (!SWIG_IsOK(res1)) { | |
38411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38412 | } | |
38413 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38414 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38415 | if (!SWIG_IsOK(ecode2)) { | |
38416 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
38417 | } | |
38418 | arg2 = static_cast< int >(val2); | |
38419 | { | |
38420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38421 | (arg1)->SetLogicalFunction(arg2); | |
38422 | wxPyEndAllowThreads(__tstate); | |
38423 | if (PyErr_Occurred()) SWIG_fail; | |
38424 | } | |
38425 | resultobj = SWIG_Py_Void(); | |
38426 | return resultobj; | |
38427 | fail: | |
38428 | return NULL; | |
38429 | } | |
38430 | ||
38431 | ||
38432 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38433 | PyObject *obj; | |
38434 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38435 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
38436 | return SWIG_Py_Void(); | |
38437 | } | |
38438 | ||
38439 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38440 | return SWIG_Python_InitShadowInstance(args); | |
38441 | } | |
38442 | ||
38443 | static PyMethodDef SwigMethods[] = { | |
38444 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
38445 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
38446 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
38447 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
38448 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
38449 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38450 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38451 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38452 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
38453 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
38454 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
38455 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 38456 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 38457 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
38458 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
38459 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38460 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38461 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38462 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
38463 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38464 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 38465 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38466 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
38467 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
38468 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
38469 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38470 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
38471 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38472 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38473 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 38474 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
38475 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
38476 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
38477 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38478 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
38479 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
38480 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
38481 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
38482 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
38483 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 38484 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
38485 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
38486 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38487 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38488 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38489 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38490 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38491 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
38492 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38493 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
38494 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38495 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38496 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
38497 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
38498 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38499 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38500 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
38501 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38502 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38503 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38504 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
38505 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
38506 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
38507 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 38508 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
38509 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
38510 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
38511 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38512 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
38513 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38514 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38515 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38516 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38517 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38518 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
38519 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
38520 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
38521 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
38522 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
38523 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
38524 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
38525 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38526 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38527 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38528 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38529 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38530 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
38531 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38532 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38533 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38534 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38535 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 RD |
38536 | { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
38537 | { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
38538 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38539 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38540 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
38541 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38542 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
38543 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38544 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38545 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
38546 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
38547 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
38548 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
38549 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
38550 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
38551 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
38552 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
38553 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
38554 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
38555 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
38556 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
38557 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
38558 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
38559 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
38560 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38561 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
38562 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
38563 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38564 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38565 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38566 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38567 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38568 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
38569 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38570 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
38571 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
38572 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
38573 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
38574 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
38575 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
38576 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
38577 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
38578 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
38579 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
38580 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38581 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
38582 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
38583 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38584 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38585 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38586 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38587 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38588 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
38589 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38590 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
38591 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
38592 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
38593 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
38594 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
38595 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38596 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
38597 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
38598 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38599 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38600 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38601 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38602 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
38603 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
38604 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
38605 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
38606 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38607 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38608 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38609 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38610 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
38611 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
38612 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38613 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
38614 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
38615 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38616 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
38617 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38618 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
38619 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
38620 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
38621 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
38622 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38623 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38624 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
38625 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38626 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38627 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38628 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
38629 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
38630 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38631 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
38632 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38633 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38634 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
38635 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, |
38636 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
38637 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38638 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38639 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38640 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38641 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
38642 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
38643 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38644 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38645 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38646 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38647 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38648 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
38649 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38650 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38651 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38652 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 38653 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38654 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
38655 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38656 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38657 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38658 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38659 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38660 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38661 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38662 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38663 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
38664 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38665 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38666 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
38667 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
38668 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38669 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
38670 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
38671 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
38672 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
38673 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
38674 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
38675 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
38676 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
38677 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
38678 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
38679 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
38680 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
38681 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
38682 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
38683 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
38684 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
38685 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
38686 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38687 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
38688 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
38689 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
38690 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
38691 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
38692 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
38693 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
38694 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38695 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38696 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38697 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38698 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38699 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38700 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38701 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38702 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
38703 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
38704 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38705 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
38706 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
38707 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
38708 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
38709 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
38710 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
38711 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
38712 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
38713 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
38714 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38715 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
38716 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
38717 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
38718 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38719 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38720 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
38721 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
38722 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
38723 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38724 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38725 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
38726 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38727 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38728 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38729 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38730 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38731 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
38732 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38733 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38734 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38735 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38736 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
38737 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
38738 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38739 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
38740 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38741 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38742 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38743 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38744 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38745 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
27e45892 | 38746 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38747 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38748 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
38749 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
38750 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
38751 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
38752 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
38753 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
38754 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
38755 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
38756 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
38757 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
38758 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
38759 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
38760 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
38761 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38762 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38763 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38764 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38765 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38766 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38767 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38768 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38769 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38770 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38771 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38772 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
38773 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
38774 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
38775 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38776 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
38777 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
38778 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38779 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
38780 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
38781 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
38782 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
38783 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38784 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38785 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
38786 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
38787 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
38788 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38789 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
38790 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
38791 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
38792 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
38793 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
38794 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
38795 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
38796 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
38797 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
38798 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38799 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
38800 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38801 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38802 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
38803 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
38804 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
38805 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
38806 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
38807 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
38808 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
38809 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
38810 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38811 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 38812 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38813 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
38814 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38815 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38816 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38817 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38818 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38819 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
38820 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
38821 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38822 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
38823 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
38824 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38825 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38826 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38827 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
38828 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38829 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
38830 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
38831 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
38832 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
38833 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38834 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38835 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38836 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38837 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38838 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
38839 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
38840 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
38841 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38842 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38843 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38844 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38845 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38846 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38847 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38848 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38849 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38850 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38851 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38852 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38853 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38854 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38855 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38856 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38857 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38858 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38859 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38860 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38861 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38862 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38863 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38864 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38865 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38866 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38867 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38868 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38869 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38870 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38871 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38872 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38873 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38874 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38875 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38876 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38877 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38878 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38879 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 38880 | { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38881 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
38882 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38883 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38884 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38885 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38886 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38887 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38888 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38889 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38890 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
38891 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38892 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
38893 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
38894 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
38895 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38896 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38897 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38898 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38899 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38900 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38901 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
38902 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
38903 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
38904 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
38905 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
38906 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38907 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38908 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38909 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38910 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
38911 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
38912 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
38913 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
38914 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38915 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38916 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38917 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38918 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38919 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38920 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38921 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38922 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
38923 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
38924 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
38925 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 38926 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
0085ce49 RD |
38927 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
38928 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
38929 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
38930 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
38931 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
38932 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
38933 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
38934 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38935 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38936 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
38937 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38938 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
38939 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38940 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
38941 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38942 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
38943 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
38944 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38945 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38946 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
38947 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
38948 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38949 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38950 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38951 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
38952 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38953 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
38954 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38955 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38956 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
38957 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
38958 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
38959 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
38960 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
38961 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
38962 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
38963 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38964 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, |
38965 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38966 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38967 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38968 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38969 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38970 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
38971 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
38972 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
38973 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
38974 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
38975 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38976 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
38977 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
38978 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
38979 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38980 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
38981 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
38982 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
38983 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
38984 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
38985 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
38986 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38987 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
38988 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38989 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38990 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
38991 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
38992 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
38993 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38994 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
38995 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38996 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38997 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
38998 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
38999 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39000 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
39001 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26c4d26f RD |
39002 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39003 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39004 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39005 | { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39006 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
39007 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
39008 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
39009 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
39010 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
b6df5cf9 RD |
39011 | { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
39012 | { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL}, | |
24f6c4e8 RD |
39013 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, |
39014 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
39015 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39016 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39017 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
39018 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39019 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39020 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 39021 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
39022 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39023 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
39024 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
39025 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39026 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
39027 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39028 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39029 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
39030 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
39031 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
39032 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39033 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
39034 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
39035 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39036 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
39037 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
39038 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39039 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
39040 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
70d7cb34 RD |
39041 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
39042 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
39043 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
39044 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
39045 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
39046 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
39047 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
39048 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
39049 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
39050 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
39051 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
39052 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
39053 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
39054 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
39055 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
39056 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
39057 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
39058 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
8f514ab4 | 39059 | { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL}, |
5c8c7dd3 RD |
39060 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
39061 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 | 39062 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
248802d0 | 39063 | { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL}, |
5c8c7dd3 RD |
39064 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, |
39065 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39066 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
39067 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39068 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39069 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39070 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39071 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39072 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
39073 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
8f514ab4 RD |
39074 | { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL}, |
39075 | { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL}, | |
72ef6efb | 39076 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
39077 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
39078 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
39079 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
39080 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39081 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
39082 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 39083 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
39084 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
39085 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39086 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39087 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
39088 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
39089 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39090 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
39091 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39092 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39093 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
39094 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb | 39095 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
8f514ab4 | 39096 | { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL}, |
72ef6efb | 39097 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, |
0a27f394 | 39098 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
f89238b9 | 39099 | { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL}, |
0a27f394 | 39100 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 | 39101 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39102 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
39103 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
39104 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39105 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39106 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39107 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39108 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39109 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
39110 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 39111 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39112 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
39113 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
39114 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
c8aaaf9e RD |
39115 | { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL}, |
39116 | { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39117 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
39118 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39119 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
39120 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
39121 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39122 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
39123 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
39124 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
39125 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
39126 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
39127 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39128 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
39129 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
39130 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 39131 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39132 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
39133 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39134 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39135 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39136 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39137 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 39138 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39139 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
39140 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39141 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39142 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 39143 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 39144 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
39145 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
39146 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
39147 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
f89238b9 | 39148 | { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL}, |
70d7cb34 RD |
39149 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, |
39150 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39151 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
39152 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39153 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39154 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39155 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39156 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39157 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39158 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
48a0c021 | 39159 | { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL}, |
72ef6efb | 39160 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, |
0a27f394 RD |
39161 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
39162 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39163 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
39164 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
39165 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
39166 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
39167 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
39168 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
39169 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
39170 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
39171 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
39172 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
39173 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
39174 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39175 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
39176 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
39177 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39178 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39179 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39180 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39181 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39182 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39183 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39184 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
39185 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39186 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
39187 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39188 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
39189 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39190 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
39191 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
39192 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
39193 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
39194 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39195 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39196 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39197 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39198 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39199 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
39200 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
39201 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
39202 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
39203 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
39204 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
0085ce49 | 39205 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 39206 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39207 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39208 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 39209 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 39210 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39211 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39212 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
39213 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
39214 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39215 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39216 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
39217 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
39218 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
39219 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39220 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39221 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39222 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39223 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
39224 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39225 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
39226 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
39227 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
39228 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
0085ce49 RD |
39229 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
39230 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
39231 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
39232 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
39233 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
39234 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
39235 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39236 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39237 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39238 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39239 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39240 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39241 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39242 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39243 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
39244 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
39245 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39246 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
39247 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
39248 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
39249 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
39250 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
39251 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
39252 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
39253 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
39254 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
39255 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
39256 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
39257 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
39258 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
39259 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
39260 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
39261 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
39262 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
39263 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
39264 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
39265 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
39266 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
39267 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
39268 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
39269 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39270 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
39271 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
39272 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39273 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
39274 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
39275 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
39276 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
39277 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
39278 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
39279 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39280 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
39281 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39282 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39283 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39284 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
01f6b6d3 RD |
39285 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
39286 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39287 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39288 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
39289 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
39290 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
39291 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
39292 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39293 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
39294 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
39295 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
39296 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
39297 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
39298 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
39299 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
39300 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
39301 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39302 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39303 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39304 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39305 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
39306 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39307 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39308 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
39309 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39310 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39311 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39312 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39313 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39314 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39315 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39316 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39317 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39318 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39319 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39320 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39321 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39322 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39323 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39324 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39325 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39326 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39327 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39328 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39329 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39330 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39331 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39332 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39333 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39334 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39335 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39336 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39337 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39338 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39339 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39340 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39341 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39342 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39343 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39344 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39345 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39346 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39347 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39348 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39349 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39350 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39351 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39352 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39353 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
39354 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39355 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39356 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39357 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39358 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39359 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39360 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39361 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39362 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39363 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
39364 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39365 | { NULL, NULL, 0, NULL } |
39366 | }; | |
39367 | ||
39368 | ||
39369 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
39370 | ||
72ef6efb RD |
39371 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
39372 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
39373 | } | |
8e99bda9 RD |
39374 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
39375 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
39376 | } | |
39377 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
39378 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39379 | } | |
26c4d26f RD |
39380 | static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) { |
39381 | return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
39382 | } | |
39383 | static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) { | |
39384 | return (void *)((wxWindowDC *) ((wxMemoryDC *) x)); | |
39385 | } | |
72ef6efb RD |
39386 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
39387 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
39388 | } | |
39389 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
39390 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
39391 | } | |
26c4d26f RD |
39392 | static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) { |
39393 | return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39394 | } | |
fc46b7f3 RD |
39395 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
39396 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
39397 | } | |
70d7cb34 RD |
39398 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
39399 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39400 | } | |
39401 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
39402 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39403 | } | |
39404 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
39405 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39406 | } | |
39407 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
39408 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39409 | } | |
39410 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
39411 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39412 | } | |
39413 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
39414 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39415 | } | |
0085ce49 RD |
39416 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
39417 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
39418 | } | |
39419 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
39420 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
39421 | } | |
39422 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
39423 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
39424 | } | |
39425 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
39426 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
39427 | } | |
39428 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
39429 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
39430 | } | |
39431 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
39432 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
39433 | } | |
39434 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
39435 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
39436 | } | |
39437 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
39438 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
39439 | } | |
72ef6efb RD |
39440 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
39441 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
39442 | } | |
0085ce49 RD |
39443 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
39444 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
39445 | } | |
24f6c4e8 | 39446 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
26c4d26f | 39447 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
24f6c4e8 | 39448 | } |
0085ce49 RD |
39449 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
39450 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
39451 | } | |
0085ce49 RD |
39452 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { |
39453 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
39454 | } | |
26c4d26f RD |
39455 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { |
39456 | return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x)); | |
39457 | } | |
0085ce49 RD |
39458 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { |
39459 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
39460 | } | |
0085ce49 | 39461 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 39462 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
39463 | } |
39464 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 39465 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
0085ce49 | 39466 | } |
24f6c4e8 | 39467 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
26c4d26f | 39468 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
24f6c4e8 RD |
39469 | } |
39470 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
39471 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
39472 | } | |
0085ce49 RD |
39473 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
39474 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
39475 | } | |
39476 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
39477 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
39478 | } | |
50efceee RD |
39479 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
39480 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
39481 | } | |
39482 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
39483 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
39484 | } | |
39485 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
39486 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
39487 | } | |
0085ce49 RD |
39488 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
39489 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39490 | } | |
39491 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
39492 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
39493 | } | |
39494 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
39495 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
39496 | } | |
39497 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
39498 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
39499 | } | |
0085ce49 RD |
39500 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
39501 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
39502 | } | |
34e0a3bb RD |
39503 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
39504 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
39505 | } | |
0085ce49 RD |
39506 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
39507 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
39508 | } | |
39509 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
39510 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
39511 | } | |
39512 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
39513 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
39514 | } | |
39515 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
39516 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39517 | } | |
39518 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
39519 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
39520 | } | |
39521 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
39522 | return (void *)((wxObject *) ((wxSizer *) x)); | |
39523 | } | |
39524 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
39525 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
39526 | } | |
39527 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
39528 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
39529 | } | |
0085ce49 RD |
39530 | static void *_p_wxEventTo_p_wxObject(void *x) { |
39531 | return (void *)((wxObject *) ((wxEvent *) x)); | |
39532 | } | |
39533 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
39534 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
39535 | } | |
39536 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
39537 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
39538 | } | |
39539 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
39540 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
39541 | } | |
27e45892 RD |
39542 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
39543 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
39544 | } | |
2131d850 RD |
39545 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
39546 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
39547 | } | |
0085ce49 RD |
39548 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
39549 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
39550 | } | |
39551 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
39552 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
39553 | } | |
39554 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
39555 | return (void *)((wxObject *) ((wxDC *) x)); | |
39556 | } | |
39557 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
39558 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
39559 | } | |
39560 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
39561 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
39562 | } | |
39563 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
39564 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
39565 | } | |
39566 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
39567 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
39568 | } | |
39569 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
39570 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
39571 | } | |
70d7cb34 RD |
39572 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
39573 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39574 | } | |
0085ce49 RD |
39575 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
39576 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
39577 | } | |
39578 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 39579 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
39580 | } |
39581 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
39582 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
39583 | } | |
39584 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26c4d26f | 39585 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x)); |
0085ce49 RD |
39586 | } |
39587 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
39588 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
39589 | } | |
39590 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
39591 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
39592 | } | |
39593 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
39594 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
39595 | } | |
39596 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
39597 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
39598 | } | |
70d7cb34 RD |
39599 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
39600 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
39601 | } | |
39602 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
39603 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39604 | } | |
0085ce49 RD |
39605 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
39606 | return (void *)((wxObject *) ((wxEffects *) x)); | |
39607 | } | |
39608 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
39609 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
39610 | } | |
39611 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
39612 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
39613 | } | |
39614 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
39615 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
39616 | } | |
70d7cb34 RD |
39617 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
39618 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39619 | } | |
0085ce49 RD |
39620 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
39621 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
39622 | } | |
39623 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
39624 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
39625 | } | |
39626 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
39627 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
39628 | } | |
39629 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
39630 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
39631 | } | |
39632 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
39633 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
39634 | } | |
39635 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
39636 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
39637 | } | |
39638 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
39639 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
39640 | } | |
39641 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
39642 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
39643 | } | |
39644 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
39645 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
39646 | } | |
39647 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
39648 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
39649 | } | |
39650 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
39651 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
39652 | } | |
39653 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
39654 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
39655 | } | |
39656 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
39657 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
39658 | } | |
39659 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
39660 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
39661 | } | |
39662 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
39663 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
39664 | } | |
39665 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
39666 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
39667 | } | |
39668 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
39669 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
39670 | } | |
39671 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
39672 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
39673 | } | |
39674 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
39675 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
39676 | } | |
39677 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
39678 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
39679 | } | |
39680 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
39681 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
39682 | } | |
39683 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
39684 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
39685 | } | |
39686 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
39687 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
39688 | } | |
39689 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
39690 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
39691 | } | |
580080c5 RD |
39692 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
39693 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
39694 | } | |
0085ce49 RD |
39695 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
39696 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
39697 | } | |
34e0a3bb RD |
39698 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
39699 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
39700 | } | |
24f6c4e8 RD |
39701 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
39702 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
39703 | } | |
0085ce49 | 39704 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
26c4d26f | 39705 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
0085ce49 | 39706 | } |
24f6c4e8 RD |
39707 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
39708 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
0085ce49 RD |
39709 | } |
39710 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
39711 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
39712 | } | |
39713 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
39714 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
39715 | } | |
0085ce49 RD |
39716 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
39717 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
39718 | } | |
580080c5 RD |
39719 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
39720 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
39721 | } | |
0085ce49 RD |
39722 | static void *_p_wxImageTo_p_wxObject(void *x) { |
39723 | return (void *)((wxObject *) ((wxImage *) x)); | |
39724 | } | |
39725 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
39726 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
39727 | } | |
70d7cb34 RD |
39728 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
39729 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39730 | } | |
39731 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
39732 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
39733 | } | |
0085ce49 RD |
39734 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
39735 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
39736 | } | |
39737 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26c4d26f | 39738 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
0085ce49 RD |
39739 | } |
39740 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
39741 | return (void *)((wxObject *) ((wxImageList *) x)); | |
39742 | } | |
72ef6efb RD |
39743 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
39744 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
39745 | } | |
0085ce49 RD |
39746 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
39747 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
39748 | } | |
39749 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
39750 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
39751 | } | |
39752 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
39753 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
39754 | } | |
70d7cb34 RD |
39755 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
39756 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39757 | } | |
0085ce49 RD |
39758 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
39759 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
39760 | } | |
39761 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
39762 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
39763 | } | |
39764 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
39765 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
39766 | } | |
39767 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
39768 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
39769 | } | |
39770 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
39771 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
39772 | } | |
39773 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
39774 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
39775 | } | |
39776 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
39777 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
39778 | } | |
0085ce49 RD |
39779 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
39780 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
39781 | } | |
39782 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
39783 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
39784 | } | |
39785 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
39786 | return (void *)((wxObject *) ((wxMask *) x)); | |
39787 | } | |
70d7cb34 RD |
39788 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
39789 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39790 | } | |
0085ce49 RD |
39791 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
39792 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
39793 | } | |
39794 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
39795 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
39796 | } | |
39797 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
39798 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
39799 | } | |
39800 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
39801 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
39802 | } | |
39803 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
39804 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
39805 | } | |
39806 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
39807 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
39808 | } | |
39809 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
39810 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
39811 | } | |
39812 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
39813 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
39814 | } | |
39815 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
39816 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
39817 | } | |
39818 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
39819 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
39820 | } | |
39821 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
39822 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
39823 | } | |
39824 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
39825 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
39826 | } | |
39827 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
39828 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
39829 | } | |
39830 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
39831 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
39832 | } | |
39833 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
39834 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
39835 | } | |
39836 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
39837 | return (void *)((wxObject *) ((wxColour *) x)); | |
39838 | } | |
0085ce49 RD |
39839 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
39840 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
39841 | } | |
39842 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
39843 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
39844 | } | |
39845 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
39846 | return (void *)((wxWindow *) ((wxControl *) x)); | |
39847 | } | |
39848 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
39849 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
39850 | } | |
39851 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
39852 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
39853 | } | |
fc46b7f3 RD |
39854 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
39855 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
39856 | } | |
39857 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
39858 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
39859 | } | |
39860 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
0085ce49 | 39861 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 39862 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39863 | 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}; |
39864 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
39865 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
39866 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
39867 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 39868 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
39869 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
39870 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 39871 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39872 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
39873 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
39874 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
39875 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
39876 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 39877 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39878 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
39879 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
39880 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
39881 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
39882 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
39883 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
39884 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 39885 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39886 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
39887 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39888 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
39889 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
39890 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
39891 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
39892 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
39893 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
39894 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39895 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 39896 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 39897 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39898 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 39899 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39900 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
39901 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
39902 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39903 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39904 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
39905 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 39906 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39907 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
39908 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
39909 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
39910 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
39911 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
39912 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
39913 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
39914 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
39915 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
39916 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
39917 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
39918 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
39919 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
39920 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
39921 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
39922 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39923 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
39924 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 39925 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 39926 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39927 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
39928 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
39929 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
39930 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
39931 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
39932 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
39933 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
39934 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
39935 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
39936 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
39937 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
39938 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 39939 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39940 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
39941 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
39942 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
39943 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
39944 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
39945 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
39946 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
39947 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
39948 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
39949 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
39950 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
39951 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
39952 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
39953 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
39954 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
39955 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
39956 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
39957 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
39958 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
39959 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
39960 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
39961 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
39962 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
0085ce49 | 39963 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
580080c5 | 39964 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
39965 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
39966 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
39967 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
39968 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
39969 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
39970 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 39971 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 39972 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 39973 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 39974 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39975 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
39976 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
39977 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
34e0a3bb | 39978 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 | 39979 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 39980 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39981 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; |
39982 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
39983 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
39984 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
39985 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
39986 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
39987 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
39988 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
39989 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
39990 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
39991 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
39992 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
39993 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
39994 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
39995 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
39996 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
39997 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
39998 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
39999 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
40000 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 40001 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40002 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
40003 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
40004 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
40005 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
40006 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40007 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 40008 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 40009 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40010 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
40011 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
40012 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 40013 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
0085ce49 | 40014 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 40015 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
0085ce49 | 40016 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
4fe9ce47 | 40017 | static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40018 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
40019 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
40020 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
40021 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
40022 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
40023 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
40024 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 40025 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40026 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
40027 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
40028 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
40029 | ||
40030 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 40031 | &_swigt__p_buffer, |
0085ce49 RD |
40032 | &_swigt__p_char, |
40033 | &_swigt__p_double, | |
40034 | &_swigt__p_form_ops_t, | |
40035 | &_swigt__p_int, | |
40036 | &_swigt__p_unsigned_char, | |
40037 | &_swigt__p_unsigned_int, | |
40038 | &_swigt__p_unsigned_long, | |
0a27f394 | 40039 | &_swigt__p_void, |
0085ce49 RD |
40040 | &_swigt__p_wxANIHandler, |
40041 | &_swigt__p_wxAcceleratorTable, | |
40042 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
40043 | &_swigt__p_wxAlphaPixelData, |
40044 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40045 | &_swigt__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
40046 | &_swigt__p_wxBMPHandler, |
40047 | &_swigt__p_wxBitmap, | |
40048 | &_swigt__p_wxBoxSizer, | |
40049 | &_swigt__p_wxBrush, | |
40050 | &_swigt__p_wxBrushList, | |
40051 | &_swigt__p_wxBufferedDC, | |
40052 | &_swigt__p_wxBufferedPaintDC, | |
40053 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 40054 | &_swigt__p_wxChar, |
0085ce49 RD |
40055 | &_swigt__p_wxChildFocusEvent, |
40056 | &_swigt__p_wxClientDC, | |
2131d850 | 40057 | &_swigt__p_wxClipboardTextEvent, |
0085ce49 RD |
40058 | &_swigt__p_wxCloseEvent, |
40059 | &_swigt__p_wxColour, | |
40060 | &_swigt__p_wxColourDatabase, | |
40061 | &_swigt__p_wxCommandEvent, | |
40062 | &_swigt__p_wxContextMenuEvent, | |
40063 | &_swigt__p_wxControl, | |
40064 | &_swigt__p_wxControlWithItems, | |
40065 | &_swigt__p_wxCursor, | |
40066 | &_swigt__p_wxDC, | |
70d7cb34 RD |
40067 | &_swigt__p_wxDCBrushChanger, |
40068 | &_swigt__p_wxDCClipper, | |
b39fe951 | 40069 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
40070 | &_swigt__p_wxDCPenChanger, |
40071 | &_swigt__p_wxDCTextColourChanger, | |
0085ce49 RD |
40072 | &_swigt__p_wxDash, |
40073 | &_swigt__p_wxDateEvent, | |
40074 | &_swigt__p_wxDisplayChangedEvent, | |
40075 | &_swigt__p_wxDropFilesEvent, | |
40076 | &_swigt__p_wxDuplexMode, | |
40077 | &_swigt__p_wxEffects, | |
40078 | &_swigt__p_wxEncodingConverter, | |
40079 | &_swigt__p_wxEraseEvent, | |
40080 | &_swigt__p_wxEvent, | |
40081 | &_swigt__p_wxEvtHandler, | |
40082 | &_swigt__p_wxFSFile, | |
40083 | &_swigt__p_wxFileSystem, | |
40084 | &_swigt__p_wxFlexGridSizer, | |
40085 | &_swigt__p_wxFocusEvent, | |
40086 | &_swigt__p_wxFont, | |
40087 | &_swigt__p_wxFontList, | |
40088 | &_swigt__p_wxFontMapper, | |
40089 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 40090 | &_swigt__p_wxGCDC, |
50efceee | 40091 | &_swigt__p_wxGDIObjListBase, |
0085ce49 RD |
40092 | &_swigt__p_wxGDIObject, |
40093 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 40094 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 40095 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
40096 | &_swigt__p_wxGraphicsFont, |
40097 | &_swigt__p_wxGraphicsMatrix, | |
40098 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 40099 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
40100 | &_swigt__p_wxGraphicsPen, |
40101 | &_swigt__p_wxGraphicsRenderer, | |
0085ce49 RD |
40102 | &_swigt__p_wxGridBagSizer, |
40103 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 40104 | &_swigt__p_wxHeaderButtonParams, |
0085ce49 RD |
40105 | &_swigt__p_wxICOHandler, |
40106 | &_swigt__p_wxIcon, | |
40107 | &_swigt__p_wxIconBundle, | |
40108 | &_swigt__p_wxIconLocation, | |
40109 | &_swigt__p_wxIconizeEvent, | |
40110 | &_swigt__p_wxIdleEvent, | |
40111 | &_swigt__p_wxImage, | |
40112 | &_swigt__p_wxImageHandler, | |
40113 | &_swigt__p_wxImageList, | |
40114 | &_swigt__p_wxIndividualLayoutConstraint, | |
40115 | &_swigt__p_wxInitDialogEvent, | |
40116 | &_swigt__p_wxJPEGHandler, | |
40117 | &_swigt__p_wxKeyEvent, | |
40118 | &_swigt__p_wxLanguageInfo, | |
40119 | &_swigt__p_wxLayoutConstraints, | |
40120 | &_swigt__p_wxLocale, | |
40121 | &_swigt__p_wxMask, | |
40122 | &_swigt__p_wxMaximizeEvent, | |
40123 | &_swigt__p_wxMemoryDC, | |
40124 | &_swigt__p_wxMenu, | |
40125 | &_swigt__p_wxMenuBar, | |
40126 | &_swigt__p_wxMenuEvent, | |
40127 | &_swigt__p_wxMenuItem, | |
40128 | &_swigt__p_wxMetaFile, | |
40129 | &_swigt__p_wxMetaFileDC, | |
40130 | &_swigt__p_wxMirrorDC, | |
40131 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 40132 | &_swigt__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
40133 | &_swigt__p_wxMouseEvent, |
40134 | &_swigt__p_wxMoveEvent, | |
40135 | &_swigt__p_wxNativeEncodingInfo, | |
40136 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40137 | &_swigt__p_wxNativePixelData, |
40138 | &_swigt__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
40139 | &_swigt__p_wxNavigationKeyEvent, |
40140 | &_swigt__p_wxNcPaintEvent, | |
40141 | &_swigt__p_wxNotifyEvent, | |
40142 | &_swigt__p_wxObject, | |
b39fe951 | 40143 | &_swigt__p_wxOverlay, |
0085ce49 RD |
40144 | &_swigt__p_wxPCXHandler, |
40145 | &_swigt__p_wxPNGHandler, | |
40146 | &_swigt__p_wxPNMHandler, | |
40147 | &_swigt__p_wxPaintDC, | |
40148 | &_swigt__p_wxPaintEvent, | |
40149 | &_swigt__p_wxPalette, | |
40150 | &_swigt__p_wxPaletteChangedEvent, | |
40151 | &_swigt__p_wxPaperSize, | |
40152 | &_swigt__p_wxPen, | |
40153 | &_swigt__p_wxPenList, | |
fc46b7f3 | 40154 | &_swigt__p_wxPixelDataBase, |
0085ce49 | 40155 | &_swigt__p_wxPoint, |
72ef6efb | 40156 | &_swigt__p_wxPoint2D, |
0085ce49 RD |
40157 | &_swigt__p_wxPostScriptDC, |
40158 | &_swigt__p_wxPrintData, | |
40159 | &_swigt__p_wxPrinterDC, | |
27e45892 | 40160 | &_swigt__p_wxPseudoDC, |
0085ce49 RD |
40161 | &_swigt__p_wxPyApp, |
40162 | &_swigt__p_wxPyCommandEvent, | |
40163 | &_swigt__p_wxPyEvent, | |
40164 | &_swigt__p_wxPyFontEnumerator, | |
40165 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 40166 | &_swigt__p_wxPyLocale, |
0085ce49 RD |
40167 | &_swigt__p_wxPySizer, |
40168 | &_swigt__p_wxPyValidator, | |
40169 | &_swigt__p_wxQueryNewPaletteEvent, | |
40170 | &_swigt__p_wxRect, | |
4fe9ce47 | 40171 | &_swigt__p_wxRect2D, |
0085ce49 RD |
40172 | &_swigt__p_wxRegion, |
40173 | &_swigt__p_wxRegionIterator, | |
40174 | &_swigt__p_wxRendererNative, | |
40175 | &_swigt__p_wxRendererVersion, | |
40176 | &_swigt__p_wxScreenDC, | |
40177 | &_swigt__p_wxScrollEvent, | |
40178 | &_swigt__p_wxScrollWinEvent, | |
40179 | &_swigt__p_wxSetCursorEvent, | |
40180 | &_swigt__p_wxShowEvent, | |
40181 | &_swigt__p_wxSize, | |
40182 | &_swigt__p_wxSizeEvent, | |
40183 | &_swigt__p_wxSizer, | |
40184 | &_swigt__p_wxSizerItem, | |
40185 | &_swigt__p_wxSplitterRenderParams, | |
40186 | &_swigt__p_wxStaticBoxSizer, | |
40187 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 40188 | &_swigt__p_wxStockGDI, |
0085ce49 RD |
40189 | &_swigt__p_wxString, |
40190 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 40191 | &_swigt__p_wxTGAHandler, |
0085ce49 RD |
40192 | &_swigt__p_wxTIFFHandler, |
40193 | &_swigt__p_wxUpdateUIEvent, | |
40194 | &_swigt__p_wxValidator, | |
40195 | &_swigt__p_wxWindow, | |
40196 | &_swigt__p_wxWindowCreateEvent, | |
40197 | &_swigt__p_wxWindowDC, | |
40198 | &_swigt__p_wxWindowDestroyEvent, | |
40199 | &_swigt__p_wxXPMHandler, | |
40200 | }; | |
40201 | ||
fc46b7f3 | 40202 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40203 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
40204 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
40205 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
40206 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40207 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
40208 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40209 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 40210 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
40211 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40212 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40213 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40214 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
40215 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
40216 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
40217 | 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}}; | |
40218 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40219 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40220 | 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}}; |
0085ce49 RD |
40221 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
40222 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
40223 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40224 | 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 |
40225 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40226 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 40227 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40228 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40229 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
40230 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
40231 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
40232 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
40233 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
40234 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
40235 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
40236 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 40237 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 40238 | 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 | 40239 | 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 | 40240 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40241 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40242 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
40243 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
40244 | 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 | 40245 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40246 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
40247 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 40248 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40249 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
40250 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
40251 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
40252 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
40253 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
40254 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40255 | 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 | 40256 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 40257 | 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 |
40258 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
40259 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40260 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40261 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
40262 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
40263 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40264 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 40265 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40266 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 40267 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40268 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40269 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
40270 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40271 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40272 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40273 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40274 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40275 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
40276 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40277 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40278 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40279 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 40280 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40281 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40282 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40283 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40284 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40285 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40286 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40287 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
40288 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40289 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
40290 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40291 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40292 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40293 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40294 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
40295 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40296 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40297 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40298 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40299 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40300 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40301 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40302 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40303 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 40304 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 40305 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40306 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
40307 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40308 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40309 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40310 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40311 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40312 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40313 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 40314 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 40315 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40316 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
40317 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40318 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 40319 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40320 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 40321 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40322 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40323 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40324 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40325 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40326 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
40327 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
40328 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40329 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40330 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
40331 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40332 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40333 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40334 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40335 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40336 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40337 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40338 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40339 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
40340 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
40341 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 40342 | 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 | 40343 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40344 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
40345 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
40346 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
40347 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
40348 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40349 | 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 | 40350 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40351 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40352 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
40353 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
40354 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 40355 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40356 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 40357 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40358 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
4fe9ce47 | 40359 | static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40360 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
40361 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
40362 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
40363 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
40364 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40365 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
40366 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 40367 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40368 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
40369 | 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 | 40370 | 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 |
40371 | |
40372 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 40373 | _swigc__p_buffer, |
0085ce49 RD |
40374 | _swigc__p_char, |
40375 | _swigc__p_double, | |
40376 | _swigc__p_form_ops_t, | |
40377 | _swigc__p_int, | |
40378 | _swigc__p_unsigned_char, | |
40379 | _swigc__p_unsigned_int, | |
40380 | _swigc__p_unsigned_long, | |
0a27f394 | 40381 | _swigc__p_void, |
0085ce49 RD |
40382 | _swigc__p_wxANIHandler, |
40383 | _swigc__p_wxAcceleratorTable, | |
40384 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
40385 | _swigc__p_wxAlphaPixelData, |
40386 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40387 | _swigc__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
40388 | _swigc__p_wxBMPHandler, |
40389 | _swigc__p_wxBitmap, | |
40390 | _swigc__p_wxBoxSizer, | |
40391 | _swigc__p_wxBrush, | |
40392 | _swigc__p_wxBrushList, | |
40393 | _swigc__p_wxBufferedDC, | |
40394 | _swigc__p_wxBufferedPaintDC, | |
40395 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 40396 | _swigc__p_wxChar, |
0085ce49 RD |
40397 | _swigc__p_wxChildFocusEvent, |
40398 | _swigc__p_wxClientDC, | |
2131d850 | 40399 | _swigc__p_wxClipboardTextEvent, |
0085ce49 RD |
40400 | _swigc__p_wxCloseEvent, |
40401 | _swigc__p_wxColour, | |
40402 | _swigc__p_wxColourDatabase, | |
40403 | _swigc__p_wxCommandEvent, | |
40404 | _swigc__p_wxContextMenuEvent, | |
40405 | _swigc__p_wxControl, | |
40406 | _swigc__p_wxControlWithItems, | |
40407 | _swigc__p_wxCursor, | |
40408 | _swigc__p_wxDC, | |
70d7cb34 RD |
40409 | _swigc__p_wxDCBrushChanger, |
40410 | _swigc__p_wxDCClipper, | |
b39fe951 | 40411 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
40412 | _swigc__p_wxDCPenChanger, |
40413 | _swigc__p_wxDCTextColourChanger, | |
0085ce49 RD |
40414 | _swigc__p_wxDash, |
40415 | _swigc__p_wxDateEvent, | |
40416 | _swigc__p_wxDisplayChangedEvent, | |
40417 | _swigc__p_wxDropFilesEvent, | |
40418 | _swigc__p_wxDuplexMode, | |
40419 | _swigc__p_wxEffects, | |
40420 | _swigc__p_wxEncodingConverter, | |
40421 | _swigc__p_wxEraseEvent, | |
40422 | _swigc__p_wxEvent, | |
40423 | _swigc__p_wxEvtHandler, | |
40424 | _swigc__p_wxFSFile, | |
40425 | _swigc__p_wxFileSystem, | |
40426 | _swigc__p_wxFlexGridSizer, | |
40427 | _swigc__p_wxFocusEvent, | |
40428 | _swigc__p_wxFont, | |
40429 | _swigc__p_wxFontList, | |
40430 | _swigc__p_wxFontMapper, | |
40431 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 40432 | _swigc__p_wxGCDC, |
50efceee | 40433 | _swigc__p_wxGDIObjListBase, |
0085ce49 RD |
40434 | _swigc__p_wxGDIObject, |
40435 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 40436 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 40437 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
40438 | _swigc__p_wxGraphicsFont, |
40439 | _swigc__p_wxGraphicsMatrix, | |
40440 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 40441 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
40442 | _swigc__p_wxGraphicsPen, |
40443 | _swigc__p_wxGraphicsRenderer, | |
0085ce49 RD |
40444 | _swigc__p_wxGridBagSizer, |
40445 | _swigc__p_wxGridSizer, | |
33d6fd3b | 40446 | _swigc__p_wxHeaderButtonParams, |
0085ce49 RD |
40447 | _swigc__p_wxICOHandler, |
40448 | _swigc__p_wxIcon, | |
40449 | _swigc__p_wxIconBundle, | |
40450 | _swigc__p_wxIconLocation, | |
40451 | _swigc__p_wxIconizeEvent, | |
40452 | _swigc__p_wxIdleEvent, | |
40453 | _swigc__p_wxImage, | |
40454 | _swigc__p_wxImageHandler, | |
40455 | _swigc__p_wxImageList, | |
40456 | _swigc__p_wxIndividualLayoutConstraint, | |
40457 | _swigc__p_wxInitDialogEvent, | |
40458 | _swigc__p_wxJPEGHandler, | |
40459 | _swigc__p_wxKeyEvent, | |
40460 | _swigc__p_wxLanguageInfo, | |
40461 | _swigc__p_wxLayoutConstraints, | |
40462 | _swigc__p_wxLocale, | |
40463 | _swigc__p_wxMask, | |
40464 | _swigc__p_wxMaximizeEvent, | |
40465 | _swigc__p_wxMemoryDC, | |
40466 | _swigc__p_wxMenu, | |
40467 | _swigc__p_wxMenuBar, | |
40468 | _swigc__p_wxMenuEvent, | |
40469 | _swigc__p_wxMenuItem, | |
40470 | _swigc__p_wxMetaFile, | |
40471 | _swigc__p_wxMetaFileDC, | |
40472 | _swigc__p_wxMirrorDC, | |
40473 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 40474 | _swigc__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
40475 | _swigc__p_wxMouseEvent, |
40476 | _swigc__p_wxMoveEvent, | |
40477 | _swigc__p_wxNativeEncodingInfo, | |
40478 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40479 | _swigc__p_wxNativePixelData, |
40480 | _swigc__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
40481 | _swigc__p_wxNavigationKeyEvent, |
40482 | _swigc__p_wxNcPaintEvent, | |
40483 | _swigc__p_wxNotifyEvent, | |
40484 | _swigc__p_wxObject, | |
b39fe951 | 40485 | _swigc__p_wxOverlay, |
0085ce49 RD |
40486 | _swigc__p_wxPCXHandler, |
40487 | _swigc__p_wxPNGHandler, | |
40488 | _swigc__p_wxPNMHandler, | |
40489 | _swigc__p_wxPaintDC, | |
40490 | _swigc__p_wxPaintEvent, | |
40491 | _swigc__p_wxPalette, | |
40492 | _swigc__p_wxPaletteChangedEvent, | |
40493 | _swigc__p_wxPaperSize, | |
40494 | _swigc__p_wxPen, | |
40495 | _swigc__p_wxPenList, | |
fc46b7f3 | 40496 | _swigc__p_wxPixelDataBase, |
0085ce49 | 40497 | _swigc__p_wxPoint, |
72ef6efb | 40498 | _swigc__p_wxPoint2D, |
0085ce49 RD |
40499 | _swigc__p_wxPostScriptDC, |
40500 | _swigc__p_wxPrintData, | |
40501 | _swigc__p_wxPrinterDC, | |
27e45892 | 40502 | _swigc__p_wxPseudoDC, |
0085ce49 RD |
40503 | _swigc__p_wxPyApp, |
40504 | _swigc__p_wxPyCommandEvent, | |
40505 | _swigc__p_wxPyEvent, | |
40506 | _swigc__p_wxPyFontEnumerator, | |
40507 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 40508 | _swigc__p_wxPyLocale, |
0085ce49 RD |
40509 | _swigc__p_wxPySizer, |
40510 | _swigc__p_wxPyValidator, | |
40511 | _swigc__p_wxQueryNewPaletteEvent, | |
40512 | _swigc__p_wxRect, | |
4fe9ce47 | 40513 | _swigc__p_wxRect2D, |
0085ce49 RD |
40514 | _swigc__p_wxRegion, |
40515 | _swigc__p_wxRegionIterator, | |
40516 | _swigc__p_wxRendererNative, | |
40517 | _swigc__p_wxRendererVersion, | |
40518 | _swigc__p_wxScreenDC, | |
40519 | _swigc__p_wxScrollEvent, | |
40520 | _swigc__p_wxScrollWinEvent, | |
40521 | _swigc__p_wxSetCursorEvent, | |
40522 | _swigc__p_wxShowEvent, | |
40523 | _swigc__p_wxSize, | |
40524 | _swigc__p_wxSizeEvent, | |
40525 | _swigc__p_wxSizer, | |
40526 | _swigc__p_wxSizerItem, | |
40527 | _swigc__p_wxSplitterRenderParams, | |
40528 | _swigc__p_wxStaticBoxSizer, | |
40529 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 40530 | _swigc__p_wxStockGDI, |
0085ce49 RD |
40531 | _swigc__p_wxString, |
40532 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 40533 | _swigc__p_wxTGAHandler, |
0085ce49 RD |
40534 | _swigc__p_wxTIFFHandler, |
40535 | _swigc__p_wxUpdateUIEvent, | |
40536 | _swigc__p_wxValidator, | |
40537 | _swigc__p_wxWindow, | |
40538 | _swigc__p_wxWindowCreateEvent, | |
40539 | _swigc__p_wxWindowDC, | |
40540 | _swigc__p_wxWindowDestroyEvent, | |
40541 | _swigc__p_wxXPMHandler, | |
40542 | }; | |
40543 | ||
40544 | ||
40545 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
40546 | ||
40547 | static swig_const_info swig_const_table[] = { | |
40548 | {0, 0, 0, 0.0, 0, 0}}; | |
40549 | ||
40550 | #ifdef __cplusplus | |
40551 | } | |
40552 | #endif | |
40553 | /* ----------------------------------------------------------------------------- | |
40554 | * Type initialization: | |
40555 | * This problem is tough by the requirement that no dynamic | |
40556 | * memory is used. Also, since swig_type_info structures store pointers to | |
40557 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
40558 | * to swig_type_info structures, we need some lookup code at initialization. | |
40559 | * The idea is that swig generates all the structures that are needed. | |
40560 | * The runtime then collects these partially filled structures. | |
40561 | * The SWIG_InitializeModule function takes these initial arrays out of | |
40562 | * swig_module, and does all the lookup, filling in the swig_module.types | |
40563 | * array with the correct data and linking the correct swig_cast_info | |
40564 | * structures together. | |
40565 | * | |
40566 | * The generated swig_type_info structures are assigned staticly to an initial | |
40567 | * array. We just loop though that array, and handle each type individually. | |
40568 | * First we lookup if this type has been already loaded, and if so, use the | |
40569 | * loaded structure instead of the generated one. Then we have to fill in the | |
40570 | * cast linked list. The cast data is initially stored in something like a | |
40571 | * two-dimensional array. Each row corresponds to a type (there are the same | |
40572 | * number of rows as there are in the swig_type_initial array). Each entry in | |
40573 | * a column is one of the swig_cast_info structures for that type. | |
40574 | * The cast_initial array is actually an array of arrays, because each row has | |
40575 | * a variable number of columns. So to actually build the cast linked list, | |
40576 | * we find the array of casts associated with the type, and loop through it | |
40577 | * adding the casts to the list. The one last trick we need to do is making | |
40578 | * sure the type pointer in the swig_cast_info struct is correct. | |
40579 | * | |
40580 | * First off, we lookup the cast->type name to see if it is already loaded. | |
40581 | * There are three cases to handle: | |
40582 | * 1) If the cast->type has already been loaded AND the type we are adding | |
40583 | * casting info to has not been loaded (it is in this module), THEN we | |
40584 | * replace the cast->type pointer with the type pointer that has already | |
40585 | * been loaded. | |
40586 | * 2) If BOTH types (the one we are adding casting info to, and the | |
40587 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
40588 | * the previous module so we just ignore it. | |
40589 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
40590 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
40591 | * be correct. | |
40592 | * ----------------------------------------------------------------------------- */ | |
40593 | ||
40594 | #ifdef __cplusplus | |
40595 | extern "C" { | |
40596 | #if 0 | |
40597 | } /* c-mode */ | |
40598 | #endif | |
40599 | #endif | |
40600 | ||
40601 | #if 0 | |
40602 | #define SWIGRUNTIME_DEBUG | |
40603 | #endif | |
40604 | ||
40605 | SWIGRUNTIME void | |
40606 | SWIG_InitializeModule(void *clientdata) { | |
40607 | size_t i; | |
40608 | swig_module_info *module_head; | |
40609 | static int init_run = 0; | |
40610 | ||
40611 | clientdata = clientdata; | |
40612 | ||
40613 | if (init_run) return; | |
40614 | init_run = 1; | |
40615 | ||
40616 | /* Initialize the swig_module */ | |
40617 | swig_module.type_initial = swig_type_initial; | |
40618 | swig_module.cast_initial = swig_cast_initial; | |
40619 | ||
40620 | /* Try and load any already created modules */ | |
40621 | module_head = SWIG_GetModule(clientdata); | |
40622 | if (module_head) { | |
40623 | swig_module.next = module_head->next; | |
40624 | module_head->next = &swig_module; | |
40625 | } else { | |
40626 | /* This is the first module loaded */ | |
40627 | swig_module.next = &swig_module; | |
40628 | SWIG_SetModule(clientdata, &swig_module); | |
40629 | } | |
40630 | ||
40631 | /* Now work on filling in swig_module.types */ | |
40632 | #ifdef SWIGRUNTIME_DEBUG | |
40633 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
40634 | #endif | |
40635 | for (i = 0; i < swig_module.size; ++i) { | |
40636 | swig_type_info *type = 0; | |
40637 | swig_type_info *ret; | |
40638 | swig_cast_info *cast; | |
40639 | ||
40640 | #ifdef SWIGRUNTIME_DEBUG | |
40641 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40642 | #endif | |
40643 | ||
40644 | /* if there is another module already loaded */ | |
40645 | if (swig_module.next != &swig_module) { | |
40646 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
8d38bd1d | 40647 | } |
0085ce49 RD |
40648 | if (type) { |
40649 | /* Overwrite clientdata field */ | |
40650 | #ifdef SWIGRUNTIME_DEBUG | |
40651 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
40652 | #endif | |
40653 | if (swig_module.type_initial[i]->clientdata) { | |
40654 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
40655 | #ifdef SWIGRUNTIME_DEBUG | |
40656 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
40657 | #endif | |
40658 | } | |
40659 | } else { | |
40660 | type = swig_module.type_initial[i]; | |
8d38bd1d | 40661 | } |
0085ce49 RD |
40662 | |
40663 | /* Insert casting types */ | |
40664 | cast = swig_module.cast_initial[i]; | |
40665 | while (cast->type) { | |
40666 | /* Don't need to add information already in the list */ | |
40667 | ret = 0; | |
40668 | #ifdef SWIGRUNTIME_DEBUG | |
40669 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
40670 | #endif | |
40671 | if (swig_module.next != &swig_module) { | |
40672 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
40673 | #ifdef SWIGRUNTIME_DEBUG | |
40674 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
40675 | #endif | |
40676 | } | |
40677 | if (ret) { | |
40678 | if (type == swig_module.type_initial[i]) { | |
40679 | #ifdef SWIGRUNTIME_DEBUG | |
40680 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
40681 | #endif | |
40682 | cast->type = ret; | |
40683 | ret = 0; | |
40684 | } else { | |
40685 | /* Check for casting already in the list */ | |
40686 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
40687 | #ifdef SWIGRUNTIME_DEBUG | |
40688 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
40689 | #endif | |
40690 | if (!ocast) ret = 0; | |
40691 | } | |
40692 | } | |
40693 | ||
40694 | if (!ret) { | |
40695 | #ifdef SWIGRUNTIME_DEBUG | |
40696 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
40697 | #endif | |
40698 | if (type->cast) { | |
40699 | type->cast->prev = cast; | |
40700 | cast->next = type->cast; | |
40701 | } | |
40702 | type->cast = cast; | |
40703 | } | |
40704 | cast++; | |
8d38bd1d | 40705 | } |
0085ce49 RD |
40706 | /* Set entry in modules->types array equal to the type */ |
40707 | swig_module.types[i] = type; | |
40708 | } | |
40709 | swig_module.types[i] = 0; | |
40710 | ||
40711 | #ifdef SWIGRUNTIME_DEBUG | |
40712 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40713 | for (i = 0; i < swig_module.size; ++i) { | |
40714 | int j = 0; | |
40715 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
40716 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40717 | while (cast->type) { | |
40718 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
40719 | cast++; | |
40720 | ++j; | |
40721 | } | |
40722 | printf("---- Total casts: %d\n",j); | |
40723 | } | |
40724 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40725 | #endif | |
40726 | } | |
40727 | ||
40728 | /* This function will propagate the clientdata field of type to | |
40729 | * any new swig_type_info structures that have been added into the list | |
40730 | * of equivalent types. It is like calling | |
40731 | * SWIG_TypeClientData(type, clientdata) a second time. | |
40732 | */ | |
40733 | SWIGRUNTIME void | |
40734 | SWIG_PropagateClientData(void) { | |
40735 | size_t i; | |
40736 | swig_cast_info *equiv; | |
40737 | static int init_run = 0; | |
40738 | ||
40739 | if (init_run) return; | |
40740 | init_run = 1; | |
40741 | ||
40742 | for (i = 0; i < swig_module.size; i++) { | |
40743 | if (swig_module.types[i]->clientdata) { | |
40744 | equiv = swig_module.types[i]->cast; | |
40745 | while (equiv) { | |
40746 | if (!equiv->converter) { | |
40747 | if (equiv->type && !equiv->type->clientdata) | |
40748 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
40749 | } | |
40750 | equiv = equiv->next; | |
40751 | } | |
8d38bd1d | 40752 | } |
0085ce49 RD |
40753 | } |
40754 | } | |
40755 | ||
40756 | #ifdef __cplusplus | |
40757 | #if 0 | |
40758 | { | |
40759 | /* c-mode */ | |
40760 | #endif | |
40761 | } | |
40762 | #endif | |
40763 | ||
40764 | ||
40765 | ||
40766 | #ifdef __cplusplus | |
40767 | extern "C" { | |
40768 | #endif | |
40769 | ||
40770 | /* Python-specific SWIG API */ | |
40771 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
40772 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
40773 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
40774 | ||
40775 | /* ----------------------------------------------------------------------------- | |
40776 | * global variable support code. | |
40777 | * ----------------------------------------------------------------------------- */ | |
40778 | ||
40779 | typedef struct swig_globalvar { | |
40780 | char *name; /* Name of global variable */ | |
40781 | PyObject *(*get_attr)(void); /* Return the current value */ | |
40782 | int (*set_attr)(PyObject *); /* Set the value */ | |
40783 | struct swig_globalvar *next; | |
40784 | } swig_globalvar; | |
40785 | ||
40786 | typedef struct swig_varlinkobject { | |
40787 | PyObject_HEAD | |
40788 | swig_globalvar *vars; | |
40789 | } swig_varlinkobject; | |
40790 | ||
40791 | SWIGINTERN PyObject * | |
40792 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
40793 | return PyString_FromString("<Swig global variables>"); | |
40794 | } | |
40795 | ||
40796 | SWIGINTERN PyObject * | |
40797 | swig_varlink_str(swig_varlinkobject *v) { | |
40798 | PyObject *str = PyString_FromString("("); | |
40799 | swig_globalvar *var; | |
40800 | for (var = v->vars; var; var=var->next) { | |
40801 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
40802 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
40803 | } | |
40804 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
40805 | return str; | |
40806 | } | |
40807 | ||
40808 | SWIGINTERN int | |
40809 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
40810 | PyObject *str = swig_varlink_str(v); | |
40811 | fprintf(fp,"Swig global variables "); | |
40812 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
40813 | Py_DECREF(str); | |
40814 | return 0; | |
40815 | } | |
40816 | ||
40817 | SWIGINTERN void | |
40818 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
40819 | swig_globalvar *var = v->vars; | |
40820 | while (var) { | |
40821 | swig_globalvar *n = var->next; | |
40822 | free(var->name); | |
40823 | free(var); | |
40824 | var = n; | |
8d38bd1d | 40825 | } |
0085ce49 RD |
40826 | } |
40827 | ||
40828 | SWIGINTERN PyObject * | |
40829 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
40830 | PyObject *res = NULL; | |
40831 | swig_globalvar *var = v->vars; | |
40832 | while (var) { | |
40833 | if (strcmp(var->name,n) == 0) { | |
40834 | res = (*var->get_attr)(); | |
40835 | break; | |
40836 | } | |
40837 | var = var->next; | |
8d38bd1d | 40838 | } |
0085ce49 RD |
40839 | if (res == NULL && !PyErr_Occurred()) { |
40840 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40841 | } |
0085ce49 RD |
40842 | return res; |
40843 | } | |
40844 | ||
40845 | SWIGINTERN int | |
40846 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
40847 | int res = 1; | |
40848 | swig_globalvar *var = v->vars; | |
40849 | while (var) { | |
40850 | if (strcmp(var->name,n) == 0) { | |
40851 | res = (*var->set_attr)(p); | |
40852 | break; | |
40853 | } | |
40854 | var = var->next; | |
8d38bd1d | 40855 | } |
0085ce49 RD |
40856 | if (res == 1 && !PyErr_Occurred()) { |
40857 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40858 | } |
0085ce49 RD |
40859 | return res; |
40860 | } | |
40861 | ||
40862 | SWIGINTERN PyTypeObject* | |
40863 | swig_varlink_type(void) { | |
40864 | static char varlink__doc__[] = "Swig var link object"; | |
40865 | static PyTypeObject varlink_type; | |
40866 | static int type_init = 0; | |
40867 | if (!type_init) { | |
40868 | const PyTypeObject tmp | |
40869 | = { | |
40870 | PyObject_HEAD_INIT(NULL) | |
40871 | 0, /* Number of items in variable part (ob_size) */ | |
40872 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
40873 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
40874 | 0, /* Itemsize (tp_itemsize) */ | |
40875 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
40876 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
40877 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
40878 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
40879 | 0, /* tp_compare */ | |
40880 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
40881 | 0, /* tp_as_number */ | |
40882 | 0, /* tp_as_sequence */ | |
40883 | 0, /* tp_as_mapping */ | |
40884 | 0, /* tp_hash */ | |
40885 | 0, /* tp_call */ | |
40886 | (reprfunc)swig_varlink_str, /* tp_str */ | |
40887 | 0, /* tp_getattro */ | |
40888 | 0, /* tp_setattro */ | |
40889 | 0, /* tp_as_buffer */ | |
40890 | 0, /* tp_flags */ | |
40891 | varlink__doc__, /* tp_doc */ | |
40892 | 0, /* tp_traverse */ | |
40893 | 0, /* tp_clear */ | |
40894 | 0, /* tp_richcompare */ | |
40895 | 0, /* tp_weaklistoffset */ | |
40896 | #if PY_VERSION_HEX >= 0x02020000 | |
40897 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
40898 | #endif | |
40899 | #if PY_VERSION_HEX >= 0x02030000 | |
40900 | 0, /* tp_del */ | |
40901 | #endif | |
40902 | #ifdef COUNT_ALLOCS | |
40903 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
40904 | #endif | |
40905 | }; | |
40906 | varlink_type = tmp; | |
40907 | varlink_type.ob_type = &PyType_Type; | |
40908 | type_init = 1; | |
8d38bd1d | 40909 | } |
0085ce49 RD |
40910 | return &varlink_type; |
40911 | } | |
40912 | ||
40913 | /* Create a variable linking object for use later */ | |
40914 | SWIGINTERN PyObject * | |
40915 | SWIG_Python_newvarlink(void) { | |
40916 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
40917 | if (result) { | |
40918 | result->vars = 0; | |
40919 | } | |
40920 | return ((PyObject*) result); | |
40921 | } | |
40922 | ||
40923 | SWIGINTERN void | |
40924 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
40925 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
40926 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
40927 | if (gv) { | |
40928 | size_t size = strlen(name)+1; | |
40929 | gv->name = (char *)malloc(size); | |
40930 | if (gv->name) { | |
40931 | strncpy(gv->name,name,size); | |
40932 | gv->get_attr = get_attr; | |
40933 | gv->set_attr = set_attr; | |
40934 | gv->next = v->vars; | |
40935 | } | |
8d38bd1d | 40936 | } |
0085ce49 RD |
40937 | v->vars = gv; |
40938 | } | |
40939 | ||
40940 | SWIGINTERN PyObject * | |
40941 | SWIG_globals() { | |
40942 | static PyObject *_SWIG_globals = 0; | |
40943 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
40944 | return _SWIG_globals; | |
40945 | } | |
40946 | ||
40947 | /* ----------------------------------------------------------------------------- | |
40948 | * constants/methods manipulation | |
40949 | * ----------------------------------------------------------------------------- */ | |
40950 | ||
40951 | /* Install Constants */ | |
40952 | SWIGINTERN void | |
40953 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
40954 | PyObject *obj = 0; | |
40955 | size_t i; | |
40956 | for (i = 0; constants[i].type; ++i) { | |
40957 | switch(constants[i].type) { | |
40958 | case SWIG_PY_POINTER: | |
40959 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
40960 | break; | |
40961 | case SWIG_PY_BINARY: | |
40962 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
40963 | break; | |
40964 | default: | |
40965 | obj = 0; | |
40966 | break; | |
40967 | } | |
40968 | if (obj) { | |
40969 | PyDict_SetItemString(d, constants[i].name, obj); | |
40970 | Py_DECREF(obj); | |
40971 | } | |
8d38bd1d | 40972 | } |
0085ce49 RD |
40973 | } |
40974 | ||
40975 | /* -----------------------------------------------------------------------------*/ | |
40976 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
40977 | /* -----------------------------------------------------------------------------*/ | |
40978 | ||
40979 | SWIGINTERN void | |
40980 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
40981 | swig_const_info *const_table, | |
40982 | swig_type_info **types, | |
40983 | swig_type_info **types_initial) { | |
40984 | size_t i; | |
40985 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 40986 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
40987 | if (c && (c = strstr(c, "swig_ptr: "))) { |
40988 | int j; | |
40989 | swig_const_info *ci = 0; | |
453fb36b | 40990 | const char *name = c + 10; |
0085ce49 RD |
40991 | for (j = 0; const_table[j].type; ++j) { |
40992 | if (strncmp(const_table[j].name, name, | |
40993 | strlen(const_table[j].name)) == 0) { | |
40994 | ci = &(const_table[j]); | |
40995 | break; | |
40996 | } | |
40997 | } | |
40998 | if (ci) { | |
40999 | size_t shift = (ci->ptype) - types; | |
41000 | swig_type_info *ty = types_initial[shift]; | |
41001 | size_t ldoc = (c - methods[i].ml_doc); | |
41002 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
41003 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
41004 | if (ndoc) { | |
41005 | char *buff = ndoc; | |
41006 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
41007 | if (ptr) { | |
41008 | strncpy(buff, methods[i].ml_doc, ldoc); | |
41009 | buff += ldoc; | |
41010 | strncpy(buff, "swig_ptr: ", 10); | |
41011 | buff += 10; | |
41012 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
41013 | methods[i].ml_doc = ndoc; | |
41014 | } | |
41015 | } | |
41016 | } | |
41017 | } | |
8d38bd1d | 41018 | } |
0085ce49 RD |
41019 | } |
41020 | ||
41021 | #ifdef __cplusplus | |
41022 | } | |
41023 | #endif | |
41024 | ||
41025 | /* -----------------------------------------------------------------------------* | |
41026 | * Partial Init method | |
41027 | * -----------------------------------------------------------------------------*/ | |
41028 | ||
41029 | #ifdef __cplusplus | |
41030 | extern "C" | |
41031 | #endif | |
41032 | SWIGEXPORT void SWIG_init(void) { | |
41033 | PyObject *m, *d; | |
41034 | ||
41035 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41036 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
41037 | ||
41038 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41039 | d = PyModule_GetDict(m); | |
41040 | ||
41041 | SWIG_InitializeModule(0); | |
41042 | SWIG_InstallConstants(d,swig_const_table); | |
41043 | ||
41044 | ||
01f6b6d3 RD |
41045 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
41046 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
41047 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
41048 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
41049 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
0085ce49 RD |
41050 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
41051 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
41052 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
41053 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
41054 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
41055 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
41056 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
41057 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
41058 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
41059 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
41060 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
41061 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
41062 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
41063 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
41064 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
41065 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
41066 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
41067 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
41068 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
41069 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
41070 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
41071 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
41072 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
41073 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
41074 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
41075 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
41076 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
41077 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
41078 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
41079 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
41080 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
41081 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
41082 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
41083 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
41084 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
41085 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
41086 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
41087 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
41088 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
41089 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
41090 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
41091 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
41092 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
41093 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
41094 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
41095 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
41096 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
41097 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
41098 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
41099 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
41100 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
41101 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
41102 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
41103 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
41104 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
41105 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
41106 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
41107 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
41108 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
41109 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
41110 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
41111 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
41112 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
41113 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
41114 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
41115 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
41116 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
41117 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
41118 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
41119 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
41120 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
41121 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
41122 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
41123 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
41124 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
41125 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
41126 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
41127 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
41128 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
41129 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
41130 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
41131 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
41132 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
41133 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
41134 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
41135 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
41136 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
41137 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
41138 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
41139 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
41140 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
41141 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
41142 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
41143 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
41144 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
41145 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
41146 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
41147 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
41148 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
41149 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
41150 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
41151 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
41152 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
41153 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
41154 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
41155 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
41156 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
41157 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
41158 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
41159 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
41160 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
41161 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
41162 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
41163 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
41164 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
41165 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
41166 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
41167 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
41168 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
41169 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
41170 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
41171 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
41172 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
41173 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
41174 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
41175 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
41176 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
41177 | ||
41178 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
41179 | ||
41180 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
41181 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
41182 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
41183 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
41184 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
41185 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
41186 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
41187 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
41188 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
41189 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
41190 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
41191 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
41192 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
41193 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
41194 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
41195 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
41196 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
41197 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
41198 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
41199 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
41200 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
41201 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
41202 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
41203 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
41204 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
41205 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
41206 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
41207 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
41208 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
41209 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
41210 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
41211 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
41212 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
41213 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
41214 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
41215 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
41216 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
41217 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
41218 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
41219 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
41220 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
41221 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
41222 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
41223 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
41224 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
41225 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
41226 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
41227 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
41228 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
41229 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
41230 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
41231 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
41232 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
41233 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
41234 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
41235 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
41236 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
41237 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
41238 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
41239 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
41240 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
41241 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
41242 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
41243 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
41244 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
41245 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
41246 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
41247 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
41248 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
41249 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
41250 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
41251 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
41252 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
41253 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
41254 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
41255 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
41256 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
41257 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
41258 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
41259 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
41260 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
41261 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
41262 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
41263 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
41264 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
41265 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
41266 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
41267 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
41268 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
41269 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
41270 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
41271 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
41272 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
41273 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
41274 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
41275 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
41276 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
41277 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
41278 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
41279 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
41280 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
41281 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
41282 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
41283 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
41284 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
41285 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
41286 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
41287 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
41288 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
41289 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
41290 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
41291 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
41292 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
41293 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
41294 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
41295 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
41296 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
41297 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
41298 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
41299 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
41300 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
41301 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
41302 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
41303 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
41304 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
41305 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
41306 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
41307 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
41308 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
41309 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
41310 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
41311 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
41312 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
41313 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
41314 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
41315 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
41316 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
41317 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
41318 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
41319 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
41320 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
41321 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
41322 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
41323 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
41324 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
41325 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
41326 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
41327 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
41328 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
41329 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
41330 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
41331 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
41332 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
41333 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
41334 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
41335 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
41336 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
41337 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
41338 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
41339 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
41340 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
41341 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
41342 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
41343 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
41344 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
41345 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
41346 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
41347 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
41348 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
41349 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
41350 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
41351 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
41352 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
41353 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
41354 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
41355 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
41356 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
41357 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
41358 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
41359 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
41360 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
41361 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
41362 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
41363 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
41364 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
41365 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
41366 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
41367 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
41368 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
41369 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
41370 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
41371 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
41372 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
41373 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
41374 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
41375 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
41376 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
41377 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
41378 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
41379 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
41380 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
41381 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
41382 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
41383 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
41384 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
41385 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
41386 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
41387 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
41388 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
41389 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
41390 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
41391 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
41392 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
41393 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
41394 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
41395 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
41396 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
41397 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
41398 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
41399 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
41400 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
41401 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
41402 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
41403 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
41404 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
41405 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
41406 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
41407 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
41408 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
41409 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
41410 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
41411 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
41412 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
41413 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
41414 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
41415 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
41416 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
41417 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
41418 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
41419 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
41420 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
41421 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
41422 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
41423 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
41424 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
41425 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
41426 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
41427 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
70d7cb34 RD |
41428 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
41429 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
41430 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
41431 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
41432 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
41433 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
0085ce49 RD |
41434 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
41435 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
41436 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
41437 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
41438 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
41439 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
41440 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
41441 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
41442 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
41443 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
41444 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
41445 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
41446 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
41447 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
41448 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
41449 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
41450 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
41451 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
41452 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
41453 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
41454 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
41455 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
41456 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
41457 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
41458 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
41459 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
41460 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
41461 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
41462 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
41463 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
41464 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
41465 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
41466 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
41467 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
41468 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
41469 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
41470 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
41471 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
41472 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
41473 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
41474 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
41475 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
0085ce49 RD |
41476 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
41477 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
41478 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
41479 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
41480 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
41481 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
41482 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
41483 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
0085ce49 RD |
41484 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
41485 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
41486 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 41487 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
0085ce49 RD |
41488 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
41489 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
41490 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 41491 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
0085ce49 RD |
41492 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
41493 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
41494 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
41495 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
41496 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
41497 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
41498 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
41499 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
41500 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
41501 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
0085ce49 RD |
41502 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
41503 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
41504 | ||
41505 | // Work around a chicken/egg problem in drawlist.cpp | |
41506 | wxPyDrawList_SetAPIPtr(); | |
41507 | ||
d14a1e28 RD |
41508 | } |
41509 |