]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
0085ce49 | 3 | * Version 1.3.29 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
0085ce49 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d14a1e28 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d14a1e28 RD |
28 | #endif |
29 | ||
0085ce49 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
0085ce49 | 33 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
0085ce49 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d14a1e28 | 47 | |
32fe5131 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
0085ce49 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
32fe5131 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
0085ce49 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
32fe5131 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
0085ce49 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
32fe5131 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
0085ce49 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
32fe5131 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
0085ce49 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
32fe5131 | 126 | |
c9c7117a | 127 | |
0085ce49 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d14a1e28 | 130 | |
0085ce49 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d14a1e28 | 133 | * |
0085ce49 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
32fe5131 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
166 | #endif |
167 | ||
0085ce49 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
32fe5131 RD |
309 | #include <string.h> |
310 | ||
d14a1e28 RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
32fe5131 | 318 | /* Structure to store inforomation on one type */ |
d14a1e28 | 319 | typedef struct swig_type_info { |
32fe5131 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
0085ce49 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d14a1e28 RD |
326 | } swig_type_info; |
327 | ||
32fe5131 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
0085ce49 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
32fe5131 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 388 | */ |
32fe5131 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
093d3ff1 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
32fe5131 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
32fe5131 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
0085ce49 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
32fe5131 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
0085ce49 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
32fe5131 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
093d3ff1 | 556 | } |
32fe5131 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
093d3ff1 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
0085ce49 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d14a1e28 | 682 | |
093d3ff1 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d14a1e28 RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
0085ce49 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d14a1e28 | 714 | |
0085ce49 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
0085ce49 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
0085ce49 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 803 | |
0085ce49 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d14a1e28 | 846 | |
0085ce49 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d14a1e28 | 936 | |
0085ce49 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
0085ce49 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
0085ce49 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d14a1e28 | 965 | |
994141e6 | 966 | #ifdef __cplusplus |
0085ce49 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
994141e6 | 972 | |
15afbcd0 | 973 | |
0085ce49 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
0085ce49 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
0085ce49 | 984 | * ----------------------------------------------------------------------------- */ |
15afbcd0 | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
994141e6 | 987 | |
d1a49b78 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
0085ce49 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
994141e6 | 1000 | |
0085ce49 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 1004 | |
0085ce49 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d14a1e28 | 1008 | |
0085ce49 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
994141e6 | 1012 | |
0085ce49 RD |
1013 | /* for C++ member pointers, ie, member methods */ |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1016 | |
c32bde28 | 1017 | |
0085ce49 | 1018 | /* Runtime API */ |
994141e6 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1023 | |
0085ce49 RD |
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
32fe5131 | 1029 | |
994141e6 | 1030 | |
0085ce49 | 1031 | /* Runtime API implementation */ |
c32bde28 | 1032 | |
0085ce49 | 1033 | /* Error manipulation */ |
c32bde28 | 1034 | |
0085ce49 RD |
1035 | SWIGINTERN void |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1041 | } |
15afbcd0 | 1042 | |
0085ce49 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1048 | } |
15afbcd0 | 1049 | |
0085ce49 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
0085ce49 | 1052 | /* Set a constant value */ |
c32bde28 | 1053 | |
0085ce49 RD |
1054 | SWIGINTERN void |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
15afbcd0 RD |
1058 | } |
1059 | ||
0085ce49 | 1060 | /* Append a value to the result obj */ |
69223c70 | 1061 | |
0085ce49 RD |
1062 | SWIGINTERN PyObject* |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
093d3ff1 | 1088 | } else { |
0085ce49 RD |
1089 | if (!PyTuple_Check(result)) { |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
15afbcd0 | 1100 | } |
0085ce49 RD |
1101 | return result; |
1102 | #endif | |
093d3ff1 | 1103 | } |
15afbcd0 | 1104 | |
0085ce49 | 1105 | /* Unpack the argument tuple */ |
15afbcd0 | 1106 | |
0085ce49 RD |
1107 | SWIGINTERN int |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1591 | (binaryfunc)0, /*nb_divmod*/ |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
0085ce49 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
0085ce49 RD |
1619 | const PyTypeObject tmp |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1632 | #endif |
0085ce49 RD |
1633 | (setattrfunc)0, /* tp_setattr */ |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1652 | 0, /* tp_iter */ |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1672 | #endif |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
0085ce49 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
0085ce49 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 | 1682 | type_init = 1; |
c32bde28 | 1683 | } |
32fe5131 | 1684 | return &pyswigobject_type; |
15afbcd0 RD |
1685 | } |
1686 | ||
093d3ff1 | 1687 | SWIGRUNTIME PyObject * |
0085ce49 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1689 | { |
0085ce49 RD |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
32fe5131 | 1696 | } |
0085ce49 | 1697 | return (PyObject *)sobj; |
15afbcd0 RD |
1698 | } |
1699 | ||
093d3ff1 RD |
1700 | /* ----------------------------------------------------------------------------- |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
1703 | ||
1704 | typedef struct { | |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
0085ce49 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
0085ce49 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
093d3ff1 RD |
1713 | { |
1714 | char result[SWIG_BUFFER_SIZE]; | |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
0085ce49 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
c32bde28 | 1724 | |
093d3ff1 RD |
1725 | SWIGRUNTIME PyObject * |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
15afbcd0 | 1727 | { |
093d3ff1 RD |
1728 | char result[SWIG_BUFFER_SIZE]; |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
0085ce49 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1733 | } |
c32bde28 RD |
1734 | } |
1735 | ||
093d3ff1 RD |
1736 | SWIGRUNTIME PyObject * |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
0085ce49 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
0085ce49 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
c32bde28 | 1746 | |
093d3ff1 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
c32bde28 | 1749 | { |
0085ce49 RD |
1750 | size_t i = v->size; |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
c32bde28 RD |
1754 | } |
1755 | ||
0085ce49 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
093d3ff1 RD |
1757 | |
1758 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1759 | PySwigPacked_type(void) { |
0085ce49 RD |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
0085ce49 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
0085ce49 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
093d3ff1 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
0085ce49 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
c32bde28 | 1852 | { |
0085ce49 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
093d3ff1 | 1865 | } |
0085ce49 | 1866 | return (PyObject *) sobj; |
994141e6 RD |
1867 | } |
1868 | ||
0085ce49 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
0085ce49 RD |
1872 | if (PySwigPacked_Check(obj)) { |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
093d3ff1 | 1880 | } |
15afbcd0 | 1881 | |
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1883 | * pointers/data manipulation |
093d3ff1 RD |
1884 | * ----------------------------------------------------------------------------- */ |
1885 | ||
0085ce49 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
093d3ff1 | 1891 | |
0085ce49 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
093d3ff1 | 1898 | |
0085ce49 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
093d3ff1 | 1900 | |
0085ce49 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
15afbcd0 | 1903 | { |
0085ce49 RD |
1904 | if (PySwigObject_Check(pyobj)) { |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
093d3ff1 | 1926 | } else { |
0085ce49 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
0085ce49 RD |
1931 | } |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
15afbcd0 | 1947 | } |
15afbcd0 RD |
1948 | } |
1949 | ||
0085ce49 RD |
1950 | /* Acquire a pointer value */ |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
093d3ff1 | 1961 | } |
0085ce49 | 1962 | return 0; |
994141e6 RD |
1963 | } |
1964 | ||
0085ce49 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
0085ce49 RD |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
093d3ff1 | 1992 | } else { |
0085ce49 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
0085ce49 RD |
1997 | if (sobj) { |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
093d3ff1 RD |
2042 | } |
2043 | } | |
994141e6 | 2044 | |
0085ce49 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
0085ce49 RD |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2051 | } else { |
0085ce49 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
d1a49b78 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
0085ce49 RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
093d3ff1 RD |
2069 | } |
2070 | } | |
d14a1e28 | 2071 | |
0085ce49 | 2072 | /* Convert a packed value value */ |
093d3ff1 | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
0085ce49 RD |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
7e63a440 | 2084 | } |
0085ce49 RD |
2085 | return SWIG_OK; |
2086 | } | |
d14a1e28 | 2087 | |
0085ce49 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
c32bde28 | 2091 | |
0085ce49 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d14a1e28 | 2096 | |
0085ce49 RD |
2097 | SWIGRUNTIME PyObject* |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
093d3ff1 | 2115 | } |
0085ce49 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
0085ce49 RD |
2121 | } else { |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
093d3ff1 | 2126 | } |
0085ce49 RD |
2127 | return inst; |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
093d3ff1 | 2140 | } |
0085ce49 RD |
2141 | inst->in_class = (PyClassObject *)data->newargs; |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
093d3ff1 | 2147 | } |
0085ce49 RD |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
093d3ff1 | 2158 | } |
d14a1e28 | 2159 | |
0085ce49 RD |
2160 | SWIGRUNTIME void |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
093d3ff1 | 2175 | #endif |
0085ce49 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d14a1e28 | 2180 | |
0085ce49 RD |
2181 | |
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2191 | } else { |
0085ce49 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
0085ce49 | 2194 | return SWIG_Py_Void(); |
15afbcd0 | 2195 | } |
0085ce49 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
0085ce49 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
0085ce49 RD |
2203 | return SWIG_Py_Void(); |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
093d3ff1 | 2213 | } |
093d3ff1 | 2214 | } |
0085ce49 | 2215 | return robj; |
093d3ff1 | 2216 | } |
c32bde28 RD |
2217 | } |
2218 | ||
0085ce49 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
994141e6 RD |
2224 | } |
2225 | ||
093d3ff1 RD |
2226 | /* -----------------------------------------------------------------------------* |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2236 | static void *type_pointer = (void *)0; |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
15afbcd0 | 2241 | #else |
093d3ff1 RD |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
15afbcd0 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2251 | } |
d14a1e28 | 2252 | |
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2256 | SWIGINTERN int |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
2269 | } |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
0085ce49 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
0085ce49 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
32fe5131 | 2283 | #endif |
d14a1e28 | 2284 | |
0085ce49 RD |
2285 | SWIGRUNTIME void |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
32fe5131 RD |
2301 | SWIGRUNTIME void |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
0085ce49 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
d14a1e28 | 2314 | |
0085ce49 RD |
2315 | /* The python cached type query */ |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
093d3ff1 | 2320 | } |
d14a1e28 | 2321 | |
0085ce49 RD |
2322 | SWIGRUNTIME swig_type_info * |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
fc46b7f3 RD |
2466 | #define SWIGTYPE_p_buffer swig_types[0] |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
2468 | #define SWIGTYPE_p_double swig_types[2] | |
2469 | #define SWIGTYPE_p_form_ops_t swig_types[3] | |
2470 | #define SWIGTYPE_p_int swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
2473 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
0a27f394 RD |
2474 | #define SWIGTYPE_p_void swig_types[8] |
2475 | #define SWIGTYPE_p_wxANIHandler swig_types[9] | |
2476 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[10] | |
2477 | #define SWIGTYPE_p_wxActivateEvent swig_types[11] | |
2478 | #define SWIGTYPE_p_wxAlphaPixelData swig_types[12] | |
2479 | #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13] | |
2480 | #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14] | |
2481 | #define SWIGTYPE_p_wxBMPHandler swig_types[15] | |
2482 | #define SWIGTYPE_p_wxBitmap swig_types[16] | |
2483 | #define SWIGTYPE_p_wxBoxSizer swig_types[17] | |
2484 | #define SWIGTYPE_p_wxBrush swig_types[18] | |
2485 | #define SWIGTYPE_p_wxBrushList swig_types[19] | |
2486 | #define SWIGTYPE_p_wxBufferedDC swig_types[20] | |
2487 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21] | |
2488 | #define SWIGTYPE_p_wxCURHandler swig_types[22] | |
2489 | #define SWIGTYPE_p_wxChar swig_types[23] | |
2490 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[24] | |
2491 | #define SWIGTYPE_p_wxClientDC swig_types[25] | |
2492 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26] | |
2493 | #define SWIGTYPE_p_wxCloseEvent swig_types[27] | |
2494 | #define SWIGTYPE_p_wxColor swig_types[28] | |
2495 | #define SWIGTYPE_p_wxColour swig_types[29] | |
2496 | #define SWIGTYPE_p_wxColourDatabase swig_types[30] | |
2497 | #define SWIGTYPE_p_wxCommandEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[32] | |
2499 | #define SWIGTYPE_p_wxControl swig_types[33] | |
2500 | #define SWIGTYPE_p_wxControlWithItems swig_types[34] | |
2501 | #define SWIGTYPE_p_wxCursor swig_types[35] | |
2502 | #define SWIGTYPE_p_wxDC swig_types[36] | |
70d7cb34 RD |
2503 | #define SWIGTYPE_p_wxDCBrushChanger swig_types[37] |
2504 | #define SWIGTYPE_p_wxDCClipper swig_types[38] | |
2505 | #define SWIGTYPE_p_wxDCOverlay swig_types[39] | |
2506 | #define SWIGTYPE_p_wxDCPenChanger swig_types[40] | |
2507 | #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41] | |
2508 | #define SWIGTYPE_p_wxDash swig_types[42] | |
2509 | #define SWIGTYPE_p_wxDateEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44] | |
2511 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[45] | |
2512 | #define SWIGTYPE_p_wxDuplexMode swig_types[46] | |
2513 | #define SWIGTYPE_p_wxEffects swig_types[47] | |
2514 | #define SWIGTYPE_p_wxEncodingConverter swig_types[48] | |
2515 | #define SWIGTYPE_p_wxEraseEvent swig_types[49] | |
2516 | #define SWIGTYPE_p_wxEvent swig_types[50] | |
2517 | #define SWIGTYPE_p_wxEvtHandler swig_types[51] | |
2518 | #define SWIGTYPE_p_wxFSFile swig_types[52] | |
2519 | #define SWIGTYPE_p_wxFileSystem swig_types[53] | |
2520 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[54] | |
2521 | #define SWIGTYPE_p_wxFocusEvent swig_types[55] | |
2522 | #define SWIGTYPE_p_wxFont swig_types[56] | |
2523 | #define SWIGTYPE_p_wxFontList swig_types[57] | |
2524 | #define SWIGTYPE_p_wxFontMapper swig_types[58] | |
2525 | #define SWIGTYPE_p_wxGBSizerItem swig_types[59] | |
2526 | #define SWIGTYPE_p_wxGCDC swig_types[60] | |
2527 | #define SWIGTYPE_p_wxGDIObjListBase swig_types[61] | |
2528 | #define SWIGTYPE_p_wxGDIObject swig_types[62] | |
2529 | #define SWIGTYPE_p_wxGIFHandler swig_types[63] | |
2530 | #define SWIGTYPE_p_wxGraphicsBrush swig_types[64] | |
2531 | #define SWIGTYPE_p_wxGraphicsContext swig_types[65] | |
2532 | #define SWIGTYPE_p_wxGraphicsFont swig_types[66] | |
2533 | #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67] | |
2534 | #define SWIGTYPE_p_wxGraphicsObject swig_types[68] | |
2535 | #define SWIGTYPE_p_wxGraphicsPath swig_types[69] | |
2536 | #define SWIGTYPE_p_wxGraphicsPen swig_types[70] | |
2537 | #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71] | |
2538 | #define SWIGTYPE_p_wxGridBagSizer swig_types[72] | |
2539 | #define SWIGTYPE_p_wxGridSizer swig_types[73] | |
2540 | #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74] | |
2541 | #define SWIGTYPE_p_wxICOHandler swig_types[75] | |
2542 | #define SWIGTYPE_p_wxIcon swig_types[76] | |
2543 | #define SWIGTYPE_p_wxIconBundle swig_types[77] | |
2544 | #define SWIGTYPE_p_wxIconLocation swig_types[78] | |
2545 | #define SWIGTYPE_p_wxIconizeEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxIdleEvent swig_types[80] | |
2547 | #define SWIGTYPE_p_wxImage swig_types[81] | |
2548 | #define SWIGTYPE_p_wxImageHandler swig_types[82] | |
2549 | #define SWIGTYPE_p_wxImageList swig_types[83] | |
2550 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84] | |
2551 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[85] | |
2552 | #define SWIGTYPE_p_wxJPEGHandler swig_types[86] | |
2553 | #define SWIGTYPE_p_wxKeyEvent swig_types[87] | |
2554 | #define SWIGTYPE_p_wxLanguageInfo swig_types[88] | |
2555 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[89] | |
2556 | #define SWIGTYPE_p_wxLocale swig_types[90] | |
2557 | #define SWIGTYPE_p_wxMask swig_types[91] | |
2558 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[92] | |
2559 | #define SWIGTYPE_p_wxMemoryDC swig_types[93] | |
2560 | #define SWIGTYPE_p_wxMenu swig_types[94] | |
2561 | #define SWIGTYPE_p_wxMenuBar swig_types[95] | |
2562 | #define SWIGTYPE_p_wxMenuEvent swig_types[96] | |
2563 | #define SWIGTYPE_p_wxMenuItem swig_types[97] | |
2564 | #define SWIGTYPE_p_wxMetaFile swig_types[98] | |
2565 | #define SWIGTYPE_p_wxMetaFileDC swig_types[99] | |
2566 | #define SWIGTYPE_p_wxMirrorDC swig_types[100] | |
2567 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101] | |
2568 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxMouseEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxMoveEvent swig_types[104] | |
2571 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105] | |
2572 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[106] | |
2573 | #define SWIGTYPE_p_wxNativePixelData swig_types[107] | |
2574 | #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108] | |
2575 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[110] | |
2577 | #define SWIGTYPE_p_wxNotifyEvent swig_types[111] | |
2578 | #define SWIGTYPE_p_wxObject swig_types[112] | |
2579 | #define SWIGTYPE_p_wxOverlay swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPCXHandler swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPNGHandler swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPNMHandler swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPaintDC swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPaintEvent swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPalette swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPaperSize swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPen swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPenList swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPixelDataBase swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPoint swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPoint2D swig_types[126] | |
2593 | #define SWIGTYPE_p_wxPoint2DDouble swig_types[127] | |
2594 | #define SWIGTYPE_p_wxPostScriptDC swig_types[128] | |
2595 | #define SWIGTYPE_p_wxPrintData swig_types[129] | |
2596 | #define SWIGTYPE_p_wxPrinterDC swig_types[130] | |
2597 | #define SWIGTYPE_p_wxPseudoDC swig_types[131] | |
2598 | #define SWIGTYPE_p_wxPyApp swig_types[132] | |
2599 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[133] | |
2600 | #define SWIGTYPE_p_wxPyEvent swig_types[134] | |
2601 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135] | |
2602 | #define SWIGTYPE_p_wxPyImageHandler swig_types[136] | |
2603 | #define SWIGTYPE_p_wxPyLocale swig_types[137] | |
2604 | #define SWIGTYPE_p_wxPySizer swig_types[138] | |
2605 | #define SWIGTYPE_p_wxPyValidator swig_types[139] | |
2606 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140] | |
2607 | #define SWIGTYPE_p_wxRect swig_types[141] | |
2608 | #define SWIGTYPE_p_wxRect2DDouble swig_types[142] | |
2609 | #define SWIGTYPE_p_wxRegion swig_types[143] | |
2610 | #define SWIGTYPE_p_wxRegionIterator swig_types[144] | |
2611 | #define SWIGTYPE_p_wxRendererNative swig_types[145] | |
2612 | #define SWIGTYPE_p_wxRendererVersion swig_types[146] | |
2613 | #define SWIGTYPE_p_wxScreenDC swig_types[147] | |
2614 | #define SWIGTYPE_p_wxScrollEvent swig_types[148] | |
2615 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[149] | |
2616 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[150] | |
2617 | #define SWIGTYPE_p_wxShowEvent swig_types[151] | |
2618 | #define SWIGTYPE_p_wxSize swig_types[152] | |
2619 | #define SWIGTYPE_p_wxSizeEvent swig_types[153] | |
2620 | #define SWIGTYPE_p_wxSizer swig_types[154] | |
2621 | #define SWIGTYPE_p_wxSizerItem swig_types[155] | |
2622 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156] | |
2623 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157] | |
2624 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158] | |
2625 | #define SWIGTYPE_p_wxStockGDI swig_types[159] | |
2626 | #define SWIGTYPE_p_wxString swig_types[160] | |
2627 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161] | |
580080c5 RD |
2628 | #define SWIGTYPE_p_wxTGAHandler swig_types[162] |
2629 | #define SWIGTYPE_p_wxTIFFHandler swig_types[163] | |
2630 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164] | |
2631 | #define SWIGTYPE_p_wxValidator swig_types[165] | |
2632 | #define SWIGTYPE_p_wxWindow swig_types[166] | |
2633 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167] | |
2634 | #define SWIGTYPE_p_wxWindowDC swig_types[168] | |
2635 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169] | |
2636 | #define SWIGTYPE_p_wxXPMHandler swig_types[170] | |
2637 | static swig_type_info *swig_types[172]; | |
2638 | static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0}; | |
32fe5131 RD |
2639 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2640 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d14a1e28 | 2641 | |
093d3ff1 | 2642 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 2643 | |
0085ce49 RD |
2644 | #if (PY_VERSION_HEX <= 0x02000000) |
2645 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2646 | # error "This python version requires to use swig with the '-classic' option" | |
2647 | # endif | |
2648 | #endif | |
2649 | #if (PY_VERSION_HEX <= 0x02020000) | |
2650 | # error "This python version requires to use swig with the '-nomodern' option" | |
2651 | #endif | |
2652 | #if (PY_VERSION_HEX <= 0x02020000) | |
2653 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2654 | #endif | |
2655 | #ifndef METH_O | |
2656 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2657 | #endif | |
d14a1e28 | 2658 | |
093d3ff1 RD |
2659 | /*----------------------------------------------- |
2660 | @(target):= _gdi_.so | |
2661 | ------------------------------------------------*/ | |
2662 | #define SWIG_init init_gdi_ | |
d14a1e28 | 2663 | |
093d3ff1 | 2664 | #define SWIG_name "_gdi_" |
d14a1e28 | 2665 | |
0085ce49 | 2666 | #define SWIGVERSION 0x010329 |
d14a1e28 | 2667 | |
d14a1e28 | 2668 | |
0085ce49 RD |
2669 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2670 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
d14a1e28 RD |
2671 | |
2672 | ||
0085ce49 RD |
2673 | #include <stdexcept> |
2674 | ||
2675 | ||
2676 | namespace swig { | |
2677 | class PyObject_ptr { | |
2678 | protected: | |
2679 | PyObject *_obj; | |
2680 | ||
2681 | public: | |
2682 | PyObject_ptr() :_obj(0) | |
2683 | { | |
093d3ff1 | 2684 | } |
0085ce49 RD |
2685 | |
2686 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2687 | { | |
2688 | Py_XINCREF(_obj); | |
093d3ff1 | 2689 | } |
0085ce49 RD |
2690 | |
2691 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2692 | { | |
2693 | if (initial_ref) Py_XINCREF(_obj); | |
2694 | } | |
2695 | ||
2696 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2697 | { | |
2698 | Py_XINCREF(item._obj); | |
2699 | Py_XDECREF(_obj); | |
2700 | _obj = item._obj; | |
2701 | return *this; | |
2702 | } | |
2703 | ||
2704 | ~PyObject_ptr() | |
2705 | { | |
2706 | Py_XDECREF(_obj); | |
2707 | } | |
2708 | ||
2709 | operator PyObject *() const | |
2710 | { | |
2711 | return _obj; | |
2712 | } | |
2713 | ||
2714 | PyObject *operator->() const | |
2715 | { | |
2716 | return _obj; | |
2717 | } | |
2718 | }; | |
093d3ff1 | 2719 | } |
d14a1e28 | 2720 | |
994141e6 | 2721 | |
0085ce49 RD |
2722 | namespace swig { |
2723 | struct PyObject_var : PyObject_ptr { | |
2724 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2725 | ||
2726 | PyObject_var & operator = (PyObject* obj) | |
2727 | { | |
2728 | Py_XDECREF(_obj); | |
2729 | _obj = obj; | |
2730 | return *this; | |
69223c70 | 2731 | } |
0085ce49 | 2732 | }; |
15afbcd0 RD |
2733 | } |
2734 | ||
2735 | ||
0085ce49 RD |
2736 | #include "wx/wxPython/wxPython.h" |
2737 | #include "wx/wxPython/pyclasses.h" | |
2738 | ||
2739 | ||
2740 | static const wxString wxPyEmptyString(wxEmptyString); | |
2741 | ||
01f6b6d3 RD |
2742 | #define SWIG_From_long PyInt_FromLong |
2743 | ||
2744 | ||
2745 | SWIGINTERNINLINE PyObject * | |
2746 | SWIG_From_int (int value) | |
2747 | { | |
2748 | return SWIG_From_long (value); | |
2749 | } | |
2750 | ||
2751 | ||
0085ce49 RD |
2752 | #include <limits.h> |
2753 | #ifndef LLONG_MIN | |
2754 | # define LLONG_MIN LONG_LONG_MIN | |
2755 | #endif | |
2756 | #ifndef LLONG_MAX | |
2757 | # define LLONG_MAX LONG_LONG_MAX | |
2758 | #endif | |
2759 | #ifndef ULLONG_MAX | |
2760 | # define ULLONG_MAX ULONG_LONG_MAX | |
2761 | #endif | |
b88bce5f | 2762 | |
b88bce5f | 2763 | |
50efceee RD |
2764 | SWIGINTERN int |
2765 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2766 | { | |
2767 | if (PyNumber_Check(obj)) { | |
2768 | if (val) *val = PyInt_AsLong(obj); | |
2769 | return SWIG_OK; | |
2770 | } | |
2771 | return SWIG_TypeError; | |
2772 | } | |
2773 | ||
2774 | ||
093d3ff1 | 2775 | SWIGINTERN int |
0085ce49 | 2776 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
093d3ff1 RD |
2777 | { |
2778 | long v = 0; | |
2779 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
0085ce49 | 2780 | return SWIG_TypeError; |
093d3ff1 RD |
2781 | } |
2782 | else if (val) | |
2783 | *val = (unsigned long)v; | |
0085ce49 | 2784 | return SWIG_OK; |
093d3ff1 | 2785 | } |
d14a1e28 RD |
2786 | |
2787 | ||
093d3ff1 | 2788 | SWIGINTERN int |
0085ce49 RD |
2789 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2790 | { | |
093d3ff1 | 2791 | unsigned long v; |
0085ce49 RD |
2792 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
2793 | if (SWIG_IsOK(res)) { | |
2794 | if ((v > UCHAR_MAX)) { | |
2795 | return SWIG_OverflowError; | |
093d3ff1 | 2796 | } else { |
0085ce49 | 2797 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2798 | } |
0085ce49 RD |
2799 | } |
2800 | return res; | |
093d3ff1 | 2801 | } |
33b885b9 | 2802 | |
d14a1e28 | 2803 | |
0085ce49 RD |
2804 | SWIGINTERNINLINE PyObject* |
2805 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2806 | { |
0085ce49 RD |
2807 | return (value > LONG_MAX) ? |
2808 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2809 | } |
d14a1e28 | 2810 | |
d14a1e28 | 2811 | |
0085ce49 RD |
2812 | SWIGINTERNINLINE PyObject * |
2813 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2814 | { | |
2815 | return SWIG_From_unsigned_SS_long (value); | |
2816 | } | |
d14a1e28 | 2817 | |
e9d6f3a4 RD |
2818 | SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){ |
2819 | wxColour temp, *obj = &temp; | |
2820 | if ( other == Py_None ) return false; | |
2821 | if ( ! wxColour_helper(other, &obj) ) { | |
2822 | PyErr_Clear(); | |
2823 | return false; | |
2824 | } | |
2825 | return self->operator==(*obj); | |
2826 | } | |
2827 | SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){ | |
2828 | wxColour temp, *obj = &temp; | |
2829 | if ( other == Py_None ) return true; | |
2830 | if ( ! wxColour_helper(other, &obj)) { | |
2831 | PyErr_Clear(); | |
2832 | return true; | |
2833 | } | |
2834 | return self->operator!=(*obj); | |
2835 | } | |
fc46b7f3 RD |
2836 | |
2837 | SWIGINTERN int | |
2838 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2839 | { | |
2840 | if (obj == Py_True) { | |
2841 | if (val) *val = true; | |
2842 | return SWIG_OK; | |
2843 | } else if (obj == Py_False) { | |
2844 | if (val) *val = false; | |
2845 | return SWIG_OK; | |
2846 | } else { | |
2847 | long v = 0; | |
2848 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2849 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2850 | return res; | |
2851 | } | |
2852 | } | |
2853 | ||
2854 | SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){ | |
2855 | PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3); | |
093d3ff1 RD |
2856 | int red = -1; |
2857 | int green = -1; | |
2858 | int blue = -1; | |
fc46b7f3 | 2859 | int alpha = wxALPHA_OPAQUE; |
b39fe951 | 2860 | if (self->IsOk()) { |
093d3ff1 RD |
2861 | red = self->Red(); |
2862 | green = self->Green(); | |
2863 | blue = self->Blue(); | |
fc46b7f3 | 2864 | alpha = self->Alpha(); |
093d3ff1 RD |
2865 | } |
2866 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2867 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2868 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
fc46b7f3 RD |
2869 | if (includeAlpha) |
2870 | PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha)); | |
093d3ff1 RD |
2871 | return rv; |
2872 | } | |
0085ce49 | 2873 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2874 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2875 | } | |
d14a1e28 | 2876 | |
0085ce49 RD |
2877 | SWIGINTERN int |
2878 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2879 | { |
0085ce49 RD |
2880 | long v; |
2881 | int res = SWIG_AsVal_long (obj, &v); | |
2882 | if (SWIG_IsOK(res)) { | |
2883 | if ((v < INT_MIN || v > INT_MAX)) { | |
2884 | return SWIG_OverflowError; | |
2885 | } else { | |
2886 | if (val) *val = static_cast< int >(v); | |
2887 | } | |
2888 | } | |
2889 | return res; | |
d14a1e28 RD |
2890 | } |
2891 | ||
0085ce49 | 2892 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
093d3ff1 RD |
2893 | wxDash* dashes; |
2894 | int count = self->GetDashes(&dashes); | |
5a446332 | 2895 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2896 | PyObject* retval = PyList_New(0); |
2897 | for (int x=0; x<count; x++) { | |
2898 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2899 | PyList_Append(retval, pyint); | |
2900 | Py_DECREF(pyint); | |
2901 | } | |
2902 | wxPyEndBlockThreads(blocked); | |
2903 | return retval; | |
2904 | } | |
0085ce49 | 2905 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2906 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2907 | int size = PyList_Size(pyDashes); |
2908 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d14a1e28 | 2909 | |
093d3ff1 RD |
2910 | // black magic warning! The array of wxDashes needs to exist as |
2911 | // long as the pen does because wxPen does not copy the array. So | |
2912 | // stick a copy in a Python string object and attach it to _self, | |
2913 | // and then call SetDashes with a pointer to that array. Then | |
2914 | // when the Python pen object is destroyed the array will be | |
2915 | // cleaned up too. | |
2916 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2917 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2918 | ||
2919 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2920 | delete [] dashes; | |
2921 | Py_DECREF(strDashes); | |
2922 | wxPyEndBlockThreads(blocked); | |
2923 | } | |
0085ce49 RD |
2924 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2925 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 | 2926 | |
fc46b7f3 RD |
2927 | #include <wx/rawbmp.h> |
2928 | ||
2929 | ||
8f514ab4 RD |
2930 | // See http://tinyurl.com/e5adr for what premultiplying alpha means. It |
2931 | // appears to me that the other platforms are already doing it, so I'll just | |
2932 | // automatically do it for wxMSW here. | |
2933 | #ifdef __WXMSW__ | |
2934 | #define wxPy_premultiply(p, a) ((p) * (a) / 0xff) | |
2935 | #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p)) | |
2936 | #else | |
2937 | #define wxPy_premultiply(p, a) (p) | |
2938 | #define wxPy_unpremultiply(p, a) (p) | |
2939 | #endif | |
2940 | ||
2941 | ||
093d3ff1 | 2942 | #include <wx/image.h> |
b88bce5f | 2943 | |
093d3ff1 RD |
2944 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2945 | char** cArray = NULL; | |
2946 | int count; | |
2947 | ||
2948 | if (!PyList_Check(listOfStrings)) { | |
2949 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2950 | return NULL; | |
2951 | } | |
2952 | count = PyList_Size(listOfStrings); | |
2953 | cArray = new char*[count]; | |
2954 | ||
2955 | for(int x=0; x<count; x++) { | |
2956 | // TODO: Need some validation and error checking here | |
2957 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2958 | } | |
2959 | return cArray; | |
b88bce5f | 2960 | } |
b88bce5f RD |
2961 | |
2962 | ||
0085ce49 | 2963 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
fc46b7f3 RD |
2964 | char** cArray = NULL; |
2965 | wxBitmap* bmp; | |
2966 | ||
2967 | cArray = ConvertListOfStrings(listOfStrings); | |
2968 | if (! cArray) | |
2969 | return NULL; | |
2970 | bmp = new wxBitmap(cArray); | |
2971 | delete [] cArray; | |
2972 | return bmp; | |
2973 | } | |
0085ce49 | 2974 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
fc46b7f3 RD |
2975 | char* buf; |
2976 | Py_ssize_t length; | |
2977 | PyString_AsStringAndSize(bits, &buf, &length); | |
2978 | return new wxBitmap(buf, width, height, depth); | |
2979 | } | |
0085ce49 | 2980 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ |
093d3ff1 RD |
2981 | wxSize size(self->GetWidth(), self->GetHeight()); |
2982 | return size; | |
2983 | } | |
0085ce49 | 2984 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2985 | wxMask *mask = new wxMask(*self, colour); |
2986 | self->SetMask(mask); | |
2987 | } | |
0085ce49 | 2988 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2989 | self->SetWidth(size.x); |
2990 | self->SetHeight(size.y); | |
2991 | } | |
8f514ab4 RD |
2992 | SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){ |
2993 | int height=self->GetHeight(); | |
2994 | int width=self->GetWidth(); | |
fc46b7f3 | 2995 | |
8f514ab4 RD |
2996 | if (DATASIZE != width * height * 3) { |
2997 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2998 | } | |
2999 | wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3000 | if (! pixData) { | |
3001 | // raise an exception... | |
3002 | wxPyErr_SetString(PyExc_RuntimeError, | |
3003 | "Failed to gain raw access to bitmap data."); | |
3004 | return; | |
3005 | } | |
fc46b7f3 | 3006 | |
8f514ab4 RD |
3007 | wxNativePixelData::Iterator p(pixData); |
3008 | for (int y=0; y<height; y++) { | |
3009 | wxNativePixelData::Iterator rowStart = p; | |
3010 | for (int x=0; x<width; x++) { | |
3011 | p.Red() = *(data++); | |
3012 | p.Green() = *(data++); | |
3013 | p.Blue() = *(data++); | |
3014 | ++p; | |
3015 | } | |
3016 | p = rowStart; | |
3017 | p.OffsetY(pixData, 1); | |
3018 | } | |
3019 | } | |
3020 | SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){ | |
3021 | int height=self->GetHeight(); | |
3022 | int width=self->GetWidth(); | |
3023 | ||
3024 | if (DATASIZE != width * height * 4) { | |
3025 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3026 | } | |
3027 | wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3028 | if (! pixData) { | |
3029 | // raise an exception... | |
3030 | wxPyErr_SetString(PyExc_RuntimeError, | |
3031 | "Failed to gain raw access to bitmap data."); | |
3032 | return; | |
3033 | } | |
3034 | ||
3035 | pixData.UseAlpha(); | |
3036 | wxAlphaPixelData::Iterator p(pixData); | |
3037 | for (int y=0; y<height; y++) { | |
3038 | wxAlphaPixelData::Iterator rowStart = p; | |
3039 | for (int x=0; x<width; x++) { | |
3040 | byte a = data[3]; | |
3041 | p.Red() = wxPy_premultiply(*(data++), a); | |
3042 | p.Green() = wxPy_premultiply(*(data++), a); | |
3043 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3044 | p.Alpha() = a; data++; | |
3045 | ++p; | |
3046 | } | |
3047 | p = rowStart; | |
3048 | p.OffsetY(pixData, 1); | |
3049 | } | |
3050 | } | |
3051 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; } | |
3052 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; } | |
fc46b7f3 RD |
3053 | |
3054 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
3055 | buffer data, int DATASIZE, | |
3056 | buffer alpha, int ALPHASIZE) | |
3057 | { | |
3058 | if (DATASIZE != width*height*3) { | |
3059 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3060 | return NULL; | |
3061 | } | |
3062 | ||
3063 | if (ALPHASIZE != width*height) { | |
3064 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
3065 | return NULL; | |
3066 | } | |
3067 | ||
3068 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3069 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3070 | if (! pixData) { | |
3071 | // raise an exception... | |
3072 | wxPyErr_SetString(PyExc_RuntimeError, | |
3073 | "Failed to gain raw access to bitmap data."); | |
3074 | return NULL; | |
3075 | } | |
3076 | ||
3077 | pixData.UseAlpha(); | |
3078 | wxAlphaPixelData::Iterator p(pixData); | |
3079 | for (int y=0; y<height; y++) { | |
3080 | wxAlphaPixelData::Iterator rowStart = p; | |
3081 | for (int x=0; x<width; x++) { | |
3082 | byte a = *(alpha++); | |
3083 | p.Red() = wxPy_premultiply(*(data++), a); | |
3084 | p.Green() = wxPy_premultiply(*(data++), a); | |
3085 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3086 | p.Alpha() = a; | |
3087 | ++p; | |
3088 | } | |
3089 | p = rowStart; | |
3090 | p.OffsetY(pixData, 1); | |
3091 | } | |
3092 | return bmp; | |
3093 | } | |
3094 | ||
3095 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3096 | { | |
3097 | if (DATASIZE != width*height*3) { | |
3098 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3099 | return NULL; | |
3100 | } | |
3101 | ||
3102 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3103 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3104 | if (! pixData) { | |
3105 | // raise an exception... | |
3106 | wxPyErr_SetString(PyExc_RuntimeError, | |
3107 | "Failed to gain raw access to bitmap data."); | |
3108 | return NULL; | |
3109 | } | |
3110 | ||
3111 | wxNativePixelData::Iterator p(pixData); | |
3112 | for (int y=0; y<height; y++) { | |
3113 | wxNativePixelData::Iterator rowStart = p; | |
3114 | for (int x=0; x<width; x++) { | |
3115 | p.Red() = *(data++); | |
3116 | p.Green() = *(data++); | |
3117 | p.Blue() = *(data++); | |
3118 | ++p; | |
3119 | } | |
3120 | p = rowStart; | |
3121 | p.OffsetY(pixData, 1); | |
3122 | } | |
3123 | return bmp; | |
3124 | } | |
3125 | ||
3126 | ||
3127 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3128 | { | |
3129 | if (DATASIZE != width*height*4) { | |
3130 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3131 | return NULL; | |
3132 | } | |
3133 | ||
3134 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3135 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3136 | if (! pixData) { | |
3137 | // raise an exception... | |
3138 | wxPyErr_SetString(PyExc_RuntimeError, | |
3139 | "Failed to gain raw access to bitmap data."); | |
3140 | return NULL; | |
3141 | } | |
3142 | ||
3143 | pixData.UseAlpha(); | |
3144 | wxAlphaPixelData::Iterator p(pixData); | |
3145 | for (int y=0; y<height; y++) { | |
3146 | wxAlphaPixelData::Iterator rowStart = p; | |
3147 | for (int x=0; x<width; x++) { | |
3148 | byte a = data[3]; | |
3149 | p.Red() = wxPy_premultiply(*(data++), a); | |
3150 | p.Green() = wxPy_premultiply(*(data++), a); | |
3151 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3152 | p.Alpha() = a; data++; | |
3153 | ++p; | |
3154 | } | |
3155 | p = rowStart; | |
3156 | p.OffsetY(pixData, 1); | |
3157 | } | |
3158 | return bmp; | |
3159 | } | |
3160 | ||
3161 | ||
3162 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3163 | ||
3164 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3165 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3166 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3167 | self->Red() = red; | |
3168 | self->Green() = green; | |
3169 | self->Blue() = blue; | |
3170 | } | |
3171 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3172 | PyObject* rv = PyTuple_New(3); | |
3173 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3174 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3175 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3176 | return rv; | |
3177 | } | |
3178 | ||
3179 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3180 | ||
3181 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3182 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3183 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3184 | self->Red() = wxPy_premultiply(red, alpha); | |
3185 | self->Green() = wxPy_premultiply(green, alpha); | |
3186 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3187 | self->Alpha() = alpha; | |
3188 | } | |
3189 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3190 | PyObject* rv = PyTuple_New(4); | |
3191 | int red = self->Red(); | |
3192 | int green = self->Green(); | |
3193 | int blue = self->Blue(); | |
3194 | int alpha = self->Alpha(); | |
3195 | ||
3196 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3197 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3198 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3199 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3200 | return rv; | |
3201 | } | |
0085ce49 | 3202 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
b39fe951 | 3203 | if ( !colour.IsOk() ) |
093d3ff1 RD |
3204 | return new wxMask(bitmap, *wxBLACK); |
3205 | else | |
3206 | return new wxMask(bitmap, colour); | |
3207 | } | |
d14a1e28 | 3208 | |
093d3ff1 | 3209 | #include <wx/iconbndl.h> |
d14a1e28 | 3210 | |
0085ce49 | 3211 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3212 | wxIcon* icon = new wxIcon(); |
3213 | icon->CopyFromBitmap(bmp); | |
3214 | return icon; | |
3215 | } | |
0085ce49 | 3216 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3217 | char** cArray = NULL; |
3218 | wxIcon* icon; | |
d14a1e28 | 3219 | |
093d3ff1 RD |
3220 | cArray = ConvertListOfStrings(listOfStrings); |
3221 | if (! cArray) | |
3222 | return NULL; | |
3223 | icon = new wxIcon(cArray); | |
3224 | delete [] cArray; | |
3225 | return icon; | |
3226 | } | |
0085ce49 | 3227 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ |
d14a1e28 RD |
3228 | |
3229 | ||
d14a1e28 | 3230 | |
093d3ff1 | 3231 | return new wxIconLocation(*filename); |
d14a1e28 | 3232 | |
093d3ff1 | 3233 | } |
0085ce49 | 3234 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d14a1e28 RD |
3235 | |
3236 | ||
d14a1e28 | 3237 | |
093d3ff1 | 3238 | // do nothing |
d14a1e28 | 3239 | |
093d3ff1 | 3240 | } |
0085ce49 | 3241 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
b88bce5f RD |
3242 | |
3243 | ||
093d3ff1 RD |
3244 | |
3245 | return -1; | |
3246 | ||
3247 | } | |
0085ce49 | 3248 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3249 | #ifdef __WXGTK__ |
7557b9b5 RD |
3250 | wxImage img(cursorName, type); |
3251 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3252 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3253 | return new wxCursor(img); | |
093d3ff1 | 3254 | #else |
7557b9b5 | 3255 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3256 | #endif |
3257 | } | |
3258 | ||
3259 | ||
0085ce49 | 3260 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3261 | (*self) ++; |
3262 | } | |
0085ce49 | 3263 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3264 | return self->operator bool(); |
3265 | } | |
3266 | ||
3267 | #include <wx/fontutil.h> | |
3268 | #include <wx/fontmap.h> | |
3269 | #include <wx/fontenum.h> | |
3270 | ||
0085ce49 | 3271 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3272 | return self->ToString(); |
3273 | } | |
3274 | ||
3275 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
3276 | static wxNativeEncodingInfo info; | |
3277 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
3278 | return &info; | |
3279 | else | |
3280 | return NULL; | |
3281 | } | |
3282 | ||
0085ce49 RD |
3283 | |
3284 | SWIGINTERNINLINE PyObject * | |
3285 | SWIG_From_size_t (size_t value) | |
3286 | { | |
3287 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3288 | } | |
3289 | ||
3290 | ||
3291 | SWIGINTERNINLINE int | |
3292 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3293 | { | |
3294 | unsigned long v; | |
3295 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3296 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3297 | return res; | |
3298 | } | |
3299 | ||
3300 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3301 | wxFontEncoding alt_enc; |
3302 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3303 | return PyInt_FromLong(alt_enc); | |
3304 | else { | |
3305 | Py_INCREF(Py_None); | |
3306 | return Py_None; | |
3307 | } | |
3308 | } | |
0085ce49 | 3309 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3310 | wxNativeFontInfo nfi; |
3311 | nfi.FromString(info); | |
3312 | return new wxFont(nfi); | |
3313 | } | |
0085ce49 | 3314 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3315 | return wxFont::New(pointSize, family, flags, face, encoding); |
3316 | } | |
0085ce49 | 3317 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3318 | return wxFontBase::New(pixelSize, family, |
3319 | style, weight, underlined, | |
3320 | face, encoding); | |
3321 | } | |
0085ce49 | 3322 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3323 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3324 | } | |
0085ce49 RD |
3325 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3326 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3327 | |
3328 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3329 | public: | |
3330 | wxPyFontEnumerator() {} | |
3331 | ~wxPyFontEnumerator() {} | |
3332 | ||
3333 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3334 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3335 | ||
3336 | PYPRIVATE; | |
3337 | }; | |
3338 | ||
3339 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3340 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3341 | ||
3342 | ||
704eda0c | 3343 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3344 | PyObject* ret; |
704eda0c | 3345 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3346 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3347 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3348 | wxPyEndBlockThreads(blocked); |
3349 | return ret; | |
093d3ff1 | 3350 | } |
704eda0c | 3351 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3352 | PyObject* ret; |
704eda0c | 3353 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3354 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3355 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3356 | wxPyEndBlockThreads(blocked); |
3357 | return ret; | |
093d3ff1 RD |
3358 | } |
3359 | ||
3360 | #include <locale.h> | |
3361 | ||
0085ce49 | 3362 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3363 | wxLocale* loc; |
3364 | if (language == -1) | |
3365 | loc = new wxLocale(); | |
3366 | else | |
3367 | loc = new wxLocale(language, flags); | |
3368 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3369 | // for the floating point conversions and such to work right. | |
3370 | #if PY_VERSION_HEX < 0x02040000 | |
3371 | setlocale(LC_NUMERIC, "C"); | |
3372 | #endif | |
3373 | return loc; | |
3374 | } | |
0085ce49 | 3375 | SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){ |
093d3ff1 RD |
3376 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3377 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3378 | // for the floating point conversions and such to work right. | |
3379 | #if PY_VERSION_HEX < 0x02040000 | |
3380 | setlocale(LC_NUMERIC, "C"); | |
3381 | #endif | |
3382 | return rc; | |
3383 | } | |
0085ce49 | 3384 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3385 | bool rc = self->Init(language, flags); |
3386 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3387 | // for the floating point conversions and such to work right. | |
3388 | #if PY_VERSION_HEX < 0x02040000 | |
3389 | setlocale(LC_NUMERIC, "C"); | |
3390 | #endif | |
3391 | return rc; | |
3392 | } | |
3393 | ||
fc46b7f3 RD |
3394 | class wxPyLocale : public wxLocale |
3395 | { | |
3396 | public: | |
3397 | wxPyLocale(); | |
3398 | ||
3399 | wxPyLocale(const wxChar *szName, // name (for messages) | |
3400 | const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files) | |
3401 | const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale) | |
3402 | bool bLoadDefault = true, // preload wxstd.mo? | |
3403 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
3404 | ||
3405 | wxPyLocale(int language, // wxLanguage id or custom language | |
3406 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); | |
3407 | ||
3408 | ~wxPyLocale(); | |
3409 | ||
3410 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3411 | const wxChar *szDomain = NULL) const; | |
3412 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3413 | const wxChar *szOrigString2, size_t n, | |
3414 | const wxChar *szDomain = NULL) const; | |
3415 | ||
3416 | virtual wxChar *GetSingularString(const wxChar *szOrigString, | |
3417 | const wxChar *szDomain = NULL) const; | |
3418 | virtual wxChar *GetPluralString(const wxChar *szOrigString, | |
3419 | const wxChar *szOrigString2, size_t n, | |
3420 | const wxChar *szDomain = NULL) const; | |
3421 | ||
3422 | PYPRIVATE; | |
3423 | private: | |
3424 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3425 | }; | |
3426 | ||
3427 | wxPyLocale::wxPyLocale() : wxLocale() | |
3428 | { | |
3429 | } | |
3430 | ||
3431 | wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages) | |
3432 | const wxChar *szShort, // dir prefix (for msg files) | |
3433 | const wxChar *szLocale, // locale (for setlocale) | |
3434 | bool bLoadDefault, // preload wxstd.mo? | |
3435 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3436 | : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding) | |
3437 | { | |
3438 | } | |
3439 | ||
3440 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3441 | int flags) : wxLocale(language, flags) | |
3442 | { | |
3443 | } | |
3444 | ||
3445 | wxPyLocale::~wxPyLocale() | |
3446 | { | |
3447 | } | |
3448 | ||
3449 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3450 | const wxChar *szDomain) const | |
3451 | { | |
3452 | wxChar *str = GetSingularString(szOrigString, szDomain); | |
3453 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain); | |
3454 | } | |
3455 | ||
3456 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3457 | const wxChar *szOrigString2, size_t n, | |
3458 | const wxChar *szDomain) const | |
3459 | { | |
3460 | wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain); | |
3461 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain); | |
3462 | } | |
3463 | ||
3464 | wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString, | |
3465 | const wxChar *szDomain) const | |
3466 | { | |
3467 | bool found; | |
3468 | static wxString str; | |
3469 | str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string. | |
3470 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3471 | if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { | |
3472 | PyObject* param1 = wx2PyString(szOrigString); | |
3473 | PyObject* param2 = wx2PyString(szDomain); | |
3474 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2)); | |
3475 | Py_DECREF(param1); | |
3476 | Py_DECREF(param2); | |
3477 | if (ret) { | |
3478 | str = Py2wxString(ret); | |
3479 | Py_DECREF(ret); | |
3480 | } | |
3481 | } | |
3482 | wxPyEndBlockThreads(blocked); | |
3483 | return (found ? (wxChar*)str.c_str() : NULL); | |
3484 | } | |
3485 | ||
3486 | wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString, | |
3487 | const wxChar *szOrigString2, size_t n, | |
3488 | const wxChar *szDomain) const | |
3489 | { | |
3490 | bool found; | |
3491 | static wxString str; | |
3492 | str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string. | |
3493 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3494 | if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { | |
3495 | PyObject* param1 = wx2PyString(szOrigString); | |
3496 | PyObject* param2 = wx2PyString(szOrigString2); | |
3497 | PyObject* param4 = wx2PyString(szDomain); | |
3498 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4)); | |
3499 | Py_DECREF(param1); | |
3500 | Py_DECREF(param2); | |
3501 | Py_DECREF(param4); | |
3502 | if( ret) { | |
3503 | str = Py2wxString(ret); | |
3504 | Py_DECREF(ret); | |
3505 | } | |
3506 | } | |
3507 | wxPyEndBlockThreads(blocked); | |
3508 | return (found ? (wxChar*)str.c_str() : NULL); | |
3509 | } | |
3510 | ||
3511 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3512 | wxPyLocale* loc; | |
3513 | if (language == -1) | |
3514 | loc = new wxPyLocale(); | |
3515 | else | |
3516 | loc = new wxPyLocale(language, flags); | |
3517 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3518 | // for the floating point conversions and such to work right. | |
3519 | #if PY_VERSION_HEX < 0x02040000 | |
3520 | setlocale(LC_NUMERIC, "C"); | |
3521 | #endif | |
3522 | return loc; | |
3523 | } | |
3524 | ||
093d3ff1 RD |
3525 | #include "wx/wxPython/pydrawxxx.h" |
3526 | ||
0085ce49 | 3527 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3528 | wxColour col; |
3529 | self->GetPixel(x, y, &col); | |
3530 | return col; | |
3531 | } | |
0085ce49 | 3532 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3533 | wxColour col; |
3534 | self->GetPixel(pt, &col); | |
3535 | return col; | |
3536 | } | |
3537 | ||
3538 | SWIGINTERN int | |
0085ce49 | 3539 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3540 | { |
3541 | if (PyNumber_Check(obj)) { | |
3542 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 3543 | return SWIG_OK; |
093d3ff1 | 3544 | } |
0085ce49 | 3545 | return SWIG_TypeError; |
093d3ff1 RD |
3546 | } |
3547 | ||
0085ce49 | 3548 | SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){ |
093d3ff1 RD |
3549 | wxRect rv; |
3550 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3551 | return rv; | |
3552 | } | |
0085ce49 | 3553 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3554 | wxRect rect; |
3555 | self->GetClippingBox(rect); | |
3556 | return rect; | |
3557 | } | |
0085ce49 | 3558 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3559 | wxArrayInt widths; |
3560 | self->GetPartialTextExtents(text, widths); | |
3561 | return widths; | |
3562 | } | |
3563 | ||
0085ce49 | 3564 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3565 | |
0085ce49 | 3566 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3567 | self->SetLogicalOrigin(point.x, point.y); |
3568 | } | |
0085ce49 | 3569 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3570 | self->SetDeviceOrigin(point.x, point.y); |
3571 | } | |
0085ce49 | 3572 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3573 | self->CalcBoundingBox(point.x, point.y); |
3574 | } | |
0085ce49 | 3575 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3576 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3577 | } | |
0085ce49 | 3578 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3579 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3580 | } | |
0085ce49 | 3581 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3582 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3583 | } | |
0085ce49 | 3584 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3585 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3586 | } | |
0085ce49 | 3587 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3588 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3589 | } | |
0085ce49 | 3590 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3591 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3592 | } | |
3593 | ||
3594 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3595 | *x1 = dc->MinX(); | |
3596 | *y1 = dc->MinY(); | |
3597 | *x2 = dc->MaxX(); | |
3598 | *y2 = dc->MaxY(); | |
3599 | } | |
3600 | ||
3601 | ||
3602 | #include <wx/dcbuffer.h> | |
3603 | ||
3604 | ||
3605 | #include <wx/dcps.h> | |
3606 | ||
3607 | ||
3608 | class wxMetaFile : public wxObject { | |
3609 | public: | |
3610 | wxMetaFile(const wxString&) | |
3611 | { wxPyRaiseNotImplemented(); } | |
3612 | }; | |
3613 | ||
3614 | class wxMetaFileDC : public wxClientDC { | |
3615 | public: | |
3616 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
3617 | { wxPyRaiseNotImplemented(); } | |
3618 | }; | |
3619 | ||
3620 | ||
3621 | ||
3622 | class wxPrinterDC : public wxClientDC { | |
3623 | public: | |
3624 | wxPrinterDC(const wxPrintData&) | |
3625 | { wxPyRaiseNotImplemented(); } | |
3626 | ||
3627 | }; | |
3628 | ||
3629 | ||
72ef6efb RD |
3630 | #include <wx/graphics.h> |
3631 | ||
3632 | ||
3633 | #if !wxUSE_GRAPHICS_CONTEXT | |
70d7cb34 RD |
3634 | // C++ stub classes for platforms or build configurations that don't have |
3635 | // wxGraphicsContext yet. | |
72ef6efb | 3636 | |
8bd35413 RD |
3637 | class wxGraphicsRenderer; |
3638 | class wxGraphicsMatrix; | |
3639 | ||
70d7cb34 RD |
3640 | |
3641 | class wxGraphicsObject : public wxObject | |
72ef6efb RD |
3642 | { |
3643 | public : | |
8bd35413 | 3644 | wxGraphicsObject() {} |
70d7cb34 | 3645 | wxGraphicsObject( wxGraphicsRenderer* ) { |
72ef6efb | 3646 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3647 | "wx.GraphicsObject is not available on this platform."); |
3648 | } | |
3649 | wxGraphicsObject( const wxGraphicsObject& ) {} | |
3650 | virtual ~wxGraphicsObject() {} | |
3651 | bool IsNull() const { return false; } | |
3652 | wxGraphicsRenderer* GetRenderer() const { return NULL; } | |
3653 | } ; | |
3654 | ||
3655 | ||
3656 | ||
3657 | class wxGraphicsPen : public wxGraphicsObject | |
3658 | { | |
8bd35413 | 3659 | public: |
70d7cb34 RD |
3660 | wxGraphicsPen() {} |
3661 | virtual ~wxGraphicsPen() {} | |
3662 | } ; | |
3663 | wxGraphicsPen wxNullGraphicsPen; | |
3664 | ||
3665 | ||
3666 | ||
3667 | class wxGraphicsBrush : public wxGraphicsObject | |
3668 | { | |
3669 | public : | |
3670 | wxGraphicsBrush() {} | |
3671 | virtual ~wxGraphicsBrush() {} | |
3672 | } ; | |
3673 | wxGraphicsBrush wxNullGraphicsBrush; | |
3674 | ||
3675 | ||
3676 | ||
3677 | class wxGraphicsFont : public wxGraphicsObject | |
3678 | { | |
3679 | public : | |
3680 | wxGraphicsFont() {} | |
3681 | virtual ~wxGraphicsFont() {} | |
3682 | } ; | |
3683 | wxGraphicsFont wxNullGraphicsFont; | |
3684 | ||
3685 | ||
3686 | ||
3687 | class wxGraphicsPath : public wxGraphicsObject | |
3688 | { | |
3689 | public : | |
8bd35413 | 3690 | wxGraphicsPath() { } |
70d7cb34 RD |
3691 | wxGraphicsPath(wxGraphicsRenderer* ) { |
3692 | PyErr_SetString(PyExc_NotImplementedError, | |
3693 | "wx.GraphicsPath is not available on this platform."); | |
72ef6efb RD |
3694 | } |
3695 | virtual ~wxGraphicsPath() {} | |
70d7cb34 | 3696 | |
72ef6efb | 3697 | void MoveToPoint( wxDouble, wxDouble ) {} |
70d7cb34 RD |
3698 | void MoveToPoint( const wxPoint2DDouble& ) {} |
3699 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3700 | void AddLineToPoint( const wxPoint2DDouble& ) {} | |
72ef6efb | 3701 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} |
70d7cb34 | 3702 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} |
8bd35413 | 3703 | void AddPath( const wxGraphicsPath& ) {} |
72ef6efb | 3704 | void CloseSubpath() {} |
8bd35413 RD |
3705 | void GetCurrentPoint( wxDouble&, wxDouble&) const {} |
3706 | wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); } | |
72ef6efb | 3707 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} |
70d7cb34 | 3708 | void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {} |
72ef6efb RD |
3709 | |
3710 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3711 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3712 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3713 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3714 | ||
70d7cb34 RD |
3715 | void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3716 | void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3717 | void * GetNativePath() const { return NULL; } | |
8bd35413 RD |
3718 | void UnGetNativePath(void *) const {} |
3719 | void Transform( const wxGraphicsMatrix& ) {} | |
3720 | void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {} | |
3721 | wxRect2D GetBox() const { return wxRect2D(0,0,0,0); } | |
70d7cb34 | 3722 | |
8bd35413 RD |
3723 | bool Contains( wxDouble , wxDouble , int ) const { return false; } |
3724 | bool Contains( const wxPoint2DDouble& , int ) const { return false; } | |
70d7cb34 | 3725 | }; |
5c8c7dd3 | 3726 | wxGraphicsPath wxNullGraphicsPath; |
70d7cb34 RD |
3727 | |
3728 | ||
3729 | class wxGraphicsMatrix : public wxGraphicsObject | |
3730 | { | |
3731 | public : | |
8bd35413 | 3732 | wxGraphicsMatrix() { } |
70d7cb34 RD |
3733 | wxGraphicsMatrix(wxGraphicsRenderer* ) { |
3734 | PyErr_SetString(PyExc_NotImplementedError, | |
3735 | "wx.GraphicsMatrix is not available on this platform."); | |
3736 | } | |
3737 | virtual ~wxGraphicsMatrix() {} | |
8bd35413 RD |
3738 | virtual void Concat( const wxGraphicsMatrix & ) {} |
3739 | virtual void Copy( const wxGraphicsMatrix & ) {} | |
70d7cb34 RD |
3740 | virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble , |
3741 | wxDouble , wxDouble ) {} | |
248802d0 RD |
3742 | virtual void Get(wxDouble*, wxDouble*, wxDouble*, |
3743 | wxDouble*, wxDouble*, wxDouble*) {} | |
70d7cb34 | 3744 | virtual void Invert() {} |
8bd35413 RD |
3745 | virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; } |
3746 | virtual bool IsIdentity() const { return false; } | |
70d7cb34 RD |
3747 | virtual void Translate( wxDouble , wxDouble ) {} |
3748 | virtual void Scale( wxDouble , wxDouble ) {} | |
3749 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3750 | virtual void TransformPoint( wxDouble *, wxDouble * ) const {} |
3751 | virtual void TransformDistance( wxDouble *, wxDouble * ) const {} | |
70d7cb34 | 3752 | virtual void * GetNativeMatrix() const { return NULL; } |
72ef6efb | 3753 | }; |
5c8c7dd3 | 3754 | wxGraphicsMatrix wxNullGraphicsMatrix; |
72ef6efb | 3755 | |
70d7cb34 RD |
3756 | |
3757 | class wxGraphicsContext : public wxGraphicsObject | |
72ef6efb RD |
3758 | { |
3759 | public: | |
70d7cb34 RD |
3760 | |
3761 | wxGraphicsContext(wxGraphicsRenderer* ) { | |
72ef6efb | 3762 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3763 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3764 | } |
70d7cb34 | 3765 | |
72ef6efb | 3766 | virtual ~wxGraphicsContext() {} |
70d7cb34 | 3767 | |
8bd35413 RD |
3768 | static wxGraphicsContext* Create() { |
3769 | PyErr_SetString(PyExc_NotImplementedError, | |
3770 | "wx.GraphicsContext is not available on this platform."); | |
3771 | return NULL; | |
3772 | } | |
70d7cb34 | 3773 | static wxGraphicsContext* Create( const wxWindowDC& ) { |
72ef6efb | 3774 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3775 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3776 | return NULL; |
72ef6efb | 3777 | } |
b876c1e4 | 3778 | |
70d7cb34 | 3779 | static wxGraphicsContext* CreateFromNative( void * ) { |
b876c1e4 | 3780 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3781 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3782 | return NULL; |
70d7cb34 | 3783 | } |
b876c1e4 | 3784 | |
70d7cb34 RD |
3785 | static wxGraphicsContext* CreateFromNativeWindow( void * ) { |
3786 | PyErr_SetString(PyExc_NotImplementedError, | |
3787 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3788 | return NULL; |
70d7cb34 RD |
3789 | } |
3790 | ||
3791 | static wxGraphicsContext* Create( wxWindow* ) { | |
3792 | PyErr_SetString(PyExc_NotImplementedError, | |
3793 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3794 | return NULL; |
70d7cb34 RD |
3795 | } |
3796 | ||
8bd35413 | 3797 | wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3798 | |
8bd35413 | 3799 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
70d7cb34 | 3800 | |
8bd35413 | 3801 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3802 | |
3803 | virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , | |
8bd35413 | 3804 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3805 | |
3806 | virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo, | |
3807 | wxDouble xc, wxDouble yc, wxDouble radius, | |
8bd35413 | 3808 | const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; } |
70d7cb34 | 3809 | |
8bd35413 | 3810 | virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; } |
70d7cb34 | 3811 | |
8bd35413 RD |
3812 | virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble, |
3813 | wxDouble, wxDouble) { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3814 | |
3815 | virtual void PushState() {} | |
3816 | virtual void PopState() {} | |
3817 | virtual void Clip( const wxRegion & ) {} | |
3818 | virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3819 | virtual void ResetClip() {} | |
3820 | virtual void * GetNativeContext() { return NULL; } | |
c8aaaf9e RD |
3821 | virtual int GetLogicalFunction() const { return 0; } |
3822 | virtual bool SetLogicalFunction(int ) {} | |
70d7cb34 RD |
3823 | virtual void Translate( wxDouble , wxDouble ) {} |
3824 | virtual void Scale( wxDouble , wxDouble ) {} | |
3825 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3826 | virtual void ConcatTransform( const wxGraphicsMatrix& ) {} |
3827 | virtual void SetTransform( const wxGraphicsMatrix& ) {} | |
3828 | virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3829 | |
3830 | virtual void SetPen( const wxGraphicsPen& ) {} | |
3831 | void SetPen( const wxPen& ) {} | |
3832 | ||
3833 | virtual void SetBrush( const wxGraphicsBrush& ) {} | |
3834 | void SetBrush( const wxBrush& ) {} | |
3835 | ||
3836 | virtual void SetFont( const wxGraphicsFont& ) {} | |
3837 | void SetFont( const wxFont&, const wxColour& ) {} | |
3838 | ||
8bd35413 RD |
3839 | virtual void StrokePath( const wxGraphicsPath & ) {} |
3840 | virtual void FillPath( const wxGraphicsPath &, int ) {} | |
3841 | virtual void DrawPath( const wxGraphicsPath &, int ) {} | |
70d7cb34 RD |
3842 | |
3843 | virtual void DrawText( const wxString &, wxDouble , wxDouble ) {} | |
3844 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {} | |
8bd35413 RD |
3845 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {} |
3846 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {} | |
70d7cb34 RD |
3847 | virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *, |
3848 | wxDouble *, wxDouble * ) const {} | |
3849 | virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {} | |
3850 | ||
3851 | virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3852 | virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3853 | ||
3854 | virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3855 | virtual void StrokeLines( size_t , const wxPoint2DDouble *) {} | |
3856 | virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {} | |
3857 | virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {} | |
3858 | virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
8bd35413 | 3859 | virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} |
70d7cb34 RD |
3860 | virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3861 | virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3862 | virtual bool ShouldOffset() const { return false; } | |
3863 | }; | |
3864 | ||
3865 | ||
3866 | class wxGraphicsRenderer : public wxObject | |
3867 | { | |
3868 | public : | |
3869 | wxGraphicsRenderer() { | |
3870 | PyErr_SetString(PyExc_NotImplementedError, | |
3871 | "wx.GraphicsRenderer is not available on this platform."); | |
3872 | } | |
3873 | ||
3874 | virtual ~wxGraphicsRenderer() {} | |
3875 | ||
8bd35413 | 3876 | static wxGraphicsRenderer* GetDefaultRenderer() { |
70d7cb34 RD |
3877 | PyErr_SetString(PyExc_NotImplementedError, |
3878 | "wx.GraphicsRenderer is not available on this platform."); | |
8bd35413 RD |
3879 | return NULL; |
3880 | } | |
70d7cb34 RD |
3881 | |
3882 | virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; } | |
3883 | virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; } | |
3884 | virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; } | |
3885 | virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; } | |
8bd35413 | 3886 | virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; } |
70d7cb34 | 3887 | |
8bd35413 | 3888 | virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3889 | |
8bd35413 RD |
3890 | virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble , |
3891 | wxDouble , wxDouble ) { return wxNullGraphicsMatrix; } | |
70d7cb34 | 3892 | |
8bd35413 RD |
3893 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
3894 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } | |
3895 | virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , | |
3896 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } | |
70d7cb34 | 3897 | virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , |
8bd35413 RD |
3898 | const wxColour &, const wxColour &) { return wxNullGraphicsBrush; } |
3899 | virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; } | |
72ef6efb RD |
3900 | }; |
3901 | ||
3902 | ||
70d7cb34 | 3903 | |
72ef6efb RD |
3904 | class wxGCDC: public wxWindowDC |
3905 | { | |
3906 | public: | |
3907 | wxGCDC(const wxWindowDC&) { | |
3908 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3909 | PyErr_SetString(PyExc_NotImplementedError, | |
3910 | "wxGCDC is not available on this platform."); | |
3911 | wxPyEndBlockThreads(blocked); | |
3912 | } | |
70d7cb34 | 3913 | |
48a0c021 RD |
3914 | wxGCDC(const wxWindow*) { |
3915 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3916 | PyErr_SetString(PyExc_NotImplementedError, | |
3917 | "wxGCDC is not available on this platform."); | |
3918 | wxPyEndBlockThreads(blocked); | |
3919 | } | |
3920 | ||
72ef6efb RD |
3921 | wxGCDC() { |
3922 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3923 | PyErr_SetString(PyExc_NotImplementedError, | |
3924 | "wxGCDC is not available on this platform."); | |
3925 | wxPyEndBlockThreads(blocked); | |
3926 | } | |
70d7cb34 | 3927 | |
72ef6efb RD |
3928 | virtual ~wxGCDC() {} |
3929 | ||
b876c1e4 RD |
3930 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3931 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3932 | }; |
3933 | ||
3934 | #endif | |
3935 | ||
f89238b9 RD |
3936 | SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ |
3937 | if ( !backgroundBrush.IsNull() ) | |
3938 | self->DrawText(str, x, y, backgroundBrush); | |
3939 | else | |
3940 | self->DrawText(str, x, y); | |
3941 | } | |
3942 | SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ | |
3943 | if ( !backgroundBrush.IsNull() ) | |
3944 | self->DrawText(str, x, y, angle, backgroundBrush); | |
3945 | else | |
3946 | self->DrawText(str, x, y, angle); | |
3947 | } | |
be68621e RD |
3948 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3949 | wxDouble width = 0.0, | |
3950 | height = 0.0; | |
3951 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3952 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3953 | PyObject* rv = PyTuple_New(2); | |
3954 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3955 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3956 | return rv; | |
3957 | } | |
b39fe951 RD |
3958 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3959 | wxArrayDouble widths; | |
3960 | self->GetPartialTextExtents(text, widths); | |
3961 | return widths; | |
3962 | } | |
f8eb59b9 | 3963 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3964 | size_t c1, c2, count; |
3965 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3966 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3967 | ||
3968 | if ( beginP != NULL && endP != NULL ) | |
3969 | { | |
3970 | count = wxMin(c1, c2); | |
3971 | self->StrokeLines(count, beginP, endP); | |
3972 | } | |
3973 | delete [] beginP; | |
3974 | delete [] endP; | |
3975 | } | |
72ef6efb | 3976 | |
0a27f394 RD |
3977 | #include "wx/dcgraph.h" |
3978 | ||
3979 | ||
66493fc7 RD |
3980 | #include <wx/overlay.h> |
3981 | ||
3982 | ||
093d3ff1 | 3983 | |
0085ce49 | 3984 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3985 | self->AddColour(name, wxColour(red, green, blue)); |
3986 | } | |
3987 | ||
50efceee RD |
3988 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3989 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3990 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3991 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3992 | ||
3993 | ||
093d3ff1 RD |
3994 | #include <wx/effects.h> |
3995 | ||
8d38bd1d RD |
3996 | |
3997 | #include "wx/renderer.h" | |
3998 | ||
3999 | ||
32fe5131 | 4000 | SWIGINTERNINLINE PyObject* |
0085ce49 | 4001 | SWIG_From_bool (bool value) |
8d38bd1d | 4002 | { |
0085ce49 | 4003 | return PyBool_FromLong(value ? 1 : 0); |
8d38bd1d RD |
4004 | } |
4005 | ||
27e45892 RD |
4006 | |
4007 | #include "wx/wxPython/pseudodc.h" | |
4008 | ||
4009 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
4010 | wxRect rect; | |
4011 | self->GetIdBounds(id, rect); | |
4012 | return rect; | |
4013 | } | |
093d3ff1 RD |
4014 | #ifdef __cplusplus |
4015 | extern "C" { | |
4016 | #endif | |
0085ce49 RD |
4017 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4018 | PyObject *resultobj = 0; | |
4019 | wxGDIObject *result = 0 ; | |
4020 | ||
4021 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
4022 | { | |
4023 | if (!wxPyCheckForApp()) SWIG_fail; | |
4024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4025 | result = (wxGDIObject *)new wxGDIObject(); | |
4026 | wxPyEndAllowThreads(__tstate); | |
4027 | if (PyErr_Occurred()) SWIG_fail; | |
4028 | } | |
4029 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
4030 | return resultobj; | |
4031 | fail: | |
4032 | return NULL; | |
093d3ff1 RD |
4033 | } |
4034 | ||
4035 | ||
0085ce49 RD |
4036 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4037 | PyObject *resultobj = 0; | |
4038 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4039 | void *argp1 = 0 ; | |
4040 | int res1 = 0 ; | |
4041 | PyObject *swig_obj[1] ; | |
4042 | ||
4043 | if (!args) SWIG_fail; | |
4044 | swig_obj[0] = args; | |
4045 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
4046 | if (!SWIG_IsOK(res1)) { | |
4047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4048 | } | |
4049 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4050 | { | |
4051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4052 | delete arg1; | |
093d3ff1 | 4053 | |
0085ce49 RD |
4054 | wxPyEndAllowThreads(__tstate); |
4055 | if (PyErr_Occurred()) SWIG_fail; | |
4056 | } | |
4057 | resultobj = SWIG_Py_Void(); | |
4058 | return resultobj; | |
4059 | fail: | |
4060 | return NULL; | |
d14a1e28 RD |
4061 | } |
4062 | ||
4063 | ||
0085ce49 RD |
4064 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4065 | PyObject *resultobj = 0; | |
4066 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4067 | bool result; | |
4068 | void *argp1 = 0 ; | |
4069 | int res1 = 0 ; | |
4070 | PyObject *swig_obj[1] ; | |
4071 | ||
4072 | if (!args) SWIG_fail; | |
4073 | swig_obj[0] = args; | |
4074 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
4075 | if (!SWIG_IsOK(res1)) { | |
4076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4077 | } | |
4078 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4079 | { | |
4080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4081 | result = (bool)(arg1)->IsNull(); | |
4082 | wxPyEndAllowThreads(__tstate); | |
4083 | if (PyErr_Occurred()) SWIG_fail; | |
4084 | } | |
4085 | { | |
4086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4087 | } | |
4088 | return resultobj; | |
4089 | fail: | |
4090 | return NULL; | |
4091 | } | |
4092 | ||
4093 | ||
4094 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4095 | PyObject *obj; | |
4096 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4097 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
4098 | return SWIG_Py_Void(); | |
4099 | } | |
4100 | ||
4101 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4102 | return SWIG_Python_InitShadowInstance(args); | |
4103 | } | |
4104 | ||
4105 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4106 | PyObject *resultobj = 0; | |
4107 | byte arg1 = (byte) 0 ; | |
4108 | byte arg2 = (byte) 0 ; | |
4109 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 4110 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4111 | wxColour *result = 0 ; |
4112 | unsigned char val1 ; | |
4113 | int ecode1 = 0 ; | |
4114 | unsigned char val2 ; | |
4115 | int ecode2 = 0 ; | |
4116 | unsigned char val3 ; | |
4117 | int ecode3 = 0 ; | |
fc46b7f3 RD |
4118 | unsigned char val4 ; |
4119 | int ecode4 = 0 ; | |
0085ce49 RD |
4120 | PyObject * obj0 = 0 ; |
4121 | PyObject * obj1 = 0 ; | |
4122 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 4123 | PyObject * obj3 = 0 ; |
0085ce49 | 4124 | char * kwnames[] = { |
fc46b7f3 | 4125 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4126 | }; |
4127 | ||
fc46b7f3 | 4128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
4129 | if (obj0) { |
4130 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
4131 | if (!SWIG_IsOK(ecode1)) { | |
4132 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
4133 | } | |
4134 | arg1 = static_cast< byte >(val1); | |
4135 | } | |
4136 | if (obj1) { | |
4137 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4138 | if (!SWIG_IsOK(ecode2)) { | |
4139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
4140 | } | |
4141 | arg2 = static_cast< byte >(val2); | |
4142 | } | |
4143 | if (obj2) { | |
4144 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4145 | if (!SWIG_IsOK(ecode3)) { | |
4146 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
4147 | } | |
4148 | arg3 = static_cast< byte >(val3); | |
4149 | } | |
fc46b7f3 RD |
4150 | if (obj3) { |
4151 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4152 | if (!SWIG_IsOK(ecode4)) { | |
4153 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
4154 | } | |
4155 | arg4 = static_cast< byte >(val4); | |
4156 | } | |
0085ce49 RD |
4157 | { |
4158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4159 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
0085ce49 RD |
4160 | wxPyEndAllowThreads(__tstate); |
4161 | if (PyErr_Occurred()) SWIG_fail; | |
4162 | } | |
4163 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
4164 | return resultobj; | |
4165 | fail: | |
4166 | return NULL; | |
d14a1e28 RD |
4167 | } |
4168 | ||
4169 | ||
0085ce49 RD |
4170 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4171 | PyObject *resultobj = 0; | |
4172 | wxString *arg1 = 0 ; | |
4173 | wxColour *result = 0 ; | |
4174 | bool temp1 = false ; | |
4175 | PyObject * obj0 = 0 ; | |
4176 | char * kwnames[] = { | |
4177 | (char *) "colorName", NULL | |
4178 | }; | |
4179 | ||
4180 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
4181 | { | |
4182 | arg1 = wxString_in_helper(obj0); | |
4183 | if (arg1 == NULL) SWIG_fail; | |
4184 | temp1 = true; | |
4185 | } | |
4186 | { | |
4187 | if (!wxPyCheckForApp()) SWIG_fail; | |
4188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4189 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
4190 | wxPyEndAllowThreads(__tstate); | |
4191 | if (PyErr_Occurred()) SWIG_fail; | |
4192 | } | |
4193 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4194 | { | |
4195 | if (temp1) | |
4196 | delete arg1; | |
4197 | } | |
4198 | return resultobj; | |
4199 | fail: | |
4200 | { | |
4201 | if (temp1) | |
4202 | delete arg1; | |
4203 | } | |
4204 | return NULL; | |
d14a1e28 RD |
4205 | } |
4206 | ||
4207 | ||
0085ce49 RD |
4208 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4209 | PyObject *resultobj = 0; | |
4210 | unsigned long arg1 ; | |
4211 | wxColour *result = 0 ; | |
4212 | unsigned long val1 ; | |
4213 | int ecode1 = 0 ; | |
4214 | PyObject * obj0 = 0 ; | |
4215 | char * kwnames[] = { | |
4216 | (char *) "colRGB", NULL | |
4217 | }; | |
4218 | ||
4219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
4220 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
4221 | if (!SWIG_IsOK(ecode1)) { | |
4222 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
4223 | } | |
4224 | arg1 = static_cast< unsigned long >(val1); | |
4225 | { | |
4226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4227 | result = (wxColour *)new wxColour(arg1); | |
4228 | wxPyEndAllowThreads(__tstate); | |
4229 | if (PyErr_Occurred()) SWIG_fail; | |
4230 | } | |
4231 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4232 | return resultobj; | |
4233 | fail: | |
4234 | return NULL; | |
d14a1e28 RD |
4235 | } |
4236 | ||
4237 | ||
0085ce49 RD |
4238 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4239 | PyObject *resultobj = 0; | |
4240 | wxColour *arg1 = (wxColour *) 0 ; | |
4241 | void *argp1 = 0 ; | |
4242 | int res1 = 0 ; | |
4243 | PyObject *swig_obj[1] ; | |
4244 | ||
4245 | if (!args) SWIG_fail; | |
4246 | swig_obj[0] = args; | |
4247 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
4248 | if (!SWIG_IsOK(res1)) { | |
4249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4250 | } | |
4251 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4252 | { | |
4253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4254 | delete arg1; | |
d14a1e28 | 4255 | |
0085ce49 RD |
4256 | wxPyEndAllowThreads(__tstate); |
4257 | if (PyErr_Occurred()) SWIG_fail; | |
4258 | } | |
4259 | resultobj = SWIG_Py_Void(); | |
4260 | return resultobj; | |
4261 | fail: | |
4262 | return NULL; | |
d14a1e28 RD |
4263 | } |
4264 | ||
4265 | ||
0085ce49 RD |
4266 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4267 | PyObject *resultobj = 0; | |
4268 | wxColour *arg1 = (wxColour *) 0 ; | |
4269 | byte result; | |
4270 | void *argp1 = 0 ; | |
4271 | int res1 = 0 ; | |
4272 | PyObject *swig_obj[1] ; | |
4273 | ||
4274 | if (!args) SWIG_fail; | |
4275 | swig_obj[0] = args; | |
4276 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4277 | if (!SWIG_IsOK(res1)) { | |
4278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4279 | } | |
4280 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4281 | { | |
4282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4283 | result = (byte)(arg1)->Red(); | |
4284 | wxPyEndAllowThreads(__tstate); | |
4285 | if (PyErr_Occurred()) SWIG_fail; | |
4286 | } | |
4287 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4288 | return resultobj; | |
4289 | fail: | |
4290 | return NULL; | |
d14a1e28 RD |
4291 | } |
4292 | ||
4293 | ||
0085ce49 RD |
4294 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4295 | PyObject *resultobj = 0; | |
4296 | wxColour *arg1 = (wxColour *) 0 ; | |
4297 | byte result; | |
4298 | void *argp1 = 0 ; | |
4299 | int res1 = 0 ; | |
4300 | PyObject *swig_obj[1] ; | |
4301 | ||
4302 | if (!args) SWIG_fail; | |
4303 | swig_obj[0] = args; | |
4304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4305 | if (!SWIG_IsOK(res1)) { | |
4306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4307 | } | |
4308 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4309 | { | |
4310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4311 | result = (byte)(arg1)->Green(); | |
4312 | wxPyEndAllowThreads(__tstate); | |
4313 | if (PyErr_Occurred()) SWIG_fail; | |
4314 | } | |
4315 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4316 | return resultobj; | |
4317 | fail: | |
4318 | return NULL; | |
5cbf236d RD |
4319 | } |
4320 | ||
4321 | ||
0085ce49 RD |
4322 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4323 | PyObject *resultobj = 0; | |
4324 | wxColour *arg1 = (wxColour *) 0 ; | |
4325 | byte result; | |
4326 | void *argp1 = 0 ; | |
4327 | int res1 = 0 ; | |
4328 | PyObject *swig_obj[1] ; | |
4329 | ||
4330 | if (!args) SWIG_fail; | |
4331 | swig_obj[0] = args; | |
4332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4333 | if (!SWIG_IsOK(res1)) { | |
4334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4335 | } | |
4336 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4337 | { | |
4338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4339 | result = (byte)(arg1)->Blue(); | |
4340 | wxPyEndAllowThreads(__tstate); | |
4341 | if (PyErr_Occurred()) SWIG_fail; | |
4342 | } | |
4343 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4344 | return resultobj; | |
4345 | fail: | |
4346 | return NULL; | |
d14a1e28 RD |
4347 | } |
4348 | ||
4349 | ||
fc46b7f3 RD |
4350 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4351 | PyObject *resultobj = 0; | |
4352 | wxColour *arg1 = (wxColour *) 0 ; | |
4353 | byte result; | |
4354 | void *argp1 = 0 ; | |
4355 | int res1 = 0 ; | |
4356 | PyObject *swig_obj[1] ; | |
4357 | ||
4358 | if (!args) SWIG_fail; | |
4359 | swig_obj[0] = args; | |
4360 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4361 | if (!SWIG_IsOK(res1)) { | |
4362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4363 | } | |
4364 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4365 | { | |
4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4367 | result = (byte)(arg1)->Alpha(); | |
4368 | wxPyEndAllowThreads(__tstate); | |
4369 | if (PyErr_Occurred()) SWIG_fail; | |
4370 | } | |
4371 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4372 | return resultobj; | |
4373 | fail: | |
4374 | return NULL; | |
4375 | } | |
4376 | ||
4377 | ||
b39fe951 | 4378 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
4379 | PyObject *resultobj = 0; |
4380 | wxColour *arg1 = (wxColour *) 0 ; | |
4381 | bool result; | |
4382 | void *argp1 = 0 ; | |
4383 | int res1 = 0 ; | |
4384 | PyObject *swig_obj[1] ; | |
4385 | ||
4386 | if (!args) SWIG_fail; | |
4387 | swig_obj[0] = args; | |
4388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4389 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4391 | } |
4392 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4393 | { | |
4394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4395 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
4396 | wxPyEndAllowThreads(__tstate); |
4397 | if (PyErr_Occurred()) SWIG_fail; | |
4398 | } | |
4399 | { | |
4400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4401 | } | |
4402 | return resultobj; | |
4403 | fail: | |
4404 | return NULL; | |
4405 | } | |
4406 | ||
4407 | ||
4408 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4409 | PyObject *resultobj = 0; | |
4410 | wxColour *arg1 = (wxColour *) 0 ; | |
4411 | byte arg2 ; | |
4412 | byte arg3 ; | |
4413 | byte arg4 ; | |
fc46b7f3 | 4414 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4415 | void *argp1 = 0 ; |
4416 | int res1 = 0 ; | |
4417 | unsigned char val2 ; | |
4418 | int ecode2 = 0 ; | |
4419 | unsigned char val3 ; | |
4420 | int ecode3 = 0 ; | |
4421 | unsigned char val4 ; | |
4422 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4423 | unsigned char val5 ; |
4424 | int ecode5 = 0 ; | |
0085ce49 RD |
4425 | PyObject * obj0 = 0 ; |
4426 | PyObject * obj1 = 0 ; | |
4427 | PyObject * obj2 = 0 ; | |
4428 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4429 | PyObject * obj4 = 0 ; |
0085ce49 | 4430 | char * kwnames[] = { |
fc46b7f3 | 4431 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4432 | }; |
4433 | ||
fc46b7f3 | 4434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
0085ce49 RD |
4435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4436 | if (!SWIG_IsOK(res1)) { | |
4437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4438 | } | |
4439 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4440 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4441 | if (!SWIG_IsOK(ecode2)) { | |
4442 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4443 | } | |
4444 | arg2 = static_cast< byte >(val2); | |
4445 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4446 | if (!SWIG_IsOK(ecode3)) { | |
4447 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4448 | } | |
4449 | arg3 = static_cast< byte >(val3); | |
4450 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4451 | if (!SWIG_IsOK(ecode4)) { | |
4452 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4453 | } | |
4454 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4455 | if (obj4) { |
4456 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4457 | if (!SWIG_IsOK(ecode5)) { | |
4458 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4459 | } | |
4460 | arg5 = static_cast< byte >(val5); | |
4461 | } | |
0085ce49 RD |
4462 | { |
4463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4464 | (arg1)->Set(arg2,arg3,arg4,arg5); |
0085ce49 RD |
4465 | wxPyEndAllowThreads(__tstate); |
4466 | if (PyErr_Occurred()) SWIG_fail; | |
4467 | } | |
4468 | resultobj = SWIG_Py_Void(); | |
4469 | return resultobj; | |
4470 | fail: | |
4471 | return NULL; | |
4472 | } | |
4473 | ||
4474 | ||
4475 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4476 | PyObject *resultobj = 0; | |
4477 | wxColour *arg1 = (wxColour *) 0 ; | |
4478 | unsigned long arg2 ; | |
4479 | void *argp1 = 0 ; | |
4480 | int res1 = 0 ; | |
4481 | unsigned long val2 ; | |
4482 | int ecode2 = 0 ; | |
4483 | PyObject * obj0 = 0 ; | |
4484 | PyObject * obj1 = 0 ; | |
4485 | char * kwnames[] = { | |
4486 | (char *) "self",(char *) "colRGB", NULL | |
4487 | }; | |
4488 | ||
4489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4491 | if (!SWIG_IsOK(res1)) { | |
4492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4493 | } | |
4494 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4495 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4496 | if (!SWIG_IsOK(ecode2)) { | |
4497 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4498 | } | |
4499 | arg2 = static_cast< unsigned long >(val2); | |
4500 | { | |
4501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4502 | (arg1)->Set(arg2); | |
4503 | wxPyEndAllowThreads(__tstate); | |
4504 | if (PyErr_Occurred()) SWIG_fail; | |
4505 | } | |
4506 | resultobj = SWIG_Py_Void(); | |
4507 | return resultobj; | |
4508 | fail: | |
4509 | return NULL; | |
4510 | } | |
4511 | ||
4512 | ||
4513 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4514 | PyObject *resultobj = 0; | |
4515 | wxColour *arg1 = (wxColour *) 0 ; | |
4516 | wxString *arg2 = 0 ; | |
4517 | void *argp1 = 0 ; | |
4518 | int res1 = 0 ; | |
4519 | bool temp2 = false ; | |
4520 | PyObject * obj0 = 0 ; | |
4521 | PyObject * obj1 = 0 ; | |
4522 | char * kwnames[] = { | |
4523 | (char *) "self",(char *) "colourName", NULL | |
4524 | }; | |
4525 | ||
4526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4527 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4528 | if (!SWIG_IsOK(res1)) { | |
4529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4530 | } | |
4531 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4532 | { | |
4533 | arg2 = wxString_in_helper(obj1); | |
4534 | if (arg2 == NULL) SWIG_fail; | |
4535 | temp2 = true; | |
4536 | } | |
4537 | { | |
4538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4539 | (arg1)->Set((wxString const &)*arg2); |
0085ce49 RD |
4540 | wxPyEndAllowThreads(__tstate); |
4541 | if (PyErr_Occurred()) SWIG_fail; | |
4542 | } | |
4543 | resultobj = SWIG_Py_Void(); | |
4544 | { | |
4545 | if (temp2) | |
4546 | delete arg2; | |
4547 | } | |
4548 | return resultobj; | |
4549 | fail: | |
4550 | { | |
4551 | if (temp2) | |
4552 | delete arg2; | |
4553 | } | |
4554 | return NULL; | |
d14a1e28 RD |
4555 | } |
4556 | ||
4557 | ||
01f6b6d3 RD |
4558 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4559 | PyObject *resultobj = 0; | |
4560 | wxColour *arg1 = (wxColour *) 0 ; | |
4561 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4562 | wxString result; | |
4563 | void *argp1 = 0 ; | |
4564 | int res1 = 0 ; | |
4565 | long val2 ; | |
4566 | int ecode2 = 0 ; | |
4567 | PyObject * obj0 = 0 ; | |
4568 | PyObject * obj1 = 0 ; | |
4569 | char * kwnames[] = { | |
4570 | (char *) "self",(char *) "flags", NULL | |
4571 | }; | |
4572 | ||
4573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4575 | if (!SWIG_IsOK(res1)) { | |
4576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4577 | } | |
4578 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4579 | if (obj1) { | |
4580 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4581 | if (!SWIG_IsOK(ecode2)) { | |
4582 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4583 | } | |
4584 | arg2 = static_cast< long >(val2); | |
4585 | } | |
4586 | { | |
4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4588 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4589 | wxPyEndAllowThreads(__tstate); | |
4590 | if (PyErr_Occurred()) SWIG_fail; | |
4591 | } | |
4592 | { | |
4593 | #if wxUSE_UNICODE | |
4594 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4595 | #else | |
4596 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4597 | #endif | |
4598 | } | |
4599 | return resultobj; | |
4600 | fail: | |
4601 | return NULL; | |
4602 | } | |
4603 | ||
4604 | ||
0085ce49 RD |
4605 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4606 | PyObject *resultobj = 0; | |
4607 | wxColour *arg1 = (wxColour *) 0 ; | |
4608 | long result; | |
4609 | void *argp1 = 0 ; | |
4610 | int res1 = 0 ; | |
4611 | PyObject *swig_obj[1] ; | |
4612 | ||
4613 | if (!args) SWIG_fail; | |
4614 | swig_obj[0] = args; | |
4615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4616 | if (!SWIG_IsOK(res1)) { | |
4617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4618 | } | |
4619 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4620 | { | |
4621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4622 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4623 | wxPyEndAllowThreads(__tstate); | |
4624 | if (PyErr_Occurred()) SWIG_fail; | |
4625 | } | |
4626 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4627 | return resultobj; | |
4628 | fail: | |
4629 | return NULL; | |
4630 | } | |
4631 | ||
4632 | ||
4633 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4634 | PyObject *resultobj = 0; | |
4635 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4636 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4637 | bool result; |
4638 | void *argp1 = 0 ; | |
4639 | int res1 = 0 ; | |
0085ce49 RD |
4640 | PyObject * obj0 = 0 ; |
4641 | PyObject * obj1 = 0 ; | |
4642 | char * kwnames[] = { | |
e9d6f3a4 | 4643 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4644 | }; |
4645 | ||
4646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4648 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4650 | } |
4651 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4652 | arg2 = obj1; |
0085ce49 | 4653 | { |
e9d6f3a4 | 4654 | result = (bool)wxColour___eq__(arg1,arg2); |
0085ce49 RD |
4655 | if (PyErr_Occurred()) SWIG_fail; |
4656 | } | |
4657 | { | |
4658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4659 | } | |
4660 | return resultobj; | |
4661 | fail: | |
4662 | return NULL; | |
4663 | } | |
4664 | ||
4665 | ||
4666 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4667 | PyObject *resultobj = 0; | |
4668 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4669 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4670 | bool result; |
4671 | void *argp1 = 0 ; | |
4672 | int res1 = 0 ; | |
0085ce49 RD |
4673 | PyObject * obj0 = 0 ; |
4674 | PyObject * obj1 = 0 ; | |
4675 | char * kwnames[] = { | |
e9d6f3a4 | 4676 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4677 | }; |
4678 | ||
4679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4681 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4683 | } |
4684 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4685 | arg2 = obj1; |
0085ce49 | 4686 | { |
e9d6f3a4 | 4687 | result = (bool)wxColour___ne__(arg1,arg2); |
0085ce49 RD |
4688 | if (PyErr_Occurred()) SWIG_fail; |
4689 | } | |
4690 | { | |
4691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4692 | } | |
4693 | return resultobj; | |
4694 | fail: | |
4695 | return NULL; | |
d14a1e28 RD |
4696 | } |
4697 | ||
4698 | ||
fc46b7f3 | 4699 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
4700 | PyObject *resultobj = 0; |
4701 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4702 | bool arg2 = (bool) false ; |
0085ce49 RD |
4703 | PyObject *result = 0 ; |
4704 | void *argp1 = 0 ; | |
4705 | int res1 = 0 ; | |
fc46b7f3 RD |
4706 | bool val2 ; |
4707 | int ecode2 = 0 ; | |
4708 | PyObject * obj0 = 0 ; | |
4709 | PyObject * obj1 = 0 ; | |
4710 | char * kwnames[] = { | |
4711 | (char *) "self",(char *) "includeAlpha", NULL | |
4712 | }; | |
0085ce49 | 4713 | |
fc46b7f3 RD |
4714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
0085ce49 RD |
4716 | if (!SWIG_IsOK(res1)) { |
4717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4718 | } | |
4719 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4720 | if (obj1) { |
4721 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4722 | if (!SWIG_IsOK(ecode2)) { | |
4723 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4724 | } | |
4725 | arg2 = static_cast< bool >(val2); | |
4726 | } | |
0085ce49 | 4727 | { |
fc46b7f3 | 4728 | result = (PyObject *)wxColour_Get(arg1,arg2); |
0085ce49 RD |
4729 | if (PyErr_Occurred()) SWIG_fail; |
4730 | } | |
4731 | resultobj = result; | |
4732 | return resultobj; | |
4733 | fail: | |
4734 | return NULL; | |
d14a1e28 RD |
4735 | } |
4736 | ||
4737 | ||
0085ce49 RD |
4738 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4739 | PyObject *resultobj = 0; | |
4740 | wxColour *arg1 = (wxColour *) 0 ; | |
4741 | unsigned long result; | |
4742 | void *argp1 = 0 ; | |
4743 | int res1 = 0 ; | |
4744 | PyObject *swig_obj[1] ; | |
4745 | ||
4746 | if (!args) SWIG_fail; | |
4747 | swig_obj[0] = args; | |
4748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4749 | if (!SWIG_IsOK(res1)) { | |
4750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4751 | } | |
4752 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4753 | { | |
0085ce49 | 4754 | result = (unsigned long)wxColour_GetRGB(arg1); |
0085ce49 RD |
4755 | if (PyErr_Occurred()) SWIG_fail; |
4756 | } | |
4757 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4758 | return resultobj; | |
4759 | fail: | |
4760 | return NULL; | |
4761 | } | |
4762 | ||
4763 | ||
4764 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4765 | PyObject *obj; | |
4766 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4767 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4768 | return SWIG_Py_Void(); | |
4769 | } | |
4770 | ||
4771 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4772 | return SWIG_Python_InitShadowInstance(args); | |
4773 | } | |
4774 | ||
4775 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4776 | PyObject *resultobj = 0; | |
4777 | int arg1 ; | |
4778 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4779 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4780 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4781 | wxPalette *result = 0 ; | |
4782 | int val1 ; | |
4783 | int ecode1 = 0 ; | |
4784 | void *argp2 = 0 ; | |
4785 | int res2 = 0 ; | |
4786 | void *argp3 = 0 ; | |
4787 | int res3 = 0 ; | |
4788 | void *argp4 = 0 ; | |
4789 | int res4 = 0 ; | |
4790 | PyObject * obj0 = 0 ; | |
4791 | PyObject * obj1 = 0 ; | |
4792 | PyObject * obj2 = 0 ; | |
4793 | PyObject * obj3 = 0 ; | |
4794 | char * kwnames[] = { | |
4795 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4796 | }; | |
4797 | ||
4798 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4799 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4800 | if (!SWIG_IsOK(ecode1)) { | |
4801 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4802 | } | |
4803 | arg1 = static_cast< int >(val1); | |
4804 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4805 | if (!SWIG_IsOK(res2)) { | |
4806 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4807 | } | |
4808 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4809 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4810 | if (!SWIG_IsOK(res3)) { | |
4811 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4812 | } | |
4813 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4814 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4815 | if (!SWIG_IsOK(res4)) { | |
4816 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4817 | } | |
4818 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4819 | { | |
4820 | if (!wxPyCheckForApp()) SWIG_fail; | |
4821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4822 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4823 | wxPyEndAllowThreads(__tstate); | |
4824 | if (PyErr_Occurred()) SWIG_fail; | |
4825 | } | |
4826 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4827 | return resultobj; | |
4828 | fail: | |
4829 | return NULL; | |
d14a1e28 RD |
4830 | } |
4831 | ||
4832 | ||
0085ce49 RD |
4833 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4834 | PyObject *resultobj = 0; | |
4835 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4836 | void *argp1 = 0 ; | |
4837 | int res1 = 0 ; | |
4838 | PyObject *swig_obj[1] ; | |
4839 | ||
4840 | if (!args) SWIG_fail; | |
4841 | swig_obj[0] = args; | |
4842 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4843 | if (!SWIG_IsOK(res1)) { | |
4844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4845 | } | |
4846 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4847 | { | |
4848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4849 | delete arg1; | |
d14a1e28 | 4850 | |
0085ce49 RD |
4851 | wxPyEndAllowThreads(__tstate); |
4852 | if (PyErr_Occurred()) SWIG_fail; | |
4853 | } | |
4854 | resultobj = SWIG_Py_Void(); | |
4855 | return resultobj; | |
4856 | fail: | |
4857 | return NULL; | |
4858 | } | |
4859 | ||
4860 | ||
4861 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4862 | PyObject *resultobj = 0; | |
4863 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4864 | byte arg2 ; | |
4865 | byte arg3 ; | |
4866 | byte arg4 ; | |
4867 | int result; | |
4868 | void *argp1 = 0 ; | |
4869 | int res1 = 0 ; | |
4870 | unsigned char val2 ; | |
4871 | int ecode2 = 0 ; | |
4872 | unsigned char val3 ; | |
4873 | int ecode3 = 0 ; | |
4874 | unsigned char val4 ; | |
4875 | int ecode4 = 0 ; | |
4876 | PyObject * obj0 = 0 ; | |
4877 | PyObject * obj1 = 0 ; | |
4878 | PyObject * obj2 = 0 ; | |
4879 | PyObject * obj3 = 0 ; | |
4880 | char * kwnames[] = { | |
4881 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4882 | }; | |
4883 | ||
4884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4886 | if (!SWIG_IsOK(res1)) { | |
4887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4888 | } | |
4889 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4890 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4891 | if (!SWIG_IsOK(ecode2)) { | |
4892 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4893 | } | |
4894 | arg2 = static_cast< byte >(val2); | |
4895 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4896 | if (!SWIG_IsOK(ecode3)) { | |
4897 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4898 | } | |
4899 | arg3 = static_cast< byte >(val3); | |
4900 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4901 | if (!SWIG_IsOK(ecode4)) { | |
4902 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4903 | } | |
4904 | arg4 = static_cast< byte >(val4); | |
4905 | { | |
4906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4907 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4908 | wxPyEndAllowThreads(__tstate); | |
4909 | if (PyErr_Occurred()) SWIG_fail; | |
4910 | } | |
4911 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4912 | return resultobj; | |
4913 | fail: | |
4914 | return NULL; | |
4915 | } | |
4916 | ||
4917 | ||
4918 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4919 | PyObject *resultobj = 0; | |
4920 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4921 | int arg2 ; | |
4922 | byte *arg3 = (byte *) 0 ; | |
4923 | byte *arg4 = (byte *) 0 ; | |
4924 | byte *arg5 = (byte *) 0 ; | |
4925 | bool result; | |
4926 | void *argp1 = 0 ; | |
4927 | int res1 = 0 ; | |
4928 | int val2 ; | |
4929 | int ecode2 = 0 ; | |
4930 | byte temp3 ; | |
4931 | int res3 = SWIG_TMPOBJ ; | |
4932 | byte temp4 ; | |
4933 | int res4 = SWIG_TMPOBJ ; | |
4934 | byte temp5 ; | |
4935 | int res5 = SWIG_TMPOBJ ; | |
4936 | PyObject * obj0 = 0 ; | |
4937 | PyObject * obj1 = 0 ; | |
4938 | char * kwnames[] = { | |
4939 | (char *) "self",(char *) "pixel", NULL | |
4940 | }; | |
4941 | ||
4942 | arg3 = &temp3; | |
4943 | arg4 = &temp4; | |
4944 | arg5 = &temp5; | |
4945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4947 | if (!SWIG_IsOK(res1)) { | |
4948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4949 | } | |
4950 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4951 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4952 | if (!SWIG_IsOK(ecode2)) { | |
4953 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4954 | } | |
4955 | arg2 = static_cast< int >(val2); | |
4956 | { | |
4957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4958 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4959 | wxPyEndAllowThreads(__tstate); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
4962 | { | |
4963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4964 | } | |
4965 | if (SWIG_IsTmpObj(res3)) { | |
4966 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4967 | } else { | |
4968 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4969 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4970 | } | |
4971 | if (SWIG_IsTmpObj(res4)) { | |
4972 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4973 | } else { | |
4974 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4975 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4976 | } | |
4977 | if (SWIG_IsTmpObj(res5)) { | |
4978 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4979 | } else { | |
4980 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4981 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4982 | } | |
4983 | return resultobj; | |
4984 | fail: | |
4985 | return NULL; | |
d14a1e28 RD |
4986 | } |
4987 | ||
4988 | ||
0085ce49 RD |
4989 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4990 | PyObject *resultobj = 0; | |
4991 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4992 | int result; | |
4993 | void *argp1 = 0 ; | |
4994 | int res1 = 0 ; | |
4995 | PyObject *swig_obj[1] ; | |
4996 | ||
4997 | if (!args) SWIG_fail; | |
4998 | swig_obj[0] = args; | |
4999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
5000 | if (!SWIG_IsOK(res1)) { | |
5001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
5002 | } | |
5003 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5004 | { | |
5005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5006 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
5007 | wxPyEndAllowThreads(__tstate); | |
5008 | if (PyErr_Occurred()) SWIG_fail; | |
5009 | } | |
5010 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5011 | return resultobj; | |
5012 | fail: | |
5013 | return NULL; | |
d14a1e28 RD |
5014 | } |
5015 | ||
5016 | ||
b39fe951 | 5017 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5018 | PyObject *resultobj = 0; |
5019 | wxPalette *arg1 = (wxPalette *) 0 ; | |
5020 | bool result; | |
5021 | void *argp1 = 0 ; | |
5022 | int res1 = 0 ; | |
5023 | PyObject *swig_obj[1] ; | |
5024 | ||
5025 | if (!args) SWIG_fail; | |
5026 | swig_obj[0] = args; | |
5027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
5028 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
0085ce49 RD |
5030 | } |
5031 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5032 | { | |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5034 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5035 | wxPyEndAllowThreads(__tstate); |
5036 | if (PyErr_Occurred()) SWIG_fail; | |
5037 | } | |
5038 | { | |
5039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5040 | } | |
5041 | return resultobj; | |
5042 | fail: | |
5043 | return NULL; | |
5044 | } | |
5045 | ||
5046 | ||
5047 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5048 | PyObject *obj; | |
5049 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5050 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
5051 | return SWIG_Py_Void(); | |
5052 | } | |
5053 | ||
5054 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5055 | return SWIG_Python_InitShadowInstance(args); | |
5056 | } | |
5057 | ||
5058 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5059 | PyObject *resultobj = 0; | |
5060 | wxColour *arg1 = 0 ; | |
5061 | int arg2 = (int) 1 ; | |
5062 | int arg3 = (int) wxSOLID ; | |
5063 | wxPen *result = 0 ; | |
5064 | wxColour temp1 ; | |
5065 | int val2 ; | |
5066 | int ecode2 = 0 ; | |
5067 | int val3 ; | |
5068 | int ecode3 = 0 ; | |
5069 | PyObject * obj0 = 0 ; | |
5070 | PyObject * obj1 = 0 ; | |
5071 | PyObject * obj2 = 0 ; | |
5072 | char * kwnames[] = { | |
5073 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
5074 | }; | |
5075 | ||
5076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5077 | { | |
5078 | arg1 = &temp1; | |
5079 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5080 | } | |
5081 | if (obj1) { | |
5082 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5083 | if (!SWIG_IsOK(ecode2)) { | |
5084 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
5085 | } | |
5086 | arg2 = static_cast< int >(val2); | |
5087 | } | |
5088 | if (obj2) { | |
5089 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5090 | if (!SWIG_IsOK(ecode3)) { | |
5091 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
5092 | } | |
5093 | arg3 = static_cast< int >(val3); | |
5094 | } | |
5095 | { | |
5096 | if (!wxPyCheckForApp()) SWIG_fail; | |
5097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5098 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
5099 | wxPyEndAllowThreads(__tstate); | |
5100 | if (PyErr_Occurred()) SWIG_fail; | |
5101 | } | |
5102 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
5103 | return resultobj; | |
5104 | fail: | |
5105 | return NULL; | |
d14a1e28 RD |
5106 | } |
5107 | ||
5108 | ||
0085ce49 RD |
5109 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5110 | PyObject *resultobj = 0; | |
5111 | wxPen *arg1 = (wxPen *) 0 ; | |
5112 | void *argp1 = 0 ; | |
5113 | int res1 = 0 ; | |
5114 | PyObject *swig_obj[1] ; | |
5115 | ||
5116 | if (!args) SWIG_fail; | |
5117 | swig_obj[0] = args; | |
5118 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
5119 | if (!SWIG_IsOK(res1)) { | |
5120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5121 | } | |
5122 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5123 | { | |
5124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5125 | delete arg1; | |
d14a1e28 | 5126 | |
0085ce49 RD |
5127 | wxPyEndAllowThreads(__tstate); |
5128 | if (PyErr_Occurred()) SWIG_fail; | |
5129 | } | |
5130 | resultobj = SWIG_Py_Void(); | |
5131 | return resultobj; | |
5132 | fail: | |
5133 | return NULL; | |
d14a1e28 RD |
5134 | } |
5135 | ||
5136 | ||
0085ce49 RD |
5137 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5138 | PyObject *resultobj = 0; | |
5139 | wxPen *arg1 = (wxPen *) 0 ; | |
5140 | int result; | |
5141 | void *argp1 = 0 ; | |
5142 | int res1 = 0 ; | |
5143 | PyObject *swig_obj[1] ; | |
5144 | ||
5145 | if (!args) SWIG_fail; | |
5146 | swig_obj[0] = args; | |
5147 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5148 | if (!SWIG_IsOK(res1)) { | |
5149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5150 | } | |
5151 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5152 | { | |
5153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5154 | result = (int)(arg1)->GetCap(); | |
5155 | wxPyEndAllowThreads(__tstate); | |
5156 | if (PyErr_Occurred()) SWIG_fail; | |
5157 | } | |
5158 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5159 | return resultobj; | |
5160 | fail: | |
5161 | return NULL; | |
d14a1e28 RD |
5162 | } |
5163 | ||
5164 | ||
0085ce49 RD |
5165 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5166 | PyObject *resultobj = 0; | |
5167 | wxPen *arg1 = (wxPen *) 0 ; | |
5168 | wxColour result; | |
5169 | void *argp1 = 0 ; | |
5170 | int res1 = 0 ; | |
5171 | PyObject *swig_obj[1] ; | |
5172 | ||
5173 | if (!args) SWIG_fail; | |
5174 | swig_obj[0] = args; | |
5175 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5176 | if (!SWIG_IsOK(res1)) { | |
5177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5178 | } | |
5179 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5180 | { | |
5181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5182 | result = (arg1)->GetColour(); | |
5183 | wxPyEndAllowThreads(__tstate); | |
5184 | if (PyErr_Occurred()) SWIG_fail; | |
5185 | } | |
5186 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5187 | return resultobj; | |
5188 | fail: | |
5189 | return NULL; | |
d14a1e28 RD |
5190 | } |
5191 | ||
5192 | ||
0085ce49 RD |
5193 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5194 | PyObject *resultobj = 0; | |
5195 | wxPen *arg1 = (wxPen *) 0 ; | |
5196 | int result; | |
5197 | void *argp1 = 0 ; | |
5198 | int res1 = 0 ; | |
5199 | PyObject *swig_obj[1] ; | |
5200 | ||
5201 | if (!args) SWIG_fail; | |
5202 | swig_obj[0] = args; | |
5203 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5204 | if (!SWIG_IsOK(res1)) { | |
5205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5206 | } | |
5207 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5208 | { | |
5209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5210 | result = (int)(arg1)->GetJoin(); | |
5211 | wxPyEndAllowThreads(__tstate); | |
5212 | if (PyErr_Occurred()) SWIG_fail; | |
5213 | } | |
5214 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5215 | return resultobj; | |
5216 | fail: | |
5217 | return NULL; | |
d14a1e28 RD |
5218 | } |
5219 | ||
5220 | ||
0085ce49 RD |
5221 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5222 | PyObject *resultobj = 0; | |
5223 | wxPen *arg1 = (wxPen *) 0 ; | |
5224 | int result; | |
5225 | void *argp1 = 0 ; | |
5226 | int res1 = 0 ; | |
5227 | PyObject *swig_obj[1] ; | |
5228 | ||
5229 | if (!args) SWIG_fail; | |
5230 | swig_obj[0] = args; | |
5231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5232 | if (!SWIG_IsOK(res1)) { | |
5233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5234 | } | |
5235 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5236 | { | |
5237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5238 | result = (int)(arg1)->GetStyle(); | |
5239 | wxPyEndAllowThreads(__tstate); | |
5240 | if (PyErr_Occurred()) SWIG_fail; | |
5241 | } | |
5242 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5243 | return resultobj; | |
5244 | fail: | |
5245 | return NULL; | |
3adfb63b RD |
5246 | } |
5247 | ||
5248 | ||
0085ce49 RD |
5249 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5250 | PyObject *resultobj = 0; | |
5251 | wxPen *arg1 = (wxPen *) 0 ; | |
5252 | int result; | |
5253 | void *argp1 = 0 ; | |
5254 | int res1 = 0 ; | |
5255 | PyObject *swig_obj[1] ; | |
5256 | ||
5257 | if (!args) SWIG_fail; | |
5258 | swig_obj[0] = args; | |
5259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5260 | if (!SWIG_IsOK(res1)) { | |
5261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5262 | } | |
5263 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5264 | { | |
5265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5266 | result = (int)(arg1)->GetWidth(); | |
5267 | wxPyEndAllowThreads(__tstate); | |
5268 | if (PyErr_Occurred()) SWIG_fail; | |
5269 | } | |
5270 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5271 | return resultobj; | |
5272 | fail: | |
5273 | return NULL; | |
d14a1e28 RD |
5274 | } |
5275 | ||
5276 | ||
b39fe951 | 5277 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5278 | PyObject *resultobj = 0; |
5279 | wxPen *arg1 = (wxPen *) 0 ; | |
5280 | bool result; | |
5281 | void *argp1 = 0 ; | |
5282 | int res1 = 0 ; | |
5283 | PyObject *swig_obj[1] ; | |
5284 | ||
5285 | if (!args) SWIG_fail; | |
5286 | swig_obj[0] = args; | |
5287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5288 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
0085ce49 RD |
5290 | } |
5291 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5292 | { | |
5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5294 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5295 | wxPyEndAllowThreads(__tstate); |
5296 | if (PyErr_Occurred()) SWIG_fail; | |
5297 | } | |
5298 | { | |
5299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5300 | } | |
5301 | return resultobj; | |
5302 | fail: | |
5303 | return NULL; | |
5304 | } | |
5305 | ||
5306 | ||
5307 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5308 | PyObject *resultobj = 0; | |
5309 | wxPen *arg1 = (wxPen *) 0 ; | |
5310 | int arg2 ; | |
5311 | void *argp1 = 0 ; | |
5312 | int res1 = 0 ; | |
5313 | int val2 ; | |
5314 | int ecode2 = 0 ; | |
5315 | PyObject * obj0 = 0 ; | |
5316 | PyObject * obj1 = 0 ; | |
5317 | char * kwnames[] = { | |
5318 | (char *) "self",(char *) "cap_style", NULL | |
5319 | }; | |
5320 | ||
5321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5323 | if (!SWIG_IsOK(res1)) { | |
5324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5325 | } | |
5326 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5327 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5328 | if (!SWIG_IsOK(ecode2)) { | |
5329 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5330 | } | |
5331 | arg2 = static_cast< int >(val2); | |
5332 | { | |
5333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5334 | (arg1)->SetCap(arg2); | |
5335 | wxPyEndAllowThreads(__tstate); | |
5336 | if (PyErr_Occurred()) SWIG_fail; | |
5337 | } | |
5338 | resultobj = SWIG_Py_Void(); | |
5339 | return resultobj; | |
5340 | fail: | |
5341 | return NULL; | |
5342 | } | |
5343 | ||
5344 | ||
5345 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5346 | PyObject *resultobj = 0; | |
5347 | wxPen *arg1 = (wxPen *) 0 ; | |
5348 | wxColour *arg2 = 0 ; | |
5349 | void *argp1 = 0 ; | |
5350 | int res1 = 0 ; | |
5351 | wxColour temp2 ; | |
5352 | PyObject * obj0 = 0 ; | |
5353 | PyObject * obj1 = 0 ; | |
5354 | char * kwnames[] = { | |
5355 | (char *) "self",(char *) "colour", NULL | |
5356 | }; | |
5357 | ||
5358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5359 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5360 | if (!SWIG_IsOK(res1)) { | |
5361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5362 | } | |
5363 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5364 | { | |
5365 | arg2 = &temp2; | |
5366 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5367 | } | |
5368 | { | |
5369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5370 | (arg1)->SetColour(*arg2); | |
5371 | wxPyEndAllowThreads(__tstate); | |
5372 | if (PyErr_Occurred()) SWIG_fail; | |
5373 | } | |
5374 | resultobj = SWIG_Py_Void(); | |
5375 | return resultobj; | |
5376 | fail: | |
5377 | return NULL; | |
5378 | } | |
5379 | ||
5380 | ||
5381 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5382 | PyObject *resultobj = 0; | |
5383 | wxPen *arg1 = (wxPen *) 0 ; | |
5384 | int arg2 ; | |
5385 | void *argp1 = 0 ; | |
5386 | int res1 = 0 ; | |
5387 | int val2 ; | |
5388 | int ecode2 = 0 ; | |
5389 | PyObject * obj0 = 0 ; | |
5390 | PyObject * obj1 = 0 ; | |
5391 | char * kwnames[] = { | |
5392 | (char *) "self",(char *) "join_style", NULL | |
5393 | }; | |
5394 | ||
5395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5397 | if (!SWIG_IsOK(res1)) { | |
5398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5399 | } | |
5400 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5401 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5402 | if (!SWIG_IsOK(ecode2)) { | |
5403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5404 | } | |
5405 | arg2 = static_cast< int >(val2); | |
5406 | { | |
5407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5408 | (arg1)->SetJoin(arg2); | |
5409 | wxPyEndAllowThreads(__tstate); | |
5410 | if (PyErr_Occurred()) SWIG_fail; | |
5411 | } | |
5412 | resultobj = SWIG_Py_Void(); | |
5413 | return resultobj; | |
5414 | fail: | |
5415 | return NULL; | |
5416 | } | |
5417 | ||
5418 | ||
5419 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5420 | PyObject *resultobj = 0; | |
5421 | wxPen *arg1 = (wxPen *) 0 ; | |
5422 | int arg2 ; | |
5423 | void *argp1 = 0 ; | |
5424 | int res1 = 0 ; | |
5425 | int val2 ; | |
5426 | int ecode2 = 0 ; | |
5427 | PyObject * obj0 = 0 ; | |
5428 | PyObject * obj1 = 0 ; | |
5429 | char * kwnames[] = { | |
5430 | (char *) "self",(char *) "style", NULL | |
5431 | }; | |
5432 | ||
5433 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5434 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5435 | if (!SWIG_IsOK(res1)) { | |
5436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5437 | } | |
5438 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5439 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5440 | if (!SWIG_IsOK(ecode2)) { | |
5441 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5442 | } | |
5443 | arg2 = static_cast< int >(val2); | |
5444 | { | |
5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5446 | (arg1)->SetStyle(arg2); | |
5447 | wxPyEndAllowThreads(__tstate); | |
5448 | if (PyErr_Occurred()) SWIG_fail; | |
5449 | } | |
5450 | resultobj = SWIG_Py_Void(); | |
5451 | return resultobj; | |
5452 | fail: | |
5453 | return NULL; | |
5454 | } | |
5455 | ||
5456 | ||
5457 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5458 | PyObject *resultobj = 0; | |
5459 | wxPen *arg1 = (wxPen *) 0 ; | |
5460 | int arg2 ; | |
5461 | void *argp1 = 0 ; | |
5462 | int res1 = 0 ; | |
5463 | int val2 ; | |
5464 | int ecode2 = 0 ; | |
5465 | PyObject * obj0 = 0 ; | |
5466 | PyObject * obj1 = 0 ; | |
5467 | char * kwnames[] = { | |
5468 | (char *) "self",(char *) "width", NULL | |
5469 | }; | |
5470 | ||
5471 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5472 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5473 | if (!SWIG_IsOK(res1)) { | |
5474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5475 | } | |
5476 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5477 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5478 | if (!SWIG_IsOK(ecode2)) { | |
5479 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5480 | } | |
5481 | arg2 = static_cast< int >(val2); | |
5482 | { | |
5483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5484 | (arg1)->SetWidth(arg2); | |
5485 | wxPyEndAllowThreads(__tstate); | |
5486 | if (PyErr_Occurred()) SWIG_fail; | |
5487 | } | |
5488 | resultobj = SWIG_Py_Void(); | |
5489 | return resultobj; | |
5490 | fail: | |
5491 | return NULL; | |
5492 | } | |
5493 | ||
5494 | ||
5495 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5496 | PyObject *resultobj = 0; | |
5497 | wxPen *arg1 = (wxPen *) 0 ; | |
5498 | int arg2 ; | |
5499 | wxDash *arg3 = (wxDash *) 0 ; | |
5500 | void *argp1 = 0 ; | |
5501 | int res1 = 0 ; | |
5502 | PyObject * obj0 = 0 ; | |
5503 | PyObject * obj1 = 0 ; | |
5504 | char * kwnames[] = { | |
5505 | (char *) "self",(char *) "dashes", NULL | |
5506 | }; | |
5507 | ||
5508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5510 | if (!SWIG_IsOK(res1)) { | |
5511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5512 | } | |
5513 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5514 | { | |
5515 | arg2 = PyList_Size(obj1); | |
5516 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5517 | if (arg3 == NULL) SWIG_fail; | |
5518 | } | |
5519 | { | |
5520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5521 | (arg1)->SetDashes(arg2,arg3); | |
5522 | wxPyEndAllowThreads(__tstate); | |
5523 | if (PyErr_Occurred()) SWIG_fail; | |
5524 | } | |
5525 | resultobj = SWIG_Py_Void(); | |
5526 | { | |
5527 | if (arg3) delete [] arg3; | |
5528 | } | |
5529 | return resultobj; | |
5530 | fail: | |
5531 | { | |
5532 | if (arg3) delete [] arg3; | |
5533 | } | |
5534 | return NULL; | |
d14a1e28 RD |
5535 | } |
5536 | ||
5537 | ||
0085ce49 RD |
5538 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5539 | PyObject *resultobj = 0; | |
5540 | wxPen *arg1 = (wxPen *) 0 ; | |
5541 | PyObject *result = 0 ; | |
5542 | void *argp1 = 0 ; | |
5543 | int res1 = 0 ; | |
5544 | PyObject *swig_obj[1] ; | |
5545 | ||
5546 | if (!args) SWIG_fail; | |
5547 | swig_obj[0] = args; | |
5548 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5549 | if (!SWIG_IsOK(res1)) { | |
5550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5551 | } | |
5552 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5553 | { | |
5554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5555 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5556 | wxPyEndAllowThreads(__tstate); | |
5557 | if (PyErr_Occurred()) SWIG_fail; | |
5558 | } | |
5559 | resultobj = result; | |
5560 | return resultobj; | |
5561 | fail: | |
5562 | return NULL; | |
5563 | } | |
5564 | ||
5565 | ||
5566 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5567 | PyObject *resultobj = 0; | |
5568 | wxPen *arg1 = (wxPen *) 0 ; | |
5569 | PyObject *arg2 = (PyObject *) 0 ; | |
5570 | PyObject *arg3 = (PyObject *) 0 ; | |
5571 | void *argp1 = 0 ; | |
5572 | int res1 = 0 ; | |
5573 | PyObject * obj0 = 0 ; | |
5574 | PyObject * obj1 = 0 ; | |
5575 | PyObject * obj2 = 0 ; | |
5576 | char * kwnames[] = { | |
5577 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5578 | }; | |
5579 | ||
5580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5582 | if (!SWIG_IsOK(res1)) { | |
5583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5584 | } | |
5585 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5586 | arg2 = obj1; | |
5587 | arg3 = obj2; | |
5588 | { | |
5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5590 | wxPen__SetDashes(arg1,arg2,arg3); | |
5591 | wxPyEndAllowThreads(__tstate); | |
5592 | if (PyErr_Occurred()) SWIG_fail; | |
5593 | } | |
5594 | resultobj = SWIG_Py_Void(); | |
5595 | return resultobj; | |
5596 | fail: | |
5597 | return NULL; | |
d14a1e28 RD |
5598 | } |
5599 | ||
5600 | ||
0085ce49 RD |
5601 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5602 | PyObject *resultobj = 0; | |
5603 | wxPen *arg1 = (wxPen *) 0 ; | |
5604 | int result; | |
5605 | void *argp1 = 0 ; | |
5606 | int res1 = 0 ; | |
5607 | PyObject *swig_obj[1] ; | |
5608 | ||
5609 | if (!args) SWIG_fail; | |
5610 | swig_obj[0] = args; | |
5611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5612 | if (!SWIG_IsOK(res1)) { | |
5613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5614 | } | |
5615 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5616 | { | |
5617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5618 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) SWIG_fail; | |
5621 | } | |
5622 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5623 | return resultobj; | |
5624 | fail: | |
5625 | return NULL; | |
5626 | } | |
5627 | ||
5628 | ||
5629 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5630 | PyObject *resultobj = 0; | |
5631 | wxPen *arg1 = (wxPen *) 0 ; | |
5632 | wxPen *arg2 = (wxPen *) 0 ; | |
5633 | bool result; | |
5634 | void *argp1 = 0 ; | |
5635 | int res1 = 0 ; | |
5636 | void *argp2 = 0 ; | |
5637 | int res2 = 0 ; | |
5638 | PyObject * obj0 = 0 ; | |
5639 | PyObject * obj1 = 0 ; | |
5640 | char * kwnames[] = { | |
5641 | (char *) "self",(char *) "other", NULL | |
5642 | }; | |
5643 | ||
5644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5646 | if (!SWIG_IsOK(res1)) { | |
5647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5648 | } | |
5649 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5650 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5651 | if (!SWIG_IsOK(res2)) { | |
5652 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5653 | } | |
5654 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5655 | { | |
5656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5657 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5658 | wxPyEndAllowThreads(__tstate); | |
5659 | if (PyErr_Occurred()) SWIG_fail; | |
5660 | } | |
5661 | { | |
5662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5663 | } | |
5664 | return resultobj; | |
5665 | fail: | |
5666 | return NULL; | |
5667 | } | |
5668 | ||
5669 | ||
5670 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5671 | PyObject *resultobj = 0; | |
5672 | wxPen *arg1 = (wxPen *) 0 ; | |
5673 | wxPen *arg2 = (wxPen *) 0 ; | |
5674 | bool result; | |
5675 | void *argp1 = 0 ; | |
5676 | int res1 = 0 ; | |
5677 | void *argp2 = 0 ; | |
5678 | int res2 = 0 ; | |
5679 | PyObject * obj0 = 0 ; | |
5680 | PyObject * obj1 = 0 ; | |
5681 | char * kwnames[] = { | |
5682 | (char *) "self",(char *) "other", NULL | |
5683 | }; | |
5684 | ||
5685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5687 | if (!SWIG_IsOK(res1)) { | |
5688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5689 | } | |
5690 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5691 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5692 | if (!SWIG_IsOK(res2)) { | |
5693 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5694 | } | |
5695 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5696 | { | |
5697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5698 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5699 | wxPyEndAllowThreads(__tstate); | |
5700 | if (PyErr_Occurred()) SWIG_fail; | |
5701 | } | |
5702 | { | |
5703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5704 | } | |
5705 | return resultobj; | |
5706 | fail: | |
5707 | return NULL; | |
d14a1e28 RD |
5708 | } |
5709 | ||
5710 | ||
0085ce49 RD |
5711 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5712 | PyObject *obj; | |
5713 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5714 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5715 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5716 | } |
5717 | ||
0085ce49 RD |
5718 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5719 | return SWIG_Python_InitShadowInstance(args); | |
5720 | } | |
d14a1e28 | 5721 | |
0085ce49 RD |
5722 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5723 | PyObject *resultobj = 0; | |
5724 | wxColour *arg1 = 0 ; | |
5725 | int arg2 = (int) wxSOLID ; | |
5726 | wxBrush *result = 0 ; | |
5727 | wxColour temp1 ; | |
5728 | int val2 ; | |
5729 | int ecode2 = 0 ; | |
5730 | PyObject * obj0 = 0 ; | |
5731 | PyObject * obj1 = 0 ; | |
5732 | char * kwnames[] = { | |
5733 | (char *) "colour",(char *) "style", NULL | |
5734 | }; | |
5735 | ||
5736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5737 | { | |
5738 | arg1 = &temp1; | |
5739 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5740 | } | |
5741 | if (obj1) { | |
5742 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5743 | if (!SWIG_IsOK(ecode2)) { | |
5744 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5745 | } | |
5746 | arg2 = static_cast< int >(val2); | |
5747 | } | |
5748 | { | |
5749 | if (!wxPyCheckForApp()) SWIG_fail; | |
5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5751 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5752 | wxPyEndAllowThreads(__tstate); | |
5753 | if (PyErr_Occurred()) SWIG_fail; | |
5754 | } | |
5755 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5756 | return resultobj; | |
5757 | fail: | |
5758 | return NULL; | |
5759 | } | |
5760 | ||
5761 | ||
5762 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5763 | PyObject *resultobj = 0; | |
5764 | wxBitmap *arg1 = 0 ; | |
5765 | wxBrush *result = 0 ; | |
5766 | void *argp1 = 0 ; | |
5767 | int res1 = 0 ; | |
5768 | PyObject * obj0 = 0 ; | |
5769 | char * kwnames[] = { | |
5770 | (char *) "stippleBitmap", NULL | |
5771 | }; | |
5772 | ||
5773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5774 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5775 | if (!SWIG_IsOK(res1)) { | |
5776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5777 | } | |
5778 | if (!argp1) { | |
5779 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5780 | } | |
5781 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5782 | { | |
5783 | if (!wxPyCheckForApp()) SWIG_fail; | |
5784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5785 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5786 | wxPyEndAllowThreads(__tstate); | |
5787 | if (PyErr_Occurred()) SWIG_fail; | |
5788 | } | |
5789 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5790 | return resultobj; | |
5791 | fail: | |
5792 | return NULL; | |
d14a1e28 RD |
5793 | } |
5794 | ||
5795 | ||
0085ce49 RD |
5796 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5797 | PyObject *resultobj = 0; | |
5798 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5799 | void *argp1 = 0 ; | |
5800 | int res1 = 0 ; | |
5801 | PyObject *swig_obj[1] ; | |
5802 | ||
5803 | if (!args) SWIG_fail; | |
5804 | swig_obj[0] = args; | |
5805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5806 | if (!SWIG_IsOK(res1)) { | |
5807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5808 | } | |
5809 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5810 | { | |
5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5812 | delete arg1; | |
d14a1e28 | 5813 | |
0085ce49 RD |
5814 | wxPyEndAllowThreads(__tstate); |
5815 | if (PyErr_Occurred()) SWIG_fail; | |
5816 | } | |
5817 | resultobj = SWIG_Py_Void(); | |
5818 | return resultobj; | |
5819 | fail: | |
5820 | return NULL; | |
5821 | } | |
5822 | ||
5823 | ||
5824 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5825 | PyObject *resultobj = 0; | |
5826 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5827 | wxColour *arg2 = 0 ; | |
5828 | void *argp1 = 0 ; | |
5829 | int res1 = 0 ; | |
5830 | wxColour temp2 ; | |
5831 | PyObject * obj0 = 0 ; | |
5832 | PyObject * obj1 = 0 ; | |
5833 | char * kwnames[] = { | |
5834 | (char *) "self",(char *) "col", NULL | |
5835 | }; | |
5836 | ||
5837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5839 | if (!SWIG_IsOK(res1)) { | |
5840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5841 | } | |
5842 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5843 | { | |
5844 | arg2 = &temp2; | |
5845 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5846 | } | |
5847 | { | |
5848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5849 | (arg1)->SetColour((wxColour const &)*arg2); | |
5850 | wxPyEndAllowThreads(__tstate); | |
5851 | if (PyErr_Occurred()) SWIG_fail; | |
5852 | } | |
5853 | resultobj = SWIG_Py_Void(); | |
5854 | return resultobj; | |
5855 | fail: | |
5856 | return NULL; | |
5857 | } | |
5858 | ||
5859 | ||
5860 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5861 | PyObject *resultobj = 0; | |
5862 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5863 | int arg2 ; | |
5864 | void *argp1 = 0 ; | |
5865 | int res1 = 0 ; | |
5866 | int val2 ; | |
5867 | int ecode2 = 0 ; | |
5868 | PyObject * obj0 = 0 ; | |
5869 | PyObject * obj1 = 0 ; | |
5870 | char * kwnames[] = { | |
5871 | (char *) "self",(char *) "style", NULL | |
5872 | }; | |
5873 | ||
5874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5876 | if (!SWIG_IsOK(res1)) { | |
5877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5878 | } | |
5879 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5880 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5881 | if (!SWIG_IsOK(ecode2)) { | |
5882 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5883 | } | |
5884 | arg2 = static_cast< int >(val2); | |
5885 | { | |
5886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5887 | (arg1)->SetStyle(arg2); | |
5888 | wxPyEndAllowThreads(__tstate); | |
5889 | if (PyErr_Occurred()) SWIG_fail; | |
5890 | } | |
5891 | resultobj = SWIG_Py_Void(); | |
5892 | return resultobj; | |
5893 | fail: | |
5894 | return NULL; | |
5895 | } | |
5896 | ||
5897 | ||
5898 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5899 | PyObject *resultobj = 0; | |
5900 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5901 | wxBitmap *arg2 = 0 ; | |
5902 | void *argp1 = 0 ; | |
5903 | int res1 = 0 ; | |
5904 | void *argp2 = 0 ; | |
5905 | int res2 = 0 ; | |
5906 | PyObject * obj0 = 0 ; | |
5907 | PyObject * obj1 = 0 ; | |
5908 | char * kwnames[] = { | |
5909 | (char *) "self",(char *) "stipple", NULL | |
5910 | }; | |
5911 | ||
5912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5914 | if (!SWIG_IsOK(res1)) { | |
5915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5916 | } | |
5917 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5918 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5919 | if (!SWIG_IsOK(res2)) { | |
5920 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5921 | } | |
5922 | if (!argp2) { | |
5923 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5924 | } | |
5925 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5926 | { | |
5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5928 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5929 | wxPyEndAllowThreads(__tstate); | |
5930 | if (PyErr_Occurred()) SWIG_fail; | |
5931 | } | |
5932 | resultobj = SWIG_Py_Void(); | |
5933 | return resultobj; | |
5934 | fail: | |
5935 | return NULL; | |
d14a1e28 RD |
5936 | } |
5937 | ||
5938 | ||
0085ce49 RD |
5939 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5940 | PyObject *resultobj = 0; | |
5941 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5942 | wxColour result; | |
5943 | void *argp1 = 0 ; | |
5944 | int res1 = 0 ; | |
5945 | PyObject *swig_obj[1] ; | |
5946 | ||
5947 | if (!args) SWIG_fail; | |
5948 | swig_obj[0] = args; | |
5949 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5950 | if (!SWIG_IsOK(res1)) { | |
5951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5952 | } | |
5953 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5954 | { | |
5955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5956 | result = ((wxBrush const *)arg1)->GetColour(); | |
5957 | wxPyEndAllowThreads(__tstate); | |
5958 | if (PyErr_Occurred()) SWIG_fail; | |
5959 | } | |
5960 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5961 | return resultobj; | |
5962 | fail: | |
5963 | return NULL; | |
d14a1e28 RD |
5964 | } |
5965 | ||
5966 | ||
0085ce49 RD |
5967 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5968 | PyObject *resultobj = 0; | |
5969 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5970 | int result; | |
5971 | void *argp1 = 0 ; | |
5972 | int res1 = 0 ; | |
5973 | PyObject *swig_obj[1] ; | |
5974 | ||
5975 | if (!args) SWIG_fail; | |
5976 | swig_obj[0] = args; | |
5977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5978 | if (!SWIG_IsOK(res1)) { | |
5979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5980 | } | |
5981 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5982 | { | |
5983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5984 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5985 | wxPyEndAllowThreads(__tstate); | |
5986 | if (PyErr_Occurred()) SWIG_fail; | |
5987 | } | |
5988 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5989 | return resultobj; | |
5990 | fail: | |
5991 | return NULL; | |
d14a1e28 RD |
5992 | } |
5993 | ||
5994 | ||
0085ce49 RD |
5995 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5996 | PyObject *resultobj = 0; | |
5997 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5998 | wxBitmap *result = 0 ; | |
5999 | void *argp1 = 0 ; | |
6000 | int res1 = 0 ; | |
6001 | PyObject *swig_obj[1] ; | |
6002 | ||
6003 | if (!args) SWIG_fail; | |
6004 | swig_obj[0] = args; | |
6005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6006 | if (!SWIG_IsOK(res1)) { | |
6007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6008 | } | |
6009 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6010 | { | |
6011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6012 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
6013 | wxPyEndAllowThreads(__tstate); | |
6014 | if (PyErr_Occurred()) SWIG_fail; | |
6015 | } | |
6016 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6017 | return resultobj; | |
6018 | fail: | |
6019 | return NULL; | |
d14a1e28 RD |
6020 | } |
6021 | ||
6022 | ||
0085ce49 RD |
6023 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6024 | PyObject *resultobj = 0; | |
6025 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6026 | bool result; | |
6027 | void *argp1 = 0 ; | |
6028 | int res1 = 0 ; | |
6029 | PyObject *swig_obj[1] ; | |
6030 | ||
6031 | if (!args) SWIG_fail; | |
6032 | swig_obj[0] = args; | |
6033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6034 | if (!SWIG_IsOK(res1)) { | |
6035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6036 | } | |
6037 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6038 | { | |
6039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6040 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
6041 | wxPyEndAllowThreads(__tstate); | |
6042 | if (PyErr_Occurred()) SWIG_fail; | |
6043 | } | |
6044 | { | |
6045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6046 | } | |
6047 | return resultobj; | |
6048 | fail: | |
6049 | return NULL; | |
f78cc896 RD |
6050 | } |
6051 | ||
6052 | ||
b39fe951 | 6053 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6054 | PyObject *resultobj = 0; |
6055 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6056 | bool result; | |
6057 | void *argp1 = 0 ; | |
6058 | int res1 = 0 ; | |
6059 | PyObject *swig_obj[1] ; | |
6060 | ||
6061 | if (!args) SWIG_fail; | |
6062 | swig_obj[0] = args; | |
6063 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6064 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
0085ce49 RD |
6066 | } |
6067 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6068 | { | |
6069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 6070 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6071 | wxPyEndAllowThreads(__tstate); |
6072 | if (PyErr_Occurred()) SWIG_fail; | |
6073 | } | |
6074 | { | |
6075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6076 | } | |
6077 | return resultobj; | |
6078 | fail: | |
6079 | return NULL; | |
d14a1e28 RD |
6080 | } |
6081 | ||
6082 | ||
0085ce49 RD |
6083 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6084 | PyObject *obj; | |
6085 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6086 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
6087 | return SWIG_Py_Void(); | |
d14a1e28 RD |
6088 | } |
6089 | ||
0085ce49 RD |
6090 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6091 | return SWIG_Python_InitShadowInstance(args); | |
6092 | } | |
d14a1e28 | 6093 | |
0085ce49 RD |
6094 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6095 | PyObject *resultobj = 0; | |
6096 | wxString *arg1 = 0 ; | |
6097 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
6098 | wxBitmap *result = 0 ; | |
6099 | bool temp1 = false ; | |
6100 | int val2 ; | |
6101 | int ecode2 = 0 ; | |
6102 | PyObject * obj0 = 0 ; | |
6103 | PyObject * obj1 = 0 ; | |
6104 | char * kwnames[] = { | |
6105 | (char *) "name",(char *) "type", NULL | |
6106 | }; | |
6107 | ||
6108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6109 | { | |
6110 | arg1 = wxString_in_helper(obj0); | |
6111 | if (arg1 == NULL) SWIG_fail; | |
6112 | temp1 = true; | |
6113 | } | |
6114 | if (obj1) { | |
6115 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6116 | if (!SWIG_IsOK(ecode2)) { | |
6117 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6118 | } | |
6119 | arg2 = static_cast< wxBitmapType >(val2); | |
6120 | } | |
6121 | { | |
6122 | if (!wxPyCheckForApp()) SWIG_fail; | |
6123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6124 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
6125 | wxPyEndAllowThreads(__tstate); | |
6126 | if (PyErr_Occurred()) SWIG_fail; | |
6127 | } | |
6128 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
6129 | { | |
6130 | if (temp1) | |
6131 | delete arg1; | |
6132 | } | |
6133 | return resultobj; | |
6134 | fail: | |
6135 | { | |
6136 | if (temp1) | |
6137 | delete arg1; | |
6138 | } | |
6139 | return NULL; | |
d14a1e28 RD |
6140 | } |
6141 | ||
6142 | ||
0085ce49 RD |
6143 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6144 | PyObject *resultobj = 0; | |
6145 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6146 | void *argp1 = 0 ; | |
6147 | int res1 = 0 ; | |
6148 | PyObject *swig_obj[1] ; | |
6149 | ||
6150 | if (!args) SWIG_fail; | |
6151 | swig_obj[0] = args; | |
6152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
6153 | if (!SWIG_IsOK(res1)) { | |
6154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6155 | } | |
6156 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6157 | { | |
0085ce49 | 6158 | delete arg1; |
66c033b4 | 6159 | |
0085ce49 RD |
6160 | if (PyErr_Occurred()) SWIG_fail; |
6161 | } | |
6162 | resultobj = SWIG_Py_Void(); | |
6163 | return resultobj; | |
6164 | fail: | |
6165 | return NULL; | |
6166 | } | |
6167 | ||
6168 | ||
6169 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6170 | PyObject *resultobj = 0; | |
6171 | int arg1 ; | |
6172 | int arg2 ; | |
6173 | int arg3 = (int) -1 ; | |
6174 | wxBitmap *result = 0 ; | |
6175 | int val1 ; | |
6176 | int ecode1 = 0 ; | |
6177 | int val2 ; | |
6178 | int ecode2 = 0 ; | |
6179 | int val3 ; | |
6180 | int ecode3 = 0 ; | |
6181 | PyObject * obj0 = 0 ; | |
6182 | PyObject * obj1 = 0 ; | |
6183 | PyObject * obj2 = 0 ; | |
6184 | char * kwnames[] = { | |
6185 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
6186 | }; | |
6187 | ||
6188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6189 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6190 | if (!SWIG_IsOK(ecode1)) { | |
6191 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
6192 | } | |
6193 | arg1 = static_cast< int >(val1); | |
6194 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6195 | if (!SWIG_IsOK(ecode2)) { | |
6196 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
6197 | } | |
6198 | arg2 = static_cast< int >(val2); | |
6199 | if (obj2) { | |
6200 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6201 | if (!SWIG_IsOK(ecode3)) { | |
6202 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
6203 | } | |
6204 | arg3 = static_cast< int >(val3); | |
6205 | } | |
6206 | { | |
6207 | if (!wxPyCheckForApp()) SWIG_fail; | |
6208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6209 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
6210 | wxPyEndAllowThreads(__tstate); | |
6211 | if (PyErr_Occurred()) SWIG_fail; | |
6212 | } | |
6213 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6214 | return resultobj; | |
6215 | fail: | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
6220 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6221 | PyObject *resultobj = 0; | |
6222 | wxIcon *arg1 = 0 ; | |
6223 | wxBitmap *result = 0 ; | |
6224 | void *argp1 = 0 ; | |
6225 | int res1 = 0 ; | |
6226 | PyObject * obj0 = 0 ; | |
6227 | char * kwnames[] = { | |
6228 | (char *) "icon", NULL | |
6229 | }; | |
6230 | ||
6231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6232 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6233 | if (!SWIG_IsOK(res1)) { | |
6234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6235 | } | |
6236 | if (!argp1) { | |
6237 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6238 | } | |
6239 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6240 | { | |
6241 | if (!wxPyCheckForApp()) SWIG_fail; | |
6242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6243 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6244 | wxPyEndAllowThreads(__tstate); | |
6245 | if (PyErr_Occurred()) SWIG_fail; | |
6246 | } | |
6247 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6248 | return resultobj; | |
6249 | fail: | |
6250 | return NULL; | |
6251 | } | |
6252 | ||
6253 | ||
6254 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6255 | PyObject *resultobj = 0; | |
6256 | wxImage *arg1 = 0 ; | |
6257 | int arg2 = (int) -1 ; | |
6258 | wxBitmap *result = 0 ; | |
6259 | void *argp1 = 0 ; | |
6260 | int res1 = 0 ; | |
6261 | int val2 ; | |
6262 | int ecode2 = 0 ; | |
6263 | PyObject * obj0 = 0 ; | |
6264 | PyObject * obj1 = 0 ; | |
6265 | char * kwnames[] = { | |
6266 | (char *) "image",(char *) "depth", NULL | |
6267 | }; | |
6268 | ||
6269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6270 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6271 | if (!SWIG_IsOK(res1)) { | |
6272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6273 | } | |
6274 | if (!argp1) { | |
6275 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6276 | } | |
6277 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6278 | if (obj1) { | |
6279 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6280 | if (!SWIG_IsOK(ecode2)) { | |
6281 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6282 | } | |
6283 | arg2 = static_cast< int >(val2); | |
6284 | } | |
6285 | { | |
6286 | if (!wxPyCheckForApp()) SWIG_fail; | |
6287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6288 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6289 | wxPyEndAllowThreads(__tstate); | |
6290 | if (PyErr_Occurred()) SWIG_fail; | |
6291 | } | |
6292 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6293 | return resultobj; | |
6294 | fail: | |
6295 | return NULL; | |
66c033b4 RD |
6296 | } |
6297 | ||
6298 | ||
0085ce49 RD |
6299 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6300 | PyObject *resultobj = 0; | |
6301 | PyObject *arg1 = (PyObject *) 0 ; | |
6302 | wxBitmap *result = 0 ; | |
6303 | PyObject * obj0 = 0 ; | |
6304 | char * kwnames[] = { | |
6305 | (char *) "listOfStrings", NULL | |
6306 | }; | |
6307 | ||
6308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6309 | arg1 = obj0; | |
6310 | { | |
6311 | if (!wxPyCheckForApp()) SWIG_fail; | |
6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6313 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6314 | wxPyEndAllowThreads(__tstate); | |
6315 | if (PyErr_Occurred()) SWIG_fail; | |
6316 | } | |
6317 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6318 | return resultobj; | |
6319 | fail: | |
6320 | return NULL; | |
6321 | } | |
6322 | ||
6323 | ||
6324 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6325 | PyObject *resultobj = 0; | |
6326 | PyObject *arg1 = (PyObject *) 0 ; | |
6327 | int arg2 ; | |
6328 | int arg3 ; | |
6329 | int arg4 = (int) 1 ; | |
6330 | wxBitmap *result = 0 ; | |
6331 | int val2 ; | |
6332 | int ecode2 = 0 ; | |
6333 | int val3 ; | |
6334 | int ecode3 = 0 ; | |
6335 | int val4 ; | |
6336 | int ecode4 = 0 ; | |
6337 | PyObject * obj0 = 0 ; | |
6338 | PyObject * obj1 = 0 ; | |
6339 | PyObject * obj2 = 0 ; | |
6340 | PyObject * obj3 = 0 ; | |
6341 | char * kwnames[] = { | |
6342 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6343 | }; | |
6344 | ||
6345 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6346 | arg1 = obj0; | |
6347 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6348 | if (!SWIG_IsOK(ecode2)) { | |
6349 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6350 | } | |
6351 | arg2 = static_cast< int >(val2); | |
6352 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6353 | if (!SWIG_IsOK(ecode3)) { | |
6354 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6355 | } | |
6356 | arg3 = static_cast< int >(val3); | |
6357 | if (obj3) { | |
6358 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6359 | if (!SWIG_IsOK(ecode4)) { | |
6360 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6361 | } | |
6362 | arg4 = static_cast< int >(val4); | |
6363 | } | |
6364 | { | |
6365 | if (!wxPyCheckForApp()) SWIG_fail; | |
6366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6367 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6368 | wxPyEndAllowThreads(__tstate); | |
6369 | if (PyErr_Occurred()) SWIG_fail; | |
6370 | } | |
6371 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6372 | return resultobj; | |
6373 | fail: | |
6374 | return NULL; | |
d14a1e28 RD |
6375 | } |
6376 | ||
6377 | ||
b39fe951 | 6378 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6379 | PyObject *resultobj = 0; |
6380 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6381 | bool result; | |
6382 | void *argp1 = 0 ; | |
6383 | int res1 = 0 ; | |
6384 | PyObject *swig_obj[1] ; | |
6385 | ||
6386 | if (!args) SWIG_fail; | |
6387 | swig_obj[0] = args; | |
6388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6389 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
0085ce49 RD |
6391 | } |
6392 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6393 | { | |
b39fe951 | 6394 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6395 | if (PyErr_Occurred()) SWIG_fail; |
6396 | } | |
6397 | { | |
6398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6399 | } | |
6400 | return resultobj; | |
6401 | fail: | |
6402 | return NULL; | |
d14a1e28 RD |
6403 | } |
6404 | ||
6405 | ||
0085ce49 RD |
6406 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6407 | PyObject *resultobj = 0; | |
6408 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6409 | int result; | |
6410 | void *argp1 = 0 ; | |
6411 | int res1 = 0 ; | |
6412 | PyObject *swig_obj[1] ; | |
6413 | ||
6414 | if (!args) SWIG_fail; | |
6415 | swig_obj[0] = args; | |
6416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6417 | if (!SWIG_IsOK(res1)) { | |
6418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6419 | } | |
6420 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6421 | { | |
0085ce49 | 6422 | result = (int)(arg1)->GetWidth(); |
0085ce49 RD |
6423 | if (PyErr_Occurred()) SWIG_fail; |
6424 | } | |
6425 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6426 | return resultobj; | |
6427 | fail: | |
6428 | return NULL; | |
d14a1e28 RD |
6429 | } |
6430 | ||
6431 | ||
0085ce49 RD |
6432 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6433 | PyObject *resultobj = 0; | |
6434 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6435 | int result; | |
6436 | void *argp1 = 0 ; | |
6437 | int res1 = 0 ; | |
6438 | PyObject *swig_obj[1] ; | |
6439 | ||
6440 | if (!args) SWIG_fail; | |
6441 | swig_obj[0] = args; | |
6442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6443 | if (!SWIG_IsOK(res1)) { | |
6444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6445 | } | |
6446 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6447 | { | |
0085ce49 | 6448 | result = (int)(arg1)->GetHeight(); |
0085ce49 RD |
6449 | if (PyErr_Occurred()) SWIG_fail; |
6450 | } | |
6451 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6452 | return resultobj; | |
6453 | fail: | |
6454 | return NULL; | |
d14a1e28 RD |
6455 | } |
6456 | ||
6457 | ||
0085ce49 RD |
6458 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6459 | PyObject *resultobj = 0; | |
6460 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6461 | int result; | |
6462 | void *argp1 = 0 ; | |
6463 | int res1 = 0 ; | |
6464 | PyObject *swig_obj[1] ; | |
6465 | ||
6466 | if (!args) SWIG_fail; | |
6467 | swig_obj[0] = args; | |
6468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6469 | if (!SWIG_IsOK(res1)) { | |
6470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6471 | } | |
6472 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6473 | { | |
0085ce49 | 6474 | result = (int)(arg1)->GetDepth(); |
0085ce49 RD |
6475 | if (PyErr_Occurred()) SWIG_fail; |
6476 | } | |
6477 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6478 | return resultobj; | |
6479 | fail: | |
6480 | return NULL; | |
d14a1e28 RD |
6481 | } |
6482 | ||
6483 | ||
0085ce49 RD |
6484 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6485 | PyObject *resultobj = 0; | |
6486 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6487 | wxSize result; | |
6488 | void *argp1 = 0 ; | |
6489 | int res1 = 0 ; | |
6490 | PyObject *swig_obj[1] ; | |
6491 | ||
6492 | if (!args) SWIG_fail; | |
6493 | swig_obj[0] = args; | |
6494 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6495 | if (!SWIG_IsOK(res1)) { | |
6496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6497 | } | |
6498 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6499 | { | |
0085ce49 | 6500 | result = wxBitmap_GetSize(arg1); |
0085ce49 RD |
6501 | if (PyErr_Occurred()) SWIG_fail; |
6502 | } | |
6503 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6504 | return resultobj; | |
6505 | fail: | |
6506 | return NULL; | |
d14a1e28 RD |
6507 | } |
6508 | ||
6509 | ||
0085ce49 RD |
6510 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6511 | PyObject *resultobj = 0; | |
6512 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6513 | SwigValueWrapper<wxImage > result; | |
6514 | void *argp1 = 0 ; | |
6515 | int res1 = 0 ; | |
6516 | PyObject *swig_obj[1] ; | |
6517 | ||
6518 | if (!args) SWIG_fail; | |
6519 | swig_obj[0] = args; | |
6520 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6521 | if (!SWIG_IsOK(res1)) { | |
6522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6523 | } | |
6524 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6525 | { | |
0085ce49 | 6526 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
0085ce49 RD |
6527 | if (PyErr_Occurred()) SWIG_fail; |
6528 | } | |
6529 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6530 | return resultobj; | |
6531 | fail: | |
6532 | return NULL; | |
d14a1e28 RD |
6533 | } |
6534 | ||
6535 | ||
0085ce49 RD |
6536 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6537 | PyObject *resultobj = 0; | |
6538 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6539 | wxMask *result = 0 ; | |
6540 | void *argp1 = 0 ; | |
6541 | int res1 = 0 ; | |
6542 | PyObject *swig_obj[1] ; | |
6543 | ||
6544 | if (!args) SWIG_fail; | |
6545 | swig_obj[0] = args; | |
6546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6547 | if (!SWIG_IsOK(res1)) { | |
6548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6549 | } | |
6550 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6551 | { | |
0085ce49 | 6552 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
0085ce49 RD |
6553 | if (PyErr_Occurred()) SWIG_fail; |
6554 | } | |
6555 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6556 | return resultobj; | |
6557 | fail: | |
6558 | return NULL; | |
6559 | } | |
6560 | ||
6561 | ||
6562 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6563 | PyObject *resultobj = 0; | |
6564 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6565 | wxMask *arg2 = (wxMask *) 0 ; | |
6566 | void *argp1 = 0 ; | |
6567 | int res1 = 0 ; | |
6568 | int res2 = 0 ; | |
6569 | PyObject * obj0 = 0 ; | |
6570 | PyObject * obj1 = 0 ; | |
6571 | char * kwnames[] = { | |
6572 | (char *) "self",(char *) "mask", NULL | |
6573 | }; | |
6574 | ||
6575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6577 | if (!SWIG_IsOK(res1)) { | |
6578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6579 | } | |
6580 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6581 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6582 | if (!SWIG_IsOK(res2)) { | |
6583 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6584 | } | |
6585 | { | |
0085ce49 | 6586 | (arg1)->SetMask(arg2); |
0085ce49 RD |
6587 | if (PyErr_Occurred()) SWIG_fail; |
6588 | } | |
6589 | resultobj = SWIG_Py_Void(); | |
6590 | return resultobj; | |
6591 | fail: | |
6592 | return NULL; | |
6593 | } | |
6594 | ||
6595 | ||
6596 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6597 | PyObject *resultobj = 0; | |
6598 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6599 | wxColour *arg2 = 0 ; | |
6600 | void *argp1 = 0 ; | |
6601 | int res1 = 0 ; | |
6602 | wxColour temp2 ; | |
6603 | PyObject * obj0 = 0 ; | |
6604 | PyObject * obj1 = 0 ; | |
6605 | char * kwnames[] = { | |
6606 | (char *) "self",(char *) "colour", NULL | |
6607 | }; | |
6608 | ||
6609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6611 | if (!SWIG_IsOK(res1)) { | |
6612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6613 | } | |
6614 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6615 | { | |
6616 | arg2 = &temp2; | |
6617 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6618 | } | |
6619 | { | |
0085ce49 | 6620 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
0085ce49 RD |
6621 | if (PyErr_Occurred()) SWIG_fail; |
6622 | } | |
6623 | resultobj = SWIG_Py_Void(); | |
6624 | return resultobj; | |
6625 | fail: | |
6626 | return NULL; | |
6627 | } | |
6628 | ||
6629 | ||
6630 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6631 | PyObject *resultobj = 0; | |
6632 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6633 | wxRect *arg2 = 0 ; | |
6634 | SwigValueWrapper<wxBitmap > result; | |
6635 | void *argp1 = 0 ; | |
6636 | int res1 = 0 ; | |
6637 | wxRect temp2 ; | |
6638 | PyObject * obj0 = 0 ; | |
6639 | PyObject * obj1 = 0 ; | |
6640 | char * kwnames[] = { | |
6641 | (char *) "self",(char *) "rect", NULL | |
6642 | }; | |
6643 | ||
6644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6646 | if (!SWIG_IsOK(res1)) { | |
6647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6648 | } | |
6649 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6650 | { | |
6651 | arg2 = &temp2; | |
6652 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6653 | } | |
6654 | { | |
0085ce49 | 6655 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
0085ce49 RD |
6656 | if (PyErr_Occurred()) SWIG_fail; |
6657 | } | |
6658 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6659 | return resultobj; | |
6660 | fail: | |
6661 | return NULL; | |
6662 | } | |
6663 | ||
6664 | ||
6665 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6666 | PyObject *resultobj = 0; | |
6667 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6668 | wxString *arg2 = 0 ; | |
6669 | wxBitmapType arg3 ; | |
6670 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6671 | bool result; | |
6672 | void *argp1 = 0 ; | |
6673 | int res1 = 0 ; | |
6674 | bool temp2 = false ; | |
6675 | int val3 ; | |
6676 | int ecode3 = 0 ; | |
6677 | void *argp4 = 0 ; | |
6678 | int res4 = 0 ; | |
6679 | PyObject * obj0 = 0 ; | |
6680 | PyObject * obj1 = 0 ; | |
6681 | PyObject * obj2 = 0 ; | |
6682 | PyObject * obj3 = 0 ; | |
6683 | char * kwnames[] = { | |
6684 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6685 | }; | |
6686 | ||
6687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6689 | if (!SWIG_IsOK(res1)) { | |
6690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6691 | } | |
6692 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6693 | { | |
6694 | arg2 = wxString_in_helper(obj1); | |
6695 | if (arg2 == NULL) SWIG_fail; | |
6696 | temp2 = true; | |
6697 | } | |
6698 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6699 | if (!SWIG_IsOK(ecode3)) { | |
6700 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6701 | } | |
6702 | arg3 = static_cast< wxBitmapType >(val3); | |
6703 | if (obj3) { | |
6704 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6705 | if (!SWIG_IsOK(res4)) { | |
6706 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6707 | } |
0085ce49 RD |
6708 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6709 | } | |
6710 | { | |
0085ce49 | 6711 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
0085ce49 RD |
6712 | if (PyErr_Occurred()) SWIG_fail; |
6713 | } | |
6714 | { | |
6715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6716 | } | |
6717 | { | |
6718 | if (temp2) | |
6719 | delete arg2; | |
6720 | } | |
6721 | return resultobj; | |
6722 | fail: | |
6723 | { | |
6724 | if (temp2) | |
6725 | delete arg2; | |
6726 | } | |
6727 | return NULL; | |
6728 | } | |
6729 | ||
6730 | ||
6731 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6732 | PyObject *resultobj = 0; | |
6733 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6734 | wxString *arg2 = 0 ; | |
6735 | wxBitmapType arg3 ; | |
6736 | bool result; | |
6737 | void *argp1 = 0 ; | |
6738 | int res1 = 0 ; | |
6739 | bool temp2 = false ; | |
6740 | int val3 ; | |
6741 | int ecode3 = 0 ; | |
6742 | PyObject * obj0 = 0 ; | |
6743 | PyObject * obj1 = 0 ; | |
6744 | PyObject * obj2 = 0 ; | |
6745 | char * kwnames[] = { | |
6746 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6747 | }; | |
6748 | ||
6749 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6750 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6751 | if (!SWIG_IsOK(res1)) { | |
6752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6753 | } | |
6754 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6755 | { | |
6756 | arg2 = wxString_in_helper(obj1); | |
6757 | if (arg2 == NULL) SWIG_fail; | |
6758 | temp2 = true; | |
6759 | } | |
6760 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6761 | if (!SWIG_IsOK(ecode3)) { | |
6762 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6763 | } | |
6764 | arg3 = static_cast< wxBitmapType >(val3); | |
6765 | { | |
0085ce49 | 6766 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
6767 | if (PyErr_Occurred()) SWIG_fail; |
6768 | } | |
6769 | { | |
6770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6771 | } | |
6772 | { | |
6773 | if (temp2) | |
6774 | delete arg2; | |
6775 | } | |
6776 | return resultobj; | |
6777 | fail: | |
6778 | { | |
6779 | if (temp2) | |
6780 | delete arg2; | |
6781 | } | |
6782 | return NULL; | |
d04418a7 RD |
6783 | } |
6784 | ||
6785 | ||
0085ce49 RD |
6786 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6787 | PyObject *resultobj = 0; | |
6788 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6789 | wxPalette *result = 0 ; | |
6790 | void *argp1 = 0 ; | |
6791 | int res1 = 0 ; | |
6792 | PyObject *swig_obj[1] ; | |
6793 | ||
6794 | if (!args) SWIG_fail; | |
6795 | swig_obj[0] = args; | |
6796 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6797 | if (!SWIG_IsOK(res1)) { | |
6798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6799 | } | |
6800 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6801 | { | |
0085ce49 | 6802 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
0085ce49 RD |
6803 | if (PyErr_Occurred()) SWIG_fail; |
6804 | } | |
6805 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6806 | return resultobj; | |
6807 | fail: | |
6808 | return NULL; | |
6809 | } | |
6810 | ||
6811 | ||
6812 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6813 | PyObject *resultobj = 0; | |
6814 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6815 | wxIcon *arg2 = 0 ; | |
6816 | bool result; | |
6817 | void *argp1 = 0 ; | |
6818 | int res1 = 0 ; | |
6819 | void *argp2 = 0 ; | |
6820 | int res2 = 0 ; | |
6821 | PyObject * obj0 = 0 ; | |
6822 | PyObject * obj1 = 0 ; | |
6823 | char * kwnames[] = { | |
6824 | (char *) "self",(char *) "icon", NULL | |
6825 | }; | |
6826 | ||
6827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6829 | if (!SWIG_IsOK(res1)) { | |
6830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6831 | } | |
6832 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6833 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6834 | if (!SWIG_IsOK(res2)) { | |
6835 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6836 | } | |
6837 | if (!argp2) { | |
6838 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6839 | } | |
6840 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6841 | { | |
0085ce49 | 6842 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
0085ce49 RD |
6843 | if (PyErr_Occurred()) SWIG_fail; |
6844 | } | |
6845 | { | |
6846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6847 | } | |
6848 | return resultobj; | |
6849 | fail: | |
6850 | return NULL; | |
6851 | } | |
6852 | ||
6853 | ||
6854 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6855 | PyObject *resultobj = 0; | |
6856 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6857 | int arg2 ; | |
6858 | void *argp1 = 0 ; | |
6859 | int res1 = 0 ; | |
6860 | int val2 ; | |
6861 | int ecode2 = 0 ; | |
6862 | PyObject * obj0 = 0 ; | |
6863 | PyObject * obj1 = 0 ; | |
6864 | char * kwnames[] = { | |
6865 | (char *) "self",(char *) "height", NULL | |
6866 | }; | |
6867 | ||
6868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6870 | if (!SWIG_IsOK(res1)) { | |
6871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6872 | } | |
6873 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6874 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6875 | if (!SWIG_IsOK(ecode2)) { | |
6876 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6877 | } | |
6878 | arg2 = static_cast< int >(val2); | |
6879 | { | |
0085ce49 | 6880 | (arg1)->SetHeight(arg2); |
0085ce49 RD |
6881 | if (PyErr_Occurred()) SWIG_fail; |
6882 | } | |
6883 | resultobj = SWIG_Py_Void(); | |
6884 | return resultobj; | |
6885 | fail: | |
6886 | return NULL; | |
6887 | } | |
6888 | ||
6889 | ||
6890 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6891 | PyObject *resultobj = 0; | |
6892 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6893 | int arg2 ; | |
6894 | void *argp1 = 0 ; | |
6895 | int res1 = 0 ; | |
6896 | int val2 ; | |
6897 | int ecode2 = 0 ; | |
6898 | PyObject * obj0 = 0 ; | |
6899 | PyObject * obj1 = 0 ; | |
6900 | char * kwnames[] = { | |
6901 | (char *) "self",(char *) "width", NULL | |
6902 | }; | |
6903 | ||
6904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6906 | if (!SWIG_IsOK(res1)) { | |
6907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6908 | } | |
6909 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6910 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6911 | if (!SWIG_IsOK(ecode2)) { | |
6912 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6913 | } | |
6914 | arg2 = static_cast< int >(val2); | |
6915 | { | |
0085ce49 | 6916 | (arg1)->SetWidth(arg2); |
0085ce49 RD |
6917 | if (PyErr_Occurred()) SWIG_fail; |
6918 | } | |
6919 | resultobj = SWIG_Py_Void(); | |
6920 | return resultobj; | |
6921 | fail: | |
6922 | return NULL; | |
6923 | } | |
6924 | ||
6925 | ||
6926 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6927 | PyObject *resultobj = 0; | |
6928 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6929 | int arg2 ; | |
6930 | void *argp1 = 0 ; | |
6931 | int res1 = 0 ; | |
6932 | int val2 ; | |
6933 | int ecode2 = 0 ; | |
6934 | PyObject * obj0 = 0 ; | |
6935 | PyObject * obj1 = 0 ; | |
6936 | char * kwnames[] = { | |
6937 | (char *) "self",(char *) "depth", NULL | |
6938 | }; | |
6939 | ||
6940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6942 | if (!SWIG_IsOK(res1)) { | |
6943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6944 | } | |
6945 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6946 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6947 | if (!SWIG_IsOK(ecode2)) { | |
6948 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6949 | } | |
6950 | arg2 = static_cast< int >(val2); | |
6951 | { | |
0085ce49 | 6952 | (arg1)->SetDepth(arg2); |
0085ce49 RD |
6953 | if (PyErr_Occurred()) SWIG_fail; |
6954 | } | |
6955 | resultobj = SWIG_Py_Void(); | |
6956 | return resultobj; | |
6957 | fail: | |
6958 | return NULL; | |
6959 | } | |
6960 | ||
6961 | ||
6962 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6963 | PyObject *resultobj = 0; | |
6964 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6965 | wxSize *arg2 = 0 ; | |
6966 | void *argp1 = 0 ; | |
6967 | int res1 = 0 ; | |
6968 | wxSize temp2 ; | |
6969 | PyObject * obj0 = 0 ; | |
6970 | PyObject * obj1 = 0 ; | |
6971 | char * kwnames[] = { | |
6972 | (char *) "self",(char *) "size", NULL | |
6973 | }; | |
6974 | ||
6975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6977 | if (!SWIG_IsOK(res1)) { | |
6978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6979 | } | |
6980 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6981 | { | |
6982 | arg2 = &temp2; | |
6983 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6984 | } | |
6985 | { | |
0085ce49 | 6986 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
0085ce49 RD |
6987 | if (PyErr_Occurred()) SWIG_fail; |
6988 | } | |
6989 | resultobj = SWIG_Py_Void(); | |
6990 | return resultobj; | |
6991 | fail: | |
6992 | return NULL; | |
6993 | } | |
6994 | ||
6995 | ||
8f514ab4 RD |
6996 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6997 | PyObject *resultobj = 0; | |
6998 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6999 | buffer arg2 ; | |
7000 | int arg3 ; | |
7001 | void *argp1 = 0 ; | |
7002 | int res1 = 0 ; | |
7003 | Py_ssize_t temp2 ; | |
7004 | PyObject * obj0 = 0 ; | |
7005 | PyObject * obj1 = 0 ; | |
7006 | char * kwnames[] = { | |
7007 | (char *) "self",(char *) "data", NULL | |
7008 | }; | |
7009 | ||
7010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7012 | if (!SWIG_IsOK(res1)) { | |
7013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7014 | } | |
7015 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7016 | { | |
7017 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7018 | arg3 = (int)temp2; | |
7019 | } | |
7020 | { | |
7021 | wxBitmap_CopyFromBuffer(arg1,arg2,arg3); | |
7022 | if (PyErr_Occurred()) SWIG_fail; | |
7023 | } | |
7024 | resultobj = SWIG_Py_Void(); | |
7025 | return resultobj; | |
7026 | fail: | |
7027 | return NULL; | |
7028 | } | |
7029 | ||
7030 | ||
7031 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7032 | PyObject *resultobj = 0; | |
7033 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7034 | buffer arg2 ; | |
7035 | int arg3 ; | |
7036 | void *argp1 = 0 ; | |
7037 | int res1 = 0 ; | |
7038 | Py_ssize_t temp2 ; | |
7039 | PyObject * obj0 = 0 ; | |
7040 | PyObject * obj1 = 0 ; | |
7041 | char * kwnames[] = { | |
7042 | (char *) "self",(char *) "data", NULL | |
7043 | }; | |
7044 | ||
7045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail; | |
7046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7047 | if (!SWIG_IsOK(res1)) { | |
7048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7049 | } | |
7050 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7051 | { | |
7052 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7053 | arg3 = (int)temp2; | |
7054 | } | |
7055 | { | |
7056 | wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3); | |
7057 | if (PyErr_Occurred()) SWIG_fail; | |
7058 | } | |
7059 | resultobj = SWIG_Py_Void(); | |
7060 | return resultobj; | |
7061 | fail: | |
7062 | return NULL; | |
7063 | } | |
7064 | ||
7065 | ||
0085ce49 RD |
7066 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7067 | PyObject *resultobj = 0; | |
7068 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7069 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7070 | bool result; | |
7071 | void *argp1 = 0 ; | |
7072 | int res1 = 0 ; | |
7073 | void *argp2 = 0 ; | |
7074 | int res2 = 0 ; | |
7075 | PyObject * obj0 = 0 ; | |
7076 | PyObject * obj1 = 0 ; | |
7077 | char * kwnames[] = { | |
7078 | (char *) "self",(char *) "other", NULL | |
7079 | }; | |
7080 | ||
7081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7083 | if (!SWIG_IsOK(res1)) { | |
7084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7085 | } | |
7086 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7087 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7088 | if (!SWIG_IsOK(res2)) { | |
7089 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7090 | } | |
7091 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7092 | { | |
0085ce49 | 7093 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
0085ce49 RD |
7094 | if (PyErr_Occurred()) SWIG_fail; |
7095 | } | |
7096 | { | |
fc46b7f3 RD |
7097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7098 | } | |
7099 | return resultobj; | |
7100 | fail: | |
7101 | return NULL; | |
7102 | } | |
7103 | ||
7104 | ||
7105 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7106 | PyObject *resultobj = 0; | |
7107 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7108 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7109 | bool result; | |
7110 | void *argp1 = 0 ; | |
7111 | int res1 = 0 ; | |
7112 | void *argp2 = 0 ; | |
7113 | int res2 = 0 ; | |
7114 | PyObject * obj0 = 0 ; | |
7115 | PyObject * obj1 = 0 ; | |
7116 | char * kwnames[] = { | |
7117 | (char *) "self",(char *) "other", NULL | |
7118 | }; | |
7119 | ||
7120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7122 | if (!SWIG_IsOK(res1)) { | |
7123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7124 | } | |
7125 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7126 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7127 | if (!SWIG_IsOK(res2)) { | |
7128 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7129 | } | |
7130 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7131 | { | |
7132 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | { | |
7136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7137 | } | |
7138 | return resultobj; | |
7139 | fail: | |
7140 | return NULL; | |
7141 | } | |
7142 | ||
7143 | ||
7144 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7145 | PyObject *obj; | |
7146 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7147 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
7148 | return SWIG_Py_Void(); | |
7149 | } | |
7150 | ||
7151 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7152 | return SWIG_Python_InitShadowInstance(args); | |
7153 | } | |
7154 | ||
7155 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7156 | PyObject *resultobj = 0; | |
7157 | int arg1 ; | |
7158 | int arg2 ; | |
7159 | buffer arg3 ; | |
7160 | int arg4 ; | |
7161 | buffer arg5 ; | |
7162 | int arg6 ; | |
7163 | wxBitmap *result = 0 ; | |
7164 | int val1 ; | |
7165 | int ecode1 = 0 ; | |
7166 | int val2 ; | |
7167 | int ecode2 = 0 ; | |
c79fdf86 RD |
7168 | Py_ssize_t temp3 ; |
7169 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
7170 | PyObject * obj0 = 0 ; |
7171 | PyObject * obj1 = 0 ; | |
7172 | PyObject * obj2 = 0 ; | |
7173 | PyObject * obj3 = 0 ; | |
7174 | char * kwnames[] = { | |
7175 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7176 | }; | |
7177 | ||
7178 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7179 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7180 | if (!SWIG_IsOK(ecode1)) { | |
7181 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7182 | } | |
7183 | arg1 = static_cast< int >(val1); | |
7184 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7185 | if (!SWIG_IsOK(ecode2)) { | |
7186 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7187 | } | |
7188 | arg2 = static_cast< int >(val2); | |
7189 | { | |
c79fdf86 RD |
7190 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7191 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7192 | } |
7193 | { | |
7194 | if (obj3 != Py_None) { | |
c79fdf86 RD |
7195 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7196 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7197 | } |
7198 | } | |
7199 | { | |
7200 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7204 | return resultobj; | |
7205 | fail: | |
7206 | return NULL; | |
7207 | } | |
7208 | ||
7209 | ||
7210 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7211 | PyObject *resultobj = 0; | |
7212 | int arg1 ; | |
7213 | int arg2 ; | |
7214 | buffer arg3 ; | |
7215 | int arg4 ; | |
7216 | wxBitmap *result = 0 ; | |
7217 | int val1 ; | |
7218 | int ecode1 = 0 ; | |
7219 | int val2 ; | |
7220 | int ecode2 = 0 ; | |
c79fdf86 | 7221 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7222 | PyObject * obj0 = 0 ; |
7223 | PyObject * obj1 = 0 ; | |
7224 | PyObject * obj2 = 0 ; | |
7225 | char * kwnames[] = { | |
7226 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7227 | }; | |
7228 | ||
7229 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7230 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7231 | if (!SWIG_IsOK(ecode1)) { | |
7232 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7233 | } | |
7234 | arg1 = static_cast< int >(val1); | |
7235 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7236 | if (!SWIG_IsOK(ecode2)) { | |
7237 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7238 | } | |
7239 | arg2 = static_cast< int >(val2); | |
7240 | { | |
c79fdf86 RD |
7241 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7242 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7243 | } |
7244 | { | |
7245 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7246 | if (PyErr_Occurred()) SWIG_fail; | |
7247 | } | |
7248 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7249 | return resultobj; | |
7250 | fail: | |
7251 | return NULL; | |
7252 | } | |
7253 | ||
7254 | ||
7255 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7256 | PyObject *resultobj = 0; | |
7257 | int arg1 ; | |
7258 | int arg2 ; | |
7259 | buffer arg3 ; | |
7260 | int arg4 ; | |
7261 | wxBitmap *result = 0 ; | |
7262 | int val1 ; | |
7263 | int ecode1 = 0 ; | |
7264 | int val2 ; | |
7265 | int ecode2 = 0 ; | |
c79fdf86 | 7266 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7267 | PyObject * obj0 = 0 ; |
7268 | PyObject * obj1 = 0 ; | |
7269 | PyObject * obj2 = 0 ; | |
7270 | char * kwnames[] = { | |
7271 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7272 | }; | |
7273 | ||
7274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7275 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7276 | if (!SWIG_IsOK(ecode1)) { | |
7277 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7278 | } | |
7279 | arg1 = static_cast< int >(val1); | |
7280 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7281 | if (!SWIG_IsOK(ecode2)) { | |
7282 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7283 | } | |
7284 | arg2 = static_cast< int >(val2); | |
7285 | { | |
c79fdf86 RD |
7286 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7287 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7288 | } |
7289 | { | |
7290 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7291 | if (PyErr_Occurred()) SWIG_fail; | |
7292 | } | |
7293 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7294 | return resultobj; | |
7295 | fail: | |
7296 | return NULL; | |
7297 | } | |
7298 | ||
7299 | ||
7300 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7301 | PyObject *resultobj = 0; | |
7302 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7303 | wxPoint result; | |
7304 | void *argp1 = 0 ; | |
7305 | int res1 = 0 ; | |
7306 | PyObject *swig_obj[1] ; | |
7307 | ||
7308 | if (!args) SWIG_fail; | |
7309 | swig_obj[0] = args; | |
7310 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7311 | if (!SWIG_IsOK(res1)) { | |
7312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7313 | } | |
7314 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7315 | { | |
7316 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7317 | if (PyErr_Occurred()) SWIG_fail; | |
7318 | } | |
7319 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7320 | return resultobj; | |
7321 | fail: | |
7322 | return NULL; | |
7323 | } | |
7324 | ||
7325 | ||
7326 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7327 | PyObject *resultobj = 0; | |
7328 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7329 | int result; | |
7330 | void *argp1 = 0 ; | |
7331 | int res1 = 0 ; | |
7332 | PyObject *swig_obj[1] ; | |
7333 | ||
7334 | if (!args) SWIG_fail; | |
7335 | swig_obj[0] = args; | |
7336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7337 | if (!SWIG_IsOK(res1)) { | |
7338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7339 | } | |
7340 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7341 | { | |
7342 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7353 | PyObject *resultobj = 0; | |
7354 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7355 | int result; | |
7356 | void *argp1 = 0 ; | |
7357 | int res1 = 0 ; | |
7358 | PyObject *swig_obj[1] ; | |
7359 | ||
7360 | if (!args) SWIG_fail; | |
7361 | swig_obj[0] = args; | |
7362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7363 | if (!SWIG_IsOK(res1)) { | |
7364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7365 | } | |
7366 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7367 | { | |
7368 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
7371 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7372 | return resultobj; | |
7373 | fail: | |
7374 | return NULL; | |
7375 | } | |
7376 | ||
7377 | ||
7378 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7379 | PyObject *resultobj = 0; | |
7380 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7381 | wxSize result; | |
7382 | void *argp1 = 0 ; | |
7383 | int res1 = 0 ; | |
7384 | PyObject *swig_obj[1] ; | |
7385 | ||
7386 | if (!args) SWIG_fail; | |
7387 | swig_obj[0] = args; | |
7388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7389 | if (!SWIG_IsOK(res1)) { | |
7390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7391 | } | |
7392 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7393 | { | |
7394 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7395 | if (PyErr_Occurred()) SWIG_fail; | |
7396 | } | |
7397 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7398 | return resultobj; | |
7399 | fail: | |
7400 | return NULL; | |
7401 | } | |
7402 | ||
7403 | ||
7404 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7405 | PyObject *resultobj = 0; | |
7406 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7407 | int result; | |
7408 | void *argp1 = 0 ; | |
7409 | int res1 = 0 ; | |
7410 | PyObject *swig_obj[1] ; | |
7411 | ||
7412 | if (!args) SWIG_fail; | |
7413 | swig_obj[0] = args; | |
7414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7415 | if (!SWIG_IsOK(res1)) { | |
7416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7417 | } | |
7418 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7419 | { | |
7420 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7421 | if (PyErr_Occurred()) SWIG_fail; | |
7422 | } | |
7423 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7424 | return resultobj; | |
7425 | fail: | |
7426 | return NULL; | |
7427 | } | |
7428 | ||
7429 | ||
7430 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7431 | PyObject *obj; | |
7432 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7433 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7434 | return SWIG_Py_Void(); | |
7435 | } | |
7436 | ||
7437 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7438 | PyObject *resultobj = 0; | |
7439 | wxBitmap *arg1 = 0 ; | |
7440 | wxNativePixelData *result = 0 ; | |
7441 | void *argp1 = 0 ; | |
7442 | int res1 = 0 ; | |
7443 | ||
7444 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7445 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7446 | if (!SWIG_IsOK(res1)) { | |
7447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7448 | } | |
7449 | if (!argp1) { | |
7450 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7451 | } | |
7452 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7453 | { | |
7454 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7455 | if (PyErr_Occurred()) SWIG_fail; | |
7456 | } | |
7457 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7458 | return resultobj; | |
7459 | fail: | |
7460 | return NULL; | |
7461 | } | |
7462 | ||
7463 | ||
7464 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7465 | PyObject *resultobj = 0; | |
7466 | wxBitmap *arg1 = 0 ; | |
7467 | wxRect *arg2 = 0 ; | |
7468 | wxNativePixelData *result = 0 ; | |
7469 | void *argp1 = 0 ; | |
7470 | int res1 = 0 ; | |
7471 | wxRect temp2 ; | |
7472 | ||
7473 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7475 | if (!SWIG_IsOK(res1)) { | |
7476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7477 | } | |
7478 | if (!argp1) { | |
7479 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7480 | } | |
7481 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7482 | { | |
7483 | arg2 = &temp2; | |
7484 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7485 | } | |
7486 | { | |
7487 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7488 | if (PyErr_Occurred()) SWIG_fail; | |
7489 | } | |
7490 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7491 | return resultobj; | |
7492 | fail: | |
7493 | return NULL; | |
7494 | } | |
7495 | ||
7496 | ||
7497 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7498 | PyObject *resultobj = 0; | |
7499 | wxBitmap *arg1 = 0 ; | |
7500 | wxPoint *arg2 = 0 ; | |
7501 | wxSize *arg3 = 0 ; | |
7502 | wxNativePixelData *result = 0 ; | |
7503 | void *argp1 = 0 ; | |
7504 | int res1 = 0 ; | |
7505 | wxPoint temp2 ; | |
7506 | wxSize temp3 ; | |
7507 | ||
7508 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7509 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7510 | if (!SWIG_IsOK(res1)) { | |
7511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7512 | } | |
7513 | if (!argp1) { | |
7514 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7515 | } | |
7516 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7517 | { | |
7518 | arg2 = &temp2; | |
7519 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7520 | } | |
7521 | { | |
7522 | arg3 = &temp3; | |
7523 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7524 | } | |
7525 | { | |
7526 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7527 | if (PyErr_Occurred()) SWIG_fail; | |
7528 | } | |
7529 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7530 | return resultobj; | |
7531 | fail: | |
7532 | return NULL; | |
7533 | } | |
7534 | ||
7535 | ||
7536 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7537 | int argc; | |
7538 | PyObject *argv[4]; | |
7539 | ||
7540 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7541 | --argc; | |
7542 | if (argc == 1) { | |
7543 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7544 | } | |
7545 | if (argc == 2) { | |
7546 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7547 | } | |
7548 | if (argc == 3) { | |
7549 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7550 | } | |
7551 | ||
7552 | fail: | |
7553 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7554 | return NULL; | |
7555 | } | |
7556 | ||
7557 | ||
7558 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7559 | PyObject *resultobj = 0; | |
7560 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7561 | void *argp1 = 0 ; | |
7562 | int res1 = 0 ; | |
7563 | PyObject *swig_obj[1] ; | |
7564 | ||
7565 | if (!args) SWIG_fail; | |
7566 | swig_obj[0] = args; | |
7567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7568 | if (!SWIG_IsOK(res1)) { | |
7569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7570 | } | |
7571 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7572 | { | |
7573 | delete arg1; | |
7574 | ||
7575 | if (PyErr_Occurred()) SWIG_fail; | |
7576 | } | |
7577 | resultobj = SWIG_Py_Void(); | |
7578 | return resultobj; | |
7579 | fail: | |
7580 | return NULL; | |
7581 | } | |
7582 | ||
7583 | ||
7584 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7585 | PyObject *resultobj = 0; | |
7586 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7587 | wxNativePixelData_Accessor result; | |
7588 | void *argp1 = 0 ; | |
7589 | int res1 = 0 ; | |
7590 | PyObject *swig_obj[1] ; | |
7591 | ||
7592 | if (!args) SWIG_fail; | |
7593 | swig_obj[0] = args; | |
7594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7595 | if (!SWIG_IsOK(res1)) { | |
7596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7597 | } | |
7598 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7599 | { | |
7600 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7601 | if (PyErr_Occurred()) SWIG_fail; | |
7602 | } | |
7603 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7604 | return resultobj; | |
7605 | fail: | |
7606 | return NULL; | |
7607 | } | |
7608 | ||
7609 | ||
7610 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7611 | PyObject *resultobj = 0; | |
7612 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7613 | void *argp1 = 0 ; | |
7614 | int res1 = 0 ; | |
7615 | PyObject *swig_obj[1] ; | |
7616 | ||
7617 | if (!args) SWIG_fail; | |
7618 | swig_obj[0] = args; | |
7619 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7620 | if (!SWIG_IsOK(res1)) { | |
7621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7622 | } | |
7623 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7624 | { | |
7625 | (arg1)->UseAlpha(); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
7628 | resultobj = SWIG_Py_Void(); | |
7629 | return resultobj; | |
7630 | fail: | |
7631 | return NULL; | |
7632 | } | |
7633 | ||
7634 | ||
7635 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7636 | PyObject *resultobj = 0; | |
7637 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7638 | bool result; | |
7639 | void *argp1 = 0 ; | |
7640 | int res1 = 0 ; | |
7641 | PyObject *swig_obj[1] ; | |
7642 | ||
7643 | if (!args) SWIG_fail; | |
7644 | swig_obj[0] = args; | |
7645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7646 | if (!SWIG_IsOK(res1)) { | |
7647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7648 | } | |
7649 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7650 | { | |
7651 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7652 | if (PyErr_Occurred()) SWIG_fail; | |
7653 | } | |
7654 | { | |
7655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7656 | } | |
7657 | return resultobj; | |
7658 | fail: | |
7659 | return NULL; | |
7660 | } | |
7661 | ||
7662 | ||
7663 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7664 | PyObject *obj; | |
7665 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7666 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7667 | return SWIG_Py_Void(); | |
7668 | } | |
7669 | ||
7670 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7671 | return SWIG_Python_InitShadowInstance(args); | |
7672 | } | |
7673 | ||
7674 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7675 | PyObject *resultobj = 0; | |
7676 | wxNativePixelData *arg1 = 0 ; | |
7677 | wxNativePixelData_Accessor *result = 0 ; | |
7678 | void *argp1 = 0 ; | |
7679 | int res1 = 0 ; | |
7680 | ||
7681 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7683 | if (!SWIG_IsOK(res1)) { | |
7684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7685 | } | |
7686 | if (!argp1) { | |
7687 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7688 | } | |
7689 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7690 | { | |
7691 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7692 | if (PyErr_Occurred()) SWIG_fail; | |
7693 | } | |
7694 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7695 | return resultobj; | |
7696 | fail: | |
7697 | return NULL; | |
7698 | } | |
7699 | ||
7700 | ||
7701 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7702 | PyObject *resultobj = 0; | |
7703 | wxBitmap *arg1 = 0 ; | |
7704 | wxNativePixelData *arg2 = 0 ; | |
7705 | wxNativePixelData_Accessor *result = 0 ; | |
7706 | void *argp1 = 0 ; | |
7707 | int res1 = 0 ; | |
7708 | void *argp2 = 0 ; | |
7709 | int res2 = 0 ; | |
7710 | ||
7711 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7712 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7713 | if (!SWIG_IsOK(res1)) { | |
7714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7715 | } | |
7716 | if (!argp1) { | |
7717 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7718 | } | |
7719 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7720 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7721 | if (!SWIG_IsOK(res2)) { | |
7722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7723 | } | |
7724 | if (!argp2) { | |
7725 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7726 | } | |
7727 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7728 | { | |
7729 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | } | |
7732 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7733 | return resultobj; | |
7734 | fail: | |
7735 | return NULL; | |
7736 | } | |
7737 | ||
7738 | ||
7739 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7740 | PyObject *resultobj = 0; | |
7741 | wxNativePixelData_Accessor *result = 0 ; | |
7742 | ||
7743 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7744 | { | |
7745 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7746 | if (PyErr_Occurred()) SWIG_fail; | |
7747 | } | |
7748 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7749 | return resultobj; | |
7750 | fail: | |
7751 | return NULL; | |
7752 | } | |
7753 | ||
7754 | ||
7755 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7756 | int argc; | |
7757 | PyObject *argv[3]; | |
7758 | ||
7759 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7760 | --argc; | |
7761 | if (argc == 0) { | |
7762 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7763 | } | |
7764 | if (argc == 1) { | |
7765 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7766 | } | |
7767 | if (argc == 2) { | |
7768 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7769 | } | |
7770 | ||
7771 | fail: | |
7772 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7773 | return NULL; | |
7774 | } | |
7775 | ||
7776 | ||
7777 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7778 | PyObject *resultobj = 0; | |
7779 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7780 | void *argp1 = 0 ; | |
7781 | int res1 = 0 ; | |
7782 | PyObject *swig_obj[1] ; | |
7783 | ||
7784 | if (!args) SWIG_fail; | |
7785 | swig_obj[0] = args; | |
7786 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7787 | if (!SWIG_IsOK(res1)) { | |
7788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7789 | } | |
7790 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7791 | { | |
7792 | delete arg1; | |
7793 | ||
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | } | |
7796 | resultobj = SWIG_Py_Void(); | |
7797 | return resultobj; | |
7798 | fail: | |
7799 | return NULL; | |
7800 | } | |
7801 | ||
7802 | ||
7803 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7804 | PyObject *resultobj = 0; | |
7805 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7806 | wxNativePixelData *arg2 = 0 ; | |
7807 | void *argp1 = 0 ; | |
7808 | int res1 = 0 ; | |
7809 | void *argp2 = 0 ; | |
7810 | int res2 = 0 ; | |
7811 | PyObject * obj0 = 0 ; | |
7812 | PyObject * obj1 = 0 ; | |
7813 | char * kwnames[] = { | |
7814 | (char *) "self",(char *) "data", NULL | |
7815 | }; | |
7816 | ||
7817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
7818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7819 | if (!SWIG_IsOK(res1)) { | |
7820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7821 | } | |
7822 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7823 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7824 | if (!SWIG_IsOK(res2)) { | |
7825 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7826 | } | |
7827 | if (!argp2) { | |
7828 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7829 | } | |
7830 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7831 | { | |
7832 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
7833 | if (PyErr_Occurred()) SWIG_fail; | |
7834 | } | |
7835 | resultobj = SWIG_Py_Void(); | |
7836 | return resultobj; | |
7837 | fail: | |
7838 | return NULL; | |
7839 | } | |
7840 | ||
7841 | ||
7842 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7843 | PyObject *resultobj = 0; | |
7844 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7845 | bool result; | |
7846 | void *argp1 = 0 ; | |
7847 | int res1 = 0 ; | |
7848 | PyObject *swig_obj[1] ; | |
7849 | ||
7850 | if (!args) SWIG_fail; | |
7851 | swig_obj[0] = args; | |
7852 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7853 | if (!SWIG_IsOK(res1)) { | |
7854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
7855 | } | |
7856 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7857 | { | |
7858 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
7859 | if (PyErr_Occurred()) SWIG_fail; | |
7860 | } | |
7861 | { | |
7862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7863 | } | |
7864 | return resultobj; | |
7865 | fail: | |
7866 | return NULL; | |
7867 | } | |
7868 | ||
7869 | ||
7870 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7871 | PyObject *resultobj = 0; | |
7872 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7873 | void *argp1 = 0 ; | |
7874 | int res1 = 0 ; | |
7875 | PyObject *swig_obj[1] ; | |
7876 | ||
7877 | if (!args) SWIG_fail; | |
7878 | swig_obj[0] = args; | |
7879 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7880 | if (!SWIG_IsOK(res1)) { | |
7881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7882 | } | |
7883 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7884 | { | |
7885 | wxNativePixelData_Accessor_nextPixel(arg1); | |
7886 | if (PyErr_Occurred()) SWIG_fail; | |
7887 | } | |
7888 | resultobj = SWIG_Py_Void(); | |
7889 | return resultobj; | |
7890 | fail: | |
7891 | return NULL; | |
7892 | } | |
7893 | ||
7894 | ||
7895 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7896 | PyObject *resultobj = 0; | |
7897 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7898 | wxNativePixelData *arg2 = 0 ; | |
7899 | int arg3 ; | |
7900 | int arg4 ; | |
7901 | void *argp1 = 0 ; | |
7902 | int res1 = 0 ; | |
7903 | void *argp2 = 0 ; | |
7904 | int res2 = 0 ; | |
7905 | int val3 ; | |
7906 | int ecode3 = 0 ; | |
7907 | int val4 ; | |
7908 | int ecode4 = 0 ; | |
7909 | PyObject * obj0 = 0 ; | |
7910 | PyObject * obj1 = 0 ; | |
7911 | PyObject * obj2 = 0 ; | |
7912 | PyObject * obj3 = 0 ; | |
7913 | char * kwnames[] = { | |
7914 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7915 | }; | |
7916 | ||
7917 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7918 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7919 | if (!SWIG_IsOK(res1)) { | |
7920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7921 | } | |
7922 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7923 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7924 | if (!SWIG_IsOK(res2)) { | |
7925 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7926 | } | |
7927 | if (!argp2) { | |
7928 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7929 | } | |
7930 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7931 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7932 | if (!SWIG_IsOK(ecode3)) { | |
7933 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
7934 | } | |
7935 | arg3 = static_cast< int >(val3); | |
7936 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7937 | if (!SWIG_IsOK(ecode4)) { | |
7938 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
7939 | } | |
7940 | arg4 = static_cast< int >(val4); | |
7941 | { | |
7942 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
7943 | if (PyErr_Occurred()) SWIG_fail; | |
7944 | } | |
7945 | resultobj = SWIG_Py_Void(); | |
7946 | return resultobj; | |
7947 | fail: | |
7948 | return NULL; | |
7949 | } | |
7950 | ||
7951 | ||
7952 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7953 | PyObject *resultobj = 0; | |
7954 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7955 | wxNativePixelData *arg2 = 0 ; | |
7956 | int arg3 ; | |
7957 | void *argp1 = 0 ; | |
7958 | int res1 = 0 ; | |
7959 | void *argp2 = 0 ; | |
7960 | int res2 = 0 ; | |
7961 | int val3 ; | |
7962 | int ecode3 = 0 ; | |
7963 | PyObject * obj0 = 0 ; | |
7964 | PyObject * obj1 = 0 ; | |
7965 | PyObject * obj2 = 0 ; | |
7966 | char * kwnames[] = { | |
7967 | (char *) "self",(char *) "data",(char *) "x", NULL | |
7968 | }; | |
7969 | ||
7970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7971 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7972 | if (!SWIG_IsOK(res1)) { | |
7973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7974 | } | |
7975 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7976 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7977 | if (!SWIG_IsOK(res2)) { | |
7978 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7979 | } | |
7980 | if (!argp2) { | |
7981 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7982 | } | |
7983 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7984 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7985 | if (!SWIG_IsOK(ecode3)) { | |
7986 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
7987 | } | |
7988 | arg3 = static_cast< int >(val3); | |
7989 | { | |
7990 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
7991 | if (PyErr_Occurred()) SWIG_fail; | |
7992 | } | |
7993 | resultobj = SWIG_Py_Void(); | |
7994 | return resultobj; | |
7995 | fail: | |
7996 | return NULL; | |
7997 | } | |
7998 | ||
7999 | ||
8000 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8001 | PyObject *resultobj = 0; | |
8002 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8003 | wxNativePixelData *arg2 = 0 ; | |
8004 | int arg3 ; | |
8005 | void *argp1 = 0 ; | |
8006 | int res1 = 0 ; | |
8007 | void *argp2 = 0 ; | |
8008 | int res2 = 0 ; | |
8009 | int val3 ; | |
8010 | int ecode3 = 0 ; | |
8011 | PyObject * obj0 = 0 ; | |
8012 | PyObject * obj1 = 0 ; | |
8013 | PyObject * obj2 = 0 ; | |
8014 | char * kwnames[] = { | |
8015 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8016 | }; | |
8017 | ||
8018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8020 | if (!SWIG_IsOK(res1)) { | |
8021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8022 | } | |
8023 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8024 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8025 | if (!SWIG_IsOK(res2)) { | |
8026 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8027 | } | |
8028 | if (!argp2) { | |
8029 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8030 | } | |
8031 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8032 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8033 | if (!SWIG_IsOK(ecode3)) { | |
8034 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8035 | } | |
8036 | arg3 = static_cast< int >(val3); | |
8037 | { | |
8038 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
8039 | if (PyErr_Occurred()) SWIG_fail; | |
8040 | } | |
8041 | resultobj = SWIG_Py_Void(); | |
8042 | return resultobj; | |
8043 | fail: | |
8044 | return NULL; | |
8045 | } | |
8046 | ||
8047 | ||
8048 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8049 | PyObject *resultobj = 0; | |
8050 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8051 | wxNativePixelData *arg2 = 0 ; | |
8052 | int arg3 ; | |
8053 | int arg4 ; | |
8054 | void *argp1 = 0 ; | |
8055 | int res1 = 0 ; | |
8056 | void *argp2 = 0 ; | |
8057 | int res2 = 0 ; | |
8058 | int val3 ; | |
8059 | int ecode3 = 0 ; | |
8060 | int val4 ; | |
8061 | int ecode4 = 0 ; | |
8062 | PyObject * obj0 = 0 ; | |
8063 | PyObject * obj1 = 0 ; | |
8064 | PyObject * obj2 = 0 ; | |
8065 | PyObject * obj3 = 0 ; | |
8066 | char * kwnames[] = { | |
8067 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8068 | }; | |
8069 | ||
8070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8072 | if (!SWIG_IsOK(res1)) { | |
8073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8074 | } | |
8075 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8076 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8077 | if (!SWIG_IsOK(res2)) { | |
8078 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8079 | } | |
8080 | if (!argp2) { | |
8081 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8082 | } | |
8083 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8084 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8085 | if (!SWIG_IsOK(ecode3)) { | |
8086 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8087 | } | |
8088 | arg3 = static_cast< int >(val3); | |
8089 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8090 | if (!SWIG_IsOK(ecode4)) { | |
8091 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8092 | } | |
8093 | arg4 = static_cast< int >(val4); | |
8094 | { | |
8095 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
8096 | if (PyErr_Occurred()) SWIG_fail; | |
8097 | } | |
8098 | resultobj = SWIG_Py_Void(); | |
8099 | return resultobj; | |
8100 | fail: | |
8101 | return NULL; | |
8102 | } | |
8103 | ||
8104 | ||
8105 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8106 | PyObject *resultobj = 0; | |
8107 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8108 | byte arg2 ; | |
8109 | byte arg3 ; | |
8110 | byte arg4 ; | |
8111 | void *argp1 = 0 ; | |
8112 | int res1 = 0 ; | |
8113 | unsigned char val2 ; | |
8114 | int ecode2 = 0 ; | |
8115 | unsigned char val3 ; | |
8116 | int ecode3 = 0 ; | |
8117 | unsigned char val4 ; | |
8118 | int ecode4 = 0 ; | |
8119 | PyObject * obj0 = 0 ; | |
8120 | PyObject * obj1 = 0 ; | |
8121 | PyObject * obj2 = 0 ; | |
8122 | PyObject * obj3 = 0 ; | |
8123 | char * kwnames[] = { | |
8124 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
8125 | }; | |
8126 | ||
8127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8129 | if (!SWIG_IsOK(res1)) { | |
8130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8131 | } | |
8132 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8133 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8134 | if (!SWIG_IsOK(ecode2)) { | |
8135 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8136 | } | |
8137 | arg2 = static_cast< byte >(val2); | |
8138 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8139 | if (!SWIG_IsOK(ecode3)) { | |
8140 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8141 | } | |
8142 | arg3 = static_cast< byte >(val3); | |
8143 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8144 | if (!SWIG_IsOK(ecode4)) { | |
8145 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8146 | } | |
8147 | arg4 = static_cast< byte >(val4); | |
8148 | { | |
8149 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
8150 | if (PyErr_Occurred()) SWIG_fail; | |
8151 | } | |
8152 | resultobj = SWIG_Py_Void(); | |
8153 | return resultobj; | |
8154 | fail: | |
8155 | return NULL; | |
8156 | } | |
8157 | ||
8158 | ||
8159 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8160 | PyObject *resultobj = 0; | |
8161 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8162 | PyObject *result = 0 ; | |
8163 | void *argp1 = 0 ; | |
8164 | int res1 = 0 ; | |
8165 | PyObject *swig_obj[1] ; | |
8166 | ||
8167 | if (!args) SWIG_fail; | |
8168 | swig_obj[0] = args; | |
8169 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8170 | if (!SWIG_IsOK(res1)) { | |
8171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8172 | } | |
8173 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8174 | { | |
8175 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8176 | if (PyErr_Occurred()) SWIG_fail; | |
8177 | } | |
8178 | resultobj = result; | |
8179 | return resultobj; | |
8180 | fail: | |
8181 | return NULL; | |
8182 | } | |
8183 | ||
8184 | ||
8185 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8186 | PyObject *obj; | |
8187 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8188 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8189 | return SWIG_Py_Void(); | |
8190 | } | |
8191 | ||
8192 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8193 | return SWIG_Python_InitShadowInstance(args); | |
8194 | } | |
8195 | ||
8196 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8197 | PyObject *resultobj = 0; | |
8198 | wxBitmap *arg1 = 0 ; | |
8199 | wxAlphaPixelData *result = 0 ; | |
8200 | void *argp1 = 0 ; | |
8201 | int res1 = 0 ; | |
8202 | ||
8203 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8204 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8205 | if (!SWIG_IsOK(res1)) { | |
8206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8207 | } | |
8208 | if (!argp1) { | |
8209 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8210 | } | |
8211 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8212 | { | |
8213 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
8215 | } | |
8216 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8217 | return resultobj; | |
8218 | fail: | |
8219 | return NULL; | |
8220 | } | |
8221 | ||
8222 | ||
8223 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8224 | PyObject *resultobj = 0; | |
8225 | wxBitmap *arg1 = 0 ; | |
8226 | wxRect *arg2 = 0 ; | |
8227 | wxAlphaPixelData *result = 0 ; | |
8228 | void *argp1 = 0 ; | |
8229 | int res1 = 0 ; | |
8230 | wxRect temp2 ; | |
8231 | ||
8232 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8234 | if (!SWIG_IsOK(res1)) { | |
8235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8236 | } | |
8237 | if (!argp1) { | |
8238 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8239 | } | |
8240 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8241 | { | |
8242 | arg2 = &temp2; | |
8243 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8244 | } | |
8245 | { | |
8246 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8247 | if (PyErr_Occurred()) SWIG_fail; | |
8248 | } | |
8249 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8250 | return resultobj; | |
8251 | fail: | |
8252 | return NULL; | |
8253 | } | |
8254 | ||
8255 | ||
8256 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8257 | PyObject *resultobj = 0; | |
8258 | wxBitmap *arg1 = 0 ; | |
8259 | wxPoint *arg2 = 0 ; | |
8260 | wxSize *arg3 = 0 ; | |
8261 | wxAlphaPixelData *result = 0 ; | |
8262 | void *argp1 = 0 ; | |
8263 | int res1 = 0 ; | |
8264 | wxPoint temp2 ; | |
8265 | wxSize temp3 ; | |
8266 | ||
8267 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8269 | if (!SWIG_IsOK(res1)) { | |
8270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8271 | } | |
8272 | if (!argp1) { | |
8273 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8274 | } | |
8275 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8276 | { | |
8277 | arg2 = &temp2; | |
8278 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8279 | } | |
8280 | { | |
8281 | arg3 = &temp3; | |
8282 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8283 | } | |
8284 | { | |
8285 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8286 | if (PyErr_Occurred()) SWIG_fail; | |
8287 | } | |
8288 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8289 | return resultobj; | |
8290 | fail: | |
8291 | return NULL; | |
8292 | } | |
8293 | ||
8294 | ||
8295 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8296 | int argc; | |
8297 | PyObject *argv[4]; | |
8298 | ||
8299 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8300 | --argc; | |
8301 | if (argc == 1) { | |
8302 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8303 | } | |
8304 | if (argc == 2) { | |
8305 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8306 | } | |
8307 | if (argc == 3) { | |
8308 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8309 | } | |
8310 | ||
8311 | fail: | |
8312 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8313 | return NULL; | |
8314 | } | |
8315 | ||
8316 | ||
8317 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8318 | PyObject *resultobj = 0; | |
8319 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8320 | void *argp1 = 0 ; | |
8321 | int res1 = 0 ; | |
8322 | PyObject *swig_obj[1] ; | |
8323 | ||
8324 | if (!args) SWIG_fail; | |
8325 | swig_obj[0] = args; | |
8326 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8327 | if (!SWIG_IsOK(res1)) { | |
8328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8329 | } | |
8330 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8331 | { | |
8332 | delete arg1; | |
8333 | ||
8334 | if (PyErr_Occurred()) SWIG_fail; | |
8335 | } | |
8336 | resultobj = SWIG_Py_Void(); | |
8337 | return resultobj; | |
8338 | fail: | |
8339 | return NULL; | |
8340 | } | |
8341 | ||
8342 | ||
8343 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8344 | PyObject *resultobj = 0; | |
8345 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8346 | wxAlphaPixelData_Accessor result; | |
8347 | void *argp1 = 0 ; | |
8348 | int res1 = 0 ; | |
8349 | PyObject *swig_obj[1] ; | |
8350 | ||
8351 | if (!args) SWIG_fail; | |
8352 | swig_obj[0] = args; | |
8353 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8354 | if (!SWIG_IsOK(res1)) { | |
8355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8356 | } | |
8357 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8358 | { | |
8359 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8360 | if (PyErr_Occurred()) SWIG_fail; | |
8361 | } | |
8362 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8363 | return resultobj; | |
8364 | fail: | |
8365 | return NULL; | |
8366 | } | |
8367 | ||
8368 | ||
8369 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8370 | PyObject *resultobj = 0; | |
8371 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8372 | void *argp1 = 0 ; | |
8373 | int res1 = 0 ; | |
8374 | PyObject *swig_obj[1] ; | |
8375 | ||
8376 | if (!args) SWIG_fail; | |
8377 | swig_obj[0] = args; | |
8378 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8379 | if (!SWIG_IsOK(res1)) { | |
8380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8381 | } | |
8382 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8383 | { | |
8384 | (arg1)->UseAlpha(); | |
8385 | if (PyErr_Occurred()) SWIG_fail; | |
8386 | } | |
8387 | resultobj = SWIG_Py_Void(); | |
8388 | return resultobj; | |
8389 | fail: | |
8390 | return NULL; | |
8391 | } | |
8392 | ||
8393 | ||
8394 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8395 | PyObject *resultobj = 0; | |
8396 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8397 | bool result; | |
8398 | void *argp1 = 0 ; | |
8399 | int res1 = 0 ; | |
8400 | PyObject *swig_obj[1] ; | |
8401 | ||
8402 | if (!args) SWIG_fail; | |
8403 | swig_obj[0] = args; | |
8404 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8405 | if (!SWIG_IsOK(res1)) { | |
8406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8407 | } | |
8408 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8409 | { | |
8410 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8411 | if (PyErr_Occurred()) SWIG_fail; | |
8412 | } | |
8413 | { | |
8414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8415 | } | |
8416 | return resultobj; | |
8417 | fail: | |
8418 | return NULL; | |
8419 | } | |
8420 | ||
8421 | ||
8422 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8423 | PyObject *obj; | |
8424 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8425 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8426 | return SWIG_Py_Void(); | |
8427 | } | |
8428 | ||
8429 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8430 | return SWIG_Python_InitShadowInstance(args); | |
8431 | } | |
8432 | ||
8433 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8434 | PyObject *resultobj = 0; | |
8435 | wxAlphaPixelData *arg1 = 0 ; | |
8436 | wxAlphaPixelData_Accessor *result = 0 ; | |
8437 | void *argp1 = 0 ; | |
8438 | int res1 = 0 ; | |
8439 | ||
8440 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8442 | if (!SWIG_IsOK(res1)) { | |
8443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8444 | } | |
8445 | if (!argp1) { | |
8446 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8447 | } | |
8448 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8449 | { | |
8450 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8451 | if (PyErr_Occurred()) SWIG_fail; | |
8452 | } | |
8453 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8454 | return resultobj; | |
8455 | fail: | |
8456 | return NULL; | |
8457 | } | |
8458 | ||
8459 | ||
8460 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8461 | PyObject *resultobj = 0; | |
8462 | wxBitmap *arg1 = 0 ; | |
8463 | wxAlphaPixelData *arg2 = 0 ; | |
8464 | wxAlphaPixelData_Accessor *result = 0 ; | |
8465 | void *argp1 = 0 ; | |
8466 | int res1 = 0 ; | |
8467 | void *argp2 = 0 ; | |
8468 | int res2 = 0 ; | |
8469 | ||
8470 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8472 | if (!SWIG_IsOK(res1)) { | |
8473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8474 | } | |
8475 | if (!argp1) { | |
8476 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8477 | } | |
8478 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8479 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8480 | if (!SWIG_IsOK(res2)) { | |
8481 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8482 | } | |
8483 | if (!argp2) { | |
8484 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8485 | } | |
8486 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8487 | { | |
8488 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8489 | if (PyErr_Occurred()) SWIG_fail; | |
8490 | } | |
8491 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8492 | return resultobj; | |
8493 | fail: | |
8494 | return NULL; | |
8495 | } | |
8496 | ||
8497 | ||
8498 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8499 | PyObject *resultobj = 0; | |
8500 | wxAlphaPixelData_Accessor *result = 0 ; | |
8501 | ||
8502 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8503 | { | |
8504 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8505 | if (PyErr_Occurred()) SWIG_fail; | |
8506 | } | |
8507 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8508 | return resultobj; | |
8509 | fail: | |
8510 | return NULL; | |
8511 | } | |
8512 | ||
8513 | ||
8514 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8515 | int argc; | |
8516 | PyObject *argv[3]; | |
8517 | ||
8518 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8519 | --argc; | |
8520 | if (argc == 0) { | |
8521 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8522 | } | |
8523 | if (argc == 1) { | |
8524 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8525 | } | |
8526 | if (argc == 2) { | |
8527 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8528 | } | |
8529 | ||
8530 | fail: | |
8531 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8532 | return NULL; | |
8533 | } | |
8534 | ||
8535 | ||
8536 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8537 | PyObject *resultobj = 0; | |
8538 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8539 | void *argp1 = 0 ; | |
8540 | int res1 = 0 ; | |
8541 | PyObject *swig_obj[1] ; | |
8542 | ||
8543 | if (!args) SWIG_fail; | |
8544 | swig_obj[0] = args; | |
8545 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8546 | if (!SWIG_IsOK(res1)) { | |
8547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8548 | } | |
8549 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8550 | { | |
8551 | delete arg1; | |
8552 | ||
8553 | if (PyErr_Occurred()) SWIG_fail; | |
8554 | } | |
8555 | resultobj = SWIG_Py_Void(); | |
8556 | return resultobj; | |
8557 | fail: | |
8558 | return NULL; | |
8559 | } | |
8560 | ||
8561 | ||
8562 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8563 | PyObject *resultobj = 0; | |
8564 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8565 | wxAlphaPixelData *arg2 = 0 ; | |
8566 | void *argp1 = 0 ; | |
8567 | int res1 = 0 ; | |
8568 | void *argp2 = 0 ; | |
8569 | int res2 = 0 ; | |
8570 | PyObject * obj0 = 0 ; | |
8571 | PyObject * obj1 = 0 ; | |
8572 | char * kwnames[] = { | |
8573 | (char *) "self",(char *) "data", NULL | |
8574 | }; | |
8575 | ||
8576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8578 | if (!SWIG_IsOK(res1)) { | |
8579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8580 | } | |
8581 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8582 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8583 | if (!SWIG_IsOK(res2)) { | |
8584 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8585 | } | |
8586 | if (!argp2) { | |
8587 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8588 | } | |
8589 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8590 | { | |
8591 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8592 | if (PyErr_Occurred()) SWIG_fail; | |
8593 | } | |
8594 | resultobj = SWIG_Py_Void(); | |
8595 | return resultobj; | |
8596 | fail: | |
8597 | return NULL; | |
8598 | } | |
8599 | ||
8600 | ||
8601 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8602 | PyObject *resultobj = 0; | |
8603 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8604 | bool result; | |
8605 | void *argp1 = 0 ; | |
8606 | int res1 = 0 ; | |
8607 | PyObject *swig_obj[1] ; | |
8608 | ||
8609 | if (!args) SWIG_fail; | |
8610 | swig_obj[0] = args; | |
8611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8612 | if (!SWIG_IsOK(res1)) { | |
8613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8614 | } | |
8615 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8616 | { | |
8617 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8618 | if (PyErr_Occurred()) SWIG_fail; | |
8619 | } | |
8620 | { | |
8621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8622 | } | |
8623 | return resultobj; | |
8624 | fail: | |
8625 | return NULL; | |
8626 | } | |
8627 | ||
8628 | ||
8629 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8630 | PyObject *resultobj = 0; | |
8631 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8632 | void *argp1 = 0 ; | |
8633 | int res1 = 0 ; | |
8634 | PyObject *swig_obj[1] ; | |
8635 | ||
8636 | if (!args) SWIG_fail; | |
8637 | swig_obj[0] = args; | |
8638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8639 | if (!SWIG_IsOK(res1)) { | |
8640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8641 | } | |
8642 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8643 | { | |
8644 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8645 | if (PyErr_Occurred()) SWIG_fail; | |
8646 | } | |
8647 | resultobj = SWIG_Py_Void(); | |
8648 | return resultobj; | |
8649 | fail: | |
8650 | return NULL; | |
8651 | } | |
8652 | ||
8653 | ||
8654 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8655 | PyObject *resultobj = 0; | |
8656 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8657 | wxAlphaPixelData *arg2 = 0 ; | |
8658 | int arg3 ; | |
8659 | int arg4 ; | |
8660 | void *argp1 = 0 ; | |
8661 | int res1 = 0 ; | |
8662 | void *argp2 = 0 ; | |
8663 | int res2 = 0 ; | |
8664 | int val3 ; | |
8665 | int ecode3 = 0 ; | |
8666 | int val4 ; | |
8667 | int ecode4 = 0 ; | |
8668 | PyObject * obj0 = 0 ; | |
8669 | PyObject * obj1 = 0 ; | |
8670 | PyObject * obj2 = 0 ; | |
8671 | PyObject * obj3 = 0 ; | |
8672 | char * kwnames[] = { | |
8673 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8674 | }; | |
8675 | ||
8676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8678 | if (!SWIG_IsOK(res1)) { | |
8679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8680 | } | |
8681 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8682 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8683 | if (!SWIG_IsOK(res2)) { | |
8684 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8685 | } | |
8686 | if (!argp2) { | |
8687 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8688 | } | |
8689 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8690 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8691 | if (!SWIG_IsOK(ecode3)) { | |
8692 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8693 | } | |
8694 | arg3 = static_cast< int >(val3); | |
8695 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8696 | if (!SWIG_IsOK(ecode4)) { | |
8697 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8698 | } | |
8699 | arg4 = static_cast< int >(val4); | |
8700 | { | |
8701 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8702 | if (PyErr_Occurred()) SWIG_fail; | |
8703 | } | |
8704 | resultobj = SWIG_Py_Void(); | |
8705 | return resultobj; | |
8706 | fail: | |
8707 | return NULL; | |
8708 | } | |
8709 | ||
8710 | ||
8711 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8712 | PyObject *resultobj = 0; | |
8713 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8714 | wxAlphaPixelData *arg2 = 0 ; | |
8715 | int arg3 ; | |
8716 | void *argp1 = 0 ; | |
8717 | int res1 = 0 ; | |
8718 | void *argp2 = 0 ; | |
8719 | int res2 = 0 ; | |
8720 | int val3 ; | |
8721 | int ecode3 = 0 ; | |
8722 | PyObject * obj0 = 0 ; | |
8723 | PyObject * obj1 = 0 ; | |
8724 | PyObject * obj2 = 0 ; | |
8725 | char * kwnames[] = { | |
8726 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8727 | }; | |
8728 | ||
8729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8731 | if (!SWIG_IsOK(res1)) { | |
8732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8733 | } | |
8734 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8735 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8736 | if (!SWIG_IsOK(res2)) { | |
8737 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8738 | } | |
8739 | if (!argp2) { | |
8740 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8741 | } | |
8742 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8743 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8744 | if (!SWIG_IsOK(ecode3)) { | |
8745 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8746 | } | |
8747 | arg3 = static_cast< int >(val3); | |
8748 | { | |
8749 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
8752 | resultobj = SWIG_Py_Void(); | |
8753 | return resultobj; | |
8754 | fail: | |
8755 | return NULL; | |
8756 | } | |
8757 | ||
8758 | ||
8759 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8760 | PyObject *resultobj = 0; | |
8761 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8762 | wxAlphaPixelData *arg2 = 0 ; | |
8763 | int arg3 ; | |
8764 | void *argp1 = 0 ; | |
8765 | int res1 = 0 ; | |
8766 | void *argp2 = 0 ; | |
8767 | int res2 = 0 ; | |
8768 | int val3 ; | |
8769 | int ecode3 = 0 ; | |
8770 | PyObject * obj0 = 0 ; | |
8771 | PyObject * obj1 = 0 ; | |
8772 | PyObject * obj2 = 0 ; | |
8773 | char * kwnames[] = { | |
8774 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8775 | }; | |
8776 | ||
8777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8779 | if (!SWIG_IsOK(res1)) { | |
8780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8781 | } | |
8782 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8783 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8784 | if (!SWIG_IsOK(res2)) { | |
8785 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8786 | } | |
8787 | if (!argp2) { | |
8788 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8789 | } | |
8790 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8791 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8792 | if (!SWIG_IsOK(ecode3)) { | |
8793 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8794 | } | |
8795 | arg3 = static_cast< int >(val3); | |
8796 | { | |
8797 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8798 | if (PyErr_Occurred()) SWIG_fail; | |
8799 | } | |
8800 | resultobj = SWIG_Py_Void(); | |
8801 | return resultobj; | |
8802 | fail: | |
8803 | return NULL; | |
8804 | } | |
8805 | ||
8806 | ||
8807 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8808 | PyObject *resultobj = 0; | |
8809 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8810 | wxAlphaPixelData *arg2 = 0 ; | |
8811 | int arg3 ; | |
8812 | int arg4 ; | |
8813 | void *argp1 = 0 ; | |
8814 | int res1 = 0 ; | |
8815 | void *argp2 = 0 ; | |
8816 | int res2 = 0 ; | |
8817 | int val3 ; | |
8818 | int ecode3 = 0 ; | |
8819 | int val4 ; | |
8820 | int ecode4 = 0 ; | |
8821 | PyObject * obj0 = 0 ; | |
8822 | PyObject * obj1 = 0 ; | |
8823 | PyObject * obj2 = 0 ; | |
8824 | PyObject * obj3 = 0 ; | |
8825 | char * kwnames[] = { | |
8826 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8827 | }; | |
8828 | ||
8829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8831 | if (!SWIG_IsOK(res1)) { | |
8832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8833 | } | |
8834 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8835 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8836 | if (!SWIG_IsOK(res2)) { | |
8837 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8838 | } | |
8839 | if (!argp2) { | |
8840 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8841 | } | |
8842 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8843 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8844 | if (!SWIG_IsOK(ecode3)) { | |
8845 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8846 | } | |
8847 | arg3 = static_cast< int >(val3); | |
8848 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8849 | if (!SWIG_IsOK(ecode4)) { | |
8850 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8851 | } | |
8852 | arg4 = static_cast< int >(val4); | |
8853 | { | |
8854 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8855 | if (PyErr_Occurred()) SWIG_fail; | |
8856 | } | |
8857 | resultobj = SWIG_Py_Void(); | |
8858 | return resultobj; | |
8859 | fail: | |
8860 | return NULL; | |
8861 | } | |
8862 | ||
8863 | ||
8864 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8865 | PyObject *resultobj = 0; | |
8866 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8867 | byte arg2 ; | |
8868 | byte arg3 ; | |
8869 | byte arg4 ; | |
8870 | byte arg5 ; | |
8871 | void *argp1 = 0 ; | |
8872 | int res1 = 0 ; | |
8873 | unsigned char val2 ; | |
8874 | int ecode2 = 0 ; | |
8875 | unsigned char val3 ; | |
8876 | int ecode3 = 0 ; | |
8877 | unsigned char val4 ; | |
8878 | int ecode4 = 0 ; | |
8879 | unsigned char val5 ; | |
8880 | int ecode5 = 0 ; | |
8881 | PyObject * obj0 = 0 ; | |
8882 | PyObject * obj1 = 0 ; | |
8883 | PyObject * obj2 = 0 ; | |
8884 | PyObject * obj3 = 0 ; | |
8885 | PyObject * obj4 = 0 ; | |
8886 | char * kwnames[] = { | |
8887 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
8888 | }; | |
8889 | ||
8890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8891 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8892 | if (!SWIG_IsOK(res1)) { | |
8893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8894 | } | |
8895 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8896 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8897 | if (!SWIG_IsOK(ecode2)) { | |
8898 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8899 | } | |
8900 | arg2 = static_cast< byte >(val2); | |
8901 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8902 | if (!SWIG_IsOK(ecode3)) { | |
8903 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8904 | } | |
8905 | arg3 = static_cast< byte >(val3); | |
8906 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8907 | if (!SWIG_IsOK(ecode4)) { | |
8908 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8909 | } | |
8910 | arg4 = static_cast< byte >(val4); | |
8911 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
8912 | if (!SWIG_IsOK(ecode5)) { | |
8913 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
8914 | } | |
8915 | arg5 = static_cast< byte >(val5); | |
8916 | { | |
8917 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
8918 | if (PyErr_Occurred()) SWIG_fail; | |
0085ce49 | 8919 | } |
fc46b7f3 | 8920 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
8921 | return resultobj; |
8922 | fail: | |
8923 | return NULL; | |
8924 | } | |
8925 | ||
8926 | ||
fc46b7f3 | 8927 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8928 | PyObject *resultobj = 0; |
fc46b7f3 RD |
8929 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
8930 | PyObject *result = 0 ; | |
0085ce49 RD |
8931 | void *argp1 = 0 ; |
8932 | int res1 = 0 ; | |
fc46b7f3 | 8933 | PyObject *swig_obj[1] ; |
0085ce49 | 8934 | |
fc46b7f3 RD |
8935 | if (!args) SWIG_fail; |
8936 | swig_obj[0] = args; | |
8937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
0085ce49 | 8938 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 8939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
0085ce49 | 8940 | } |
fc46b7f3 | 8941 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
0085ce49 | 8942 | { |
fc46b7f3 | 8943 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
0085ce49 RD |
8944 | if (PyErr_Occurred()) SWIG_fail; |
8945 | } | |
fc46b7f3 | 8946 | resultobj = result; |
0085ce49 RD |
8947 | return resultobj; |
8948 | fail: | |
8949 | return NULL; | |
d14a1e28 RD |
8950 | } |
8951 | ||
8952 | ||
fc46b7f3 | 8953 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
8954 | PyObject *obj; |
8955 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 8956 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
0085ce49 | 8957 | return SWIG_Py_Void(); |
b2df227b RD |
8958 | } |
8959 | ||
fc46b7f3 | 8960 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8961 | return SWIG_Python_InitShadowInstance(args); |
d14a1e28 RD |
8962 | } |
8963 | ||
0085ce49 RD |
8964 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8965 | PyObject *resultobj = 0; | |
8966 | wxBitmap *arg1 = 0 ; | |
8967 | wxColour const &arg2_defvalue = wxNullColour ; | |
8968 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8969 | wxMask *result = 0 ; | |
8970 | void *argp1 = 0 ; | |
8971 | int res1 = 0 ; | |
8972 | wxColour temp2 ; | |
8973 | PyObject * obj0 = 0 ; | |
8974 | PyObject * obj1 = 0 ; | |
8975 | char * kwnames[] = { | |
8976 | (char *) "bitmap",(char *) "colour", NULL | |
8977 | }; | |
8978 | ||
8979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
8980 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8981 | if (!SWIG_IsOK(res1)) { | |
8982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8983 | } | |
8984 | if (!argp1) { | |
8985 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8986 | } | |
8987 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8988 | if (obj1) { | |
d14a1e28 | 8989 | { |
0085ce49 RD |
8990 | arg2 = &temp2; |
8991 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 8992 | } |
0085ce49 RD |
8993 | } |
8994 | { | |
8995 | if (!wxPyCheckForApp()) SWIG_fail; | |
8996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8997 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
8998 | wxPyEndAllowThreads(__tstate); | |
8999 | if (PyErr_Occurred()) SWIG_fail; | |
9000 | } | |
9001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
9002 | return resultobj; | |
9003 | fail: | |
9004 | return NULL; | |
d14a1e28 RD |
9005 | } |
9006 | ||
9007 | ||
0085ce49 RD |
9008 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9009 | PyObject *resultobj = 0; | |
9010 | wxMask *arg1 = (wxMask *) 0 ; | |
9011 | void *argp1 = 0 ; | |
9012 | int res1 = 0 ; | |
9013 | PyObject *swig_obj[1] ; | |
9014 | ||
9015 | if (!args) SWIG_fail; | |
9016 | swig_obj[0] = args; | |
9017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
9018 | if (!SWIG_IsOK(res1)) { | |
9019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
9020 | } | |
9021 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
9022 | { | |
0085ce49 | 9023 | delete arg1; |
d14a1e28 | 9024 | |
0085ce49 RD |
9025 | if (PyErr_Occurred()) SWIG_fail; |
9026 | } | |
9027 | resultobj = SWIG_Py_Void(); | |
9028 | return resultobj; | |
9029 | fail: | |
9030 | return NULL; | |
9031 | } | |
9032 | ||
9033 | ||
9034 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9035 | PyObject *obj; | |
9036 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9037 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
9038 | return SWIG_Py_Void(); | |
9039 | } | |
9040 | ||
9041 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9042 | return SWIG_Python_InitShadowInstance(args); | |
9043 | } | |
9044 | ||
9045 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9046 | PyObject *resultobj = 0; | |
9047 | wxString *arg1 = 0 ; | |
9048 | wxBitmapType arg2 ; | |
9049 | int arg3 = (int) -1 ; | |
9050 | int arg4 = (int) -1 ; | |
9051 | wxIcon *result = 0 ; | |
9052 | bool temp1 = false ; | |
9053 | int val2 ; | |
9054 | int ecode2 = 0 ; | |
9055 | int val3 ; | |
9056 | int ecode3 = 0 ; | |
9057 | int val4 ; | |
9058 | int ecode4 = 0 ; | |
9059 | PyObject * obj0 = 0 ; | |
9060 | PyObject * obj1 = 0 ; | |
9061 | PyObject * obj2 = 0 ; | |
9062 | PyObject * obj3 = 0 ; | |
9063 | char * kwnames[] = { | |
9064 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
9065 | }; | |
9066 | ||
9067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9068 | { | |
9069 | arg1 = wxString_in_helper(obj0); | |
9070 | if (arg1 == NULL) SWIG_fail; | |
9071 | temp1 = true; | |
9072 | } | |
9073 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9074 | if (!SWIG_IsOK(ecode2)) { | |
9075 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
9076 | } | |
9077 | arg2 = static_cast< wxBitmapType >(val2); | |
9078 | if (obj2) { | |
9079 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9080 | if (!SWIG_IsOK(ecode3)) { | |
9081 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
9082 | } | |
9083 | arg3 = static_cast< int >(val3); | |
9084 | } | |
9085 | if (obj3) { | |
9086 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9087 | if (!SWIG_IsOK(ecode4)) { | |
9088 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
9089 | } | |
9090 | arg4 = static_cast< int >(val4); | |
9091 | } | |
9092 | { | |
9093 | if (!wxPyCheckForApp()) SWIG_fail; | |
9094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9095 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
9096 | wxPyEndAllowThreads(__tstate); | |
9097 | if (PyErr_Occurred()) SWIG_fail; | |
9098 | } | |
9099 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
9100 | { | |
9101 | if (temp1) | |
9102 | delete arg1; | |
9103 | } | |
9104 | return resultobj; | |
9105 | fail: | |
9106 | { | |
9107 | if (temp1) | |
9108 | delete arg1; | |
9109 | } | |
9110 | return NULL; | |
d14a1e28 RD |
9111 | } |
9112 | ||
9113 | ||
0085ce49 RD |
9114 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9115 | PyObject *resultobj = 0; | |
9116 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9117 | void *argp1 = 0 ; | |
9118 | int res1 = 0 ; | |
9119 | PyObject *swig_obj[1] ; | |
9120 | ||
9121 | if (!args) SWIG_fail; | |
9122 | swig_obj[0] = args; | |
9123 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
9124 | if (!SWIG_IsOK(res1)) { | |
9125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9126 | } | |
9127 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9128 | { | |
9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9130 | delete arg1; | |
d14a1e28 | 9131 | |
0085ce49 RD |
9132 | wxPyEndAllowThreads(__tstate); |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
9135 | resultobj = SWIG_Py_Void(); | |
9136 | return resultobj; | |
9137 | fail: | |
9138 | return NULL; | |
d14a1e28 RD |
9139 | } |
9140 | ||
9141 | ||
0085ce49 RD |
9142 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9143 | PyObject *resultobj = 0; | |
9144 | wxIcon *result = 0 ; | |
9145 | ||
9146 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
9147 | { | |
9148 | if (!wxPyCheckForApp()) SWIG_fail; | |
9149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9150 | result = (wxIcon *)new wxIcon(); | |
9151 | wxPyEndAllowThreads(__tstate); | |
9152 | if (PyErr_Occurred()) SWIG_fail; | |
9153 | } | |
9154 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9155 | return resultobj; | |
9156 | fail: | |
9157 | return NULL; | |
9158 | } | |
9159 | ||
9160 | ||
9161 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9162 | PyObject *resultobj = 0; | |
9163 | wxIconLocation *arg1 = 0 ; | |
9164 | wxIcon *result = 0 ; | |
9165 | void *argp1 = 0 ; | |
9166 | int res1 = 0 ; | |
9167 | PyObject * obj0 = 0 ; | |
9168 | char * kwnames[] = { | |
9169 | (char *) "loc", NULL | |
9170 | }; | |
9171 | ||
9172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9173 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9174 | if (!SWIG_IsOK(res1)) { | |
9175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9176 | } | |
9177 | if (!argp1) { | |
9178 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9179 | } | |
9180 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9181 | { | |
9182 | if (!wxPyCheckForApp()) SWIG_fail; | |
9183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9184 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9185 | wxPyEndAllowThreads(__tstate); | |
9186 | if (PyErr_Occurred()) SWIG_fail; | |
9187 | } | |
9188 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9189 | return resultobj; | |
9190 | fail: | |
9191 | return NULL; | |
9192 | } | |
9193 | ||
9194 | ||
9195 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9196 | PyObject *resultobj = 0; | |
9197 | wxBitmap *arg1 = 0 ; | |
9198 | wxIcon *result = 0 ; | |
9199 | void *argp1 = 0 ; | |
9200 | int res1 = 0 ; | |
9201 | PyObject * obj0 = 0 ; | |
9202 | char * kwnames[] = { | |
9203 | (char *) "bmp", NULL | |
9204 | }; | |
9205 | ||
9206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9207 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9208 | if (!SWIG_IsOK(res1)) { | |
9209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9210 | } | |
9211 | if (!argp1) { | |
9212 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9213 | } | |
9214 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9215 | { | |
9216 | if (!wxPyCheckForApp()) SWIG_fail; | |
9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9218 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9219 | wxPyEndAllowThreads(__tstate); | |
9220 | if (PyErr_Occurred()) SWIG_fail; | |
9221 | } | |
9222 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9223 | return resultobj; | |
9224 | fail: | |
9225 | return NULL; | |
d14a1e28 RD |
9226 | } |
9227 | ||
9228 | ||
0085ce49 RD |
9229 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9230 | PyObject *resultobj = 0; | |
9231 | PyObject *arg1 = (PyObject *) 0 ; | |
9232 | wxIcon *result = 0 ; | |
9233 | PyObject * obj0 = 0 ; | |
9234 | char * kwnames[] = { | |
9235 | (char *) "listOfStrings", NULL | |
9236 | }; | |
9237 | ||
9238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9239 | arg1 = obj0; | |
9240 | { | |
9241 | if (!wxPyCheckForApp()) SWIG_fail; | |
9242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9243 | result = (wxIcon *)new_wxIcon(arg1); | |
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) SWIG_fail; | |
9246 | } | |
9247 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9248 | return resultobj; | |
9249 | fail: | |
9250 | return NULL; | |
9251 | } | |
9252 | ||
9253 | ||
9254 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9255 | PyObject *resultobj = 0; | |
9256 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9257 | wxString *arg2 = 0 ; | |
9258 | wxBitmapType arg3 ; | |
9259 | bool result; | |
9260 | void *argp1 = 0 ; | |
9261 | int res1 = 0 ; | |
9262 | bool temp2 = false ; | |
9263 | int val3 ; | |
9264 | int ecode3 = 0 ; | |
9265 | PyObject * obj0 = 0 ; | |
9266 | PyObject * obj1 = 0 ; | |
9267 | PyObject * obj2 = 0 ; | |
9268 | char * kwnames[] = { | |
9269 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9270 | }; | |
9271 | ||
9272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9274 | if (!SWIG_IsOK(res1)) { | |
9275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9276 | } | |
9277 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9278 | { | |
9279 | arg2 = wxString_in_helper(obj1); | |
9280 | if (arg2 == NULL) SWIG_fail; | |
9281 | temp2 = true; | |
9282 | } | |
9283 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9284 | if (!SWIG_IsOK(ecode3)) { | |
9285 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9286 | } | |
9287 | arg3 = static_cast< wxBitmapType >(val3); | |
9288 | { | |
9289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9290 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9291 | wxPyEndAllowThreads(__tstate); | |
9292 | if (PyErr_Occurred()) SWIG_fail; | |
9293 | } | |
9294 | { | |
9295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9296 | } | |
9297 | { | |
9298 | if (temp2) | |
9299 | delete arg2; | |
9300 | } | |
9301 | return resultobj; | |
9302 | fail: | |
9303 | { | |
9304 | if (temp2) | |
9305 | delete arg2; | |
9306 | } | |
9307 | return NULL; | |
d14a1e28 RD |
9308 | } |
9309 | ||
9310 | ||
b39fe951 | 9311 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
9312 | PyObject *resultobj = 0; |
9313 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9314 | bool result; | |
9315 | void *argp1 = 0 ; | |
9316 | int res1 = 0 ; | |
9317 | PyObject *swig_obj[1] ; | |
9318 | ||
9319 | if (!args) SWIG_fail; | |
9320 | swig_obj[0] = args; | |
9321 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9322 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
0085ce49 RD |
9324 | } |
9325 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9326 | { | |
9327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9328 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
9329 | wxPyEndAllowThreads(__tstate); |
9330 | if (PyErr_Occurred()) SWIG_fail; | |
9331 | } | |
9332 | { | |
9333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9334 | } | |
9335 | return resultobj; | |
9336 | fail: | |
9337 | return NULL; | |
d14a1e28 RD |
9338 | } |
9339 | ||
9340 | ||
0085ce49 RD |
9341 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9342 | PyObject *resultobj = 0; | |
9343 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9344 | int result; | |
9345 | void *argp1 = 0 ; | |
9346 | int res1 = 0 ; | |
9347 | PyObject *swig_obj[1] ; | |
9348 | ||
9349 | if (!args) SWIG_fail; | |
9350 | swig_obj[0] = args; | |
9351 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9352 | if (!SWIG_IsOK(res1)) { | |
9353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9354 | } | |
9355 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9356 | { | |
9357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9358 | result = (int)(arg1)->GetWidth(); | |
9359 | wxPyEndAllowThreads(__tstate); | |
9360 | if (PyErr_Occurred()) SWIG_fail; | |
9361 | } | |
9362 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9363 | return resultobj; | |
9364 | fail: | |
9365 | return NULL; | |
d3b6e4ff RD |
9366 | } |
9367 | ||
9368 | ||
0085ce49 RD |
9369 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9370 | PyObject *resultobj = 0; | |
9371 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9372 | int result; | |
9373 | void *argp1 = 0 ; | |
9374 | int res1 = 0 ; | |
9375 | PyObject *swig_obj[1] ; | |
9376 | ||
9377 | if (!args) SWIG_fail; | |
9378 | swig_obj[0] = args; | |
9379 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9380 | if (!SWIG_IsOK(res1)) { | |
9381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9382 | } | |
9383 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9384 | { | |
9385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9386 | result = (int)(arg1)->GetHeight(); | |
9387 | wxPyEndAllowThreads(__tstate); | |
9388 | if (PyErr_Occurred()) SWIG_fail; | |
9389 | } | |
9390 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9391 | return resultobj; | |
9392 | fail: | |
9393 | return NULL; | |
d14a1e28 RD |
9394 | } |
9395 | ||
9396 | ||
0085ce49 RD |
9397 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9398 | PyObject *resultobj = 0; | |
9399 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9400 | int result; | |
9401 | void *argp1 = 0 ; | |
9402 | int res1 = 0 ; | |
9403 | PyObject *swig_obj[1] ; | |
9404 | ||
9405 | if (!args) SWIG_fail; | |
9406 | swig_obj[0] = args; | |
9407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9408 | if (!SWIG_IsOK(res1)) { | |
9409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9410 | } | |
9411 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9412 | { | |
9413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9414 | result = (int)(arg1)->GetDepth(); | |
9415 | wxPyEndAllowThreads(__tstate); | |
9416 | if (PyErr_Occurred()) SWIG_fail; | |
9417 | } | |
9418 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9419 | return resultobj; | |
9420 | fail: | |
9421 | return NULL; | |
9422 | } | |
9423 | ||
9424 | ||
9425 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9426 | PyObject *resultobj = 0; | |
9427 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9428 | int arg2 ; | |
9429 | void *argp1 = 0 ; | |
9430 | int res1 = 0 ; | |
9431 | int val2 ; | |
9432 | int ecode2 = 0 ; | |
9433 | PyObject * obj0 = 0 ; | |
9434 | PyObject * obj1 = 0 ; | |
9435 | char * kwnames[] = { | |
9436 | (char *) "self",(char *) "w", NULL | |
9437 | }; | |
9438 | ||
9439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9441 | if (!SWIG_IsOK(res1)) { | |
9442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9443 | } | |
9444 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9445 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9446 | if (!SWIG_IsOK(ecode2)) { | |
9447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9448 | } | |
9449 | arg2 = static_cast< int >(val2); | |
9450 | { | |
9451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9452 | (arg1)->SetWidth(arg2); | |
9453 | wxPyEndAllowThreads(__tstate); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | } | |
9456 | resultobj = SWIG_Py_Void(); | |
9457 | return resultobj; | |
9458 | fail: | |
9459 | return NULL; | |
9460 | } | |
9461 | ||
9462 | ||
9463 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9464 | PyObject *resultobj = 0; | |
9465 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9466 | int arg2 ; | |
9467 | void *argp1 = 0 ; | |
9468 | int res1 = 0 ; | |
9469 | int val2 ; | |
9470 | int ecode2 = 0 ; | |
9471 | PyObject * obj0 = 0 ; | |
9472 | PyObject * obj1 = 0 ; | |
9473 | char * kwnames[] = { | |
9474 | (char *) "self",(char *) "h", NULL | |
9475 | }; | |
9476 | ||
9477 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9478 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9479 | if (!SWIG_IsOK(res1)) { | |
9480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9481 | } | |
9482 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9483 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9484 | if (!SWIG_IsOK(ecode2)) { | |
9485 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9486 | } | |
9487 | arg2 = static_cast< int >(val2); | |
9488 | { | |
9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9490 | (arg1)->SetHeight(arg2); | |
9491 | wxPyEndAllowThreads(__tstate); | |
9492 | if (PyErr_Occurred()) SWIG_fail; | |
9493 | } | |
9494 | resultobj = SWIG_Py_Void(); | |
9495 | return resultobj; | |
9496 | fail: | |
9497 | return NULL; | |
9498 | } | |
9499 | ||
9500 | ||
9501 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9502 | PyObject *resultobj = 0; | |
9503 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9504 | int arg2 ; | |
9505 | void *argp1 = 0 ; | |
9506 | int res1 = 0 ; | |
9507 | int val2 ; | |
9508 | int ecode2 = 0 ; | |
9509 | PyObject * obj0 = 0 ; | |
9510 | PyObject * obj1 = 0 ; | |
9511 | char * kwnames[] = { | |
9512 | (char *) "self",(char *) "d", NULL | |
9513 | }; | |
9514 | ||
9515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9516 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9517 | if (!SWIG_IsOK(res1)) { | |
9518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9519 | } | |
9520 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9521 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9522 | if (!SWIG_IsOK(ecode2)) { | |
9523 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9524 | } | |
9525 | arg2 = static_cast< int >(val2); | |
9526 | { | |
9527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9528 | (arg1)->SetDepth(arg2); | |
9529 | wxPyEndAllowThreads(__tstate); | |
9530 | if (PyErr_Occurred()) SWIG_fail; | |
9531 | } | |
9532 | resultobj = SWIG_Py_Void(); | |
9533 | return resultobj; | |
9534 | fail: | |
9535 | return NULL; | |
9536 | } | |
9537 | ||
9538 | ||
9539 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9540 | PyObject *resultobj = 0; | |
9541 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9542 | wxBitmap *arg2 = 0 ; | |
9543 | void *argp1 = 0 ; | |
9544 | int res1 = 0 ; | |
9545 | void *argp2 = 0 ; | |
9546 | int res2 = 0 ; | |
9547 | PyObject * obj0 = 0 ; | |
9548 | PyObject * obj1 = 0 ; | |
9549 | char * kwnames[] = { | |
9550 | (char *) "self",(char *) "bmp", NULL | |
9551 | }; | |
9552 | ||
9553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9555 | if (!SWIG_IsOK(res1)) { | |
9556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9557 | } | |
9558 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9559 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9560 | if (!SWIG_IsOK(res2)) { | |
9561 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9562 | } | |
9563 | if (!argp2) { | |
9564 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9565 | } | |
9566 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9567 | { | |
9568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9569 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9570 | wxPyEndAllowThreads(__tstate); | |
9571 | if (PyErr_Occurred()) SWIG_fail; | |
9572 | } | |
9573 | resultobj = SWIG_Py_Void(); | |
9574 | return resultobj; | |
9575 | fail: | |
9576 | return NULL; | |
d14a1e28 RD |
9577 | } |
9578 | ||
9579 | ||
0085ce49 RD |
9580 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9581 | PyObject *obj; | |
9582 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9583 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9584 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9585 | } |
9586 | ||
0085ce49 RD |
9587 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9588 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9589 | } |
9590 | ||
0085ce49 RD |
9591 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9592 | PyObject *resultobj = 0; | |
9593 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9594 | int arg2 = (int) 0 ; | |
9595 | wxIconLocation *result = 0 ; | |
9596 | bool temp1 = false ; | |
9597 | int val2 ; | |
9598 | int ecode2 = 0 ; | |
9599 | PyObject * obj0 = 0 ; | |
9600 | PyObject * obj1 = 0 ; | |
9601 | char * kwnames[] = { | |
9602 | (char *) "filename",(char *) "num", NULL | |
9603 | }; | |
9604 | ||
9605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9606 | if (obj0) { | |
b2df227b | 9607 | { |
0085ce49 RD |
9608 | arg1 = wxString_in_helper(obj0); |
9609 | if (arg1 == NULL) SWIG_fail; | |
9610 | temp1 = true; | |
b2df227b | 9611 | } |
0085ce49 RD |
9612 | } |
9613 | if (obj1) { | |
9614 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9615 | if (!SWIG_IsOK(ecode2)) { | |
9616 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9617 | } | |
9618 | arg2 = static_cast< int >(val2); | |
9619 | } | |
9620 | { | |
9621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9622 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9623 | wxPyEndAllowThreads(__tstate); | |
9624 | if (PyErr_Occurred()) SWIG_fail; | |
9625 | } | |
9626 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9627 | { | |
9628 | if (temp1) | |
9629 | delete arg1; | |
9630 | } | |
9631 | return resultobj; | |
9632 | fail: | |
9633 | { | |
9634 | if (temp1) | |
9635 | delete arg1; | |
9636 | } | |
9637 | return NULL; | |
b2df227b RD |
9638 | } |
9639 | ||
9640 | ||
0085ce49 RD |
9641 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9642 | PyObject *resultobj = 0; | |
9643 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9644 | void *argp1 = 0 ; | |
9645 | int res1 = 0 ; | |
9646 | PyObject *swig_obj[1] ; | |
9647 | ||
9648 | if (!args) SWIG_fail; | |
9649 | swig_obj[0] = args; | |
9650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9651 | if (!SWIG_IsOK(res1)) { | |
9652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9653 | } | |
9654 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9655 | { | |
9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9657 | delete arg1; | |
4276dc52 | 9658 | |
0085ce49 RD |
9659 | wxPyEndAllowThreads(__tstate); |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
9662 | resultobj = SWIG_Py_Void(); | |
9663 | return resultobj; | |
9664 | fail: | |
9665 | return NULL; | |
4276dc52 RD |
9666 | } |
9667 | ||
9668 | ||
0085ce49 RD |
9669 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9670 | PyObject *resultobj = 0; | |
9671 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9672 | bool result; | |
9673 | void *argp1 = 0 ; | |
9674 | int res1 = 0 ; | |
9675 | PyObject *swig_obj[1] ; | |
9676 | ||
9677 | if (!args) SWIG_fail; | |
9678 | swig_obj[0] = args; | |
9679 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9680 | if (!SWIG_IsOK(res1)) { | |
9681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9682 | } | |
9683 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9684 | { | |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9686 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9687 | wxPyEndAllowThreads(__tstate); | |
9688 | if (PyErr_Occurred()) SWIG_fail; | |
9689 | } | |
9690 | { | |
9691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9692 | } | |
9693 | return resultobj; | |
9694 | fail: | |
9695 | return NULL; | |
9696 | } | |
9697 | ||
9698 | ||
9699 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9700 | PyObject *resultobj = 0; | |
9701 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9702 | wxString *arg2 = 0 ; | |
9703 | void *argp1 = 0 ; | |
9704 | int res1 = 0 ; | |
9705 | bool temp2 = false ; | |
9706 | PyObject * obj0 = 0 ; | |
9707 | PyObject * obj1 = 0 ; | |
9708 | char * kwnames[] = { | |
9709 | (char *) "self",(char *) "filename", NULL | |
9710 | }; | |
9711 | ||
9712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9714 | if (!SWIG_IsOK(res1)) { | |
9715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9716 | } | |
9717 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9718 | { | |
9719 | arg2 = wxString_in_helper(obj1); | |
9720 | if (arg2 == NULL) SWIG_fail; | |
9721 | temp2 = true; | |
9722 | } | |
9723 | { | |
9724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9725 | (arg1)->SetFileName((wxString const &)*arg2); | |
9726 | wxPyEndAllowThreads(__tstate); | |
9727 | if (PyErr_Occurred()) SWIG_fail; | |
9728 | } | |
9729 | resultobj = SWIG_Py_Void(); | |
9730 | { | |
9731 | if (temp2) | |
9732 | delete arg2; | |
9733 | } | |
9734 | return resultobj; | |
9735 | fail: | |
9736 | { | |
9737 | if (temp2) | |
9738 | delete arg2; | |
9739 | } | |
9740 | return NULL; | |
4276dc52 RD |
9741 | } |
9742 | ||
9743 | ||
0085ce49 RD |
9744 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9745 | PyObject *resultobj = 0; | |
9746 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9747 | wxString *result = 0 ; | |
9748 | void *argp1 = 0 ; | |
9749 | int res1 = 0 ; | |
9750 | PyObject *swig_obj[1] ; | |
9751 | ||
9752 | if (!args) SWIG_fail; | |
9753 | swig_obj[0] = args; | |
9754 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9755 | if (!SWIG_IsOK(res1)) { | |
9756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9757 | } | |
9758 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9759 | { | |
9760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9761 | { |
0085ce49 RD |
9762 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
9763 | result = (wxString *) &_result_ref; | |
093d3ff1 | 9764 | } |
0085ce49 RD |
9765 | wxPyEndAllowThreads(__tstate); |
9766 | if (PyErr_Occurred()) SWIG_fail; | |
9767 | } | |
9768 | { | |
9769 | #if wxUSE_UNICODE | |
9770 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9771 | #else | |
9772 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9773 | #endif | |
9774 | } | |
9775 | return resultobj; | |
9776 | fail: | |
9777 | return NULL; | |
9778 | } | |
9779 | ||
9780 | ||
9781 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9782 | PyObject *resultobj = 0; | |
9783 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9784 | int arg2 ; | |
9785 | void *argp1 = 0 ; | |
9786 | int res1 = 0 ; | |
9787 | int val2 ; | |
9788 | int ecode2 = 0 ; | |
9789 | PyObject * obj0 = 0 ; | |
9790 | PyObject * obj1 = 0 ; | |
9791 | char * kwnames[] = { | |
9792 | (char *) "self",(char *) "num", NULL | |
9793 | }; | |
9794 | ||
9795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
9796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9797 | if (!SWIG_IsOK(res1)) { | |
9798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9799 | } | |
9800 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9801 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9802 | if (!SWIG_IsOK(ecode2)) { | |
9803 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
9804 | } | |
9805 | arg2 = static_cast< int >(val2); | |
9806 | { | |
9807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9808 | wxIconLocation_SetIndex(arg1,arg2); | |
9809 | wxPyEndAllowThreads(__tstate); | |
9810 | if (PyErr_Occurred()) SWIG_fail; | |
9811 | } | |
9812 | resultobj = SWIG_Py_Void(); | |
9813 | return resultobj; | |
9814 | fail: | |
9815 | return NULL; | |
d14a1e28 RD |
9816 | } |
9817 | ||
9818 | ||
0085ce49 RD |
9819 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9820 | PyObject *resultobj = 0; | |
9821 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9822 | int result; | |
9823 | void *argp1 = 0 ; | |
9824 | int res1 = 0 ; | |
9825 | PyObject *swig_obj[1] ; | |
9826 | ||
9827 | if (!args) SWIG_fail; | |
9828 | swig_obj[0] = args; | |
9829 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9830 | if (!SWIG_IsOK(res1)) { | |
9831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9832 | } | |
9833 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9834 | { | |
9835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9836 | result = (int)wxIconLocation_GetIndex(arg1); | |
9837 | wxPyEndAllowThreads(__tstate); | |
9838 | if (PyErr_Occurred()) SWIG_fail; | |
9839 | } | |
9840 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9841 | return resultobj; | |
9842 | fail: | |
9843 | return NULL; | |
d14a1e28 RD |
9844 | } |
9845 | ||
9846 | ||
0085ce49 RD |
9847 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9848 | PyObject *obj; | |
9849 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9850 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
9851 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9852 | } |
9853 | ||
0085ce49 RD |
9854 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9855 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9856 | } |
9857 | ||
0085ce49 RD |
9858 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9859 | PyObject *resultobj = 0; | |
9860 | wxIconBundle *result = 0 ; | |
9861 | ||
9862 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
9863 | { | |
9864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9865 | result = (wxIconBundle *)new wxIconBundle(); | |
9866 | wxPyEndAllowThreads(__tstate); | |
9867 | if (PyErr_Occurred()) SWIG_fail; | |
9868 | } | |
9869 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
9870 | return resultobj; | |
9871 | fail: | |
9872 | return NULL; | |
9873 | } | |
9874 | ||
9875 | ||
9876 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9877 | PyObject *resultobj = 0; | |
9878 | wxString *arg1 = 0 ; | |
9879 | long arg2 ; | |
9880 | wxIconBundle *result = 0 ; | |
9881 | bool temp1 = false ; | |
9882 | long val2 ; | |
9883 | int ecode2 = 0 ; | |
9884 | PyObject * obj0 = 0 ; | |
9885 | PyObject * obj1 = 0 ; | |
9886 | char * kwnames[] = { | |
9887 | (char *) "file",(char *) "type", NULL | |
9888 | }; | |
9889 | ||
9890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
9891 | { | |
9892 | arg1 = wxString_in_helper(obj0); | |
9893 | if (arg1 == NULL) SWIG_fail; | |
9894 | temp1 = true; | |
9895 | } | |
9896 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9897 | if (!SWIG_IsOK(ecode2)) { | |
9898 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
9899 | } | |
9900 | arg2 = static_cast< long >(val2); | |
9901 | { | |
9902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9903 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
9904 | wxPyEndAllowThreads(__tstate); | |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
9906 | } | |
9907 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9908 | { | |
9909 | if (temp1) | |
9910 | delete arg1; | |
9911 | } | |
9912 | return resultobj; | |
9913 | fail: | |
9914 | { | |
9915 | if (temp1) | |
9916 | delete arg1; | |
9917 | } | |
9918 | return NULL; | |
d14a1e28 RD |
9919 | } |
9920 | ||
9921 | ||
0085ce49 RD |
9922 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9923 | PyObject *resultobj = 0; | |
9924 | wxIcon *arg1 = 0 ; | |
9925 | wxIconBundle *result = 0 ; | |
9926 | void *argp1 = 0 ; | |
9927 | int res1 = 0 ; | |
9928 | PyObject * obj0 = 0 ; | |
9929 | char * kwnames[] = { | |
9930 | (char *) "icon", NULL | |
9931 | }; | |
9932 | ||
9933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
9934 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
9935 | if (!SWIG_IsOK(res1)) { | |
9936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9937 | } | |
9938 | if (!argp1) { | |
9939 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9940 | } | |
9941 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9942 | { | |
9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9944 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
9945 | wxPyEndAllowThreads(__tstate); | |
9946 | if (PyErr_Occurred()) SWIG_fail; | |
9947 | } | |
9948 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9949 | return resultobj; | |
9950 | fail: | |
9951 | return NULL; | |
d14a1e28 RD |
9952 | } |
9953 | ||
9954 | ||
0085ce49 RD |
9955 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9956 | PyObject *resultobj = 0; | |
9957 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9958 | void *argp1 = 0 ; | |
9959 | int res1 = 0 ; | |
9960 | PyObject *swig_obj[1] ; | |
9961 | ||
9962 | if (!args) SWIG_fail; | |
9963 | swig_obj[0] = args; | |
9964 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
9965 | if (!SWIG_IsOK(res1)) { | |
9966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9967 | } | |
9968 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9969 | { | |
9970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9971 | delete arg1; | |
d14a1e28 | 9972 | |
0085ce49 RD |
9973 | wxPyEndAllowThreads(__tstate); |
9974 | if (PyErr_Occurred()) SWIG_fail; | |
9975 | } | |
9976 | resultobj = SWIG_Py_Void(); | |
9977 | return resultobj; | |
9978 | fail: | |
9979 | return NULL; | |
9980 | } | |
9981 | ||
9982 | ||
9983 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9984 | PyObject *resultobj = 0; | |
9985 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9986 | wxIcon *arg2 = 0 ; | |
9987 | void *argp1 = 0 ; | |
9988 | int res1 = 0 ; | |
9989 | void *argp2 = 0 ; | |
9990 | int res2 = 0 ; | |
9991 | PyObject * obj0 = 0 ; | |
9992 | PyObject * obj1 = 0 ; | |
9993 | char * kwnames[] = { | |
9994 | (char *) "self",(char *) "icon", NULL | |
9995 | }; | |
9996 | ||
9997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
9998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9999 | if (!SWIG_IsOK(res1)) { | |
10000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10001 | } | |
10002 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10003 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
10004 | if (!SWIG_IsOK(res2)) { | |
10005 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10006 | } | |
10007 | if (!argp2) { | |
10008 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10009 | } | |
10010 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
10011 | { | |
10012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10013 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
10014 | wxPyEndAllowThreads(__tstate); | |
10015 | if (PyErr_Occurred()) SWIG_fail; | |
10016 | } | |
10017 | resultobj = SWIG_Py_Void(); | |
10018 | return resultobj; | |
10019 | fail: | |
10020 | return NULL; | |
10021 | } | |
10022 | ||
10023 | ||
10024 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10025 | PyObject *resultobj = 0; | |
10026 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10027 | wxString *arg2 = 0 ; | |
10028 | long arg3 ; | |
10029 | void *argp1 = 0 ; | |
10030 | int res1 = 0 ; | |
10031 | bool temp2 = false ; | |
10032 | long val3 ; | |
10033 | int ecode3 = 0 ; | |
10034 | PyObject * obj0 = 0 ; | |
10035 | PyObject * obj1 = 0 ; | |
10036 | PyObject * obj2 = 0 ; | |
10037 | char * kwnames[] = { | |
10038 | (char *) "self",(char *) "file",(char *) "type", NULL | |
10039 | }; | |
10040 | ||
10041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10043 | if (!SWIG_IsOK(res1)) { | |
10044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10045 | } | |
10046 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10047 | { | |
10048 | arg2 = wxString_in_helper(obj1); | |
10049 | if (arg2 == NULL) SWIG_fail; | |
10050 | temp2 = true; | |
10051 | } | |
10052 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10053 | if (!SWIG_IsOK(ecode3)) { | |
10054 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
10055 | } | |
10056 | arg3 = static_cast< long >(val3); | |
10057 | { | |
10058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10059 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
10060 | wxPyEndAllowThreads(__tstate); | |
10061 | if (PyErr_Occurred()) SWIG_fail; | |
10062 | } | |
10063 | resultobj = SWIG_Py_Void(); | |
10064 | { | |
10065 | if (temp2) | |
10066 | delete arg2; | |
10067 | } | |
10068 | return resultobj; | |
10069 | fail: | |
10070 | { | |
10071 | if (temp2) | |
10072 | delete arg2; | |
10073 | } | |
10074 | return NULL; | |
10075 | } | |
10076 | ||
10077 | ||
10078 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10079 | PyObject *resultobj = 0; | |
10080 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10081 | wxSize *arg2 = 0 ; | |
10082 | wxIcon *result = 0 ; | |
10083 | void *argp1 = 0 ; | |
10084 | int res1 = 0 ; | |
10085 | wxSize temp2 ; | |
10086 | PyObject * obj0 = 0 ; | |
10087 | PyObject * obj1 = 0 ; | |
10088 | char * kwnames[] = { | |
10089 | (char *) "self",(char *) "size", NULL | |
10090 | }; | |
10091 | ||
10092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10094 | if (!SWIG_IsOK(res1)) { | |
10095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10096 | } | |
10097 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10098 | { | |
10099 | arg2 = &temp2; | |
10100 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10101 | } | |
10102 | { | |
10103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 10104 | { |
0085ce49 RD |
10105 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
10106 | result = (wxIcon *) &_result_ref; | |
d14a1e28 | 10107 | } |
0085ce49 RD |
10108 | wxPyEndAllowThreads(__tstate); |
10109 | if (PyErr_Occurred()) SWIG_fail; | |
10110 | } | |
10111 | { | |
10112 | wxIcon* resultptr = new wxIcon(*result); | |
10113 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
10114 | } | |
10115 | return resultobj; | |
10116 | fail: | |
10117 | return NULL; | |
10118 | } | |
10119 | ||
10120 | ||
10121 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10122 | PyObject *obj; | |
10123 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10124 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
10125 | return SWIG_Py_Void(); | |
10126 | } | |
10127 | ||
10128 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10129 | return SWIG_Python_InitShadowInstance(args); | |
10130 | } | |
10131 | ||
10132 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10133 | PyObject *resultobj = 0; | |
10134 | wxString *arg1 = 0 ; | |
10135 | long arg2 ; | |
10136 | int arg3 = (int) 0 ; | |
10137 | int arg4 = (int) 0 ; | |
10138 | wxCursor *result = 0 ; | |
10139 | bool temp1 = false ; | |
10140 | long val2 ; | |
10141 | int ecode2 = 0 ; | |
10142 | int val3 ; | |
10143 | int ecode3 = 0 ; | |
10144 | int val4 ; | |
10145 | int ecode4 = 0 ; | |
10146 | PyObject * obj0 = 0 ; | |
10147 | PyObject * obj1 = 0 ; | |
10148 | PyObject * obj2 = 0 ; | |
10149 | PyObject * obj3 = 0 ; | |
10150 | char * kwnames[] = { | |
10151 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
10152 | }; | |
10153 | ||
10154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10155 | { | |
10156 | arg1 = wxString_in_helper(obj0); | |
10157 | if (arg1 == NULL) SWIG_fail; | |
10158 | temp1 = true; | |
10159 | } | |
10160 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10161 | if (!SWIG_IsOK(ecode2)) { | |
10162 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
10163 | } | |
10164 | arg2 = static_cast< long >(val2); | |
10165 | if (obj2) { | |
10166 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10167 | if (!SWIG_IsOK(ecode3)) { | |
10168 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
10169 | } | |
10170 | arg3 = static_cast< int >(val3); | |
10171 | } | |
10172 | if (obj3) { | |
10173 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10174 | if (!SWIG_IsOK(ecode4)) { | |
10175 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10176 | } | |
10177 | arg4 = static_cast< int >(val4); | |
10178 | } | |
10179 | { | |
10180 | if (!wxPyCheckForApp()) SWIG_fail; | |
10181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10182 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10183 | wxPyEndAllowThreads(__tstate); | |
10184 | if (PyErr_Occurred()) SWIG_fail; | |
10185 | } | |
10186 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10187 | { | |
10188 | if (temp1) | |
10189 | delete arg1; | |
10190 | } | |
10191 | return resultobj; | |
10192 | fail: | |
10193 | { | |
10194 | if (temp1) | |
10195 | delete arg1; | |
10196 | } | |
10197 | return NULL; | |
d14a1e28 RD |
10198 | } |
10199 | ||
10200 | ||
0085ce49 RD |
10201 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10202 | PyObject *resultobj = 0; | |
10203 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10204 | void *argp1 = 0 ; | |
10205 | int res1 = 0 ; | |
10206 | PyObject *swig_obj[1] ; | |
10207 | ||
10208 | if (!args) SWIG_fail; | |
10209 | swig_obj[0] = args; | |
10210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10211 | if (!SWIG_IsOK(res1)) { | |
10212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10213 | } | |
10214 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10215 | { | |
10216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10217 | delete arg1; | |
093d3ff1 | 10218 | |
0085ce49 RD |
10219 | wxPyEndAllowThreads(__tstate); |
10220 | if (PyErr_Occurred()) SWIG_fail; | |
10221 | } | |
10222 | resultobj = SWIG_Py_Void(); | |
10223 | return resultobj; | |
10224 | fail: | |
10225 | return NULL; | |
10226 | } | |
10227 | ||
10228 | ||
10229 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10230 | PyObject *resultobj = 0; | |
10231 | int arg1 ; | |
10232 | wxCursor *result = 0 ; | |
10233 | int val1 ; | |
10234 | int ecode1 = 0 ; | |
10235 | PyObject * obj0 = 0 ; | |
10236 | char * kwnames[] = { | |
10237 | (char *) "id", NULL | |
10238 | }; | |
10239 | ||
10240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10241 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10242 | if (!SWIG_IsOK(ecode1)) { | |
10243 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10244 | } | |
10245 | arg1 = static_cast< int >(val1); | |
10246 | { | |
10247 | if (!wxPyCheckForApp()) SWIG_fail; | |
10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10249 | result = (wxCursor *)new wxCursor(arg1); | |
10250 | wxPyEndAllowThreads(__tstate); | |
10251 | if (PyErr_Occurred()) SWIG_fail; | |
10252 | } | |
10253 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10254 | return resultobj; | |
10255 | fail: | |
10256 | return NULL; | |
10257 | } | |
10258 | ||
10259 | ||
10260 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10261 | PyObject *resultobj = 0; | |
10262 | wxImage *arg1 = 0 ; | |
10263 | wxCursor *result = 0 ; | |
10264 | void *argp1 = 0 ; | |
10265 | int res1 = 0 ; | |
10266 | PyObject * obj0 = 0 ; | |
10267 | char * kwnames[] = { | |
10268 | (char *) "image", NULL | |
10269 | }; | |
10270 | ||
10271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10272 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10273 | if (!SWIG_IsOK(res1)) { | |
10274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10275 | } | |
10276 | if (!argp1) { | |
10277 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10278 | } | |
10279 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10280 | { | |
10281 | if (!wxPyCheckForApp()) SWIG_fail; | |
10282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10283 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10284 | wxPyEndAllowThreads(__tstate); | |
10285 | if (PyErr_Occurred()) SWIG_fail; | |
10286 | } | |
10287 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10288 | return resultobj; | |
10289 | fail: | |
10290 | return NULL; | |
093d3ff1 RD |
10291 | } |
10292 | ||
10293 | ||
b39fe951 | 10294 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
10295 | PyObject *resultobj = 0; |
10296 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10297 | bool result; | |
10298 | void *argp1 = 0 ; | |
10299 | int res1 = 0 ; | |
10300 | PyObject *swig_obj[1] ; | |
10301 | ||
10302 | if (!args) SWIG_fail; | |
10303 | swig_obj[0] = args; | |
10304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10305 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
0085ce49 RD |
10307 | } |
10308 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10309 | { | |
10310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10311 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
10312 | wxPyEndAllowThreads(__tstate); |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
10315 | { | |
10316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10317 | } | |
10318 | return resultobj; | |
10319 | fail: | |
10320 | return NULL; | |
10321 | } | |
10322 | ||
10323 | ||
10324 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10325 | PyObject *obj; | |
10326 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10327 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10328 | return SWIG_Py_Void(); | |
10329 | } | |
10330 | ||
10331 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10332 | return SWIG_Python_InitShadowInstance(args); | |
10333 | } | |
10334 | ||
10335 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10336 | PyObject *resultobj = 0; | |
10337 | int arg1 = (int) 0 ; | |
10338 | int arg2 = (int) 0 ; | |
10339 | int arg3 = (int) 0 ; | |
10340 | int arg4 = (int) 0 ; | |
10341 | wxRegion *result = 0 ; | |
10342 | int val1 ; | |
10343 | int ecode1 = 0 ; | |
10344 | int val2 ; | |
10345 | int ecode2 = 0 ; | |
10346 | int val3 ; | |
10347 | int ecode3 = 0 ; | |
10348 | int val4 ; | |
10349 | int ecode4 = 0 ; | |
10350 | PyObject * obj0 = 0 ; | |
10351 | PyObject * obj1 = 0 ; | |
10352 | PyObject * obj2 = 0 ; | |
10353 | PyObject * obj3 = 0 ; | |
10354 | char * kwnames[] = { | |
10355 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10356 | }; | |
10357 | ||
10358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10359 | if (obj0) { | |
10360 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10361 | if (!SWIG_IsOK(ecode1)) { | |
10362 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10363 | } | |
10364 | arg1 = static_cast< int >(val1); | |
10365 | } | |
10366 | if (obj1) { | |
10367 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10368 | if (!SWIG_IsOK(ecode2)) { | |
10369 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10370 | } | |
10371 | arg2 = static_cast< int >(val2); | |
10372 | } | |
10373 | if (obj2) { | |
10374 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10375 | if (!SWIG_IsOK(ecode3)) { | |
10376 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10377 | } | |
10378 | arg3 = static_cast< int >(val3); | |
10379 | } | |
10380 | if (obj3) { | |
10381 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10382 | if (!SWIG_IsOK(ecode4)) { | |
10383 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10384 | } | |
10385 | arg4 = static_cast< int >(val4); | |
10386 | } | |
10387 | { | |
10388 | if (!wxPyCheckForApp()) SWIG_fail; | |
10389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10390 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10391 | wxPyEndAllowThreads(__tstate); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
10393 | } | |
10394 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10395 | return resultobj; | |
10396 | fail: | |
10397 | return NULL; | |
10398 | } | |
10399 | ||
10400 | ||
10401 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10402 | PyObject *resultobj = 0; | |
10403 | wxBitmap *arg1 = 0 ; | |
10404 | wxRegion *result = 0 ; | |
10405 | void *argp1 = 0 ; | |
10406 | int res1 = 0 ; | |
10407 | PyObject * obj0 = 0 ; | |
10408 | char * kwnames[] = { | |
10409 | (char *) "bmp", NULL | |
10410 | }; | |
10411 | ||
10412 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
10413 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10414 | if (!SWIG_IsOK(res1)) { | |
10415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10416 | } | |
10417 | if (!argp1) { | |
10418 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10419 | } | |
10420 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10421 | { | |
10422 | if (!wxPyCheckForApp()) SWIG_fail; | |
10423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10424 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
10425 | wxPyEndAllowThreads(__tstate); | |
10426 | if (PyErr_Occurred()) SWIG_fail; | |
10427 | } | |
10428 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10429 | return resultobj; | |
10430 | fail: | |
10431 | return NULL; | |
10432 | } | |
10433 | ||
10434 | ||
10435 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10436 | PyObject *resultobj = 0; | |
10437 | wxBitmap *arg1 = 0 ; | |
10438 | wxColour *arg2 = 0 ; | |
10439 | int arg3 = (int) 0 ; | |
10440 | wxRegion *result = 0 ; | |
10441 | void *argp1 = 0 ; | |
10442 | int res1 = 0 ; | |
10443 | wxColour temp2 ; | |
10444 | int val3 ; | |
10445 | int ecode3 = 0 ; | |
10446 | PyObject * obj0 = 0 ; | |
10447 | PyObject * obj1 = 0 ; | |
10448 | PyObject * obj2 = 0 ; | |
10449 | char * kwnames[] = { | |
10450 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
10451 | }; | |
10452 | ||
10453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10454 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10455 | if (!SWIG_IsOK(res1)) { | |
10456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10457 | } | |
10458 | if (!argp1) { | |
10459 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10460 | } | |
10461 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10462 | { | |
10463 | arg2 = &temp2; | |
10464 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10465 | } | |
10466 | if (obj2) { | |
10467 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10468 | if (!SWIG_IsOK(ecode3)) { | |
10469 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
10470 | } | |
10471 | arg3 = static_cast< int >(val3); | |
10472 | } | |
10473 | { | |
10474 | if (!wxPyCheckForApp()) SWIG_fail; | |
10475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10476 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
10477 | wxPyEndAllowThreads(__tstate); | |
10478 | if (PyErr_Occurred()) SWIG_fail; | |
10479 | } | |
10480 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10481 | return resultobj; | |
10482 | fail: | |
10483 | return NULL; | |
10484 | } | |
10485 | ||
10486 | ||
10487 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10488 | PyObject *resultobj = 0; | |
10489 | int arg1 ; | |
10490 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10491 | int arg3 = (int) wxWINDING_RULE ; | |
10492 | wxRegion *result = 0 ; | |
10493 | int val3 ; | |
10494 | int ecode3 = 0 ; | |
10495 | PyObject * obj0 = 0 ; | |
10496 | PyObject * obj1 = 0 ; | |
10497 | char * kwnames[] = { | |
10498 | (char *) "points",(char *) "fillStyle", NULL | |
10499 | }; | |
10500 | ||
10501 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
10502 | { | |
10503 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
10504 | if (arg2 == NULL) SWIG_fail; | |
10505 | } | |
10506 | if (obj1) { | |
10507 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
10508 | if (!SWIG_IsOK(ecode3)) { | |
10509 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
10510 | } | |
10511 | arg3 = static_cast< int >(val3); | |
10512 | } | |
10513 | { | |
10514 | if (!wxPyCheckForApp()) SWIG_fail; | |
10515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10516 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
10517 | wxPyEndAllowThreads(__tstate); | |
10518 | if (PyErr_Occurred()) SWIG_fail; | |
10519 | } | |
10520 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10521 | { | |
10522 | if (arg2) delete [] arg2; | |
10523 | } | |
10524 | return resultobj; | |
10525 | fail: | |
10526 | { | |
10527 | if (arg2) delete [] arg2; | |
10528 | } | |
10529 | return NULL; | |
d14a1e28 RD |
10530 | } |
10531 | ||
10532 | ||
0085ce49 RD |
10533 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10534 | PyObject *resultobj = 0; | |
10535 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10536 | void *argp1 = 0 ; | |
10537 | int res1 = 0 ; | |
10538 | PyObject *swig_obj[1] ; | |
10539 | ||
10540 | if (!args) SWIG_fail; | |
10541 | swig_obj[0] = args; | |
10542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
10543 | if (!SWIG_IsOK(res1)) { | |
10544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10545 | } | |
10546 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10547 | { | |
10548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10549 | delete arg1; | |
d14a1e28 | 10550 | |
0085ce49 RD |
10551 | wxPyEndAllowThreads(__tstate); |
10552 | if (PyErr_Occurred()) SWIG_fail; | |
10553 | } | |
10554 | resultobj = SWIG_Py_Void(); | |
10555 | return resultobj; | |
10556 | fail: | |
10557 | return NULL; | |
d14a1e28 RD |
10558 | } |
10559 | ||
10560 | ||
0085ce49 RD |
10561 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10562 | PyObject *resultobj = 0; | |
10563 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10564 | void *argp1 = 0 ; | |
10565 | int res1 = 0 ; | |
10566 | PyObject *swig_obj[1] ; | |
10567 | ||
10568 | if (!args) SWIG_fail; | |
10569 | swig_obj[0] = args; | |
10570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10571 | if (!SWIG_IsOK(res1)) { | |
10572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10573 | } | |
10574 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10575 | { | |
10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10577 | (arg1)->Clear(); | |
10578 | wxPyEndAllowThreads(__tstate); | |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
10580 | } | |
10581 | resultobj = SWIG_Py_Void(); | |
10582 | return resultobj; | |
10583 | fail: | |
10584 | return NULL; | |
10585 | } | |
10586 | ||
10587 | ||
10588 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10589 | PyObject *resultobj = 0; | |
10590 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10591 | int arg2 ; | |
10592 | int arg3 ; | |
10593 | bool result; | |
10594 | void *argp1 = 0 ; | |
10595 | int res1 = 0 ; | |
10596 | int val2 ; | |
10597 | int ecode2 = 0 ; | |
10598 | int val3 ; | |
10599 | int ecode3 = 0 ; | |
10600 | PyObject * obj0 = 0 ; | |
10601 | PyObject * obj1 = 0 ; | |
10602 | PyObject * obj2 = 0 ; | |
10603 | char * kwnames[] = { | |
10604 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10605 | }; | |
10606 | ||
10607 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10608 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10609 | if (!SWIG_IsOK(res1)) { | |
10610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10611 | } | |
10612 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10613 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10614 | if (!SWIG_IsOK(ecode2)) { | |
10615 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
10616 | } | |
10617 | arg2 = static_cast< int >(val2); | |
10618 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10619 | if (!SWIG_IsOK(ecode3)) { | |
10620 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
10621 | } | |
10622 | arg3 = static_cast< int >(val3); | |
10623 | { | |
10624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10625 | result = (bool)(arg1)->Offset(arg2,arg3); | |
10626 | wxPyEndAllowThreads(__tstate); | |
10627 | if (PyErr_Occurred()) SWIG_fail; | |
10628 | } | |
10629 | { | |
10630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10631 | } | |
10632 | return resultobj; | |
10633 | fail: | |
10634 | return NULL; | |
10635 | } | |
10636 | ||
10637 | ||
10638 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10639 | PyObject *resultobj = 0; | |
10640 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10641 | int arg2 ; | |
10642 | int arg3 ; | |
10643 | wxRegionContain result; | |
10644 | void *argp1 = 0 ; | |
10645 | int res1 = 0 ; | |
10646 | int val2 ; | |
10647 | int ecode2 = 0 ; | |
10648 | int val3 ; | |
10649 | int ecode3 = 0 ; | |
10650 | PyObject * obj0 = 0 ; | |
10651 | PyObject * obj1 = 0 ; | |
10652 | PyObject * obj2 = 0 ; | |
10653 | char * kwnames[] = { | |
10654 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10655 | }; | |
10656 | ||
10657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10659 | if (!SWIG_IsOK(res1)) { | |
10660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10661 | } | |
10662 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10663 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10664 | if (!SWIG_IsOK(ecode2)) { | |
10665 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
10666 | } | |
10667 | arg2 = static_cast< int >(val2); | |
10668 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10669 | if (!SWIG_IsOK(ecode3)) { | |
10670 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
10671 | } | |
10672 | arg3 = static_cast< int >(val3); | |
10673 | { | |
10674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10675 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
10676 | wxPyEndAllowThreads(__tstate); | |
10677 | if (PyErr_Occurred()) SWIG_fail; | |
10678 | } | |
10679 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10680 | return resultobj; | |
10681 | fail: | |
10682 | return NULL; | |
10683 | } | |
10684 | ||
10685 | ||
10686 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10687 | PyObject *resultobj = 0; | |
10688 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10689 | wxPoint *arg2 = 0 ; | |
10690 | wxRegionContain result; | |
10691 | void *argp1 = 0 ; | |
10692 | int res1 = 0 ; | |
10693 | wxPoint temp2 ; | |
10694 | PyObject * obj0 = 0 ; | |
10695 | PyObject * obj1 = 0 ; | |
10696 | char * kwnames[] = { | |
10697 | (char *) "self",(char *) "pt", NULL | |
10698 | }; | |
10699 | ||
10700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
10701 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10702 | if (!SWIG_IsOK(res1)) { | |
10703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10704 | } | |
10705 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10706 | { | |
10707 | arg2 = &temp2; | |
10708 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10709 | } | |
10710 | { | |
10711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10712 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
10713 | wxPyEndAllowThreads(__tstate); | |
10714 | if (PyErr_Occurred()) SWIG_fail; | |
10715 | } | |
10716 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10717 | return resultobj; | |
10718 | fail: | |
10719 | return NULL; | |
10720 | } | |
10721 | ||
10722 | ||
10723 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10724 | PyObject *resultobj = 0; | |
10725 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10726 | wxRect *arg2 = 0 ; | |
10727 | wxRegionContain result; | |
10728 | void *argp1 = 0 ; | |
10729 | int res1 = 0 ; | |
10730 | wxRect temp2 ; | |
10731 | PyObject * obj0 = 0 ; | |
10732 | PyObject * obj1 = 0 ; | |
10733 | char * kwnames[] = { | |
10734 | (char *) "self",(char *) "rect", NULL | |
10735 | }; | |
10736 | ||
10737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10739 | if (!SWIG_IsOK(res1)) { | |
10740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10741 | } | |
10742 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10743 | { | |
10744 | arg2 = &temp2; | |
10745 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10746 | } | |
10747 | { | |
10748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10749 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
10750 | wxPyEndAllowThreads(__tstate); | |
10751 | if (PyErr_Occurred()) SWIG_fail; | |
10752 | } | |
10753 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10754 | return resultobj; | |
10755 | fail: | |
10756 | return NULL; | |
10757 | } | |
10758 | ||
10759 | ||
10760 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10761 | PyObject *resultobj = 0; | |
10762 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10763 | int arg2 ; | |
10764 | int arg3 ; | |
10765 | int arg4 ; | |
10766 | int arg5 ; | |
10767 | wxRegionContain result; | |
10768 | void *argp1 = 0 ; | |
10769 | int res1 = 0 ; | |
10770 | int val2 ; | |
10771 | int ecode2 = 0 ; | |
10772 | int val3 ; | |
10773 | int ecode3 = 0 ; | |
10774 | int val4 ; | |
10775 | int ecode4 = 0 ; | |
10776 | int val5 ; | |
10777 | int ecode5 = 0 ; | |
10778 | PyObject * obj0 = 0 ; | |
10779 | PyObject * obj1 = 0 ; | |
10780 | PyObject * obj2 = 0 ; | |
10781 | PyObject * obj3 = 0 ; | |
10782 | PyObject * obj4 = 0 ; | |
10783 | char * kwnames[] = { | |
10784 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
10785 | }; | |
10786 | ||
10787 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10788 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10789 | if (!SWIG_IsOK(res1)) { | |
10790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10791 | } | |
10792 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10793 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10794 | if (!SWIG_IsOK(ecode2)) { | |
10795 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
10796 | } | |
10797 | arg2 = static_cast< int >(val2); | |
10798 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10799 | if (!SWIG_IsOK(ecode3)) { | |
10800 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
10801 | } | |
10802 | arg3 = static_cast< int >(val3); | |
10803 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10804 | if (!SWIG_IsOK(ecode4)) { | |
10805 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
10806 | } | |
10807 | arg4 = static_cast< int >(val4); | |
10808 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10809 | if (!SWIG_IsOK(ecode5)) { | |
10810 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
10811 | } | |
10812 | arg5 = static_cast< int >(val5); | |
10813 | { | |
10814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10815 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
10816 | wxPyEndAllowThreads(__tstate); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
10818 | } | |
10819 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10820 | return resultobj; | |
10821 | fail: | |
10822 | return NULL; | |
d14a1e28 RD |
10823 | } |
10824 | ||
10825 | ||
0085ce49 RD |
10826 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10827 | PyObject *resultobj = 0; | |
10828 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10829 | wxRect result; | |
10830 | void *argp1 = 0 ; | |
10831 | int res1 = 0 ; | |
10832 | PyObject *swig_obj[1] ; | |
10833 | ||
10834 | if (!args) SWIG_fail; | |
10835 | swig_obj[0] = args; | |
10836 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10837 | if (!SWIG_IsOK(res1)) { | |
10838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10839 | } | |
10840 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10841 | { | |
10842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10843 | result = (arg1)->GetBox(); | |
10844 | wxPyEndAllowThreads(__tstate); | |
10845 | if (PyErr_Occurred()) SWIG_fail; | |
10846 | } | |
10847 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
10848 | return resultobj; | |
10849 | fail: | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
10854 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10855 | PyObject *resultobj = 0; | |
10856 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10857 | int arg2 ; | |
10858 | int arg3 ; | |
10859 | int arg4 ; | |
10860 | int arg5 ; | |
10861 | bool result; | |
10862 | void *argp1 = 0 ; | |
10863 | int res1 = 0 ; | |
10864 | int val2 ; | |
10865 | int ecode2 = 0 ; | |
10866 | int val3 ; | |
10867 | int ecode3 = 0 ; | |
10868 | int val4 ; | |
10869 | int ecode4 = 0 ; | |
10870 | int val5 ; | |
10871 | int ecode5 = 0 ; | |
10872 | PyObject * obj0 = 0 ; | |
10873 | PyObject * obj1 = 0 ; | |
10874 | PyObject * obj2 = 0 ; | |
10875 | PyObject * obj3 = 0 ; | |
10876 | PyObject * obj4 = 0 ; | |
10877 | char * kwnames[] = { | |
10878 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10879 | }; | |
10880 | ||
10881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10883 | if (!SWIG_IsOK(res1)) { | |
10884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10885 | } | |
10886 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10887 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10888 | if (!SWIG_IsOK(ecode2)) { | |
10889 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
10890 | } | |
10891 | arg2 = static_cast< int >(val2); | |
10892 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10893 | if (!SWIG_IsOK(ecode3)) { | |
10894 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
10895 | } | |
10896 | arg3 = static_cast< int >(val3); | |
10897 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10898 | if (!SWIG_IsOK(ecode4)) { | |
10899 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
10900 | } | |
10901 | arg4 = static_cast< int >(val4); | |
10902 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10903 | if (!SWIG_IsOK(ecode5)) { | |
10904 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
10905 | } | |
10906 | arg5 = static_cast< int >(val5); | |
10907 | { | |
10908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10909 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
10910 | wxPyEndAllowThreads(__tstate); | |
10911 | if (PyErr_Occurred()) SWIG_fail; | |
10912 | } | |
10913 | { | |
10914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10915 | } | |
10916 | return resultobj; | |
10917 | fail: | |
10918 | return NULL; | |
10919 | } | |
10920 | ||
10921 | ||
10922 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10923 | PyObject *resultobj = 0; | |
10924 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10925 | wxRect *arg2 = 0 ; | |
10926 | bool result; | |
10927 | void *argp1 = 0 ; | |
10928 | int res1 = 0 ; | |
10929 | wxRect temp2 ; | |
10930 | PyObject * obj0 = 0 ; | |
10931 | PyObject * obj1 = 0 ; | |
10932 | char * kwnames[] = { | |
10933 | (char *) "self",(char *) "rect", NULL | |
10934 | }; | |
10935 | ||
10936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10938 | if (!SWIG_IsOK(res1)) { | |
10939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10940 | } | |
10941 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10942 | { | |
10943 | arg2 = &temp2; | |
10944 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10945 | } | |
10946 | { | |
10947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10948 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
10949 | wxPyEndAllowThreads(__tstate); | |
10950 | if (PyErr_Occurred()) SWIG_fail; | |
10951 | } | |
10952 | { | |
10953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10954 | } | |
10955 | return resultobj; | |
10956 | fail: | |
10957 | return NULL; | |
10958 | } | |
10959 | ||
10960 | ||
10961 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10962 | PyObject *resultobj = 0; | |
10963 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10964 | wxRegion *arg2 = 0 ; | |
10965 | bool result; | |
10966 | void *argp1 = 0 ; | |
10967 | int res1 = 0 ; | |
10968 | void *argp2 = 0 ; | |
10969 | int res2 = 0 ; | |
10970 | PyObject * obj0 = 0 ; | |
10971 | PyObject * obj1 = 0 ; | |
10972 | char * kwnames[] = { | |
10973 | (char *) "self",(char *) "region", NULL | |
10974 | }; | |
10975 | ||
10976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
10977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10978 | if (!SWIG_IsOK(res1)) { | |
10979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10980 | } | |
10981 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10982 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10983 | if (!SWIG_IsOK(res2)) { | |
10984 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10985 | } | |
10986 | if (!argp2) { | |
10987 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10988 | } | |
10989 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10990 | { | |
10991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10992 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
10993 | wxPyEndAllowThreads(__tstate); | |
10994 | if (PyErr_Occurred()) SWIG_fail; | |
10995 | } | |
10996 | { | |
10997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10998 | } | |
10999 | return resultobj; | |
11000 | fail: | |
11001 | return NULL; | |
d14a1e28 RD |
11002 | } |
11003 | ||
11004 | ||
0085ce49 RD |
11005 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11006 | PyObject *resultobj = 0; | |
11007 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11008 | bool result; | |
11009 | void *argp1 = 0 ; | |
11010 | int res1 = 0 ; | |
11011 | PyObject *swig_obj[1] ; | |
11012 | ||
11013 | if (!args) SWIG_fail; | |
11014 | swig_obj[0] = args; | |
11015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11016 | if (!SWIG_IsOK(res1)) { | |
11017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11018 | } | |
11019 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11020 | { | |
11021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11022 | result = (bool)(arg1)->IsEmpty(); | |
11023 | wxPyEndAllowThreads(__tstate); | |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
11025 | } | |
11026 | { | |
11027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11028 | } | |
11029 | return resultobj; | |
11030 | fail: | |
11031 | return NULL; | |
11032 | } | |
11033 | ||
11034 | ||
f5263701 RD |
11035 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11036 | PyObject *resultobj = 0; | |
11037 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11038 | wxRegion *arg2 = 0 ; | |
11039 | bool result; | |
11040 | void *argp1 = 0 ; | |
11041 | int res1 = 0 ; | |
11042 | void *argp2 = 0 ; | |
11043 | int res2 = 0 ; | |
11044 | PyObject * obj0 = 0 ; | |
11045 | PyObject * obj1 = 0 ; | |
11046 | char * kwnames[] = { | |
11047 | (char *) "self",(char *) "region", NULL | |
11048 | }; | |
11049 | ||
11050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
11051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11052 | if (!SWIG_IsOK(res1)) { | |
11053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
11054 | } | |
11055 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11056 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11057 | if (!SWIG_IsOK(res2)) { | |
11058 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11059 | } | |
11060 | if (!argp2) { | |
11061 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11062 | } | |
11063 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11064 | { | |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
11067 | wxPyEndAllowThreads(__tstate); | |
11068 | if (PyErr_Occurred()) SWIG_fail; | |
11069 | } | |
11070 | { | |
11071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11072 | } | |
11073 | return resultobj; | |
11074 | fail: | |
11075 | return NULL; | |
11076 | } | |
11077 | ||
11078 | ||
0085ce49 RD |
11079 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11080 | PyObject *resultobj = 0; | |
11081 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11082 | int arg2 ; | |
11083 | int arg3 ; | |
11084 | int arg4 ; | |
11085 | int arg5 ; | |
11086 | bool result; | |
11087 | void *argp1 = 0 ; | |
11088 | int res1 = 0 ; | |
11089 | int val2 ; | |
11090 | int ecode2 = 0 ; | |
11091 | int val3 ; | |
11092 | int ecode3 = 0 ; | |
11093 | int val4 ; | |
11094 | int ecode4 = 0 ; | |
11095 | int val5 ; | |
11096 | int ecode5 = 0 ; | |
11097 | PyObject * obj0 = 0 ; | |
11098 | PyObject * obj1 = 0 ; | |
11099 | PyObject * obj2 = 0 ; | |
11100 | PyObject * obj3 = 0 ; | |
11101 | PyObject * obj4 = 0 ; | |
11102 | char * kwnames[] = { | |
11103 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11104 | }; | |
11105 | ||
11106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11108 | if (!SWIG_IsOK(res1)) { | |
11109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11110 | } | |
11111 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11112 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11113 | if (!SWIG_IsOK(ecode2)) { | |
11114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
11115 | } | |
11116 | arg2 = static_cast< int >(val2); | |
11117 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11118 | if (!SWIG_IsOK(ecode3)) { | |
11119 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
11120 | } | |
11121 | arg3 = static_cast< int >(val3); | |
11122 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11123 | if (!SWIG_IsOK(ecode4)) { | |
11124 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
11125 | } | |
11126 | arg4 = static_cast< int >(val4); | |
11127 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11128 | if (!SWIG_IsOK(ecode5)) { | |
11129 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
11130 | } | |
11131 | arg5 = static_cast< int >(val5); | |
11132 | { | |
11133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11134 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
11135 | wxPyEndAllowThreads(__tstate); | |
11136 | if (PyErr_Occurred()) SWIG_fail; | |
11137 | } | |
11138 | { | |
11139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11140 | } | |
11141 | return resultobj; | |
11142 | fail: | |
11143 | return NULL; | |
11144 | } | |
11145 | ||
11146 | ||
11147 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11148 | PyObject *resultobj = 0; | |
11149 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11150 | wxRect *arg2 = 0 ; | |
11151 | bool result; | |
11152 | void *argp1 = 0 ; | |
11153 | int res1 = 0 ; | |
11154 | wxRect temp2 ; | |
11155 | PyObject * obj0 = 0 ; | |
11156 | PyObject * obj1 = 0 ; | |
11157 | char * kwnames[] = { | |
11158 | (char *) "self",(char *) "rect", NULL | |
11159 | }; | |
11160 | ||
11161 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11163 | if (!SWIG_IsOK(res1)) { | |
11164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11165 | } | |
11166 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11167 | { | |
11168 | arg2 = &temp2; | |
11169 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11170 | } | |
11171 | { | |
11172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11173 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11174 | wxPyEndAllowThreads(__tstate); | |
11175 | if (PyErr_Occurred()) SWIG_fail; | |
11176 | } | |
11177 | { | |
11178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11179 | } | |
11180 | return resultobj; | |
11181 | fail: | |
11182 | return NULL; | |
11183 | } | |
11184 | ||
11185 | ||
11186 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11187 | PyObject *resultobj = 0; | |
11188 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11189 | wxRegion *arg2 = 0 ; | |
11190 | bool result; | |
11191 | void *argp1 = 0 ; | |
11192 | int res1 = 0 ; | |
11193 | void *argp2 = 0 ; | |
11194 | int res2 = 0 ; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | PyObject * obj1 = 0 ; | |
11197 | char * kwnames[] = { | |
11198 | (char *) "self",(char *) "region", NULL | |
11199 | }; | |
11200 | ||
11201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11203 | if (!SWIG_IsOK(res1)) { | |
11204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11205 | } | |
11206 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11207 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11208 | if (!SWIG_IsOK(res2)) { | |
11209 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11210 | } | |
11211 | if (!argp2) { | |
11212 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11213 | } | |
11214 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11215 | { | |
11216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11217 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11218 | wxPyEndAllowThreads(__tstate); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | } | |
11221 | { | |
11222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11223 | } | |
11224 | return resultobj; | |
11225 | fail: | |
11226 | return NULL; | |
11227 | } | |
11228 | ||
11229 | ||
11230 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11231 | PyObject *resultobj = 0; | |
11232 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11233 | int arg2 ; | |
11234 | int arg3 ; | |
11235 | int arg4 ; | |
11236 | int arg5 ; | |
11237 | bool result; | |
11238 | void *argp1 = 0 ; | |
11239 | int res1 = 0 ; | |
11240 | int val2 ; | |
11241 | int ecode2 = 0 ; | |
11242 | int val3 ; | |
11243 | int ecode3 = 0 ; | |
11244 | int val4 ; | |
11245 | int ecode4 = 0 ; | |
11246 | int val5 ; | |
11247 | int ecode5 = 0 ; | |
11248 | PyObject * obj0 = 0 ; | |
11249 | PyObject * obj1 = 0 ; | |
11250 | PyObject * obj2 = 0 ; | |
11251 | PyObject * obj3 = 0 ; | |
11252 | PyObject * obj4 = 0 ; | |
11253 | char * kwnames[] = { | |
11254 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11255 | }; | |
11256 | ||
11257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11259 | if (!SWIG_IsOK(res1)) { | |
11260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11261 | } | |
11262 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11263 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11264 | if (!SWIG_IsOK(ecode2)) { | |
11265 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11266 | } | |
11267 | arg2 = static_cast< int >(val2); | |
11268 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11269 | if (!SWIG_IsOK(ecode3)) { | |
11270 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11271 | } | |
11272 | arg3 = static_cast< int >(val3); | |
11273 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11274 | if (!SWIG_IsOK(ecode4)) { | |
11275 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11276 | } | |
11277 | arg4 = static_cast< int >(val4); | |
11278 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11279 | if (!SWIG_IsOK(ecode5)) { | |
11280 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11281 | } | |
11282 | arg5 = static_cast< int >(val5); | |
11283 | { | |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11285 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11286 | wxPyEndAllowThreads(__tstate); | |
11287 | if (PyErr_Occurred()) SWIG_fail; | |
11288 | } | |
11289 | { | |
11290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11291 | } | |
11292 | return resultobj; | |
11293 | fail: | |
11294 | return NULL; | |
11295 | } | |
11296 | ||
11297 | ||
11298 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11299 | PyObject *resultobj = 0; | |
11300 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11301 | wxRect *arg2 = 0 ; | |
11302 | bool result; | |
11303 | void *argp1 = 0 ; | |
11304 | int res1 = 0 ; | |
11305 | wxRect temp2 ; | |
11306 | PyObject * obj0 = 0 ; | |
11307 | PyObject * obj1 = 0 ; | |
11308 | char * kwnames[] = { | |
11309 | (char *) "self",(char *) "rect", NULL | |
11310 | }; | |
11311 | ||
11312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11314 | if (!SWIG_IsOK(res1)) { | |
11315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11316 | } | |
11317 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11318 | { | |
11319 | arg2 = &temp2; | |
11320 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11321 | } | |
11322 | { | |
11323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11324 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11325 | wxPyEndAllowThreads(__tstate); | |
11326 | if (PyErr_Occurred()) SWIG_fail; | |
11327 | } | |
11328 | { | |
11329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11330 | } | |
11331 | return resultobj; | |
11332 | fail: | |
11333 | return NULL; | |
11334 | } | |
11335 | ||
11336 | ||
11337 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11338 | PyObject *resultobj = 0; | |
11339 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11340 | wxRegion *arg2 = 0 ; | |
11341 | bool result; | |
11342 | void *argp1 = 0 ; | |
11343 | int res1 = 0 ; | |
11344 | void *argp2 = 0 ; | |
11345 | int res2 = 0 ; | |
11346 | PyObject * obj0 = 0 ; | |
11347 | PyObject * obj1 = 0 ; | |
11348 | char * kwnames[] = { | |
11349 | (char *) "self",(char *) "region", NULL | |
11350 | }; | |
11351 | ||
11352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11354 | if (!SWIG_IsOK(res1)) { | |
11355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11356 | } | |
11357 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11358 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11359 | if (!SWIG_IsOK(res2)) { | |
11360 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11361 | } | |
11362 | if (!argp2) { | |
11363 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11364 | } | |
11365 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11366 | { | |
11367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11368 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11369 | wxPyEndAllowThreads(__tstate); | |
11370 | if (PyErr_Occurred()) SWIG_fail; | |
11371 | } | |
11372 | { | |
11373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11374 | } | |
11375 | return resultobj; | |
11376 | fail: | |
11377 | return NULL; | |
11378 | } | |
11379 | ||
11380 | ||
11381 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11382 | PyObject *resultobj = 0; | |
11383 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11384 | int arg2 ; | |
11385 | int arg3 ; | |
11386 | int arg4 ; | |
11387 | int arg5 ; | |
11388 | bool result; | |
11389 | void *argp1 = 0 ; | |
11390 | int res1 = 0 ; | |
11391 | int val2 ; | |
11392 | int ecode2 = 0 ; | |
11393 | int val3 ; | |
11394 | int ecode3 = 0 ; | |
11395 | int val4 ; | |
11396 | int ecode4 = 0 ; | |
11397 | int val5 ; | |
11398 | int ecode5 = 0 ; | |
11399 | PyObject * obj0 = 0 ; | |
11400 | PyObject * obj1 = 0 ; | |
11401 | PyObject * obj2 = 0 ; | |
11402 | PyObject * obj3 = 0 ; | |
11403 | PyObject * obj4 = 0 ; | |
11404 | char * kwnames[] = { | |
11405 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11406 | }; | |
11407 | ||
11408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11409 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11410 | if (!SWIG_IsOK(res1)) { | |
11411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11412 | } | |
11413 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11414 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11415 | if (!SWIG_IsOK(ecode2)) { | |
11416 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
11417 | } | |
11418 | arg2 = static_cast< int >(val2); | |
11419 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11420 | if (!SWIG_IsOK(ecode3)) { | |
11421 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
11422 | } | |
11423 | arg3 = static_cast< int >(val3); | |
11424 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11425 | if (!SWIG_IsOK(ecode4)) { | |
11426 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
11427 | } | |
11428 | arg4 = static_cast< int >(val4); | |
11429 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11430 | if (!SWIG_IsOK(ecode5)) { | |
11431 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
11432 | } | |
11433 | arg5 = static_cast< int >(val5); | |
11434 | { | |
11435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11436 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
11437 | wxPyEndAllowThreads(__tstate); | |
11438 | if (PyErr_Occurred()) SWIG_fail; | |
11439 | } | |
11440 | { | |
11441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11442 | } | |
11443 | return resultobj; | |
11444 | fail: | |
11445 | return NULL; | |
11446 | } | |
11447 | ||
11448 | ||
11449 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11450 | PyObject *resultobj = 0; | |
11451 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11452 | wxRect *arg2 = 0 ; | |
11453 | bool result; | |
11454 | void *argp1 = 0 ; | |
11455 | int res1 = 0 ; | |
11456 | wxRect temp2 ; | |
11457 | PyObject * obj0 = 0 ; | |
11458 | PyObject * obj1 = 0 ; | |
11459 | char * kwnames[] = { | |
11460 | (char *) "self",(char *) "rect", NULL | |
11461 | }; | |
11462 | ||
11463 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11464 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11465 | if (!SWIG_IsOK(res1)) { | |
11466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11467 | } | |
11468 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11469 | { | |
11470 | arg2 = &temp2; | |
11471 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11472 | } | |
11473 | { | |
11474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11475 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
11476 | wxPyEndAllowThreads(__tstate); | |
11477 | if (PyErr_Occurred()) SWIG_fail; | |
11478 | } | |
11479 | { | |
11480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11481 | } | |
11482 | return resultobj; | |
11483 | fail: | |
11484 | return NULL; | |
11485 | } | |
11486 | ||
11487 | ||
11488 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11489 | PyObject *resultobj = 0; | |
11490 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11491 | wxRegion *arg2 = 0 ; | |
11492 | bool result; | |
11493 | void *argp1 = 0 ; | |
11494 | int res1 = 0 ; | |
11495 | void *argp2 = 0 ; | |
11496 | int res2 = 0 ; | |
11497 | PyObject * obj0 = 0 ; | |
11498 | PyObject * obj1 = 0 ; | |
11499 | char * kwnames[] = { | |
11500 | (char *) "self",(char *) "region", NULL | |
11501 | }; | |
11502 | ||
11503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11505 | if (!SWIG_IsOK(res1)) { | |
11506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11507 | } | |
11508 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11509 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11510 | if (!SWIG_IsOK(res2)) { | |
11511 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11512 | } | |
11513 | if (!argp2) { | |
11514 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11515 | } | |
11516 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11517 | { | |
11518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11519 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
11523 | { | |
11524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11525 | } | |
11526 | return resultobj; | |
11527 | fail: | |
11528 | return NULL; | |
d14a1e28 RD |
11529 | } |
11530 | ||
11531 | ||
0085ce49 RD |
11532 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11533 | PyObject *resultobj = 0; | |
11534 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11535 | SwigValueWrapper<wxBitmap > result; | |
11536 | void *argp1 = 0 ; | |
11537 | int res1 = 0 ; | |
11538 | PyObject *swig_obj[1] ; | |
11539 | ||
11540 | if (!args) SWIG_fail; | |
11541 | swig_obj[0] = args; | |
11542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11543 | if (!SWIG_IsOK(res1)) { | |
11544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11545 | } | |
11546 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11547 | { | |
11548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11549 | result = (arg1)->ConvertToBitmap(); | |
11550 | wxPyEndAllowThreads(__tstate); | |
11551 | if (PyErr_Occurred()) SWIG_fail; | |
11552 | } | |
11553 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
11554 | return resultobj; | |
11555 | fail: | |
11556 | return NULL; | |
11557 | } | |
11558 | ||
11559 | ||
11560 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11561 | PyObject *resultobj = 0; | |
11562 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11563 | wxBitmap *arg2 = 0 ; | |
11564 | bool result; | |
11565 | void *argp1 = 0 ; | |
11566 | int res1 = 0 ; | |
11567 | void *argp2 = 0 ; | |
11568 | int res2 = 0 ; | |
11569 | PyObject * obj0 = 0 ; | |
11570 | PyObject * obj1 = 0 ; | |
11571 | char * kwnames[] = { | |
11572 | (char *) "self",(char *) "bmp", NULL | |
11573 | }; | |
11574 | ||
11575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
11576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11577 | if (!SWIG_IsOK(res1)) { | |
11578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11579 | } | |
11580 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11581 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11582 | if (!SWIG_IsOK(res2)) { | |
11583 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11584 | } | |
11585 | if (!argp2) { | |
11586 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11587 | } | |
11588 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11589 | { | |
11590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11591 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
11592 | wxPyEndAllowThreads(__tstate); | |
11593 | if (PyErr_Occurred()) SWIG_fail; | |
11594 | } | |
11595 | { | |
11596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11597 | } | |
11598 | return resultobj; | |
11599 | fail: | |
11600 | return NULL; | |
11601 | } | |
11602 | ||
11603 | ||
11604 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11605 | PyObject *resultobj = 0; | |
11606 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11607 | wxBitmap *arg2 = 0 ; | |
11608 | wxColour *arg3 = 0 ; | |
11609 | int arg4 = (int) 0 ; | |
11610 | bool result; | |
11611 | void *argp1 = 0 ; | |
11612 | int res1 = 0 ; | |
11613 | void *argp2 = 0 ; | |
11614 | int res2 = 0 ; | |
11615 | wxColour temp3 ; | |
11616 | int val4 ; | |
11617 | int ecode4 = 0 ; | |
11618 | PyObject * obj0 = 0 ; | |
11619 | PyObject * obj1 = 0 ; | |
11620 | PyObject * obj2 = 0 ; | |
11621 | PyObject * obj3 = 0 ; | |
11622 | char * kwnames[] = { | |
11623 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11624 | }; | |
11625 | ||
11626 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11627 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11628 | if (!SWIG_IsOK(res1)) { | |
11629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11630 | } | |
11631 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11632 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11633 | if (!SWIG_IsOK(res2)) { | |
11634 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11635 | } | |
11636 | if (!argp2) { | |
11637 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11638 | } | |
11639 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11640 | { | |
11641 | arg3 = &temp3; | |
11642 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11643 | } | |
11644 | if (obj3) { | |
11645 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11646 | if (!SWIG_IsOK(ecode4)) { | |
11647 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
11648 | } | |
11649 | arg4 = static_cast< int >(val4); | |
11650 | } | |
11651 | { | |
11652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11653 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
11654 | wxPyEndAllowThreads(__tstate); | |
11655 | if (PyErr_Occurred()) SWIG_fail; | |
11656 | } | |
11657 | { | |
11658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11659 | } | |
11660 | return resultobj; | |
11661 | fail: | |
11662 | return NULL; | |
d14a1e28 RD |
11663 | } |
11664 | ||
11665 | ||
0085ce49 RD |
11666 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11667 | PyObject *obj; | |
11668 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11669 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
11670 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11671 | } |
11672 | ||
0085ce49 RD |
11673 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11674 | return SWIG_Python_InitShadowInstance(args); | |
11675 | } | |
d14a1e28 | 11676 | |
0085ce49 RD |
11677 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11678 | PyObject *resultobj = 0; | |
11679 | wxRegion *arg1 = 0 ; | |
11680 | wxRegionIterator *result = 0 ; | |
11681 | void *argp1 = 0 ; | |
11682 | int res1 = 0 ; | |
11683 | PyObject * obj0 = 0 ; | |
11684 | char * kwnames[] = { | |
11685 | (char *) "region", NULL | |
11686 | }; | |
11687 | ||
11688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
11689 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
11690 | if (!SWIG_IsOK(res1)) { | |
11691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11692 | } | |
11693 | if (!argp1) { | |
11694 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11695 | } | |
11696 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11697 | { | |
11698 | if (!wxPyCheckForApp()) SWIG_fail; | |
11699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11700 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
11701 | wxPyEndAllowThreads(__tstate); | |
11702 | if (PyErr_Occurred()) SWIG_fail; | |
11703 | } | |
11704 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
11705 | return resultobj; | |
11706 | fail: | |
11707 | return NULL; | |
d14a1e28 RD |
11708 | } |
11709 | ||
11710 | ||
0085ce49 RD |
11711 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11712 | PyObject *resultobj = 0; | |
11713 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11714 | void *argp1 = 0 ; | |
11715 | int res1 = 0 ; | |
11716 | PyObject *swig_obj[1] ; | |
11717 | ||
11718 | if (!args) SWIG_fail; | |
11719 | swig_obj[0] = args; | |
11720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
11721 | if (!SWIG_IsOK(res1)) { | |
11722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11723 | } | |
11724 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11725 | { | |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | delete arg1; | |
d14a1e28 | 11728 | |
0085ce49 RD |
11729 | wxPyEndAllowThreads(__tstate); |
11730 | if (PyErr_Occurred()) SWIG_fail; | |
11731 | } | |
11732 | resultobj = SWIG_Py_Void(); | |
11733 | return resultobj; | |
11734 | fail: | |
11735 | return NULL; | |
d14a1e28 RD |
11736 | } |
11737 | ||
11738 | ||
0085ce49 RD |
11739 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11740 | PyObject *resultobj = 0; | |
11741 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11742 | int result; | |
11743 | void *argp1 = 0 ; | |
11744 | int res1 = 0 ; | |
11745 | PyObject *swig_obj[1] ; | |
11746 | ||
11747 | if (!args) SWIG_fail; | |
11748 | swig_obj[0] = args; | |
11749 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11750 | if (!SWIG_IsOK(res1)) { | |
11751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11752 | } | |
11753 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11754 | { | |
11755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11756 | result = (int)(arg1)->GetX(); | |
11757 | wxPyEndAllowThreads(__tstate); | |
11758 | if (PyErr_Occurred()) SWIG_fail; | |
11759 | } | |
11760 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11761 | return resultobj; | |
11762 | fail: | |
11763 | return NULL; | |
d14a1e28 RD |
11764 | } |
11765 | ||
11766 | ||
0085ce49 RD |
11767 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11768 | PyObject *resultobj = 0; | |
11769 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11770 | int result; | |
11771 | void *argp1 = 0 ; | |
11772 | int res1 = 0 ; | |
11773 | PyObject *swig_obj[1] ; | |
11774 | ||
11775 | if (!args) SWIG_fail; | |
11776 | swig_obj[0] = args; | |
11777 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11778 | if (!SWIG_IsOK(res1)) { | |
11779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11780 | } | |
11781 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11782 | { | |
11783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11784 | result = (int)(arg1)->GetY(); | |
11785 | wxPyEndAllowThreads(__tstate); | |
11786 | if (PyErr_Occurred()) SWIG_fail; | |
11787 | } | |
11788 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11789 | return resultobj; | |
11790 | fail: | |
11791 | return NULL; | |
d14a1e28 RD |
11792 | } |
11793 | ||
11794 | ||
0085ce49 RD |
11795 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11796 | PyObject *resultobj = 0; | |
11797 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11798 | int result; | |
11799 | void *argp1 = 0 ; | |
11800 | int res1 = 0 ; | |
11801 | PyObject *swig_obj[1] ; | |
11802 | ||
11803 | if (!args) SWIG_fail; | |
11804 | swig_obj[0] = args; | |
11805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11806 | if (!SWIG_IsOK(res1)) { | |
11807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11808 | } | |
11809 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11810 | { | |
11811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11812 | result = (int)(arg1)->GetW(); | |
11813 | wxPyEndAllowThreads(__tstate); | |
11814 | if (PyErr_Occurred()) SWIG_fail; | |
11815 | } | |
11816 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11817 | return resultobj; | |
11818 | fail: | |
11819 | return NULL; | |
d14a1e28 RD |
11820 | } |
11821 | ||
11822 | ||
0085ce49 RD |
11823 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11824 | PyObject *resultobj = 0; | |
11825 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11826 | int result; | |
11827 | void *argp1 = 0 ; | |
11828 | int res1 = 0 ; | |
11829 | PyObject *swig_obj[1] ; | |
11830 | ||
11831 | if (!args) SWIG_fail; | |
11832 | swig_obj[0] = args; | |
11833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11834 | if (!SWIG_IsOK(res1)) { | |
11835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11836 | } | |
11837 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11838 | { | |
11839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11840 | result = (int)(arg1)->GetWidth(); | |
11841 | wxPyEndAllowThreads(__tstate); | |
11842 | if (PyErr_Occurred()) SWIG_fail; | |
11843 | } | |
11844 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11845 | return resultobj; | |
11846 | fail: | |
11847 | return NULL; | |
093d3ff1 RD |
11848 | } |
11849 | ||
11850 | ||
0085ce49 RD |
11851 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11852 | PyObject *resultobj = 0; | |
11853 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11854 | int result; | |
11855 | void *argp1 = 0 ; | |
11856 | int res1 = 0 ; | |
11857 | PyObject *swig_obj[1] ; | |
11858 | ||
11859 | if (!args) SWIG_fail; | |
11860 | swig_obj[0] = args; | |
11861 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11862 | if (!SWIG_IsOK(res1)) { | |
11863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11864 | } | |
11865 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11866 | { | |
11867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11868 | result = (int)(arg1)->GetH(); | |
11869 | wxPyEndAllowThreads(__tstate); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
11872 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11873 | return resultobj; | |
11874 | fail: | |
11875 | return NULL; | |
d14a1e28 RD |
11876 | } |
11877 | ||
11878 | ||
0085ce49 RD |
11879 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11880 | PyObject *resultobj = 0; | |
11881 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11882 | int result; | |
11883 | void *argp1 = 0 ; | |
11884 | int res1 = 0 ; | |
11885 | PyObject *swig_obj[1] ; | |
11886 | ||
11887 | if (!args) SWIG_fail; | |
11888 | swig_obj[0] = args; | |
11889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11890 | if (!SWIG_IsOK(res1)) { | |
11891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11892 | } | |
11893 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11894 | { | |
11895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11896 | result = (int)(arg1)->GetHeight(); | |
11897 | wxPyEndAllowThreads(__tstate); | |
11898 | if (PyErr_Occurred()) SWIG_fail; | |
11899 | } | |
11900 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11901 | return resultobj; | |
11902 | fail: | |
11903 | return NULL; | |
093d3ff1 RD |
11904 | } |
11905 | ||
11906 | ||
0085ce49 RD |
11907 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11908 | PyObject *resultobj = 0; | |
11909 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11910 | wxRect result; | |
11911 | void *argp1 = 0 ; | |
11912 | int res1 = 0 ; | |
11913 | PyObject *swig_obj[1] ; | |
11914 | ||
11915 | if (!args) SWIG_fail; | |
11916 | swig_obj[0] = args; | |
11917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11918 | if (!SWIG_IsOK(res1)) { | |
11919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11920 | } | |
11921 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11922 | { | |
11923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11924 | result = (arg1)->GetRect(); | |
11925 | wxPyEndAllowThreads(__tstate); | |
11926 | if (PyErr_Occurred()) SWIG_fail; | |
11927 | } | |
11928 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11929 | return resultobj; | |
11930 | fail: | |
11931 | return NULL; | |
d14a1e28 RD |
11932 | } |
11933 | ||
11934 | ||
0085ce49 RD |
11935 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11936 | PyObject *resultobj = 0; | |
11937 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11938 | bool result; | |
11939 | void *argp1 = 0 ; | |
11940 | int res1 = 0 ; | |
11941 | PyObject *swig_obj[1] ; | |
11942 | ||
11943 | if (!args) SWIG_fail; | |
11944 | swig_obj[0] = args; | |
11945 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11946 | if (!SWIG_IsOK(res1)) { | |
11947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11948 | } | |
11949 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11950 | { | |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | result = (bool)(arg1)->HaveRects(); | |
11953 | wxPyEndAllowThreads(__tstate); | |
11954 | if (PyErr_Occurred()) SWIG_fail; | |
11955 | } | |
11956 | { | |
11957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11958 | } | |
11959 | return resultobj; | |
11960 | fail: | |
11961 | return NULL; | |
093d3ff1 RD |
11962 | } |
11963 | ||
11964 | ||
0085ce49 RD |
11965 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11966 | PyObject *resultobj = 0; | |
11967 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11968 | void *argp1 = 0 ; | |
11969 | int res1 = 0 ; | |
11970 | PyObject *swig_obj[1] ; | |
11971 | ||
11972 | if (!args) SWIG_fail; | |
11973 | swig_obj[0] = args; | |
11974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11975 | if (!SWIG_IsOK(res1)) { | |
11976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11977 | } | |
11978 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11979 | { | |
11980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11981 | (arg1)->Reset(); | |
11982 | wxPyEndAllowThreads(__tstate); | |
11983 | if (PyErr_Occurred()) SWIG_fail; | |
11984 | } | |
11985 | resultobj = SWIG_Py_Void(); | |
11986 | return resultobj; | |
11987 | fail: | |
11988 | return NULL; | |
d14a1e28 RD |
11989 | } |
11990 | ||
11991 | ||
0085ce49 RD |
11992 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11993 | PyObject *resultobj = 0; | |
11994 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11995 | void *argp1 = 0 ; | |
11996 | int res1 = 0 ; | |
11997 | PyObject *swig_obj[1] ; | |
11998 | ||
11999 | if (!args) SWIG_fail; | |
12000 | swig_obj[0] = args; | |
12001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12002 | if (!SWIG_IsOK(res1)) { | |
12003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12004 | } | |
12005 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12006 | { | |
12007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12008 | wxRegionIterator_Next(arg1); | |
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
12012 | resultobj = SWIG_Py_Void(); | |
12013 | return resultobj; | |
12014 | fail: | |
12015 | return NULL; | |
d14a1e28 RD |
12016 | } |
12017 | ||
12018 | ||
0085ce49 RD |
12019 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12020 | PyObject *resultobj = 0; | |
12021 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12022 | bool result; | |
12023 | void *argp1 = 0 ; | |
12024 | int res1 = 0 ; | |
12025 | PyObject *swig_obj[1] ; | |
12026 | ||
12027 | if (!args) SWIG_fail; | |
12028 | swig_obj[0] = args; | |
12029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12030 | if (!SWIG_IsOK(res1)) { | |
12031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12032 | } | |
12033 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12034 | { | |
12035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12036 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
12037 | wxPyEndAllowThreads(__tstate); | |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
12039 | } | |
12040 | { | |
12041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12042 | } | |
12043 | return resultobj; | |
12044 | fail: | |
12045 | return NULL; | |
d14a1e28 RD |
12046 | } |
12047 | ||
12048 | ||
0085ce49 RD |
12049 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12050 | PyObject *obj; | |
12051 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12052 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
12053 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12054 | } |
12055 | ||
0085ce49 RD |
12056 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12057 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12058 | } |
12059 | ||
0085ce49 RD |
12060 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12061 | PyObject *resultobj = 0; | |
12062 | wxNativeFontInfo *result = 0 ; | |
12063 | ||
12064 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
12065 | { | |
12066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12067 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
12068 | wxPyEndAllowThreads(__tstate); | |
12069 | if (PyErr_Occurred()) SWIG_fail; | |
12070 | } | |
12071 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
12072 | return resultobj; | |
12073 | fail: | |
12074 | return NULL; | |
d14a1e28 RD |
12075 | } |
12076 | ||
12077 | ||
0085ce49 RD |
12078 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12079 | PyObject *resultobj = 0; | |
12080 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12081 | void *argp1 = 0 ; | |
12082 | int res1 = 0 ; | |
12083 | PyObject *swig_obj[1] ; | |
12084 | ||
12085 | if (!args) SWIG_fail; | |
12086 | swig_obj[0] = args; | |
12087 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
12088 | if (!SWIG_IsOK(res1)) { | |
12089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12090 | } | |
12091 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12092 | { | |
12093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12094 | delete arg1; | |
d14a1e28 | 12095 | |
0085ce49 RD |
12096 | wxPyEndAllowThreads(__tstate); |
12097 | if (PyErr_Occurred()) SWIG_fail; | |
12098 | } | |
12099 | resultobj = SWIG_Py_Void(); | |
12100 | return resultobj; | |
12101 | fail: | |
12102 | return NULL; | |
d14a1e28 RD |
12103 | } |
12104 | ||
12105 | ||
0085ce49 RD |
12106 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12107 | PyObject *resultobj = 0; | |
12108 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12109 | void *argp1 = 0 ; | |
12110 | int res1 = 0 ; | |
12111 | PyObject *swig_obj[1] ; | |
12112 | ||
12113 | if (!args) SWIG_fail; | |
12114 | swig_obj[0] = args; | |
12115 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12116 | if (!SWIG_IsOK(res1)) { | |
12117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12118 | } | |
12119 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12120 | { | |
12121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12122 | (arg1)->Init(); | |
12123 | wxPyEndAllowThreads(__tstate); | |
12124 | if (PyErr_Occurred()) SWIG_fail; | |
12125 | } | |
12126 | resultobj = SWIG_Py_Void(); | |
12127 | return resultobj; | |
12128 | fail: | |
12129 | return NULL; | |
12130 | } | |
12131 | ||
12132 | ||
12133 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12134 | PyObject *resultobj = 0; | |
12135 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12136 | wxFont *arg2 = 0 ; | |
12137 | void *argp1 = 0 ; | |
12138 | int res1 = 0 ; | |
12139 | void *argp2 = 0 ; | |
12140 | int res2 = 0 ; | |
12141 | PyObject * obj0 = 0 ; | |
12142 | PyObject * obj1 = 0 ; | |
12143 | char * kwnames[] = { | |
12144 | (char *) "self",(char *) "font", NULL | |
12145 | }; | |
12146 | ||
12147 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
12148 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12149 | if (!SWIG_IsOK(res1)) { | |
12150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12151 | } | |
12152 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12153 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
12154 | if (!SWIG_IsOK(res2)) { | |
12155 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12156 | } | |
12157 | if (!argp2) { | |
12158 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12159 | } | |
12160 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12161 | { | |
12162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12163 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
12164 | wxPyEndAllowThreads(__tstate); | |
12165 | if (PyErr_Occurred()) SWIG_fail; | |
12166 | } | |
12167 | resultobj = SWIG_Py_Void(); | |
12168 | return resultobj; | |
12169 | fail: | |
12170 | return NULL; | |
e6ffcedd RD |
12171 | } |
12172 | ||
12173 | ||
0085ce49 RD |
12174 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12175 | PyObject *resultobj = 0; | |
12176 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12177 | int result; | |
12178 | void *argp1 = 0 ; | |
12179 | int res1 = 0 ; | |
12180 | PyObject *swig_obj[1] ; | |
12181 | ||
12182 | if (!args) SWIG_fail; | |
12183 | swig_obj[0] = args; | |
12184 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12185 | if (!SWIG_IsOK(res1)) { | |
12186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12187 | } | |
12188 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12189 | { | |
12190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12191 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12192 | wxPyEndAllowThreads(__tstate); | |
12193 | if (PyErr_Occurred()) SWIG_fail; | |
12194 | } | |
12195 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12196 | return resultobj; | |
12197 | fail: | |
12198 | return NULL; | |
d14a1e28 RD |
12199 | } |
12200 | ||
12201 | ||
0085ce49 RD |
12202 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12203 | PyObject *resultobj = 0; | |
12204 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12205 | wxFontStyle result; | |
12206 | void *argp1 = 0 ; | |
12207 | int res1 = 0 ; | |
12208 | PyObject *swig_obj[1] ; | |
12209 | ||
12210 | if (!args) SWIG_fail; | |
12211 | swig_obj[0] = args; | |
12212 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12213 | if (!SWIG_IsOK(res1)) { | |
12214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12215 | } | |
12216 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12217 | { | |
12218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12219 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
12220 | wxPyEndAllowThreads(__tstate); | |
12221 | if (PyErr_Occurred()) SWIG_fail; | |
12222 | } | |
12223 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12224 | return resultobj; | |
12225 | fail: | |
12226 | return NULL; | |
d14a1e28 RD |
12227 | } |
12228 | ||
12229 | ||
0085ce49 RD |
12230 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12231 | PyObject *resultobj = 0; | |
12232 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12233 | wxFontWeight result; | |
12234 | void *argp1 = 0 ; | |
12235 | int res1 = 0 ; | |
12236 | PyObject *swig_obj[1] ; | |
12237 | ||
12238 | if (!args) SWIG_fail; | |
12239 | swig_obj[0] = args; | |
12240 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12241 | if (!SWIG_IsOK(res1)) { | |
12242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12243 | } | |
12244 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12245 | { | |
12246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12247 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12248 | wxPyEndAllowThreads(__tstate); | |
12249 | if (PyErr_Occurred()) SWIG_fail; | |
12250 | } | |
12251 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12252 | return resultobj; | |
12253 | fail: | |
12254 | return NULL; | |
d14a1e28 RD |
12255 | } |
12256 | ||
12257 | ||
0085ce49 RD |
12258 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12259 | PyObject *resultobj = 0; | |
12260 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12261 | bool result; | |
12262 | void *argp1 = 0 ; | |
12263 | int res1 = 0 ; | |
12264 | PyObject *swig_obj[1] ; | |
12265 | ||
12266 | if (!args) SWIG_fail; | |
12267 | swig_obj[0] = args; | |
12268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12269 | if (!SWIG_IsOK(res1)) { | |
12270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12271 | } | |
12272 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12273 | { | |
12274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12275 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12276 | wxPyEndAllowThreads(__tstate); | |
12277 | if (PyErr_Occurred()) SWIG_fail; | |
12278 | } | |
12279 | { | |
12280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12281 | } | |
12282 | return resultobj; | |
12283 | fail: | |
12284 | return NULL; | |
d14a1e28 RD |
12285 | } |
12286 | ||
12287 | ||
0085ce49 RD |
12288 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12289 | PyObject *resultobj = 0; | |
12290 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12291 | wxString result; | |
12292 | void *argp1 = 0 ; | |
12293 | int res1 = 0 ; | |
12294 | PyObject *swig_obj[1] ; | |
12295 | ||
12296 | if (!args) SWIG_fail; | |
12297 | swig_obj[0] = args; | |
12298 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12299 | if (!SWIG_IsOK(res1)) { | |
12300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12301 | } | |
12302 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12303 | { | |
12304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12305 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12306 | wxPyEndAllowThreads(__tstate); | |
12307 | if (PyErr_Occurred()) SWIG_fail; | |
12308 | } | |
12309 | { | |
12310 | #if wxUSE_UNICODE | |
12311 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12312 | #else | |
12313 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12314 | #endif | |
12315 | } | |
12316 | return resultobj; | |
12317 | fail: | |
12318 | return NULL; | |
d14a1e28 RD |
12319 | } |
12320 | ||
12321 | ||
0085ce49 RD |
12322 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12323 | PyObject *resultobj = 0; | |
12324 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12325 | wxFontFamily result; | |
12326 | void *argp1 = 0 ; | |
12327 | int res1 = 0 ; | |
12328 | PyObject *swig_obj[1] ; | |
12329 | ||
12330 | if (!args) SWIG_fail; | |
12331 | swig_obj[0] = args; | |
12332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12333 | if (!SWIG_IsOK(res1)) { | |
12334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12335 | } | |
12336 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12337 | { | |
12338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12339 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
12340 | wxPyEndAllowThreads(__tstate); | |
12341 | if (PyErr_Occurred()) SWIG_fail; | |
12342 | } | |
12343 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12344 | return resultobj; | |
12345 | fail: | |
12346 | return NULL; | |
d14a1e28 RD |
12347 | } |
12348 | ||
12349 | ||
0085ce49 RD |
12350 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12351 | PyObject *resultobj = 0; | |
12352 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12353 | wxFontEncoding result; | |
12354 | void *argp1 = 0 ; | |
12355 | int res1 = 0 ; | |
12356 | PyObject *swig_obj[1] ; | |
12357 | ||
12358 | if (!args) SWIG_fail; | |
12359 | swig_obj[0] = args; | |
12360 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12361 | if (!SWIG_IsOK(res1)) { | |
12362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12363 | } | |
12364 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12365 | { | |
12366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12367 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12368 | wxPyEndAllowThreads(__tstate); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | } | |
12371 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12372 | return resultobj; | |
12373 | fail: | |
12374 | return NULL; | |
12375 | } | |
12376 | ||
12377 | ||
12378 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12379 | PyObject *resultobj = 0; | |
12380 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12381 | int arg2 ; | |
12382 | void *argp1 = 0 ; | |
12383 | int res1 = 0 ; | |
12384 | int val2 ; | |
12385 | int ecode2 = 0 ; | |
12386 | PyObject * obj0 = 0 ; | |
12387 | PyObject * obj1 = 0 ; | |
12388 | char * kwnames[] = { | |
12389 | (char *) "self",(char *) "pointsize", NULL | |
12390 | }; | |
12391 | ||
12392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12394 | if (!SWIG_IsOK(res1)) { | |
12395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12396 | } | |
12397 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12398 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12399 | if (!SWIG_IsOK(ecode2)) { | |
12400 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12401 | } | |
12402 | arg2 = static_cast< int >(val2); | |
12403 | { | |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | (arg1)->SetPointSize(arg2); | |
12406 | wxPyEndAllowThreads(__tstate); | |
12407 | if (PyErr_Occurred()) SWIG_fail; | |
12408 | } | |
12409 | resultobj = SWIG_Py_Void(); | |
12410 | return resultobj; | |
12411 | fail: | |
12412 | return NULL; | |
12413 | } | |
12414 | ||
12415 | ||
12416 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12417 | PyObject *resultobj = 0; | |
12418 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12419 | wxFontStyle arg2 ; | |
12420 | void *argp1 = 0 ; | |
12421 | int res1 = 0 ; | |
12422 | int val2 ; | |
12423 | int ecode2 = 0 ; | |
12424 | PyObject * obj0 = 0 ; | |
12425 | PyObject * obj1 = 0 ; | |
12426 | char * kwnames[] = { | |
12427 | (char *) "self",(char *) "style", NULL | |
12428 | }; | |
12429 | ||
12430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12432 | if (!SWIG_IsOK(res1)) { | |
12433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12434 | } | |
12435 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12436 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12437 | if (!SWIG_IsOK(ecode2)) { | |
12438 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
12439 | } | |
12440 | arg2 = static_cast< wxFontStyle >(val2); | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | (arg1)->SetStyle(arg2); | |
12444 | wxPyEndAllowThreads(__tstate); | |
12445 | if (PyErr_Occurred()) SWIG_fail; | |
12446 | } | |
12447 | resultobj = SWIG_Py_Void(); | |
12448 | return resultobj; | |
12449 | fail: | |
12450 | return NULL; | |
12451 | } | |
12452 | ||
12453 | ||
12454 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12455 | PyObject *resultobj = 0; | |
12456 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12457 | wxFontWeight arg2 ; | |
12458 | void *argp1 = 0 ; | |
12459 | int res1 = 0 ; | |
12460 | int val2 ; | |
12461 | int ecode2 = 0 ; | |
12462 | PyObject * obj0 = 0 ; | |
12463 | PyObject * obj1 = 0 ; | |
12464 | char * kwnames[] = { | |
12465 | (char *) "self",(char *) "weight", NULL | |
12466 | }; | |
12467 | ||
12468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12470 | if (!SWIG_IsOK(res1)) { | |
12471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12472 | } | |
12473 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12474 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12475 | if (!SWIG_IsOK(ecode2)) { | |
12476 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
12477 | } | |
12478 | arg2 = static_cast< wxFontWeight >(val2); | |
12479 | { | |
12480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12481 | (arg1)->SetWeight(arg2); | |
12482 | wxPyEndAllowThreads(__tstate); | |
12483 | if (PyErr_Occurred()) SWIG_fail; | |
12484 | } | |
12485 | resultobj = SWIG_Py_Void(); | |
12486 | return resultobj; | |
12487 | fail: | |
12488 | return NULL; | |
12489 | } | |
12490 | ||
12491 | ||
12492 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12493 | PyObject *resultobj = 0; | |
12494 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12495 | bool arg2 ; | |
12496 | void *argp1 = 0 ; | |
12497 | int res1 = 0 ; | |
12498 | bool val2 ; | |
12499 | int ecode2 = 0 ; | |
12500 | PyObject * obj0 = 0 ; | |
12501 | PyObject * obj1 = 0 ; | |
12502 | char * kwnames[] = { | |
12503 | (char *) "self",(char *) "underlined", NULL | |
12504 | }; | |
12505 | ||
12506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12508 | if (!SWIG_IsOK(res1)) { | |
12509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12510 | } | |
12511 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12512 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12513 | if (!SWIG_IsOK(ecode2)) { | |
12514 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12515 | } | |
12516 | arg2 = static_cast< bool >(val2); | |
12517 | { | |
12518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12519 | (arg1)->SetUnderlined(arg2); | |
12520 | wxPyEndAllowThreads(__tstate); | |
12521 | if (PyErr_Occurred()) SWIG_fail; | |
12522 | } | |
12523 | resultobj = SWIG_Py_Void(); | |
12524 | return resultobj; | |
12525 | fail: | |
12526 | return NULL; | |
12527 | } | |
12528 | ||
12529 | ||
12530 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12531 | PyObject *resultobj = 0; | |
12532 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12533 | wxString arg2 ; | |
704eda0c | 12534 | bool result; |
0085ce49 RD |
12535 | void *argp1 = 0 ; |
12536 | int res1 = 0 ; | |
12537 | PyObject * obj0 = 0 ; | |
12538 | PyObject * obj1 = 0 ; | |
12539 | char * kwnames[] = { | |
12540 | (char *) "self",(char *) "facename", NULL | |
12541 | }; | |
12542 | ||
12543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12545 | if (!SWIG_IsOK(res1)) { | |
12546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12547 | } | |
12548 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12549 | { | |
12550 | wxString* sptr = wxString_in_helper(obj1); | |
12551 | if (sptr == NULL) SWIG_fail; | |
12552 | arg2 = *sptr; | |
12553 | delete sptr; | |
12554 | } | |
12555 | { | |
12556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12557 | result = (bool)(arg1)->SetFaceName(arg2); |
0085ce49 RD |
12558 | wxPyEndAllowThreads(__tstate); |
12559 | if (PyErr_Occurred()) SWIG_fail; | |
12560 | } | |
704eda0c RD |
12561 | { |
12562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12563 | } | |
0085ce49 RD |
12564 | return resultobj; |
12565 | fail: | |
12566 | return NULL; | |
12567 | } | |
12568 | ||
12569 | ||
12570 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12571 | PyObject *resultobj = 0; | |
12572 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12573 | wxFontFamily arg2 ; | |
12574 | void *argp1 = 0 ; | |
12575 | int res1 = 0 ; | |
12576 | int val2 ; | |
12577 | int ecode2 = 0 ; | |
12578 | PyObject * obj0 = 0 ; | |
12579 | PyObject * obj1 = 0 ; | |
12580 | char * kwnames[] = { | |
12581 | (char *) "self",(char *) "family", NULL | |
12582 | }; | |
12583 | ||
12584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12586 | if (!SWIG_IsOK(res1)) { | |
12587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12588 | } | |
12589 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12590 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12591 | if (!SWIG_IsOK(ecode2)) { | |
12592 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12593 | } | |
12594 | arg2 = static_cast< wxFontFamily >(val2); | |
12595 | { | |
12596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12597 | (arg1)->SetFamily(arg2); | |
12598 | wxPyEndAllowThreads(__tstate); | |
12599 | if (PyErr_Occurred()) SWIG_fail; | |
12600 | } | |
12601 | resultobj = SWIG_Py_Void(); | |
12602 | return resultobj; | |
12603 | fail: | |
12604 | return NULL; | |
12605 | } | |
12606 | ||
12607 | ||
12608 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12609 | PyObject *resultobj = 0; | |
12610 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12611 | wxFontEncoding arg2 ; | |
12612 | void *argp1 = 0 ; | |
12613 | int res1 = 0 ; | |
12614 | int val2 ; | |
12615 | int ecode2 = 0 ; | |
12616 | PyObject * obj0 = 0 ; | |
12617 | PyObject * obj1 = 0 ; | |
12618 | char * kwnames[] = { | |
12619 | (char *) "self",(char *) "encoding", NULL | |
12620 | }; | |
12621 | ||
12622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12624 | if (!SWIG_IsOK(res1)) { | |
12625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12626 | } | |
12627 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12628 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12629 | if (!SWIG_IsOK(ecode2)) { | |
12630 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12631 | } | |
12632 | arg2 = static_cast< wxFontEncoding >(val2); | |
12633 | { | |
12634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12635 | (arg1)->SetEncoding(arg2); | |
12636 | wxPyEndAllowThreads(__tstate); | |
12637 | if (PyErr_Occurred()) SWIG_fail; | |
12638 | } | |
12639 | resultobj = SWIG_Py_Void(); | |
12640 | return resultobj; | |
12641 | fail: | |
12642 | return NULL; | |
12643 | } | |
12644 | ||
12645 | ||
12646 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12647 | PyObject *resultobj = 0; | |
12648 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12649 | wxString *arg2 = 0 ; | |
12650 | bool result; | |
12651 | void *argp1 = 0 ; | |
12652 | int res1 = 0 ; | |
12653 | bool temp2 = false ; | |
12654 | PyObject * obj0 = 0 ; | |
12655 | PyObject * obj1 = 0 ; | |
12656 | char * kwnames[] = { | |
12657 | (char *) "self",(char *) "s", NULL | |
12658 | }; | |
12659 | ||
12660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12662 | if (!SWIG_IsOK(res1)) { | |
12663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12664 | } | |
12665 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12666 | { | |
12667 | arg2 = wxString_in_helper(obj1); | |
12668 | if (arg2 == NULL) SWIG_fail; | |
12669 | temp2 = true; | |
12670 | } | |
12671 | { | |
12672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12673 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
12674 | wxPyEndAllowThreads(__tstate); | |
12675 | if (PyErr_Occurred()) SWIG_fail; | |
12676 | } | |
12677 | { | |
12678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12679 | } | |
12680 | { | |
12681 | if (temp2) | |
12682 | delete arg2; | |
12683 | } | |
12684 | return resultobj; | |
12685 | fail: | |
12686 | { | |
12687 | if (temp2) | |
12688 | delete arg2; | |
12689 | } | |
12690 | return NULL; | |
d14a1e28 RD |
12691 | } |
12692 | ||
12693 | ||
0085ce49 RD |
12694 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12695 | PyObject *resultobj = 0; | |
12696 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12697 | wxString result; | |
12698 | void *argp1 = 0 ; | |
12699 | int res1 = 0 ; | |
12700 | PyObject *swig_obj[1] ; | |
12701 | ||
12702 | if (!args) SWIG_fail; | |
12703 | swig_obj[0] = args; | |
12704 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12705 | if (!SWIG_IsOK(res1)) { | |
12706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12707 | } | |
12708 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12709 | { | |
12710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12711 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
12712 | wxPyEndAllowThreads(__tstate); | |
12713 | if (PyErr_Occurred()) SWIG_fail; | |
12714 | } | |
12715 | { | |
12716 | #if wxUSE_UNICODE | |
12717 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12718 | #else | |
12719 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12720 | #endif | |
12721 | } | |
12722 | return resultobj; | |
12723 | fail: | |
12724 | return NULL; | |
d14a1e28 RD |
12725 | } |
12726 | ||
12727 | ||
0085ce49 RD |
12728 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12729 | PyObject *resultobj = 0; | |
12730 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12731 | wxString result; | |
12732 | void *argp1 = 0 ; | |
12733 | int res1 = 0 ; | |
12734 | PyObject *swig_obj[1] ; | |
12735 | ||
12736 | if (!args) SWIG_fail; | |
12737 | swig_obj[0] = args; | |
12738 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12739 | if (!SWIG_IsOK(res1)) { | |
12740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12741 | } | |
12742 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12743 | { | |
12744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12745 | result = wxNativeFontInfo___str__(arg1); | |
12746 | wxPyEndAllowThreads(__tstate); | |
12747 | if (PyErr_Occurred()) SWIG_fail; | |
12748 | } | |
12749 | { | |
12750 | #if wxUSE_UNICODE | |
12751 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12752 | #else | |
12753 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12754 | #endif | |
12755 | } | |
12756 | return resultobj; | |
12757 | fail: | |
12758 | return NULL; | |
12759 | } | |
12760 | ||
12761 | ||
12762 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12763 | PyObject *resultobj = 0; | |
12764 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12765 | wxString *arg2 = 0 ; | |
12766 | bool result; | |
12767 | void *argp1 = 0 ; | |
12768 | int res1 = 0 ; | |
12769 | bool temp2 = false ; | |
12770 | PyObject * obj0 = 0 ; | |
12771 | PyObject * obj1 = 0 ; | |
12772 | char * kwnames[] = { | |
12773 | (char *) "self",(char *) "s", NULL | |
12774 | }; | |
12775 | ||
12776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12778 | if (!SWIG_IsOK(res1)) { | |
12779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12780 | } | |
12781 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12782 | { | |
12783 | arg2 = wxString_in_helper(obj1); | |
12784 | if (arg2 == NULL) SWIG_fail; | |
12785 | temp2 = true; | |
12786 | } | |
12787 | { | |
12788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12789 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
12790 | wxPyEndAllowThreads(__tstate); | |
12791 | if (PyErr_Occurred()) SWIG_fail; | |
12792 | } | |
12793 | { | |
12794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12795 | } | |
12796 | { | |
12797 | if (temp2) | |
12798 | delete arg2; | |
12799 | } | |
12800 | return resultobj; | |
12801 | fail: | |
12802 | { | |
12803 | if (temp2) | |
12804 | delete arg2; | |
12805 | } | |
12806 | return NULL; | |
d14a1e28 RD |
12807 | } |
12808 | ||
12809 | ||
0085ce49 RD |
12810 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12811 | PyObject *resultobj = 0; | |
12812 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12813 | wxString result; | |
12814 | void *argp1 = 0 ; | |
12815 | int res1 = 0 ; | |
12816 | PyObject *swig_obj[1] ; | |
12817 | ||
12818 | if (!args) SWIG_fail; | |
12819 | swig_obj[0] = args; | |
12820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12821 | if (!SWIG_IsOK(res1)) { | |
12822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12823 | } | |
12824 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12825 | { | |
12826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12827 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
12828 | wxPyEndAllowThreads(__tstate); | |
12829 | if (PyErr_Occurred()) SWIG_fail; | |
12830 | } | |
12831 | { | |
12832 | #if wxUSE_UNICODE | |
12833 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12834 | #else | |
12835 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12836 | #endif | |
12837 | } | |
12838 | return resultobj; | |
12839 | fail: | |
12840 | return NULL; | |
d14a1e28 RD |
12841 | } |
12842 | ||
12843 | ||
0085ce49 RD |
12844 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12845 | PyObject *obj; | |
12846 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12847 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
12848 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12849 | } |
12850 | ||
0085ce49 RD |
12851 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12852 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12853 | } |
12854 | ||
0085ce49 RD |
12855 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12856 | PyObject *resultobj = 0; | |
12857 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12858 | wxString *arg2 = (wxString *) 0 ; | |
12859 | void *argp1 = 0 ; | |
12860 | int res1 = 0 ; | |
12861 | bool temp2 = false ; | |
12862 | PyObject *swig_obj[2] ; | |
12863 | ||
12864 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
12865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12866 | if (!SWIG_IsOK(res1)) { | |
12867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12868 | } | |
12869 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12870 | { | |
12871 | arg2 = wxString_in_helper(swig_obj[1]); | |
12872 | if (arg2 == NULL) SWIG_fail; | |
12873 | temp2 = true; | |
12874 | } | |
12875 | if (arg1) (arg1)->facename = *arg2; | |
12876 | ||
12877 | resultobj = SWIG_Py_Void(); | |
12878 | { | |
12879 | if (temp2) | |
12880 | delete arg2; | |
12881 | } | |
12882 | return resultobj; | |
12883 | fail: | |
12884 | { | |
12885 | if (temp2) | |
12886 | delete arg2; | |
12887 | } | |
12888 | return NULL; | |
d14a1e28 RD |
12889 | } |
12890 | ||
12891 | ||
0085ce49 RD |
12892 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12893 | PyObject *resultobj = 0; | |
12894 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12895 | wxString *result = 0 ; | |
12896 | void *argp1 = 0 ; | |
12897 | int res1 = 0 ; | |
12898 | PyObject *swig_obj[1] ; | |
12899 | ||
12900 | if (!args) SWIG_fail; | |
12901 | swig_obj[0] = args; | |
12902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12903 | if (!SWIG_IsOK(res1)) { | |
12904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12905 | } | |
12906 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12907 | result = (wxString *)& ((arg1)->facename); | |
12908 | { | |
12909 | #if wxUSE_UNICODE | |
12910 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12911 | #else | |
12912 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12913 | #endif | |
12914 | } | |
12915 | return resultobj; | |
12916 | fail: | |
12917 | return NULL; | |
d14a1e28 RD |
12918 | } |
12919 | ||
12920 | ||
0085ce49 RD |
12921 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12922 | PyObject *resultobj = 0; | |
12923 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12924 | wxFontEncoding arg2 ; | |
12925 | void *argp1 = 0 ; | |
12926 | int res1 = 0 ; | |
12927 | int val2 ; | |
12928 | int ecode2 = 0 ; | |
12929 | PyObject *swig_obj[2] ; | |
12930 | ||
12931 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
12932 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12933 | if (!SWIG_IsOK(res1)) { | |
12934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12935 | } | |
12936 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12937 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
12938 | if (!SWIG_IsOK(ecode2)) { | |
12939 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12940 | } | |
12941 | arg2 = static_cast< wxFontEncoding >(val2); | |
12942 | if (arg1) (arg1)->encoding = arg2; | |
12943 | ||
12944 | resultobj = SWIG_Py_Void(); | |
12945 | return resultobj; | |
12946 | fail: | |
12947 | return NULL; | |
d14a1e28 RD |
12948 | } |
12949 | ||
12950 | ||
0085ce49 RD |
12951 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12952 | PyObject *resultobj = 0; | |
12953 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12954 | wxFontEncoding result; | |
12955 | void *argp1 = 0 ; | |
12956 | int res1 = 0 ; | |
12957 | PyObject *swig_obj[1] ; | |
12958 | ||
12959 | if (!args) SWIG_fail; | |
12960 | swig_obj[0] = args; | |
12961 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12962 | if (!SWIG_IsOK(res1)) { | |
12963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12964 | } | |
12965 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12966 | result = (wxFontEncoding) ((arg1)->encoding); | |
12967 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12968 | return resultobj; | |
12969 | fail: | |
12970 | return NULL; | |
d14a1e28 RD |
12971 | } |
12972 | ||
12973 | ||
0085ce49 RD |
12974 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12975 | PyObject *resultobj = 0; | |
12976 | wxNativeEncodingInfo *result = 0 ; | |
12977 | ||
12978 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
12979 | { | |
12980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12981 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
12982 | wxPyEndAllowThreads(__tstate); | |
12983 | if (PyErr_Occurred()) SWIG_fail; | |
12984 | } | |
12985 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
12986 | return resultobj; | |
12987 | fail: | |
12988 | return NULL; | |
d14a1e28 RD |
12989 | } |
12990 | ||
12991 | ||
0085ce49 RD |
12992 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12993 | PyObject *resultobj = 0; | |
12994 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12995 | void *argp1 = 0 ; | |
12996 | int res1 = 0 ; | |
12997 | PyObject *swig_obj[1] ; | |
12998 | ||
12999 | if (!args) SWIG_fail; | |
13000 | swig_obj[0] = args; | |
13001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
13002 | if (!SWIG_IsOK(res1)) { | |
13003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13004 | } | |
13005 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13006 | { | |
13007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13008 | delete arg1; | |
d14a1e28 | 13009 | |
0085ce49 RD |
13010 | wxPyEndAllowThreads(__tstate); |
13011 | if (PyErr_Occurred()) SWIG_fail; | |
13012 | } | |
13013 | resultobj = SWIG_Py_Void(); | |
13014 | return resultobj; | |
13015 | fail: | |
13016 | return NULL; | |
13017 | } | |
13018 | ||
13019 | ||
13020 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13021 | PyObject *resultobj = 0; | |
13022 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13023 | wxString *arg2 = 0 ; | |
13024 | bool result; | |
13025 | void *argp1 = 0 ; | |
13026 | int res1 = 0 ; | |
13027 | bool temp2 = false ; | |
13028 | PyObject * obj0 = 0 ; | |
13029 | PyObject * obj1 = 0 ; | |
13030 | char * kwnames[] = { | |
13031 | (char *) "self",(char *) "s", NULL | |
13032 | }; | |
13033 | ||
13034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13036 | if (!SWIG_IsOK(res1)) { | |
13037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13038 | } | |
13039 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13040 | { | |
13041 | arg2 = wxString_in_helper(obj1); | |
13042 | if (arg2 == NULL) SWIG_fail; | |
13043 | temp2 = true; | |
13044 | } | |
13045 | { | |
13046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13047 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13048 | wxPyEndAllowThreads(__tstate); | |
13049 | if (PyErr_Occurred()) SWIG_fail; | |
13050 | } | |
13051 | { | |
13052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13053 | } | |
13054 | { | |
13055 | if (temp2) | |
13056 | delete arg2; | |
13057 | } | |
13058 | return resultobj; | |
13059 | fail: | |
13060 | { | |
13061 | if (temp2) | |
13062 | delete arg2; | |
13063 | } | |
13064 | return NULL; | |
d14a1e28 RD |
13065 | } |
13066 | ||
13067 | ||
0085ce49 RD |
13068 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13069 | PyObject *resultobj = 0; | |
13070 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13071 | wxString result; | |
13072 | void *argp1 = 0 ; | |
13073 | int res1 = 0 ; | |
13074 | PyObject *swig_obj[1] ; | |
13075 | ||
13076 | if (!args) SWIG_fail; | |
13077 | swig_obj[0] = args; | |
13078 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13079 | if (!SWIG_IsOK(res1)) { | |
13080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
13081 | } | |
13082 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13083 | { | |
13084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13085 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
13086 | wxPyEndAllowThreads(__tstate); | |
13087 | if (PyErr_Occurred()) SWIG_fail; | |
13088 | } | |
13089 | { | |
13090 | #if wxUSE_UNICODE | |
13091 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13092 | #else | |
13093 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13094 | #endif | |
13095 | } | |
13096 | return resultobj; | |
13097 | fail: | |
13098 | return NULL; | |
d14a1e28 RD |
13099 | } |
13100 | ||
13101 | ||
0085ce49 RD |
13102 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13103 | PyObject *obj; | |
13104 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13105 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
13106 | return SWIG_Py_Void(); | |
d14a1e28 RD |
13107 | } |
13108 | ||
0085ce49 RD |
13109 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13110 | return SWIG_Python_InitShadowInstance(args); | |
13111 | } | |
d14a1e28 | 13112 | |
0085ce49 RD |
13113 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13114 | PyObject *resultobj = 0; | |
13115 | wxFontEncoding arg1 ; | |
13116 | wxNativeEncodingInfo *result = 0 ; | |
13117 | int val1 ; | |
13118 | int ecode1 = 0 ; | |
13119 | PyObject * obj0 = 0 ; | |
13120 | char * kwnames[] = { | |
13121 | (char *) "encoding", NULL | |
13122 | }; | |
13123 | ||
13124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13125 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13126 | if (!SWIG_IsOK(ecode1)) { | |
13127 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13128 | } | |
13129 | arg1 = static_cast< wxFontEncoding >(val1); | |
13130 | { | |
13131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13132 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
13133 | wxPyEndAllowThreads(__tstate); | |
13134 | if (PyErr_Occurred()) SWIG_fail; | |
13135 | } | |
13136 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13137 | return resultobj; | |
13138 | fail: | |
13139 | return NULL; | |
13140 | } | |
13141 | ||
13142 | ||
13143 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13144 | PyObject *resultobj = 0; | |
13145 | wxNativeEncodingInfo *arg1 = 0 ; | |
13146 | bool result; | |
13147 | void *argp1 = 0 ; | |
13148 | int res1 = 0 ; | |
13149 | PyObject * obj0 = 0 ; | |
13150 | char * kwnames[] = { | |
13151 | (char *) "info", NULL | |
13152 | }; | |
13153 | ||
13154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13155 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
13156 | if (!SWIG_IsOK(res1)) { | |
13157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13158 | } | |
13159 | if (!argp1) { | |
13160 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13161 | } | |
13162 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13163 | { | |
13164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13165 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
13166 | wxPyEndAllowThreads(__tstate); | |
13167 | if (PyErr_Occurred()) SWIG_fail; | |
13168 | } | |
13169 | { | |
13170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13171 | } | |
13172 | return resultobj; | |
13173 | fail: | |
13174 | return NULL; | |
d14a1e28 RD |
13175 | } |
13176 | ||
13177 | ||
0085ce49 RD |
13178 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13179 | PyObject *resultobj = 0; | |
13180 | wxFontMapper *result = 0 ; | |
13181 | ||
13182 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13183 | { | |
13184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13185 | result = (wxFontMapper *)new wxFontMapper(); | |
13186 | wxPyEndAllowThreads(__tstate); | |
13187 | if (PyErr_Occurred()) SWIG_fail; | |
13188 | } | |
13189 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13190 | return resultobj; | |
13191 | fail: | |
13192 | return NULL; | |
d14a1e28 RD |
13193 | } |
13194 | ||
13195 | ||
0085ce49 RD |
13196 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13197 | PyObject *resultobj = 0; | |
13198 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13199 | void *argp1 = 0 ; | |
13200 | int res1 = 0 ; | |
13201 | PyObject *swig_obj[1] ; | |
13202 | ||
13203 | if (!args) SWIG_fail; | |
13204 | swig_obj[0] = args; | |
13205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13206 | if (!SWIG_IsOK(res1)) { | |
13207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13208 | } | |
13209 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13210 | { | |
13211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13212 | delete arg1; | |
d14a1e28 | 13213 | |
0085ce49 RD |
13214 | wxPyEndAllowThreads(__tstate); |
13215 | if (PyErr_Occurred()) SWIG_fail; | |
13216 | } | |
13217 | resultobj = SWIG_Py_Void(); | |
13218 | return resultobj; | |
13219 | fail: | |
13220 | return NULL; | |
d14a1e28 RD |
13221 | } |
13222 | ||
13223 | ||
0085ce49 RD |
13224 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13225 | PyObject *resultobj = 0; | |
13226 | wxFontMapper *result = 0 ; | |
13227 | ||
13228 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13229 | { | |
13230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13231 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13232 | wxPyEndAllowThreads(__tstate); | |
13233 | if (PyErr_Occurred()) SWIG_fail; | |
13234 | } | |
13235 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13236 | return resultobj; | |
13237 | fail: | |
13238 | return NULL; | |
13239 | } | |
13240 | ||
13241 | ||
13242 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13243 | PyObject *resultobj = 0; | |
13244 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13245 | wxFontMapper *result = 0 ; | |
13246 | void *argp1 = 0 ; | |
13247 | int res1 = 0 ; | |
13248 | PyObject * obj0 = 0 ; | |
13249 | char * kwnames[] = { | |
13250 | (char *) "mapper", NULL | |
13251 | }; | |
13252 | ||
13253 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13254 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13255 | if (!SWIG_IsOK(res1)) { | |
13256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13257 | } | |
13258 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13259 | { | |
13260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13261 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13262 | wxPyEndAllowThreads(__tstate); | |
13263 | if (PyErr_Occurred()) SWIG_fail; | |
13264 | } | |
13265 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13266 | return resultobj; | |
13267 | fail: | |
13268 | return NULL; | |
13269 | } | |
13270 | ||
13271 | ||
13272 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13273 | PyObject *resultobj = 0; | |
13274 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13275 | wxString *arg2 = 0 ; | |
13276 | bool arg3 = (bool) true ; | |
13277 | wxFontEncoding result; | |
13278 | void *argp1 = 0 ; | |
13279 | int res1 = 0 ; | |
13280 | bool temp2 = false ; | |
13281 | bool val3 ; | |
13282 | int ecode3 = 0 ; | |
13283 | PyObject * obj0 = 0 ; | |
13284 | PyObject * obj1 = 0 ; | |
13285 | PyObject * obj2 = 0 ; | |
13286 | char * kwnames[] = { | |
13287 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13288 | }; | |
13289 | ||
13290 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13291 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13292 | if (!SWIG_IsOK(res1)) { | |
13293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13294 | } | |
13295 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13296 | { | |
13297 | arg2 = wxString_in_helper(obj1); | |
13298 | if (arg2 == NULL) SWIG_fail; | |
13299 | temp2 = true; | |
13300 | } | |
13301 | if (obj2) { | |
13302 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13303 | if (!SWIG_IsOK(ecode3)) { | |
13304 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13305 | } | |
13306 | arg3 = static_cast< bool >(val3); | |
13307 | } | |
13308 | { | |
13309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13310 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13311 | wxPyEndAllowThreads(__tstate); | |
13312 | if (PyErr_Occurred()) SWIG_fail; | |
13313 | } | |
13314 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13315 | { | |
13316 | if (temp2) | |
13317 | delete arg2; | |
13318 | } | |
13319 | return resultobj; | |
13320 | fail: | |
13321 | { | |
13322 | if (temp2) | |
13323 | delete arg2; | |
13324 | } | |
13325 | return NULL; | |
e6ffcedd RD |
13326 | } |
13327 | ||
13328 | ||
0085ce49 RD |
13329 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13330 | PyObject *resultobj = 0; | |
13331 | size_t result; | |
13332 | ||
13333 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13334 | { | |
13335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13336 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13337 | wxPyEndAllowThreads(__tstate); | |
13338 | if (PyErr_Occurred()) SWIG_fail; | |
13339 | } | |
13340 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13341 | return resultobj; | |
13342 | fail: | |
13343 | return NULL; | |
13344 | } | |
13345 | ||
13346 | ||
13347 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13348 | PyObject *resultobj = 0; | |
13349 | size_t arg1 ; | |
13350 | wxFontEncoding result; | |
13351 | size_t val1 ; | |
13352 | int ecode1 = 0 ; | |
13353 | PyObject * obj0 = 0 ; | |
13354 | char * kwnames[] = { | |
13355 | (char *) "n", NULL | |
13356 | }; | |
13357 | ||
13358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
13359 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
13360 | if (!SWIG_IsOK(ecode1)) { | |
13361 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
13362 | } | |
13363 | arg1 = static_cast< size_t >(val1); | |
13364 | { | |
13365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13366 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
13367 | wxPyEndAllowThreads(__tstate); | |
13368 | if (PyErr_Occurred()) SWIG_fail; | |
13369 | } | |
13370 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13371 | return resultobj; | |
13372 | fail: | |
13373 | return NULL; | |
13374 | } | |
13375 | ||
13376 | ||
13377 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13378 | PyObject *resultobj = 0; | |
13379 | wxFontEncoding arg1 ; | |
13380 | wxString result; | |
13381 | int val1 ; | |
13382 | int ecode1 = 0 ; | |
13383 | PyObject * obj0 = 0 ; | |
13384 | char * kwnames[] = { | |
13385 | (char *) "encoding", NULL | |
13386 | }; | |
13387 | ||
13388 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
13389 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13390 | if (!SWIG_IsOK(ecode1)) { | |
13391 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13392 | } | |
13393 | arg1 = static_cast< wxFontEncoding >(val1); | |
13394 | { | |
13395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13396 | result = wxFontMapper::GetEncodingName(arg1); | |
13397 | wxPyEndAllowThreads(__tstate); | |
13398 | if (PyErr_Occurred()) SWIG_fail; | |
13399 | } | |
13400 | { | |
13401 | #if wxUSE_UNICODE | |
13402 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13403 | #else | |
13404 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13405 | #endif | |
13406 | } | |
13407 | return resultobj; | |
13408 | fail: | |
13409 | return NULL; | |
d14a1e28 RD |
13410 | } |
13411 | ||
13412 | ||
0085ce49 RD |
13413 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13414 | PyObject *resultobj = 0; | |
13415 | wxFontEncoding arg1 ; | |
13416 | wxString result; | |
13417 | int val1 ; | |
13418 | int ecode1 = 0 ; | |
13419 | PyObject * obj0 = 0 ; | |
13420 | char * kwnames[] = { | |
13421 | (char *) "encoding", NULL | |
13422 | }; | |
13423 | ||
13424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
13425 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13426 | if (!SWIG_IsOK(ecode1)) { | |
13427 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13428 | } | |
13429 | arg1 = static_cast< wxFontEncoding >(val1); | |
13430 | { | |
13431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13432 | result = wxFontMapper::GetEncodingDescription(arg1); | |
13433 | wxPyEndAllowThreads(__tstate); | |
13434 | if (PyErr_Occurred()) SWIG_fail; | |
13435 | } | |
13436 | { | |
13437 | #if wxUSE_UNICODE | |
13438 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13439 | #else | |
13440 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13441 | #endif | |
13442 | } | |
13443 | return resultobj; | |
13444 | fail: | |
13445 | return NULL; | |
d14a1e28 RD |
13446 | } |
13447 | ||
13448 | ||
0085ce49 RD |
13449 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13450 | PyObject *resultobj = 0; | |
13451 | wxString *arg1 = 0 ; | |
13452 | wxFontEncoding result; | |
13453 | bool temp1 = false ; | |
13454 | PyObject * obj0 = 0 ; | |
13455 | char * kwnames[] = { | |
13456 | (char *) "name", NULL | |
13457 | }; | |
13458 | ||
13459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
13460 | { | |
13461 | arg1 = wxString_in_helper(obj0); | |
13462 | if (arg1 == NULL) SWIG_fail; | |
13463 | temp1 = true; | |
13464 | } | |
13465 | { | |
13466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13467 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
13468 | wxPyEndAllowThreads(__tstate); | |
13469 | if (PyErr_Occurred()) SWIG_fail; | |
13470 | } | |
13471 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13472 | { | |
13473 | if (temp1) | |
13474 | delete arg1; | |
13475 | } | |
13476 | return resultobj; | |
13477 | fail: | |
13478 | { | |
13479 | if (temp1) | |
13480 | delete arg1; | |
13481 | } | |
13482 | return NULL; | |
d14a1e28 RD |
13483 | } |
13484 | ||
13485 | ||
0085ce49 RD |
13486 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13487 | PyObject *resultobj = 0; | |
13488 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13489 | wxString *arg2 = 0 ; | |
13490 | void *argp1 = 0 ; | |
13491 | int res1 = 0 ; | |
13492 | bool temp2 = false ; | |
13493 | PyObject * obj0 = 0 ; | |
13494 | PyObject * obj1 = 0 ; | |
13495 | char * kwnames[] = { | |
13496 | (char *) "self",(char *) "prefix", NULL | |
13497 | }; | |
13498 | ||
13499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
13500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13501 | if (!SWIG_IsOK(res1)) { | |
13502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13503 | } | |
13504 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13505 | { | |
13506 | arg2 = wxString_in_helper(obj1); | |
13507 | if (arg2 == NULL) SWIG_fail; | |
13508 | temp2 = true; | |
13509 | } | |
13510 | { | |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13512 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
13513 | wxPyEndAllowThreads(__tstate); | |
13514 | if (PyErr_Occurred()) SWIG_fail; | |
13515 | } | |
13516 | resultobj = SWIG_Py_Void(); | |
13517 | { | |
13518 | if (temp2) | |
13519 | delete arg2; | |
13520 | } | |
13521 | return resultobj; | |
13522 | fail: | |
13523 | { | |
13524 | if (temp2) | |
13525 | delete arg2; | |
13526 | } | |
13527 | return NULL; | |
d14a1e28 RD |
13528 | } |
13529 | ||
13530 | ||
0085ce49 RD |
13531 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13532 | PyObject *resultobj = 0; | |
13533 | wxString result; | |
13534 | ||
13535 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
13536 | { | |
13537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13538 | result = wxFontMapper::GetDefaultConfigPath(); | |
13539 | wxPyEndAllowThreads(__tstate); | |
13540 | if (PyErr_Occurred()) SWIG_fail; | |
13541 | } | |
13542 | { | |
13543 | #if wxUSE_UNICODE | |
13544 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13545 | #else | |
13546 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13547 | #endif | |
13548 | } | |
13549 | return resultobj; | |
13550 | fail: | |
13551 | return NULL; | |
13552 | } | |
13553 | ||
13554 | ||
13555 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13556 | PyObject *resultobj = 0; | |
13557 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13558 | wxFontEncoding arg2 ; | |
13559 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13560 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13561 | bool arg4 = (bool) true ; | |
13562 | PyObject *result = 0 ; | |
13563 | void *argp1 = 0 ; | |
13564 | int res1 = 0 ; | |
13565 | int val2 ; | |
13566 | int ecode2 = 0 ; | |
13567 | bool temp3 = false ; | |
13568 | bool val4 ; | |
13569 | int ecode4 = 0 ; | |
13570 | PyObject * obj0 = 0 ; | |
13571 | PyObject * obj1 = 0 ; | |
13572 | PyObject * obj2 = 0 ; | |
13573 | PyObject * obj3 = 0 ; | |
13574 | char * kwnames[] = { | |
13575 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
13576 | }; | |
13577 | ||
13578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13580 | if (!SWIG_IsOK(res1)) { | |
13581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13582 | } | |
13583 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13585 | if (!SWIG_IsOK(ecode2)) { | |
13586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13587 | } | |
13588 | arg2 = static_cast< wxFontEncoding >(val2); | |
13589 | if (obj2) { | |
093d3ff1 | 13590 | { |
0085ce49 RD |
13591 | arg3 = wxString_in_helper(obj2); |
13592 | if (arg3 == NULL) SWIG_fail; | |
13593 | temp3 = true; | |
093d3ff1 | 13594 | } |
0085ce49 RD |
13595 | } |
13596 | if (obj3) { | |
13597 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13598 | if (!SWIG_IsOK(ecode4)) { | |
13599 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
13600 | } | |
13601 | arg4 = static_cast< bool >(val4); | |
13602 | } | |
13603 | { | |
13604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13605 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
13606 | wxPyEndAllowThreads(__tstate); | |
13607 | if (PyErr_Occurred()) SWIG_fail; | |
13608 | } | |
13609 | resultobj = result; | |
13610 | { | |
13611 | if (temp3) | |
13612 | delete arg3; | |
13613 | } | |
13614 | return resultobj; | |
13615 | fail: | |
13616 | { | |
13617 | if (temp3) | |
13618 | delete arg3; | |
13619 | } | |
13620 | return NULL; | |
13621 | } | |
13622 | ||
13623 | ||
13624 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13625 | PyObject *resultobj = 0; | |
13626 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13627 | wxFontEncoding arg2 ; | |
13628 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13629 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13630 | bool result; | |
13631 | void *argp1 = 0 ; | |
13632 | int res1 = 0 ; | |
13633 | int val2 ; | |
13634 | int ecode2 = 0 ; | |
13635 | bool temp3 = false ; | |
13636 | PyObject * obj0 = 0 ; | |
13637 | PyObject * obj1 = 0 ; | |
13638 | PyObject * obj2 = 0 ; | |
13639 | char * kwnames[] = { | |
13640 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
13641 | }; | |
13642 | ||
13643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13645 | if (!SWIG_IsOK(res1)) { | |
13646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13647 | } | |
13648 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13649 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13650 | if (!SWIG_IsOK(ecode2)) { | |
13651 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13652 | } | |
13653 | arg2 = static_cast< wxFontEncoding >(val2); | |
13654 | if (obj2) { | |
d14a1e28 | 13655 | { |
0085ce49 RD |
13656 | arg3 = wxString_in_helper(obj2); |
13657 | if (arg3 == NULL) SWIG_fail; | |
13658 | temp3 = true; | |
d14a1e28 | 13659 | } |
0085ce49 RD |
13660 | } |
13661 | { | |
13662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13663 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
13664 | wxPyEndAllowThreads(__tstate); | |
13665 | if (PyErr_Occurred()) SWIG_fail; | |
13666 | } | |
13667 | { | |
13668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13669 | } | |
13670 | { | |
13671 | if (temp3) | |
13672 | delete arg3; | |
13673 | } | |
13674 | return resultobj; | |
13675 | fail: | |
13676 | { | |
13677 | if (temp3) | |
13678 | delete arg3; | |
13679 | } | |
13680 | return NULL; | |
13681 | } | |
13682 | ||
13683 | ||
13684 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13685 | PyObject *resultobj = 0; | |
13686 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13687 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13688 | void *argp1 = 0 ; | |
13689 | int res1 = 0 ; | |
13690 | void *argp2 = 0 ; | |
13691 | int res2 = 0 ; | |
13692 | PyObject * obj0 = 0 ; | |
13693 | PyObject * obj1 = 0 ; | |
13694 | char * kwnames[] = { | |
13695 | (char *) "self",(char *) "parent", NULL | |
13696 | }; | |
13697 | ||
13698 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
13699 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13700 | if (!SWIG_IsOK(res1)) { | |
13701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13702 | } | |
13703 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13704 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13705 | if (!SWIG_IsOK(res2)) { | |
13706 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13707 | } | |
13708 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13709 | { | |
13710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13711 | (arg1)->SetDialogParent(arg2); | |
13712 | wxPyEndAllowThreads(__tstate); | |
13713 | if (PyErr_Occurred()) SWIG_fail; | |
13714 | } | |
13715 | resultobj = SWIG_Py_Void(); | |
13716 | return resultobj; | |
13717 | fail: | |
13718 | return NULL; | |
13719 | } | |
13720 | ||
13721 | ||
13722 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13723 | PyObject *resultobj = 0; | |
13724 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13725 | wxString *arg2 = 0 ; | |
13726 | void *argp1 = 0 ; | |
13727 | int res1 = 0 ; | |
13728 | bool temp2 = false ; | |
13729 | PyObject * obj0 = 0 ; | |
13730 | PyObject * obj1 = 0 ; | |
13731 | char * kwnames[] = { | |
13732 | (char *) "self",(char *) "title", NULL | |
13733 | }; | |
13734 | ||
13735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13737 | if (!SWIG_IsOK(res1)) { | |
13738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13739 | } | |
13740 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13741 | { | |
13742 | arg2 = wxString_in_helper(obj1); | |
13743 | if (arg2 == NULL) SWIG_fail; | |
13744 | temp2 = true; | |
13745 | } | |
13746 | { | |
13747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13748 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
13749 | wxPyEndAllowThreads(__tstate); | |
13750 | if (PyErr_Occurred()) SWIG_fail; | |
13751 | } | |
13752 | resultobj = SWIG_Py_Void(); | |
13753 | { | |
13754 | if (temp2) | |
13755 | delete arg2; | |
13756 | } | |
13757 | return resultobj; | |
13758 | fail: | |
13759 | { | |
13760 | if (temp2) | |
13761 | delete arg2; | |
13762 | } | |
13763 | return NULL; | |
13764 | } | |
13765 | ||
13766 | ||
13767 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13768 | PyObject *obj; | |
13769 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13770 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
13771 | return SWIG_Py_Void(); | |
13772 | } | |
13773 | ||
13774 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13775 | return SWIG_Python_InitShadowInstance(args); | |
13776 | } | |
13777 | ||
13778 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13779 | PyObject *resultobj = 0; | |
13780 | int arg1 ; | |
13781 | int arg2 ; | |
13782 | int arg3 ; | |
13783 | int arg4 ; | |
13784 | bool arg5 = (bool) false ; | |
13785 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
13786 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13787 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13788 | wxFont *result = 0 ; | |
13789 | int val1 ; | |
13790 | int ecode1 = 0 ; | |
13791 | int val2 ; | |
13792 | int ecode2 = 0 ; | |
13793 | int val3 ; | |
13794 | int ecode3 = 0 ; | |
13795 | int val4 ; | |
13796 | int ecode4 = 0 ; | |
13797 | bool val5 ; | |
13798 | int ecode5 = 0 ; | |
13799 | bool temp6 = false ; | |
13800 | int val7 ; | |
13801 | int ecode7 = 0 ; | |
13802 | PyObject * obj0 = 0 ; | |
13803 | PyObject * obj1 = 0 ; | |
13804 | PyObject * obj2 = 0 ; | |
13805 | PyObject * obj3 = 0 ; | |
13806 | PyObject * obj4 = 0 ; | |
13807 | PyObject * obj5 = 0 ; | |
13808 | PyObject * obj6 = 0 ; | |
13809 | char * kwnames[] = { | |
13810 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
13811 | }; | |
13812 | ||
13813 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13814 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13815 | if (!SWIG_IsOK(ecode1)) { | |
13816 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
13817 | } | |
13818 | arg1 = static_cast< int >(val1); | |
13819 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13820 | if (!SWIG_IsOK(ecode2)) { | |
13821 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
13822 | } | |
13823 | arg2 = static_cast< int >(val2); | |
13824 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13825 | if (!SWIG_IsOK(ecode3)) { | |
13826 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
13827 | } | |
13828 | arg3 = static_cast< int >(val3); | |
13829 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
13830 | if (!SWIG_IsOK(ecode4)) { | |
13831 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
13832 | } | |
13833 | arg4 = static_cast< int >(val4); | |
13834 | if (obj4) { | |
13835 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13836 | if (!SWIG_IsOK(ecode5)) { | |
13837 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
13838 | } | |
13839 | arg5 = static_cast< bool >(val5); | |
13840 | } | |
13841 | if (obj5) { | |
093d3ff1 | 13842 | { |
0085ce49 RD |
13843 | arg6 = wxString_in_helper(obj5); |
13844 | if (arg6 == NULL) SWIG_fail; | |
13845 | temp6 = true; | |
093d3ff1 | 13846 | } |
0085ce49 RD |
13847 | } |
13848 | if (obj6) { | |
13849 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
13850 | if (!SWIG_IsOK(ecode7)) { | |
13851 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
13852 | } | |
13853 | arg7 = static_cast< wxFontEncoding >(val7); | |
13854 | } | |
13855 | { | |
13856 | if (!wxPyCheckForApp()) SWIG_fail; | |
13857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13858 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
13859 | wxPyEndAllowThreads(__tstate); | |
13860 | if (PyErr_Occurred()) SWIG_fail; | |
13861 | } | |
13862 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
13863 | { | |
13864 | if (temp6) | |
13865 | delete arg6; | |
13866 | } | |
13867 | return resultobj; | |
13868 | fail: | |
13869 | { | |
13870 | if (temp6) | |
13871 | delete arg6; | |
13872 | } | |
13873 | return NULL; | |
d14a1e28 RD |
13874 | } |
13875 | ||
13876 | ||
0085ce49 RD |
13877 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13878 | PyObject *resultobj = 0; | |
13879 | wxFont *arg1 = (wxFont *) 0 ; | |
13880 | void *argp1 = 0 ; | |
13881 | int res1 = 0 ; | |
13882 | PyObject *swig_obj[1] ; | |
13883 | ||
13884 | if (!args) SWIG_fail; | |
13885 | swig_obj[0] = args; | |
13886 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
13887 | if (!SWIG_IsOK(res1)) { | |
13888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13889 | } | |
13890 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13891 | { | |
13892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13893 | delete arg1; | |
d14a1e28 | 13894 | |
0085ce49 RD |
13895 | wxPyEndAllowThreads(__tstate); |
13896 | if (PyErr_Occurred()) SWIG_fail; | |
13897 | } | |
13898 | resultobj = SWIG_Py_Void(); | |
13899 | return resultobj; | |
13900 | fail: | |
13901 | return NULL; | |
13902 | } | |
13903 | ||
13904 | ||
13905 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13906 | PyObject *resultobj = 0; | |
13907 | wxNativeFontInfo *arg1 = 0 ; | |
13908 | wxFont *result = 0 ; | |
13909 | void *argp1 = 0 ; | |
13910 | int res1 = 0 ; | |
13911 | PyObject * obj0 = 0 ; | |
13912 | char * kwnames[] = { | |
13913 | (char *) "info", NULL | |
13914 | }; | |
13915 | ||
13916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
13917 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
13918 | if (!SWIG_IsOK(res1)) { | |
13919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13920 | } | |
13921 | if (!argp1) { | |
13922 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13923 | } | |
13924 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13925 | { | |
13926 | if (!wxPyCheckForApp()) SWIG_fail; | |
13927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13928 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
13929 | wxPyEndAllowThreads(__tstate); | |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
13931 | } | |
13932 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13933 | return resultobj; | |
13934 | fail: | |
13935 | return NULL; | |
d14a1e28 RD |
13936 | } |
13937 | ||
13938 | ||
0085ce49 RD |
13939 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13940 | PyObject *resultobj = 0; | |
13941 | wxString *arg1 = 0 ; | |
13942 | wxFont *result = 0 ; | |
13943 | bool temp1 = false ; | |
13944 | PyObject * obj0 = 0 ; | |
13945 | char * kwnames[] = { | |
13946 | (char *) "info", NULL | |
13947 | }; | |
13948 | ||
13949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
13950 | { | |
13951 | arg1 = wxString_in_helper(obj0); | |
13952 | if (arg1 == NULL) SWIG_fail; | |
13953 | temp1 = true; | |
13954 | } | |
13955 | { | |
13956 | if (!wxPyCheckForApp()) SWIG_fail; | |
13957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13958 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
13959 | wxPyEndAllowThreads(__tstate); | |
13960 | if (PyErr_Occurred()) SWIG_fail; | |
13961 | } | |
13962 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13963 | { | |
13964 | if (temp1) | |
13965 | delete arg1; | |
13966 | } | |
13967 | return resultobj; | |
13968 | fail: | |
13969 | { | |
13970 | if (temp1) | |
13971 | delete arg1; | |
13972 | } | |
13973 | return NULL; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13978 | PyObject *resultobj = 0; | |
13979 | int arg1 ; | |
13980 | wxFontFamily arg2 ; | |
13981 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
13982 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13983 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13984 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13985 | wxFont *result = 0 ; | |
13986 | int val1 ; | |
13987 | int ecode1 = 0 ; | |
13988 | int val2 ; | |
13989 | int ecode2 = 0 ; | |
13990 | int val3 ; | |
13991 | int ecode3 = 0 ; | |
13992 | bool temp4 = false ; | |
13993 | int val5 ; | |
13994 | int ecode5 = 0 ; | |
13995 | PyObject * obj0 = 0 ; | |
13996 | PyObject * obj1 = 0 ; | |
13997 | PyObject * obj2 = 0 ; | |
13998 | PyObject * obj3 = 0 ; | |
13999 | PyObject * obj4 = 0 ; | |
14000 | char * kwnames[] = { | |
14001 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14002 | }; | |
14003 | ||
14004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14005 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14006 | if (!SWIG_IsOK(ecode1)) { | |
14007 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
14008 | } | |
14009 | arg1 = static_cast< int >(val1); | |
14010 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14011 | if (!SWIG_IsOK(ecode2)) { | |
14012 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14013 | } | |
14014 | arg2 = static_cast< wxFontFamily >(val2); | |
14015 | if (obj2) { | |
14016 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14017 | if (!SWIG_IsOK(ecode3)) { | |
14018 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
14019 | } | |
14020 | arg3 = static_cast< int >(val3); | |
14021 | } | |
14022 | if (obj3) { | |
093d3ff1 | 14023 | { |
0085ce49 RD |
14024 | arg4 = wxString_in_helper(obj3); |
14025 | if (arg4 == NULL) SWIG_fail; | |
14026 | temp4 = true; | |
093d3ff1 | 14027 | } |
0085ce49 RD |
14028 | } |
14029 | if (obj4) { | |
14030 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14031 | if (!SWIG_IsOK(ecode5)) { | |
14032 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14033 | } | |
14034 | arg5 = static_cast< wxFontEncoding >(val5); | |
14035 | } | |
14036 | { | |
14037 | if (!wxPyCheckForApp()) SWIG_fail; | |
14038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14039 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14040 | wxPyEndAllowThreads(__tstate); | |
14041 | if (PyErr_Occurred()) SWIG_fail; | |
14042 | } | |
14043 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14044 | { | |
14045 | if (temp4) | |
14046 | delete arg4; | |
14047 | } | |
14048 | return resultobj; | |
14049 | fail: | |
14050 | { | |
14051 | if (temp4) | |
14052 | delete arg4; | |
14053 | } | |
14054 | return NULL; | |
14055 | } | |
14056 | ||
14057 | ||
14058 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14059 | PyObject *resultobj = 0; | |
14060 | wxSize *arg1 = 0 ; | |
14061 | int arg2 ; | |
14062 | int arg3 ; | |
14063 | int arg4 ; | |
14064 | bool arg5 = (bool) false ; | |
14065 | wxString const &arg6_defvalue = wxEmptyString ; | |
14066 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14067 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14068 | wxFont *result = 0 ; | |
14069 | wxSize temp1 ; | |
14070 | int val2 ; | |
14071 | int ecode2 = 0 ; | |
14072 | int val3 ; | |
14073 | int ecode3 = 0 ; | |
14074 | int val4 ; | |
14075 | int ecode4 = 0 ; | |
14076 | bool val5 ; | |
14077 | int ecode5 = 0 ; | |
14078 | bool temp6 = false ; | |
14079 | int val7 ; | |
14080 | int ecode7 = 0 ; | |
14081 | PyObject * obj0 = 0 ; | |
14082 | PyObject * obj1 = 0 ; | |
14083 | PyObject * obj2 = 0 ; | |
14084 | PyObject * obj3 = 0 ; | |
14085 | PyObject * obj4 = 0 ; | |
14086 | PyObject * obj5 = 0 ; | |
14087 | PyObject * obj6 = 0 ; | |
14088 | char * kwnames[] = { | |
14089 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
14090 | }; | |
14091 | ||
14092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14093 | { | |
14094 | arg1 = &temp1; | |
14095 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14096 | } | |
14097 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14098 | if (!SWIG_IsOK(ecode2)) { | |
14099 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
14100 | } | |
14101 | arg2 = static_cast< int >(val2); | |
14102 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14103 | if (!SWIG_IsOK(ecode3)) { | |
14104 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14105 | } | |
14106 | arg3 = static_cast< int >(val3); | |
14107 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14108 | if (!SWIG_IsOK(ecode4)) { | |
14109 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
14110 | } | |
14111 | arg4 = static_cast< int >(val4); | |
14112 | if (obj4) { | |
14113 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14114 | if (!SWIG_IsOK(ecode5)) { | |
14115 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
14116 | } | |
14117 | arg5 = static_cast< bool >(val5); | |
14118 | } | |
14119 | if (obj5) { | |
d14a1e28 | 14120 | { |
0085ce49 RD |
14121 | arg6 = wxString_in_helper(obj5); |
14122 | if (arg6 == NULL) SWIG_fail; | |
14123 | temp6 = true; | |
d14a1e28 | 14124 | } |
0085ce49 RD |
14125 | } |
14126 | if (obj6) { | |
14127 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14128 | if (!SWIG_IsOK(ecode7)) { | |
14129 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14130 | } | |
14131 | arg7 = static_cast< wxFontEncoding >(val7); | |
14132 | } | |
14133 | { | |
14134 | if (!wxPyCheckForApp()) SWIG_fail; | |
14135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14136 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14137 | wxPyEndAllowThreads(__tstate); | |
14138 | if (PyErr_Occurred()) SWIG_fail; | |
14139 | } | |
14140 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14141 | { | |
14142 | if (temp6) | |
14143 | delete arg6; | |
14144 | } | |
14145 | return resultobj; | |
14146 | fail: | |
14147 | { | |
14148 | if (temp6) | |
14149 | delete arg6; | |
14150 | } | |
14151 | return NULL; | |
14152 | } | |
14153 | ||
14154 | ||
14155 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14156 | PyObject *resultobj = 0; | |
14157 | wxSize *arg1 = 0 ; | |
14158 | wxFontFamily arg2 ; | |
14159 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14160 | wxString const &arg4_defvalue = wxEmptyString ; | |
14161 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14162 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14163 | wxFont *result = 0 ; | |
14164 | wxSize temp1 ; | |
14165 | int val2 ; | |
14166 | int ecode2 = 0 ; | |
14167 | int val3 ; | |
14168 | int ecode3 = 0 ; | |
14169 | bool temp4 = false ; | |
14170 | int val5 ; | |
14171 | int ecode5 = 0 ; | |
14172 | PyObject * obj0 = 0 ; | |
14173 | PyObject * obj1 = 0 ; | |
14174 | PyObject * obj2 = 0 ; | |
14175 | PyObject * obj3 = 0 ; | |
14176 | PyObject * obj4 = 0 ; | |
14177 | char * kwnames[] = { | |
14178 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14179 | }; | |
14180 | ||
14181 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14182 | { | |
14183 | arg1 = &temp1; | |
14184 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14185 | } | |
14186 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14187 | if (!SWIG_IsOK(ecode2)) { | |
14188 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14189 | } | |
14190 | arg2 = static_cast< wxFontFamily >(val2); | |
14191 | if (obj2) { | |
14192 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14193 | if (!SWIG_IsOK(ecode3)) { | |
14194 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14195 | } | |
14196 | arg3 = static_cast< int >(val3); | |
14197 | } | |
14198 | if (obj3) { | |
093d3ff1 | 14199 | { |
0085ce49 RD |
14200 | arg4 = wxString_in_helper(obj3); |
14201 | if (arg4 == NULL) SWIG_fail; | |
14202 | temp4 = true; | |
093d3ff1 | 14203 | } |
0085ce49 RD |
14204 | } |
14205 | if (obj4) { | |
14206 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14207 | if (!SWIG_IsOK(ecode5)) { | |
14208 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14209 | } | |
14210 | arg5 = static_cast< wxFontEncoding >(val5); | |
14211 | } | |
14212 | { | |
14213 | if (!wxPyCheckForApp()) SWIG_fail; | |
14214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14215 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14216 | wxPyEndAllowThreads(__tstate); | |
14217 | if (PyErr_Occurred()) SWIG_fail; | |
14218 | } | |
14219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14220 | { | |
14221 | if (temp4) | |
14222 | delete arg4; | |
14223 | } | |
14224 | return resultobj; | |
14225 | fail: | |
14226 | { | |
14227 | if (temp4) | |
14228 | delete arg4; | |
14229 | } | |
14230 | return NULL; | |
d14a1e28 RD |
14231 | } |
14232 | ||
14233 | ||
b39fe951 | 14234 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
14235 | PyObject *resultobj = 0; |
14236 | wxFont *arg1 = (wxFont *) 0 ; | |
14237 | bool result; | |
14238 | void *argp1 = 0 ; | |
14239 | int res1 = 0 ; | |
14240 | PyObject *swig_obj[1] ; | |
14241 | ||
14242 | if (!args) SWIG_fail; | |
14243 | swig_obj[0] = args; | |
14244 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14245 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
0085ce49 RD |
14247 | } |
14248 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14249 | { | |
14250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14251 | result = (bool)((wxFont const *)arg1)->IsOk(); |
0085ce49 RD |
14252 | wxPyEndAllowThreads(__tstate); |
14253 | if (PyErr_Occurred()) SWIG_fail; | |
14254 | } | |
14255 | { | |
14256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14257 | } | |
14258 | return resultobj; | |
14259 | fail: | |
14260 | return NULL; | |
14261 | } | |
14262 | ||
14263 | ||
14264 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14265 | PyObject *resultobj = 0; | |
14266 | wxFont *arg1 = (wxFont *) 0 ; | |
14267 | wxFont *arg2 = (wxFont *) 0 ; | |
14268 | bool result; | |
14269 | void *argp1 = 0 ; | |
14270 | int res1 = 0 ; | |
14271 | void *argp2 = 0 ; | |
14272 | int res2 = 0 ; | |
14273 | PyObject * obj0 = 0 ; | |
14274 | PyObject * obj1 = 0 ; | |
14275 | char * kwnames[] = { | |
14276 | (char *) "self",(char *) "other", NULL | |
14277 | }; | |
14278 | ||
14279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14281 | if (!SWIG_IsOK(res1)) { | |
14282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14283 | } | |
14284 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14285 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14286 | if (!SWIG_IsOK(res2)) { | |
14287 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14288 | } | |
14289 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14290 | { | |
14291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14292 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14293 | wxPyEndAllowThreads(__tstate); | |
14294 | if (PyErr_Occurred()) SWIG_fail; | |
14295 | } | |
14296 | { | |
14297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14298 | } | |
14299 | return resultobj; | |
14300 | fail: | |
14301 | return NULL; | |
14302 | } | |
14303 | ||
14304 | ||
14305 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14306 | PyObject *resultobj = 0; | |
14307 | wxFont *arg1 = (wxFont *) 0 ; | |
14308 | wxFont *arg2 = (wxFont *) 0 ; | |
14309 | bool result; | |
14310 | void *argp1 = 0 ; | |
14311 | int res1 = 0 ; | |
14312 | void *argp2 = 0 ; | |
14313 | int res2 = 0 ; | |
14314 | PyObject * obj0 = 0 ; | |
14315 | PyObject * obj1 = 0 ; | |
14316 | char * kwnames[] = { | |
14317 | (char *) "self",(char *) "other", NULL | |
14318 | }; | |
14319 | ||
14320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14322 | if (!SWIG_IsOK(res1)) { | |
14323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14324 | } | |
14325 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14326 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14327 | if (!SWIG_IsOK(res2)) { | |
14328 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14329 | } | |
14330 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14331 | { | |
14332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14333 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14334 | wxPyEndAllowThreads(__tstate); | |
14335 | if (PyErr_Occurred()) SWIG_fail; | |
14336 | } | |
14337 | { | |
14338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14339 | } | |
14340 | return resultobj; | |
14341 | fail: | |
14342 | return NULL; | |
d14a1e28 RD |
14343 | } |
14344 | ||
14345 | ||
0085ce49 RD |
14346 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14347 | PyObject *resultobj = 0; | |
14348 | wxFont *arg1 = (wxFont *) 0 ; | |
14349 | int result; | |
14350 | void *argp1 = 0 ; | |
14351 | int res1 = 0 ; | |
14352 | PyObject *swig_obj[1] ; | |
14353 | ||
14354 | if (!args) SWIG_fail; | |
14355 | swig_obj[0] = args; | |
14356 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14357 | if (!SWIG_IsOK(res1)) { | |
14358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14359 | } | |
14360 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14361 | { | |
14362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14363 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
14364 | wxPyEndAllowThreads(__tstate); | |
14365 | if (PyErr_Occurred()) SWIG_fail; | |
14366 | } | |
14367 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14368 | return resultobj; | |
14369 | fail: | |
14370 | return NULL; | |
d14a1e28 RD |
14371 | } |
14372 | ||
14373 | ||
0085ce49 RD |
14374 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14375 | PyObject *resultobj = 0; | |
14376 | wxFont *arg1 = (wxFont *) 0 ; | |
14377 | wxSize result; | |
14378 | void *argp1 = 0 ; | |
14379 | int res1 = 0 ; | |
14380 | PyObject *swig_obj[1] ; | |
14381 | ||
14382 | if (!args) SWIG_fail; | |
14383 | swig_obj[0] = args; | |
14384 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14385 | if (!SWIG_IsOK(res1)) { | |
14386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14387 | } | |
14388 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14389 | { | |
14390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14391 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
14392 | wxPyEndAllowThreads(__tstate); | |
14393 | if (PyErr_Occurred()) SWIG_fail; | |
14394 | } | |
14395 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
14396 | return resultobj; | |
14397 | fail: | |
14398 | return NULL; | |
d14a1e28 RD |
14399 | } |
14400 | ||
14401 | ||
0085ce49 RD |
14402 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14403 | PyObject *resultobj = 0; | |
14404 | wxFont *arg1 = (wxFont *) 0 ; | |
14405 | bool result; | |
14406 | void *argp1 = 0 ; | |
14407 | int res1 = 0 ; | |
14408 | PyObject *swig_obj[1] ; | |
14409 | ||
14410 | if (!args) SWIG_fail; | |
14411 | swig_obj[0] = args; | |
14412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14413 | if (!SWIG_IsOK(res1)) { | |
14414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14415 | } | |
14416 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14417 | { | |
14418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14419 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
14420 | wxPyEndAllowThreads(__tstate); | |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
14423 | { | |
14424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14425 | } | |
14426 | return resultobj; | |
14427 | fail: | |
14428 | return NULL; | |
d14a1e28 RD |
14429 | } |
14430 | ||
14431 | ||
0085ce49 RD |
14432 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14433 | PyObject *resultobj = 0; | |
14434 | wxFont *arg1 = (wxFont *) 0 ; | |
14435 | int result; | |
14436 | void *argp1 = 0 ; | |
14437 | int res1 = 0 ; | |
14438 | PyObject *swig_obj[1] ; | |
14439 | ||
14440 | if (!args) SWIG_fail; | |
14441 | swig_obj[0] = args; | |
14442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14443 | if (!SWIG_IsOK(res1)) { | |
14444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14445 | } | |
14446 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14447 | { | |
14448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14449 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
14450 | wxPyEndAllowThreads(__tstate); | |
14451 | if (PyErr_Occurred()) SWIG_fail; | |
14452 | } | |
14453 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14454 | return resultobj; | |
14455 | fail: | |
14456 | return NULL; | |
d14a1e28 RD |
14457 | } |
14458 | ||
14459 | ||
0085ce49 RD |
14460 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14461 | PyObject *resultobj = 0; | |
14462 | wxFont *arg1 = (wxFont *) 0 ; | |
14463 | int result; | |
14464 | void *argp1 = 0 ; | |
14465 | int res1 = 0 ; | |
14466 | PyObject *swig_obj[1] ; | |
14467 | ||
14468 | if (!args) SWIG_fail; | |
14469 | swig_obj[0] = args; | |
14470 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14471 | if (!SWIG_IsOK(res1)) { | |
14472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14473 | } | |
14474 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14475 | { | |
14476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14477 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
14478 | wxPyEndAllowThreads(__tstate); | |
14479 | if (PyErr_Occurred()) SWIG_fail; | |
14480 | } | |
14481 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14482 | return resultobj; | |
14483 | fail: | |
14484 | return NULL; | |
d14a1e28 RD |
14485 | } |
14486 | ||
14487 | ||
0085ce49 RD |
14488 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14489 | PyObject *resultobj = 0; | |
14490 | wxFont *arg1 = (wxFont *) 0 ; | |
14491 | int result; | |
14492 | void *argp1 = 0 ; | |
14493 | int res1 = 0 ; | |
14494 | PyObject *swig_obj[1] ; | |
14495 | ||
14496 | if (!args) SWIG_fail; | |
14497 | swig_obj[0] = args; | |
14498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14499 | if (!SWIG_IsOK(res1)) { | |
14500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14501 | } | |
14502 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14503 | { | |
14504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14505 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
14506 | wxPyEndAllowThreads(__tstate); | |
14507 | if (PyErr_Occurred()) SWIG_fail; | |
14508 | } | |
14509 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14510 | return resultobj; | |
14511 | fail: | |
14512 | return NULL; | |
d14a1e28 RD |
14513 | } |
14514 | ||
14515 | ||
0085ce49 RD |
14516 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14517 | PyObject *resultobj = 0; | |
14518 | wxFont *arg1 = (wxFont *) 0 ; | |
14519 | bool result; | |
14520 | void *argp1 = 0 ; | |
14521 | int res1 = 0 ; | |
14522 | PyObject *swig_obj[1] ; | |
14523 | ||
14524 | if (!args) SWIG_fail; | |
14525 | swig_obj[0] = args; | |
14526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14527 | if (!SWIG_IsOK(res1)) { | |
14528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14529 | } | |
14530 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14531 | { | |
14532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14533 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
14534 | wxPyEndAllowThreads(__tstate); | |
14535 | if (PyErr_Occurred()) SWIG_fail; | |
14536 | } | |
14537 | { | |
14538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14539 | } | |
14540 | return resultobj; | |
14541 | fail: | |
14542 | return NULL; | |
d14a1e28 RD |
14543 | } |
14544 | ||
14545 | ||
0085ce49 RD |
14546 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14547 | PyObject *resultobj = 0; | |
14548 | wxFont *arg1 = (wxFont *) 0 ; | |
14549 | wxString result; | |
14550 | void *argp1 = 0 ; | |
14551 | int res1 = 0 ; | |
14552 | PyObject *swig_obj[1] ; | |
14553 | ||
14554 | if (!args) SWIG_fail; | |
14555 | swig_obj[0] = args; | |
14556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14557 | if (!SWIG_IsOK(res1)) { | |
14558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14559 | } | |
14560 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14561 | { | |
14562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14563 | result = ((wxFont const *)arg1)->GetFaceName(); | |
14564 | wxPyEndAllowThreads(__tstate); | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
14567 | { | |
14568 | #if wxUSE_UNICODE | |
14569 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14570 | #else | |
14571 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14572 | #endif | |
14573 | } | |
14574 | return resultobj; | |
14575 | fail: | |
14576 | return NULL; | |
d14a1e28 RD |
14577 | } |
14578 | ||
14579 | ||
0085ce49 RD |
14580 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14581 | PyObject *resultobj = 0; | |
14582 | wxFont *arg1 = (wxFont *) 0 ; | |
14583 | wxFontEncoding result; | |
14584 | void *argp1 = 0 ; | |
14585 | int res1 = 0 ; | |
14586 | PyObject *swig_obj[1] ; | |
14587 | ||
14588 | if (!args) SWIG_fail; | |
14589 | swig_obj[0] = args; | |
14590 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14591 | if (!SWIG_IsOK(res1)) { | |
14592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14593 | } | |
14594 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14595 | { | |
14596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14597 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
14598 | wxPyEndAllowThreads(__tstate); | |
14599 | if (PyErr_Occurred()) SWIG_fail; | |
14600 | } | |
14601 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14602 | return resultobj; | |
14603 | fail: | |
14604 | return NULL; | |
d14a1e28 RD |
14605 | } |
14606 | ||
14607 | ||
0085ce49 RD |
14608 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14609 | PyObject *resultobj = 0; | |
14610 | wxFont *arg1 = (wxFont *) 0 ; | |
14611 | wxNativeFontInfo *result = 0 ; | |
14612 | void *argp1 = 0 ; | |
14613 | int res1 = 0 ; | |
14614 | PyObject *swig_obj[1] ; | |
14615 | ||
14616 | if (!args) SWIG_fail; | |
14617 | swig_obj[0] = args; | |
14618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14619 | if (!SWIG_IsOK(res1)) { | |
14620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14621 | } | |
14622 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14623 | { | |
14624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14625 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
14626 | wxPyEndAllowThreads(__tstate); | |
14627 | if (PyErr_Occurred()) SWIG_fail; | |
14628 | } | |
14629 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
14630 | return resultobj; | |
14631 | fail: | |
14632 | return NULL; | |
d14a1e28 RD |
14633 | } |
14634 | ||
14635 | ||
0085ce49 RD |
14636 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14637 | PyObject *resultobj = 0; | |
14638 | wxFont *arg1 = (wxFont *) 0 ; | |
14639 | bool result; | |
14640 | void *argp1 = 0 ; | |
14641 | int res1 = 0 ; | |
14642 | PyObject *swig_obj[1] ; | |
14643 | ||
14644 | if (!args) SWIG_fail; | |
14645 | swig_obj[0] = args; | |
14646 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14647 | if (!SWIG_IsOK(res1)) { | |
14648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14649 | } | |
14650 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14651 | { | |
14652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14653 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
14654 | wxPyEndAllowThreads(__tstate); | |
14655 | if (PyErr_Occurred()) SWIG_fail; | |
14656 | } | |
14657 | { | |
14658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14659 | } | |
14660 | return resultobj; | |
14661 | fail: | |
14662 | return NULL; | |
d14a1e28 RD |
14663 | } |
14664 | ||
14665 | ||
0085ce49 RD |
14666 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14667 | PyObject *resultobj = 0; | |
14668 | wxFont *arg1 = (wxFont *) 0 ; | |
14669 | wxString result; | |
14670 | void *argp1 = 0 ; | |
14671 | int res1 = 0 ; | |
14672 | PyObject *swig_obj[1] ; | |
14673 | ||
14674 | if (!args) SWIG_fail; | |
14675 | swig_obj[0] = args; | |
14676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14677 | if (!SWIG_IsOK(res1)) { | |
14678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14679 | } | |
14680 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14681 | { | |
14682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14683 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
14684 | wxPyEndAllowThreads(__tstate); | |
14685 | if (PyErr_Occurred()) SWIG_fail; | |
14686 | } | |
14687 | { | |
14688 | #if wxUSE_UNICODE | |
14689 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14690 | #else | |
14691 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14692 | #endif | |
14693 | } | |
14694 | return resultobj; | |
14695 | fail: | |
14696 | return NULL; | |
d14a1e28 RD |
14697 | } |
14698 | ||
14699 | ||
0085ce49 RD |
14700 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14701 | PyObject *resultobj = 0; | |
14702 | wxFont *arg1 = (wxFont *) 0 ; | |
14703 | wxString result; | |
14704 | void *argp1 = 0 ; | |
14705 | int res1 = 0 ; | |
14706 | PyObject *swig_obj[1] ; | |
14707 | ||
14708 | if (!args) SWIG_fail; | |
14709 | swig_obj[0] = args; | |
14710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14711 | if (!SWIG_IsOK(res1)) { | |
14712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14713 | } | |
14714 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14715 | { | |
14716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14717 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
14718 | wxPyEndAllowThreads(__tstate); | |
14719 | if (PyErr_Occurred()) SWIG_fail; | |
14720 | } | |
14721 | { | |
14722 | #if wxUSE_UNICODE | |
14723 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14724 | #else | |
14725 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14726 | #endif | |
14727 | } | |
14728 | return resultobj; | |
14729 | fail: | |
14730 | return NULL; | |
14731 | } | |
14732 | ||
14733 | ||
14734 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14735 | PyObject *resultobj = 0; | |
14736 | wxFont *arg1 = (wxFont *) 0 ; | |
14737 | int arg2 ; | |
14738 | void *argp1 = 0 ; | |
14739 | int res1 = 0 ; | |
14740 | int val2 ; | |
14741 | int ecode2 = 0 ; | |
14742 | PyObject * obj0 = 0 ; | |
14743 | PyObject * obj1 = 0 ; | |
14744 | char * kwnames[] = { | |
14745 | (char *) "self",(char *) "pointSize", NULL | |
14746 | }; | |
14747 | ||
14748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14750 | if (!SWIG_IsOK(res1)) { | |
14751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14752 | } | |
14753 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14754 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14755 | if (!SWIG_IsOK(ecode2)) { | |
14756 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
14757 | } | |
14758 | arg2 = static_cast< int >(val2); | |
14759 | { | |
14760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14761 | (arg1)->SetPointSize(arg2); | |
14762 | wxPyEndAllowThreads(__tstate); | |
14763 | if (PyErr_Occurred()) SWIG_fail; | |
14764 | } | |
14765 | resultobj = SWIG_Py_Void(); | |
14766 | return resultobj; | |
14767 | fail: | |
14768 | return NULL; | |
14769 | } | |
14770 | ||
14771 | ||
14772 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14773 | PyObject *resultobj = 0; | |
14774 | wxFont *arg1 = (wxFont *) 0 ; | |
14775 | wxSize *arg2 = 0 ; | |
14776 | void *argp1 = 0 ; | |
14777 | int res1 = 0 ; | |
14778 | wxSize temp2 ; | |
14779 | PyObject * obj0 = 0 ; | |
14780 | PyObject * obj1 = 0 ; | |
14781 | char * kwnames[] = { | |
14782 | (char *) "self",(char *) "pixelSize", NULL | |
14783 | }; | |
14784 | ||
14785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14787 | if (!SWIG_IsOK(res1)) { | |
14788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14789 | } | |
14790 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14791 | { | |
14792 | arg2 = &temp2; | |
14793 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14794 | } | |
14795 | { | |
14796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14797 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
14798 | wxPyEndAllowThreads(__tstate); | |
14799 | if (PyErr_Occurred()) SWIG_fail; | |
14800 | } | |
14801 | resultobj = SWIG_Py_Void(); | |
14802 | return resultobj; | |
14803 | fail: | |
14804 | return NULL; | |
14805 | } | |
14806 | ||
14807 | ||
14808 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14809 | PyObject *resultobj = 0; | |
14810 | wxFont *arg1 = (wxFont *) 0 ; | |
14811 | int arg2 ; | |
14812 | void *argp1 = 0 ; | |
14813 | int res1 = 0 ; | |
14814 | int val2 ; | |
14815 | int ecode2 = 0 ; | |
14816 | PyObject * obj0 = 0 ; | |
14817 | PyObject * obj1 = 0 ; | |
14818 | char * kwnames[] = { | |
14819 | (char *) "self",(char *) "family", NULL | |
14820 | }; | |
14821 | ||
14822 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
14823 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14824 | if (!SWIG_IsOK(res1)) { | |
14825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14826 | } | |
14827 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14828 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14829 | if (!SWIG_IsOK(ecode2)) { | |
14830 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
14831 | } | |
14832 | arg2 = static_cast< int >(val2); | |
14833 | { | |
14834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14835 | (arg1)->SetFamily(arg2); | |
14836 | wxPyEndAllowThreads(__tstate); | |
14837 | if (PyErr_Occurred()) SWIG_fail; | |
14838 | } | |
14839 | resultobj = SWIG_Py_Void(); | |
14840 | return resultobj; | |
14841 | fail: | |
14842 | return NULL; | |
14843 | } | |
14844 | ||
14845 | ||
14846 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14847 | PyObject *resultobj = 0; | |
14848 | wxFont *arg1 = (wxFont *) 0 ; | |
14849 | int arg2 ; | |
14850 | void *argp1 = 0 ; | |
14851 | int res1 = 0 ; | |
14852 | int val2 ; | |
14853 | int ecode2 = 0 ; | |
14854 | PyObject * obj0 = 0 ; | |
14855 | PyObject * obj1 = 0 ; | |
14856 | char * kwnames[] = { | |
14857 | (char *) "self",(char *) "style", NULL | |
14858 | }; | |
14859 | ||
14860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14862 | if (!SWIG_IsOK(res1)) { | |
14863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14864 | } | |
14865 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14866 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14867 | if (!SWIG_IsOK(ecode2)) { | |
14868 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
14869 | } | |
14870 | arg2 = static_cast< int >(val2); | |
14871 | { | |
14872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14873 | (arg1)->SetStyle(arg2); | |
14874 | wxPyEndAllowThreads(__tstate); | |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
14876 | } | |
14877 | resultobj = SWIG_Py_Void(); | |
14878 | return resultobj; | |
14879 | fail: | |
14880 | return NULL; | |
14881 | } | |
14882 | ||
14883 | ||
14884 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14885 | PyObject *resultobj = 0; | |
14886 | wxFont *arg1 = (wxFont *) 0 ; | |
14887 | int arg2 ; | |
14888 | void *argp1 = 0 ; | |
14889 | int res1 = 0 ; | |
14890 | int val2 ; | |
14891 | int ecode2 = 0 ; | |
14892 | PyObject * obj0 = 0 ; | |
14893 | PyObject * obj1 = 0 ; | |
14894 | char * kwnames[] = { | |
14895 | (char *) "self",(char *) "weight", NULL | |
14896 | }; | |
14897 | ||
14898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
14899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14900 | if (!SWIG_IsOK(res1)) { | |
14901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14902 | } | |
14903 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14904 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14905 | if (!SWIG_IsOK(ecode2)) { | |
14906 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
14907 | } | |
14908 | arg2 = static_cast< int >(val2); | |
14909 | { | |
14910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14911 | (arg1)->SetWeight(arg2); | |
14912 | wxPyEndAllowThreads(__tstate); | |
14913 | if (PyErr_Occurred()) SWIG_fail; | |
14914 | } | |
14915 | resultobj = SWIG_Py_Void(); | |
14916 | return resultobj; | |
14917 | fail: | |
14918 | return NULL; | |
14919 | } | |
14920 | ||
14921 | ||
14922 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14923 | PyObject *resultobj = 0; | |
14924 | wxFont *arg1 = (wxFont *) 0 ; | |
14925 | wxString *arg2 = 0 ; | |
704eda0c | 14926 | bool result; |
0085ce49 RD |
14927 | void *argp1 = 0 ; |
14928 | int res1 = 0 ; | |
14929 | bool temp2 = false ; | |
14930 | PyObject * obj0 = 0 ; | |
14931 | PyObject * obj1 = 0 ; | |
14932 | char * kwnames[] = { | |
14933 | (char *) "self",(char *) "faceName", NULL | |
14934 | }; | |
14935 | ||
14936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
14937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14938 | if (!SWIG_IsOK(res1)) { | |
14939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14940 | } | |
14941 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14942 | { | |
14943 | arg2 = wxString_in_helper(obj1); | |
14944 | if (arg2 == NULL) SWIG_fail; | |
14945 | temp2 = true; | |
14946 | } | |
14947 | { | |
14948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14949 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
0085ce49 RD |
14950 | wxPyEndAllowThreads(__tstate); |
14951 | if (PyErr_Occurred()) SWIG_fail; | |
14952 | } | |
704eda0c RD |
14953 | { |
14954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14955 | } | |
0085ce49 RD |
14956 | { |
14957 | if (temp2) | |
14958 | delete arg2; | |
14959 | } | |
14960 | return resultobj; | |
14961 | fail: | |
14962 | { | |
14963 | if (temp2) | |
14964 | delete arg2; | |
14965 | } | |
14966 | return NULL; | |
14967 | } | |
14968 | ||
14969 | ||
14970 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14971 | PyObject *resultobj = 0; | |
14972 | wxFont *arg1 = (wxFont *) 0 ; | |
14973 | bool arg2 ; | |
14974 | void *argp1 = 0 ; | |
14975 | int res1 = 0 ; | |
14976 | bool val2 ; | |
14977 | int ecode2 = 0 ; | |
14978 | PyObject * obj0 = 0 ; | |
14979 | PyObject * obj1 = 0 ; | |
14980 | char * kwnames[] = { | |
14981 | (char *) "self",(char *) "underlined", NULL | |
14982 | }; | |
14983 | ||
14984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
14985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14986 | if (!SWIG_IsOK(res1)) { | |
14987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14988 | } | |
14989 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14990 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
14991 | if (!SWIG_IsOK(ecode2)) { | |
14992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
14993 | } | |
14994 | arg2 = static_cast< bool >(val2); | |
14995 | { | |
14996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14997 | (arg1)->SetUnderlined(arg2); | |
14998 | wxPyEndAllowThreads(__tstate); | |
14999 | if (PyErr_Occurred()) SWIG_fail; | |
15000 | } | |
15001 | resultobj = SWIG_Py_Void(); | |
15002 | return resultobj; | |
15003 | fail: | |
15004 | return NULL; | |
15005 | } | |
15006 | ||
15007 | ||
15008 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15009 | PyObject *resultobj = 0; | |
15010 | wxFont *arg1 = (wxFont *) 0 ; | |
15011 | wxFontEncoding arg2 ; | |
15012 | void *argp1 = 0 ; | |
15013 | int res1 = 0 ; | |
15014 | int val2 ; | |
15015 | int ecode2 = 0 ; | |
15016 | PyObject * obj0 = 0 ; | |
15017 | PyObject * obj1 = 0 ; | |
15018 | char * kwnames[] = { | |
15019 | (char *) "self",(char *) "encoding", NULL | |
15020 | }; | |
15021 | ||
15022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
15023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15024 | if (!SWIG_IsOK(res1)) { | |
15025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15026 | } | |
15027 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15028 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15029 | if (!SWIG_IsOK(ecode2)) { | |
15030 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15031 | } | |
15032 | arg2 = static_cast< wxFontEncoding >(val2); | |
15033 | { | |
15034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15035 | (arg1)->SetEncoding(arg2); | |
15036 | wxPyEndAllowThreads(__tstate); | |
15037 | if (PyErr_Occurred()) SWIG_fail; | |
15038 | } | |
15039 | resultobj = SWIG_Py_Void(); | |
15040 | return resultobj; | |
15041 | fail: | |
15042 | return NULL; | |
15043 | } | |
15044 | ||
15045 | ||
15046 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15047 | PyObject *resultobj = 0; | |
15048 | wxFont *arg1 = (wxFont *) 0 ; | |
15049 | wxNativeFontInfo *arg2 = 0 ; | |
15050 | void *argp1 = 0 ; | |
15051 | int res1 = 0 ; | |
15052 | void *argp2 = 0 ; | |
15053 | int res2 = 0 ; | |
15054 | PyObject * obj0 = 0 ; | |
15055 | PyObject * obj1 = 0 ; | |
15056 | char * kwnames[] = { | |
15057 | (char *) "self",(char *) "info", NULL | |
15058 | }; | |
15059 | ||
15060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
15061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15062 | if (!SWIG_IsOK(res1)) { | |
15063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15064 | } | |
15065 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15066 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
15067 | if (!SWIG_IsOK(res2)) { | |
15068 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15069 | } | |
15070 | if (!argp2) { | |
15071 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15072 | } | |
15073 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
15074 | { | |
15075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15076 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
15077 | wxPyEndAllowThreads(__tstate); | |
15078 | if (PyErr_Occurred()) SWIG_fail; | |
15079 | } | |
15080 | resultobj = SWIG_Py_Void(); | |
15081 | return resultobj; | |
15082 | fail: | |
15083 | return NULL; | |
15084 | } | |
15085 | ||
15086 | ||
15087 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15088 | PyObject *resultobj = 0; | |
15089 | wxFont *arg1 = (wxFont *) 0 ; | |
15090 | wxString *arg2 = 0 ; | |
704eda0c | 15091 | bool result; |
0085ce49 RD |
15092 | void *argp1 = 0 ; |
15093 | int res1 = 0 ; | |
15094 | bool temp2 = false ; | |
15095 | PyObject * obj0 = 0 ; | |
15096 | PyObject * obj1 = 0 ; | |
15097 | char * kwnames[] = { | |
15098 | (char *) "self",(char *) "info", NULL | |
15099 | }; | |
15100 | ||
15101 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15102 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15103 | if (!SWIG_IsOK(res1)) { | |
15104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15105 | } | |
15106 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15107 | { | |
15108 | arg2 = wxString_in_helper(obj1); | |
15109 | if (arg2 == NULL) SWIG_fail; | |
15110 | temp2 = true; | |
15111 | } | |
15112 | { | |
15113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15114 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
0085ce49 RD |
15115 | wxPyEndAllowThreads(__tstate); |
15116 | if (PyErr_Occurred()) SWIG_fail; | |
15117 | } | |
704eda0c RD |
15118 | { |
15119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15120 | } | |
0085ce49 RD |
15121 | { |
15122 | if (temp2) | |
15123 | delete arg2; | |
15124 | } | |
15125 | return resultobj; | |
15126 | fail: | |
15127 | { | |
15128 | if (temp2) | |
15129 | delete arg2; | |
15130 | } | |
15131 | return NULL; | |
d14a1e28 RD |
15132 | } |
15133 | ||
15134 | ||
0085ce49 RD |
15135 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15136 | PyObject *resultobj = 0; | |
15137 | wxFont *arg1 = (wxFont *) 0 ; | |
15138 | wxString *arg2 = 0 ; | |
704eda0c | 15139 | bool result; |
0085ce49 RD |
15140 | void *argp1 = 0 ; |
15141 | int res1 = 0 ; | |
15142 | bool temp2 = false ; | |
15143 | PyObject * obj0 = 0 ; | |
15144 | PyObject * obj1 = 0 ; | |
15145 | char * kwnames[] = { | |
15146 | (char *) "self",(char *) "info", NULL | |
15147 | }; | |
15148 | ||
15149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
15150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15151 | if (!SWIG_IsOK(res1)) { | |
15152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15153 | } | |
15154 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15155 | { | |
15156 | arg2 = wxString_in_helper(obj1); | |
15157 | if (arg2 == NULL) SWIG_fail; | |
15158 | temp2 = true; | |
15159 | } | |
15160 | { | |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15162 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
0085ce49 RD |
15163 | wxPyEndAllowThreads(__tstate); |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
704eda0c RD |
15166 | { |
15167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15168 | } | |
0085ce49 RD |
15169 | { |
15170 | if (temp2) | |
15171 | delete arg2; | |
15172 | } | |
15173 | return resultobj; | |
15174 | fail: | |
15175 | { | |
15176 | if (temp2) | |
15177 | delete arg2; | |
15178 | } | |
15179 | return NULL; | |
d14a1e28 RD |
15180 | } |
15181 | ||
15182 | ||
0085ce49 RD |
15183 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15184 | PyObject *resultobj = 0; | |
15185 | wxFont *arg1 = (wxFont *) 0 ; | |
15186 | wxString result; | |
15187 | void *argp1 = 0 ; | |
15188 | int res1 = 0 ; | |
15189 | PyObject *swig_obj[1] ; | |
15190 | ||
15191 | if (!args) SWIG_fail; | |
15192 | swig_obj[0] = args; | |
15193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15194 | if (!SWIG_IsOK(res1)) { | |
15195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15196 | } | |
15197 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15198 | { | |
15199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15200 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | { | |
15205 | #if wxUSE_UNICODE | |
15206 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15207 | #else | |
15208 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15209 | #endif | |
15210 | } | |
15211 | return resultobj; | |
15212 | fail: | |
15213 | return NULL; | |
d14a1e28 RD |
15214 | } |
15215 | ||
15216 | ||
0085ce49 RD |
15217 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15218 | PyObject *resultobj = 0; | |
15219 | wxFont *arg1 = (wxFont *) 0 ; | |
15220 | wxString result; | |
15221 | void *argp1 = 0 ; | |
15222 | int res1 = 0 ; | |
15223 | PyObject *swig_obj[1] ; | |
15224 | ||
15225 | if (!args) SWIG_fail; | |
15226 | swig_obj[0] = args; | |
15227 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15228 | if (!SWIG_IsOK(res1)) { | |
15229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15230 | } | |
15231 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15232 | { | |
15233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15234 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15235 | wxPyEndAllowThreads(__tstate); | |
15236 | if (PyErr_Occurred()) SWIG_fail; | |
15237 | } | |
15238 | { | |
15239 | #if wxUSE_UNICODE | |
15240 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15241 | #else | |
15242 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15243 | #endif | |
15244 | } | |
15245 | return resultobj; | |
15246 | fail: | |
15247 | return NULL; | |
d14a1e28 RD |
15248 | } |
15249 | ||
15250 | ||
0085ce49 RD |
15251 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15252 | PyObject *resultobj = 0; | |
15253 | wxFont *arg1 = (wxFont *) 0 ; | |
15254 | wxString result; | |
15255 | void *argp1 = 0 ; | |
15256 | int res1 = 0 ; | |
15257 | PyObject *swig_obj[1] ; | |
15258 | ||
15259 | if (!args) SWIG_fail; | |
15260 | swig_obj[0] = args; | |
15261 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15262 | if (!SWIG_IsOK(res1)) { | |
15263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15264 | } | |
15265 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15266 | { | |
15267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15268 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15269 | wxPyEndAllowThreads(__tstate); | |
15270 | if (PyErr_Occurred()) SWIG_fail; | |
15271 | } | |
15272 | { | |
d14a1e28 | 15273 | #if wxUSE_UNICODE |
0085ce49 | 15274 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15275 | #else |
0085ce49 | 15276 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15277 | #endif |
0085ce49 RD |
15278 | } |
15279 | return resultobj; | |
15280 | fail: | |
15281 | return NULL; | |
15282 | } | |
15283 | ||
15284 | ||
15285 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15286 | PyObject *resultobj = 0; | |
15287 | wxFont *arg1 = (wxFont *) 0 ; | |
15288 | bool arg2 = (bool) true ; | |
15289 | void *argp1 = 0 ; | |
15290 | int res1 = 0 ; | |
15291 | bool val2 ; | |
15292 | int ecode2 = 0 ; | |
15293 | PyObject * obj0 = 0 ; | |
15294 | PyObject * obj1 = 0 ; | |
15295 | char * kwnames[] = { | |
15296 | (char *) "self",(char *) "no", NULL | |
15297 | }; | |
15298 | ||
15299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15301 | if (!SWIG_IsOK(res1)) { | |
15302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15303 | } | |
15304 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15305 | if (obj1) { | |
15306 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15307 | if (!SWIG_IsOK(ecode2)) { | |
15308 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15309 | } | |
15310 | arg2 = static_cast< bool >(val2); | |
15311 | } | |
15312 | { | |
15313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15314 | (arg1)->SetNoAntiAliasing(arg2); | |
15315 | wxPyEndAllowThreads(__tstate); | |
15316 | if (PyErr_Occurred()) SWIG_fail; | |
15317 | } | |
15318 | resultobj = SWIG_Py_Void(); | |
15319 | return resultobj; | |
15320 | fail: | |
15321 | return NULL; | |
d14a1e28 RD |
15322 | } |
15323 | ||
15324 | ||
0085ce49 RD |
15325 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15326 | PyObject *resultobj = 0; | |
15327 | wxFont *arg1 = (wxFont *) 0 ; | |
15328 | bool result; | |
15329 | void *argp1 = 0 ; | |
15330 | int res1 = 0 ; | |
15331 | PyObject *swig_obj[1] ; | |
15332 | ||
15333 | if (!args) SWIG_fail; | |
15334 | swig_obj[0] = args; | |
15335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15336 | if (!SWIG_IsOK(res1)) { | |
15337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15338 | } | |
15339 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
15343 | wxPyEndAllowThreads(__tstate); | |
15344 | if (PyErr_Occurred()) SWIG_fail; | |
15345 | } | |
15346 | { | |
15347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15348 | } | |
15349 | return resultobj; | |
15350 | fail: | |
15351 | return NULL; | |
d14a1e28 RD |
15352 | } |
15353 | ||
15354 | ||
0085ce49 RD |
15355 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15356 | PyObject *resultobj = 0; | |
15357 | wxFontEncoding result; | |
15358 | ||
15359 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
15360 | { | |
15361 | if (!wxPyCheckForApp()) SWIG_fail; | |
15362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15363 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
15364 | wxPyEndAllowThreads(__tstate); | |
15365 | if (PyErr_Occurred()) SWIG_fail; | |
15366 | } | |
15367 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15368 | return resultobj; | |
15369 | fail: | |
15370 | return NULL; | |
d14a1e28 RD |
15371 | } |
15372 | ||
15373 | ||
0085ce49 RD |
15374 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15375 | PyObject *resultobj = 0; | |
15376 | wxFontEncoding arg1 ; | |
15377 | int val1 ; | |
15378 | int ecode1 = 0 ; | |
15379 | PyObject * obj0 = 0 ; | |
15380 | char * kwnames[] = { | |
15381 | (char *) "encoding", NULL | |
15382 | }; | |
15383 | ||
15384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
15385 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15386 | if (!SWIG_IsOK(ecode1)) { | |
15387 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15388 | } | |
15389 | arg1 = static_cast< wxFontEncoding >(val1); | |
15390 | { | |
15391 | if (!wxPyCheckForApp()) SWIG_fail; | |
15392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15393 | wxFont::SetDefaultEncoding(arg1); | |
15394 | wxPyEndAllowThreads(__tstate); | |
15395 | if (PyErr_Occurred()) SWIG_fail; | |
15396 | } | |
15397 | resultobj = SWIG_Py_Void(); | |
15398 | return resultobj; | |
15399 | fail: | |
15400 | return NULL; | |
d14a1e28 RD |
15401 | } |
15402 | ||
15403 | ||
0085ce49 RD |
15404 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15405 | PyObject *obj; | |
15406 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15407 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
15408 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15409 | } |
15410 | ||
0085ce49 RD |
15411 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15412 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15413 | } |
15414 | ||
0085ce49 RD |
15415 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15416 | PyObject *resultobj = 0; | |
15417 | wxPyFontEnumerator *result = 0 ; | |
15418 | ||
15419 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
15420 | { | |
15421 | if (!wxPyCheckForApp()) SWIG_fail; | |
15422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15423 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
15424 | wxPyEndAllowThreads(__tstate); | |
15425 | if (PyErr_Occurred()) SWIG_fail; | |
15426 | } | |
15427 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
15428 | return resultobj; | |
15429 | fail: | |
15430 | return NULL; | |
d14a1e28 RD |
15431 | } |
15432 | ||
15433 | ||
0085ce49 RD |
15434 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15435 | PyObject *resultobj = 0; | |
15436 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15437 | void *argp1 = 0 ; | |
15438 | int res1 = 0 ; | |
15439 | PyObject *swig_obj[1] ; | |
15440 | ||
15441 | if (!args) SWIG_fail; | |
15442 | swig_obj[0] = args; | |
15443 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
15444 | if (!SWIG_IsOK(res1)) { | |
15445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15446 | } | |
15447 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15448 | { | |
15449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15450 | delete arg1; | |
d14a1e28 | 15451 | |
0085ce49 RD |
15452 | wxPyEndAllowThreads(__tstate); |
15453 | if (PyErr_Occurred()) SWIG_fail; | |
15454 | } | |
15455 | resultobj = SWIG_Py_Void(); | |
15456 | return resultobj; | |
15457 | fail: | |
15458 | return NULL; | |
15459 | } | |
15460 | ||
15461 | ||
15462 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15463 | PyObject *resultobj = 0; | |
15464 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15465 | PyObject *arg2 = (PyObject *) 0 ; | |
15466 | PyObject *arg3 = (PyObject *) 0 ; | |
c25f90f6 | 15467 | int arg4 = (int) 0 ; |
0085ce49 RD |
15468 | void *argp1 = 0 ; |
15469 | int res1 = 0 ; | |
c25f90f6 | 15470 | int val4 ; |
0085ce49 RD |
15471 | int ecode4 = 0 ; |
15472 | PyObject * obj0 = 0 ; | |
15473 | PyObject * obj1 = 0 ; | |
15474 | PyObject * obj2 = 0 ; | |
15475 | PyObject * obj3 = 0 ; | |
15476 | char * kwnames[] = { | |
15477 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15478 | }; | |
15479 | ||
c25f90f6 | 15480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
15481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); |
15482 | if (!SWIG_IsOK(res1)) { | |
15483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15484 | } | |
15485 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15486 | arg2 = obj1; | |
15487 | arg3 = obj2; | |
c25f90f6 RD |
15488 | if (obj3) { |
15489 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15490 | if (!SWIG_IsOK(ecode4)) { | |
15491 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
15492 | } | |
15493 | arg4 = static_cast< int >(val4); | |
15494 | } | |
0085ce49 RD |
15495 | { |
15496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15497 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15498 | wxPyEndAllowThreads(__tstate); | |
15499 | if (PyErr_Occurred()) SWIG_fail; | |
15500 | } | |
15501 | resultobj = SWIG_Py_Void(); | |
15502 | return resultobj; | |
15503 | fail: | |
15504 | return NULL; | |
15505 | } | |
15506 | ||
15507 | ||
15508 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15509 | PyObject *resultobj = 0; | |
15510 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15511 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
15512 | bool arg3 = (bool) false ; | |
15513 | bool result; | |
15514 | void *argp1 = 0 ; | |
15515 | int res1 = 0 ; | |
15516 | int val2 ; | |
15517 | int ecode2 = 0 ; | |
15518 | bool val3 ; | |
15519 | int ecode3 = 0 ; | |
15520 | PyObject * obj0 = 0 ; | |
15521 | PyObject * obj1 = 0 ; | |
15522 | PyObject * obj2 = 0 ; | |
15523 | char * kwnames[] = { | |
15524 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
15525 | }; | |
15526 | ||
15527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15529 | if (!SWIG_IsOK(res1)) { | |
15530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15531 | } | |
15532 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15533 | if (obj1) { | |
15534 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15535 | if (!SWIG_IsOK(ecode2)) { | |
15536 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15537 | } | |
15538 | arg2 = static_cast< wxFontEncoding >(val2); | |
15539 | } | |
15540 | if (obj2) { | |
15541 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15542 | if (!SWIG_IsOK(ecode3)) { | |
15543 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
15544 | } | |
15545 | arg3 = static_cast< bool >(val3); | |
15546 | } | |
15547 | { | |
15548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15549 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
15550 | wxPyEndAllowThreads(__tstate); | |
15551 | if (PyErr_Occurred()) SWIG_fail; | |
15552 | } | |
15553 | { | |
15554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15555 | } | |
15556 | return resultobj; | |
15557 | fail: | |
15558 | return NULL; | |
15559 | } | |
15560 | ||
15561 | ||
15562 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15563 | PyObject *resultobj = 0; | |
15564 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15565 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15566 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15567 | bool result; | |
15568 | void *argp1 = 0 ; | |
15569 | int res1 = 0 ; | |
15570 | bool temp2 = false ; | |
15571 | PyObject * obj0 = 0 ; | |
15572 | PyObject * obj1 = 0 ; | |
15573 | char * kwnames[] = { | |
15574 | (char *) "self",(char *) "facename", NULL | |
15575 | }; | |
15576 | ||
15577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
15578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15579 | if (!SWIG_IsOK(res1)) { | |
15580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15581 | } | |
15582 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15583 | if (obj1) { | |
d14a1e28 | 15584 | { |
0085ce49 RD |
15585 | arg2 = wxString_in_helper(obj1); |
15586 | if (arg2 == NULL) SWIG_fail; | |
15587 | temp2 = true; | |
d14a1e28 | 15588 | } |
0085ce49 RD |
15589 | } |
15590 | { | |
15591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15592 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
15593 | wxPyEndAllowThreads(__tstate); | |
15594 | if (PyErr_Occurred()) SWIG_fail; | |
15595 | } | |
15596 | { | |
15597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15598 | } | |
15599 | { | |
15600 | if (temp2) | |
15601 | delete arg2; | |
15602 | } | |
15603 | return resultobj; | |
15604 | fail: | |
15605 | { | |
15606 | if (temp2) | |
15607 | delete arg2; | |
15608 | } | |
15609 | return NULL; | |
d14a1e28 RD |
15610 | } |
15611 | ||
15612 | ||
0085ce49 RD |
15613 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15614 | PyObject *resultobj = 0; | |
0085ce49 | 15615 | PyObject *result = 0 ; |
0085ce49 | 15616 | |
704eda0c | 15617 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
0085ce49 RD |
15618 | { |
15619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15620 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
0085ce49 RD |
15621 | wxPyEndAllowThreads(__tstate); |
15622 | if (PyErr_Occurred()) SWIG_fail; | |
15623 | } | |
15624 | resultobj = result; | |
15625 | return resultobj; | |
15626 | fail: | |
15627 | return NULL; | |
d14a1e28 RD |
15628 | } |
15629 | ||
15630 | ||
0085ce49 RD |
15631 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15632 | PyObject *resultobj = 0; | |
0085ce49 | 15633 | PyObject *result = 0 ; |
0085ce49 | 15634 | |
704eda0c | 15635 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
0085ce49 RD |
15636 | { |
15637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15638 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
0085ce49 RD |
15639 | wxPyEndAllowThreads(__tstate); |
15640 | if (PyErr_Occurred()) SWIG_fail; | |
15641 | } | |
15642 | resultobj = result; | |
15643 | return resultobj; | |
15644 | fail: | |
15645 | return NULL; | |
d14a1e28 RD |
15646 | } |
15647 | ||
15648 | ||
704eda0c RD |
15649 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15650 | PyObject *resultobj = 0; | |
15651 | wxString *arg1 = 0 ; | |
15652 | bool result; | |
15653 | bool temp1 = false ; | |
15654 | PyObject * obj0 = 0 ; | |
15655 | char * kwnames[] = { | |
15656 | (char *) "str", NULL | |
15657 | }; | |
15658 | ||
15659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
15660 | { | |
15661 | arg1 = wxString_in_helper(obj0); | |
15662 | if (arg1 == NULL) SWIG_fail; | |
15663 | temp1 = true; | |
15664 | } | |
15665 | { | |
15666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15667 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
15668 | wxPyEndAllowThreads(__tstate); | |
15669 | if (PyErr_Occurred()) SWIG_fail; | |
15670 | } | |
15671 | { | |
15672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15673 | } | |
15674 | { | |
15675 | if (temp1) | |
15676 | delete arg1; | |
15677 | } | |
15678 | return resultobj; | |
15679 | fail: | |
15680 | { | |
15681 | if (temp1) | |
15682 | delete arg1; | |
15683 | } | |
15684 | return NULL; | |
15685 | } | |
15686 | ||
15687 | ||
0085ce49 RD |
15688 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15689 | PyObject *obj; | |
15690 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15691 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
15692 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15693 | } |
15694 | ||
0085ce49 RD |
15695 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15696 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15697 | } |
15698 | ||
0085ce49 RD |
15699 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15700 | PyObject *resultobj = 0; | |
15701 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15702 | int arg2 ; | |
15703 | void *argp1 = 0 ; | |
15704 | int res1 = 0 ; | |
15705 | int val2 ; | |
15706 | int ecode2 = 0 ; | |
15707 | PyObject *swig_obj[2] ; | |
15708 | ||
15709 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
15710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15711 | if (!SWIG_IsOK(res1)) { | |
15712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15713 | } | |
15714 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15715 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
15716 | if (!SWIG_IsOK(ecode2)) { | |
15717 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
15718 | } | |
15719 | arg2 = static_cast< int >(val2); | |
15720 | if (arg1) (arg1)->Language = arg2; | |
15721 | ||
15722 | resultobj = SWIG_Py_Void(); | |
15723 | return resultobj; | |
15724 | fail: | |
15725 | return NULL; | |
d14a1e28 RD |
15726 | } |
15727 | ||
15728 | ||
0085ce49 RD |
15729 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15730 | PyObject *resultobj = 0; | |
15731 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15732 | int result; | |
15733 | void *argp1 = 0 ; | |
15734 | int res1 = 0 ; | |
15735 | PyObject *swig_obj[1] ; | |
15736 | ||
15737 | if (!args) SWIG_fail; | |
15738 | swig_obj[0] = args; | |
15739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15740 | if (!SWIG_IsOK(res1)) { | |
15741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15742 | } | |
15743 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15744 | result = (int) ((arg1)->Language); | |
15745 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15746 | return resultobj; | |
15747 | fail: | |
15748 | return NULL; | |
15749 | } | |
15750 | ||
15751 | ||
15752 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15753 | PyObject *resultobj = 0; | |
15754 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15755 | wxString *arg2 = (wxString *) 0 ; | |
15756 | void *argp1 = 0 ; | |
15757 | int res1 = 0 ; | |
15758 | bool temp2 = false ; | |
15759 | PyObject *swig_obj[2] ; | |
15760 | ||
15761 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
15762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15763 | if (!SWIG_IsOK(res1)) { | |
15764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15765 | } | |
15766 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15767 | { | |
15768 | arg2 = wxString_in_helper(swig_obj[1]); | |
15769 | if (arg2 == NULL) SWIG_fail; | |
15770 | temp2 = true; | |
15771 | } | |
15772 | if (arg1) (arg1)->CanonicalName = *arg2; | |
15773 | ||
15774 | resultobj = SWIG_Py_Void(); | |
15775 | { | |
15776 | if (temp2) | |
15777 | delete arg2; | |
15778 | } | |
15779 | return resultobj; | |
15780 | fail: | |
15781 | { | |
15782 | if (temp2) | |
15783 | delete arg2; | |
15784 | } | |
15785 | return NULL; | |
d14a1e28 RD |
15786 | } |
15787 | ||
15788 | ||
0085ce49 RD |
15789 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15790 | PyObject *resultobj = 0; | |
15791 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15792 | wxString *result = 0 ; | |
15793 | void *argp1 = 0 ; | |
15794 | int res1 = 0 ; | |
15795 | PyObject *swig_obj[1] ; | |
15796 | ||
15797 | if (!args) SWIG_fail; | |
15798 | swig_obj[0] = args; | |
15799 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15800 | if (!SWIG_IsOK(res1)) { | |
15801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15802 | } | |
15803 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15804 | result = (wxString *)& ((arg1)->CanonicalName); | |
15805 | { | |
093d3ff1 | 15806 | #if wxUSE_UNICODE |
0085ce49 | 15807 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
093d3ff1 | 15808 | #else |
0085ce49 | 15809 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
093d3ff1 | 15810 | #endif |
0085ce49 RD |
15811 | } |
15812 | return resultobj; | |
15813 | fail: | |
15814 | return NULL; | |
d14a1e28 RD |
15815 | } |
15816 | ||
15817 | ||
0085ce49 RD |
15818 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15819 | PyObject *resultobj = 0; | |
15820 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15821 | wxString *arg2 = (wxString *) 0 ; | |
15822 | void *argp1 = 0 ; | |
15823 | int res1 = 0 ; | |
15824 | bool temp2 = false ; | |
15825 | PyObject *swig_obj[2] ; | |
15826 | ||
15827 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
15828 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15829 | if (!SWIG_IsOK(res1)) { | |
15830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15831 | } | |
15832 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15833 | { | |
15834 | arg2 = wxString_in_helper(swig_obj[1]); | |
15835 | if (arg2 == NULL) SWIG_fail; | |
15836 | temp2 = true; | |
15837 | } | |
15838 | if (arg1) (arg1)->Description = *arg2; | |
15839 | ||
15840 | resultobj = SWIG_Py_Void(); | |
15841 | { | |
15842 | if (temp2) | |
15843 | delete arg2; | |
15844 | } | |
15845 | return resultobj; | |
15846 | fail: | |
15847 | { | |
15848 | if (temp2) | |
15849 | delete arg2; | |
15850 | } | |
15851 | return NULL; | |
d14a1e28 RD |
15852 | } |
15853 | ||
15854 | ||
0085ce49 RD |
15855 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15856 | PyObject *resultobj = 0; | |
15857 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15858 | wxString *result = 0 ; | |
15859 | void *argp1 = 0 ; | |
15860 | int res1 = 0 ; | |
15861 | PyObject *swig_obj[1] ; | |
15862 | ||
15863 | if (!args) SWIG_fail; | |
15864 | swig_obj[0] = args; | |
15865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15866 | if (!SWIG_IsOK(res1)) { | |
15867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15868 | } | |
15869 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15870 | result = (wxString *)& ((arg1)->Description); | |
15871 | { | |
d14a1e28 | 15872 | #if wxUSE_UNICODE |
0085ce49 | 15873 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 15874 | #else |
0085ce49 | 15875 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 15876 | #endif |
0085ce49 RD |
15877 | } |
15878 | return resultobj; | |
15879 | fail: | |
15880 | return NULL; | |
15881 | } | |
15882 | ||
15883 | ||
15884 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15885 | PyObject *obj; | |
15886 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15887 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
15888 | return SWIG_Py_Void(); | |
15889 | } | |
15890 | ||
15891 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15892 | PyObject *resultobj = 0; | |
15893 | int arg1 = (int) -1 ; | |
15894 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
15895 | wxLocale *result = 0 ; | |
15896 | int val1 ; | |
15897 | int ecode1 = 0 ; | |
15898 | int val2 ; | |
15899 | int ecode2 = 0 ; | |
15900 | PyObject * obj0 = 0 ; | |
15901 | PyObject * obj1 = 0 ; | |
15902 | char * kwnames[] = { | |
15903 | (char *) "language",(char *) "flags", NULL | |
15904 | }; | |
15905 | ||
15906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
15907 | if (obj0) { | |
15908 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15909 | if (!SWIG_IsOK(ecode1)) { | |
15910 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
15911 | } | |
15912 | arg1 = static_cast< int >(val1); | |
15913 | } | |
15914 | if (obj1) { | |
15915 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15916 | if (!SWIG_IsOK(ecode2)) { | |
15917 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
15918 | } | |
15919 | arg2 = static_cast< int >(val2); | |
15920 | } | |
15921 | { | |
15922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15923 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
15924 | wxPyEndAllowThreads(__tstate); | |
15925 | if (PyErr_Occurred()) SWIG_fail; | |
15926 | } | |
15927 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
15928 | return resultobj; | |
15929 | fail: | |
15930 | return NULL; | |
d14a1e28 RD |
15931 | } |
15932 | ||
15933 | ||
0085ce49 RD |
15934 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15935 | PyObject *resultobj = 0; | |
15936 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15937 | void *argp1 = 0 ; | |
15938 | int res1 = 0 ; | |
15939 | PyObject *swig_obj[1] ; | |
15940 | ||
15941 | if (!args) SWIG_fail; | |
15942 | swig_obj[0] = args; | |
15943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
15944 | if (!SWIG_IsOK(res1)) { | |
15945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15946 | } | |
15947 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15948 | { | |
15949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15950 | delete arg1; | |
d14a1e28 | 15951 | |
0085ce49 RD |
15952 | wxPyEndAllowThreads(__tstate); |
15953 | if (PyErr_Occurred()) SWIG_fail; | |
15954 | } | |
15955 | resultobj = SWIG_Py_Void(); | |
15956 | return resultobj; | |
15957 | fail: | |
15958 | return NULL; | |
15959 | } | |
15960 | ||
15961 | ||
15962 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15963 | PyObject *resultobj = 0; | |
15964 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15965 | wxString *arg2 = 0 ; | |
15966 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15967 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15968 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15969 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15970 | bool arg5 = (bool) true ; | |
15971 | bool arg6 = (bool) false ; | |
15972 | bool result; | |
15973 | void *argp1 = 0 ; | |
15974 | int res1 = 0 ; | |
15975 | bool temp2 = false ; | |
15976 | bool temp3 = false ; | |
15977 | bool temp4 = false ; | |
15978 | bool val5 ; | |
15979 | int ecode5 = 0 ; | |
15980 | bool val6 ; | |
15981 | int ecode6 = 0 ; | |
15982 | PyObject * obj0 = 0 ; | |
15983 | PyObject * obj1 = 0 ; | |
15984 | PyObject * obj2 = 0 ; | |
15985 | PyObject * obj3 = 0 ; | |
15986 | PyObject * obj4 = 0 ; | |
15987 | PyObject * obj5 = 0 ; | |
15988 | char * kwnames[] = { | |
15989 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
15990 | }; | |
15991 | ||
15992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15994 | if (!SWIG_IsOK(res1)) { | |
15995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15996 | } | |
15997 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15998 | { | |
15999 | arg2 = wxString_in_helper(obj1); | |
16000 | if (arg2 == NULL) SWIG_fail; | |
16001 | temp2 = true; | |
16002 | } | |
16003 | if (obj2) { | |
d14a1e28 | 16004 | { |
0085ce49 RD |
16005 | arg3 = wxString_in_helper(obj2); |
16006 | if (arg3 == NULL) SWIG_fail; | |
16007 | temp3 = true; | |
d14a1e28 | 16008 | } |
0085ce49 RD |
16009 | } |
16010 | if (obj3) { | |
093d3ff1 | 16011 | { |
0085ce49 RD |
16012 | arg4 = wxString_in_helper(obj3); |
16013 | if (arg4 == NULL) SWIG_fail; | |
16014 | temp4 = true; | |
093d3ff1 | 16015 | } |
0085ce49 RD |
16016 | } |
16017 | if (obj4) { | |
16018 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16019 | if (!SWIG_IsOK(ecode5)) { | |
16020 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
16021 | } | |
16022 | arg5 = static_cast< bool >(val5); | |
16023 | } | |
16024 | if (obj5) { | |
16025 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
16026 | if (!SWIG_IsOK(ecode6)) { | |
16027 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
16028 | } | |
16029 | arg6 = static_cast< bool >(val6); | |
16030 | } | |
16031 | { | |
16032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16033 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
16034 | wxPyEndAllowThreads(__tstate); | |
16035 | if (PyErr_Occurred()) SWIG_fail; | |
16036 | } | |
16037 | { | |
16038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16039 | } | |
16040 | { | |
16041 | if (temp2) | |
16042 | delete arg2; | |
16043 | } | |
16044 | { | |
16045 | if (temp3) | |
16046 | delete arg3; | |
16047 | } | |
16048 | { | |
16049 | if (temp4) | |
16050 | delete arg4; | |
16051 | } | |
16052 | return resultobj; | |
16053 | fail: | |
16054 | { | |
16055 | if (temp2) | |
16056 | delete arg2; | |
16057 | } | |
16058 | { | |
16059 | if (temp3) | |
16060 | delete arg3; | |
16061 | } | |
16062 | { | |
16063 | if (temp4) | |
16064 | delete arg4; | |
16065 | } | |
16066 | return NULL; | |
16067 | } | |
16068 | ||
16069 | ||
16070 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16071 | PyObject *resultobj = 0; | |
16072 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16073 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
16074 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16075 | bool result; | |
16076 | void *argp1 = 0 ; | |
16077 | int res1 = 0 ; | |
16078 | int val2 ; | |
16079 | int ecode2 = 0 ; | |
16080 | int val3 ; | |
16081 | int ecode3 = 0 ; | |
16082 | PyObject * obj0 = 0 ; | |
16083 | PyObject * obj1 = 0 ; | |
16084 | PyObject * obj2 = 0 ; | |
16085 | char * kwnames[] = { | |
16086 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
16087 | }; | |
16088 | ||
16089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16091 | if (!SWIG_IsOK(res1)) { | |
16092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16093 | } | |
16094 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16095 | if (obj1) { | |
16096 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16097 | if (!SWIG_IsOK(ecode2)) { | |
16098 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
16099 | } | |
16100 | arg2 = static_cast< int >(val2); | |
16101 | } | |
16102 | if (obj2) { | |
16103 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16104 | if (!SWIG_IsOK(ecode3)) { | |
16105 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
16106 | } | |
16107 | arg3 = static_cast< int >(val3); | |
16108 | } | |
16109 | { | |
16110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16111 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
16112 | wxPyEndAllowThreads(__tstate); | |
16113 | if (PyErr_Occurred()) SWIG_fail; | |
16114 | } | |
16115 | { | |
16116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16117 | } | |
16118 | return resultobj; | |
16119 | fail: | |
16120 | return NULL; | |
093d3ff1 RD |
16121 | } |
16122 | ||
16123 | ||
0085ce49 RD |
16124 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16125 | PyObject *resultobj = 0; | |
16126 | int result; | |
16127 | ||
16128 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
16129 | { | |
16130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16131 | result = (int)wxLocale::GetSystemLanguage(); | |
16132 | wxPyEndAllowThreads(__tstate); | |
16133 | if (PyErr_Occurred()) SWIG_fail; | |
16134 | } | |
16135 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16136 | return resultobj; | |
16137 | fail: | |
16138 | return NULL; | |
d14a1e28 RD |
16139 | } |
16140 | ||
16141 | ||
0085ce49 RD |
16142 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16143 | PyObject *resultobj = 0; | |
16144 | wxFontEncoding result; | |
16145 | ||
16146 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
16147 | { | |
16148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16149 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
16150 | wxPyEndAllowThreads(__tstate); | |
16151 | if (PyErr_Occurred()) SWIG_fail; | |
16152 | } | |
16153 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16154 | return resultobj; | |
16155 | fail: | |
16156 | return NULL; | |
d14a1e28 RD |
16157 | } |
16158 | ||
16159 | ||
0085ce49 RD |
16160 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16161 | PyObject *resultobj = 0; | |
16162 | wxString result; | |
16163 | ||
16164 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
16165 | { | |
16166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16167 | result = wxLocale::GetSystemEncodingName(); | |
16168 | wxPyEndAllowThreads(__tstate); | |
16169 | if (PyErr_Occurred()) SWIG_fail; | |
16170 | } | |
16171 | { | |
d14a1e28 | 16172 | #if wxUSE_UNICODE |
0085ce49 | 16173 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16174 | #else |
0085ce49 | 16175 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16176 | #endif |
0085ce49 RD |
16177 | } |
16178 | return resultobj; | |
16179 | fail: | |
16180 | return NULL; | |
d14a1e28 RD |
16181 | } |
16182 | ||
16183 | ||
0085ce49 RD |
16184 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16185 | PyObject *resultobj = 0; | |
16186 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16187 | bool result; | |
16188 | void *argp1 = 0 ; | |
16189 | int res1 = 0 ; | |
16190 | PyObject *swig_obj[1] ; | |
16191 | ||
16192 | if (!args) SWIG_fail; | |
16193 | swig_obj[0] = args; | |
16194 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16195 | if (!SWIG_IsOK(res1)) { | |
16196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16197 | } | |
16198 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16199 | { | |
16200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16201 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16202 | wxPyEndAllowThreads(__tstate); | |
16203 | if (PyErr_Occurred()) SWIG_fail; | |
16204 | } | |
16205 | { | |
16206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16207 | } | |
16208 | return resultobj; | |
16209 | fail: | |
16210 | return NULL; | |
093d3ff1 | 16211 | } |
0085ce49 RD |
16212 | |
16213 | ||
16214 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16215 | PyObject *resultobj = 0; | |
16216 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16217 | wxString result; | |
16218 | void *argp1 = 0 ; | |
16219 | int res1 = 0 ; | |
16220 | PyObject *swig_obj[1] ; | |
16221 | ||
16222 | if (!args) SWIG_fail; | |
16223 | swig_obj[0] = args; | |
16224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16225 | if (!SWIG_IsOK(res1)) { | |
16226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16227 | } | |
16228 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16229 | { | |
16230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16231 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16232 | wxPyEndAllowThreads(__tstate); | |
16233 | if (PyErr_Occurred()) SWIG_fail; | |
16234 | } | |
16235 | { | |
16236 | #if wxUSE_UNICODE | |
16237 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16238 | #else | |
16239 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16240 | #endif | |
16241 | } | |
16242 | return resultobj; | |
16243 | fail: | |
16244 | return NULL; | |
d14a1e28 RD |
16245 | } |
16246 | ||
16247 | ||
0085ce49 RD |
16248 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16249 | PyObject *resultobj = 0; | |
16250 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16251 | int result; | |
16252 | void *argp1 = 0 ; | |
16253 | int res1 = 0 ; | |
16254 | PyObject *swig_obj[1] ; | |
16255 | ||
16256 | if (!args) SWIG_fail; | |
16257 | swig_obj[0] = args; | |
16258 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16259 | if (!SWIG_IsOK(res1)) { | |
16260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16261 | } | |
16262 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16263 | { | |
16264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16265 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16266 | wxPyEndAllowThreads(__tstate); | |
16267 | if (PyErr_Occurred()) SWIG_fail; | |
16268 | } | |
16269 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16270 | return resultobj; | |
16271 | fail: | |
16272 | return NULL; | |
d14a1e28 RD |
16273 | } |
16274 | ||
16275 | ||
0085ce49 RD |
16276 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16277 | PyObject *resultobj = 0; | |
16278 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16279 | wxString result; | |
16280 | void *argp1 = 0 ; | |
16281 | int res1 = 0 ; | |
16282 | PyObject *swig_obj[1] ; | |
16283 | ||
16284 | if (!args) SWIG_fail; | |
16285 | swig_obj[0] = args; | |
16286 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16287 | if (!SWIG_IsOK(res1)) { | |
16288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16289 | } | |
16290 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16291 | { | |
16292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16293 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16294 | wxPyEndAllowThreads(__tstate); | |
16295 | if (PyErr_Occurred()) SWIG_fail; | |
16296 | } | |
16297 | { | |
16298 | #if wxUSE_UNICODE | |
16299 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16300 | #else | |
16301 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16302 | #endif | |
16303 | } | |
16304 | return resultobj; | |
16305 | fail: | |
16306 | return NULL; | |
d14a1e28 RD |
16307 | } |
16308 | ||
16309 | ||
0085ce49 RD |
16310 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16311 | PyObject *resultobj = 0; | |
16312 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16313 | wxString result; | |
16314 | void *argp1 = 0 ; | |
16315 | int res1 = 0 ; | |
16316 | PyObject *swig_obj[1] ; | |
16317 | ||
16318 | if (!args) SWIG_fail; | |
16319 | swig_obj[0] = args; | |
16320 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16321 | if (!SWIG_IsOK(res1)) { | |
16322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16323 | } | |
16324 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16325 | { | |
16326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16327 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16328 | wxPyEndAllowThreads(__tstate); | |
16329 | if (PyErr_Occurred()) SWIG_fail; | |
16330 | } | |
16331 | { | |
16332 | #if wxUSE_UNICODE | |
16333 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16334 | #else | |
16335 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16336 | #endif | |
16337 | } | |
16338 | return resultobj; | |
16339 | fail: | |
16340 | return NULL; | |
d14a1e28 RD |
16341 | } |
16342 | ||
16343 | ||
0085ce49 RD |
16344 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16345 | PyObject *resultobj = 0; | |
16346 | wxString *arg1 = 0 ; | |
16347 | bool temp1 = false ; | |
16348 | PyObject * obj0 = 0 ; | |
16349 | char * kwnames[] = { | |
16350 | (char *) "prefix", NULL | |
16351 | }; | |
16352 | ||
16353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
16354 | { | |
16355 | arg1 = wxString_in_helper(obj0); | |
16356 | if (arg1 == NULL) SWIG_fail; | |
16357 | temp1 = true; | |
16358 | } | |
16359 | { | |
16360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16361 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
16362 | wxPyEndAllowThreads(__tstate); | |
16363 | if (PyErr_Occurred()) SWIG_fail; | |
16364 | } | |
16365 | resultobj = SWIG_Py_Void(); | |
16366 | { | |
16367 | if (temp1) | |
16368 | delete arg1; | |
16369 | } | |
16370 | return resultobj; | |
16371 | fail: | |
16372 | { | |
16373 | if (temp1) | |
16374 | delete arg1; | |
16375 | } | |
16376 | return NULL; | |
16377 | } | |
16378 | ||
16379 | ||
16380 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16381 | PyObject *resultobj = 0; | |
16382 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16383 | wxString *arg2 = 0 ; | |
16384 | bool result; | |
16385 | void *argp1 = 0 ; | |
16386 | int res1 = 0 ; | |
16387 | bool temp2 = false ; | |
16388 | PyObject * obj0 = 0 ; | |
16389 | PyObject * obj1 = 0 ; | |
16390 | char * kwnames[] = { | |
16391 | (char *) "self",(char *) "szDomain", NULL | |
16392 | }; | |
16393 | ||
16394 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16395 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16396 | if (!SWIG_IsOK(res1)) { | |
16397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16398 | } | |
16399 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16400 | { | |
16401 | arg2 = wxString_in_helper(obj1); | |
16402 | if (arg2 == NULL) SWIG_fail; | |
16403 | temp2 = true; | |
16404 | } | |
16405 | { | |
16406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16407 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
16408 | wxPyEndAllowThreads(__tstate); | |
16409 | if (PyErr_Occurred()) SWIG_fail; | |
16410 | } | |
16411 | { | |
16412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16413 | } | |
16414 | { | |
16415 | if (temp2) | |
16416 | delete arg2; | |
16417 | } | |
16418 | return resultobj; | |
16419 | fail: | |
16420 | { | |
16421 | if (temp2) | |
16422 | delete arg2; | |
16423 | } | |
16424 | return NULL; | |
16425 | } | |
16426 | ||
16427 | ||
33d6fd3b RD |
16428 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16429 | PyObject *resultobj = 0; | |
16430 | int arg1 ; | |
16431 | bool result; | |
16432 | int val1 ; | |
16433 | int ecode1 = 0 ; | |
16434 | PyObject * obj0 = 0 ; | |
16435 | char * kwnames[] = { | |
16436 | (char *) "lang", NULL | |
16437 | }; | |
16438 | ||
16439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
16440 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16441 | if (!SWIG_IsOK(ecode1)) { | |
16442 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
16443 | } | |
16444 | arg1 = static_cast< int >(val1); | |
16445 | { | |
16446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16447 | result = (bool)wxLocale::IsAvailable(arg1); | |
16448 | wxPyEndAllowThreads(__tstate); | |
16449 | if (PyErr_Occurred()) SWIG_fail; | |
16450 | } | |
16451 | { | |
16452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16453 | } | |
16454 | return resultobj; | |
16455 | fail: | |
16456 | return NULL; | |
16457 | } | |
16458 | ||
16459 | ||
0085ce49 RD |
16460 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16461 | PyObject *resultobj = 0; | |
16462 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16463 | wxString *arg2 = 0 ; | |
16464 | bool result; | |
16465 | void *argp1 = 0 ; | |
16466 | int res1 = 0 ; | |
16467 | bool temp2 = false ; | |
16468 | PyObject * obj0 = 0 ; | |
16469 | PyObject * obj1 = 0 ; | |
16470 | char * kwnames[] = { | |
16471 | (char *) "self",(char *) "szDomain", NULL | |
16472 | }; | |
16473 | ||
16474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
16475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16476 | if (!SWIG_IsOK(res1)) { | |
16477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16478 | } | |
16479 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16480 | { | |
16481 | arg2 = wxString_in_helper(obj1); | |
16482 | if (arg2 == NULL) SWIG_fail; | |
16483 | temp2 = true; | |
16484 | } | |
16485 | { | |
16486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16487 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
16488 | wxPyEndAllowThreads(__tstate); | |
16489 | if (PyErr_Occurred()) SWIG_fail; | |
16490 | } | |
16491 | { | |
16492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16493 | } | |
16494 | { | |
16495 | if (temp2) | |
16496 | delete arg2; | |
16497 | } | |
16498 | return resultobj; | |
16499 | fail: | |
16500 | { | |
16501 | if (temp2) | |
16502 | delete arg2; | |
16503 | } | |
16504 | return NULL; | |
d14a1e28 RD |
16505 | } |
16506 | ||
16507 | ||
0085ce49 RD |
16508 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16509 | PyObject *resultobj = 0; | |
16510 | int arg1 ; | |
16511 | wxLanguageInfo *result = 0 ; | |
16512 | int val1 ; | |
16513 | int ecode1 = 0 ; | |
16514 | PyObject * obj0 = 0 ; | |
16515 | char * kwnames[] = { | |
16516 | (char *) "lang", NULL | |
16517 | }; | |
16518 | ||
16519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16520 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16521 | if (!SWIG_IsOK(ecode1)) { | |
16522 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
16523 | } | |
16524 | arg1 = static_cast< int >(val1); | |
16525 | { | |
16526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16527 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
16528 | wxPyEndAllowThreads(__tstate); | |
16529 | if (PyErr_Occurred()) SWIG_fail; | |
16530 | } | |
16531 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16532 | return resultobj; | |
16533 | fail: | |
16534 | return NULL; | |
16535 | } | |
16536 | ||
16537 | ||
16538 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16539 | PyObject *resultobj = 0; | |
16540 | int arg1 ; | |
16541 | wxString result; | |
16542 | int val1 ; | |
16543 | int ecode1 = 0 ; | |
16544 | PyObject * obj0 = 0 ; | |
16545 | char * kwnames[] = { | |
16546 | (char *) "lang", NULL | |
16547 | }; | |
16548 | ||
16549 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
16550 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16551 | if (!SWIG_IsOK(ecode1)) { | |
16552 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
16553 | } | |
16554 | arg1 = static_cast< int >(val1); | |
16555 | { | |
16556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16557 | result = wxLocale::GetLanguageName(arg1); | |
16558 | wxPyEndAllowThreads(__tstate); | |
16559 | if (PyErr_Occurred()) SWIG_fail; | |
16560 | } | |
16561 | { | |
16562 | #if wxUSE_UNICODE | |
16563 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16564 | #else | |
16565 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16566 | #endif | |
16567 | } | |
16568 | return resultobj; | |
16569 | fail: | |
16570 | return NULL; | |
d14a1e28 RD |
16571 | } |
16572 | ||
16573 | ||
0085ce49 RD |
16574 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16575 | PyObject *resultobj = 0; | |
16576 | wxString *arg1 = 0 ; | |
16577 | wxLanguageInfo *result = 0 ; | |
16578 | bool temp1 = false ; | |
16579 | PyObject * obj0 = 0 ; | |
16580 | char * kwnames[] = { | |
16581 | (char *) "locale", NULL | |
16582 | }; | |
16583 | ||
16584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16585 | { | |
16586 | arg1 = wxString_in_helper(obj0); | |
16587 | if (arg1 == NULL) SWIG_fail; | |
16588 | temp1 = true; | |
16589 | } | |
16590 | { | |
16591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
16592 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
16593 | wxPyEndAllowThreads(__tstate); | |
16594 | if (PyErr_Occurred()) SWIG_fail; | |
16595 | } | |
16596 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16597 | { | |
16598 | if (temp1) | |
16599 | delete arg1; | |
16600 | } | |
16601 | return resultobj; | |
16602 | fail: | |
16603 | { | |
16604 | if (temp1) | |
16605 | delete arg1; | |
16606 | } | |
16607 | return NULL; | |
16608 | } | |
16609 | ||
16610 | ||
16611 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16612 | PyObject *resultobj = 0; | |
16613 | wxLanguageInfo *arg1 = 0 ; | |
16614 | void *argp1 = 0 ; | |
16615 | int res1 = 0 ; | |
16616 | PyObject * obj0 = 0 ; | |
16617 | char * kwnames[] = { | |
16618 | (char *) "info", NULL | |
16619 | }; | |
16620 | ||
16621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
16622 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
16623 | if (!SWIG_IsOK(res1)) { | |
16624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16625 | } | |
16626 | if (!argp1) { | |
16627 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16628 | } | |
16629 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16630 | { | |
16631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16632 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
16633 | wxPyEndAllowThreads(__tstate); | |
16634 | if (PyErr_Occurred()) SWIG_fail; | |
16635 | } | |
16636 | resultobj = SWIG_Py_Void(); | |
16637 | return resultobj; | |
16638 | fail: | |
16639 | return NULL; | |
16640 | } | |
16641 | ||
16642 | ||
16643 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16644 | PyObject *resultobj = 0; | |
16645 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16646 | wxString *arg2 = 0 ; | |
16647 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16648 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16649 | wxString result; | |
16650 | void *argp1 = 0 ; | |
16651 | int res1 = 0 ; | |
16652 | bool temp2 = false ; | |
16653 | bool temp3 = false ; | |
16654 | PyObject * obj0 = 0 ; | |
16655 | PyObject * obj1 = 0 ; | |
16656 | PyObject * obj2 = 0 ; | |
16657 | char * kwnames[] = { | |
16658 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16659 | }; | |
16660 | ||
16661 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16662 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16663 | if (!SWIG_IsOK(res1)) { | |
16664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16665 | } | |
16666 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16667 | { | |
16668 | arg2 = wxString_in_helper(obj1); | |
16669 | if (arg2 == NULL) SWIG_fail; | |
16670 | temp2 = true; | |
16671 | } | |
16672 | if (obj2) { | |
16673 | { | |
16674 | arg3 = wxString_in_helper(obj2); | |
16675 | if (arg3 == NULL) SWIG_fail; | |
16676 | temp3 = true; | |
16677 | } | |
16678 | } | |
16679 | { | |
16680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16681 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
16682 | wxPyEndAllowThreads(__tstate); | |
16683 | if (PyErr_Occurred()) SWIG_fail; | |
16684 | } | |
16685 | { | |
16686 | #if wxUSE_UNICODE | |
16687 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16688 | #else | |
16689 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16690 | #endif | |
16691 | } | |
16692 | { | |
16693 | if (temp2) | |
16694 | delete arg2; | |
16695 | } | |
16696 | { | |
16697 | if (temp3) | |
16698 | delete arg3; | |
16699 | } | |
16700 | return resultobj; | |
16701 | fail: | |
16702 | { | |
16703 | if (temp2) | |
16704 | delete arg2; | |
16705 | } | |
16706 | { | |
16707 | if (temp3) | |
16708 | delete arg3; | |
16709 | } | |
16710 | return NULL; | |
16711 | } | |
16712 | ||
16713 | ||
16714 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16715 | PyObject *resultobj = 0; | |
16716 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16717 | wxString *result = 0 ; | |
16718 | void *argp1 = 0 ; | |
16719 | int res1 = 0 ; | |
16720 | PyObject *swig_obj[1] ; | |
16721 | ||
16722 | if (!args) SWIG_fail; | |
16723 | swig_obj[0] = args; | |
16724 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16725 | if (!SWIG_IsOK(res1)) { | |
16726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16727 | } | |
16728 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16729 | { | |
16730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16731 | { | |
16732 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
16733 | result = (wxString *) &_result_ref; | |
16734 | } | |
16735 | wxPyEndAllowThreads(__tstate); | |
16736 | if (PyErr_Occurred()) SWIG_fail; | |
16737 | } | |
16738 | { | |
16739 | #if wxUSE_UNICODE | |
16740 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16741 | #else | |
16742 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16743 | #endif | |
16744 | } | |
16745 | return resultobj; | |
16746 | fail: | |
16747 | return NULL; | |
16748 | } | |
16749 | ||
16750 | ||
16751 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16752 | PyObject *obj; | |
16753 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16754 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
16755 | return SWIG_Py_Void(); | |
16756 | } | |
16757 | ||
16758 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16759 | return SWIG_Python_InitShadowInstance(args); | |
16760 | } | |
16761 | ||
16762 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16763 | PyObject *resultobj = 0; | |
16764 | int arg1 = (int) -1 ; | |
16765 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16766 | wxPyLocale *result = 0 ; | |
16767 | int val1 ; | |
16768 | int ecode1 = 0 ; | |
16769 | int val2 ; | |
16770 | int ecode2 = 0 ; | |
16771 | PyObject * obj0 = 0 ; | |
16772 | PyObject * obj1 = 0 ; | |
16773 | char * kwnames[] = { | |
16774 | (char *) "language",(char *) "flags", NULL | |
16775 | }; | |
16776 | ||
16777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16778 | if (obj0) { | |
16779 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16780 | if (!SWIG_IsOK(ecode1)) { | |
16781 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
16782 | } | |
16783 | arg1 = static_cast< int >(val1); | |
16784 | } | |
16785 | if (obj1) { | |
16786 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16787 | if (!SWIG_IsOK(ecode2)) { | |
16788 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
16789 | } | |
16790 | arg2 = static_cast< int >(val2); | |
16791 | } | |
16792 | { | |
16793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16794 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
16795 | wxPyEndAllowThreads(__tstate); | |
16796 | if (PyErr_Occurred()) SWIG_fail; | |
16797 | } | |
16798 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
16799 | return resultobj; | |
16800 | fail: | |
16801 | return NULL; | |
16802 | } | |
16803 | ||
16804 | ||
16805 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16806 | PyObject *resultobj = 0; | |
16807 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
16808 | void *argp1 = 0 ; | |
16809 | int res1 = 0 ; | |
16810 | PyObject *swig_obj[1] ; | |
16811 | ||
16812 | if (!args) SWIG_fail; | |
16813 | swig_obj[0] = args; | |
16814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
16815 | if (!SWIG_IsOK(res1)) { | |
16816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
16817 | } | |
16818 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16819 | { | |
16820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16821 | delete arg1; | |
16822 | ||
0085ce49 RD |
16823 | wxPyEndAllowThreads(__tstate); |
16824 | if (PyErr_Occurred()) SWIG_fail; | |
16825 | } | |
fc46b7f3 | 16826 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
16827 | return resultobj; |
16828 | fail: | |
0085ce49 | 16829 | return NULL; |
d14a1e28 RD |
16830 | } |
16831 | ||
16832 | ||
fc46b7f3 | 16833 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16834 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16835 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16836 | PyObject *arg2 = (PyObject *) 0 ; | |
16837 | PyObject *arg3 = (PyObject *) 0 ; | |
0085ce49 RD |
16838 | void *argp1 = 0 ; |
16839 | int res1 = 0 ; | |
16840 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
16841 | PyObject * obj1 = 0 ; |
16842 | PyObject * obj2 = 0 ; | |
0085ce49 | 16843 | char * kwnames[] = { |
fc46b7f3 | 16844 | (char *) "self",(char *) "self",(char *) "_class", NULL |
0085ce49 RD |
16845 | }; |
16846 | ||
fc46b7f3 RD |
16847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16849 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
0085ce49 | 16851 | } |
fc46b7f3 RD |
16852 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16853 | arg2 = obj1; | |
16854 | arg3 = obj2; | |
0085ce49 RD |
16855 | { |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16857 | (arg1)->_setCallbackInfo(arg2,arg3); |
0085ce49 RD |
16858 | wxPyEndAllowThreads(__tstate); |
16859 | if (PyErr_Occurred()) SWIG_fail; | |
16860 | } | |
16861 | resultobj = SWIG_Py_Void(); | |
16862 | return resultobj; | |
16863 | fail: | |
16864 | return NULL; | |
16865 | } | |
16866 | ||
16867 | ||
fc46b7f3 | 16868 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16869 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16870 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16871 | wxChar *arg2 = (wxChar *) 0 ; | |
16872 | wxChar *arg3 = (wxChar *) NULL ; | |
16873 | wxChar *result = 0 ; | |
0085ce49 RD |
16874 | void *argp1 = 0 ; |
16875 | int res1 = 0 ; | |
fc46b7f3 RD |
16876 | void *argp2 = 0 ; |
16877 | int res2 = 0 ; | |
16878 | void *argp3 = 0 ; | |
16879 | int res3 = 0 ; | |
0085ce49 RD |
16880 | PyObject * obj0 = 0 ; |
16881 | PyObject * obj1 = 0 ; | |
16882 | PyObject * obj2 = 0 ; | |
16883 | char * kwnames[] = { | |
16884 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16885 | }; | |
16886 | ||
fc46b7f3 RD |
16887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16889 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
0085ce49 | 16891 | } |
fc46b7f3 RD |
16892 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16893 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16894 | if (!SWIG_IsOK(res2)) { | |
16895 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
0085ce49 | 16896 | } |
fc46b7f3 | 16897 | arg2 = reinterpret_cast< wxChar * >(argp2); |
0085ce49 | 16898 | if (obj2) { |
fc46b7f3 RD |
16899 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
16900 | if (!SWIG_IsOK(res3)) { | |
16901 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
b6294124 | 16902 | } |
fc46b7f3 | 16903 | arg3 = reinterpret_cast< wxChar * >(argp3); |
0085ce49 RD |
16904 | } |
16905 | { | |
16906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16907 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
0085ce49 RD |
16908 | wxPyEndAllowThreads(__tstate); |
16909 | if (PyErr_Occurred()) SWIG_fail; | |
16910 | } | |
fc46b7f3 | 16911 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16912 | return resultobj; |
16913 | fail: | |
0085ce49 | 16914 | return NULL; |
b6294124 RD |
16915 | } |
16916 | ||
16917 | ||
fc46b7f3 | 16918 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16919 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16920 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16921 | wxChar *arg2 = (wxChar *) 0 ; | |
16922 | wxChar *arg3 = (wxChar *) 0 ; | |
16923 | size_t arg4 ; | |
16924 | wxChar *arg5 = (wxChar *) NULL ; | |
16925 | wxChar *result = 0 ; | |
0085ce49 RD |
16926 | void *argp1 = 0 ; |
16927 | int res1 = 0 ; | |
fc46b7f3 RD |
16928 | void *argp2 = 0 ; |
16929 | int res2 = 0 ; | |
16930 | void *argp3 = 0 ; | |
16931 | int res3 = 0 ; | |
16932 | size_t val4 ; | |
16933 | int ecode4 = 0 ; | |
16934 | void *argp5 = 0 ; | |
16935 | int res5 = 0 ; | |
16936 | PyObject * obj0 = 0 ; | |
16937 | PyObject * obj1 = 0 ; | |
16938 | PyObject * obj2 = 0 ; | |
16939 | PyObject * obj3 = 0 ; | |
16940 | PyObject * obj4 = 0 ; | |
16941 | char * kwnames[] = { | |
16942 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
16943 | }; | |
0085ce49 | 16944 | |
fc46b7f3 RD |
16945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
16946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16947 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
16948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
16949 | } | |
16950 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16951 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16952 | if (!SWIG_IsOK(res2)) { | |
16953 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
16954 | } | |
16955 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
16956 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16957 | if (!SWIG_IsOK(res3)) { | |
16958 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
16959 | } | |
16960 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
16961 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
16962 | if (!SWIG_IsOK(ecode4)) { | |
16963 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
16964 | } | |
16965 | arg4 = static_cast< size_t >(val4); | |
16966 | if (obj4) { | |
16967 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16968 | if (!SWIG_IsOK(res5)) { | |
16969 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
16970 | } | |
16971 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
0085ce49 | 16972 | } |
0085ce49 RD |
16973 | { |
16974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16975 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
0085ce49 RD |
16976 | wxPyEndAllowThreads(__tstate); |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
fc46b7f3 | 16979 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16980 | return resultobj; |
16981 | fail: | |
16982 | return NULL; | |
d14a1e28 RD |
16983 | } |
16984 | ||
16985 | ||
fc46b7f3 | 16986 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16987 | PyObject *obj; |
16988 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 16989 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
0085ce49 | 16990 | return SWIG_Py_Void(); |
d14a1e28 RD |
16991 | } |
16992 | ||
fc46b7f3 | 16993 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16994 | return SWIG_Python_InitShadowInstance(args); |
16995 | } | |
d14a1e28 | 16996 | |
0085ce49 RD |
16997 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16998 | PyObject *resultobj = 0; | |
16999 | wxLocale *result = 0 ; | |
17000 | ||
17001 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
17002 | { | |
17003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17004 | result = (wxLocale *)wxGetLocale(); | |
17005 | wxPyEndAllowThreads(__tstate); | |
17006 | if (PyErr_Occurred()) SWIG_fail; | |
17007 | } | |
17008 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17009 | return resultobj; | |
17010 | fail: | |
17011 | return NULL; | |
d14a1e28 RD |
17012 | } |
17013 | ||
17014 | ||
0085ce49 RD |
17015 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17016 | PyObject *resultobj = 0; | |
17017 | wxString *arg1 = 0 ; | |
17018 | wxString result; | |
17019 | bool temp1 = false ; | |
17020 | ||
17021 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
17022 | { | |
17023 | arg1 = wxString_in_helper(swig_obj[0]); | |
17024 | if (arg1 == NULL) SWIG_fail; | |
17025 | temp1 = true; | |
17026 | } | |
17027 | { | |
17028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17029 | result = wxGetTranslation((wxString const &)*arg1); | |
17030 | wxPyEndAllowThreads(__tstate); | |
17031 | if (PyErr_Occurred()) SWIG_fail; | |
17032 | } | |
17033 | { | |
093d3ff1 | 17034 | #if wxUSE_UNICODE |
0085ce49 | 17035 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17036 | #else |
0085ce49 | 17037 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17038 | #endif |
0085ce49 RD |
17039 | } |
17040 | { | |
17041 | if (temp1) | |
17042 | delete arg1; | |
17043 | } | |
17044 | return resultobj; | |
17045 | fail: | |
17046 | { | |
17047 | if (temp1) | |
17048 | delete arg1; | |
17049 | } | |
17050 | return NULL; | |
b6294124 RD |
17051 | } |
17052 | ||
17053 | ||
0085ce49 | 17054 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
17055 | PyObject *resultobj = 0; |
17056 | wxString *arg1 = 0 ; | |
17057 | wxString *arg2 = 0 ; | |
17058 | wxString result; | |
17059 | bool temp1 = false ; | |
17060 | bool temp2 = false ; | |
17061 | ||
17062 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
17063 | { | |
17064 | arg1 = wxString_in_helper(swig_obj[0]); | |
17065 | if (arg1 == NULL) SWIG_fail; | |
17066 | temp1 = true; | |
17067 | } | |
17068 | { | |
17069 | arg2 = wxString_in_helper(swig_obj[1]); | |
17070 | if (arg2 == NULL) SWIG_fail; | |
17071 | temp2 = true; | |
17072 | } | |
17073 | { | |
17074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17075 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
17076 | wxPyEndAllowThreads(__tstate); | |
17077 | if (PyErr_Occurred()) SWIG_fail; | |
17078 | } | |
17079 | { | |
17080 | #if wxUSE_UNICODE | |
17081 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17082 | #else | |
17083 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17084 | #endif | |
17085 | } | |
17086 | { | |
17087 | if (temp1) | |
17088 | delete arg1; | |
17089 | } | |
17090 | { | |
17091 | if (temp2) | |
17092 | delete arg2; | |
17093 | } | |
17094 | return resultobj; | |
17095 | fail: | |
17096 | { | |
17097 | if (temp1) | |
17098 | delete arg1; | |
17099 | } | |
17100 | { | |
17101 | if (temp2) | |
17102 | delete arg2; | |
17103 | } | |
17104 | return NULL; | |
17105 | } | |
17106 | ||
17107 | ||
17108 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
0085ce49 RD |
17109 | PyObject *resultobj = 0; |
17110 | wxString *arg1 = 0 ; | |
17111 | wxString *arg2 = 0 ; | |
17112 | size_t arg3 ; | |
17113 | wxString result; | |
17114 | bool temp1 = false ; | |
17115 | bool temp2 = false ; | |
17116 | size_t val3 ; | |
17117 | int ecode3 = 0 ; | |
17118 | ||
17119 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
17120 | { | |
17121 | arg1 = wxString_in_helper(swig_obj[0]); | |
17122 | if (arg1 == NULL) SWIG_fail; | |
17123 | temp1 = true; | |
17124 | } | |
17125 | { | |
17126 | arg2 = wxString_in_helper(swig_obj[1]); | |
17127 | if (arg2 == NULL) SWIG_fail; | |
17128 | temp2 = true; | |
17129 | } | |
17130 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17131 | if (!SWIG_IsOK(ecode3)) { | |
17132 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17133 | } | |
17134 | arg3 = static_cast< size_t >(val3); | |
17135 | { | |
17136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17137 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
17138 | wxPyEndAllowThreads(__tstate); | |
17139 | if (PyErr_Occurred()) SWIG_fail; | |
17140 | } | |
17141 | { | |
17142 | #if wxUSE_UNICODE | |
17143 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17144 | #else | |
17145 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17146 | #endif | |
17147 | } | |
17148 | { | |
17149 | if (temp1) | |
17150 | delete arg1; | |
17151 | } | |
17152 | { | |
17153 | if (temp2) | |
17154 | delete arg2; | |
17155 | } | |
17156 | return resultobj; | |
17157 | fail: | |
17158 | { | |
17159 | if (temp1) | |
17160 | delete arg1; | |
17161 | } | |
17162 | { | |
17163 | if (temp2) | |
17164 | delete arg2; | |
17165 | } | |
17166 | return NULL; | |
d14a1e28 RD |
17167 | } |
17168 | ||
17169 | ||
fc46b7f3 RD |
17170 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17171 | PyObject *resultobj = 0; | |
17172 | wxString *arg1 = 0 ; | |
17173 | wxString *arg2 = 0 ; | |
17174 | size_t arg3 ; | |
17175 | wxString *arg4 = 0 ; | |
17176 | wxString result; | |
17177 | bool temp1 = false ; | |
17178 | bool temp2 = false ; | |
17179 | size_t val3 ; | |
17180 | int ecode3 = 0 ; | |
17181 | bool temp4 = false ; | |
17182 | ||
17183 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17184 | { | |
17185 | arg1 = wxString_in_helper(swig_obj[0]); | |
17186 | if (arg1 == NULL) SWIG_fail; | |
17187 | temp1 = true; | |
17188 | } | |
17189 | { | |
17190 | arg2 = wxString_in_helper(swig_obj[1]); | |
17191 | if (arg2 == NULL) SWIG_fail; | |
17192 | temp2 = true; | |
17193 | } | |
17194 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17195 | if (!SWIG_IsOK(ecode3)) { | |
17196 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17197 | } | |
17198 | arg3 = static_cast< size_t >(val3); | |
17199 | { | |
17200 | arg4 = wxString_in_helper(swig_obj[3]); | |
17201 | if (arg4 == NULL) SWIG_fail; | |
17202 | temp4 = true; | |
17203 | } | |
17204 | { | |
17205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17206 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17207 | wxPyEndAllowThreads(__tstate); | |
17208 | if (PyErr_Occurred()) SWIG_fail; | |
17209 | } | |
17210 | { | |
17211 | #if wxUSE_UNICODE | |
17212 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17213 | #else | |
17214 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17215 | #endif | |
17216 | } | |
17217 | { | |
17218 | if (temp1) | |
17219 | delete arg1; | |
17220 | } | |
17221 | { | |
17222 | if (temp2) | |
17223 | delete arg2; | |
17224 | } | |
17225 | { | |
17226 | if (temp4) | |
17227 | delete arg4; | |
17228 | } | |
17229 | return resultobj; | |
17230 | fail: | |
17231 | { | |
17232 | if (temp1) | |
17233 | delete arg1; | |
17234 | } | |
17235 | { | |
17236 | if (temp2) | |
17237 | delete arg2; | |
17238 | } | |
17239 | { | |
17240 | if (temp4) | |
17241 | delete arg4; | |
17242 | } | |
17243 | return NULL; | |
17244 | } | |
17245 | ||
17246 | ||
0085ce49 RD |
17247 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17248 | int argc; | |
fc46b7f3 | 17249 | PyObject *argv[5]; |
0085ce49 | 17250 | |
fc46b7f3 | 17251 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
0085ce49 RD |
17252 | --argc; |
17253 | if (argc == 1) { | |
17254 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17255 | } | |
fc46b7f3 | 17256 | if (argc == 2) { |
0085ce49 RD |
17257 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17258 | } | |
fc46b7f3 RD |
17259 | if (argc == 3) { |
17260 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17261 | } | |
17262 | if (argc == 4) { | |
17263 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17264 | } | |
0085ce49 RD |
17265 | |
17266 | fail: | |
17267 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17268 | return NULL; | |
d14a1e28 RD |
17269 | } |
17270 | ||
17271 | ||
0085ce49 RD |
17272 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17273 | PyObject *resultobj = 0; | |
17274 | wxEncodingConverter *result = 0 ; | |
17275 | ||
17276 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17277 | { | |
17278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17279 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17280 | wxPyEndAllowThreads(__tstate); | |
17281 | if (PyErr_Occurred()) SWIG_fail; | |
17282 | } | |
17283 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17284 | return resultobj; | |
17285 | fail: | |
17286 | return NULL; | |
d14a1e28 RD |
17287 | } |
17288 | ||
17289 | ||
0085ce49 RD |
17290 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17291 | PyObject *resultobj = 0; | |
17292 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17293 | void *argp1 = 0 ; | |
17294 | int res1 = 0 ; | |
17295 | PyObject *swig_obj[1] ; | |
17296 | ||
17297 | if (!args) SWIG_fail; | |
17298 | swig_obj[0] = args; | |
17299 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17300 | if (!SWIG_IsOK(res1)) { | |
17301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17302 | } | |
17303 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17304 | { | |
17305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17306 | delete arg1; | |
d14a1e28 | 17307 | |
0085ce49 RD |
17308 | wxPyEndAllowThreads(__tstate); |
17309 | if (PyErr_Occurred()) SWIG_fail; | |
17310 | } | |
17311 | resultobj = SWIG_Py_Void(); | |
17312 | return resultobj; | |
17313 | fail: | |
17314 | return NULL; | |
17315 | } | |
17316 | ||
17317 | ||
17318 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17319 | PyObject *resultobj = 0; | |
17320 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17321 | wxFontEncoding arg2 ; | |
17322 | wxFontEncoding arg3 ; | |
17323 | int arg4 = (int) wxCONVERT_STRICT ; | |
17324 | bool result; | |
17325 | void *argp1 = 0 ; | |
17326 | int res1 = 0 ; | |
17327 | int val2 ; | |
17328 | int ecode2 = 0 ; | |
17329 | int val3 ; | |
17330 | int ecode3 = 0 ; | |
17331 | int val4 ; | |
17332 | int ecode4 = 0 ; | |
17333 | PyObject * obj0 = 0 ; | |
17334 | PyObject * obj1 = 0 ; | |
17335 | PyObject * obj2 = 0 ; | |
17336 | PyObject * obj3 = 0 ; | |
17337 | char * kwnames[] = { | |
17338 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17339 | }; | |
17340 | ||
17341 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17342 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17343 | if (!SWIG_IsOK(res1)) { | |
17344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17345 | } | |
17346 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17347 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17348 | if (!SWIG_IsOK(ecode2)) { | |
17349 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17350 | } | |
17351 | arg2 = static_cast< wxFontEncoding >(val2); | |
17352 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17353 | if (!SWIG_IsOK(ecode3)) { | |
17354 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
17355 | } | |
17356 | arg3 = static_cast< wxFontEncoding >(val3); | |
17357 | if (obj3) { | |
17358 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17359 | if (!SWIG_IsOK(ecode4)) { | |
17360 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
17361 | } | |
17362 | arg4 = static_cast< int >(val4); | |
17363 | } | |
17364 | { | |
17365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17366 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
17367 | wxPyEndAllowThreads(__tstate); | |
17368 | if (PyErr_Occurred()) SWIG_fail; | |
17369 | } | |
17370 | { | |
17371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17372 | } | |
17373 | return resultobj; | |
17374 | fail: | |
17375 | return NULL; | |
17376 | } | |
17377 | ||
17378 | ||
17379 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17380 | PyObject *resultobj = 0; | |
17381 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17382 | wxString *arg2 = 0 ; | |
17383 | wxString result; | |
17384 | void *argp1 = 0 ; | |
17385 | int res1 = 0 ; | |
17386 | bool temp2 = false ; | |
17387 | PyObject * obj0 = 0 ; | |
17388 | PyObject * obj1 = 0 ; | |
17389 | char * kwnames[] = { | |
17390 | (char *) "self",(char *) "input", NULL | |
17391 | }; | |
17392 | ||
17393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17395 | if (!SWIG_IsOK(res1)) { | |
17396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17397 | } | |
17398 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17399 | { | |
17400 | arg2 = wxString_in_helper(obj1); | |
17401 | if (arg2 == NULL) SWIG_fail; | |
17402 | temp2 = true; | |
17403 | } | |
17404 | { | |
17405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17406 | result = (arg1)->Convert((wxString const &)*arg2); | |
17407 | wxPyEndAllowThreads(__tstate); | |
17408 | if (PyErr_Occurred()) SWIG_fail; | |
17409 | } | |
17410 | { | |
17411 | #if wxUSE_UNICODE | |
17412 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17413 | #else | |
17414 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17415 | #endif | |
17416 | } | |
17417 | { | |
17418 | if (temp2) | |
17419 | delete arg2; | |
17420 | } | |
17421 | return resultobj; | |
17422 | fail: | |
17423 | { | |
17424 | if (temp2) | |
17425 | delete arg2; | |
17426 | } | |
17427 | return NULL; | |
17428 | } | |
17429 | ||
17430 | ||
17431 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17432 | PyObject *resultobj = 0; | |
17433 | wxFontEncoding arg1 ; | |
17434 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
17435 | wxFontEncodingArray result; | |
17436 | int val1 ; | |
17437 | int ecode1 = 0 ; | |
17438 | int val2 ; | |
17439 | int ecode2 = 0 ; | |
17440 | PyObject * obj0 = 0 ; | |
17441 | PyObject * obj1 = 0 ; | |
17442 | char * kwnames[] = { | |
17443 | (char *) "enc",(char *) "platform", NULL | |
17444 | }; | |
17445 | ||
17446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
17447 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17448 | if (!SWIG_IsOK(ecode1)) { | |
17449 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17450 | } | |
17451 | arg1 = static_cast< wxFontEncoding >(val1); | |
17452 | if (obj1) { | |
17453 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17454 | if (!SWIG_IsOK(ecode2)) { | |
17455 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
17456 | } | |
17457 | arg2 = static_cast< int >(val2); | |
17458 | } | |
17459 | { | |
17460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17461 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
17462 | wxPyEndAllowThreads(__tstate); | |
17463 | if (PyErr_Occurred()) SWIG_fail; | |
17464 | } | |
17465 | { | |
17466 | resultobj = PyList_New(0); | |
17467 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17468 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17469 | PyList_Append(resultobj, number); | |
17470 | Py_DECREF(number); | |
093d3ff1 | 17471 | } |
0085ce49 RD |
17472 | } |
17473 | return resultobj; | |
17474 | fail: | |
17475 | return NULL; | |
d14a1e28 RD |
17476 | } |
17477 | ||
17478 | ||
0085ce49 RD |
17479 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17480 | PyObject *resultobj = 0; | |
17481 | wxFontEncoding arg1 ; | |
17482 | wxFontEncodingArray result; | |
17483 | int val1 ; | |
17484 | int ecode1 = 0 ; | |
17485 | PyObject * obj0 = 0 ; | |
17486 | char * kwnames[] = { | |
17487 | (char *) "enc", NULL | |
17488 | }; | |
17489 | ||
17490 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
17491 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17492 | if (!SWIG_IsOK(ecode1)) { | |
17493 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17494 | } | |
17495 | arg1 = static_cast< wxFontEncoding >(val1); | |
17496 | { | |
17497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17498 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
17499 | wxPyEndAllowThreads(__tstate); | |
17500 | if (PyErr_Occurred()) SWIG_fail; | |
17501 | } | |
17502 | { | |
17503 | resultobj = PyList_New(0); | |
17504 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17505 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17506 | PyList_Append(resultobj, number); | |
17507 | Py_DECREF(number); | |
093d3ff1 | 17508 | } |
0085ce49 RD |
17509 | } |
17510 | return resultobj; | |
17511 | fail: | |
17512 | return NULL; | |
17513 | } | |
17514 | ||
17515 | ||
17516 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17517 | PyObject *resultobj = 0; | |
17518 | wxFontEncoding arg1 ; | |
17519 | wxFontEncoding arg2 ; | |
17520 | bool result; | |
17521 | int val1 ; | |
17522 | int ecode1 = 0 ; | |
17523 | int val2 ; | |
17524 | int ecode2 = 0 ; | |
17525 | PyObject * obj0 = 0 ; | |
17526 | PyObject * obj1 = 0 ; | |
17527 | char * kwnames[] = { | |
17528 | (char *) "encIn",(char *) "encOut", NULL | |
17529 | }; | |
17530 | ||
17531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17532 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17533 | if (!SWIG_IsOK(ecode1)) { | |
17534 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17535 | } | |
17536 | arg1 = static_cast< wxFontEncoding >(val1); | |
17537 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17538 | if (!SWIG_IsOK(ecode2)) { | |
17539 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17540 | } | |
17541 | arg2 = static_cast< wxFontEncoding >(val2); | |
17542 | { | |
17543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17544 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
17545 | wxPyEndAllowThreads(__tstate); | |
17546 | if (PyErr_Occurred()) SWIG_fail; | |
17547 | } | |
17548 | { | |
17549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17550 | } | |
17551 | return resultobj; | |
17552 | fail: | |
17553 | return NULL; | |
d14a1e28 RD |
17554 | } |
17555 | ||
17556 | ||
0085ce49 RD |
17557 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17558 | PyObject *obj; | |
17559 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17560 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
17561 | return SWIG_Py_Void(); | |
d14a1e28 RD |
17562 | } |
17563 | ||
0085ce49 RD |
17564 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17565 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
17566 | } |
17567 | ||
0085ce49 RD |
17568 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17569 | PyObject *resultobj = 0; | |
17570 | wxDC *arg1 = (wxDC *) 0 ; | |
17571 | void *argp1 = 0 ; | |
17572 | int res1 = 0 ; | |
17573 | PyObject *swig_obj[1] ; | |
17574 | ||
17575 | if (!args) SWIG_fail; | |
17576 | swig_obj[0] = args; | |
17577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
17578 | if (!SWIG_IsOK(res1)) { | |
17579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17580 | } | |
17581 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17582 | { | |
17583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17584 | delete arg1; | |
d14a1e28 | 17585 | |
0085ce49 RD |
17586 | wxPyEndAllowThreads(__tstate); |
17587 | if (PyErr_Occurred()) SWIG_fail; | |
17588 | } | |
17589 | resultobj = SWIG_Py_Void(); | |
17590 | return resultobj; | |
17591 | fail: | |
17592 | return NULL; | |
17593 | } | |
17594 | ||
17595 | ||
17596 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17597 | PyObject *resultobj = 0; | |
17598 | wxDC *arg1 = (wxDC *) 0 ; | |
17599 | int arg2 ; | |
17600 | int arg3 ; | |
17601 | wxColour *arg4 = 0 ; | |
17602 | int arg5 = (int) wxFLOOD_SURFACE ; | |
17603 | bool result; | |
17604 | void *argp1 = 0 ; | |
17605 | int res1 = 0 ; | |
17606 | int val2 ; | |
17607 | int ecode2 = 0 ; | |
17608 | int val3 ; | |
17609 | int ecode3 = 0 ; | |
17610 | wxColour temp4 ; | |
17611 | int val5 ; | |
17612 | int ecode5 = 0 ; | |
17613 | PyObject * obj0 = 0 ; | |
17614 | PyObject * obj1 = 0 ; | |
17615 | PyObject * obj2 = 0 ; | |
17616 | PyObject * obj3 = 0 ; | |
17617 | PyObject * obj4 = 0 ; | |
17618 | char * kwnames[] = { | |
17619 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
17620 | }; | |
17621 | ||
17622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17624 | if (!SWIG_IsOK(res1)) { | |
17625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17626 | } | |
17627 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17628 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17629 | if (!SWIG_IsOK(ecode2)) { | |
17630 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
17631 | } | |
17632 | arg2 = static_cast< int >(val2); | |
17633 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17634 | if (!SWIG_IsOK(ecode3)) { | |
17635 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
17636 | } | |
17637 | arg3 = static_cast< int >(val3); | |
17638 | { | |
17639 | arg4 = &temp4; | |
17640 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17641 | } | |
17642 | if (obj4) { | |
17643 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17644 | if (!SWIG_IsOK(ecode5)) { | |
17645 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
17646 | } | |
17647 | arg5 = static_cast< int >(val5); | |
17648 | } | |
17649 | { | |
17650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17651 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
17652 | wxPyEndAllowThreads(__tstate); | |
17653 | if (PyErr_Occurred()) SWIG_fail; | |
17654 | } | |
17655 | { | |
17656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17657 | } | |
17658 | return resultobj; | |
17659 | fail: | |
17660 | return NULL; | |
17661 | } | |
17662 | ||
17663 | ||
17664 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17665 | PyObject *resultobj = 0; | |
17666 | wxDC *arg1 = (wxDC *) 0 ; | |
17667 | wxPoint *arg2 = 0 ; | |
17668 | wxColour *arg3 = 0 ; | |
17669 | int arg4 = (int) wxFLOOD_SURFACE ; | |
17670 | bool result; | |
17671 | void *argp1 = 0 ; | |
17672 | int res1 = 0 ; | |
17673 | wxPoint temp2 ; | |
17674 | wxColour temp3 ; | |
17675 | int val4 ; | |
17676 | int ecode4 = 0 ; | |
17677 | PyObject * obj0 = 0 ; | |
17678 | PyObject * obj1 = 0 ; | |
17679 | PyObject * obj2 = 0 ; | |
17680 | PyObject * obj3 = 0 ; | |
17681 | char * kwnames[] = { | |
17682 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
17683 | }; | |
17684 | ||
17685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17687 | if (!SWIG_IsOK(res1)) { | |
17688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17689 | } | |
17690 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17691 | { | |
17692 | arg2 = &temp2; | |
17693 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17694 | } | |
17695 | { | |
17696 | arg3 = &temp3; | |
17697 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17698 | } | |
17699 | if (obj3) { | |
17700 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17701 | if (!SWIG_IsOK(ecode4)) { | |
17702 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
17703 | } | |
17704 | arg4 = static_cast< int >(val4); | |
17705 | } | |
17706 | { | |
17707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17708 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
17709 | wxPyEndAllowThreads(__tstate); | |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
17711 | } | |
17712 | { | |
17713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17714 | } | |
17715 | return resultobj; | |
17716 | fail: | |
17717 | return NULL; | |
17718 | } | |
17719 | ||
17720 | ||
17721 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17722 | PyObject *resultobj = 0; | |
17723 | wxDC *arg1 = (wxDC *) 0 ; | |
17724 | wxRect *arg2 = 0 ; | |
17725 | wxColour *arg3 = 0 ; | |
17726 | wxColour *arg4 = 0 ; | |
17727 | wxPoint *arg5 = 0 ; | |
17728 | void *argp1 = 0 ; | |
17729 | int res1 = 0 ; | |
17730 | wxRect temp2 ; | |
17731 | wxColour temp3 ; | |
17732 | wxColour temp4 ; | |
17733 | wxPoint temp5 ; | |
17734 | PyObject * obj0 = 0 ; | |
17735 | PyObject * obj1 = 0 ; | |
17736 | PyObject * obj2 = 0 ; | |
17737 | PyObject * obj3 = 0 ; | |
17738 | PyObject * obj4 = 0 ; | |
17739 | char * kwnames[] = { | |
17740 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
17741 | }; | |
17742 | ||
17743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17745 | if (!SWIG_IsOK(res1)) { | |
17746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17747 | } | |
17748 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17749 | { | |
17750 | arg2 = &temp2; | |
17751 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17752 | } | |
17753 | { | |
17754 | arg3 = &temp3; | |
17755 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17756 | } | |
17757 | { | |
17758 | arg4 = &temp4; | |
17759 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17760 | } | |
17761 | { | |
17762 | arg5 = &temp5; | |
17763 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
17764 | } | |
17765 | { | |
17766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17767 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
17768 | wxPyEndAllowThreads(__tstate); | |
17769 | if (PyErr_Occurred()) SWIG_fail; | |
17770 | } | |
17771 | resultobj = SWIG_Py_Void(); | |
17772 | return resultobj; | |
17773 | fail: | |
17774 | return NULL; | |
17775 | } | |
17776 | ||
17777 | ||
17778 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17779 | PyObject *resultobj = 0; | |
17780 | wxDC *arg1 = (wxDC *) 0 ; | |
17781 | wxRect *arg2 = 0 ; | |
17782 | wxColour *arg3 = 0 ; | |
17783 | wxColour *arg4 = 0 ; | |
17784 | wxDirection arg5 = (wxDirection) wxEAST ; | |
17785 | void *argp1 = 0 ; | |
17786 | int res1 = 0 ; | |
17787 | wxRect temp2 ; | |
17788 | wxColour temp3 ; | |
17789 | wxColour temp4 ; | |
17790 | int val5 ; | |
17791 | int ecode5 = 0 ; | |
17792 | PyObject * obj0 = 0 ; | |
17793 | PyObject * obj1 = 0 ; | |
17794 | PyObject * obj2 = 0 ; | |
17795 | PyObject * obj3 = 0 ; | |
17796 | PyObject * obj4 = 0 ; | |
17797 | char * kwnames[] = { | |
17798 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
17799 | }; | |
17800 | ||
17801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17803 | if (!SWIG_IsOK(res1)) { | |
17804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17805 | } | |
17806 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17807 | { | |
17808 | arg2 = &temp2; | |
17809 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17810 | } | |
17811 | { | |
17812 | arg3 = &temp3; | |
17813 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17814 | } | |
17815 | { | |
17816 | arg4 = &temp4; | |
17817 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17818 | } | |
17819 | if (obj4) { | |
17820 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17821 | if (!SWIG_IsOK(ecode5)) { | |
17822 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
17823 | } | |
17824 | arg5 = static_cast< wxDirection >(val5); | |
17825 | } | |
17826 | { | |
17827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17828 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
17829 | wxPyEndAllowThreads(__tstate); | |
17830 | if (PyErr_Occurred()) SWIG_fail; | |
17831 | } | |
17832 | resultobj = SWIG_Py_Void(); | |
17833 | return resultobj; | |
17834 | fail: | |
17835 | return NULL; | |
17836 | } | |
17837 | ||
17838 | ||
17839 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17840 | PyObject *resultobj = 0; | |
17841 | wxDC *arg1 = (wxDC *) 0 ; | |
17842 | int arg2 ; | |
17843 | int arg3 ; | |
17844 | wxColour result; | |
17845 | void *argp1 = 0 ; | |
17846 | int res1 = 0 ; | |
17847 | int val2 ; | |
17848 | int ecode2 = 0 ; | |
17849 | int val3 ; | |
17850 | int ecode3 = 0 ; | |
17851 | PyObject * obj0 = 0 ; | |
17852 | PyObject * obj1 = 0 ; | |
17853 | PyObject * obj2 = 0 ; | |
17854 | char * kwnames[] = { | |
17855 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17856 | }; | |
17857 | ||
17858 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17859 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17860 | if (!SWIG_IsOK(res1)) { | |
17861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17862 | } | |
17863 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17864 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17865 | if (!SWIG_IsOK(ecode2)) { | |
17866 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
17867 | } | |
17868 | arg2 = static_cast< int >(val2); | |
17869 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17870 | if (!SWIG_IsOK(ecode3)) { | |
17871 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
17872 | } | |
17873 | arg3 = static_cast< int >(val3); | |
17874 | { | |
17875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17876 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
17877 | wxPyEndAllowThreads(__tstate); | |
17878 | if (PyErr_Occurred()) SWIG_fail; | |
17879 | } | |
17880 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17881 | return resultobj; | |
17882 | fail: | |
17883 | return NULL; | |
17884 | } | |
17885 | ||
17886 | ||
17887 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17888 | PyObject *resultobj = 0; | |
17889 | wxDC *arg1 = (wxDC *) 0 ; | |
17890 | wxPoint *arg2 = 0 ; | |
17891 | wxColour result; | |
17892 | void *argp1 = 0 ; | |
17893 | int res1 = 0 ; | |
17894 | wxPoint temp2 ; | |
17895 | PyObject * obj0 = 0 ; | |
17896 | PyObject * obj1 = 0 ; | |
17897 | char * kwnames[] = { | |
17898 | (char *) "self",(char *) "pt", NULL | |
17899 | }; | |
17900 | ||
17901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
17902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17903 | if (!SWIG_IsOK(res1)) { | |
17904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17905 | } | |
17906 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17907 | { | |
17908 | arg2 = &temp2; | |
17909 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17910 | } | |
17911 | { | |
17912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17913 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
17914 | wxPyEndAllowThreads(__tstate); | |
17915 | if (PyErr_Occurred()) SWIG_fail; | |
17916 | } | |
17917 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17918 | return resultobj; | |
17919 | fail: | |
17920 | return NULL; | |
17921 | } | |
17922 | ||
17923 | ||
17924 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17925 | PyObject *resultobj = 0; | |
17926 | wxDC *arg1 = (wxDC *) 0 ; | |
17927 | int arg2 ; | |
17928 | int arg3 ; | |
17929 | int arg4 ; | |
17930 | int arg5 ; | |
17931 | void *argp1 = 0 ; | |
17932 | int res1 = 0 ; | |
17933 | int val2 ; | |
17934 | int ecode2 = 0 ; | |
17935 | int val3 ; | |
17936 | int ecode3 = 0 ; | |
17937 | int val4 ; | |
17938 | int ecode4 = 0 ; | |
17939 | int val5 ; | |
17940 | int ecode5 = 0 ; | |
17941 | PyObject * obj0 = 0 ; | |
17942 | PyObject * obj1 = 0 ; | |
17943 | PyObject * obj2 = 0 ; | |
17944 | PyObject * obj3 = 0 ; | |
17945 | PyObject * obj4 = 0 ; | |
17946 | char * kwnames[] = { | |
17947 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
17948 | }; | |
17949 | ||
17950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17952 | if (!SWIG_IsOK(res1)) { | |
17953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17954 | } | |
17955 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17956 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17957 | if (!SWIG_IsOK(ecode2)) { | |
17958 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
17959 | } | |
17960 | arg2 = static_cast< int >(val2); | |
17961 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17962 | if (!SWIG_IsOK(ecode3)) { | |
17963 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
17964 | } | |
17965 | arg3 = static_cast< int >(val3); | |
17966 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17967 | if (!SWIG_IsOK(ecode4)) { | |
17968 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
17969 | } | |
17970 | arg4 = static_cast< int >(val4); | |
17971 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17972 | if (!SWIG_IsOK(ecode5)) { | |
17973 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
17974 | } | |
17975 | arg5 = static_cast< int >(val5); | |
17976 | { | |
17977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17978 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
17979 | wxPyEndAllowThreads(__tstate); | |
17980 | if (PyErr_Occurred()) SWIG_fail; | |
17981 | } | |
17982 | resultobj = SWIG_Py_Void(); | |
17983 | return resultobj; | |
17984 | fail: | |
17985 | return NULL; | |
17986 | } | |
17987 | ||
17988 | ||
17989 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17990 | PyObject *resultobj = 0; | |
17991 | wxDC *arg1 = (wxDC *) 0 ; | |
17992 | wxPoint *arg2 = 0 ; | |
17993 | wxPoint *arg3 = 0 ; | |
17994 | void *argp1 = 0 ; | |
17995 | int res1 = 0 ; | |
17996 | wxPoint temp2 ; | |
17997 | wxPoint temp3 ; | |
17998 | PyObject * obj0 = 0 ; | |
17999 | PyObject * obj1 = 0 ; | |
18000 | PyObject * obj2 = 0 ; | |
18001 | char * kwnames[] = { | |
18002 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
18003 | }; | |
18004 | ||
18005 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18006 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18007 | if (!SWIG_IsOK(res1)) { | |
18008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18009 | } | |
18010 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18011 | { | |
18012 | arg2 = &temp2; | |
18013 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18014 | } | |
18015 | { | |
18016 | arg3 = &temp3; | |
18017 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18018 | } | |
18019 | { | |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
18022 | wxPyEndAllowThreads(__tstate); | |
18023 | if (PyErr_Occurred()) SWIG_fail; | |
18024 | } | |
18025 | resultobj = SWIG_Py_Void(); | |
18026 | return resultobj; | |
18027 | fail: | |
18028 | return NULL; | |
18029 | } | |
18030 | ||
18031 | ||
18032 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18033 | PyObject *resultobj = 0; | |
18034 | wxDC *arg1 = (wxDC *) 0 ; | |
18035 | int arg2 ; | |
18036 | int arg3 ; | |
18037 | void *argp1 = 0 ; | |
18038 | int res1 = 0 ; | |
18039 | int val2 ; | |
18040 | int ecode2 = 0 ; | |
18041 | int val3 ; | |
18042 | int ecode3 = 0 ; | |
18043 | PyObject * obj0 = 0 ; | |
18044 | PyObject * obj1 = 0 ; | |
18045 | PyObject * obj2 = 0 ; | |
18046 | char * kwnames[] = { | |
18047 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18048 | }; | |
18049 | ||
18050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18052 | if (!SWIG_IsOK(res1)) { | |
18053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18054 | } | |
18055 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18056 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18057 | if (!SWIG_IsOK(ecode2)) { | |
18058 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
18059 | } | |
18060 | arg2 = static_cast< int >(val2); | |
18061 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18062 | if (!SWIG_IsOK(ecode3)) { | |
18063 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
18064 | } | |
18065 | arg3 = static_cast< int >(val3); | |
18066 | { | |
18067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18068 | (arg1)->CrossHair(arg2,arg3); | |
18069 | wxPyEndAllowThreads(__tstate); | |
18070 | if (PyErr_Occurred()) SWIG_fail; | |
18071 | } | |
18072 | resultobj = SWIG_Py_Void(); | |
18073 | return resultobj; | |
18074 | fail: | |
18075 | return NULL; | |
18076 | } | |
18077 | ||
18078 | ||
18079 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18080 | PyObject *resultobj = 0; | |
18081 | wxDC *arg1 = (wxDC *) 0 ; | |
18082 | wxPoint *arg2 = 0 ; | |
18083 | void *argp1 = 0 ; | |
18084 | int res1 = 0 ; | |
18085 | wxPoint temp2 ; | |
18086 | PyObject * obj0 = 0 ; | |
18087 | PyObject * obj1 = 0 ; | |
18088 | char * kwnames[] = { | |
18089 | (char *) "self",(char *) "pt", NULL | |
18090 | }; | |
18091 | ||
18092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18094 | if (!SWIG_IsOK(res1)) { | |
18095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18096 | } | |
18097 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18098 | { | |
18099 | arg2 = &temp2; | |
18100 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18101 | } | |
18102 | { | |
18103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18104 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
18105 | wxPyEndAllowThreads(__tstate); | |
18106 | if (PyErr_Occurred()) SWIG_fail; | |
18107 | } | |
18108 | resultobj = SWIG_Py_Void(); | |
18109 | return resultobj; | |
18110 | fail: | |
18111 | return NULL; | |
18112 | } | |
18113 | ||
18114 | ||
18115 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18116 | PyObject *resultobj = 0; | |
18117 | wxDC *arg1 = (wxDC *) 0 ; | |
18118 | int arg2 ; | |
18119 | int arg3 ; | |
18120 | int arg4 ; | |
18121 | int arg5 ; | |
18122 | int arg6 ; | |
18123 | int arg7 ; | |
18124 | void *argp1 = 0 ; | |
18125 | int res1 = 0 ; | |
18126 | int val2 ; | |
18127 | int ecode2 = 0 ; | |
18128 | int val3 ; | |
18129 | int ecode3 = 0 ; | |
18130 | int val4 ; | |
18131 | int ecode4 = 0 ; | |
18132 | int val5 ; | |
18133 | int ecode5 = 0 ; | |
18134 | int val6 ; | |
18135 | int ecode6 = 0 ; | |
18136 | int val7 ; | |
18137 | int ecode7 = 0 ; | |
18138 | PyObject * obj0 = 0 ; | |
18139 | PyObject * obj1 = 0 ; | |
18140 | PyObject * obj2 = 0 ; | |
18141 | PyObject * obj3 = 0 ; | |
18142 | PyObject * obj4 = 0 ; | |
18143 | PyObject * obj5 = 0 ; | |
18144 | PyObject * obj6 = 0 ; | |
18145 | char * kwnames[] = { | |
18146 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
18147 | }; | |
18148 | ||
18149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18151 | if (!SWIG_IsOK(res1)) { | |
18152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18153 | } | |
18154 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18155 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18156 | if (!SWIG_IsOK(ecode2)) { | |
18157 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
18158 | } | |
18159 | arg2 = static_cast< int >(val2); | |
18160 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18161 | if (!SWIG_IsOK(ecode3)) { | |
18162 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
18163 | } | |
18164 | arg3 = static_cast< int >(val3); | |
18165 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18166 | if (!SWIG_IsOK(ecode4)) { | |
18167 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
18168 | } | |
18169 | arg4 = static_cast< int >(val4); | |
18170 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18171 | if (!SWIG_IsOK(ecode5)) { | |
18172 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18173 | } | |
18174 | arg5 = static_cast< int >(val5); | |
18175 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18176 | if (!SWIG_IsOK(ecode6)) { | |
18177 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18178 | } | |
18179 | arg6 = static_cast< int >(val6); | |
18180 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18181 | if (!SWIG_IsOK(ecode7)) { | |
18182 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18183 | } | |
18184 | arg7 = static_cast< int >(val7); | |
18185 | { | |
18186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18187 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18188 | wxPyEndAllowThreads(__tstate); | |
18189 | if (PyErr_Occurred()) SWIG_fail; | |
18190 | } | |
18191 | resultobj = SWIG_Py_Void(); | |
18192 | return resultobj; | |
18193 | fail: | |
18194 | return NULL; | |
18195 | } | |
18196 | ||
18197 | ||
18198 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18199 | PyObject *resultobj = 0; | |
18200 | wxDC *arg1 = (wxDC *) 0 ; | |
18201 | wxPoint *arg2 = 0 ; | |
18202 | wxPoint *arg3 = 0 ; | |
18203 | wxPoint *arg4 = 0 ; | |
18204 | void *argp1 = 0 ; | |
18205 | int res1 = 0 ; | |
18206 | wxPoint temp2 ; | |
18207 | wxPoint temp3 ; | |
18208 | wxPoint temp4 ; | |
18209 | PyObject * obj0 = 0 ; | |
18210 | PyObject * obj1 = 0 ; | |
18211 | PyObject * obj2 = 0 ; | |
18212 | PyObject * obj3 = 0 ; | |
18213 | char * kwnames[] = { | |
18214 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18215 | }; | |
18216 | ||
18217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18218 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18219 | if (!SWIG_IsOK(res1)) { | |
18220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18221 | } | |
18222 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18223 | { | |
18224 | arg2 = &temp2; | |
18225 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18226 | } | |
18227 | { | |
18228 | arg3 = &temp3; | |
18229 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18230 | } | |
18231 | { | |
18232 | arg4 = &temp4; | |
18233 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18234 | } | |
18235 | { | |
18236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18237 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18238 | wxPyEndAllowThreads(__tstate); | |
18239 | if (PyErr_Occurred()) SWIG_fail; | |
18240 | } | |
18241 | resultobj = SWIG_Py_Void(); | |
18242 | return resultobj; | |
18243 | fail: | |
18244 | return NULL; | |
18245 | } | |
18246 | ||
18247 | ||
18248 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18249 | PyObject *resultobj = 0; | |
18250 | wxDC *arg1 = (wxDC *) 0 ; | |
18251 | int arg2 ; | |
18252 | int arg3 ; | |
18253 | int arg4 ; | |
18254 | int arg5 ; | |
18255 | void *argp1 = 0 ; | |
18256 | int res1 = 0 ; | |
18257 | int val2 ; | |
18258 | int ecode2 = 0 ; | |
18259 | int val3 ; | |
18260 | int ecode3 = 0 ; | |
18261 | int val4 ; | |
18262 | int ecode4 = 0 ; | |
18263 | int val5 ; | |
18264 | int ecode5 = 0 ; | |
18265 | PyObject * obj0 = 0 ; | |
18266 | PyObject * obj1 = 0 ; | |
18267 | PyObject * obj2 = 0 ; | |
18268 | PyObject * obj3 = 0 ; | |
18269 | PyObject * obj4 = 0 ; | |
18270 | char * kwnames[] = { | |
18271 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18272 | }; | |
18273 | ||
18274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18276 | if (!SWIG_IsOK(res1)) { | |
18277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18278 | } | |
18279 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18280 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18281 | if (!SWIG_IsOK(ecode2)) { | |
18282 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18283 | } | |
18284 | arg2 = static_cast< int >(val2); | |
18285 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18286 | if (!SWIG_IsOK(ecode3)) { | |
18287 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18288 | } | |
18289 | arg3 = static_cast< int >(val3); | |
18290 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18291 | if (!SWIG_IsOK(ecode4)) { | |
18292 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18293 | } | |
18294 | arg4 = static_cast< int >(val4); | |
18295 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18296 | if (!SWIG_IsOK(ecode5)) { | |
18297 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18298 | } | |
18299 | arg5 = static_cast< int >(val5); | |
18300 | { | |
18301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18302 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18303 | wxPyEndAllowThreads(__tstate); | |
18304 | if (PyErr_Occurred()) SWIG_fail; | |
18305 | } | |
18306 | resultobj = SWIG_Py_Void(); | |
18307 | return resultobj; | |
18308 | fail: | |
18309 | return NULL; | |
18310 | } | |
18311 | ||
18312 | ||
18313 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18314 | PyObject *resultobj = 0; | |
18315 | wxDC *arg1 = (wxDC *) 0 ; | |
18316 | wxRect *arg2 = 0 ; | |
18317 | void *argp1 = 0 ; | |
18318 | int res1 = 0 ; | |
18319 | wxRect temp2 ; | |
18320 | PyObject * obj0 = 0 ; | |
18321 | PyObject * obj1 = 0 ; | |
18322 | char * kwnames[] = { | |
18323 | (char *) "self",(char *) "rect", NULL | |
18324 | }; | |
18325 | ||
18326 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18328 | if (!SWIG_IsOK(res1)) { | |
18329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18330 | } | |
18331 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18332 | { | |
18333 | arg2 = &temp2; | |
18334 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18335 | } | |
18336 | { | |
18337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18338 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18339 | wxPyEndAllowThreads(__tstate); | |
18340 | if (PyErr_Occurred()) SWIG_fail; | |
18341 | } | |
18342 | resultobj = SWIG_Py_Void(); | |
18343 | return resultobj; | |
18344 | fail: | |
18345 | return NULL; | |
18346 | } | |
18347 | ||
18348 | ||
18349 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18350 | PyObject *resultobj = 0; | |
18351 | wxDC *arg1 = (wxDC *) 0 ; | |
18352 | int arg2 ; | |
18353 | int arg3 ; | |
18354 | int arg4 ; | |
18355 | int arg5 ; | |
18356 | double arg6 ; | |
18357 | double arg7 ; | |
18358 | void *argp1 = 0 ; | |
18359 | int res1 = 0 ; | |
18360 | int val2 ; | |
18361 | int ecode2 = 0 ; | |
18362 | int val3 ; | |
18363 | int ecode3 = 0 ; | |
18364 | int val4 ; | |
18365 | int ecode4 = 0 ; | |
18366 | int val5 ; | |
18367 | int ecode5 = 0 ; | |
18368 | double val6 ; | |
18369 | int ecode6 = 0 ; | |
18370 | double val7 ; | |
18371 | int ecode7 = 0 ; | |
18372 | PyObject * obj0 = 0 ; | |
18373 | PyObject * obj1 = 0 ; | |
18374 | PyObject * obj2 = 0 ; | |
18375 | PyObject * obj3 = 0 ; | |
18376 | PyObject * obj4 = 0 ; | |
18377 | PyObject * obj5 = 0 ; | |
18378 | PyObject * obj6 = 0 ; | |
18379 | char * kwnames[] = { | |
18380 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
18381 | }; | |
18382 | ||
18383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18385 | if (!SWIG_IsOK(res1)) { | |
18386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18387 | } | |
18388 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18389 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18390 | if (!SWIG_IsOK(ecode2)) { | |
18391 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
18392 | } | |
18393 | arg2 = static_cast< int >(val2); | |
18394 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18395 | if (!SWIG_IsOK(ecode3)) { | |
18396 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
18397 | } | |
18398 | arg3 = static_cast< int >(val3); | |
18399 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18400 | if (!SWIG_IsOK(ecode4)) { | |
18401 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
18402 | } | |
18403 | arg4 = static_cast< int >(val4); | |
18404 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18405 | if (!SWIG_IsOK(ecode5)) { | |
18406 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
18407 | } | |
18408 | arg5 = static_cast< int >(val5); | |
18409 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18410 | if (!SWIG_IsOK(ecode6)) { | |
18411 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
18412 | } | |
18413 | arg6 = static_cast< double >(val6); | |
18414 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
18415 | if (!SWIG_IsOK(ecode7)) { | |
18416 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
18417 | } | |
18418 | arg7 = static_cast< double >(val7); | |
18419 | { | |
18420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18421 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18422 | wxPyEndAllowThreads(__tstate); | |
18423 | if (PyErr_Occurred()) SWIG_fail; | |
18424 | } | |
18425 | resultobj = SWIG_Py_Void(); | |
18426 | return resultobj; | |
18427 | fail: | |
18428 | return NULL; | |
18429 | } | |
18430 | ||
18431 | ||
18432 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18433 | PyObject *resultobj = 0; | |
18434 | wxDC *arg1 = (wxDC *) 0 ; | |
18435 | wxPoint *arg2 = 0 ; | |
18436 | wxSize *arg3 = 0 ; | |
18437 | double arg4 ; | |
18438 | double arg5 ; | |
18439 | void *argp1 = 0 ; | |
18440 | int res1 = 0 ; | |
18441 | wxPoint temp2 ; | |
18442 | wxSize temp3 ; | |
18443 | double val4 ; | |
18444 | int ecode4 = 0 ; | |
18445 | double val5 ; | |
18446 | int ecode5 = 0 ; | |
18447 | PyObject * obj0 = 0 ; | |
18448 | PyObject * obj1 = 0 ; | |
18449 | PyObject * obj2 = 0 ; | |
18450 | PyObject * obj3 = 0 ; | |
18451 | PyObject * obj4 = 0 ; | |
18452 | char * kwnames[] = { | |
18453 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
18454 | }; | |
18455 | ||
18456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18458 | if (!SWIG_IsOK(res1)) { | |
18459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18460 | } | |
18461 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18462 | { | |
18463 | arg2 = &temp2; | |
18464 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18465 | } | |
18466 | { | |
18467 | arg3 = &temp3; | |
18468 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18469 | } | |
18470 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18471 | if (!SWIG_IsOK(ecode4)) { | |
18472 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
18473 | } | |
18474 | arg4 = static_cast< double >(val4); | |
18475 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
18476 | if (!SWIG_IsOK(ecode5)) { | |
18477 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
18478 | } | |
18479 | arg5 = static_cast< double >(val5); | |
18480 | { | |
18481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18482 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
18483 | wxPyEndAllowThreads(__tstate); | |
18484 | if (PyErr_Occurred()) SWIG_fail; | |
18485 | } | |
18486 | resultobj = SWIG_Py_Void(); | |
18487 | return resultobj; | |
18488 | fail: | |
18489 | return NULL; | |
18490 | } | |
18491 | ||
18492 | ||
18493 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18494 | PyObject *resultobj = 0; | |
18495 | wxDC *arg1 = (wxDC *) 0 ; | |
18496 | int arg2 ; | |
18497 | int arg3 ; | |
18498 | void *argp1 = 0 ; | |
18499 | int res1 = 0 ; | |
18500 | int val2 ; | |
18501 | int ecode2 = 0 ; | |
18502 | int val3 ; | |
18503 | int ecode3 = 0 ; | |
18504 | PyObject * obj0 = 0 ; | |
18505 | PyObject * obj1 = 0 ; | |
18506 | PyObject * obj2 = 0 ; | |
18507 | char * kwnames[] = { | |
18508 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18509 | }; | |
18510 | ||
18511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18512 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18513 | if (!SWIG_IsOK(res1)) { | |
18514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18515 | } | |
18516 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18517 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18518 | if (!SWIG_IsOK(ecode2)) { | |
18519 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
18520 | } | |
18521 | arg2 = static_cast< int >(val2); | |
18522 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18523 | if (!SWIG_IsOK(ecode3)) { | |
18524 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
18525 | } | |
18526 | arg3 = static_cast< int >(val3); | |
18527 | { | |
18528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18529 | (arg1)->DrawPoint(arg2,arg3); | |
18530 | wxPyEndAllowThreads(__tstate); | |
18531 | if (PyErr_Occurred()) SWIG_fail; | |
18532 | } | |
18533 | resultobj = SWIG_Py_Void(); | |
18534 | return resultobj; | |
18535 | fail: | |
18536 | return NULL; | |
18537 | } | |
18538 | ||
18539 | ||
18540 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18541 | PyObject *resultobj = 0; | |
18542 | wxDC *arg1 = (wxDC *) 0 ; | |
18543 | wxPoint *arg2 = 0 ; | |
18544 | void *argp1 = 0 ; | |
18545 | int res1 = 0 ; | |
18546 | wxPoint temp2 ; | |
18547 | PyObject * obj0 = 0 ; | |
18548 | PyObject * obj1 = 0 ; | |
18549 | char * kwnames[] = { | |
18550 | (char *) "self",(char *) "pt", NULL | |
18551 | }; | |
18552 | ||
18553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18555 | if (!SWIG_IsOK(res1)) { | |
18556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18557 | } | |
18558 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18559 | { | |
18560 | arg2 = &temp2; | |
18561 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18562 | } | |
18563 | { | |
18564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18565 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
18566 | wxPyEndAllowThreads(__tstate); | |
18567 | if (PyErr_Occurred()) SWIG_fail; | |
18568 | } | |
18569 | resultobj = SWIG_Py_Void(); | |
18570 | return resultobj; | |
18571 | fail: | |
18572 | return NULL; | |
18573 | } | |
18574 | ||
18575 | ||
18576 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18577 | PyObject *resultobj = 0; | |
18578 | wxDC *arg1 = (wxDC *) 0 ; | |
18579 | int arg2 ; | |
18580 | int arg3 ; | |
18581 | int arg4 ; | |
18582 | int arg5 ; | |
18583 | void *argp1 = 0 ; | |
18584 | int res1 = 0 ; | |
18585 | int val2 ; | |
18586 | int ecode2 = 0 ; | |
18587 | int val3 ; | |
18588 | int ecode3 = 0 ; | |
18589 | int val4 ; | |
18590 | int ecode4 = 0 ; | |
18591 | int val5 ; | |
18592 | int ecode5 = 0 ; | |
18593 | PyObject * obj0 = 0 ; | |
18594 | PyObject * obj1 = 0 ; | |
18595 | PyObject * obj2 = 0 ; | |
18596 | PyObject * obj3 = 0 ; | |
18597 | PyObject * obj4 = 0 ; | |
18598 | char * kwnames[] = { | |
18599 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18600 | }; | |
18601 | ||
18602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18603 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18604 | if (!SWIG_IsOK(res1)) { | |
18605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18606 | } | |
18607 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18608 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18609 | if (!SWIG_IsOK(ecode2)) { | |
18610 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18611 | } | |
18612 | arg2 = static_cast< int >(val2); | |
18613 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18614 | if (!SWIG_IsOK(ecode3)) { | |
18615 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18616 | } | |
18617 | arg3 = static_cast< int >(val3); | |
18618 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18619 | if (!SWIG_IsOK(ecode4)) { | |
18620 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18621 | } | |
18622 | arg4 = static_cast< int >(val4); | |
18623 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18624 | if (!SWIG_IsOK(ecode5)) { | |
18625 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18626 | } | |
18627 | arg5 = static_cast< int >(val5); | |
18628 | { | |
18629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18630 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
18631 | wxPyEndAllowThreads(__tstate); | |
18632 | if (PyErr_Occurred()) SWIG_fail; | |
18633 | } | |
18634 | resultobj = SWIG_Py_Void(); | |
18635 | return resultobj; | |
18636 | fail: | |
18637 | return NULL; | |
18638 | } | |
18639 | ||
18640 | ||
18641 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18642 | PyObject *resultobj = 0; | |
18643 | wxDC *arg1 = (wxDC *) 0 ; | |
18644 | wxRect *arg2 = 0 ; | |
18645 | void *argp1 = 0 ; | |
18646 | int res1 = 0 ; | |
18647 | wxRect temp2 ; | |
18648 | PyObject * obj0 = 0 ; | |
18649 | PyObject * obj1 = 0 ; | |
18650 | char * kwnames[] = { | |
18651 | (char *) "self",(char *) "rect", NULL | |
18652 | }; | |
18653 | ||
18654 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18655 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18656 | if (!SWIG_IsOK(res1)) { | |
18657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18658 | } | |
18659 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18660 | { | |
18661 | arg2 = &temp2; | |
18662 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18663 | } | |
18664 | { | |
18665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18666 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
18667 | wxPyEndAllowThreads(__tstate); | |
18668 | if (PyErr_Occurred()) SWIG_fail; | |
18669 | } | |
18670 | resultobj = SWIG_Py_Void(); | |
18671 | return resultobj; | |
18672 | fail: | |
18673 | return NULL; | |
18674 | } | |
18675 | ||
18676 | ||
18677 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18678 | PyObject *resultobj = 0; | |
18679 | wxDC *arg1 = (wxDC *) 0 ; | |
18680 | wxPoint *arg2 = 0 ; | |
18681 | wxSize *arg3 = 0 ; | |
18682 | void *argp1 = 0 ; | |
18683 | int res1 = 0 ; | |
18684 | wxPoint temp2 ; | |
18685 | wxSize temp3 ; | |
18686 | PyObject * obj0 = 0 ; | |
18687 | PyObject * obj1 = 0 ; | |
18688 | PyObject * obj2 = 0 ; | |
18689 | char * kwnames[] = { | |
18690 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
18691 | }; | |
18692 | ||
18693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18695 | if (!SWIG_IsOK(res1)) { | |
18696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18697 | } | |
18698 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18699 | { | |
18700 | arg2 = &temp2; | |
18701 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18702 | } | |
18703 | { | |
18704 | arg3 = &temp3; | |
18705 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18706 | } | |
18707 | { | |
18708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18709 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
18710 | wxPyEndAllowThreads(__tstate); | |
18711 | if (PyErr_Occurred()) SWIG_fail; | |
18712 | } | |
18713 | resultobj = SWIG_Py_Void(); | |
18714 | return resultobj; | |
18715 | fail: | |
18716 | return NULL; | |
18717 | } | |
18718 | ||
18719 | ||
18720 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18721 | PyObject *resultobj = 0; | |
18722 | wxDC *arg1 = (wxDC *) 0 ; | |
18723 | int arg2 ; | |
18724 | int arg3 ; | |
18725 | int arg4 ; | |
18726 | int arg5 ; | |
18727 | double arg6 ; | |
18728 | void *argp1 = 0 ; | |
18729 | int res1 = 0 ; | |
18730 | int val2 ; | |
18731 | int ecode2 = 0 ; | |
18732 | int val3 ; | |
18733 | int ecode3 = 0 ; | |
18734 | int val4 ; | |
18735 | int ecode4 = 0 ; | |
18736 | int val5 ; | |
18737 | int ecode5 = 0 ; | |
18738 | double val6 ; | |
18739 | int ecode6 = 0 ; | |
18740 | PyObject * obj0 = 0 ; | |
18741 | PyObject * obj1 = 0 ; | |
18742 | PyObject * obj2 = 0 ; | |
18743 | PyObject * obj3 = 0 ; | |
18744 | PyObject * obj4 = 0 ; | |
18745 | PyObject * obj5 = 0 ; | |
18746 | char * kwnames[] = { | |
18747 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
18748 | }; | |
18749 | ||
18750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18751 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18752 | if (!SWIG_IsOK(res1)) { | |
18753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18754 | } | |
18755 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18756 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18757 | if (!SWIG_IsOK(ecode2)) { | |
18758 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18759 | } | |
18760 | arg2 = static_cast< int >(val2); | |
18761 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18762 | if (!SWIG_IsOK(ecode3)) { | |
18763 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18764 | } | |
18765 | arg3 = static_cast< int >(val3); | |
18766 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18767 | if (!SWIG_IsOK(ecode4)) { | |
18768 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18769 | } | |
18770 | arg4 = static_cast< int >(val4); | |
18771 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18772 | if (!SWIG_IsOK(ecode5)) { | |
18773 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18774 | } | |
18775 | arg5 = static_cast< int >(val5); | |
18776 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18777 | if (!SWIG_IsOK(ecode6)) { | |
18778 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
18779 | } | |
18780 | arg6 = static_cast< double >(val6); | |
18781 | { | |
18782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18783 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
18784 | wxPyEndAllowThreads(__tstate); | |
18785 | if (PyErr_Occurred()) SWIG_fail; | |
18786 | } | |
18787 | resultobj = SWIG_Py_Void(); | |
18788 | return resultobj; | |
18789 | fail: | |
18790 | return NULL; | |
18791 | } | |
18792 | ||
18793 | ||
18794 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18795 | PyObject *resultobj = 0; | |
18796 | wxDC *arg1 = (wxDC *) 0 ; | |
18797 | wxRect *arg2 = 0 ; | |
18798 | double arg3 ; | |
18799 | void *argp1 = 0 ; | |
18800 | int res1 = 0 ; | |
18801 | wxRect temp2 ; | |
18802 | double val3 ; | |
18803 | int ecode3 = 0 ; | |
18804 | PyObject * obj0 = 0 ; | |
18805 | PyObject * obj1 = 0 ; | |
18806 | PyObject * obj2 = 0 ; | |
18807 | char * kwnames[] = { | |
18808 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
18809 | }; | |
18810 | ||
18811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18813 | if (!SWIG_IsOK(res1)) { | |
18814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18815 | } | |
18816 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18817 | { | |
18818 | arg2 = &temp2; | |
18819 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18820 | } | |
18821 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
18822 | if (!SWIG_IsOK(ecode3)) { | |
18823 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
18824 | } | |
18825 | arg3 = static_cast< double >(val3); | |
18826 | { | |
18827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18828 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
18829 | wxPyEndAllowThreads(__tstate); | |
18830 | if (PyErr_Occurred()) SWIG_fail; | |
18831 | } | |
18832 | resultobj = SWIG_Py_Void(); | |
18833 | return resultobj; | |
18834 | fail: | |
18835 | return NULL; | |
18836 | } | |
18837 | ||
18838 | ||
18839 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18840 | PyObject *resultobj = 0; | |
18841 | wxDC *arg1 = (wxDC *) 0 ; | |
18842 | wxPoint *arg2 = 0 ; | |
18843 | wxSize *arg3 = 0 ; | |
18844 | double arg4 ; | |
18845 | void *argp1 = 0 ; | |
18846 | int res1 = 0 ; | |
18847 | wxPoint temp2 ; | |
18848 | wxSize temp3 ; | |
18849 | double val4 ; | |
18850 | int ecode4 = 0 ; | |
18851 | PyObject * obj0 = 0 ; | |
18852 | PyObject * obj1 = 0 ; | |
18853 | PyObject * obj2 = 0 ; | |
18854 | PyObject * obj3 = 0 ; | |
18855 | char * kwnames[] = { | |
18856 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
18857 | }; | |
18858 | ||
18859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18861 | if (!SWIG_IsOK(res1)) { | |
18862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18863 | } | |
18864 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18865 | { | |
18866 | arg2 = &temp2; | |
18867 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18868 | } | |
18869 | { | |
18870 | arg3 = &temp3; | |
18871 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18872 | } | |
18873 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18874 | if (!SWIG_IsOK(ecode4)) { | |
18875 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
18876 | } | |
18877 | arg4 = static_cast< double >(val4); | |
18878 | { | |
18879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18880 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
18881 | wxPyEndAllowThreads(__tstate); | |
18882 | if (PyErr_Occurred()) SWIG_fail; | |
18883 | } | |
18884 | resultobj = SWIG_Py_Void(); | |
18885 | return resultobj; | |
18886 | fail: | |
18887 | return NULL; | |
18888 | } | |
18889 | ||
18890 | ||
18891 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18892 | PyObject *resultobj = 0; | |
18893 | wxDC *arg1 = (wxDC *) 0 ; | |
18894 | int arg2 ; | |
18895 | int arg3 ; | |
18896 | int arg4 ; | |
18897 | void *argp1 = 0 ; | |
18898 | int res1 = 0 ; | |
18899 | int val2 ; | |
18900 | int ecode2 = 0 ; | |
18901 | int val3 ; | |
18902 | int ecode3 = 0 ; | |
18903 | int val4 ; | |
18904 | int ecode4 = 0 ; | |
18905 | PyObject * obj0 = 0 ; | |
18906 | PyObject * obj1 = 0 ; | |
18907 | PyObject * obj2 = 0 ; | |
18908 | PyObject * obj3 = 0 ; | |
18909 | char * kwnames[] = { | |
18910 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
18911 | }; | |
18912 | ||
18913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18915 | if (!SWIG_IsOK(res1)) { | |
18916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18917 | } | |
18918 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18919 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18920 | if (!SWIG_IsOK(ecode2)) { | |
18921 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
18922 | } | |
18923 | arg2 = static_cast< int >(val2); | |
18924 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18925 | if (!SWIG_IsOK(ecode3)) { | |
18926 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
18927 | } | |
18928 | arg3 = static_cast< int >(val3); | |
18929 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18930 | if (!SWIG_IsOK(ecode4)) { | |
18931 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
18932 | } | |
18933 | arg4 = static_cast< int >(val4); | |
18934 | { | |
18935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18936 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
18937 | wxPyEndAllowThreads(__tstate); | |
18938 | if (PyErr_Occurred()) SWIG_fail; | |
18939 | } | |
18940 | resultobj = SWIG_Py_Void(); | |
18941 | return resultobj; | |
18942 | fail: | |
18943 | return NULL; | |
18944 | } | |
18945 | ||
18946 | ||
18947 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18948 | PyObject *resultobj = 0; | |
18949 | wxDC *arg1 = (wxDC *) 0 ; | |
18950 | wxPoint *arg2 = 0 ; | |
18951 | int arg3 ; | |
18952 | void *argp1 = 0 ; | |
18953 | int res1 = 0 ; | |
18954 | wxPoint temp2 ; | |
18955 | int val3 ; | |
18956 | int ecode3 = 0 ; | |
18957 | PyObject * obj0 = 0 ; | |
18958 | PyObject * obj1 = 0 ; | |
18959 | PyObject * obj2 = 0 ; | |
18960 | char * kwnames[] = { | |
18961 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
18962 | }; | |
18963 | ||
18964 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18966 | if (!SWIG_IsOK(res1)) { | |
18967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18968 | } | |
18969 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18970 | { | |
18971 | arg2 = &temp2; | |
18972 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18973 | } | |
18974 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18975 | if (!SWIG_IsOK(ecode3)) { | |
18976 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
18977 | } | |
18978 | arg3 = static_cast< int >(val3); | |
18979 | { | |
18980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18981 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
18982 | wxPyEndAllowThreads(__tstate); | |
18983 | if (PyErr_Occurred()) SWIG_fail; | |
18984 | } | |
18985 | resultobj = SWIG_Py_Void(); | |
18986 | return resultobj; | |
18987 | fail: | |
18988 | return NULL; | |
18989 | } | |
18990 | ||
18991 | ||
18992 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18993 | PyObject *resultobj = 0; | |
18994 | wxDC *arg1 = (wxDC *) 0 ; | |
18995 | int arg2 ; | |
18996 | int arg3 ; | |
18997 | int arg4 ; | |
18998 | int arg5 ; | |
18999 | void *argp1 = 0 ; | |
19000 | int res1 = 0 ; | |
19001 | int val2 ; | |
19002 | int ecode2 = 0 ; | |
19003 | int val3 ; | |
19004 | int ecode3 = 0 ; | |
19005 | int val4 ; | |
19006 | int ecode4 = 0 ; | |
19007 | int val5 ; | |
19008 | int ecode5 = 0 ; | |
19009 | PyObject * obj0 = 0 ; | |
19010 | PyObject * obj1 = 0 ; | |
19011 | PyObject * obj2 = 0 ; | |
19012 | PyObject * obj3 = 0 ; | |
19013 | PyObject * obj4 = 0 ; | |
19014 | char * kwnames[] = { | |
19015 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19016 | }; | |
19017 | ||
19018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19020 | if (!SWIG_IsOK(res1)) { | |
19021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19022 | } | |
19023 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19024 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19025 | if (!SWIG_IsOK(ecode2)) { | |
19026 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
19027 | } | |
19028 | arg2 = static_cast< int >(val2); | |
19029 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19030 | if (!SWIG_IsOK(ecode3)) { | |
19031 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
19032 | } | |
19033 | arg3 = static_cast< int >(val3); | |
19034 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19035 | if (!SWIG_IsOK(ecode4)) { | |
19036 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
19037 | } | |
19038 | arg4 = static_cast< int >(val4); | |
19039 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19040 | if (!SWIG_IsOK(ecode5)) { | |
19041 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
19042 | } | |
19043 | arg5 = static_cast< int >(val5); | |
19044 | { | |
19045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19046 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
19047 | wxPyEndAllowThreads(__tstate); | |
19048 | if (PyErr_Occurred()) SWIG_fail; | |
19049 | } | |
19050 | resultobj = SWIG_Py_Void(); | |
19051 | return resultobj; | |
19052 | fail: | |
19053 | return NULL; | |
19054 | } | |
19055 | ||
19056 | ||
19057 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19058 | PyObject *resultobj = 0; | |
19059 | wxDC *arg1 = (wxDC *) 0 ; | |
19060 | wxRect *arg2 = 0 ; | |
19061 | void *argp1 = 0 ; | |
19062 | int res1 = 0 ; | |
19063 | wxRect temp2 ; | |
19064 | PyObject * obj0 = 0 ; | |
19065 | PyObject * obj1 = 0 ; | |
19066 | char * kwnames[] = { | |
19067 | (char *) "self",(char *) "rect", NULL | |
19068 | }; | |
19069 | ||
19070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19072 | if (!SWIG_IsOK(res1)) { | |
19073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19074 | } | |
19075 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19076 | { | |
19077 | arg2 = &temp2; | |
19078 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19079 | } | |
19080 | { | |
19081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19082 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
19083 | wxPyEndAllowThreads(__tstate); | |
19084 | if (PyErr_Occurred()) SWIG_fail; | |
19085 | } | |
19086 | resultobj = SWIG_Py_Void(); | |
19087 | return resultobj; | |
19088 | fail: | |
19089 | return NULL; | |
19090 | } | |
19091 | ||
19092 | ||
19093 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19094 | PyObject *resultobj = 0; | |
19095 | wxDC *arg1 = (wxDC *) 0 ; | |
19096 | wxPoint *arg2 = 0 ; | |
19097 | wxSize *arg3 = 0 ; | |
19098 | void *argp1 = 0 ; | |
19099 | int res1 = 0 ; | |
19100 | wxPoint temp2 ; | |
19101 | wxSize temp3 ; | |
19102 | PyObject * obj0 = 0 ; | |
19103 | PyObject * obj1 = 0 ; | |
19104 | PyObject * obj2 = 0 ; | |
19105 | char * kwnames[] = { | |
19106 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19107 | }; | |
19108 | ||
19109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19110 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19111 | if (!SWIG_IsOK(res1)) { | |
19112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19113 | } | |
19114 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19115 | { | |
19116 | arg2 = &temp2; | |
19117 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19118 | } | |
19119 | { | |
19120 | arg3 = &temp3; | |
19121 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19122 | } | |
19123 | { | |
19124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19125 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19126 | wxPyEndAllowThreads(__tstate); | |
19127 | if (PyErr_Occurred()) SWIG_fail; | |
19128 | } | |
19129 | resultobj = SWIG_Py_Void(); | |
19130 | return resultobj; | |
19131 | fail: | |
19132 | return NULL; | |
19133 | } | |
19134 | ||
19135 | ||
19136 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19137 | PyObject *resultobj = 0; | |
19138 | wxDC *arg1 = (wxDC *) 0 ; | |
19139 | wxIcon *arg2 = 0 ; | |
19140 | int arg3 ; | |
19141 | int arg4 ; | |
19142 | void *argp1 = 0 ; | |
19143 | int res1 = 0 ; | |
19144 | void *argp2 = 0 ; | |
19145 | int res2 = 0 ; | |
19146 | int val3 ; | |
19147 | int ecode3 = 0 ; | |
19148 | int val4 ; | |
19149 | int ecode4 = 0 ; | |
19150 | PyObject * obj0 = 0 ; | |
19151 | PyObject * obj1 = 0 ; | |
19152 | PyObject * obj2 = 0 ; | |
19153 | PyObject * obj3 = 0 ; | |
19154 | char * kwnames[] = { | |
19155 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
19156 | }; | |
19157 | ||
19158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19160 | if (!SWIG_IsOK(res1)) { | |
19161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19162 | } | |
19163 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19164 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19165 | if (!SWIG_IsOK(res2)) { | |
19166 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19167 | } | |
19168 | if (!argp2) { | |
19169 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19170 | } | |
19171 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19172 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19173 | if (!SWIG_IsOK(ecode3)) { | |
19174 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19175 | } | |
19176 | arg3 = static_cast< int >(val3); | |
19177 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19178 | if (!SWIG_IsOK(ecode4)) { | |
19179 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19180 | } | |
19181 | arg4 = static_cast< int >(val4); | |
19182 | { | |
19183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19184 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19185 | wxPyEndAllowThreads(__tstate); | |
19186 | if (PyErr_Occurred()) SWIG_fail; | |
19187 | } | |
19188 | resultobj = SWIG_Py_Void(); | |
19189 | return resultobj; | |
19190 | fail: | |
19191 | return NULL; | |
19192 | } | |
19193 | ||
19194 | ||
19195 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19196 | PyObject *resultobj = 0; | |
19197 | wxDC *arg1 = (wxDC *) 0 ; | |
19198 | wxIcon *arg2 = 0 ; | |
19199 | wxPoint *arg3 = 0 ; | |
19200 | void *argp1 = 0 ; | |
19201 | int res1 = 0 ; | |
19202 | void *argp2 = 0 ; | |
19203 | int res2 = 0 ; | |
19204 | wxPoint temp3 ; | |
19205 | PyObject * obj0 = 0 ; | |
19206 | PyObject * obj1 = 0 ; | |
19207 | PyObject * obj2 = 0 ; | |
19208 | char * kwnames[] = { | |
19209 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19210 | }; | |
19211 | ||
19212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19214 | if (!SWIG_IsOK(res1)) { | |
19215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19216 | } | |
19217 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19218 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19219 | if (!SWIG_IsOK(res2)) { | |
19220 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19221 | } | |
19222 | if (!argp2) { | |
19223 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19224 | } | |
19225 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19226 | { | |
19227 | arg3 = &temp3; | |
19228 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19229 | } | |
19230 | { | |
19231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19232 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
19233 | wxPyEndAllowThreads(__tstate); | |
19234 | if (PyErr_Occurred()) SWIG_fail; | |
19235 | } | |
19236 | resultobj = SWIG_Py_Void(); | |
19237 | return resultobj; | |
19238 | fail: | |
19239 | return NULL; | |
19240 | } | |
19241 | ||
19242 | ||
19243 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19244 | PyObject *resultobj = 0; | |
19245 | wxDC *arg1 = (wxDC *) 0 ; | |
19246 | wxBitmap *arg2 = 0 ; | |
19247 | int arg3 ; | |
19248 | int arg4 ; | |
19249 | bool arg5 = (bool) false ; | |
19250 | void *argp1 = 0 ; | |
19251 | int res1 = 0 ; | |
19252 | void *argp2 = 0 ; | |
19253 | int res2 = 0 ; | |
19254 | int val3 ; | |
19255 | int ecode3 = 0 ; | |
19256 | int val4 ; | |
19257 | int ecode4 = 0 ; | |
19258 | bool val5 ; | |
19259 | int ecode5 = 0 ; | |
19260 | PyObject * obj0 = 0 ; | |
19261 | PyObject * obj1 = 0 ; | |
19262 | PyObject * obj2 = 0 ; | |
19263 | PyObject * obj3 = 0 ; | |
19264 | PyObject * obj4 = 0 ; | |
19265 | char * kwnames[] = { | |
19266 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19267 | }; | |
19268 | ||
19269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19271 | if (!SWIG_IsOK(res1)) { | |
19272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19273 | } | |
19274 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19275 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19276 | if (!SWIG_IsOK(res2)) { | |
19277 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19278 | } | |
19279 | if (!argp2) { | |
19280 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19281 | } | |
19282 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19283 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19284 | if (!SWIG_IsOK(ecode3)) { | |
19285 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19286 | } | |
19287 | arg3 = static_cast< int >(val3); | |
19288 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19289 | if (!SWIG_IsOK(ecode4)) { | |
19290 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19291 | } | |
19292 | arg4 = static_cast< int >(val4); | |
19293 | if (obj4) { | |
19294 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19295 | if (!SWIG_IsOK(ecode5)) { | |
19296 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19297 | } | |
19298 | arg5 = static_cast< bool >(val5); | |
19299 | } | |
19300 | { | |
19301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19302 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19303 | wxPyEndAllowThreads(__tstate); | |
19304 | if (PyErr_Occurred()) SWIG_fail; | |
19305 | } | |
19306 | resultobj = SWIG_Py_Void(); | |
19307 | return resultobj; | |
19308 | fail: | |
19309 | return NULL; | |
19310 | } | |
19311 | ||
19312 | ||
19313 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19314 | PyObject *resultobj = 0; | |
19315 | wxDC *arg1 = (wxDC *) 0 ; | |
19316 | wxBitmap *arg2 = 0 ; | |
19317 | wxPoint *arg3 = 0 ; | |
19318 | bool arg4 = (bool) false ; | |
19319 | void *argp1 = 0 ; | |
19320 | int res1 = 0 ; | |
19321 | void *argp2 = 0 ; | |
19322 | int res2 = 0 ; | |
19323 | wxPoint temp3 ; | |
19324 | bool val4 ; | |
19325 | int ecode4 = 0 ; | |
19326 | PyObject * obj0 = 0 ; | |
19327 | PyObject * obj1 = 0 ; | |
19328 | PyObject * obj2 = 0 ; | |
19329 | PyObject * obj3 = 0 ; | |
19330 | char * kwnames[] = { | |
19331 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19332 | }; | |
19333 | ||
19334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19336 | if (!SWIG_IsOK(res1)) { | |
19337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19338 | } | |
19339 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19340 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19341 | if (!SWIG_IsOK(res2)) { | |
19342 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19343 | } | |
19344 | if (!argp2) { | |
19345 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19346 | } | |
19347 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19348 | { | |
19349 | arg3 = &temp3; | |
19350 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19351 | } | |
19352 | if (obj3) { | |
19353 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19354 | if (!SWIG_IsOK(ecode4)) { | |
19355 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
19356 | } | |
19357 | arg4 = static_cast< bool >(val4); | |
19358 | } | |
19359 | { | |
19360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19361 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19362 | wxPyEndAllowThreads(__tstate); | |
19363 | if (PyErr_Occurred()) SWIG_fail; | |
19364 | } | |
19365 | resultobj = SWIG_Py_Void(); | |
19366 | return resultobj; | |
19367 | fail: | |
19368 | return NULL; | |
19369 | } | |
19370 | ||
19371 | ||
19372 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19373 | PyObject *resultobj = 0; | |
19374 | wxDC *arg1 = (wxDC *) 0 ; | |
19375 | wxString *arg2 = 0 ; | |
19376 | int arg3 ; | |
19377 | int arg4 ; | |
19378 | void *argp1 = 0 ; | |
19379 | int res1 = 0 ; | |
19380 | bool temp2 = false ; | |
19381 | int val3 ; | |
19382 | int ecode3 = 0 ; | |
19383 | int val4 ; | |
19384 | int ecode4 = 0 ; | |
19385 | PyObject * obj0 = 0 ; | |
19386 | PyObject * obj1 = 0 ; | |
19387 | PyObject * obj2 = 0 ; | |
19388 | PyObject * obj3 = 0 ; | |
19389 | char * kwnames[] = { | |
19390 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
19391 | }; | |
19392 | ||
19393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19395 | if (!SWIG_IsOK(res1)) { | |
19396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19397 | } | |
19398 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19399 | { | |
19400 | arg2 = wxString_in_helper(obj1); | |
19401 | if (arg2 == NULL) SWIG_fail; | |
19402 | temp2 = true; | |
19403 | } | |
19404 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19405 | if (!SWIG_IsOK(ecode3)) { | |
19406 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
19407 | } | |
19408 | arg3 = static_cast< int >(val3); | |
19409 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19410 | if (!SWIG_IsOK(ecode4)) { | |
19411 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
19412 | } | |
19413 | arg4 = static_cast< int >(val4); | |
19414 | { | |
19415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19416 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
19417 | wxPyEndAllowThreads(__tstate); | |
19418 | if (PyErr_Occurred()) SWIG_fail; | |
19419 | } | |
19420 | resultobj = SWIG_Py_Void(); | |
19421 | { | |
19422 | if (temp2) | |
19423 | delete arg2; | |
19424 | } | |
19425 | return resultobj; | |
19426 | fail: | |
19427 | { | |
19428 | if (temp2) | |
19429 | delete arg2; | |
19430 | } | |
19431 | return NULL; | |
19432 | } | |
19433 | ||
19434 | ||
19435 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19436 | PyObject *resultobj = 0; | |
19437 | wxDC *arg1 = (wxDC *) 0 ; | |
19438 | wxString *arg2 = 0 ; | |
19439 | wxPoint *arg3 = 0 ; | |
19440 | void *argp1 = 0 ; | |
19441 | int res1 = 0 ; | |
19442 | bool temp2 = false ; | |
19443 | wxPoint temp3 ; | |
19444 | PyObject * obj0 = 0 ; | |
19445 | PyObject * obj1 = 0 ; | |
19446 | PyObject * obj2 = 0 ; | |
19447 | char * kwnames[] = { | |
19448 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
19449 | }; | |
19450 | ||
19451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19453 | if (!SWIG_IsOK(res1)) { | |
19454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19455 | } | |
19456 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19457 | { | |
19458 | arg2 = wxString_in_helper(obj1); | |
19459 | if (arg2 == NULL) SWIG_fail; | |
19460 | temp2 = true; | |
19461 | } | |
19462 | { | |
19463 | arg3 = &temp3; | |
19464 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19465 | } | |
19466 | { | |
19467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19468 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
19469 | wxPyEndAllowThreads(__tstate); | |
19470 | if (PyErr_Occurred()) SWIG_fail; | |
19471 | } | |
19472 | resultobj = SWIG_Py_Void(); | |
19473 | { | |
19474 | if (temp2) | |
19475 | delete arg2; | |
19476 | } | |
19477 | return resultobj; | |
19478 | fail: | |
19479 | { | |
19480 | if (temp2) | |
19481 | delete arg2; | |
19482 | } | |
19483 | return NULL; | |
19484 | } | |
19485 | ||
19486 | ||
19487 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19488 | PyObject *resultobj = 0; | |
19489 | wxDC *arg1 = (wxDC *) 0 ; | |
19490 | wxString *arg2 = 0 ; | |
19491 | int arg3 ; | |
19492 | int arg4 ; | |
19493 | double arg5 ; | |
19494 | void *argp1 = 0 ; | |
19495 | int res1 = 0 ; | |
19496 | bool temp2 = false ; | |
19497 | int val3 ; | |
19498 | int ecode3 = 0 ; | |
19499 | int val4 ; | |
19500 | int ecode4 = 0 ; | |
19501 | double val5 ; | |
19502 | int ecode5 = 0 ; | |
19503 | PyObject * obj0 = 0 ; | |
19504 | PyObject * obj1 = 0 ; | |
19505 | PyObject * obj2 = 0 ; | |
19506 | PyObject * obj3 = 0 ; | |
19507 | PyObject * obj4 = 0 ; | |
19508 | char * kwnames[] = { | |
19509 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
19510 | }; | |
19511 | ||
19512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19514 | if (!SWIG_IsOK(res1)) { | |
19515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19516 | } | |
19517 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19518 | { | |
19519 | arg2 = wxString_in_helper(obj1); | |
19520 | if (arg2 == NULL) SWIG_fail; | |
19521 | temp2 = true; | |
19522 | } | |
19523 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19524 | if (!SWIG_IsOK(ecode3)) { | |
19525 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
19526 | } | |
19527 | arg3 = static_cast< int >(val3); | |
19528 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19529 | if (!SWIG_IsOK(ecode4)) { | |
19530 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
19531 | } | |
19532 | arg4 = static_cast< int >(val4); | |
19533 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19534 | if (!SWIG_IsOK(ecode5)) { | |
19535 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
19536 | } | |
19537 | arg5 = static_cast< double >(val5); | |
19538 | { | |
19539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19540 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
19541 | wxPyEndAllowThreads(__tstate); | |
19542 | if (PyErr_Occurred()) SWIG_fail; | |
19543 | } | |
19544 | resultobj = SWIG_Py_Void(); | |
19545 | { | |
19546 | if (temp2) | |
19547 | delete arg2; | |
19548 | } | |
19549 | return resultobj; | |
19550 | fail: | |
19551 | { | |
19552 | if (temp2) | |
19553 | delete arg2; | |
19554 | } | |
19555 | return NULL; | |
19556 | } | |
19557 | ||
19558 | ||
19559 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19560 | PyObject *resultobj = 0; | |
19561 | wxDC *arg1 = (wxDC *) 0 ; | |
19562 | wxString *arg2 = 0 ; | |
19563 | wxPoint *arg3 = 0 ; | |
19564 | double arg4 ; | |
19565 | void *argp1 = 0 ; | |
19566 | int res1 = 0 ; | |
19567 | bool temp2 = false ; | |
19568 | wxPoint temp3 ; | |
19569 | double val4 ; | |
19570 | int ecode4 = 0 ; | |
19571 | PyObject * obj0 = 0 ; | |
19572 | PyObject * obj1 = 0 ; | |
19573 | PyObject * obj2 = 0 ; | |
19574 | PyObject * obj3 = 0 ; | |
19575 | char * kwnames[] = { | |
19576 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
19577 | }; | |
19578 | ||
19579 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19580 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19581 | if (!SWIG_IsOK(res1)) { | |
19582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19583 | } | |
19584 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19585 | { | |
19586 | arg2 = wxString_in_helper(obj1); | |
19587 | if (arg2 == NULL) SWIG_fail; | |
19588 | temp2 = true; | |
19589 | } | |
19590 | { | |
19591 | arg3 = &temp3; | |
19592 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19593 | } | |
19594 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19595 | if (!SWIG_IsOK(ecode4)) { | |
19596 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
19597 | } | |
19598 | arg4 = static_cast< double >(val4); | |
19599 | { | |
19600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19601 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19602 | wxPyEndAllowThreads(__tstate); | |
19603 | if (PyErr_Occurred()) SWIG_fail; | |
19604 | } | |
19605 | resultobj = SWIG_Py_Void(); | |
19606 | { | |
19607 | if (temp2) | |
19608 | delete arg2; | |
19609 | } | |
19610 | return resultobj; | |
19611 | fail: | |
19612 | { | |
19613 | if (temp2) | |
19614 | delete arg2; | |
19615 | } | |
19616 | return NULL; | |
19617 | } | |
19618 | ||
19619 | ||
19620 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19621 | PyObject *resultobj = 0; | |
19622 | wxDC *arg1 = (wxDC *) 0 ; | |
19623 | int arg2 ; | |
19624 | int arg3 ; | |
19625 | int arg4 ; | |
19626 | int arg5 ; | |
19627 | wxDC *arg6 = (wxDC *) 0 ; | |
19628 | int arg7 ; | |
19629 | int arg8 ; | |
19630 | int arg9 = (int) wxCOPY ; | |
19631 | bool arg10 = (bool) false ; | |
19632 | int arg11 = (int) -1 ; | |
19633 | int arg12 = (int) -1 ; | |
19634 | bool result; | |
19635 | void *argp1 = 0 ; | |
19636 | int res1 = 0 ; | |
19637 | int val2 ; | |
19638 | int ecode2 = 0 ; | |
19639 | int val3 ; | |
19640 | int ecode3 = 0 ; | |
19641 | int val4 ; | |
19642 | int ecode4 = 0 ; | |
19643 | int val5 ; | |
19644 | int ecode5 = 0 ; | |
19645 | void *argp6 = 0 ; | |
19646 | int res6 = 0 ; | |
19647 | int val7 ; | |
19648 | int ecode7 = 0 ; | |
19649 | int val8 ; | |
19650 | int ecode8 = 0 ; | |
19651 | int val9 ; | |
19652 | int ecode9 = 0 ; | |
19653 | bool val10 ; | |
19654 | int ecode10 = 0 ; | |
19655 | int val11 ; | |
19656 | int ecode11 = 0 ; | |
19657 | int val12 ; | |
19658 | int ecode12 = 0 ; | |
19659 | PyObject * obj0 = 0 ; | |
19660 | PyObject * obj1 = 0 ; | |
19661 | PyObject * obj2 = 0 ; | |
19662 | PyObject * obj3 = 0 ; | |
19663 | PyObject * obj4 = 0 ; | |
19664 | PyObject * obj5 = 0 ; | |
19665 | PyObject * obj6 = 0 ; | |
19666 | PyObject * obj7 = 0 ; | |
19667 | PyObject * obj8 = 0 ; | |
19668 | PyObject * obj9 = 0 ; | |
19669 | PyObject * obj10 = 0 ; | |
19670 | PyObject * obj11 = 0 ; | |
19671 | char * kwnames[] = { | |
19672 | (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 | |
19673 | }; | |
19674 | ||
19675 | 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; | |
19676 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19677 | if (!SWIG_IsOK(res1)) { | |
19678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19679 | } | |
19680 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19681 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19682 | if (!SWIG_IsOK(ecode2)) { | |
19683 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
19684 | } | |
19685 | arg2 = static_cast< int >(val2); | |
19686 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19687 | if (!SWIG_IsOK(ecode3)) { | |
19688 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
19689 | } | |
19690 | arg3 = static_cast< int >(val3); | |
19691 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19692 | if (!SWIG_IsOK(ecode4)) { | |
19693 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
19694 | } | |
19695 | arg4 = static_cast< int >(val4); | |
19696 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19697 | if (!SWIG_IsOK(ecode5)) { | |
19698 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
19699 | } | |
19700 | arg5 = static_cast< int >(val5); | |
19701 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19702 | if (!SWIG_IsOK(res6)) { | |
19703 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
19704 | } | |
19705 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
19706 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
19707 | if (!SWIG_IsOK(ecode7)) { | |
19708 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
19709 | } | |
19710 | arg7 = static_cast< int >(val7); | |
19711 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
19712 | if (!SWIG_IsOK(ecode8)) { | |
19713 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
19714 | } | |
19715 | arg8 = static_cast< int >(val8); | |
19716 | if (obj8) { | |
19717 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
19718 | if (!SWIG_IsOK(ecode9)) { | |
19719 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
19720 | } | |
19721 | arg9 = static_cast< int >(val9); | |
19722 | } | |
19723 | if (obj9) { | |
19724 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
19725 | if (!SWIG_IsOK(ecode10)) { | |
19726 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
19727 | } | |
19728 | arg10 = static_cast< bool >(val10); | |
19729 | } | |
19730 | if (obj10) { | |
19731 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
19732 | if (!SWIG_IsOK(ecode11)) { | |
19733 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
19734 | } | |
19735 | arg11 = static_cast< int >(val11); | |
19736 | } | |
19737 | if (obj11) { | |
19738 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
19739 | if (!SWIG_IsOK(ecode12)) { | |
19740 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
19741 | } | |
19742 | arg12 = static_cast< int >(val12); | |
19743 | } | |
19744 | { | |
19745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19746 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
19747 | wxPyEndAllowThreads(__tstate); | |
19748 | if (PyErr_Occurred()) SWIG_fail; | |
19749 | } | |
19750 | { | |
19751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19752 | } | |
19753 | return resultobj; | |
19754 | fail: | |
19755 | return NULL; | |
19756 | } | |
19757 | ||
19758 | ||
19759 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19760 | PyObject *resultobj = 0; | |
19761 | wxDC *arg1 = (wxDC *) 0 ; | |
19762 | wxPoint *arg2 = 0 ; | |
19763 | wxSize *arg3 = 0 ; | |
19764 | wxDC *arg4 = (wxDC *) 0 ; | |
19765 | wxPoint *arg5 = 0 ; | |
19766 | int arg6 = (int) wxCOPY ; | |
19767 | bool arg7 = (bool) false ; | |
19768 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
19769 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
19770 | bool result; | |
19771 | void *argp1 = 0 ; | |
19772 | int res1 = 0 ; | |
19773 | wxPoint temp2 ; | |
19774 | wxSize temp3 ; | |
19775 | void *argp4 = 0 ; | |
19776 | int res4 = 0 ; | |
19777 | wxPoint temp5 ; | |
19778 | int val6 ; | |
19779 | int ecode6 = 0 ; | |
19780 | bool val7 ; | |
19781 | int ecode7 = 0 ; | |
19782 | wxPoint temp8 ; | |
19783 | PyObject * obj0 = 0 ; | |
19784 | PyObject * obj1 = 0 ; | |
19785 | PyObject * obj2 = 0 ; | |
19786 | PyObject * obj3 = 0 ; | |
19787 | PyObject * obj4 = 0 ; | |
19788 | PyObject * obj5 = 0 ; | |
19789 | PyObject * obj6 = 0 ; | |
19790 | PyObject * obj7 = 0 ; | |
19791 | char * kwnames[] = { | |
19792 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
19793 | }; | |
19794 | ||
19795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
19796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19797 | if (!SWIG_IsOK(res1)) { | |
19798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19799 | } | |
19800 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19801 | { | |
19802 | arg2 = &temp2; | |
19803 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19804 | } | |
19805 | { | |
19806 | arg3 = &temp3; | |
19807 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19808 | } | |
19809 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19810 | if (!SWIG_IsOK(res4)) { | |
19811 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
19812 | } | |
19813 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
19814 | { | |
19815 | arg5 = &temp5; | |
19816 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19817 | } | |
19818 | if (obj5) { | |
19819 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
19820 | if (!SWIG_IsOK(ecode6)) { | |
19821 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
19822 | } | |
19823 | arg6 = static_cast< int >(val6); | |
19824 | } | |
19825 | if (obj6) { | |
19826 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
19827 | if (!SWIG_IsOK(ecode7)) { | |
19828 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
19829 | } | |
19830 | arg7 = static_cast< bool >(val7); | |
19831 | } | |
19832 | if (obj7) { | |
093d3ff1 | 19833 | { |
0085ce49 RD |
19834 | arg8 = &temp8; |
19835 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 19836 | } |
0085ce49 RD |
19837 | } |
19838 | { | |
19839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19840 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
19841 | wxPyEndAllowThreads(__tstate); | |
19842 | if (PyErr_Occurred()) SWIG_fail; | |
19843 | } | |
19844 | { | |
19845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19846 | } | |
19847 | return resultobj; | |
19848 | fail: | |
19849 | return NULL; | |
19850 | } | |
19851 | ||
19852 | ||
8f514ab4 RD |
19853 | SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19854 | PyObject *resultobj = 0; | |
19855 | wxDC *arg1 = (wxDC *) 0 ; | |
19856 | wxRect *arg2 = (wxRect *) NULL ; | |
19857 | SwigValueWrapper<wxBitmap > result; | |
19858 | void *argp1 = 0 ; | |
19859 | int res1 = 0 ; | |
19860 | void *argp2 = 0 ; | |
19861 | int res2 = 0 ; | |
19862 | PyObject * obj0 = 0 ; | |
19863 | PyObject * obj1 = 0 ; | |
19864 | char * kwnames[] = { | |
19865 | (char *) "self",(char *) "subrect", NULL | |
19866 | }; | |
19867 | ||
19868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
19869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19870 | if (!SWIG_IsOK(res1)) { | |
19871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19872 | } | |
19873 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19874 | if (obj1) { | |
19875 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
19876 | if (!SWIG_IsOK(res2)) { | |
19877 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'"); | |
19878 | } | |
19879 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
19880 | } | |
19881 | { | |
19882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19883 | result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2); | |
19884 | wxPyEndAllowThreads(__tstate); | |
19885 | if (PyErr_Occurred()) SWIG_fail; | |
19886 | } | |
19887 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
19888 | return resultobj; | |
19889 | fail: | |
19890 | return NULL; | |
19891 | } | |
19892 | ||
19893 | ||
0085ce49 RD |
19894 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19895 | PyObject *resultobj = 0; | |
19896 | wxDC *arg1 = (wxDC *) 0 ; | |
19897 | int arg2 ; | |
19898 | int arg3 ; | |
19899 | int arg4 ; | |
19900 | int arg5 ; | |
19901 | void *argp1 = 0 ; | |
19902 | int res1 = 0 ; | |
19903 | int val2 ; | |
19904 | int ecode2 = 0 ; | |
19905 | int val3 ; | |
19906 | int ecode3 = 0 ; | |
19907 | int val4 ; | |
19908 | int ecode4 = 0 ; | |
19909 | int val5 ; | |
19910 | int ecode5 = 0 ; | |
19911 | PyObject * obj0 = 0 ; | |
19912 | PyObject * obj1 = 0 ; | |
19913 | PyObject * obj2 = 0 ; | |
19914 | PyObject * obj3 = 0 ; | |
19915 | PyObject * obj4 = 0 ; | |
19916 | char * kwnames[] = { | |
19917 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19918 | }; | |
19919 | ||
19920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19922 | if (!SWIG_IsOK(res1)) { | |
19923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19924 | } | |
19925 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19926 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19927 | if (!SWIG_IsOK(ecode2)) { | |
19928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
19929 | } | |
19930 | arg2 = static_cast< int >(val2); | |
19931 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19932 | if (!SWIG_IsOK(ecode3)) { | |
19933 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
19934 | } | |
19935 | arg3 = static_cast< int >(val3); | |
19936 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19937 | if (!SWIG_IsOK(ecode4)) { | |
19938 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
19939 | } | |
19940 | arg4 = static_cast< int >(val4); | |
19941 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19942 | if (!SWIG_IsOK(ecode5)) { | |
19943 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
19944 | } | |
19945 | arg5 = static_cast< int >(val5); | |
19946 | { | |
19947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19948 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
19949 | wxPyEndAllowThreads(__tstate); | |
19950 | if (PyErr_Occurred()) SWIG_fail; | |
19951 | } | |
19952 | resultobj = SWIG_Py_Void(); | |
19953 | return resultobj; | |
19954 | fail: | |
19955 | return NULL; | |
19956 | } | |
19957 | ||
19958 | ||
19959 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19960 | PyObject *resultobj = 0; | |
19961 | wxDC *arg1 = (wxDC *) 0 ; | |
19962 | wxPoint *arg2 = 0 ; | |
19963 | wxSize *arg3 = 0 ; | |
19964 | void *argp1 = 0 ; | |
19965 | int res1 = 0 ; | |
19966 | wxPoint temp2 ; | |
19967 | wxSize temp3 ; | |
19968 | PyObject * obj0 = 0 ; | |
19969 | PyObject * obj1 = 0 ; | |
19970 | PyObject * obj2 = 0 ; | |
19971 | char * kwnames[] = { | |
19972 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19973 | }; | |
19974 | ||
19975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19977 | if (!SWIG_IsOK(res1)) { | |
19978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19979 | } | |
19980 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19981 | { | |
19982 | arg2 = &temp2; | |
19983 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19984 | } | |
19985 | { | |
19986 | arg3 = &temp3; | |
19987 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19988 | } | |
19989 | { | |
19990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19991 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19992 | wxPyEndAllowThreads(__tstate); | |
19993 | if (PyErr_Occurred()) SWIG_fail; | |
19994 | } | |
19995 | resultobj = SWIG_Py_Void(); | |
19996 | return resultobj; | |
19997 | fail: | |
19998 | return NULL; | |
19999 | } | |
20000 | ||
20001 | ||
20002 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20003 | PyObject *resultobj = 0; | |
20004 | wxDC *arg1 = (wxDC *) 0 ; | |
20005 | wxRegion *arg2 = 0 ; | |
20006 | void *argp1 = 0 ; | |
20007 | int res1 = 0 ; | |
20008 | void *argp2 = 0 ; | |
20009 | int res2 = 0 ; | |
20010 | PyObject * obj0 = 0 ; | |
20011 | PyObject * obj1 = 0 ; | |
20012 | char * kwnames[] = { | |
20013 | (char *) "self",(char *) "region", NULL | |
20014 | }; | |
20015 | ||
20016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
20017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20018 | if (!SWIG_IsOK(res1)) { | |
20019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20020 | } | |
20021 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20022 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
20023 | if (!SWIG_IsOK(res2)) { | |
20024 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20025 | } | |
20026 | if (!argp2) { | |
20027 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20028 | } | |
20029 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
20030 | { | |
20031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20032 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
20033 | wxPyEndAllowThreads(__tstate); | |
20034 | if (PyErr_Occurred()) SWIG_fail; | |
20035 | } | |
20036 | resultobj = SWIG_Py_Void(); | |
20037 | return resultobj; | |
20038 | fail: | |
20039 | return NULL; | |
20040 | } | |
20041 | ||
20042 | ||
20043 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20044 | PyObject *resultobj = 0; | |
20045 | wxDC *arg1 = (wxDC *) 0 ; | |
20046 | wxRect *arg2 = 0 ; | |
20047 | void *argp1 = 0 ; | |
20048 | int res1 = 0 ; | |
20049 | wxRect temp2 ; | |
20050 | PyObject * obj0 = 0 ; | |
20051 | PyObject * obj1 = 0 ; | |
20052 | char * kwnames[] = { | |
20053 | (char *) "self",(char *) "rect", NULL | |
20054 | }; | |
20055 | ||
20056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
20057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20058 | if (!SWIG_IsOK(res1)) { | |
20059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20060 | } | |
20061 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20062 | { | |
20063 | arg2 = &temp2; | |
20064 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20065 | } | |
20066 | { | |
20067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20068 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
20069 | wxPyEndAllowThreads(__tstate); | |
20070 | if (PyErr_Occurred()) SWIG_fail; | |
20071 | } | |
20072 | resultobj = SWIG_Py_Void(); | |
20073 | return resultobj; | |
20074 | fail: | |
20075 | return NULL; | |
20076 | } | |
20077 | ||
20078 | ||
20079 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20080 | PyObject *resultobj = 0; | |
20081 | wxDC *arg1 = (wxDC *) 0 ; | |
20082 | int arg2 ; | |
20083 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20084 | int arg4 = (int) 0 ; | |
20085 | int arg5 = (int) 0 ; | |
20086 | void *argp1 = 0 ; | |
20087 | int res1 = 0 ; | |
20088 | int val4 ; | |
20089 | int ecode4 = 0 ; | |
20090 | int val5 ; | |
20091 | int ecode5 = 0 ; | |
20092 | PyObject * obj0 = 0 ; | |
20093 | PyObject * obj1 = 0 ; | |
20094 | PyObject * obj2 = 0 ; | |
20095 | PyObject * obj3 = 0 ; | |
20096 | char * kwnames[] = { | |
20097 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
20098 | }; | |
20099 | ||
20100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20102 | if (!SWIG_IsOK(res1)) { | |
20103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20104 | } | |
20105 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20106 | { | |
20107 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20108 | if (arg3 == NULL) SWIG_fail; | |
20109 | } | |
20110 | if (obj2) { | |
20111 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20112 | if (!SWIG_IsOK(ecode4)) { | |
20113 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
20114 | } | |
20115 | arg4 = static_cast< int >(val4); | |
20116 | } | |
20117 | if (obj3) { | |
20118 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20119 | if (!SWIG_IsOK(ecode5)) { | |
20120 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
20121 | } | |
20122 | arg5 = static_cast< int >(val5); | |
20123 | } | |
20124 | { | |
20125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20126 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
20127 | wxPyEndAllowThreads(__tstate); | |
20128 | if (PyErr_Occurred()) SWIG_fail; | |
20129 | } | |
20130 | resultobj = SWIG_Py_Void(); | |
20131 | { | |
20132 | if (arg3) delete [] arg3; | |
20133 | } | |
20134 | return resultobj; | |
20135 | fail: | |
20136 | { | |
20137 | if (arg3) delete [] arg3; | |
20138 | } | |
20139 | return NULL; | |
20140 | } | |
20141 | ||
20142 | ||
20143 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20144 | PyObject *resultobj = 0; | |
20145 | wxDC *arg1 = (wxDC *) 0 ; | |
20146 | int arg2 ; | |
20147 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20148 | int arg4 = (int) 0 ; | |
20149 | int arg5 = (int) 0 ; | |
20150 | int arg6 = (int) wxODDEVEN_RULE ; | |
20151 | void *argp1 = 0 ; | |
20152 | int res1 = 0 ; | |
20153 | int val4 ; | |
20154 | int ecode4 = 0 ; | |
20155 | int val5 ; | |
20156 | int ecode5 = 0 ; | |
20157 | int val6 ; | |
20158 | int ecode6 = 0 ; | |
20159 | PyObject * obj0 = 0 ; | |
20160 | PyObject * obj1 = 0 ; | |
20161 | PyObject * obj2 = 0 ; | |
20162 | PyObject * obj3 = 0 ; | |
20163 | PyObject * obj4 = 0 ; | |
20164 | char * kwnames[] = { | |
20165 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
20166 | }; | |
20167 | ||
20168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20170 | if (!SWIG_IsOK(res1)) { | |
20171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20172 | } | |
20173 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20174 | { | |
20175 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20176 | if (arg3 == NULL) SWIG_fail; | |
20177 | } | |
20178 | if (obj2) { | |
20179 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20180 | if (!SWIG_IsOK(ecode4)) { | |
20181 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
20182 | } | |
20183 | arg4 = static_cast< int >(val4); | |
20184 | } | |
20185 | if (obj3) { | |
20186 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20187 | if (!SWIG_IsOK(ecode5)) { | |
20188 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
20189 | } | |
20190 | arg5 = static_cast< int >(val5); | |
20191 | } | |
20192 | if (obj4) { | |
20193 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
20194 | if (!SWIG_IsOK(ecode6)) { | |
20195 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
20196 | } | |
20197 | arg6 = static_cast< int >(val6); | |
20198 | } | |
20199 | { | |
20200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20201 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
20202 | wxPyEndAllowThreads(__tstate); | |
20203 | if (PyErr_Occurred()) SWIG_fail; | |
20204 | } | |
20205 | resultobj = SWIG_Py_Void(); | |
20206 | { | |
20207 | if (arg3) delete [] arg3; | |
20208 | } | |
20209 | return resultobj; | |
20210 | fail: | |
20211 | { | |
20212 | if (arg3) delete [] arg3; | |
20213 | } | |
20214 | return NULL; | |
20215 | } | |
20216 | ||
20217 | ||
20218 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20219 | PyObject *resultobj = 0; | |
20220 | wxDC *arg1 = (wxDC *) 0 ; | |
20221 | wxString *arg2 = 0 ; | |
20222 | wxRect *arg3 = 0 ; | |
20223 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20224 | int arg5 = (int) -1 ; | |
20225 | void *argp1 = 0 ; | |
20226 | int res1 = 0 ; | |
20227 | bool temp2 = false ; | |
20228 | wxRect temp3 ; | |
20229 | int val4 ; | |
20230 | int ecode4 = 0 ; | |
20231 | int val5 ; | |
20232 | int ecode5 = 0 ; | |
20233 | PyObject * obj0 = 0 ; | |
20234 | PyObject * obj1 = 0 ; | |
20235 | PyObject * obj2 = 0 ; | |
20236 | PyObject * obj3 = 0 ; | |
20237 | PyObject * obj4 = 0 ; | |
20238 | char * kwnames[] = { | |
20239 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20240 | }; | |
20241 | ||
20242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20244 | if (!SWIG_IsOK(res1)) { | |
20245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20246 | } | |
20247 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20248 | { | |
20249 | arg2 = wxString_in_helper(obj1); | |
20250 | if (arg2 == NULL) SWIG_fail; | |
20251 | temp2 = true; | |
20252 | } | |
20253 | { | |
20254 | arg3 = &temp3; | |
20255 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20256 | } | |
20257 | if (obj3) { | |
20258 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20259 | if (!SWIG_IsOK(ecode4)) { | |
20260 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20261 | } | |
20262 | arg4 = static_cast< int >(val4); | |
20263 | } | |
20264 | if (obj4) { | |
20265 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20266 | if (!SWIG_IsOK(ecode5)) { | |
20267 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20268 | } | |
20269 | arg5 = static_cast< int >(val5); | |
20270 | } | |
20271 | { | |
20272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20273 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20274 | wxPyEndAllowThreads(__tstate); | |
20275 | if (PyErr_Occurred()) SWIG_fail; | |
20276 | } | |
20277 | resultobj = SWIG_Py_Void(); | |
20278 | { | |
20279 | if (temp2) | |
20280 | delete arg2; | |
20281 | } | |
20282 | return resultobj; | |
20283 | fail: | |
20284 | { | |
20285 | if (temp2) | |
20286 | delete arg2; | |
20287 | } | |
20288 | return NULL; | |
20289 | } | |
20290 | ||
20291 | ||
20292 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20293 | PyObject *resultobj = 0; | |
20294 | wxDC *arg1 = (wxDC *) 0 ; | |
20295 | wxString *arg2 = 0 ; | |
20296 | wxBitmap *arg3 = 0 ; | |
20297 | wxRect *arg4 = 0 ; | |
20298 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20299 | int arg6 = (int) -1 ; | |
20300 | wxRect result; | |
20301 | void *argp1 = 0 ; | |
20302 | int res1 = 0 ; | |
20303 | bool temp2 = false ; | |
20304 | void *argp3 = 0 ; | |
20305 | int res3 = 0 ; | |
20306 | wxRect temp4 ; | |
20307 | int val5 ; | |
20308 | int ecode5 = 0 ; | |
20309 | int val6 ; | |
20310 | int ecode6 = 0 ; | |
20311 | PyObject * obj0 = 0 ; | |
20312 | PyObject * obj1 = 0 ; | |
20313 | PyObject * obj2 = 0 ; | |
20314 | PyObject * obj3 = 0 ; | |
20315 | PyObject * obj4 = 0 ; | |
20316 | PyObject * obj5 = 0 ; | |
20317 | char * kwnames[] = { | |
20318 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20319 | }; | |
20320 | ||
20321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20323 | if (!SWIG_IsOK(res1)) { | |
20324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20325 | } | |
20326 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20327 | { | |
20328 | arg2 = wxString_in_helper(obj1); | |
20329 | if (arg2 == NULL) SWIG_fail; | |
20330 | temp2 = true; | |
20331 | } | |
20332 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20333 | if (!SWIG_IsOK(res3)) { | |
20334 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20335 | } | |
20336 | if (!argp3) { | |
20337 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20338 | } | |
20339 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20340 | { | |
20341 | arg4 = &temp4; | |
20342 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20343 | } | |
20344 | if (obj4) { | |
20345 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20346 | if (!SWIG_IsOK(ecode5)) { | |
20347 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
20348 | } | |
20349 | arg5 = static_cast< int >(val5); | |
20350 | } | |
20351 | if (obj5) { | |
20352 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20353 | if (!SWIG_IsOK(ecode6)) { | |
20354 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
20355 | } | |
20356 | arg6 = static_cast< int >(val6); | |
20357 | } | |
20358 | { | |
20359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20360 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
20361 | wxPyEndAllowThreads(__tstate); | |
20362 | if (PyErr_Occurred()) SWIG_fail; | |
20363 | } | |
20364 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20365 | { | |
20366 | if (temp2) | |
20367 | delete arg2; | |
20368 | } | |
20369 | return resultobj; | |
20370 | fail: | |
20371 | { | |
20372 | if (temp2) | |
20373 | delete arg2; | |
20374 | } | |
20375 | return NULL; | |
20376 | } | |
20377 | ||
20378 | ||
20379 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20380 | PyObject *resultobj = 0; | |
20381 | wxDC *arg1 = (wxDC *) 0 ; | |
20382 | int arg2 ; | |
20383 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20384 | void *argp1 = 0 ; | |
20385 | int res1 = 0 ; | |
20386 | PyObject * obj0 = 0 ; | |
20387 | PyObject * obj1 = 0 ; | |
20388 | char * kwnames[] = { | |
20389 | (char *) "self",(char *) "points", NULL | |
20390 | }; | |
20391 | ||
20392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
20393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20394 | if (!SWIG_IsOK(res1)) { | |
20395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20396 | } | |
20397 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20398 | { | |
20399 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20400 | if (arg3 == NULL) SWIG_fail; | |
20401 | } | |
20402 | { | |
20403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20404 | (arg1)->DrawSpline(arg2,arg3); | |
20405 | wxPyEndAllowThreads(__tstate); | |
20406 | if (PyErr_Occurred()) SWIG_fail; | |
20407 | } | |
20408 | resultobj = SWIG_Py_Void(); | |
20409 | { | |
20410 | if (arg3) delete [] arg3; | |
20411 | } | |
20412 | return resultobj; | |
20413 | fail: | |
20414 | { | |
20415 | if (arg3) delete [] arg3; | |
20416 | } | |
20417 | return NULL; | |
20418 | } | |
20419 | ||
20420 | ||
20421 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20422 | PyObject *resultobj = 0; | |
20423 | wxDC *arg1 = (wxDC *) 0 ; | |
20424 | void *argp1 = 0 ; | |
20425 | int res1 = 0 ; | |
20426 | PyObject *swig_obj[1] ; | |
20427 | ||
20428 | if (!args) SWIG_fail; | |
20429 | swig_obj[0] = args; | |
20430 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20431 | if (!SWIG_IsOK(res1)) { | |
20432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20433 | } | |
20434 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20435 | { | |
20436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20437 | (arg1)->Clear(); | |
20438 | wxPyEndAllowThreads(__tstate); | |
20439 | if (PyErr_Occurred()) SWIG_fail; | |
20440 | } | |
20441 | resultobj = SWIG_Py_Void(); | |
20442 | return resultobj; | |
20443 | fail: | |
20444 | return NULL; | |
20445 | } | |
20446 | ||
20447 | ||
20448 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20449 | PyObject *resultobj = 0; | |
20450 | wxDC *arg1 = (wxDC *) 0 ; | |
20451 | wxString *arg2 = 0 ; | |
20452 | bool result; | |
20453 | void *argp1 = 0 ; | |
20454 | int res1 = 0 ; | |
20455 | bool temp2 = false ; | |
20456 | PyObject * obj0 = 0 ; | |
20457 | PyObject * obj1 = 0 ; | |
20458 | char * kwnames[] = { | |
20459 | (char *) "self",(char *) "message", NULL | |
20460 | }; | |
20461 | ||
20462 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
20463 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20464 | if (!SWIG_IsOK(res1)) { | |
20465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20466 | } | |
20467 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20468 | { | |
20469 | arg2 = wxString_in_helper(obj1); | |
20470 | if (arg2 == NULL) SWIG_fail; | |
20471 | temp2 = true; | |
20472 | } | |
20473 | { | |
20474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20475 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
20476 | wxPyEndAllowThreads(__tstate); | |
20477 | if (PyErr_Occurred()) SWIG_fail; | |
20478 | } | |
20479 | { | |
20480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20481 | } | |
20482 | { | |
20483 | if (temp2) | |
20484 | delete arg2; | |
20485 | } | |
20486 | return resultobj; | |
20487 | fail: | |
20488 | { | |
20489 | if (temp2) | |
20490 | delete arg2; | |
20491 | } | |
20492 | return NULL; | |
20493 | } | |
20494 | ||
20495 | ||
20496 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20497 | PyObject *resultobj = 0; | |
20498 | wxDC *arg1 = (wxDC *) 0 ; | |
20499 | void *argp1 = 0 ; | |
20500 | int res1 = 0 ; | |
20501 | PyObject *swig_obj[1] ; | |
20502 | ||
20503 | if (!args) SWIG_fail; | |
20504 | swig_obj[0] = args; | |
20505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20506 | if (!SWIG_IsOK(res1)) { | |
20507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20508 | } | |
20509 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20510 | { | |
20511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20512 | (arg1)->EndDoc(); | |
20513 | wxPyEndAllowThreads(__tstate); | |
20514 | if (PyErr_Occurred()) SWIG_fail; | |
20515 | } | |
20516 | resultobj = SWIG_Py_Void(); | |
20517 | return resultobj; | |
20518 | fail: | |
20519 | return NULL; | |
20520 | } | |
20521 | ||
20522 | ||
20523 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20524 | PyObject *resultobj = 0; | |
20525 | wxDC *arg1 = (wxDC *) 0 ; | |
20526 | void *argp1 = 0 ; | |
20527 | int res1 = 0 ; | |
20528 | PyObject *swig_obj[1] ; | |
20529 | ||
20530 | if (!args) SWIG_fail; | |
20531 | swig_obj[0] = args; | |
20532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20533 | if (!SWIG_IsOK(res1)) { | |
20534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20535 | } | |
20536 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20537 | { | |
20538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20539 | (arg1)->StartPage(); | |
20540 | wxPyEndAllowThreads(__tstate); | |
20541 | if (PyErr_Occurred()) SWIG_fail; | |
20542 | } | |
20543 | resultobj = SWIG_Py_Void(); | |
20544 | return resultobj; | |
20545 | fail: | |
20546 | return NULL; | |
20547 | } | |
20548 | ||
20549 | ||
20550 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20551 | PyObject *resultobj = 0; | |
20552 | wxDC *arg1 = (wxDC *) 0 ; | |
20553 | void *argp1 = 0 ; | |
20554 | int res1 = 0 ; | |
20555 | PyObject *swig_obj[1] ; | |
20556 | ||
20557 | if (!args) SWIG_fail; | |
20558 | swig_obj[0] = args; | |
20559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20560 | if (!SWIG_IsOK(res1)) { | |
20561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20562 | } | |
20563 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20564 | { | |
20565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20566 | (arg1)->EndPage(); | |
20567 | wxPyEndAllowThreads(__tstate); | |
20568 | if (PyErr_Occurred()) SWIG_fail; | |
20569 | } | |
20570 | resultobj = SWIG_Py_Void(); | |
20571 | return resultobj; | |
20572 | fail: | |
20573 | return NULL; | |
20574 | } | |
20575 | ||
20576 | ||
20577 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20578 | PyObject *resultobj = 0; | |
20579 | wxDC *arg1 = (wxDC *) 0 ; | |
20580 | wxFont *arg2 = 0 ; | |
20581 | void *argp1 = 0 ; | |
20582 | int res1 = 0 ; | |
20583 | void *argp2 = 0 ; | |
20584 | int res2 = 0 ; | |
20585 | PyObject * obj0 = 0 ; | |
20586 | PyObject * obj1 = 0 ; | |
20587 | char * kwnames[] = { | |
20588 | (char *) "self",(char *) "font", NULL | |
20589 | }; | |
20590 | ||
20591 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
20592 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20593 | if (!SWIG_IsOK(res1)) { | |
20594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20595 | } | |
20596 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20597 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
20598 | if (!SWIG_IsOK(res2)) { | |
20599 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20600 | } | |
20601 | if (!argp2) { | |
20602 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20603 | } | |
20604 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
20605 | { | |
20606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20607 | (arg1)->SetFont((wxFont const &)*arg2); | |
20608 | wxPyEndAllowThreads(__tstate); | |
20609 | if (PyErr_Occurred()) SWIG_fail; | |
20610 | } | |
20611 | resultobj = SWIG_Py_Void(); | |
20612 | return resultobj; | |
20613 | fail: | |
20614 | return NULL; | |
20615 | } | |
20616 | ||
20617 | ||
20618 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20619 | PyObject *resultobj = 0; | |
20620 | wxDC *arg1 = (wxDC *) 0 ; | |
20621 | wxPen *arg2 = 0 ; | |
20622 | void *argp1 = 0 ; | |
20623 | int res1 = 0 ; | |
20624 | void *argp2 = 0 ; | |
20625 | int res2 = 0 ; | |
20626 | PyObject * obj0 = 0 ; | |
20627 | PyObject * obj1 = 0 ; | |
20628 | char * kwnames[] = { | |
20629 | (char *) "self",(char *) "pen", NULL | |
20630 | }; | |
20631 | ||
20632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
20633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20634 | if (!SWIG_IsOK(res1)) { | |
20635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20636 | } | |
20637 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20638 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
20639 | if (!SWIG_IsOK(res2)) { | |
20640 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20641 | } | |
20642 | if (!argp2) { | |
20643 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20644 | } | |
20645 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
20646 | { | |
20647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20648 | (arg1)->SetPen((wxPen const &)*arg2); | |
20649 | wxPyEndAllowThreads(__tstate); | |
20650 | if (PyErr_Occurred()) SWIG_fail; | |
20651 | } | |
20652 | resultobj = SWIG_Py_Void(); | |
20653 | return resultobj; | |
20654 | fail: | |
20655 | return NULL; | |
20656 | } | |
20657 | ||
20658 | ||
20659 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20660 | PyObject *resultobj = 0; | |
20661 | wxDC *arg1 = (wxDC *) 0 ; | |
20662 | wxBrush *arg2 = 0 ; | |
20663 | void *argp1 = 0 ; | |
20664 | int res1 = 0 ; | |
20665 | void *argp2 = 0 ; | |
20666 | int res2 = 0 ; | |
20667 | PyObject * obj0 = 0 ; | |
20668 | PyObject * obj1 = 0 ; | |
20669 | char * kwnames[] = { | |
20670 | (char *) "self",(char *) "brush", NULL | |
20671 | }; | |
20672 | ||
20673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
20674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20675 | if (!SWIG_IsOK(res1)) { | |
20676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20677 | } | |
20678 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20679 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20680 | if (!SWIG_IsOK(res2)) { | |
20681 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20682 | } | |
20683 | if (!argp2) { | |
20684 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20685 | } | |
20686 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20687 | { | |
20688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20689 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
20690 | wxPyEndAllowThreads(__tstate); | |
20691 | if (PyErr_Occurred()) SWIG_fail; | |
20692 | } | |
20693 | resultobj = SWIG_Py_Void(); | |
20694 | return resultobj; | |
20695 | fail: | |
20696 | return NULL; | |
20697 | } | |
20698 | ||
20699 | ||
20700 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20701 | PyObject *resultobj = 0; | |
20702 | wxDC *arg1 = (wxDC *) 0 ; | |
20703 | wxBrush *arg2 = 0 ; | |
20704 | void *argp1 = 0 ; | |
20705 | int res1 = 0 ; | |
20706 | void *argp2 = 0 ; | |
20707 | int res2 = 0 ; | |
20708 | PyObject * obj0 = 0 ; | |
20709 | PyObject * obj1 = 0 ; | |
20710 | char * kwnames[] = { | |
20711 | (char *) "self",(char *) "brush", NULL | |
20712 | }; | |
20713 | ||
20714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
20715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20716 | if (!SWIG_IsOK(res1)) { | |
20717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20718 | } | |
20719 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20720 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20721 | if (!SWIG_IsOK(res2)) { | |
20722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20723 | } | |
20724 | if (!argp2) { | |
20725 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20726 | } | |
20727 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20728 | { | |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20730 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
20731 | wxPyEndAllowThreads(__tstate); | |
20732 | if (PyErr_Occurred()) SWIG_fail; | |
20733 | } | |
20734 | resultobj = SWIG_Py_Void(); | |
20735 | return resultobj; | |
20736 | fail: | |
20737 | return NULL; | |
20738 | } | |
20739 | ||
20740 | ||
20741 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20742 | PyObject *resultobj = 0; | |
20743 | wxDC *arg1 = (wxDC *) 0 ; | |
20744 | int arg2 ; | |
20745 | void *argp1 = 0 ; | |
20746 | int res1 = 0 ; | |
20747 | int val2 ; | |
20748 | int ecode2 = 0 ; | |
20749 | PyObject * obj0 = 0 ; | |
20750 | PyObject * obj1 = 0 ; | |
20751 | char * kwnames[] = { | |
20752 | (char *) "self",(char *) "mode", NULL | |
20753 | }; | |
20754 | ||
20755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
20756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20757 | if (!SWIG_IsOK(res1)) { | |
20758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20759 | } | |
20760 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20761 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20762 | if (!SWIG_IsOK(ecode2)) { | |
20763 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
20764 | } | |
20765 | arg2 = static_cast< int >(val2); | |
20766 | { | |
20767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20768 | (arg1)->SetBackgroundMode(arg2); | |
20769 | wxPyEndAllowThreads(__tstate); | |
20770 | if (PyErr_Occurred()) SWIG_fail; | |
20771 | } | |
20772 | resultobj = SWIG_Py_Void(); | |
20773 | return resultobj; | |
20774 | fail: | |
20775 | return NULL; | |
20776 | } | |
20777 | ||
20778 | ||
20779 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20780 | PyObject *resultobj = 0; | |
20781 | wxDC *arg1 = (wxDC *) 0 ; | |
20782 | wxPalette *arg2 = 0 ; | |
20783 | void *argp1 = 0 ; | |
20784 | int res1 = 0 ; | |
20785 | void *argp2 = 0 ; | |
20786 | int res2 = 0 ; | |
20787 | PyObject * obj0 = 0 ; | |
20788 | PyObject * obj1 = 0 ; | |
20789 | char * kwnames[] = { | |
20790 | (char *) "self",(char *) "palette", NULL | |
20791 | }; | |
20792 | ||
20793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
20794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20795 | if (!SWIG_IsOK(res1)) { | |
20796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20797 | } | |
20798 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20799 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
20800 | if (!SWIG_IsOK(res2)) { | |
20801 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20802 | } | |
20803 | if (!argp2) { | |
20804 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20805 | } | |
20806 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
20807 | { | |
20808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20809 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
20810 | wxPyEndAllowThreads(__tstate); | |
20811 | if (PyErr_Occurred()) SWIG_fail; | |
20812 | } | |
20813 | resultobj = SWIG_Py_Void(); | |
20814 | return resultobj; | |
20815 | fail: | |
20816 | return NULL; | |
20817 | } | |
20818 | ||
20819 | ||
20820 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20821 | PyObject *resultobj = 0; | |
20822 | wxDC *arg1 = (wxDC *) 0 ; | |
20823 | void *argp1 = 0 ; | |
20824 | int res1 = 0 ; | |
20825 | PyObject *swig_obj[1] ; | |
20826 | ||
20827 | if (!args) SWIG_fail; | |
20828 | swig_obj[0] = args; | |
20829 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20830 | if (!SWIG_IsOK(res1)) { | |
20831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20832 | } | |
20833 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20834 | { | |
20835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20836 | (arg1)->DestroyClippingRegion(); | |
20837 | wxPyEndAllowThreads(__tstate); | |
20838 | if (PyErr_Occurred()) SWIG_fail; | |
20839 | } | |
20840 | resultobj = SWIG_Py_Void(); | |
20841 | return resultobj; | |
20842 | fail: | |
20843 | return NULL; | |
20844 | } | |
20845 | ||
20846 | ||
20847 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20848 | PyObject *resultobj = 0; | |
20849 | wxDC *arg1 = (wxDC *) 0 ; | |
20850 | int *arg2 = (int *) 0 ; | |
20851 | int *arg3 = (int *) 0 ; | |
20852 | int *arg4 = (int *) 0 ; | |
20853 | int *arg5 = (int *) 0 ; | |
20854 | void *argp1 = 0 ; | |
20855 | int res1 = 0 ; | |
20856 | int temp2 ; | |
20857 | int res2 = SWIG_TMPOBJ ; | |
20858 | int temp3 ; | |
20859 | int res3 = SWIG_TMPOBJ ; | |
20860 | int temp4 ; | |
20861 | int res4 = SWIG_TMPOBJ ; | |
20862 | int temp5 ; | |
20863 | int res5 = SWIG_TMPOBJ ; | |
20864 | PyObject *swig_obj[1] ; | |
20865 | ||
20866 | arg2 = &temp2; | |
20867 | arg3 = &temp3; | |
20868 | arg4 = &temp4; | |
20869 | arg5 = &temp5; | |
20870 | if (!args) SWIG_fail; | |
20871 | swig_obj[0] = args; | |
20872 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20873 | if (!SWIG_IsOK(res1)) { | |
20874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20875 | } | |
20876 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20877 | { | |
20878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20879 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
20880 | wxPyEndAllowThreads(__tstate); | |
20881 | if (PyErr_Occurred()) SWIG_fail; | |
20882 | } | |
20883 | resultobj = SWIG_Py_Void(); | |
20884 | if (SWIG_IsTmpObj(res2)) { | |
20885 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20886 | } else { | |
20887 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20888 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20889 | } | |
20890 | if (SWIG_IsTmpObj(res3)) { | |
20891 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20892 | } else { | |
20893 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20894 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20895 | } | |
20896 | if (SWIG_IsTmpObj(res4)) { | |
20897 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20898 | } else { | |
20899 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20900 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20901 | } | |
20902 | if (SWIG_IsTmpObj(res5)) { | |
20903 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20904 | } else { | |
20905 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20906 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20907 | } | |
20908 | return resultobj; | |
20909 | fail: | |
20910 | return NULL; | |
20911 | } | |
20912 | ||
20913 | ||
20914 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20915 | PyObject *resultobj = 0; | |
20916 | wxDC *arg1 = (wxDC *) 0 ; | |
20917 | wxRect result; | |
20918 | void *argp1 = 0 ; | |
20919 | int res1 = 0 ; | |
20920 | PyObject *swig_obj[1] ; | |
20921 | ||
20922 | if (!args) SWIG_fail; | |
20923 | swig_obj[0] = args; | |
20924 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20925 | if (!SWIG_IsOK(res1)) { | |
20926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20927 | } | |
20928 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20929 | { | |
20930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20931 | result = wxDC_GetClippingRect(arg1); | |
20932 | wxPyEndAllowThreads(__tstate); | |
20933 | if (PyErr_Occurred()) SWIG_fail; | |
20934 | } | |
20935 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20936 | return resultobj; | |
20937 | fail: | |
20938 | return NULL; | |
20939 | } | |
20940 | ||
20941 | ||
20942 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20943 | PyObject *resultobj = 0; | |
20944 | wxDC *arg1 = (wxDC *) 0 ; | |
20945 | int result; | |
20946 | void *argp1 = 0 ; | |
20947 | int res1 = 0 ; | |
20948 | PyObject *swig_obj[1] ; | |
20949 | ||
20950 | if (!args) SWIG_fail; | |
20951 | swig_obj[0] = args; | |
20952 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20953 | if (!SWIG_IsOK(res1)) { | |
20954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20955 | } | |
20956 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20957 | { | |
20958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20959 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
20960 | wxPyEndAllowThreads(__tstate); | |
20961 | if (PyErr_Occurred()) SWIG_fail; | |
20962 | } | |
20963 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20964 | return resultobj; | |
20965 | fail: | |
20966 | return NULL; | |
20967 | } | |
20968 | ||
20969 | ||
20970 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20971 | PyObject *resultobj = 0; | |
20972 | wxDC *arg1 = (wxDC *) 0 ; | |
20973 | int result; | |
20974 | void *argp1 = 0 ; | |
20975 | int res1 = 0 ; | |
20976 | PyObject *swig_obj[1] ; | |
20977 | ||
20978 | if (!args) SWIG_fail; | |
20979 | swig_obj[0] = args; | |
20980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20981 | if (!SWIG_IsOK(res1)) { | |
20982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20983 | } | |
20984 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20985 | { | |
20986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20987 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
20988 | wxPyEndAllowThreads(__tstate); | |
20989 | if (PyErr_Occurred()) SWIG_fail; | |
20990 | } | |
20991 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20992 | return resultobj; | |
20993 | fail: | |
20994 | return NULL; | |
20995 | } | |
20996 | ||
20997 | ||
20998 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20999 | PyObject *resultobj = 0; | |
21000 | wxDC *arg1 = (wxDC *) 0 ; | |
21001 | wxString *arg2 = 0 ; | |
21002 | int *arg3 = (int *) 0 ; | |
21003 | int *arg4 = (int *) 0 ; | |
21004 | void *argp1 = 0 ; | |
21005 | int res1 = 0 ; | |
21006 | bool temp2 = false ; | |
21007 | int temp3 ; | |
21008 | int res3 = SWIG_TMPOBJ ; | |
21009 | int temp4 ; | |
21010 | int res4 = SWIG_TMPOBJ ; | |
21011 | PyObject * obj0 = 0 ; | |
21012 | PyObject * obj1 = 0 ; | |
21013 | char * kwnames[] = { | |
21014 | (char *) "self",(char *) "string", NULL | |
21015 | }; | |
21016 | ||
21017 | arg3 = &temp3; | |
21018 | arg4 = &temp4; | |
21019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21021 | if (!SWIG_IsOK(res1)) { | |
21022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21023 | } | |
21024 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21025 | { | |
21026 | arg2 = wxString_in_helper(obj1); | |
21027 | if (arg2 == NULL) SWIG_fail; | |
21028 | temp2 = true; | |
21029 | } | |
21030 | { | |
21031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21032 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
21033 | wxPyEndAllowThreads(__tstate); | |
21034 | if (PyErr_Occurred()) SWIG_fail; | |
21035 | } | |
21036 | resultobj = SWIG_Py_Void(); | |
21037 | if (SWIG_IsTmpObj(res3)) { | |
21038 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21039 | } else { | |
21040 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21041 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21042 | } | |
21043 | if (SWIG_IsTmpObj(res4)) { | |
21044 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21045 | } else { | |
21046 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21047 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21048 | } | |
21049 | { | |
21050 | if (temp2) | |
21051 | delete arg2; | |
21052 | } | |
21053 | return resultobj; | |
21054 | fail: | |
21055 | { | |
21056 | if (temp2) | |
21057 | delete arg2; | |
21058 | } | |
21059 | return NULL; | |
21060 | } | |
21061 | ||
21062 | ||
21063 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21064 | PyObject *resultobj = 0; | |
21065 | wxDC *arg1 = (wxDC *) 0 ; | |
21066 | wxString *arg2 = 0 ; | |
21067 | int *arg3 = (int *) 0 ; | |
21068 | int *arg4 = (int *) 0 ; | |
21069 | int *arg5 = (int *) 0 ; | |
21070 | int *arg6 = (int *) 0 ; | |
21071 | wxFont *arg7 = (wxFont *) NULL ; | |
21072 | void *argp1 = 0 ; | |
21073 | int res1 = 0 ; | |
21074 | bool temp2 = false ; | |
21075 | int temp3 ; | |
21076 | int res3 = SWIG_TMPOBJ ; | |
21077 | int temp4 ; | |
21078 | int res4 = SWIG_TMPOBJ ; | |
21079 | int temp5 ; | |
21080 | int res5 = SWIG_TMPOBJ ; | |
21081 | int temp6 ; | |
21082 | int res6 = SWIG_TMPOBJ ; | |
21083 | void *argp7 = 0 ; | |
21084 | int res7 = 0 ; | |
21085 | PyObject * obj0 = 0 ; | |
21086 | PyObject * obj1 = 0 ; | |
21087 | PyObject * obj2 = 0 ; | |
21088 | char * kwnames[] = { | |
21089 | (char *) "self",(char *) "string",(char *) "font", NULL | |
21090 | }; | |
21091 | ||
21092 | arg3 = &temp3; | |
21093 | arg4 = &temp4; | |
21094 | arg5 = &temp5; | |
21095 | arg6 = &temp6; | |
21096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21097 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21098 | if (!SWIG_IsOK(res1)) { | |
21099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21100 | } | |
21101 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21102 | { | |
21103 | arg2 = wxString_in_helper(obj1); | |
21104 | if (arg2 == NULL) SWIG_fail; | |
21105 | temp2 = true; | |
21106 | } | |
21107 | if (obj2) { | |
21108 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21109 | if (!SWIG_IsOK(res7)) { | |
21110 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 21111 | } |
0085ce49 RD |
21112 | arg7 = reinterpret_cast< wxFont * >(argp7); |
21113 | } | |
21114 | { | |
21115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21116 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
21117 | wxPyEndAllowThreads(__tstate); | |
21118 | if (PyErr_Occurred()) SWIG_fail; | |
21119 | } | |
21120 | resultobj = SWIG_Py_Void(); | |
21121 | if (SWIG_IsTmpObj(res3)) { | |
21122 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21123 | } else { | |
21124 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21125 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21126 | } | |
21127 | if (SWIG_IsTmpObj(res4)) { | |
21128 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21129 | } else { | |
21130 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21131 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21132 | } | |
21133 | if (SWIG_IsTmpObj(res5)) { | |
21134 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21135 | } else { | |
21136 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21137 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21138 | } | |
21139 | if (SWIG_IsTmpObj(res6)) { | |
21140 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
21141 | } else { | |
21142 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21143 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
21144 | } | |
21145 | { | |
21146 | if (temp2) | |
21147 | delete arg2; | |
21148 | } | |
21149 | return resultobj; | |
21150 | fail: | |
21151 | { | |
21152 | if (temp2) | |
21153 | delete arg2; | |
21154 | } | |
21155 | return NULL; | |
21156 | } | |
21157 | ||
21158 | ||
21159 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21160 | PyObject *resultobj = 0; | |
21161 | wxDC *arg1 = (wxDC *) 0 ; | |
21162 | wxString *arg2 = 0 ; | |
21163 | int *arg3 = (int *) 0 ; | |
21164 | int *arg4 = (int *) 0 ; | |
21165 | int *arg5 = (int *) 0 ; | |
21166 | wxFont *arg6 = (wxFont *) NULL ; | |
21167 | void *argp1 = 0 ; | |
21168 | int res1 = 0 ; | |
21169 | bool temp2 = false ; | |
21170 | int temp3 ; | |
21171 | int res3 = SWIG_TMPOBJ ; | |
21172 | int temp4 ; | |
21173 | int res4 = SWIG_TMPOBJ ; | |
21174 | int temp5 ; | |
21175 | int res5 = SWIG_TMPOBJ ; | |
21176 | void *argp6 = 0 ; | |
21177 | int res6 = 0 ; | |
21178 | PyObject * obj0 = 0 ; | |
21179 | PyObject * obj1 = 0 ; | |
21180 | PyObject * obj2 = 0 ; | |
21181 | char * kwnames[] = { | |
21182 | (char *) "self",(char *) "text",(char *) "font", NULL | |
21183 | }; | |
21184 | ||
21185 | arg3 = &temp3; | |
21186 | arg4 = &temp4; | |
21187 | arg5 = &temp5; | |
21188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21190 | if (!SWIG_IsOK(res1)) { | |
21191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21192 | } | |
21193 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21194 | { | |
21195 | arg2 = wxString_in_helper(obj1); | |
21196 | if (arg2 == NULL) SWIG_fail; | |
21197 | temp2 = true; | |
21198 | } | |
21199 | if (obj2) { | |
21200 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21201 | if (!SWIG_IsOK(res6)) { | |
21202 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 21203 | } |
0085ce49 RD |
21204 | arg6 = reinterpret_cast< wxFont * >(argp6); |
21205 | } | |
21206 | { | |
21207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21208 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
21209 | wxPyEndAllowThreads(__tstate); | |
21210 | if (PyErr_Occurred()) SWIG_fail; | |
21211 | } | |
21212 | resultobj = SWIG_Py_Void(); | |
21213 | if (SWIG_IsTmpObj(res3)) { | |
21214 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21215 | } else { | |
21216 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21217 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21218 | } | |
21219 | if (SWIG_IsTmpObj(res4)) { | |
21220 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21221 | } else { | |
21222 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21223 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21224 | } | |
21225 | if (SWIG_IsTmpObj(res5)) { | |
21226 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21227 | } else { | |
21228 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21229 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21230 | } | |
21231 | { | |
21232 | if (temp2) | |
21233 | delete arg2; | |
21234 | } | |
21235 | return resultobj; | |
21236 | fail: | |
21237 | { | |
21238 | if (temp2) | |
21239 | delete arg2; | |
21240 | } | |
21241 | return NULL; | |
21242 | } | |
21243 | ||
21244 | ||
21245 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21246 | PyObject *resultobj = 0; | |
21247 | wxDC *arg1 = (wxDC *) 0 ; | |
21248 | wxString *arg2 = 0 ; | |
21249 | wxArrayInt result; | |
21250 | void *argp1 = 0 ; | |
21251 | int res1 = 0 ; | |
21252 | bool temp2 = false ; | |
21253 | PyObject * obj0 = 0 ; | |
21254 | PyObject * obj1 = 0 ; | |
21255 | char * kwnames[] = { | |
21256 | (char *) "self",(char *) "text", NULL | |
21257 | }; | |
21258 | ||
21259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21261 | if (!SWIG_IsOK(res1)) { | |
21262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21263 | } | |
21264 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21265 | { | |
21266 | arg2 = wxString_in_helper(obj1); | |
21267 | if (arg2 == NULL) SWIG_fail; | |
21268 | temp2 = true; | |
21269 | } | |
21270 | { | |
21271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21272 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21273 | wxPyEndAllowThreads(__tstate); | |
21274 | if (PyErr_Occurred()) SWIG_fail; | |
21275 | } | |
21276 | { | |
b39fe951 | 21277 | resultobj = wxArrayInt2PyList_helper(result); |
0085ce49 RD |
21278 | } |
21279 | { | |
21280 | if (temp2) | |
21281 | delete arg2; | |
21282 | } | |
21283 | return resultobj; | |
21284 | fail: | |
21285 | { | |
21286 | if (temp2) | |
21287 | delete arg2; | |
21288 | } | |
21289 | return NULL; | |
21290 | } | |
21291 | ||
21292 | ||
21293 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21294 | PyObject *resultobj = 0; | |
21295 | wxDC *arg1 = (wxDC *) 0 ; | |
21296 | wxSize result; | |
21297 | void *argp1 = 0 ; | |
21298 | int res1 = 0 ; | |
21299 | PyObject *swig_obj[1] ; | |
21300 | ||
21301 | if (!args) SWIG_fail; | |
21302 | swig_obj[0] = args; | |
21303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21304 | if (!SWIG_IsOK(res1)) { | |
21305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21306 | } | |
21307 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21308 | { | |
21309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21310 | result = (arg1)->GetSize(); | |
21311 | wxPyEndAllowThreads(__tstate); | |
21312 | if (PyErr_Occurred()) SWIG_fail; | |
21313 | } | |
21314 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21315 | return resultobj; | |
21316 | fail: | |
21317 | return NULL; | |
21318 | } | |
21319 | ||
21320 | ||
21321 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21322 | PyObject *resultobj = 0; | |
21323 | wxDC *arg1 = (wxDC *) 0 ; | |
21324 | int *arg2 = (int *) 0 ; | |
21325 | int *arg3 = (int *) 0 ; | |
21326 | void *argp1 = 0 ; | |
21327 | int res1 = 0 ; | |
21328 | int temp2 ; | |
21329 | int res2 = SWIG_TMPOBJ ; | |
21330 | int temp3 ; | |
21331 | int res3 = SWIG_TMPOBJ ; | |
21332 | PyObject *swig_obj[1] ; | |
21333 | ||
21334 | arg2 = &temp2; | |
21335 | arg3 = &temp3; | |
21336 | if (!args) SWIG_fail; | |
21337 | swig_obj[0] = args; | |
21338 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21339 | if (!SWIG_IsOK(res1)) { | |
21340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21341 | } | |
21342 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21343 | { | |
21344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21345 | (arg1)->GetSize(arg2,arg3); | |
21346 | wxPyEndAllowThreads(__tstate); | |
21347 | if (PyErr_Occurred()) SWIG_fail; | |
21348 | } | |
21349 | resultobj = SWIG_Py_Void(); | |
21350 | if (SWIG_IsTmpObj(res2)) { | |
21351 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21352 | } else { | |
21353 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21354 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21355 | } | |
21356 | if (SWIG_IsTmpObj(res3)) { | |
21357 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21358 | } else { | |
21359 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21360 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21361 | } | |
21362 | return resultobj; | |
21363 | fail: | |
21364 | return NULL; | |
21365 | } | |
21366 | ||
21367 | ||
21368 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21369 | PyObject *resultobj = 0; | |
21370 | wxDC *arg1 = (wxDC *) 0 ; | |
21371 | wxSize result; | |
21372 | void *argp1 = 0 ; | |
21373 | int res1 = 0 ; | |
21374 | PyObject *swig_obj[1] ; | |
21375 | ||
21376 | if (!args) SWIG_fail; | |
21377 | swig_obj[0] = args; | |
21378 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21379 | if (!SWIG_IsOK(res1)) { | |
21380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21381 | } | |
21382 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21383 | { | |
21384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21385 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
21386 | wxPyEndAllowThreads(__tstate); | |
21387 | if (PyErr_Occurred()) SWIG_fail; | |
21388 | } | |
21389 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21390 | return resultobj; | |
21391 | fail: | |
21392 | return NULL; | |
21393 | } | |
21394 | ||
21395 | ||
21396 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21397 | PyObject *resultobj = 0; | |
21398 | wxDC *arg1 = (wxDC *) 0 ; | |
21399 | int *arg2 = (int *) 0 ; | |
21400 | int *arg3 = (int *) 0 ; | |
21401 | void *argp1 = 0 ; | |
21402 | int res1 = 0 ; | |
21403 | int temp2 ; | |
21404 | int res2 = SWIG_TMPOBJ ; | |
21405 | int temp3 ; | |
21406 | int res3 = SWIG_TMPOBJ ; | |
21407 | PyObject *swig_obj[1] ; | |
21408 | ||
21409 | arg2 = &temp2; | |
21410 | arg3 = &temp3; | |
21411 | if (!args) SWIG_fail; | |
21412 | swig_obj[0] = args; | |
21413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21414 | if (!SWIG_IsOK(res1)) { | |
21415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21416 | } | |
21417 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21418 | { | |
21419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21420 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
21421 | wxPyEndAllowThreads(__tstate); | |
21422 | if (PyErr_Occurred()) SWIG_fail; | |
21423 | } | |
21424 | resultobj = SWIG_Py_Void(); | |
21425 | if (SWIG_IsTmpObj(res2)) { | |
21426 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21427 | } else { | |
21428 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21429 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21430 | } | |
21431 | if (SWIG_IsTmpObj(res3)) { | |
21432 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21433 | } else { | |
21434 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21435 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21436 | } | |
21437 | return resultobj; | |
21438 | fail: | |
21439 | return NULL; | |
21440 | } | |
21441 | ||
21442 | ||
21443 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21444 | PyObject *resultobj = 0; | |
21445 | wxDC *arg1 = (wxDC *) 0 ; | |
21446 | int arg2 ; | |
21447 | int result; | |
21448 | void *argp1 = 0 ; | |
21449 | int res1 = 0 ; | |
21450 | int val2 ; | |
21451 | int ecode2 = 0 ; | |
21452 | PyObject * obj0 = 0 ; | |
21453 | PyObject * obj1 = 0 ; | |
21454 | char * kwnames[] = { | |
21455 | (char *) "self",(char *) "x", NULL | |
21456 | }; | |
21457 | ||
21458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21460 | if (!SWIG_IsOK(res1)) { | |
21461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21462 | } | |
21463 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21464 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21465 | if (!SWIG_IsOK(ecode2)) { | |
21466 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
21467 | } | |
21468 | arg2 = static_cast< int >(val2); | |
21469 | { | |
21470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21471 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
21472 | wxPyEndAllowThreads(__tstate); | |
21473 | if (PyErr_Occurred()) SWIG_fail; | |
21474 | } | |
21475 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21476 | return resultobj; | |
21477 | fail: | |
21478 | return NULL; | |
21479 | } | |
21480 | ||
21481 | ||
21482 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21483 | PyObject *resultobj = 0; | |
21484 | wxDC *arg1 = (wxDC *) 0 ; | |
21485 | int arg2 ; | |
21486 | int result; | |
21487 | void *argp1 = 0 ; | |
21488 | int res1 = 0 ; | |
21489 | int val2 ; | |
21490 | int ecode2 = 0 ; | |
21491 | PyObject * obj0 = 0 ; | |
21492 | PyObject * obj1 = 0 ; | |
21493 | char * kwnames[] = { | |
21494 | (char *) "self",(char *) "y", NULL | |
21495 | }; | |
21496 | ||
21497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21499 | if (!SWIG_IsOK(res1)) { | |
21500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21501 | } | |
21502 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21503 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21504 | if (!SWIG_IsOK(ecode2)) { | |
21505 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
21506 | } | |
21507 | arg2 = static_cast< int >(val2); | |
21508 | { | |
21509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21510 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
21511 | wxPyEndAllowThreads(__tstate); | |
21512 | if (PyErr_Occurred()) SWIG_fail; | |
21513 | } | |
21514 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21515 | return resultobj; | |
21516 | fail: | |
21517 | return NULL; | |
21518 | } | |
21519 | ||
21520 | ||
21521 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21522 | PyObject *resultobj = 0; | |
21523 | wxDC *arg1 = (wxDC *) 0 ; | |
21524 | int arg2 ; | |
21525 | int result; | |
21526 | void *argp1 = 0 ; | |
21527 | int res1 = 0 ; | |
21528 | int val2 ; | |
21529 | int ecode2 = 0 ; | |
21530 | PyObject * obj0 = 0 ; | |
21531 | PyObject * obj1 = 0 ; | |
21532 | char * kwnames[] = { | |
21533 | (char *) "self",(char *) "x", NULL | |
21534 | }; | |
21535 | ||
21536 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21537 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21538 | if (!SWIG_IsOK(res1)) { | |
21539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21540 | } | |
21541 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21542 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21543 | if (!SWIG_IsOK(ecode2)) { | |
21544 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
21545 | } | |
21546 | arg2 = static_cast< int >(val2); | |
21547 | { | |
21548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21549 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
21550 | wxPyEndAllowThreads(__tstate); | |
21551 | if (PyErr_Occurred()) SWIG_fail; | |
21552 | } | |
21553 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21554 | return resultobj; | |
21555 | fail: | |
21556 | return NULL; | |
21557 | } | |
21558 | ||
21559 | ||
21560 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21561 | PyObject *resultobj = 0; | |
21562 | wxDC *arg1 = (wxDC *) 0 ; | |
21563 | int arg2 ; | |
21564 | int result; | |
21565 | void *argp1 = 0 ; | |
21566 | int res1 = 0 ; | |
21567 | int val2 ; | |
21568 | int ecode2 = 0 ; | |
21569 | PyObject * obj0 = 0 ; | |
21570 | PyObject * obj1 = 0 ; | |
21571 | char * kwnames[] = { | |
21572 | (char *) "self",(char *) "y", NULL | |
21573 | }; | |
21574 | ||
21575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21577 | if (!SWIG_IsOK(res1)) { | |
21578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21579 | } | |
21580 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21581 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21582 | if (!SWIG_IsOK(ecode2)) { | |
21583 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
21584 | } | |
21585 | arg2 = static_cast< int >(val2); | |
21586 | { | |
21587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21588 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
21589 | wxPyEndAllowThreads(__tstate); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
21591 | } | |
21592 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21593 | return resultobj; | |
21594 | fail: | |
21595 | return NULL; | |
21596 | } | |
21597 | ||
21598 | ||
21599 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21600 | PyObject *resultobj = 0; | |
21601 | wxDC *arg1 = (wxDC *) 0 ; | |
21602 | int arg2 ; | |
21603 | int result; | |
21604 | void *argp1 = 0 ; | |
21605 | int res1 = 0 ; | |
21606 | int val2 ; | |
21607 | int ecode2 = 0 ; | |
21608 | PyObject * obj0 = 0 ; | |
21609 | PyObject * obj1 = 0 ; | |
21610 | char * kwnames[] = { | |
21611 | (char *) "self",(char *) "x", NULL | |
21612 | }; | |
21613 | ||
21614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21616 | if (!SWIG_IsOK(res1)) { | |
21617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21618 | } | |
21619 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21620 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21621 | if (!SWIG_IsOK(ecode2)) { | |
21622 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
21623 | } | |
21624 | arg2 = static_cast< int >(val2); | |
21625 | { | |
21626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21627 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
21628 | wxPyEndAllowThreads(__tstate); | |
21629 | if (PyErr_Occurred()) SWIG_fail; | |
21630 | } | |
21631 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21632 | return resultobj; | |
21633 | fail: | |
21634 | return NULL; | |
21635 | } | |
21636 | ||
21637 | ||
21638 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21639 | PyObject *resultobj = 0; | |
21640 | wxDC *arg1 = (wxDC *) 0 ; | |
21641 | int arg2 ; | |
21642 | int result; | |
21643 | void *argp1 = 0 ; | |
21644 | int res1 = 0 ; | |
21645 | int val2 ; | |
21646 | int ecode2 = 0 ; | |
21647 | PyObject * obj0 = 0 ; | |
21648 | PyObject * obj1 = 0 ; | |
21649 | char * kwnames[] = { | |
21650 | (char *) "self",(char *) "y", NULL | |
21651 | }; | |
21652 | ||
21653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21654 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21655 | if (!SWIG_IsOK(res1)) { | |
21656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21657 | } | |
21658 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21659 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21660 | if (!SWIG_IsOK(ecode2)) { | |
21661 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
21662 | } | |
21663 | arg2 = static_cast< int >(val2); | |
21664 | { | |
21665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21666 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
21667 | wxPyEndAllowThreads(__tstate); | |
21668 | if (PyErr_Occurred()) SWIG_fail; | |
21669 | } | |
21670 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21671 | return resultobj; | |
21672 | fail: | |
21673 | return NULL; | |
21674 | } | |
21675 | ||
21676 | ||
21677 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21678 | PyObject *resultobj = 0; | |
21679 | wxDC *arg1 = (wxDC *) 0 ; | |
21680 | int arg2 ; | |
21681 | int result; | |
21682 | void *argp1 = 0 ; | |
21683 | int res1 = 0 ; | |
21684 | int val2 ; | |
21685 | int ecode2 = 0 ; | |
21686 | PyObject * obj0 = 0 ; | |
21687 | PyObject * obj1 = 0 ; | |
21688 | char * kwnames[] = { | |
21689 | (char *) "self",(char *) "x", NULL | |
21690 | }; | |
21691 | ||
21692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21694 | if (!SWIG_IsOK(res1)) { | |
21695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21696 | } | |
21697 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21698 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21699 | if (!SWIG_IsOK(ecode2)) { | |
21700 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
21701 | } | |
21702 | arg2 = static_cast< int >(val2); | |
21703 | { | |
21704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21705 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
21706 | wxPyEndAllowThreads(__tstate); | |
21707 | if (PyErr_Occurred()) SWIG_fail; | |
21708 | } | |
21709 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21710 | return resultobj; | |
21711 | fail: | |
21712 | return NULL; | |
21713 | } | |
21714 | ||
21715 | ||
21716 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21717 | PyObject *resultobj = 0; | |
21718 | wxDC *arg1 = (wxDC *) 0 ; | |
21719 | int arg2 ; | |
21720 | int result; | |
21721 | void *argp1 = 0 ; | |
21722 | int res1 = 0 ; | |
21723 | int val2 ; | |
21724 | int ecode2 = 0 ; | |
21725 | PyObject * obj0 = 0 ; | |
21726 | PyObject * obj1 = 0 ; | |
21727 | char * kwnames[] = { | |
21728 | (char *) "self",(char *) "y", NULL | |
21729 | }; | |
21730 | ||
21731 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21732 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21733 | if (!SWIG_IsOK(res1)) { | |
21734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21735 | } | |
21736 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21737 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21738 | if (!SWIG_IsOK(ecode2)) { | |
21739 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
21740 | } | |
21741 | arg2 = static_cast< int >(val2); | |
21742 | { | |
21743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21744 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
21745 | wxPyEndAllowThreads(__tstate); | |
21746 | if (PyErr_Occurred()) SWIG_fail; | |
21747 | } | |
21748 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21749 | return resultobj; | |
21750 | fail: | |
21751 | return NULL; | |
21752 | } | |
21753 | ||
21754 | ||
21755 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21756 | PyObject *resultobj = 0; | |
21757 | wxDC *arg1 = (wxDC *) 0 ; | |
21758 | bool result; | |
21759 | void *argp1 = 0 ; | |
21760 | int res1 = 0 ; | |
21761 | PyObject *swig_obj[1] ; | |
21762 | ||
21763 | if (!args) SWIG_fail; | |
21764 | swig_obj[0] = args; | |
21765 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21766 | if (!SWIG_IsOK(res1)) { | |
21767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21768 | } | |
21769 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21770 | { | |
21771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21772 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
21773 | wxPyEndAllowThreads(__tstate); | |
21774 | if (PyErr_Occurred()) SWIG_fail; | |
21775 | } | |
21776 | { | |
21777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21778 | } | |
21779 | return resultobj; | |
21780 | fail: | |
21781 | return NULL; | |
21782 | } | |
21783 | ||
21784 | ||
21785 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21786 | PyObject *resultobj = 0; | |
21787 | wxDC *arg1 = (wxDC *) 0 ; | |
21788 | bool result; | |
21789 | void *argp1 = 0 ; | |
21790 | int res1 = 0 ; | |
21791 | PyObject *swig_obj[1] ; | |
21792 | ||
21793 | if (!args) SWIG_fail; | |
21794 | swig_obj[0] = args; | |
21795 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21796 | if (!SWIG_IsOK(res1)) { | |
21797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21798 | } | |
21799 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21800 | { | |
21801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21802 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
21803 | wxPyEndAllowThreads(__tstate); | |
21804 | if (PyErr_Occurred()) SWIG_fail; | |
21805 | } | |
21806 | { | |
21807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21808 | } | |
21809 | return resultobj; | |
21810 | fail: | |
21811 | return NULL; | |
21812 | } | |
21813 | ||
21814 | ||
21815 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21816 | PyObject *resultobj = 0; | |
21817 | wxDC *arg1 = (wxDC *) 0 ; | |
21818 | int result; | |
21819 | void *argp1 = 0 ; | |
21820 | int res1 = 0 ; | |
21821 | PyObject *swig_obj[1] ; | |
21822 | ||
21823 | if (!args) SWIG_fail; | |
21824 | swig_obj[0] = args; | |
21825 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21826 | if (!SWIG_IsOK(res1)) { | |
21827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21828 | } | |
21829 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21830 | { | |
21831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21832 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
21833 | wxPyEndAllowThreads(__tstate); | |
21834 | if (PyErr_Occurred()) SWIG_fail; | |
21835 | } | |
21836 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21837 | return resultobj; | |
21838 | fail: | |
21839 | return NULL; | |
21840 | } | |
21841 | ||
21842 | ||
21843 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21844 | PyObject *resultobj = 0; | |
21845 | wxDC *arg1 = (wxDC *) 0 ; | |
21846 | wxSize result; | |
21847 | void *argp1 = 0 ; | |
21848 | int res1 = 0 ; | |
21849 | PyObject *swig_obj[1] ; | |
21850 | ||
21851 | if (!args) SWIG_fail; | |
21852 | swig_obj[0] = args; | |
21853 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21854 | if (!SWIG_IsOK(res1)) { | |
21855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21856 | } | |
21857 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21858 | { | |
21859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21860 | result = ((wxDC const *)arg1)->GetPPI(); | |
21861 | wxPyEndAllowThreads(__tstate); | |
21862 | if (PyErr_Occurred()) SWIG_fail; | |
21863 | } | |
21864 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21865 | return resultobj; | |
21866 | fail: | |
21867 | return NULL; | |
21868 | } | |
21869 | ||
21870 | ||
b39fe951 | 21871 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
21872 | PyObject *resultobj = 0; |
21873 | wxDC *arg1 = (wxDC *) 0 ; | |
21874 | bool result; | |
21875 | void *argp1 = 0 ; | |
21876 | int res1 = 0 ; | |
21877 | PyObject *swig_obj[1] ; | |
21878 | ||
21879 | if (!args) SWIG_fail; | |
21880 | swig_obj[0] = args; | |
21881 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21882 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 21883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
0085ce49 RD |
21884 | } |
21885 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21886 | { | |
21887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 21888 | result = (bool)((wxDC const *)arg1)->IsOk(); |
0085ce49 RD |
21889 | wxPyEndAllowThreads(__tstate); |
21890 | if (PyErr_Occurred()) SWIG_fail; | |
21891 | } | |
21892 | { | |
21893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21894 | } | |
21895 | return resultobj; | |
21896 | fail: | |
21897 | return NULL; | |
21898 | } | |
21899 | ||
21900 | ||
21901 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21902 | PyObject *resultobj = 0; | |
21903 | wxDC *arg1 = (wxDC *) 0 ; | |
21904 | int result; | |
21905 | void *argp1 = 0 ; | |
21906 | int res1 = 0 ; | |
21907 | PyObject *swig_obj[1] ; | |
21908 | ||
21909 | if (!args) SWIG_fail; | |
21910 | swig_obj[0] = args; | |
21911 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21912 | if (!SWIG_IsOK(res1)) { | |
21913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21914 | } | |
21915 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21916 | { | |
21917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21918 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
21919 | wxPyEndAllowThreads(__tstate); | |
21920 | if (PyErr_Occurred()) SWIG_fail; | |
21921 | } | |
21922 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21923 | return resultobj; | |
21924 | fail: | |
21925 | return NULL; | |
21926 | } | |
21927 | ||
21928 | ||
21929 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21930 | PyObject *resultobj = 0; | |
21931 | wxDC *arg1 = (wxDC *) 0 ; | |
21932 | wxBrush *result = 0 ; | |
21933 | void *argp1 = 0 ; | |
21934 | int res1 = 0 ; | |
21935 | PyObject *swig_obj[1] ; | |
21936 | ||
21937 | if (!args) SWIG_fail; | |
21938 | swig_obj[0] = args; | |
21939 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21940 | if (!SWIG_IsOK(res1)) { | |
21941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21942 | } | |
21943 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21944 | { | |
21945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21946 | { |
0085ce49 RD |
21947 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
21948 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21949 | } |
0085ce49 RD |
21950 | wxPyEndAllowThreads(__tstate); |
21951 | if (PyErr_Occurred()) SWIG_fail; | |
21952 | } | |
21953 | { | |
21954 | wxBrush* resultptr = new wxBrush(*result); | |
21955 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21956 | } | |
21957 | return resultobj; | |
21958 | fail: | |
21959 | return NULL; | |
21960 | } | |
21961 | ||
21962 | ||
21963 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21964 | PyObject *resultobj = 0; | |
21965 | wxDC *arg1 = (wxDC *) 0 ; | |
21966 | wxBrush *result = 0 ; | |
21967 | void *argp1 = 0 ; | |
21968 | int res1 = 0 ; | |
21969 | PyObject *swig_obj[1] ; | |
21970 | ||
21971 | if (!args) SWIG_fail; | |
21972 | swig_obj[0] = args; | |
21973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21974 | if (!SWIG_IsOK(res1)) { | |
21975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21976 | } | |
21977 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21978 | { | |
21979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21980 | { |
0085ce49 RD |
21981 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
21982 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21983 | } |
0085ce49 RD |
21984 | wxPyEndAllowThreads(__tstate); |
21985 | if (PyErr_Occurred()) SWIG_fail; | |
21986 | } | |
21987 | { | |
21988 | wxBrush* resultptr = new wxBrush(*result); | |
21989 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21990 | } | |
21991 | return resultobj; | |
21992 | fail: | |
21993 | return NULL; | |
21994 | } | |
21995 | ||
21996 | ||
21997 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21998 | PyObject *resultobj = 0; | |
21999 | wxDC *arg1 = (wxDC *) 0 ; | |
22000 | wxFont *result = 0 ; | |
22001 | void *argp1 = 0 ; | |
22002 | int res1 = 0 ; | |
22003 | PyObject *swig_obj[1] ; | |
22004 | ||
22005 | if (!args) SWIG_fail; | |
22006 | swig_obj[0] = args; | |
22007 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22008 | if (!SWIG_IsOK(res1)) { | |
22009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22010 | } | |
22011 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22012 | { | |
22013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22014 | { |
0085ce49 RD |
22015 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
22016 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 22017 | } |
0085ce49 RD |
22018 | wxPyEndAllowThreads(__tstate); |
22019 | if (PyErr_Occurred()) SWIG_fail; | |
22020 | } | |
22021 | { | |
22022 | wxFont* resultptr = new wxFont(*result); | |
22023 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
22024 | } | |
22025 | return resultobj; | |
22026 | fail: | |
22027 | return NULL; | |
22028 | } | |
22029 | ||
22030 | ||
22031 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22032 | PyObject *resultobj = 0; | |
22033 | wxDC *arg1 = (wxDC *) 0 ; | |
22034 | wxPen *result = 0 ; | |
22035 | void *argp1 = 0 ; | |
22036 | int res1 = 0 ; | |
22037 | PyObject *swig_obj[1] ; | |
22038 | ||
22039 | if (!args) SWIG_fail; | |
22040 | swig_obj[0] = args; | |
22041 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22042 | if (!SWIG_IsOK(res1)) { | |
22043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22044 | } | |
22045 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22046 | { | |
22047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22048 | { |
0085ce49 RD |
22049 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
22050 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 22051 | } |
0085ce49 RD |
22052 | wxPyEndAllowThreads(__tstate); |
22053 | if (PyErr_Occurred()) SWIG_fail; | |
22054 | } | |
22055 | { | |
22056 | wxPen* resultptr = new wxPen(*result); | |
22057 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
22058 | } | |
22059 | return resultobj; | |
22060 | fail: | |
22061 | return NULL; | |
22062 | } | |
22063 | ||
22064 | ||
22065 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22066 | PyObject *resultobj = 0; | |
22067 | wxDC *arg1 = (wxDC *) 0 ; | |
22068 | wxColour *result = 0 ; | |
22069 | void *argp1 = 0 ; | |
22070 | int res1 = 0 ; | |
22071 | PyObject *swig_obj[1] ; | |
22072 | ||
22073 | if (!args) SWIG_fail; | |
22074 | swig_obj[0] = args; | |
22075 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22076 | if (!SWIG_IsOK(res1)) { | |
22077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22078 | } | |
22079 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22080 | { | |
22081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22082 | { |
0085ce49 RD |
22083 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
22084 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22085 | } |
0085ce49 RD |
22086 | wxPyEndAllowThreads(__tstate); |
22087 | if (PyErr_Occurred()) SWIG_fail; | |
22088 | } | |
22089 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22090 | return resultobj; | |
22091 | fail: | |
22092 | return NULL; | |
22093 | } | |
22094 | ||
22095 | ||
22096 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22097 | PyObject *resultobj = 0; | |
22098 | wxDC *arg1 = (wxDC *) 0 ; | |
22099 | wxColour *result = 0 ; | |
22100 | void *argp1 = 0 ; | |
22101 | int res1 = 0 ; | |
22102 | PyObject *swig_obj[1] ; | |
22103 | ||
22104 | if (!args) SWIG_fail; | |
22105 | swig_obj[0] = args; | |
22106 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22107 | if (!SWIG_IsOK(res1)) { | |
22108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22109 | } | |
22110 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22111 | { | |
22112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22113 | { |
0085ce49 RD |
22114 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
22115 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22116 | } |
0085ce49 RD |
22117 | wxPyEndAllowThreads(__tstate); |
22118 | if (PyErr_Occurred()) SWIG_fail; | |
22119 | } | |
22120 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22121 | return resultobj; | |
22122 | fail: | |
22123 | return NULL; | |
22124 | } | |
22125 | ||
22126 | ||
22127 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22128 | PyObject *resultobj = 0; | |
22129 | wxDC *arg1 = (wxDC *) 0 ; | |
22130 | wxColour *arg2 = 0 ; | |
22131 | void *argp1 = 0 ; | |
22132 | int res1 = 0 ; | |
22133 | wxColour temp2 ; | |
22134 | PyObject * obj0 = 0 ; | |
22135 | PyObject * obj1 = 0 ; | |
22136 | char * kwnames[] = { | |
22137 | (char *) "self",(char *) "colour", NULL | |
22138 | }; | |
22139 | ||
22140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22141 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22142 | if (!SWIG_IsOK(res1)) { | |
22143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22144 | } | |
22145 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22146 | { | |
22147 | arg2 = &temp2; | |
22148 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22149 | } | |
22150 | { | |
22151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22152 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
22153 | wxPyEndAllowThreads(__tstate); | |
22154 | if (PyErr_Occurred()) SWIG_fail; | |
22155 | } | |
22156 | resultobj = SWIG_Py_Void(); | |
22157 | return resultobj; | |
22158 | fail: | |
22159 | return NULL; | |
22160 | } | |
22161 | ||
22162 | ||
22163 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22164 | PyObject *resultobj = 0; | |
22165 | wxDC *arg1 = (wxDC *) 0 ; | |
22166 | wxColour *arg2 = 0 ; | |
22167 | void *argp1 = 0 ; | |
22168 | int res1 = 0 ; | |
22169 | wxColour temp2 ; | |
22170 | PyObject * obj0 = 0 ; | |
22171 | PyObject * obj1 = 0 ; | |
22172 | char * kwnames[] = { | |
22173 | (char *) "self",(char *) "colour", NULL | |
22174 | }; | |
22175 | ||
22176 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22177 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22178 | if (!SWIG_IsOK(res1)) { | |
22179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22180 | } | |
22181 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22182 | { | |
22183 | arg2 = &temp2; | |
22184 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22185 | } | |
22186 | { | |
22187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22188 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
22189 | wxPyEndAllowThreads(__tstate); | |
22190 | if (PyErr_Occurred()) SWIG_fail; | |
22191 | } | |
22192 | resultobj = SWIG_Py_Void(); | |
22193 | return resultobj; | |
22194 | fail: | |
22195 | return NULL; | |
22196 | } | |
22197 | ||
22198 | ||
22199 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22200 | PyObject *resultobj = 0; | |
22201 | wxDC *arg1 = (wxDC *) 0 ; | |
22202 | int result; | |
22203 | void *argp1 = 0 ; | |
22204 | int res1 = 0 ; | |
22205 | PyObject *swig_obj[1] ; | |
22206 | ||
22207 | if (!args) SWIG_fail; | |
22208 | swig_obj[0] = args; | |
22209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22210 | if (!SWIG_IsOK(res1)) { | |
22211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22212 | } | |
22213 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22214 | { | |
22215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22216 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22217 | wxPyEndAllowThreads(__tstate); | |
22218 | if (PyErr_Occurred()) SWIG_fail; | |
22219 | } | |
22220 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22221 | return resultobj; | |
22222 | fail: | |
22223 | return NULL; | |
22224 | } | |
22225 | ||
22226 | ||
22227 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22228 | PyObject *resultobj = 0; | |
22229 | wxDC *arg1 = (wxDC *) 0 ; | |
22230 | int arg2 ; | |
22231 | void *argp1 = 0 ; | |
22232 | int res1 = 0 ; | |
22233 | int val2 ; | |
22234 | int ecode2 = 0 ; | |
22235 | PyObject * obj0 = 0 ; | |
22236 | PyObject * obj1 = 0 ; | |
22237 | char * kwnames[] = { | |
22238 | (char *) "self",(char *) "mode", NULL | |
22239 | }; | |
22240 | ||
22241 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22242 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22243 | if (!SWIG_IsOK(res1)) { | |
22244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22245 | } | |
22246 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22247 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22248 | if (!SWIG_IsOK(ecode2)) { | |
22249 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22250 | } | |
22251 | arg2 = static_cast< int >(val2); | |
22252 | { | |
22253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22254 | (arg1)->SetMapMode(arg2); | |
22255 | wxPyEndAllowThreads(__tstate); | |
22256 | if (PyErr_Occurred()) SWIG_fail; | |
22257 | } | |
22258 | resultobj = SWIG_Py_Void(); | |
22259 | return resultobj; | |
22260 | fail: | |
22261 | return NULL; | |
22262 | } | |
22263 | ||
22264 | ||
22265 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22266 | PyObject *resultobj = 0; | |
22267 | wxDC *arg1 = (wxDC *) 0 ; | |
22268 | double *arg2 = (double *) 0 ; | |
22269 | double *arg3 = (double *) 0 ; | |
22270 | void *argp1 = 0 ; | |
22271 | int res1 = 0 ; | |
22272 | double temp2 ; | |
22273 | int res2 = SWIG_TMPOBJ ; | |
22274 | double temp3 ; | |
22275 | int res3 = SWIG_TMPOBJ ; | |
22276 | PyObject *swig_obj[1] ; | |
22277 | ||
22278 | arg2 = &temp2; | |
22279 | arg3 = &temp3; | |
22280 | if (!args) SWIG_fail; | |
22281 | swig_obj[0] = args; | |
22282 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22283 | if (!SWIG_IsOK(res1)) { | |
22284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22285 | } | |
22286 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22287 | { | |
22288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22289 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22290 | wxPyEndAllowThreads(__tstate); | |
22291 | if (PyErr_Occurred()) SWIG_fail; | |
22292 | } | |
22293 | resultobj = SWIG_Py_Void(); | |
22294 | if (SWIG_IsTmpObj(res2)) { | |
22295 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22296 | } else { | |
22297 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22298 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22299 | } | |
22300 | if (SWIG_IsTmpObj(res3)) { | |
22301 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22302 | } else { | |
22303 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22304 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22305 | } | |
22306 | return resultobj; | |
22307 | fail: | |
22308 | return NULL; | |
22309 | } | |
22310 | ||
22311 | ||
22312 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22313 | PyObject *resultobj = 0; | |
22314 | wxDC *arg1 = (wxDC *) 0 ; | |
22315 | double arg2 ; | |
22316 | double arg3 ; | |
22317 | void *argp1 = 0 ; | |
22318 | int res1 = 0 ; | |
22319 | double val2 ; | |
22320 | int ecode2 = 0 ; | |
22321 | double val3 ; | |
22322 | int ecode3 = 0 ; | |
22323 | PyObject * obj0 = 0 ; | |
22324 | PyObject * obj1 = 0 ; | |
22325 | PyObject * obj2 = 0 ; | |
22326 | char * kwnames[] = { | |
22327 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22328 | }; | |
22329 | ||
22330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22332 | if (!SWIG_IsOK(res1)) { | |
22333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22334 | } | |
22335 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22336 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22337 | if (!SWIG_IsOK(ecode2)) { | |
22338 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22339 | } | |
22340 | arg2 = static_cast< double >(val2); | |
22341 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22342 | if (!SWIG_IsOK(ecode3)) { | |
22343 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
22344 | } | |
22345 | arg3 = static_cast< double >(val3); | |
22346 | { | |
22347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22348 | (arg1)->SetUserScale(arg2,arg3); | |
22349 | wxPyEndAllowThreads(__tstate); | |
22350 | if (PyErr_Occurred()) SWIG_fail; | |
22351 | } | |
22352 | resultobj = SWIG_Py_Void(); | |
22353 | return resultobj; | |
22354 | fail: | |
22355 | return NULL; | |
22356 | } | |
22357 | ||
22358 | ||
22359 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22360 | PyObject *resultobj = 0; | |
22361 | wxDC *arg1 = (wxDC *) 0 ; | |
22362 | double *arg2 = (double *) 0 ; | |
22363 | double *arg3 = (double *) 0 ; | |
22364 | void *argp1 = 0 ; | |
22365 | int res1 = 0 ; | |
22366 | double temp2 ; | |
22367 | int res2 = SWIG_TMPOBJ ; | |
22368 | double temp3 ; | |
22369 | int res3 = SWIG_TMPOBJ ; | |
22370 | PyObject *swig_obj[1] ; | |
22371 | ||
22372 | arg2 = &temp2; | |
22373 | arg3 = &temp3; | |
22374 | if (!args) SWIG_fail; | |
22375 | swig_obj[0] = args; | |
22376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22377 | if (!SWIG_IsOK(res1)) { | |
22378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22379 | } | |
22380 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22381 | { | |
22382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22383 | (arg1)->GetLogicalScale(arg2,arg3); | |
22384 | wxPyEndAllowThreads(__tstate); | |
22385 | if (PyErr_Occurred()) SWIG_fail; | |
22386 | } | |
22387 | resultobj = SWIG_Py_Void(); | |
22388 | if (SWIG_IsTmpObj(res2)) { | |
22389 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22390 | } else { | |
22391 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22392 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22393 | } | |
22394 | if (SWIG_IsTmpObj(res3)) { | |
22395 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22396 | } else { | |
22397 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22398 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22399 | } | |
22400 | return resultobj; | |
22401 | fail: | |
22402 | return NULL; | |
22403 | } | |
22404 | ||
22405 | ||
22406 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22407 | PyObject *resultobj = 0; | |
22408 | wxDC *arg1 = (wxDC *) 0 ; | |
22409 | double arg2 ; | |
22410 | double arg3 ; | |
22411 | void *argp1 = 0 ; | |
22412 | int res1 = 0 ; | |
22413 | double val2 ; | |
22414 | int ecode2 = 0 ; | |
22415 | double val3 ; | |
22416 | int ecode3 = 0 ; | |
22417 | PyObject * obj0 = 0 ; | |
22418 | PyObject * obj1 = 0 ; | |
22419 | PyObject * obj2 = 0 ; | |
22420 | char * kwnames[] = { | |
22421 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22422 | }; | |
22423 | ||
22424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22426 | if (!SWIG_IsOK(res1)) { | |
22427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22428 | } | |
22429 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22430 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22431 | if (!SWIG_IsOK(ecode2)) { | |
22432 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
22433 | } | |
22434 | arg2 = static_cast< double >(val2); | |
22435 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22436 | if (!SWIG_IsOK(ecode3)) { | |
22437 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
22438 | } | |
22439 | arg3 = static_cast< double >(val3); | |
22440 | { | |
22441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22442 | (arg1)->SetLogicalScale(arg2,arg3); | |
22443 | wxPyEndAllowThreads(__tstate); | |
22444 | if (PyErr_Occurred()) SWIG_fail; | |
22445 | } | |
22446 | resultobj = SWIG_Py_Void(); | |
22447 | return resultobj; | |
22448 | fail: | |
22449 | return NULL; | |
22450 | } | |
22451 | ||
22452 | ||
22453 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22454 | PyObject *resultobj = 0; | |
22455 | wxDC *arg1 = (wxDC *) 0 ; | |
22456 | wxPoint result; | |
22457 | void *argp1 = 0 ; | |
22458 | int res1 = 0 ; | |
22459 | PyObject *swig_obj[1] ; | |
22460 | ||
22461 | if (!args) SWIG_fail; | |
22462 | swig_obj[0] = args; | |
22463 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22464 | if (!SWIG_IsOK(res1)) { | |
22465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22466 | } | |
22467 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22468 | { | |
22469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22470 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
22471 | wxPyEndAllowThreads(__tstate); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | } | |
22474 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22475 | return resultobj; | |
22476 | fail: | |
22477 | return NULL; | |
22478 | } | |
22479 | ||
22480 | ||
22481 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22482 | PyObject *resultobj = 0; | |
22483 | wxDC *arg1 = (wxDC *) 0 ; | |
22484 | int *arg2 = (int *) 0 ; | |
22485 | int *arg3 = (int *) 0 ; | |
22486 | void *argp1 = 0 ; | |
22487 | int res1 = 0 ; | |
22488 | int temp2 ; | |
22489 | int res2 = SWIG_TMPOBJ ; | |
22490 | int temp3 ; | |
22491 | int res3 = SWIG_TMPOBJ ; | |
22492 | PyObject *swig_obj[1] ; | |
22493 | ||
22494 | arg2 = &temp2; | |
22495 | arg3 = &temp3; | |
22496 | if (!args) SWIG_fail; | |
22497 | swig_obj[0] = args; | |
22498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22499 | if (!SWIG_IsOK(res1)) { | |
22500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22501 | } | |
22502 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22503 | { | |
22504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22505 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
22506 | wxPyEndAllowThreads(__tstate); | |
22507 | if (PyErr_Occurred()) SWIG_fail; | |
22508 | } | |
22509 | resultobj = SWIG_Py_Void(); | |
22510 | if (SWIG_IsTmpObj(res2)) { | |
22511 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22512 | } else { | |
22513 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22514 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22515 | } | |
22516 | if (SWIG_IsTmpObj(res3)) { | |
22517 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22518 | } else { | |
22519 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22520 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22521 | } | |
22522 | return resultobj; | |
22523 | fail: | |
22524 | return NULL; | |
22525 | } | |
22526 | ||
22527 | ||
22528 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22529 | PyObject *resultobj = 0; | |
22530 | wxDC *arg1 = (wxDC *) 0 ; | |
22531 | int arg2 ; | |
22532 | int arg3 ; | |
22533 | void *argp1 = 0 ; | |
22534 | int res1 = 0 ; | |
22535 | int val2 ; | |
22536 | int ecode2 = 0 ; | |
22537 | int val3 ; | |
22538 | int ecode3 = 0 ; | |
22539 | PyObject * obj0 = 0 ; | |
22540 | PyObject * obj1 = 0 ; | |
22541 | PyObject * obj2 = 0 ; | |
22542 | char * kwnames[] = { | |
22543 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22544 | }; | |
22545 | ||
22546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22548 | if (!SWIG_IsOK(res1)) { | |
22549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22550 | } | |
22551 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22552 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22553 | if (!SWIG_IsOK(ecode2)) { | |
22554 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22555 | } | |
22556 | arg2 = static_cast< int >(val2); | |
22557 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22558 | if (!SWIG_IsOK(ecode3)) { | |
22559 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22560 | } | |
22561 | arg3 = static_cast< int >(val3); | |
22562 | { | |
22563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22564 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
22565 | wxPyEndAllowThreads(__tstate); | |
22566 | if (PyErr_Occurred()) SWIG_fail; | |
22567 | } | |
22568 | resultobj = SWIG_Py_Void(); | |
22569 | return resultobj; | |
22570 | fail: | |
22571 | return NULL; | |
22572 | } | |
22573 | ||
22574 | ||
22575 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22576 | PyObject *resultobj = 0; | |
22577 | wxDC *arg1 = (wxDC *) 0 ; | |
22578 | wxPoint *arg2 = 0 ; | |
22579 | void *argp1 = 0 ; | |
22580 | int res1 = 0 ; | |
22581 | wxPoint temp2 ; | |
22582 | PyObject * obj0 = 0 ; | |
22583 | PyObject * obj1 = 0 ; | |
22584 | char * kwnames[] = { | |
22585 | (char *) "self",(char *) "point", NULL | |
22586 | }; | |
22587 | ||
22588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22590 | if (!SWIG_IsOK(res1)) { | |
22591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22592 | } | |
22593 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22594 | { | |
22595 | arg2 = &temp2; | |
22596 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22597 | } | |
22598 | { | |
22599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22600 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
22601 | wxPyEndAllowThreads(__tstate); | |
22602 | if (PyErr_Occurred()) SWIG_fail; | |
22603 | } | |
22604 | resultobj = SWIG_Py_Void(); | |
22605 | return resultobj; | |
22606 | fail: | |
22607 | return NULL; | |
22608 | } | |
22609 | ||
22610 | ||
22611 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22612 | PyObject *resultobj = 0; | |
22613 | wxDC *arg1 = (wxDC *) 0 ; | |
22614 | wxPoint result; | |
22615 | void *argp1 = 0 ; | |
22616 | int res1 = 0 ; | |
22617 | PyObject *swig_obj[1] ; | |
22618 | ||
22619 | if (!args) SWIG_fail; | |
22620 | swig_obj[0] = args; | |
22621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22622 | if (!SWIG_IsOK(res1)) { | |
22623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22624 | } | |
22625 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22626 | { | |
22627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22628 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
22629 | wxPyEndAllowThreads(__tstate); | |
22630 | if (PyErr_Occurred()) SWIG_fail; | |
22631 | } | |
22632 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22633 | return resultobj; | |
22634 | fail: | |
22635 | return NULL; | |
22636 | } | |
22637 | ||
22638 | ||
22639 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22640 | PyObject *resultobj = 0; | |
22641 | wxDC *arg1 = (wxDC *) 0 ; | |
22642 | int *arg2 = (int *) 0 ; | |
22643 | int *arg3 = (int *) 0 ; | |
22644 | void *argp1 = 0 ; | |
22645 | int res1 = 0 ; | |
22646 | int temp2 ; | |
22647 | int res2 = SWIG_TMPOBJ ; | |
22648 | int temp3 ; | |
22649 | int res3 = SWIG_TMPOBJ ; | |
22650 | PyObject *swig_obj[1] ; | |
22651 | ||
22652 | arg2 = &temp2; | |
22653 | arg3 = &temp3; | |
22654 | if (!args) SWIG_fail; | |
22655 | swig_obj[0] = args; | |
22656 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22657 | if (!SWIG_IsOK(res1)) { | |
22658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22659 | } | |
22660 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22661 | { | |
22662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22663 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
22664 | wxPyEndAllowThreads(__tstate); | |
22665 | if (PyErr_Occurred()) SWIG_fail; | |
22666 | } | |
22667 | resultobj = SWIG_Py_Void(); | |
22668 | if (SWIG_IsTmpObj(res2)) { | |
22669 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22670 | } else { | |
22671 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22672 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22673 | } | |
22674 | if (SWIG_IsTmpObj(res3)) { | |
22675 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22676 | } else { | |
22677 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22678 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22679 | } | |
22680 | return resultobj; | |
22681 | fail: | |
22682 | return NULL; | |
22683 | } | |
22684 | ||
22685 | ||
22686 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22687 | PyObject *resultobj = 0; | |
22688 | wxDC *arg1 = (wxDC *) 0 ; | |
22689 | int arg2 ; | |
22690 | int arg3 ; | |
22691 | void *argp1 = 0 ; | |
22692 | int res1 = 0 ; | |
22693 | int val2 ; | |
22694 | int ecode2 = 0 ; | |
22695 | int val3 ; | |
22696 | int ecode3 = 0 ; | |
22697 | PyObject * obj0 = 0 ; | |
22698 | PyObject * obj1 = 0 ; | |
22699 | PyObject * obj2 = 0 ; | |
22700 | char * kwnames[] = { | |
22701 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22702 | }; | |
22703 | ||
22704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22706 | if (!SWIG_IsOK(res1)) { | |
22707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22708 | } | |
22709 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22710 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22711 | if (!SWIG_IsOK(ecode2)) { | |
22712 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22713 | } | |
22714 | arg2 = static_cast< int >(val2); | |
22715 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22716 | if (!SWIG_IsOK(ecode3)) { | |
22717 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22718 | } | |
22719 | arg3 = static_cast< int >(val3); | |
22720 | { | |
22721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22722 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
22723 | wxPyEndAllowThreads(__tstate); | |
22724 | if (PyErr_Occurred()) SWIG_fail; | |
22725 | } | |
22726 | resultobj = SWIG_Py_Void(); | |
22727 | return resultobj; | |
22728 | fail: | |
22729 | return NULL; | |
22730 | } | |
22731 | ||
22732 | ||
22733 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22734 | PyObject *resultobj = 0; | |
22735 | wxDC *arg1 = (wxDC *) 0 ; | |
22736 | wxPoint *arg2 = 0 ; | |
22737 | void *argp1 = 0 ; | |
22738 | int res1 = 0 ; | |
22739 | wxPoint temp2 ; | |
22740 | PyObject * obj0 = 0 ; | |
22741 | PyObject * obj1 = 0 ; | |
22742 | char * kwnames[] = { | |
22743 | (char *) "self",(char *) "point", NULL | |
22744 | }; | |
22745 | ||
22746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22748 | if (!SWIG_IsOK(res1)) { | |
22749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22750 | } | |
22751 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22752 | { | |
22753 | arg2 = &temp2; | |
22754 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22755 | } | |
22756 | { | |
22757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22758 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
22759 | wxPyEndAllowThreads(__tstate); | |
22760 | if (PyErr_Occurred()) SWIG_fail; | |
22761 | } | |
22762 | resultobj = SWIG_Py_Void(); | |
22763 | return resultobj; | |
22764 | fail: | |
22765 | return NULL; | |
22766 | } | |
22767 | ||
22768 | ||
22769 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22770 | PyObject *resultobj = 0; | |
22771 | wxDC *arg1 = (wxDC *) 0 ; | |
22772 | bool arg2 ; | |
22773 | bool arg3 ; | |
22774 | void *argp1 = 0 ; | |
22775 | int res1 = 0 ; | |
22776 | bool val2 ; | |
22777 | int ecode2 = 0 ; | |
22778 | bool val3 ; | |
22779 | int ecode3 = 0 ; | |
22780 | PyObject * obj0 = 0 ; | |
22781 | PyObject * obj1 = 0 ; | |
22782 | PyObject * obj2 = 0 ; | |
22783 | char * kwnames[] = { | |
22784 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
22785 | }; | |
22786 | ||
22787 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22788 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22789 | if (!SWIG_IsOK(res1)) { | |
22790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22791 | } | |
22792 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22793 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22794 | if (!SWIG_IsOK(ecode2)) { | |
22795 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
22796 | } | |
22797 | arg2 = static_cast< bool >(val2); | |
22798 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22799 | if (!SWIG_IsOK(ecode3)) { | |
22800 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
22801 | } | |
22802 | arg3 = static_cast< bool >(val3); | |
22803 | { | |
22804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22805 | (arg1)->SetAxisOrientation(arg2,arg3); | |
22806 | wxPyEndAllowThreads(__tstate); | |
22807 | if (PyErr_Occurred()) SWIG_fail; | |
22808 | } | |
22809 | resultobj = SWIG_Py_Void(); | |
22810 | return resultobj; | |
22811 | fail: | |
22812 | return NULL; | |
22813 | } | |
22814 | ||
22815 | ||
22816 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22817 | PyObject *resultobj = 0; | |
22818 | wxDC *arg1 = (wxDC *) 0 ; | |
22819 | int result; | |
22820 | void *argp1 = 0 ; | |
22821 | int res1 = 0 ; | |
22822 | PyObject *swig_obj[1] ; | |
22823 | ||
22824 | if (!args) SWIG_fail; | |
22825 | swig_obj[0] = args; | |
22826 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22827 | if (!SWIG_IsOK(res1)) { | |
22828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22829 | } | |
22830 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22831 | { | |
22832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22833 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
22834 | wxPyEndAllowThreads(__tstate); | |
22835 | if (PyErr_Occurred()) SWIG_fail; | |
22836 | } | |
22837 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22838 | return resultobj; | |
22839 | fail: | |
22840 | return NULL; | |
22841 | } | |
22842 | ||
22843 | ||
22844 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22845 | PyObject *resultobj = 0; | |
22846 | wxDC *arg1 = (wxDC *) 0 ; | |
22847 | int arg2 ; | |
22848 | void *argp1 = 0 ; | |
22849 | int res1 = 0 ; | |
22850 | int val2 ; | |
22851 | int ecode2 = 0 ; | |
22852 | PyObject * obj0 = 0 ; | |
22853 | PyObject * obj1 = 0 ; | |
22854 | char * kwnames[] = { | |
22855 | (char *) "self",(char *) "function", NULL | |
22856 | }; | |
22857 | ||
22858 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
22859 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22860 | if (!SWIG_IsOK(res1)) { | |
22861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22862 | } | |
22863 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22864 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22865 | if (!SWIG_IsOK(ecode2)) { | |
22866 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
22867 | } | |
22868 | arg2 = static_cast< int >(val2); | |
22869 | { | |
22870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22871 | (arg1)->SetLogicalFunction(arg2); | |
22872 | wxPyEndAllowThreads(__tstate); | |
22873 | if (PyErr_Occurred()) SWIG_fail; | |
22874 | } | |
22875 | resultobj = SWIG_Py_Void(); | |
22876 | return resultobj; | |
22877 | fail: | |
22878 | return NULL; | |
22879 | } | |
22880 | ||
22881 | ||
22882 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22883 | PyObject *resultobj = 0; | |
22884 | wxDC *arg1 = (wxDC *) 0 ; | |
22885 | void *argp1 = 0 ; | |
22886 | int res1 = 0 ; | |
22887 | PyObject *swig_obj[1] ; | |
22888 | ||
22889 | if (!args) SWIG_fail; | |
22890 | swig_obj[0] = args; | |
22891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22892 | if (!SWIG_IsOK(res1)) { | |
22893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22894 | } | |
22895 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22896 | { | |
22897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22898 | (arg1)->ComputeScaleAndOrigin(); | |
22899 | wxPyEndAllowThreads(__tstate); | |
22900 | if (PyErr_Occurred()) SWIG_fail; | |
22901 | } | |
22902 | resultobj = SWIG_Py_Void(); | |
22903 | return resultobj; | |
22904 | fail: | |
22905 | return NULL; | |
22906 | } | |
22907 | ||
22908 | ||
22909 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22910 | PyObject *resultobj = 0; | |
22911 | wxDC *arg1 = (wxDC *) 0 ; | |
22912 | int arg2 ; | |
22913 | int arg3 ; | |
22914 | void *argp1 = 0 ; | |
22915 | int res1 = 0 ; | |
22916 | int val2 ; | |
22917 | int ecode2 = 0 ; | |
22918 | int val3 ; | |
22919 | int ecode3 = 0 ; | |
22920 | PyObject * obj0 = 0 ; | |
22921 | PyObject * obj1 = 0 ; | |
22922 | PyObject * obj2 = 0 ; | |
22923 | char * kwnames[] = { | |
22924 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22925 | }; | |
22926 | ||
22927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22929 | if (!SWIG_IsOK(res1)) { | |
22930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22931 | } | |
22932 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22933 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22934 | if (!SWIG_IsOK(ecode2)) { | |
22935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
22936 | } | |
22937 | arg2 = static_cast< int >(val2); | |
22938 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22939 | if (!SWIG_IsOK(ecode3)) { | |
22940 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
22941 | } | |
22942 | arg3 = static_cast< int >(val3); | |
22943 | { | |
22944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22945 | (arg1)->CalcBoundingBox(arg2,arg3); | |
22946 | wxPyEndAllowThreads(__tstate); | |
22947 | if (PyErr_Occurred()) SWIG_fail; | |
22948 | } | |
22949 | resultobj = SWIG_Py_Void(); | |
22950 | return resultobj; | |
22951 | fail: | |
22952 | return NULL; | |
22953 | } | |
22954 | ||
22955 | ||
22956 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22957 | PyObject *resultobj = 0; | |
22958 | wxDC *arg1 = (wxDC *) 0 ; | |
22959 | wxPoint *arg2 = 0 ; | |
22960 | void *argp1 = 0 ; | |
22961 | int res1 = 0 ; | |
22962 | wxPoint temp2 ; | |
22963 | PyObject * obj0 = 0 ; | |
22964 | PyObject * obj1 = 0 ; | |
22965 | char * kwnames[] = { | |
22966 | (char *) "self",(char *) "point", NULL | |
22967 | }; | |
22968 | ||
22969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22971 | if (!SWIG_IsOK(res1)) { | |
22972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22973 | } | |
22974 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22975 | { | |
22976 | arg2 = &temp2; | |
22977 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22978 | } | |
22979 | { | |
22980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22981 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
22982 | wxPyEndAllowThreads(__tstate); | |
22983 | if (PyErr_Occurred()) SWIG_fail; | |
22984 | } | |
22985 | resultobj = SWIG_Py_Void(); | |
22986 | return resultobj; | |
22987 | fail: | |
22988 | return NULL; | |
22989 | } | |
22990 | ||
22991 | ||
22992 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22993 | PyObject *resultobj = 0; | |
22994 | wxDC *arg1 = (wxDC *) 0 ; | |
22995 | void *argp1 = 0 ; | |
22996 | int res1 = 0 ; | |
22997 | PyObject *swig_obj[1] ; | |
22998 | ||
22999 | if (!args) SWIG_fail; | |
23000 | swig_obj[0] = args; | |
23001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23002 | if (!SWIG_IsOK(res1)) { | |
23003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23004 | } | |
23005 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23006 | { | |
23007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23008 | (arg1)->ResetBoundingBox(); | |
23009 | wxPyEndAllowThreads(__tstate); | |
23010 | if (PyErr_Occurred()) SWIG_fail; | |
23011 | } | |
23012 | resultobj = SWIG_Py_Void(); | |
23013 | return resultobj; | |
23014 | fail: | |
23015 | return NULL; | |
23016 | } | |
23017 | ||
23018 | ||
23019 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23020 | PyObject *resultobj = 0; | |
23021 | wxDC *arg1 = (wxDC *) 0 ; | |
23022 | int result; | |
23023 | void *argp1 = 0 ; | |
23024 | int res1 = 0 ; | |
23025 | PyObject *swig_obj[1] ; | |
23026 | ||
23027 | if (!args) SWIG_fail; | |
23028 | swig_obj[0] = args; | |
23029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23030 | if (!SWIG_IsOK(res1)) { | |
23031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23032 | } | |
23033 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23034 | { | |
23035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23036 | result = (int)((wxDC const *)arg1)->MinX(); | |
23037 | wxPyEndAllowThreads(__tstate); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | } | |
23040 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23041 | return resultobj; | |
23042 | fail: | |
23043 | return NULL; | |
23044 | } | |
23045 | ||
23046 | ||
23047 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23048 | PyObject *resultobj = 0; | |
23049 | wxDC *arg1 = (wxDC *) 0 ; | |
23050 | int result; | |
23051 | void *argp1 = 0 ; | |
23052 | int res1 = 0 ; | |
23053 | PyObject *swig_obj[1] ; | |
23054 | ||
23055 | if (!args) SWIG_fail; | |
23056 | swig_obj[0] = args; | |
23057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23058 | if (!SWIG_IsOK(res1)) { | |
23059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23060 | } | |
23061 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23062 | { | |
23063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23064 | result = (int)((wxDC const *)arg1)->MaxX(); | |
23065 | wxPyEndAllowThreads(__tstate); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
23068 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23069 | return resultobj; | |
23070 | fail: | |
23071 | return NULL; | |
23072 | } | |
23073 | ||
23074 | ||
23075 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23076 | PyObject *resultobj = 0; | |
23077 | wxDC *arg1 = (wxDC *) 0 ; | |
23078 | int result; | |
23079 | void *argp1 = 0 ; | |
23080 | int res1 = 0 ; | |
23081 | PyObject *swig_obj[1] ; | |
23082 | ||
23083 | if (!args) SWIG_fail; | |
23084 | swig_obj[0] = args; | |
23085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23086 | if (!SWIG_IsOK(res1)) { | |
23087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23088 | } | |
23089 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23090 | { | |
23091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23092 | result = (int)((wxDC const *)arg1)->MinY(); | |
23093 | wxPyEndAllowThreads(__tstate); | |
23094 | if (PyErr_Occurred()) SWIG_fail; | |
23095 | } | |
23096 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23097 | return resultobj; | |
23098 | fail: | |
23099 | return NULL; | |
23100 | } | |
23101 | ||
23102 | ||
23103 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23104 | PyObject *resultobj = 0; | |
23105 | wxDC *arg1 = (wxDC *) 0 ; | |
23106 | int result; | |
23107 | void *argp1 = 0 ; | |
23108 | int res1 = 0 ; | |
23109 | PyObject *swig_obj[1] ; | |
23110 | ||
23111 | if (!args) SWIG_fail; | |
23112 | swig_obj[0] = args; | |
23113 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23114 | if (!SWIG_IsOK(res1)) { | |
23115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23116 | } | |
23117 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23118 | { | |
23119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23120 | result = (int)((wxDC const *)arg1)->MaxY(); | |
23121 | wxPyEndAllowThreads(__tstate); | |
23122 | if (PyErr_Occurred()) SWIG_fail; | |
23123 | } | |
23124 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23125 | return resultobj; | |
23126 | fail: | |
23127 | return NULL; | |
23128 | } | |
23129 | ||
23130 | ||
23131 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23132 | PyObject *resultobj = 0; | |
23133 | wxDC *arg1 = (wxDC *) 0 ; | |
23134 | int *arg2 = (int *) 0 ; | |
23135 | int *arg3 = (int *) 0 ; | |
23136 | int *arg4 = (int *) 0 ; | |
23137 | int *arg5 = (int *) 0 ; | |
23138 | void *argp1 = 0 ; | |
23139 | int res1 = 0 ; | |
23140 | int temp2 ; | |
23141 | int res2 = SWIG_TMPOBJ ; | |
23142 | int temp3 ; | |
23143 | int res3 = SWIG_TMPOBJ ; | |
23144 | int temp4 ; | |
23145 | int res4 = SWIG_TMPOBJ ; | |
23146 | int temp5 ; | |
23147 | int res5 = SWIG_TMPOBJ ; | |
23148 | PyObject *swig_obj[1] ; | |
23149 | ||
23150 | arg2 = &temp2; | |
23151 | arg3 = &temp3; | |
23152 | arg4 = &temp4; | |
23153 | arg5 = &temp5; | |
23154 | if (!args) SWIG_fail; | |
23155 | swig_obj[0] = args; | |
23156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23157 | if (!SWIG_IsOK(res1)) { | |
23158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23159 | } | |
23160 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23161 | { | |
23162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23163 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
23164 | wxPyEndAllowThreads(__tstate); | |
23165 | if (PyErr_Occurred()) SWIG_fail; | |
23166 | } | |
23167 | resultobj = SWIG_Py_Void(); | |
23168 | if (SWIG_IsTmpObj(res2)) { | |
23169 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23170 | } else { | |
23171 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23172 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23173 | } | |
23174 | if (SWIG_IsTmpObj(res3)) { | |
23175 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23176 | } else { | |
23177 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23178 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23179 | } | |
23180 | if (SWIG_IsTmpObj(res4)) { | |
23181 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
23182 | } else { | |
23183 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23184 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
23185 | } | |
23186 | if (SWIG_IsTmpObj(res5)) { | |
23187 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
23188 | } else { | |
23189 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23190 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
23191 | } | |
23192 | return resultobj; | |
23193 | fail: | |
23194 | return NULL; | |
23195 | } | |
23196 | ||
23197 | ||
b39fe951 RD |
23198 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23199 | PyObject *resultobj = 0; | |
23200 | wxDC *arg1 = (wxDC *) 0 ; | |
23201 | wxLayoutDirection result; | |
23202 | void *argp1 = 0 ; | |
23203 | int res1 = 0 ; | |
23204 | PyObject *swig_obj[1] ; | |
23205 | ||
23206 | if (!args) SWIG_fail; | |
23207 | swig_obj[0] = args; | |
23208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23209 | if (!SWIG_IsOK(res1)) { | |
23210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23211 | } | |
23212 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23213 | { | |
23214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23215 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23216 | wxPyEndAllowThreads(__tstate); | |
23217 | if (PyErr_Occurred()) SWIG_fail; | |
23218 | } | |
23219 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23220 | return resultobj; | |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
23226 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23227 | PyObject *resultobj = 0; | |
23228 | wxDC *arg1 = (wxDC *) 0 ; | |
23229 | wxLayoutDirection arg2 ; | |
23230 | void *argp1 = 0 ; | |
23231 | int res1 = 0 ; | |
23232 | int val2 ; | |
23233 | int ecode2 = 0 ; | |
23234 | PyObject * obj0 = 0 ; | |
23235 | PyObject * obj1 = 0 ; | |
23236 | char * kwnames[] = { | |
23237 | (char *) "self",(char *) "dir", NULL | |
23238 | }; | |
23239 | ||
23240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23242 | if (!SWIG_IsOK(res1)) { | |
23243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23244 | } | |
23245 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23246 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23247 | if (!SWIG_IsOK(ecode2)) { | |
23248 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23249 | } | |
23250 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23251 | { | |
23252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23253 | (arg1)->SetLayoutDirection(arg2); | |
23254 | wxPyEndAllowThreads(__tstate); | |
23255 | if (PyErr_Occurred()) SWIG_fail; | |
23256 | } | |
23257 | resultobj = SWIG_Py_Void(); | |
23258 | return resultobj; | |
23259 | fail: | |
23260 | return NULL; | |
23261 | } | |
23262 | ||
23263 | ||
0085ce49 RD |
23264 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23265 | PyObject *resultobj = 0; | |
23266 | wxDC *arg1 = (wxDC *) 0 ; | |
23267 | PyObject *arg2 = (PyObject *) 0 ; | |
23268 | PyObject *arg3 = (PyObject *) 0 ; | |
23269 | PyObject *arg4 = (PyObject *) 0 ; | |
23270 | PyObject *result = 0 ; | |
23271 | void *argp1 = 0 ; | |
23272 | int res1 = 0 ; | |
23273 | PyObject * obj0 = 0 ; | |
23274 | PyObject * obj1 = 0 ; | |
23275 | PyObject * obj2 = 0 ; | |
23276 | PyObject * obj3 = 0 ; | |
23277 | char * kwnames[] = { | |
23278 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23279 | }; | |
23280 | ||
23281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23283 | if (!SWIG_IsOK(res1)) { | |
23284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23285 | } | |
23286 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23287 | arg2 = obj1; | |
23288 | arg3 = obj2; | |
23289 | arg4 = obj3; | |
23290 | { | |
23291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23292 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23293 | wxPyEndAllowThreads(__tstate); | |
23294 | if (PyErr_Occurred()) SWIG_fail; | |
23295 | } | |
23296 | resultobj = result; | |
23297 | return resultobj; | |
23298 | fail: | |
23299 | return NULL; | |
23300 | } | |
23301 | ||
23302 | ||
23303 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23304 | PyObject *resultobj = 0; | |
23305 | wxDC *arg1 = (wxDC *) 0 ; | |
23306 | PyObject *arg2 = (PyObject *) 0 ; | |
23307 | PyObject *arg3 = (PyObject *) 0 ; | |
23308 | PyObject *arg4 = (PyObject *) 0 ; | |
23309 | PyObject *result = 0 ; | |
23310 | void *argp1 = 0 ; | |
23311 | int res1 = 0 ; | |
23312 | PyObject * obj0 = 0 ; | |
23313 | PyObject * obj1 = 0 ; | |
23314 | PyObject * obj2 = 0 ; | |
23315 | PyObject * obj3 = 0 ; | |
23316 | char * kwnames[] = { | |
23317 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23318 | }; | |
23319 | ||
23320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23322 | if (!SWIG_IsOK(res1)) { | |
23323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23324 | } | |
23325 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23326 | arg2 = obj1; | |
23327 | arg3 = obj2; | |
23328 | arg4 = obj3; | |
23329 | { | |
23330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23331 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
23332 | wxPyEndAllowThreads(__tstate); | |
23333 | if (PyErr_Occurred()) SWIG_fail; | |
23334 | } | |
23335 | resultobj = result; | |
23336 | return resultobj; | |
23337 | fail: | |
23338 | return NULL; | |
23339 | } | |
23340 | ||
23341 | ||
23342 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23343 | PyObject *resultobj = 0; | |
23344 | wxDC *arg1 = (wxDC *) 0 ; | |
23345 | PyObject *arg2 = (PyObject *) 0 ; | |
23346 | PyObject *arg3 = (PyObject *) 0 ; | |
23347 | PyObject *arg4 = (PyObject *) 0 ; | |
23348 | PyObject *result = 0 ; | |
23349 | void *argp1 = 0 ; | |
23350 | int res1 = 0 ; | |
23351 | PyObject * obj0 = 0 ; | |
23352 | PyObject * obj1 = 0 ; | |
23353 | PyObject * obj2 = 0 ; | |
23354 | PyObject * obj3 = 0 ; | |
23355 | char * kwnames[] = { | |
23356 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23357 | }; | |
23358 | ||
23359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23361 | if (!SWIG_IsOK(res1)) { | |
23362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23363 | } | |
23364 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23365 | arg2 = obj1; | |
23366 | arg3 = obj2; | |
23367 | arg4 = obj3; | |
23368 | { | |
23369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23370 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
23371 | wxPyEndAllowThreads(__tstate); | |
23372 | if (PyErr_Occurred()) SWIG_fail; | |
23373 | } | |
23374 | resultobj = result; | |
23375 | return resultobj; | |
23376 | fail: | |
23377 | return NULL; | |
23378 | } | |
23379 | ||
23380 | ||
23381 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23382 | PyObject *resultobj = 0; | |
23383 | wxDC *arg1 = (wxDC *) 0 ; | |
23384 | PyObject *arg2 = (PyObject *) 0 ; | |
23385 | PyObject *arg3 = (PyObject *) 0 ; | |
23386 | PyObject *arg4 = (PyObject *) 0 ; | |
23387 | PyObject *result = 0 ; | |
23388 | void *argp1 = 0 ; | |
23389 | int res1 = 0 ; | |
23390 | PyObject * obj0 = 0 ; | |
23391 | PyObject * obj1 = 0 ; | |
23392 | PyObject * obj2 = 0 ; | |
23393 | PyObject * obj3 = 0 ; | |
23394 | char * kwnames[] = { | |
23395 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23396 | }; | |
23397 | ||
23398 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23399 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23400 | if (!SWIG_IsOK(res1)) { | |
23401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23402 | } | |
23403 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23404 | arg2 = obj1; | |
23405 | arg3 = obj2; | |
23406 | arg4 = obj3; | |
23407 | { | |
23408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23409 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
23410 | wxPyEndAllowThreads(__tstate); | |
23411 | if (PyErr_Occurred()) SWIG_fail; | |
23412 | } | |
23413 | resultobj = result; | |
23414 | return resultobj; | |
23415 | fail: | |
23416 | return NULL; | |
23417 | } | |
23418 | ||
23419 | ||
23420 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23421 | PyObject *resultobj = 0; | |
23422 | wxDC *arg1 = (wxDC *) 0 ; | |
23423 | PyObject *arg2 = (PyObject *) 0 ; | |
23424 | PyObject *arg3 = (PyObject *) 0 ; | |
23425 | PyObject *arg4 = (PyObject *) 0 ; | |
23426 | PyObject *result = 0 ; | |
23427 | void *argp1 = 0 ; | |
23428 | int res1 = 0 ; | |
23429 | PyObject * obj0 = 0 ; | |
23430 | PyObject * obj1 = 0 ; | |
23431 | PyObject * obj2 = 0 ; | |
23432 | PyObject * obj3 = 0 ; | |
23433 | char * kwnames[] = { | |
23434 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23435 | }; | |
23436 | ||
23437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23439 | if (!SWIG_IsOK(res1)) { | |
23440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23441 | } | |
23442 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23443 | arg2 = obj1; | |
23444 | arg3 = obj2; | |
23445 | arg4 = obj3; | |
23446 | { | |
23447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23448 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
23449 | wxPyEndAllowThreads(__tstate); | |
23450 | if (PyErr_Occurred()) SWIG_fail; | |
23451 | } | |
23452 | resultobj = result; | |
23453 | return resultobj; | |
23454 | fail: | |
23455 | return NULL; | |
23456 | } | |
23457 | ||
23458 | ||
23459 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23460 | PyObject *resultobj = 0; | |
23461 | wxDC *arg1 = (wxDC *) 0 ; | |
23462 | PyObject *arg2 = (PyObject *) 0 ; | |
23463 | PyObject *arg3 = (PyObject *) 0 ; | |
23464 | PyObject *arg4 = (PyObject *) 0 ; | |
23465 | PyObject *arg5 = (PyObject *) 0 ; | |
23466 | PyObject *result = 0 ; | |
23467 | void *argp1 = 0 ; | |
23468 | int res1 = 0 ; | |
23469 | PyObject * obj0 = 0 ; | |
23470 | PyObject * obj1 = 0 ; | |
23471 | PyObject * obj2 = 0 ; | |
23472 | PyObject * obj3 = 0 ; | |
23473 | PyObject * obj4 = 0 ; | |
23474 | char * kwnames[] = { | |
23475 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
23476 | }; | |
23477 | ||
23478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23480 | if (!SWIG_IsOK(res1)) { | |
23481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23482 | } | |
23483 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23484 | arg2 = obj1; | |
23485 | arg3 = obj2; | |
23486 | arg4 = obj3; | |
23487 | arg5 = obj4; | |
23488 | { | |
23489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23490 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
23491 | wxPyEndAllowThreads(__tstate); | |
23492 | if (PyErr_Occurred()) SWIG_fail; | |
23493 | } | |
23494 | resultobj = result; | |
23495 | return resultobj; | |
23496 | fail: | |
23497 | return NULL; | |
23498 | } | |
23499 | ||
23500 | ||
23501 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23502 | PyObject *obj; | |
23503 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23504 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
23505 | return SWIG_Py_Void(); | |
23506 | } | |
23507 | ||
70d7cb34 RD |
23508 | SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23509 | PyObject *resultobj = 0; | |
23510 | wxDC *arg1 = 0 ; | |
23511 | wxColour *arg2 = 0 ; | |
23512 | wxDCTextColourChanger *result = 0 ; | |
23513 | void *argp1 = 0 ; | |
23514 | int res1 = 0 ; | |
23515 | wxColour temp2 ; | |
23516 | PyObject * obj0 = 0 ; | |
23517 | PyObject * obj1 = 0 ; | |
23518 | char * kwnames[] = { | |
23519 | (char *) "dc",(char *) "col", NULL | |
23520 | }; | |
23521 | ||
23522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23523 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23524 | if (!SWIG_IsOK(res1)) { | |
23525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23526 | } | |
23527 | if (!argp1) { | |
23528 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23529 | } | |
23530 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23531 | { | |
23532 | arg2 = &temp2; | |
23533 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23534 | } | |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2); | |
23538 | wxPyEndAllowThreads(__tstate); | |
23539 | if (PyErr_Occurred()) SWIG_fail; | |
23540 | } | |
23541 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 ); | |
23542 | return resultobj; | |
23543 | fail: | |
23544 | return NULL; | |
23545 | } | |
23546 | ||
23547 | ||
23548 | SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23549 | PyObject *resultobj = 0; | |
23550 | wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ; | |
23551 | void *argp1 = 0 ; | |
23552 | int res1 = 0 ; | |
23553 | PyObject *swig_obj[1] ; | |
23554 | ||
23555 | if (!args) SWIG_fail; | |
23556 | swig_obj[0] = args; | |
23557 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 ); | |
23558 | if (!SWIG_IsOK(res1)) { | |
23559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'"); | |
23560 | } | |
23561 | arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1); | |
23562 | { | |
23563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23564 | delete arg1; | |
23565 | ||
23566 | wxPyEndAllowThreads(__tstate); | |
23567 | if (PyErr_Occurred()) SWIG_fail; | |
23568 | } | |
23569 | resultobj = SWIG_Py_Void(); | |
23570 | return resultobj; | |
23571 | fail: | |
23572 | return NULL; | |
23573 | } | |
23574 | ||
23575 | ||
23576 | SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23577 | PyObject *obj; | |
23578 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23579 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj)); | |
23580 | return SWIG_Py_Void(); | |
23581 | } | |
23582 | ||
23583 | SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23584 | return SWIG_Python_InitShadowInstance(args); | |
23585 | } | |
23586 | ||
23587 | SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23588 | PyObject *resultobj = 0; | |
23589 | wxDC *arg1 = 0 ; | |
23590 | wxPen *arg2 = 0 ; | |
23591 | wxDCPenChanger *result = 0 ; | |
23592 | void *argp1 = 0 ; | |
23593 | int res1 = 0 ; | |
23594 | void *argp2 = 0 ; | |
23595 | int res2 = 0 ; | |
23596 | PyObject * obj0 = 0 ; | |
23597 | PyObject * obj1 = 0 ; | |
23598 | char * kwnames[] = { | |
23599 | (char *) "dc",(char *) "pen", NULL | |
23600 | }; | |
23601 | ||
23602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23603 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23604 | if (!SWIG_IsOK(res1)) { | |
23605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23606 | } | |
23607 | if (!argp1) { | |
23608 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23609 | } | |
23610 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23611 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
23612 | if (!SWIG_IsOK(res2)) { | |
23613 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23614 | } | |
23615 | if (!argp2) { | |
23616 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23617 | } | |
23618 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
23619 | { | |
23620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23621 | result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2); | |
23622 | wxPyEndAllowThreads(__tstate); | |
23623 | if (PyErr_Occurred()) SWIG_fail; | |
23624 | } | |
23625 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 ); | |
23626 | return resultobj; | |
23627 | fail: | |
23628 | return NULL; | |
23629 | } | |
23630 | ||
23631 | ||
23632 | SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23633 | PyObject *resultobj = 0; | |
23634 | wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ; | |
23635 | void *argp1 = 0 ; | |
23636 | int res1 = 0 ; | |
23637 | PyObject *swig_obj[1] ; | |
23638 | ||
23639 | if (!args) SWIG_fail; | |
23640 | swig_obj[0] = args; | |
23641 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 ); | |
23642 | if (!SWIG_IsOK(res1)) { | |
23643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'"); | |
23644 | } | |
23645 | arg1 = reinterpret_cast< wxDCPenChanger * >(argp1); | |
23646 | { | |
23647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23648 | delete arg1; | |
23649 | ||
23650 | wxPyEndAllowThreads(__tstate); | |
23651 | if (PyErr_Occurred()) SWIG_fail; | |
23652 | } | |
23653 | resultobj = SWIG_Py_Void(); | |
23654 | return resultobj; | |
23655 | fail: | |
23656 | return NULL; | |
23657 | } | |
23658 | ||
23659 | ||
23660 | SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23661 | PyObject *obj; | |
23662 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23663 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj)); | |
23664 | return SWIG_Py_Void(); | |
23665 | } | |
23666 | ||
23667 | SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23668 | return SWIG_Python_InitShadowInstance(args); | |
23669 | } | |
23670 | ||
23671 | SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23672 | PyObject *resultobj = 0; | |
23673 | wxDC *arg1 = 0 ; | |
23674 | wxBrush *arg2 = 0 ; | |
23675 | wxDCBrushChanger *result = 0 ; | |
23676 | void *argp1 = 0 ; | |
23677 | int res1 = 0 ; | |
23678 | void *argp2 = 0 ; | |
23679 | int res2 = 0 ; | |
23680 | PyObject * obj0 = 0 ; | |
23681 | PyObject * obj1 = 0 ; | |
23682 | char * kwnames[] = { | |
23683 | (char *) "dc",(char *) "brush", NULL | |
23684 | }; | |
23685 | ||
23686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23687 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23688 | if (!SWIG_IsOK(res1)) { | |
23689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23690 | } | |
23691 | if (!argp1) { | |
23692 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23693 | } | |
23694 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23695 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
23696 | if (!SWIG_IsOK(res2)) { | |
23697 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23698 | } | |
23699 | if (!argp2) { | |
23700 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23701 | } | |
23702 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
23703 | { | |
23704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23705 | result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2); | |
23706 | wxPyEndAllowThreads(__tstate); | |
23707 | if (PyErr_Occurred()) SWIG_fail; | |
23708 | } | |
23709 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 ); | |
23710 | return resultobj; | |
23711 | fail: | |
23712 | return NULL; | |
23713 | } | |
23714 | ||
23715 | ||
23716 | SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23717 | PyObject *resultobj = 0; | |
23718 | wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ; | |
23719 | void *argp1 = 0 ; | |
23720 | int res1 = 0 ; | |
23721 | PyObject *swig_obj[1] ; | |
23722 | ||
23723 | if (!args) SWIG_fail; | |
23724 | swig_obj[0] = args; | |
23725 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 ); | |
23726 | if (!SWIG_IsOK(res1)) { | |
23727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'"); | |
23728 | } | |
23729 | arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1); | |
23730 | { | |
23731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23732 | delete arg1; | |
23733 | ||
23734 | wxPyEndAllowThreads(__tstate); | |
23735 | if (PyErr_Occurred()) SWIG_fail; | |
23736 | } | |
23737 | resultobj = SWIG_Py_Void(); | |
23738 | return resultobj; | |
23739 | fail: | |
23740 | return NULL; | |
23741 | } | |
23742 | ||
23743 | ||
23744 | SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23745 | PyObject *obj; | |
23746 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23747 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj)); | |
23748 | return SWIG_Py_Void(); | |
23749 | } | |
23750 | ||
23751 | SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23752 | return SWIG_Python_InitShadowInstance(args); | |
23753 | } | |
23754 | ||
23755 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23756 | PyObject *resultobj = 0; | |
23757 | wxDC *arg1 = 0 ; | |
23758 | wxRegion *arg2 = 0 ; | |
23759 | wxDCClipper *result = 0 ; | |
23760 | void *argp1 = 0 ; | |
23761 | int res1 = 0 ; | |
23762 | void *argp2 = 0 ; | |
23763 | int res2 = 0 ; | |
23764 | ||
23765 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23767 | if (!SWIG_IsOK(res1)) { | |
23768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23769 | } | |
23770 | if (!argp1) { | |
23771 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23772 | } | |
23773 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23774 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
23775 | if (!SWIG_IsOK(res2)) { | |
23776 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23777 | } | |
23778 | if (!argp2) { | |
23779 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23780 | } | |
23781 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
23782 | { | |
23783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23784 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2); | |
23785 | wxPyEndAllowThreads(__tstate); | |
23786 | if (PyErr_Occurred()) SWIG_fail; | |
23787 | } | |
23788 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23789 | return resultobj; | |
23790 | fail: | |
23791 | return NULL; | |
23792 | } | |
23793 | ||
23794 | ||
23795 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23796 | PyObject *resultobj = 0; | |
23797 | wxDC *arg1 = 0 ; | |
23798 | wxRect *arg2 = 0 ; | |
23799 | wxDCClipper *result = 0 ; | |
23800 | void *argp1 = 0 ; | |
23801 | int res1 = 0 ; | |
23802 | wxRect temp2 ; | |
23803 | ||
23804 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23806 | if (!SWIG_IsOK(res1)) { | |
23807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23808 | } | |
23809 | if (!argp1) { | |
23810 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23811 | } | |
23812 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23813 | { | |
23814 | arg2 = &temp2; | |
23815 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
23816 | } | |
23817 | { | |
23818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23819 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2); | |
23820 | wxPyEndAllowThreads(__tstate); | |
23821 | if (PyErr_Occurred()) SWIG_fail; | |
23822 | } | |
23823 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23824 | return resultobj; | |
23825 | fail: | |
23826 | return NULL; | |
23827 | } | |
23828 | ||
23829 | ||
23830 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23831 | PyObject *resultobj = 0; | |
23832 | wxDC *arg1 = 0 ; | |
23833 | int arg2 ; | |
23834 | int arg3 ; | |
23835 | int arg4 ; | |
23836 | int arg5 ; | |
23837 | wxDCClipper *result = 0 ; | |
23838 | void *argp1 = 0 ; | |
23839 | int res1 = 0 ; | |
23840 | int val2 ; | |
23841 | int ecode2 = 0 ; | |
23842 | int val3 ; | |
23843 | int ecode3 = 0 ; | |
23844 | int val4 ; | |
23845 | int ecode4 = 0 ; | |
23846 | int val5 ; | |
23847 | int ecode5 = 0 ; | |
23848 | ||
23849 | if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; | |
23850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23851 | if (!SWIG_IsOK(res1)) { | |
23852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23853 | } | |
23854 | if (!argp1) { | |
23855 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23856 | } | |
23857 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23858 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
23859 | if (!SWIG_IsOK(ecode2)) { | |
23860 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'"); | |
23861 | } | |
23862 | arg2 = static_cast< int >(val2); | |
23863 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
23864 | if (!SWIG_IsOK(ecode3)) { | |
23865 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'"); | |
23866 | } | |
23867 | arg3 = static_cast< int >(val3); | |
23868 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
23869 | if (!SWIG_IsOK(ecode4)) { | |
23870 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'"); | |
23871 | } | |
23872 | arg4 = static_cast< int >(val4); | |
23873 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
23874 | if (!SWIG_IsOK(ecode5)) { | |
23875 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'"); | |
23876 | } | |
23877 | arg5 = static_cast< int >(val5); | |
23878 | { | |
23879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23880 | result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5); | |
23881 | wxPyEndAllowThreads(__tstate); | |
23882 | if (PyErr_Occurred()) SWIG_fail; | |
23883 | } | |
23884 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23885 | return resultobj; | |
23886 | fail: | |
23887 | return NULL; | |
23888 | } | |
23889 | ||
23890 | ||
23891 | SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) { | |
23892 | int argc; | |
23893 | PyObject *argv[6]; | |
23894 | ||
23895 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail; | |
23896 | --argc; | |
23897 | if (argc == 2) { | |
23898 | int _v = 0; | |
23899 | { | |
23900 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0); | |
23901 | _v = SWIG_CheckState(res); | |
23902 | } | |
23903 | if (!_v) goto check_1; | |
23904 | return _wrap_new_DCClipper__SWIG_0(self, argc, argv); | |
23905 | } | |
23906 | check_1: | |
23907 | ||
23908 | if (argc == 2) { | |
23909 | return _wrap_new_DCClipper__SWIG_1(self, argc, argv); | |
23910 | } | |
23911 | if (argc == 5) { | |
23912 | return _wrap_new_DCClipper__SWIG_2(self, argc, argv); | |
23913 | } | |
23914 | ||
23915 | fail: | |
23916 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'"); | |
23917 | return NULL; | |
23918 | } | |
23919 | ||
23920 | ||
23921 | SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23922 | PyObject *resultobj = 0; | |
23923 | wxDCClipper *arg1 = (wxDCClipper *) 0 ; | |
23924 | void *argp1 = 0 ; | |
23925 | int res1 = 0 ; | |
23926 | PyObject *swig_obj[1] ; | |
23927 | ||
23928 | if (!args) SWIG_fail; | |
23929 | swig_obj[0] = args; | |
23930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 ); | |
23931 | if (!SWIG_IsOK(res1)) { | |
23932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'"); | |
23933 | } | |
23934 | arg1 = reinterpret_cast< wxDCClipper * >(argp1); | |
23935 | { | |
23936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23937 | delete arg1; | |
23938 | ||
23939 | wxPyEndAllowThreads(__tstate); | |
23940 | if (PyErr_Occurred()) SWIG_fail; | |
23941 | } | |
23942 | resultobj = SWIG_Py_Void(); | |
23943 | return resultobj; | |
23944 | fail: | |
23945 | return NULL; | |
23946 | } | |
23947 | ||
23948 | ||
23949 | SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23950 | PyObject *obj; | |
23951 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23952 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj)); | |
23953 | return SWIG_Py_Void(); | |
23954 | } | |
23955 | ||
23956 | SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23957 | return SWIG_Python_InitShadowInstance(args); | |
23958 | } | |
23959 | ||
24f6c4e8 RD |
23960 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23961 | PyObject *resultobj = 0; | |
23962 | wxScreenDC *result = 0 ; | |
23963 | ||
23964 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
23965 | { | |
23966 | if (!wxPyCheckForApp()) SWIG_fail; | |
23967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23968 | result = (wxScreenDC *)new wxScreenDC(); | |
23969 | wxPyEndAllowThreads(__tstate); | |
23970 | if (PyErr_Occurred()) SWIG_fail; | |
23971 | } | |
23972 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
23973 | return resultobj; | |
23974 | fail: | |
23975 | return NULL; | |
23976 | } | |
23977 | ||
23978 | ||
23979 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23980 | PyObject *resultobj = 0; | |
23981 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23982 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23983 | bool result; | |
23984 | void *argp1 = 0 ; | |
23985 | int res1 = 0 ; | |
23986 | void *argp2 = 0 ; | |
23987 | int res2 = 0 ; | |
23988 | PyObject * obj0 = 0 ; | |
23989 | PyObject * obj1 = 0 ; | |
23990 | char * kwnames[] = { | |
23991 | (char *) "self",(char *) "window", NULL | |
23992 | }; | |
23993 | ||
23994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
23995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23996 | if (!SWIG_IsOK(res1)) { | |
23997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23998 | } | |
23999 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24000 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24001 | if (!SWIG_IsOK(res2)) { | |
24002 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24003 | } | |
24004 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24005 | { | |
24006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24007 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24008 | wxPyEndAllowThreads(__tstate); | |
24009 | if (PyErr_Occurred()) SWIG_fail; | |
24010 | } | |
24011 | { | |
24012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24013 | } | |
24014 | return resultobj; | |
24015 | fail: | |
24016 | return NULL; | |
24017 | } | |
24018 | ||
24019 | ||
24020 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24021 | PyObject *resultobj = 0; | |
24022 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24023 | wxRect *arg2 = (wxRect *) NULL ; | |
24024 | bool result; | |
24025 | void *argp1 = 0 ; | |
24026 | int res1 = 0 ; | |
24027 | void *argp2 = 0 ; | |
24028 | int res2 = 0 ; | |
24029 | PyObject * obj0 = 0 ; | |
24030 | PyObject * obj1 = 0 ; | |
24031 | char * kwnames[] = { | |
24032 | (char *) "self",(char *) "rect", NULL | |
24033 | }; | |
24034 | ||
24035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
24036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24037 | if (!SWIG_IsOK(res1)) { | |
24038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24039 | } | |
24040 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24041 | if (obj1) { | |
24042 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
24043 | if (!SWIG_IsOK(res2)) { | |
24044 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
24045 | } | |
24046 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
24047 | } | |
24048 | { | |
24049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24050 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24051 | wxPyEndAllowThreads(__tstate); | |
24052 | if (PyErr_Occurred()) SWIG_fail; | |
24053 | } | |
24054 | { | |
24055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24056 | } | |
24057 | return resultobj; | |
24058 | fail: | |
24059 | return NULL; | |
24060 | } | |
24061 | ||
24062 | ||
24063 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24064 | PyObject *resultobj = 0; | |
24065 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24066 | bool result; | |
24067 | void *argp1 = 0 ; | |
24068 | int res1 = 0 ; | |
24069 | PyObject *swig_obj[1] ; | |
24070 | ||
24071 | if (!args) SWIG_fail; | |
24072 | swig_obj[0] = args; | |
24073 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24074 | if (!SWIG_IsOK(res1)) { | |
24075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24076 | } | |
24077 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24078 | { | |
24079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24080 | result = (bool)(arg1)->EndDrawingOnTop(); | |
24081 | wxPyEndAllowThreads(__tstate); | |
24082 | if (PyErr_Occurred()) SWIG_fail; | |
24083 | } | |
24084 | { | |
24085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24086 | } | |
24087 | return resultobj; | |
24088 | fail: | |
24089 | return NULL; | |
24090 | } | |
24091 | ||
24092 | ||
24093 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24094 | PyObject *obj; | |
24095 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24096 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24097 | return SWIG_Py_Void(); | |
24098 | } | |
24099 | ||
24100 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24101 | return SWIG_Python_InitShadowInstance(args); | |
24102 | } | |
24103 | ||
24104 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24105 | PyObject *resultobj = 0; | |
24106 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24107 | wxWindowDC *result = 0 ; | |
24108 | void *argp1 = 0 ; | |
24109 | int res1 = 0 ; | |
24110 | PyObject * obj0 = 0 ; | |
24111 | char * kwnames[] = { | |
24112 | (char *) "win", NULL | |
24113 | }; | |
24114 | ||
24115 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24116 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24117 | if (!SWIG_IsOK(res1)) { | |
24118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24119 | } | |
24120 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24121 | { | |
24122 | if (!wxPyCheckForApp()) SWIG_fail; | |
24123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24124 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24125 | wxPyEndAllowThreads(__tstate); | |
24126 | if (PyErr_Occurred()) SWIG_fail; | |
24127 | } | |
24128 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24129 | return resultobj; | |
24130 | fail: | |
24131 | return NULL; | |
24132 | } | |
24133 | ||
24134 | ||
24135 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24136 | PyObject *obj; | |
24137 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24138 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24139 | return SWIG_Py_Void(); | |
24140 | } | |
24141 | ||
24142 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24143 | return SWIG_Python_InitShadowInstance(args); | |
24144 | } | |
24145 | ||
24146 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24147 | PyObject *resultobj = 0; | |
24148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24149 | wxClientDC *result = 0 ; | |
24150 | void *argp1 = 0 ; | |
24151 | int res1 = 0 ; | |
24152 | PyObject * obj0 = 0 ; | |
24153 | char * kwnames[] = { | |
24154 | (char *) "win", NULL | |
24155 | }; | |
24156 | ||
24157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24159 | if (!SWIG_IsOK(res1)) { | |
24160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24161 | } | |
24162 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24163 | { | |
24164 | if (!wxPyCheckForApp()) SWIG_fail; | |
24165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24166 | result = (wxClientDC *)new wxClientDC(arg1); | |
24167 | wxPyEndAllowThreads(__tstate); | |
24168 | if (PyErr_Occurred()) SWIG_fail; | |
24169 | } | |
24170 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24171 | return resultobj; | |
24172 | fail: | |
24173 | return NULL; | |
24174 | } | |
24175 | ||
24176 | ||
24177 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24178 | PyObject *obj; | |
24179 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24180 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
24181 | return SWIG_Py_Void(); | |
24182 | } | |
24183 | ||
24184 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24185 | return SWIG_Python_InitShadowInstance(args); | |
24186 | } | |
24187 | ||
24188 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24189 | PyObject *resultobj = 0; | |
24190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24191 | wxPaintDC *result = 0 ; | |
24192 | void *argp1 = 0 ; | |
24193 | int res1 = 0 ; | |
24194 | PyObject * obj0 = 0 ; | |
24195 | char * kwnames[] = { | |
24196 | (char *) "win", NULL | |
24197 | }; | |
24198 | ||
24199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24201 | if (!SWIG_IsOK(res1)) { | |
24202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24203 | } | |
24204 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24205 | { | |
24206 | if (!wxPyCheckForApp()) SWIG_fail; | |
24207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24208 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24209 | wxPyEndAllowThreads(__tstate); | |
24210 | if (PyErr_Occurred()) SWIG_fail; | |
24211 | } | |
24212 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24213 | return resultobj; | |
24214 | fail: | |
24215 | return NULL; | |
24216 | } | |
24217 | ||
24218 | ||
24219 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24220 | PyObject *obj; | |
24221 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24222 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24223 | return SWIG_Py_Void(); | |
24224 | } | |
24225 | ||
24226 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24227 | return SWIG_Python_InitShadowInstance(args); | |
24228 | } | |
24229 | ||
26c4d26f RD |
24230 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24231 | PyObject *resultobj = 0; | |
24232 | wxBitmap &arg1_defvalue = wxNullBitmap ; | |
24233 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24234 | wxMemoryDC *result = 0 ; | |
24235 | void *argp1 = 0 ; | |
24236 | int res1 = 0 ; | |
24237 | PyObject * obj0 = 0 ; | |
24238 | char * kwnames[] = { | |
24239 | (char *) "bitmap", NULL | |
24240 | }; | |
24241 | ||
24242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; | |
24243 | if (obj0) { | |
24244 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
24245 | if (!SWIG_IsOK(res1)) { | |
24246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24247 | } | |
24248 | if (!argp1) { | |
24249 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24250 | } | |
24251 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
24252 | } | |
24253 | { | |
24254 | if (!wxPyCheckForApp()) SWIG_fail; | |
24255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24256 | result = (wxMemoryDC *)new wxMemoryDC(*arg1); | |
24257 | wxPyEndAllowThreads(__tstate); | |
24258 | if (PyErr_Occurred()) SWIG_fail; | |
24259 | } | |
24260 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
24261 | return resultobj; | |
24262 | fail: | |
24263 | return NULL; | |
24264 | } | |
24265 | ||
24266 | ||
24267 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24268 | PyObject *resultobj = 0; | |
24269 | wxDC *arg1 = (wxDC *) 0 ; | |
24270 | wxMemoryDC *result = 0 ; | |
24271 | void *argp1 = 0 ; | |
24272 | int res1 = 0 ; | |
24273 | PyObject * obj0 = 0 ; | |
24274 | char * kwnames[] = { | |
24275 | (char *) "oldDC", NULL | |
24276 | }; | |
24277 | ||
24278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
24279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24280 | if (!SWIG_IsOK(res1)) { | |
24281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24282 | } | |
24283 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24284 | { | |
24285 | if (!wxPyCheckForApp()) SWIG_fail; | |
24286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24287 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
24288 | wxPyEndAllowThreads(__tstate); | |
24289 | if (PyErr_Occurred()) SWIG_fail; | |
24290 | } | |
24291 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
24292 | return resultobj; | |
24293 | fail: | |
24294 | return NULL; | |
24295 | } | |
24296 | ||
24297 | ||
24298 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24299 | PyObject *resultobj = 0; | |
24300 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24301 | wxBitmap *arg2 = 0 ; | |
24302 | void *argp1 = 0 ; | |
24303 | int res1 = 0 ; | |
24304 | void *argp2 = 0 ; | |
24305 | int res2 = 0 ; | |
24306 | PyObject * obj0 = 0 ; | |
24307 | PyObject * obj1 = 0 ; | |
24308 | char * kwnames[] = { | |
24309 | (char *) "self",(char *) "bitmap", NULL | |
24310 | }; | |
24311 | ||
24312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
24313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24314 | if (!SWIG_IsOK(res1)) { | |
24315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24316 | } | |
24317 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
24318 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
24319 | if (!SWIG_IsOK(res2)) { | |
24320 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24321 | } | |
24322 | if (!argp2) { | |
24323 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24324 | } | |
24325 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24326 | { | |
24327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24328 | (arg1)->SelectObject(*arg2); | |
24329 | wxPyEndAllowThreads(__tstate); | |
24330 | if (PyErr_Occurred()) SWIG_fail; | |
24331 | } | |
24332 | resultobj = SWIG_Py_Void(); | |
24333 | return resultobj; | |
24334 | fail: | |
24335 | return NULL; | |
24336 | } | |
24337 | ||
24338 | ||
24339 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24340 | PyObject *resultobj = 0; | |
24341 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24342 | wxBitmap *arg2 = 0 ; | |
24343 | void *argp1 = 0 ; | |
24344 | int res1 = 0 ; | |
24345 | void *argp2 = 0 ; | |
24346 | int res2 = 0 ; | |
24347 | PyObject * obj0 = 0 ; | |
24348 | PyObject * obj1 = 0 ; | |
24349 | char * kwnames[] = { | |
24350 | (char *) "self",(char *) "bmp", NULL | |
24351 | }; | |
24352 | ||
24353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail; | |
24354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24355 | if (!SWIG_IsOK(res1)) { | |
24356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24357 | } | |
24358 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
24359 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24360 | if (!SWIG_IsOK(res2)) { | |
24361 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24362 | } | |
24363 | if (!argp2) { | |
24364 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24365 | } | |
24366 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24367 | { | |
24368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24369 | (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2); | |
24370 | wxPyEndAllowThreads(__tstate); | |
24371 | if (PyErr_Occurred()) SWIG_fail; | |
24372 | } | |
24373 | resultobj = SWIG_Py_Void(); | |
24374 | return resultobj; | |
24375 | fail: | |
24376 | return NULL; | |
24377 | } | |
24378 | ||
24379 | ||
24380 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24381 | PyObject *obj; | |
24382 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24383 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
24384 | return SWIG_Py_Void(); | |
24385 | } | |
24386 | ||
24387 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24388 | return SWIG_Python_InitShadowInstance(args); | |
24389 | } | |
24390 | ||
0085ce49 RD |
24391 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24392 | PyObject *resultobj = 0; | |
24393 | wxDC *arg1 = (wxDC *) 0 ; | |
b6df5cf9 | 24394 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
0085ce49 RD |
24395 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
24396 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24397 | wxBufferedDC *result = 0 ; | |
24398 | void *argp1 = 0 ; | |
24399 | int res1 = 0 ; | |
24400 | void *argp2 = 0 ; | |
24401 | int res2 = 0 ; | |
24402 | int val3 ; | |
24403 | int ecode3 = 0 ; | |
24404 | ||
24405 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
24406 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24407 | if (!SWIG_IsOK(res1)) { | |
24408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24409 | } | |
24410 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24411 | if (swig_obj[1]) { | |
b6df5cf9 | 24412 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
0085ce49 | 24413 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 24414 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24415 | } |
0085ce49 | 24416 | if (!argp2) { |
b6df5cf9 | 24417 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24418 | } |
0085ce49 RD |
24419 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24420 | } | |
24421 | if (swig_obj[2]) { | |
24422 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24423 | if (!SWIG_IsOK(ecode3)) { | |
24424 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24425 | } | |
24426 | arg3 = static_cast< int >(val3); | |
24427 | } | |
24428 | { | |
24429 | if (!wxPyCheckForApp()) SWIG_fail; | |
24430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 24431 | result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3); |
0085ce49 RD |
24432 | wxPyEndAllowThreads(__tstate); |
24433 | if (PyErr_Occurred()) SWIG_fail; | |
24434 | } | |
24435 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24436 | return resultobj; | |
24437 | fail: | |
24438 | return NULL; | |
24439 | } | |
24440 | ||
24441 | ||
24442 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24443 | PyObject *resultobj = 0; | |
24444 | wxDC *arg1 = (wxDC *) 0 ; | |
24445 | wxSize *arg2 = 0 ; | |
24446 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24447 | wxBufferedDC *result = 0 ; | |
24448 | void *argp1 = 0 ; | |
24449 | int res1 = 0 ; | |
24450 | wxSize temp2 ; | |
24451 | int val3 ; | |
24452 | int ecode3 = 0 ; | |
24453 | ||
24454 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
24455 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24456 | if (!SWIG_IsOK(res1)) { | |
24457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24458 | } | |
24459 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24460 | { | |
24461 | arg2 = &temp2; | |
24462 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24463 | } | |
24464 | if (swig_obj[2]) { | |
24465 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24466 | if (!SWIG_IsOK(ecode3)) { | |
24467 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24468 | } | |
24469 | arg3 = static_cast< int >(val3); | |
24470 | } | |
24471 | { | |
24472 | if (!wxPyCheckForApp()) SWIG_fail; | |
24473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24474 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
24475 | wxPyEndAllowThreads(__tstate); | |
24476 | if (PyErr_Occurred()) SWIG_fail; | |
24477 | } | |
24478 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24479 | return resultobj; | |
24480 | fail: | |
24481 | return NULL; | |
24482 | } | |
24483 | ||
24484 | ||
24485 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
24486 | int argc; | |
8e99bda9 | 24487 | PyObject *argv[4]; |
0085ce49 | 24488 | |
8e99bda9 | 24489 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
0085ce49 RD |
24490 | --argc; |
24491 | if ((argc >= 1) && (argc <= 3)) { | |
24492 | int _v = 0; | |
24493 | if (argc > 1) { | |
24494 | { | |
b6df5cf9 RD |
24495 | void *vptr = 0; |
24496 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0); | |
0085ce49 RD |
24497 | _v = SWIG_CheckState(res); |
24498 | } | |
24499 | if (!_v) goto check_1; | |
093d3ff1 | 24500 | } |
0085ce49 RD |
24501 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
24502 | } | |
24503 | check_1: | |
24504 | ||
24505 | if ((argc >= 2) && (argc <= 3)) { | |
24506 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
24507 | } | |
24508 | ||
24509 | fail: | |
24510 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
24511 | return NULL; | |
24512 | } | |
24513 | ||
24514 | ||
24515 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24516 | PyObject *resultobj = 0; | |
24517 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24518 | void *argp1 = 0 ; | |
24519 | int res1 = 0 ; | |
24520 | PyObject *swig_obj[1] ; | |
24521 | ||
24522 | if (!args) SWIG_fail; | |
24523 | swig_obj[0] = args; | |
24524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
24525 | if (!SWIG_IsOK(res1)) { | |
24526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24527 | } | |
24528 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24529 | { | |
24530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24531 | delete arg1; | |
24532 | ||
24533 | wxPyEndAllowThreads(__tstate); | |
24534 | if (PyErr_Occurred()) SWIG_fail; | |
24535 | } | |
24536 | resultobj = SWIG_Py_Void(); | |
24537 | return resultobj; | |
24538 | fail: | |
24539 | return NULL; | |
24540 | } | |
24541 | ||
24542 | ||
24543 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24544 | PyObject *resultobj = 0; | |
24545 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24546 | void *argp1 = 0 ; | |
24547 | int res1 = 0 ; | |
24548 | PyObject *swig_obj[1] ; | |
24549 | ||
24550 | if (!args) SWIG_fail; | |
24551 | swig_obj[0] = args; | |
24552 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24553 | if (!SWIG_IsOK(res1)) { | |
24554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24555 | } | |
24556 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24557 | { | |
24558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24559 | (arg1)->UnMask(); | |
24560 | wxPyEndAllowThreads(__tstate); | |
24561 | if (PyErr_Occurred()) SWIG_fail; | |
24562 | } | |
24563 | resultobj = SWIG_Py_Void(); | |
24564 | return resultobj; | |
24565 | fail: | |
24566 | return NULL; | |
24567 | } | |
24568 | ||
24569 | ||
b6df5cf9 RD |
24570 | SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24571 | PyObject *resultobj = 0; | |
24572 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24573 | int arg2 ; | |
24574 | void *argp1 = 0 ; | |
24575 | int res1 = 0 ; | |
24576 | int val2 ; | |
24577 | int ecode2 = 0 ; | |
24578 | PyObject * obj0 = 0 ; | |
24579 | PyObject * obj1 = 0 ; | |
24580 | char * kwnames[] = { | |
24581 | (char *) "self",(char *) "style", NULL | |
24582 | }; | |
24583 | ||
24584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
24585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24586 | if (!SWIG_IsOK(res1)) { | |
24587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24588 | } | |
24589 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24590 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24591 | if (!SWIG_IsOK(ecode2)) { | |
24592 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
24593 | } | |
24594 | arg2 = static_cast< int >(val2); | |
24595 | { | |
24596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24597 | (arg1)->SetStyle(arg2); | |
24598 | wxPyEndAllowThreads(__tstate); | |
24599 | if (PyErr_Occurred()) SWIG_fail; | |
24600 | } | |
24601 | resultobj = SWIG_Py_Void(); | |
24602 | return resultobj; | |
24603 | fail: | |
24604 | return NULL; | |
24605 | } | |
24606 | ||
24607 | ||
24608 | SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24609 | PyObject *resultobj = 0; | |
24610 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24611 | int result; | |
24612 | void *argp1 = 0 ; | |
24613 | int res1 = 0 ; | |
24614 | PyObject *swig_obj[1] ; | |
24615 | ||
24616 | if (!args) SWIG_fail; | |
24617 | swig_obj[0] = args; | |
24618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24619 | if (!SWIG_IsOK(res1)) { | |
24620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'"); | |
24621 | } | |
24622 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24623 | { | |
24624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24625 | result = (int)((wxBufferedDC const *)arg1)->GetStyle(); | |
24626 | wxPyEndAllowThreads(__tstate); | |
24627 | if (PyErr_Occurred()) SWIG_fail; | |
24628 | } | |
24629 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24630 | return resultobj; | |
24631 | fail: | |
24632 | return NULL; | |
24633 | } | |
24634 | ||
24635 | ||
0085ce49 RD |
24636 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24637 | PyObject *obj; | |
24638 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24639 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
24640 | return SWIG_Py_Void(); | |
24641 | } | |
24642 | ||
24643 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24644 | return SWIG_Python_InitShadowInstance(args); | |
24645 | } | |
24646 | ||
24647 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24648 | PyObject *resultobj = 0; | |
24649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b6df5cf9 | 24650 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
0085ce49 RD |
24651 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
24652 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24653 | wxBufferedPaintDC *result = 0 ; | |
24654 | void *argp1 = 0 ; | |
24655 | int res1 = 0 ; | |
24656 | void *argp2 = 0 ; | |
24657 | int res2 = 0 ; | |
24658 | int val3 ; | |
24659 | int ecode3 = 0 ; | |
24660 | PyObject * obj0 = 0 ; | |
24661 | PyObject * obj1 = 0 ; | |
24662 | PyObject * obj2 = 0 ; | |
24663 | char * kwnames[] = { | |
24664 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
24665 | }; | |
24666 | ||
24667 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24669 | if (!SWIG_IsOK(res1)) { | |
24670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24671 | } | |
24672 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24673 | if (obj1) { | |
b6df5cf9 | 24674 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
0085ce49 | 24675 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 24676 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24677 | } |
0085ce49 | 24678 | if (!argp2) { |
b6df5cf9 | 24679 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24680 | } |
0085ce49 RD |
24681 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24682 | } | |
24683 | if (obj2) { | |
24684 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24685 | if (!SWIG_IsOK(ecode3)) { | |
24686 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
24687 | } | |
24688 | arg3 = static_cast< int >(val3); | |
24689 | } | |
24690 | { | |
24691 | if (!wxPyCheckForApp()) SWIG_fail; | |
24692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 24693 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3); |
0085ce49 RD |
24694 | wxPyEndAllowThreads(__tstate); |
24695 | if (PyErr_Occurred()) SWIG_fail; | |
24696 | } | |
24697 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
24698 | return resultobj; | |
24699 | fail: | |
24700 | return NULL; | |
24701 | } | |
24702 | ||
24703 | ||
24704 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24705 | PyObject *obj; | |
24706 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24707 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
24708 | return SWIG_Py_Void(); | |
24709 | } | |
24710 | ||
24711 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24712 | return SWIG_Python_InitShadowInstance(args); | |
24713 | } | |
24714 | ||
24f6c4e8 | 24715 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
24716 | PyObject *resultobj = 0; |
24717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 24718 | wxAutoBufferedPaintDC *result = 0 ; |
0085ce49 RD |
24719 | void *argp1 = 0 ; |
24720 | int res1 = 0 ; | |
24721 | PyObject * obj0 = 0 ; | |
24722 | char * kwnames[] = { | |
24723 | (char *) "win", NULL | |
24724 | }; | |
24725 | ||
24f6c4e8 | 24726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
0085ce49 RD |
24727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
24728 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 24729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
0085ce49 RD |
24730 | } |
24731 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24732 | { | |
0085ce49 | 24733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 24734 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
0085ce49 RD |
24735 | wxPyEndAllowThreads(__tstate); |
24736 | if (PyErr_Occurred()) SWIG_fail; | |
24737 | } | |
24f6c4e8 | 24738 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
0085ce49 RD |
24739 | return resultobj; |
24740 | fail: | |
24741 | return NULL; | |
24742 | } | |
24743 | ||
24744 | ||
24f6c4e8 | 24745 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24746 | PyObject *obj; |
24747 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 24748 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
0085ce49 RD |
24749 | return SWIG_Py_Void(); |
24750 | } | |
24751 | ||
24f6c4e8 | 24752 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24753 | return SWIG_Python_InitShadowInstance(args); |
24754 | } | |
24755 | ||
8e99bda9 RD |
24756 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24757 | PyObject *resultobj = 0; | |
24758 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24759 | wxDC *result = 0 ; | |
24760 | void *argp1 = 0 ; | |
24761 | int res1 = 0 ; | |
24762 | PyObject * obj0 = 0 ; | |
24763 | char * kwnames[] = { | |
24764 | (char *) "window", NULL | |
24765 | }; | |
24766 | ||
24767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
24768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24769 | if (!SWIG_IsOK(res1)) { | |
24770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24771 | } | |
24772 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24773 | { | |
24774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24775 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
24776 | wxPyEndAllowThreads(__tstate); | |
24777 | if (PyErr_Occurred()) SWIG_fail; | |
24778 | } | |
24779 | { | |
24780 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
24781 | } | |
24782 | return resultobj; | |
24783 | fail: | |
24784 | return NULL; | |
24785 | } | |
24786 | ||
24787 | ||
0085ce49 RD |
24788 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24789 | PyObject *resultobj = 0; | |
24790 | wxDC *arg1 = 0 ; | |
24791 | bool arg2 ; | |
24792 | wxMirrorDC *result = 0 ; | |
24793 | void *argp1 = 0 ; | |
24794 | int res1 = 0 ; | |
24795 | bool val2 ; | |
24796 | int ecode2 = 0 ; | |
24797 | PyObject * obj0 = 0 ; | |
24798 | PyObject * obj1 = 0 ; | |
24799 | char * kwnames[] = { | |
24800 | (char *) "dc",(char *) "mirror", NULL | |
24801 | }; | |
24802 | ||
24803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
24804 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24805 | if (!SWIG_IsOK(res1)) { | |
24806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24807 | } | |
24808 | if (!argp1) { | |
24809 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24810 | } | |
24811 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24812 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24813 | if (!SWIG_IsOK(ecode2)) { | |
24814 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
24815 | } | |
24816 | arg2 = static_cast< bool >(val2); | |
24817 | { | |
24818 | if (!wxPyCheckForApp()) SWIG_fail; | |
24819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24820 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
24821 | wxPyEndAllowThreads(__tstate); | |
24822 | if (PyErr_Occurred()) SWIG_fail; | |
24823 | } | |
24824 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
24825 | return resultobj; | |
24826 | fail: | |
24827 | return NULL; | |
24828 | } | |
24829 | ||
24830 | ||
24831 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24832 | PyObject *obj; | |
24833 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24834 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
24835 | return SWIG_Py_Void(); | |
24836 | } | |
24837 | ||
24838 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24839 | return SWIG_Python_InitShadowInstance(args); | |
24840 | } | |
24841 | ||
24842 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24843 | PyObject *resultobj = 0; | |
24844 | wxPrintData *arg1 = 0 ; | |
24845 | wxPostScriptDC *result = 0 ; | |
24846 | void *argp1 = 0 ; | |
24847 | int res1 = 0 ; | |
24848 | PyObject * obj0 = 0 ; | |
24849 | char * kwnames[] = { | |
24850 | (char *) "printData", NULL | |
24851 | }; | |
24852 | ||
24853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
24854 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24855 | if (!SWIG_IsOK(res1)) { | |
24856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24857 | } | |
24858 | if (!argp1) { | |
24859 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24860 | } | |
24861 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24862 | { | |
24863 | if (!wxPyCheckForApp()) SWIG_fail; | |
24864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24865 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
24866 | wxPyEndAllowThreads(__tstate); | |
24867 | if (PyErr_Occurred()) SWIG_fail; | |
24868 | } | |
24869 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
24870 | return resultobj; | |
24871 | fail: | |
24872 | return NULL; | |
24873 | } | |
24874 | ||
24875 | ||
24876 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24877 | PyObject *resultobj = 0; | |
24878 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24879 | wxPrintData *result = 0 ; | |
24880 | void *argp1 = 0 ; | |
24881 | int res1 = 0 ; | |
24882 | PyObject *swig_obj[1] ; | |
24883 | ||
24884 | if (!args) SWIG_fail; | |
24885 | swig_obj[0] = args; | |
24886 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24887 | if (!SWIG_IsOK(res1)) { | |
24888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24889 | } | |
24890 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24891 | { | |
24892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 24893 | { |
0085ce49 RD |
24894 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
24895 | result = (wxPrintData *) &_result_ref; | |
e2950dbb | 24896 | } |
0085ce49 RD |
24897 | wxPyEndAllowThreads(__tstate); |
24898 | if (PyErr_Occurred()) SWIG_fail; | |
24899 | } | |
24900 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24901 | return resultobj; | |
24902 | fail: | |
24903 | return NULL; | |
24904 | } | |
24905 | ||
24906 | ||
24907 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24908 | PyObject *resultobj = 0; | |
24909 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24910 | wxPrintData *arg2 = 0 ; | |
24911 | void *argp1 = 0 ; | |
24912 | int res1 = 0 ; | |
24913 | void *argp2 = 0 ; | |
24914 | int res2 = 0 ; | |
24915 | PyObject * obj0 = 0 ; | |
24916 | PyObject * obj1 = 0 ; | |
24917 | char * kwnames[] = { | |
24918 | (char *) "self",(char *) "data", NULL | |
24919 | }; | |
24920 | ||
24921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24923 | if (!SWIG_IsOK(res1)) { | |
24924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24925 | } | |
24926 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24927 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24928 | if (!SWIG_IsOK(res2)) { | |
24929 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24930 | } | |
24931 | if (!argp2) { | |
24932 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24933 | } | |
24934 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
24935 | { | |
24936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24937 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
24938 | wxPyEndAllowThreads(__tstate); | |
24939 | if (PyErr_Occurred()) SWIG_fail; | |
24940 | } | |
24941 | resultobj = SWIG_Py_Void(); | |
24942 | return resultobj; | |
24943 | fail: | |
24944 | return NULL; | |
24945 | } | |
24946 | ||
24947 | ||
24948 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24949 | PyObject *resultobj = 0; | |
24950 | int arg1 ; | |
24951 | int val1 ; | |
24952 | int ecode1 = 0 ; | |
24953 | PyObject * obj0 = 0 ; | |
24954 | char * kwnames[] = { | |
24955 | (char *) "ppi", NULL | |
24956 | }; | |
24957 | ||
24958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
24959 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24960 | if (!SWIG_IsOK(ecode1)) { | |
24961 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
24962 | } | |
24963 | arg1 = static_cast< int >(val1); | |
24964 | { | |
24965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24966 | wxPostScriptDC::SetResolution(arg1); | |
24967 | wxPyEndAllowThreads(__tstate); | |
24968 | if (PyErr_Occurred()) SWIG_fail; | |
24969 | } | |
24970 | resultobj = SWIG_Py_Void(); | |
24971 | return resultobj; | |
24972 | fail: | |
24973 | return NULL; | |
24974 | } | |
24975 | ||
24976 | ||
24977 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24978 | PyObject *resultobj = 0; | |
24979 | int result; | |
24980 | ||
24981 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
24982 | { | |
24983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24984 | result = (int)wxPostScriptDC::GetResolution(); | |
24985 | wxPyEndAllowThreads(__tstate); | |
24986 | if (PyErr_Occurred()) SWIG_fail; | |
24987 | } | |
24988 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24989 | return resultobj; | |
24990 | fail: | |
24991 | return NULL; | |
24992 | } | |
24993 | ||
24994 | ||
24995 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24996 | PyObject *obj; | |
24997 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24998 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
24999 | return SWIG_Py_Void(); | |
25000 | } | |
25001 | ||
25002 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25003 | return SWIG_Python_InitShadowInstance(args); | |
25004 | } | |
25005 | ||
25006 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25007 | PyObject *resultobj = 0; | |
25008 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25009 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25010 | wxMetaFile *result = 0 ; | |
25011 | bool temp1 = false ; | |
25012 | PyObject * obj0 = 0 ; | |
25013 | char * kwnames[] = { | |
25014 | (char *) "filename", NULL | |
25015 | }; | |
25016 | ||
25017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
25018 | if (obj0) { | |
093d3ff1 | 25019 | { |
0085ce49 RD |
25020 | arg1 = wxString_in_helper(obj0); |
25021 | if (arg1 == NULL) SWIG_fail; | |
25022 | temp1 = true; | |
093d3ff1 | 25023 | } |
0085ce49 RD |
25024 | } |
25025 | { | |
25026 | if (!wxPyCheckForApp()) SWIG_fail; | |
25027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25028 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
25029 | wxPyEndAllowThreads(__tstate); | |
25030 | if (PyErr_Occurred()) SWIG_fail; | |
25031 | } | |
25032 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
25033 | { | |
25034 | if (temp1) | |
25035 | delete arg1; | |
25036 | } | |
25037 | return resultobj; | |
25038 | fail: | |
25039 | { | |
25040 | if (temp1) | |
25041 | delete arg1; | |
25042 | } | |
25043 | return NULL; | |
25044 | } | |
25045 | ||
25046 | ||
25047 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25048 | PyObject *obj; | |
25049 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25050 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
25051 | return SWIG_Py_Void(); | |
25052 | } | |
25053 | ||
25054 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25055 | return SWIG_Python_InitShadowInstance(args); | |
25056 | } | |
25057 | ||
25058 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25059 | PyObject *resultobj = 0; | |
25060 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25061 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25062 | int arg2 = (int) 0 ; | |
25063 | int arg3 = (int) 0 ; | |
25064 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25065 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25066 | wxMetaFileDC *result = 0 ; | |
25067 | bool temp1 = false ; | |
25068 | int val2 ; | |
25069 | int ecode2 = 0 ; | |
25070 | int val3 ; | |
25071 | int ecode3 = 0 ; | |
25072 | bool temp4 = false ; | |
25073 | PyObject * obj0 = 0 ; | |
25074 | PyObject * obj1 = 0 ; | |
25075 | PyObject * obj2 = 0 ; | |
25076 | PyObject * obj3 = 0 ; | |
25077 | char * kwnames[] = { | |
25078 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
25079 | }; | |
25080 | ||
25081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
25082 | if (obj0) { | |
093d3ff1 | 25083 | { |
0085ce49 RD |
25084 | arg1 = wxString_in_helper(obj0); |
25085 | if (arg1 == NULL) SWIG_fail; | |
25086 | temp1 = true; | |
093d3ff1 | 25087 | } |
0085ce49 RD |
25088 | } |
25089 | if (obj1) { | |
25090 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25091 | if (!SWIG_IsOK(ecode2)) { | |
25092 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
25093 | } | |
25094 | arg2 = static_cast< int >(val2); | |
25095 | } | |
25096 | if (obj2) { | |
25097 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25098 | if (!SWIG_IsOK(ecode3)) { | |
25099 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
25100 | } | |
25101 | arg3 = static_cast< int >(val3); | |
25102 | } | |
25103 | if (obj3) { | |
093d3ff1 | 25104 | { |
0085ce49 RD |
25105 | arg4 = wxString_in_helper(obj3); |
25106 | if (arg4 == NULL) SWIG_fail; | |
25107 | temp4 = true; | |
093d3ff1 | 25108 | } |
0085ce49 RD |
25109 | } |
25110 | { | |
25111 | if (!wxPyCheckForApp()) SWIG_fail; | |
25112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25113 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
25114 | wxPyEndAllowThreads(__tstate); | |
25115 | if (PyErr_Occurred()) SWIG_fail; | |
25116 | } | |
25117 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
25118 | { | |
25119 | if (temp1) | |
25120 | delete arg1; | |
25121 | } | |
25122 | { | |
25123 | if (temp4) | |
25124 | delete arg4; | |
25125 | } | |
25126 | return resultobj; | |
25127 | fail: | |
25128 | { | |
25129 | if (temp1) | |
25130 | delete arg1; | |
25131 | } | |
25132 | { | |
25133 | if (temp4) | |
25134 | delete arg4; | |
25135 | } | |
25136 | return NULL; | |
25137 | } | |
25138 | ||
25139 | ||
25140 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25141 | PyObject *obj; | |
25142 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25143 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
25144 | return SWIG_Py_Void(); | |
25145 | } | |
25146 | ||
25147 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25148 | return SWIG_Python_InitShadowInstance(args); | |
25149 | } | |
25150 | ||
25151 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25152 | PyObject *resultobj = 0; | |
25153 | wxPrintData *arg1 = 0 ; | |
25154 | wxPrinterDC *result = 0 ; | |
25155 | void *argp1 = 0 ; | |
25156 | int res1 = 0 ; | |
25157 | PyObject * obj0 = 0 ; | |
25158 | char * kwnames[] = { | |
25159 | (char *) "printData", NULL | |
25160 | }; | |
25161 | ||
25162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
25163 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25164 | if (!SWIG_IsOK(res1)) { | |
25165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25166 | } | |
25167 | if (!argp1) { | |
25168 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25169 | } | |
25170 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25171 | { | |
25172 | if (!wxPyCheckForApp()) SWIG_fail; | |
25173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25174 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
25175 | wxPyEndAllowThreads(__tstate); | |
25176 | if (PyErr_Occurred()) SWIG_fail; | |
25177 | } | |
25178 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
25179 | return resultobj; | |
25180 | fail: | |
25181 | return NULL; | |
25182 | } | |
25183 | ||
25184 | ||
25185 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25186 | PyObject *obj; | |
25187 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25188 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
25189 | return SWIG_Py_Void(); | |
25190 | } | |
25191 | ||
25192 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25193 | return SWIG_Python_InitShadowInstance(args); | |
25194 | } | |
25195 | ||
70d7cb34 RD |
25196 | SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25197 | PyObject *resultobj = 0; | |
25198 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ; | |
25199 | wxGraphicsObject *result = 0 ; | |
25200 | void *argp1 = 0 ; | |
25201 | int res1 = 0 ; | |
25202 | PyObject * obj0 = 0 ; | |
25203 | char * kwnames[] = { | |
25204 | (char *) "renderer", NULL | |
25205 | }; | |
25206 | ||
25207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail; | |
25208 | if (obj0) { | |
25209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25210 | if (!SWIG_IsOK(res1)) { | |
25211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
25212 | } | |
25213 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
25214 | } | |
25215 | { | |
25216 | result = (wxGraphicsObject *)new wxGraphicsObject(arg1); | |
25217 | if (PyErr_Occurred()) SWIG_fail; | |
25218 | } | |
25219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 ); | |
25220 | return resultobj; | |
25221 | fail: | |
25222 | return NULL; | |
25223 | } | |
25224 | ||
25225 | ||
25226 | SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25227 | PyObject *resultobj = 0; | |
25228 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25229 | void *argp1 = 0 ; | |
25230 | int res1 = 0 ; | |
25231 | PyObject *swig_obj[1] ; | |
25232 | ||
25233 | if (!args) SWIG_fail; | |
25234 | swig_obj[0] = args; | |
25235 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 ); | |
25236 | if (!SWIG_IsOK(res1)) { | |
25237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'"); | |
25238 | } | |
25239 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25240 | { | |
25241 | delete arg1; | |
25242 | ||
25243 | if (PyErr_Occurred()) SWIG_fail; | |
25244 | } | |
25245 | resultobj = SWIG_Py_Void(); | |
25246 | return resultobj; | |
25247 | fail: | |
25248 | return NULL; | |
25249 | } | |
25250 | ||
25251 | ||
25252 | SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25253 | PyObject *resultobj = 0; | |
25254 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25255 | bool result; | |
25256 | void *argp1 = 0 ; | |
25257 | int res1 = 0 ; | |
25258 | PyObject *swig_obj[1] ; | |
25259 | ||
25260 | if (!args) SWIG_fail; | |
25261 | swig_obj[0] = args; | |
25262 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25263 | if (!SWIG_IsOK(res1)) { | |
25264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25265 | } | |
25266 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25267 | { | |
25268 | result = (bool)((wxGraphicsObject const *)arg1)->IsNull(); | |
25269 | if (PyErr_Occurred()) SWIG_fail; | |
25270 | } | |
25271 | { | |
25272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25273 | } | |
25274 | return resultobj; | |
25275 | fail: | |
25276 | return NULL; | |
25277 | } | |
25278 | ||
25279 | ||
25280 | SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25281 | PyObject *resultobj = 0; | |
25282 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25283 | wxGraphicsRenderer *result = 0 ; | |
25284 | void *argp1 = 0 ; | |
25285 | int res1 = 0 ; | |
25286 | PyObject *swig_obj[1] ; | |
25287 | ||
25288 | if (!args) SWIG_fail; | |
25289 | swig_obj[0] = args; | |
25290 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25291 | if (!SWIG_IsOK(res1)) { | |
25292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25293 | } | |
25294 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25295 | { | |
25296 | result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer(); | |
25297 | if (PyErr_Occurred()) SWIG_fail; | |
25298 | } | |
25299 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25300 | return resultobj; | |
25301 | fail: | |
25302 | return NULL; | |
25303 | } | |
25304 | ||
25305 | ||
25306 | SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25307 | PyObject *obj; | |
25308 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25309 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj)); | |
25310 | return SWIG_Py_Void(); | |
25311 | } | |
25312 | ||
25313 | SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25314 | return SWIG_Python_InitShadowInstance(args); | |
25315 | } | |
25316 | ||
25317 | SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25318 | PyObject *resultobj = 0; | |
25319 | wxGraphicsPen *result = 0 ; | |
25320 | ||
25321 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail; | |
25322 | { | |
25323 | result = (wxGraphicsPen *)new wxGraphicsPen(); | |
25324 | if (PyErr_Occurred()) SWIG_fail; | |
25325 | } | |
25326 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 ); | |
25327 | return resultobj; | |
25328 | fail: | |
25329 | return NULL; | |
25330 | } | |
25331 | ||
25332 | ||
25333 | SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25334 | PyObject *resultobj = 0; | |
25335 | wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ; | |
25336 | void *argp1 = 0 ; | |
25337 | int res1 = 0 ; | |
25338 | PyObject *swig_obj[1] ; | |
25339 | ||
25340 | if (!args) SWIG_fail; | |
25341 | swig_obj[0] = args; | |
25342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 ); | |
25343 | if (!SWIG_IsOK(res1)) { | |
25344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'"); | |
25345 | } | |
25346 | arg1 = reinterpret_cast< wxGraphicsPen * >(argp1); | |
25347 | { | |
25348 | delete arg1; | |
25349 | ||
25350 | if (PyErr_Occurred()) SWIG_fail; | |
25351 | } | |
25352 | resultobj = SWIG_Py_Void(); | |
25353 | return resultobj; | |
25354 | fail: | |
25355 | return NULL; | |
25356 | } | |
25357 | ||
25358 | ||
25359 | SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25360 | PyObject *obj; | |
25361 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25362 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj)); | |
25363 | return SWIG_Py_Void(); | |
25364 | } | |
25365 | ||
25366 | SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25367 | return SWIG_Python_InitShadowInstance(args); | |
25368 | } | |
25369 | ||
25370 | SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25371 | PyObject *resultobj = 0; | |
25372 | wxGraphicsBrush *result = 0 ; | |
25373 | ||
25374 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail; | |
25375 | { | |
25376 | result = (wxGraphicsBrush *)new wxGraphicsBrush(); | |
25377 | if (PyErr_Occurred()) SWIG_fail; | |
25378 | } | |
25379 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 ); | |
25380 | return resultobj; | |
25381 | fail: | |
25382 | return NULL; | |
25383 | } | |
25384 | ||
25385 | ||
25386 | SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25387 | PyObject *resultobj = 0; | |
25388 | wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ; | |
25389 | void *argp1 = 0 ; | |
25390 | int res1 = 0 ; | |
25391 | PyObject *swig_obj[1] ; | |
25392 | ||
25393 | if (!args) SWIG_fail; | |
25394 | swig_obj[0] = args; | |
25395 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 ); | |
25396 | if (!SWIG_IsOK(res1)) { | |
25397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'"); | |
25398 | } | |
25399 | arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1); | |
25400 | { | |
25401 | delete arg1; | |
25402 | ||
25403 | if (PyErr_Occurred()) SWIG_fail; | |
25404 | } | |
25405 | resultobj = SWIG_Py_Void(); | |
25406 | return resultobj; | |
25407 | fail: | |
25408 | return NULL; | |
25409 | } | |
25410 | ||
25411 | ||
25412 | SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25413 | PyObject *obj; | |
25414 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25415 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj)); | |
25416 | return SWIG_Py_Void(); | |
25417 | } | |
25418 | ||
25419 | SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25420 | return SWIG_Python_InitShadowInstance(args); | |
25421 | } | |
25422 | ||
25423 | SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25424 | PyObject *resultobj = 0; | |
25425 | wxGraphicsFont *result = 0 ; | |
25426 | ||
25427 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail; | |
25428 | { | |
25429 | result = (wxGraphicsFont *)new wxGraphicsFont(); | |
25430 | if (PyErr_Occurred()) SWIG_fail; | |
25431 | } | |
25432 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 ); | |
25433 | return resultobj; | |
25434 | fail: | |
25435 | return NULL; | |
25436 | } | |
25437 | ||
25438 | ||
25439 | SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25440 | PyObject *resultobj = 0; | |
25441 | wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ; | |
25442 | void *argp1 = 0 ; | |
25443 | int res1 = 0 ; | |
25444 | PyObject *swig_obj[1] ; | |
25445 | ||
25446 | if (!args) SWIG_fail; | |
25447 | swig_obj[0] = args; | |
25448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 ); | |
25449 | if (!SWIG_IsOK(res1)) { | |
25450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'"); | |
25451 | } | |
25452 | arg1 = reinterpret_cast< wxGraphicsFont * >(argp1); | |
25453 | { | |
25454 | delete arg1; | |
25455 | ||
25456 | if (PyErr_Occurred()) SWIG_fail; | |
25457 | } | |
25458 | resultobj = SWIG_Py_Void(); | |
25459 | return resultobj; | |
25460 | fail: | |
25461 | return NULL; | |
25462 | } | |
25463 | ||
25464 | ||
25465 | SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25466 | PyObject *obj; | |
25467 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25468 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj)); | |
25469 | return SWIG_Py_Void(); | |
25470 | } | |
25471 | ||
25472 | SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25473 | return SWIG_Python_InitShadowInstance(args); | |
25474 | } | |
25475 | ||
8f514ab4 RD |
25476 | SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25477 | PyObject *resultobj = 0; | |
25478 | wxGraphicsMatrix *result = 0 ; | |
25479 | ||
25480 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail; | |
25481 | { | |
25482 | result = (wxGraphicsMatrix *)new wxGraphicsMatrix(); | |
25483 | if (PyErr_Occurred()) SWIG_fail; | |
25484 | } | |
25485 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 ); | |
25486 | return resultobj; | |
25487 | fail: | |
25488 | return NULL; | |
25489 | } | |
25490 | ||
25491 | ||
5c8c7dd3 | 25492 | SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25493 | PyObject *resultobj = 0; |
5c8c7dd3 | 25494 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25495 | void *argp1 = 0 ; |
25496 | int res1 = 0 ; | |
25497 | PyObject *swig_obj[1] ; | |
25498 | ||
25499 | if (!args) SWIG_fail; | |
25500 | swig_obj[0] = args; | |
5c8c7dd3 | 25501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 25502 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25504 | } |
5c8c7dd3 | 25505 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25506 | { |
0085ce49 RD |
25507 | delete arg1; |
25508 | ||
0085ce49 RD |
25509 | if (PyErr_Occurred()) SWIG_fail; |
25510 | } | |
25511 | resultobj = SWIG_Py_Void(); | |
25512 | return resultobj; | |
25513 | fail: | |
25514 | return NULL; | |
25515 | } | |
25516 | ||
25517 | ||
5c8c7dd3 | 25518 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25519 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25520 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25521 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
25522 | void *argp1 = 0 ; |
25523 | int res1 = 0 ; | |
5c8c7dd3 RD |
25524 | void *argp2 = 0 ; |
25525 | int res2 = 0 ; | |
25526 | PyObject * obj0 = 0 ; | |
25527 | PyObject * obj1 = 0 ; | |
25528 | char * kwnames[] = { | |
25529 | (char *) "self",(char *) "t", NULL | |
25530 | }; | |
70d7cb34 | 25531 | |
5c8c7dd3 RD |
25532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail; |
25533 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25534 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25536 | } |
5c8c7dd3 RD |
25537 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25538 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25539 | if (!SWIG_IsOK(res2)) { | |
25540 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25541 | } | |
25542 | if (!argp2) { | |
25543 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25544 | } | |
25545 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 25546 | { |
5c8c7dd3 | 25547 | (arg1)->Concat((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25548 | if (PyErr_Occurred()) SWIG_fail; |
25549 | } | |
5c8c7dd3 | 25550 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
25551 | return resultobj; |
25552 | fail: | |
25553 | return NULL; | |
25554 | } | |
25555 | ||
25556 | ||
5c8c7dd3 | 25557 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25558 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25559 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25560 | wxDouble arg2 = (wxDouble) 1.0 ; | |
25561 | wxDouble arg3 = (wxDouble) 0.0 ; | |
25562 | wxDouble arg4 = (wxDouble) 0.0 ; | |
25563 | wxDouble arg5 = (wxDouble) 1.0 ; | |
25564 | wxDouble arg6 = (wxDouble) 0.0 ; | |
25565 | wxDouble arg7 = (wxDouble) 0.0 ; | |
70d7cb34 RD |
25566 | void *argp1 = 0 ; |
25567 | int res1 = 0 ; | |
5c8c7dd3 RD |
25568 | double val2 ; |
25569 | int ecode2 = 0 ; | |
25570 | double val3 ; | |
25571 | int ecode3 = 0 ; | |
25572 | double val4 ; | |
25573 | int ecode4 = 0 ; | |
25574 | double val5 ; | |
25575 | int ecode5 = 0 ; | |
25576 | double val6 ; | |
25577 | int ecode6 = 0 ; | |
25578 | double val7 ; | |
25579 | int ecode7 = 0 ; | |
25580 | PyObject * obj0 = 0 ; | |
25581 | PyObject * obj1 = 0 ; | |
25582 | PyObject * obj2 = 0 ; | |
25583 | PyObject * obj3 = 0 ; | |
25584 | PyObject * obj4 = 0 ; | |
25585 | PyObject * obj5 = 0 ; | |
25586 | PyObject * obj6 = 0 ; | |
25587 | char * kwnames[] = { | |
25588 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
25589 | }; | |
70d7cb34 | 25590 | |
5c8c7dd3 RD |
25591 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
25592 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25593 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25595 | } |
5c8c7dd3 RD |
25596 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25597 | if (obj1) { | |
25598 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25599 | if (!SWIG_IsOK(ecode2)) { | |
25600 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25601 | } | |
25602 | arg2 = static_cast< wxDouble >(val2); | |
25603 | } | |
25604 | if (obj2) { | |
25605 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25606 | if (!SWIG_IsOK(ecode3)) { | |
25607 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25608 | } | |
25609 | arg3 = static_cast< wxDouble >(val3); | |
25610 | } | |
25611 | if (obj3) { | |
25612 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25613 | if (!SWIG_IsOK(ecode4)) { | |
25614 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25615 | } | |
25616 | arg4 = static_cast< wxDouble >(val4); | |
25617 | } | |
25618 | if (obj4) { | |
25619 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25620 | if (!SWIG_IsOK(ecode5)) { | |
25621 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25622 | } | |
25623 | arg5 = static_cast< wxDouble >(val5); | |
25624 | } | |
25625 | if (obj5) { | |
25626 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
25627 | if (!SWIG_IsOK(ecode6)) { | |
25628 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'"); | |
25629 | } | |
25630 | arg6 = static_cast< wxDouble >(val6); | |
25631 | } | |
25632 | if (obj6) { | |
25633 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
25634 | if (!SWIG_IsOK(ecode7)) { | |
25635 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'"); | |
25636 | } | |
25637 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 RD |
25638 | } |
25639 | { | |
5c8c7dd3 | 25640 | (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
25641 | if (PyErr_Occurred()) SWIG_fail; |
25642 | } | |
25643 | resultobj = SWIG_Py_Void(); | |
25644 | return resultobj; | |
25645 | fail: | |
25646 | return NULL; | |
25647 | } | |
25648 | ||
25649 | ||
248802d0 RD |
25650 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25651 | PyObject *resultobj = 0; | |
25652 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25653 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25654 | wxDouble *arg3 = (wxDouble *) 0 ; | |
25655 | wxDouble *arg4 = (wxDouble *) 0 ; | |
25656 | wxDouble *arg5 = (wxDouble *) 0 ; | |
25657 | wxDouble *arg6 = (wxDouble *) 0 ; | |
25658 | wxDouble *arg7 = (wxDouble *) 0 ; | |
25659 | void *argp1 = 0 ; | |
25660 | int res1 = 0 ; | |
25661 | wxDouble temp2 ; | |
25662 | int res2 = SWIG_TMPOBJ ; | |
25663 | wxDouble temp3 ; | |
25664 | int res3 = SWIG_TMPOBJ ; | |
25665 | wxDouble temp4 ; | |
25666 | int res4 = SWIG_TMPOBJ ; | |
25667 | wxDouble temp5 ; | |
25668 | int res5 = SWIG_TMPOBJ ; | |
25669 | wxDouble temp6 ; | |
25670 | int res6 = SWIG_TMPOBJ ; | |
25671 | wxDouble temp7 ; | |
25672 | int res7 = SWIG_TMPOBJ ; | |
25673 | PyObject *swig_obj[1] ; | |
25674 | ||
25675 | arg2 = &temp2; | |
25676 | arg3 = &temp3; | |
25677 | arg4 = &temp4; | |
25678 | arg5 = &temp5; | |
25679 | arg6 = &temp6; | |
25680 | arg7 = &temp7; | |
25681 | if (!args) SWIG_fail; | |
25682 | swig_obj[0] = args; | |
25683 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25684 | if (!SWIG_IsOK(res1)) { | |
25685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); | |
25686 | } | |
25687 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25688 | { | |
25689 | (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7); | |
25690 | if (PyErr_Occurred()) SWIG_fail; | |
25691 | } | |
25692 | resultobj = SWIG_Py_Void(); | |
25693 | if (SWIG_IsTmpObj(res2)) { | |
25694 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
25695 | } else { | |
25696 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25697 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
25698 | } | |
25699 | if (SWIG_IsTmpObj(res3)) { | |
25700 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
25701 | } else { | |
25702 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25703 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
25704 | } | |
25705 | if (SWIG_IsTmpObj(res4)) { | |
25706 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
25707 | } else { | |
25708 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25709 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
25710 | } | |
25711 | if (SWIG_IsTmpObj(res5)) { | |
25712 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
25713 | } else { | |
25714 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25715 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
25716 | } | |
25717 | if (SWIG_IsTmpObj(res6)) { | |
25718 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
25719 | } else { | |
25720 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25721 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
25722 | } | |
25723 | if (SWIG_IsTmpObj(res7)) { | |
25724 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7))); | |
25725 | } else { | |
25726 | int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25727 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags)); | |
25728 | } | |
25729 | return resultobj; | |
25730 | fail: | |
25731 | return NULL; | |
25732 | } | |
25733 | ||
25734 | ||
5c8c7dd3 | 25735 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25736 | PyObject *resultobj = 0; |
5c8c7dd3 | 25737 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25738 | void *argp1 = 0 ; |
25739 | int res1 = 0 ; | |
5c8c7dd3 | 25740 | PyObject *swig_obj[1] ; |
0085ce49 | 25741 | |
5c8c7dd3 RD |
25742 | if (!args) SWIG_fail; |
25743 | swig_obj[0] = args; | |
25744 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
0085ce49 | 25745 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25747 | } |
5c8c7dd3 | 25748 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25749 | { |
5c8c7dd3 | 25750 | (arg1)->Invert(); |
0085ce49 RD |
25751 | if (PyErr_Occurred()) SWIG_fail; |
25752 | } | |
72ef6efb | 25753 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
25754 | return resultobj; |
25755 | fail: | |
25756 | return NULL; | |
25757 | } | |
25758 | ||
25759 | ||
5c8c7dd3 | 25760 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25761 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25762 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25763 | wxGraphicsMatrix *arg2 = 0 ; | |
25764 | bool result; | |
70d7cb34 RD |
25765 | void *argp1 = 0 ; |
25766 | int res1 = 0 ; | |
5c8c7dd3 RD |
25767 | void *argp2 = 0 ; |
25768 | int res2 = 0 ; | |
25769 | PyObject * obj0 = 0 ; | |
25770 | PyObject * obj1 = 0 ; | |
25771 | char * kwnames[] = { | |
25772 | (char *) "self",(char *) "t", NULL | |
25773 | }; | |
70d7cb34 | 25774 | |
5c8c7dd3 RD |
25775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; |
25776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25777 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 25779 | } |
5c8c7dd3 RD |
25780 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25781 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25782 | if (!SWIG_IsOK(res2)) { | |
25783 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25784 | } | |
25785 | if (!argp2) { | |
25786 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
70d7cb34 | 25787 | } |
5c8c7dd3 | 25788 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); |
70d7cb34 | 25789 | { |
5c8c7dd3 | 25790 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25791 | if (PyErr_Occurred()) SWIG_fail; |
25792 | } | |
5c8c7dd3 RD |
25793 | { |
25794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25795 | } | |
70d7cb34 RD |
25796 | return resultobj; |
25797 | fail: | |
25798 | return NULL; | |
25799 | } | |
25800 | ||
25801 | ||
5c8c7dd3 RD |
25802 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25803 | PyObject *resultobj = 0; | |
25804 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25805 | bool result; | |
25806 | void *argp1 = 0 ; | |
25807 | int res1 = 0 ; | |
25808 | PyObject *swig_obj[1] ; | |
70d7cb34 | 25809 | |
5c8c7dd3 RD |
25810 | if (!args) SWIG_fail; |
25811 | swig_obj[0] = args; | |
25812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25813 | if (!SWIG_IsOK(res1)) { | |
25814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
70d7cb34 | 25815 | } |
5c8c7dd3 RD |
25816 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25817 | { | |
25818 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity(); | |
25819 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 25820 | } |
5c8c7dd3 RD |
25821 | { |
25822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25823 | } | |
25824 | return resultobj; | |
70d7cb34 | 25825 | fail: |
70d7cb34 RD |
25826 | return NULL; |
25827 | } | |
25828 | ||
25829 | ||
5c8c7dd3 | 25830 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 25831 | PyObject *resultobj = 0; |
5c8c7dd3 | 25832 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
72ef6efb RD |
25833 | wxDouble arg2 ; |
25834 | wxDouble arg3 ; | |
0085ce49 RD |
25835 | void *argp1 = 0 ; |
25836 | int res1 = 0 ; | |
72ef6efb RD |
25837 | double val2 ; |
25838 | int ecode2 = 0 ; | |
25839 | double val3 ; | |
25840 | int ecode3 = 0 ; | |
5c8c7dd3 RD |
25841 | PyObject * obj0 = 0 ; |
25842 | PyObject * obj1 = 0 ; | |
25843 | PyObject * obj2 = 0 ; | |
25844 | char * kwnames[] = { | |
25845 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
25846 | }; | |
72ef6efb | 25847 | |
5c8c7dd3 RD |
25848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25850 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
72ef6efb | 25852 | } |
5c8c7dd3 RD |
25853 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25854 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
72ef6efb | 25855 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 25856 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
25857 | } |
25858 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 25859 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 25860 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 25861 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
25862 | } |
25863 | arg3 = static_cast< wxDouble >(val3); | |
72ef6efb | 25864 | { |
5c8c7dd3 | 25865 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
25866 | if (PyErr_Occurred()) SWIG_fail; |
25867 | } | |
25868 | resultobj = SWIG_Py_Void(); | |
25869 | return resultobj; | |
25870 | fail: | |
25871 | return NULL; | |
25872 | } | |
25873 | ||
25874 | ||
5c8c7dd3 | 25875 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25876 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25877 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25878 | wxDouble arg2 ; | |
25879 | wxDouble arg3 ; | |
70d7cb34 RD |
25880 | void *argp1 = 0 ; |
25881 | int res1 = 0 ; | |
5c8c7dd3 RD |
25882 | double val2 ; |
25883 | int ecode2 = 0 ; | |
25884 | double val3 ; | |
25885 | int ecode3 = 0 ; | |
25886 | PyObject * obj0 = 0 ; | |
25887 | PyObject * obj1 = 0 ; | |
25888 | PyObject * obj2 = 0 ; | |
25889 | char * kwnames[] = { | |
25890 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
25891 | }; | |
70d7cb34 | 25892 | |
5c8c7dd3 RD |
25893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25895 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25897 | } |
5c8c7dd3 RD |
25898 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25899 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25900 | if (!SWIG_IsOK(ecode2)) { | |
25901 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25902 | } | |
25903 | arg2 = static_cast< wxDouble >(val2); | |
25904 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25905 | if (!SWIG_IsOK(ecode3)) { | |
25906 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25907 | } | |
25908 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 25909 | { |
5c8c7dd3 | 25910 | (arg1)->Scale(arg2,arg3); |
70d7cb34 RD |
25911 | if (PyErr_Occurred()) SWIG_fail; |
25912 | } | |
25913 | resultobj = SWIG_Py_Void(); | |
25914 | return resultobj; | |
25915 | fail: | |
25916 | return NULL; | |
25917 | } | |
25918 | ||
25919 | ||
5c8c7dd3 | 25920 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25921 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25922 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25923 | wxDouble arg2 ; | |
70d7cb34 RD |
25924 | void *argp1 = 0 ; |
25925 | int res1 = 0 ; | |
5c8c7dd3 RD |
25926 | double val2 ; |
25927 | int ecode2 = 0 ; | |
70d7cb34 RD |
25928 | PyObject * obj0 = 0 ; |
25929 | PyObject * obj1 = 0 ; | |
25930 | char * kwnames[] = { | |
5c8c7dd3 | 25931 | (char *) "self",(char *) "angle", NULL |
70d7cb34 RD |
25932 | }; |
25933 | ||
5c8c7dd3 RD |
25934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; |
25935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25936 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25938 | } |
5c8c7dd3 RD |
25939 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25940 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25941 | if (!SWIG_IsOK(ecode2)) { | |
25942 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25943 | } | |
25944 | arg2 = static_cast< wxDouble >(val2); | |
70d7cb34 | 25945 | { |
5c8c7dd3 | 25946 | (arg1)->Rotate(arg2); |
70d7cb34 RD |
25947 | if (PyErr_Occurred()) SWIG_fail; |
25948 | } | |
25949 | resultobj = SWIG_Py_Void(); | |
25950 | return resultobj; | |
25951 | fail: | |
25952 | return NULL; | |
25953 | } | |
25954 | ||
25955 | ||
5c8c7dd3 | 25956 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 25957 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25958 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25959 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25960 | wxDouble *arg3 = (wxDouble *) 0 ; | |
72ef6efb RD |
25961 | void *argp1 = 0 ; |
25962 | int res1 = 0 ; | |
5c8c7dd3 RD |
25963 | wxDouble temp2 ; |
25964 | int res2 = 0 ; | |
25965 | wxDouble temp3 ; | |
25966 | int res3 = 0 ; | |
25967 | PyObject * obj0 = 0 ; | |
25968 | PyObject * obj1 = 0 ; | |
25969 | PyObject * obj2 = 0 ; | |
25970 | char * kwnames[] = { | |
25971 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
25972 | }; | |
72ef6efb | 25973 | |
5c8c7dd3 RD |
25974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25976 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
25977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
25978 | } | |
25979 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25980 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
25981 | double val; | |
25982 | int ecode = SWIG_AsVal_double(obj1, &val); | |
25983 | if (!SWIG_IsOK(ecode)) { | |
25984 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25985 | } | |
25986 | temp2 = static_cast< wxDouble >(val); | |
25987 | arg2 = &temp2; | |
25988 | res2 = SWIG_AddTmpMask(ecode); | |
25989 | } | |
25990 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
25991 | double val; | |
25992 | int ecode = SWIG_AsVal_double(obj2, &val); | |
25993 | if (!SWIG_IsOK(ecode)) { | |
25994 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25995 | } | |
25996 | temp3 = static_cast< wxDouble >(val); | |
25997 | arg3 = &temp3; | |
25998 | res3 = SWIG_AddTmpMask(ecode); | |
25999 | } | |
26000 | { | |
26001 | ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3); | |
26002 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb RD |
26003 | } |
26004 | resultobj = SWIG_Py_Void(); | |
5c8c7dd3 RD |
26005 | if (SWIG_IsTmpObj(res2)) { |
26006 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26007 | } else { | |
26008 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26009 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26010 | } | |
26011 | if (SWIG_IsTmpObj(res3)) { | |
26012 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26013 | } else { | |
26014 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26015 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26016 | } | |
72ef6efb RD |
26017 | return resultobj; |
26018 | fail: | |
26019 | return NULL; | |
26020 | } | |
26021 | ||
26022 | ||
5c8c7dd3 RD |
26023 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26024 | PyObject *resultobj = 0; | |
26025 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26026 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26027 | wxDouble *arg3 = (wxDouble *) 0 ; | |
26028 | void *argp1 = 0 ; | |
26029 | int res1 = 0 ; | |
26030 | wxDouble temp2 ; | |
26031 | int res2 = 0 ; | |
26032 | wxDouble temp3 ; | |
26033 | int res3 = 0 ; | |
26034 | PyObject * obj0 = 0 ; | |
26035 | PyObject * obj1 = 0 ; | |
26036 | PyObject * obj2 = 0 ; | |
26037 | char * kwnames[] = { | |
26038 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26039 | }; | |
26040 | ||
26041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26043 | if (!SWIG_IsOK(res1)) { | |
26044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
26045 | } | |
26046 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26047 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26048 | double val; | |
26049 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26050 | if (!SWIG_IsOK(ecode)) { | |
26051 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26052 | } | |
26053 | temp2 = static_cast< wxDouble >(val); | |
26054 | arg2 = &temp2; | |
26055 | res2 = SWIG_AddTmpMask(ecode); | |
26056 | } | |
26057 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
26058 | double val; | |
26059 | int ecode = SWIG_AsVal_double(obj2, &val); | |
26060 | if (!SWIG_IsOK(ecode)) { | |
26061 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26062 | } | |
26063 | temp3 = static_cast< wxDouble >(val); | |
26064 | arg3 = &temp3; | |
26065 | res3 = SWIG_AddTmpMask(ecode); | |
26066 | } | |
26067 | { | |
26068 | ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3); | |
26069 | if (PyErr_Occurred()) SWIG_fail; | |
26070 | } | |
26071 | resultobj = SWIG_Py_Void(); | |
26072 | if (SWIG_IsTmpObj(res2)) { | |
26073 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26074 | } else { | |
26075 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26076 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26077 | } | |
26078 | if (SWIG_IsTmpObj(res3)) { | |
26079 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26080 | } else { | |
26081 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26082 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26083 | } | |
26084 | return resultobj; | |
26085 | fail: | |
26086 | return NULL; | |
26087 | } | |
26088 | ||
26089 | ||
26090 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26091 | PyObject *resultobj = 0; | |
26092 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26093 | void *result = 0 ; | |
26094 | void *argp1 = 0 ; | |
26095 | int res1 = 0 ; | |
26096 | PyObject *swig_obj[1] ; | |
26097 | ||
26098 | if (!args) SWIG_fail; | |
26099 | swig_obj[0] = args; | |
26100 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26101 | if (!SWIG_IsOK(res1)) { | |
26102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
26103 | } | |
26104 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26105 | { | |
26106 | result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix(); | |
26107 | if (PyErr_Occurred()) SWIG_fail; | |
26108 | } | |
26109 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
26110 | return resultobj; | |
26111 | fail: | |
26112 | return NULL; | |
26113 | } | |
26114 | ||
26115 | ||
26116 | SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26117 | PyObject *obj; | |
26118 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26119 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj)); | |
26120 | return SWIG_Py_Void(); | |
26121 | } | |
26122 | ||
8f514ab4 RD |
26123 | SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26124 | return SWIG_Python_InitShadowInstance(args); | |
26125 | } | |
26126 | ||
26127 | SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26128 | PyObject *resultobj = 0; | |
26129 | wxGraphicsPath *result = 0 ; | |
26130 | ||
26131 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail; | |
26132 | { | |
26133 | if (!wxPyCheckForApp()) SWIG_fail; | |
26134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26135 | result = (wxGraphicsPath *)new wxGraphicsPath(); | |
26136 | wxPyEndAllowThreads(__tstate); | |
26137 | if (PyErr_Occurred()) SWIG_fail; | |
26138 | } | |
26139 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 ); | |
26140 | return resultobj; | |
26141 | fail: | |
26142 | return NULL; | |
26143 | } | |
26144 | ||
26145 | ||
5c8c7dd3 | 26146 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
26147 | PyObject *resultobj = 0; |
26148 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
72ef6efb RD |
26149 | void *argp1 = 0 ; |
26150 | int res1 = 0 ; | |
26151 | PyObject *swig_obj[1] ; | |
26152 | ||
26153 | if (!args) SWIG_fail; | |
26154 | swig_obj[0] = args; | |
5c8c7dd3 | 26155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
72ef6efb | 26156 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
72ef6efb RD |
26158 | } |
26159 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26160 | { | |
5c8c7dd3 RD |
26161 | delete arg1; |
26162 | ||
72ef6efb RD |
26163 | if (PyErr_Occurred()) SWIG_fail; |
26164 | } | |
5c8c7dd3 | 26165 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26166 | return resultobj; |
26167 | fail: | |
26168 | return NULL; | |
26169 | } | |
26170 | ||
26171 | ||
5c8c7dd3 | 26172 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26173 | PyObject *resultobj = 0; |
26174 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26175 | wxDouble arg2 ; | |
26176 | wxDouble arg3 ; | |
70d7cb34 RD |
26177 | void *argp1 = 0 ; |
26178 | int res1 = 0 ; | |
26179 | double val2 ; | |
26180 | int ecode2 = 0 ; | |
26181 | double val3 ; | |
26182 | int ecode3 = 0 ; | |
70d7cb34 | 26183 | |
5c8c7dd3 | 26184 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
70d7cb34 RD |
26185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26186 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26188 | } |
26189 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26190 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26191 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26192 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26193 | } |
26194 | arg2 = static_cast< wxDouble >(val2); | |
26195 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26196 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26197 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26198 | } |
26199 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26200 | { |
5c8c7dd3 | 26201 | (arg1)->MoveToPoint(arg2,arg3); |
70d7cb34 RD |
26202 | if (PyErr_Occurred()) SWIG_fail; |
26203 | } | |
26204 | resultobj = SWIG_Py_Void(); | |
26205 | return resultobj; | |
26206 | fail: | |
26207 | return NULL; | |
26208 | } | |
26209 | ||
26210 | ||
5c8c7dd3 | 26211 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26212 | PyObject *resultobj = 0; |
26213 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26214 | wxPoint2D *arg2 = 0 ; | |
70d7cb34 RD |
26215 | void *argp1 = 0 ; |
26216 | int res1 = 0 ; | |
26217 | wxPoint2D temp2 ; | |
70d7cb34 | 26218 | |
5c8c7dd3 | 26219 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
70d7cb34 RD |
26220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26221 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26223 | } |
26224 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26225 | { | |
26226 | arg2 = &temp2; | |
26227 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26228 | } | |
70d7cb34 | 26229 | { |
5c8c7dd3 | 26230 | (arg1)->MoveToPoint((wxPoint2D const &)*arg2); |
70d7cb34 RD |
26231 | if (PyErr_Occurred()) SWIG_fail; |
26232 | } | |
26233 | resultobj = SWIG_Py_Void(); | |
26234 | return resultobj; | |
26235 | fail: | |
26236 | return NULL; | |
26237 | } | |
26238 | ||
26239 | ||
5c8c7dd3 | 26240 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) { |
70d7cb34 | 26241 | int argc; |
5c8c7dd3 | 26242 | PyObject *argv[4]; |
70d7cb34 | 26243 | |
5c8c7dd3 | 26244 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail; |
70d7cb34 | 26245 | --argc; |
5c8c7dd3 RD |
26246 | if (argc == 2) { |
26247 | return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26248 | } |
5c8c7dd3 RD |
26249 | if (argc == 3) { |
26250 | return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
26251 | } |
26252 | ||
26253 | fail: | |
5c8c7dd3 | 26254 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'"); |
70d7cb34 RD |
26255 | return NULL; |
26256 | } | |
26257 | ||
26258 | ||
5c8c7dd3 | 26259 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26260 | PyObject *resultobj = 0; |
26261 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26262 | wxDouble arg2 ; | |
26263 | wxDouble arg3 ; | |
70d7cb34 RD |
26264 | void *argp1 = 0 ; |
26265 | int res1 = 0 ; | |
26266 | double val2 ; | |
26267 | int ecode2 = 0 ; | |
26268 | double val3 ; | |
26269 | int ecode3 = 0 ; | |
70d7cb34 | 26270 | |
5c8c7dd3 RD |
26271 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
26272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26273 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26275 | } |
26276 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26277 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26278 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26280 | } |
26281 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26282 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26283 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26284 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26285 | } |
26286 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26287 | { |
5c8c7dd3 | 26288 | (arg1)->AddLineToPoint(arg2,arg3); |
70d7cb34 RD |
26289 | if (PyErr_Occurred()) SWIG_fail; |
26290 | } | |
26291 | resultobj = SWIG_Py_Void(); | |
26292 | return resultobj; | |
26293 | fail: | |
26294 | return NULL; | |
26295 | } | |
26296 | ||
26297 | ||
5c8c7dd3 | 26298 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26299 | PyObject *resultobj = 0; |
26300 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26301 | wxPoint2D *arg2 = 0 ; |
70d7cb34 RD |
26302 | void *argp1 = 0 ; |
26303 | int res1 = 0 ; | |
5c8c7dd3 | 26304 | wxPoint2D temp2 ; |
70d7cb34 | 26305 | |
5c8c7dd3 RD |
26306 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
26307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26308 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26310 | } |
26311 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26312 | { |
5c8c7dd3 RD |
26313 | arg2 = &temp2; |
26314 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26315 | } | |
26316 | { | |
26317 | (arg1)->AddLineToPoint((wxPoint2D const &)*arg2); | |
70d7cb34 RD |
26318 | if (PyErr_Occurred()) SWIG_fail; |
26319 | } | |
26320 | resultobj = SWIG_Py_Void(); | |
26321 | return resultobj; | |
26322 | fail: | |
26323 | return NULL; | |
26324 | } | |
26325 | ||
26326 | ||
5c8c7dd3 RD |
26327 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) { |
26328 | int argc; | |
26329 | PyObject *argv[4]; | |
70d7cb34 | 26330 | |
5c8c7dd3 RD |
26331 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail; |
26332 | --argc; | |
26333 | if (argc == 2) { | |
26334 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26335 | } |
5c8c7dd3 RD |
26336 | if (argc == 3) { |
26337 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26338 | } |
5c8c7dd3 | 26339 | |
70d7cb34 | 26340 | fail: |
5c8c7dd3 | 26341 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'"); |
70d7cb34 RD |
26342 | return NULL; |
26343 | } | |
26344 | ||
26345 | ||
5c8c7dd3 | 26346 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26347 | PyObject *resultobj = 0; |
26348 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26349 | wxDouble arg2 ; | |
26350 | wxDouble arg3 ; | |
26351 | wxDouble arg4 ; | |
26352 | wxDouble arg5 ; | |
26353 | wxDouble arg6 ; | |
5c8c7dd3 | 26354 | wxDouble arg7 ; |
70d7cb34 RD |
26355 | void *argp1 = 0 ; |
26356 | int res1 = 0 ; | |
26357 | double val2 ; | |
26358 | int ecode2 = 0 ; | |
26359 | double val3 ; | |
26360 | int ecode3 = 0 ; | |
26361 | double val4 ; | |
26362 | int ecode4 = 0 ; | |
26363 | double val5 ; | |
26364 | int ecode5 = 0 ; | |
26365 | double val6 ; | |
26366 | int ecode6 = 0 ; | |
5c8c7dd3 RD |
26367 | double val7 ; |
26368 | int ecode7 = 0 ; | |
70d7cb34 | 26369 | |
5c8c7dd3 RD |
26370 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
26371 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26372 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26374 | } |
26375 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26376 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26377 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26378 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26379 | } |
26380 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26381 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26382 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26383 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26384 | } |
26385 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 | 26386 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
70d7cb34 | 26387 | if (!SWIG_IsOK(ecode4)) { |
5c8c7dd3 | 26388 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26389 | } |
26390 | arg4 = static_cast< wxDouble >(val4); | |
5c8c7dd3 | 26391 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); |
70d7cb34 | 26392 | if (!SWIG_IsOK(ecode5)) { |
5c8c7dd3 | 26393 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26394 | } |
26395 | arg5 = static_cast< wxDouble >(val5); | |
5c8c7dd3 | 26396 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); |
70d7cb34 | 26397 | if (!SWIG_IsOK(ecode6)) { |
5c8c7dd3 | 26398 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26399 | } |
26400 | arg6 = static_cast< wxDouble >(val6); | |
5c8c7dd3 RD |
26401 | ecode7 = SWIG_AsVal_double(swig_obj[6], &val7); |
26402 | if (!SWIG_IsOK(ecode7)) { | |
26403 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
26404 | } | |
26405 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 | 26406 | { |
5c8c7dd3 | 26407 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26408 | if (PyErr_Occurred()) SWIG_fail; |
26409 | } | |
26410 | resultobj = SWIG_Py_Void(); | |
26411 | return resultobj; | |
26412 | fail: | |
26413 | return NULL; | |
26414 | } | |
26415 | ||
26416 | ||
5c8c7dd3 | 26417 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26418 | PyObject *resultobj = 0; |
26419 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26420 | wxPoint2D *arg2 = 0 ; |
26421 | wxPoint2D *arg3 = 0 ; | |
26422 | wxPoint2D *arg4 = 0 ; | |
70d7cb34 RD |
26423 | void *argp1 = 0 ; |
26424 | int res1 = 0 ; | |
5c8c7dd3 RD |
26425 | wxPoint2D temp2 ; |
26426 | wxPoint2D temp3 ; | |
26427 | wxPoint2D temp4 ; | |
70d7cb34 | 26428 | |
5c8c7dd3 RD |
26429 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; |
26430 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26431 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26433 | } |
26434 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26435 | { |
5c8c7dd3 RD |
26436 | arg2 = &temp2; |
26437 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26438 | } |
5c8c7dd3 RD |
26439 | { |
26440 | arg3 = &temp3; | |
26441 | if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail; | |
70d7cb34 | 26442 | } |
70d7cb34 | 26443 | { |
5c8c7dd3 RD |
26444 | arg4 = &temp4; |
26445 | if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail; | |
26446 | } | |
26447 | { | |
26448 | (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4); | |
70d7cb34 RD |
26449 | if (PyErr_Occurred()) SWIG_fail; |
26450 | } | |
26451 | resultobj = SWIG_Py_Void(); | |
26452 | return resultobj; | |
26453 | fail: | |
26454 | return NULL; | |
26455 | } | |
26456 | ||
26457 | ||
5c8c7dd3 RD |
26458 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) { |
26459 | int argc; | |
26460 | PyObject *argv[8]; | |
70d7cb34 | 26461 | |
5c8c7dd3 RD |
26462 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail; |
26463 | --argc; | |
26464 | if (argc == 4) { | |
26465 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26466 | } |
5c8c7dd3 RD |
26467 | if (argc == 7) { |
26468 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26469 | } |
5c8c7dd3 | 26470 | |
70d7cb34 | 26471 | fail: |
5c8c7dd3 | 26472 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'"); |
70d7cb34 RD |
26473 | return NULL; |
26474 | } | |
26475 | ||
26476 | ||
5c8c7dd3 | 26477 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 RD |
26478 | PyObject *resultobj = 0; |
26479 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26480 | wxGraphicsPath *arg2 = 0 ; |
70d7cb34 RD |
26481 | void *argp1 = 0 ; |
26482 | int res1 = 0 ; | |
5c8c7dd3 RD |
26483 | void *argp2 = 0 ; |
26484 | int res2 = 0 ; | |
70d7cb34 RD |
26485 | PyObject * obj0 = 0 ; |
26486 | PyObject * obj1 = 0 ; | |
26487 | char * kwnames[] = { | |
5c8c7dd3 | 26488 | (char *) "self",(char *) "path", NULL |
70d7cb34 RD |
26489 | }; |
26490 | ||
5c8c7dd3 | 26491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail; |
70d7cb34 RD |
26492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26493 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26495 | } |
26496 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26497 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
70d7cb34 | 26498 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
26499 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
26500 | } | |
26501 | if (!argp2) { | |
26502 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
70d7cb34 | 26503 | } |
5c8c7dd3 | 26504 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); |
70d7cb34 | 26505 | { |
5c8c7dd3 | 26506 | (arg1)->AddPath((wxGraphicsPath const &)*arg2); |
70d7cb34 RD |
26507 | if (PyErr_Occurred()) SWIG_fail; |
26508 | } | |
26509 | resultobj = SWIG_Py_Void(); | |
26510 | return resultobj; | |
26511 | fail: | |
26512 | return NULL; | |
26513 | } | |
26514 | ||
26515 | ||
5c8c7dd3 | 26516 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26517 | PyObject *resultobj = 0; |
26518 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
70d7cb34 RD |
26519 | void *argp1 = 0 ; |
26520 | int res1 = 0 ; | |
5c8c7dd3 | 26521 | PyObject *swig_obj[1] ; |
70d7cb34 | 26522 | |
5c8c7dd3 RD |
26523 | if (!args) SWIG_fail; |
26524 | swig_obj[0] = args; | |
26525 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26526 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26528 | } |
26529 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26530 | { |
5c8c7dd3 | 26531 | (arg1)->CloseSubpath(); |
70d7cb34 RD |
26532 | if (PyErr_Occurred()) SWIG_fail; |
26533 | } | |
26534 | resultobj = SWIG_Py_Void(); | |
26535 | return resultobj; | |
26536 | fail: | |
26537 | return NULL; | |
26538 | } | |
26539 | ||
26540 | ||
5c8c7dd3 | 26541 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26542 | PyObject *resultobj = 0; |
26543 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26544 | wxPoint2D result; |
70d7cb34 RD |
26545 | void *argp1 = 0 ; |
26546 | int res1 = 0 ; | |
26547 | PyObject *swig_obj[1] ; | |
26548 | ||
26549 | if (!args) SWIG_fail; | |
26550 | swig_obj[0] = args; | |
26551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
26552 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 RD |
26554 | } |
26555 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26556 | { | |
5c8c7dd3 | 26557 | result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint(); |
70d7cb34 RD |
26558 | if (PyErr_Occurred()) SWIG_fail; |
26559 | } | |
5c8c7dd3 | 26560 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
26561 | return resultobj; |
26562 | fail: | |
26563 | return NULL; | |
26564 | } | |
26565 | ||
26566 | ||
5c8c7dd3 | 26567 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26568 | PyObject *resultobj = 0; |
26569 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26570 | wxDouble arg2 ; | |
26571 | wxDouble arg3 ; | |
5c8c7dd3 RD |
26572 | wxDouble arg4 ; |
26573 | wxDouble arg5 ; | |
26574 | wxDouble arg6 ; | |
26575 | bool arg7 ; | |
70d7cb34 RD |
26576 | void *argp1 = 0 ; |
26577 | int res1 = 0 ; | |
26578 | double val2 ; | |
26579 | int ecode2 = 0 ; | |
26580 | double val3 ; | |
26581 | int ecode3 = 0 ; | |
5c8c7dd3 | 26582 | double val4 ; |
70d7cb34 | 26583 | int ecode4 = 0 ; |
5c8c7dd3 RD |
26584 | double val5 ; |
26585 | int ecode5 = 0 ; | |
26586 | double val6 ; | |
26587 | int ecode6 = 0 ; | |
26588 | bool val7 ; | |
26589 | int ecode7 = 0 ; | |
70d7cb34 | 26590 | |
5c8c7dd3 | 26591 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
70d7cb34 RD |
26592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26593 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26595 | } |
26596 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26597 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26598 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26599 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26600 | } |
26601 | arg2 = static_cast< wxDouble >(val2); | |
26602 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26603 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26604 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26605 | } |
26606 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 RD |
26607 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
26608 | if (!SWIG_IsOK(ecode4)) { | |
26609 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26610 | } | |
26611 | arg4 = static_cast< wxDouble >(val4); | |
26612 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26613 | if (!SWIG_IsOK(ecode5)) { | |
26614 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26615 | } | |
26616 | arg5 = static_cast< wxDouble >(val5); | |
26617 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); | |
26618 | if (!SWIG_IsOK(ecode6)) { | |
26619 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26620 | } | |
26621 | arg6 = static_cast< wxDouble >(val6); | |
26622 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
26623 | if (!SWIG_IsOK(ecode7)) { | |
26624 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
26625 | } | |
26626 | arg7 = static_cast< bool >(val7); | |
70d7cb34 | 26627 | { |
5c8c7dd3 | 26628 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26629 | if (PyErr_Occurred()) SWIG_fail; |
26630 | } | |
5c8c7dd3 | 26631 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26632 | return resultobj; |
26633 | fail: | |
26634 | return NULL; | |
26635 | } | |
26636 | ||
26637 | ||
5c8c7dd3 | 26638 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26639 | PyObject *resultobj = 0; |
26640 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26641 | wxPoint2D *arg2 = 0 ; |
26642 | wxDouble arg3 ; | |
26643 | wxDouble arg4 ; | |
26644 | wxDouble arg5 ; | |
26645 | bool arg6 ; | |
70d7cb34 RD |
26646 | void *argp1 = 0 ; |
26647 | int res1 = 0 ; | |
5c8c7dd3 RD |
26648 | wxPoint2D temp2 ; |
26649 | double val3 ; | |
70d7cb34 | 26650 | int ecode3 = 0 ; |
5c8c7dd3 RD |
26651 | double val4 ; |
26652 | int ecode4 = 0 ; | |
26653 | double val5 ; | |
26654 | int ecode5 = 0 ; | |
26655 | bool val6 ; | |
26656 | int ecode6 = 0 ; | |
70d7cb34 | 26657 | |
5c8c7dd3 | 26658 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
26659 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26660 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26662 | } |
26663 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26664 | { |
5c8c7dd3 RD |
26665 | arg2 = &temp2; |
26666 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26667 | } |
5c8c7dd3 RD |
26668 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
26669 | if (!SWIG_IsOK(ecode3)) { | |
26670 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26671 | } | |
26672 | arg3 = static_cast< wxDouble >(val3); | |
26673 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
26674 | if (!SWIG_IsOK(ecode4)) { | |
26675 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26676 | } | |
26677 | arg4 = static_cast< wxDouble >(val4); | |
26678 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26679 | if (!SWIG_IsOK(ecode5)) { | |
26680 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26681 | } | |
26682 | arg5 = static_cast< wxDouble >(val5); | |
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); | |
70d7cb34 | 26688 | { |
5c8c7dd3 RD |
26689 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
26690 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 26691 | } |
5c8c7dd3 | 26692 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26693 | return resultobj; |
26694 | fail: | |
26695 | return NULL; | |
26696 | } | |
26697 | ||
26698 | ||
5c8c7dd3 | 26699 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 26700 | int argc; |
5c8c7dd3 | 26701 | PyObject *argv[8]; |
70d7cb34 | 26702 | |
5c8c7dd3 | 26703 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 26704 | --argc; |
5c8c7dd3 RD |
26705 | if (argc == 6) { |
26706 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); | |
70d7cb34 | 26707 | } |
5c8c7dd3 RD |
26708 | if (argc == 7) { |
26709 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
26710 | } |
26711 | ||
26712 | fail: | |
5c8c7dd3 | 26713 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
26714 | return NULL; |
26715 | } | |
26716 | ||
26717 | ||
5c8c7dd3 | 26718 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26719 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26720 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26721 | wxDouble arg2 ; | |
26722 | wxDouble arg3 ; | |
26723 | wxDouble arg4 ; | |
26724 | wxDouble arg5 ; | |
70d7cb34 RD |
26725 | void *argp1 = 0 ; |
26726 | int res1 = 0 ; | |
5c8c7dd3 RD |
26727 | double val2 ; |
26728 | int ecode2 = 0 ; | |
26729 | double val3 ; | |
26730 | int ecode3 = 0 ; | |
26731 | double val4 ; | |
26732 | int ecode4 = 0 ; | |
26733 | double val5 ; | |
26734 | int ecode5 = 0 ; | |
26735 | PyObject * obj0 = 0 ; | |
26736 | PyObject * obj1 = 0 ; | |
26737 | PyObject * obj2 = 0 ; | |
26738 | PyObject * obj3 = 0 ; | |
26739 | PyObject * obj4 = 0 ; | |
26740 | char * kwnames[] = { | |
26741 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
26742 | }; | |
70d7cb34 | 26743 | |
5c8c7dd3 RD |
26744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26746 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26748 | } |
5c8c7dd3 RD |
26749 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26750 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26751 | if (!SWIG_IsOK(ecode2)) { | |
26752 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26753 | } | |
26754 | arg2 = static_cast< wxDouble >(val2); | |
26755 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26756 | if (!SWIG_IsOK(ecode3)) { | |
26757 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26758 | } | |
26759 | arg3 = static_cast< wxDouble >(val3); | |
26760 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26761 | if (!SWIG_IsOK(ecode4)) { | |
26762 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26763 | } | |
26764 | arg4 = static_cast< wxDouble >(val4); | |
26765 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26766 | if (!SWIG_IsOK(ecode5)) { | |
26767 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26768 | } | |
26769 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26770 | { |
5c8c7dd3 | 26771 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26772 | if (PyErr_Occurred()) SWIG_fail; |
26773 | } | |
26774 | resultobj = SWIG_Py_Void(); | |
26775 | return resultobj; | |
26776 | fail: | |
26777 | return NULL; | |
26778 | } | |
26779 | ||
26780 | ||
5c8c7dd3 | 26781 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26782 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26783 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26784 | wxDouble arg2 ; | |
26785 | wxDouble arg3 ; | |
26786 | wxDouble arg4 ; | |
26787 | wxDouble arg5 ; | |
70d7cb34 RD |
26788 | void *argp1 = 0 ; |
26789 | int res1 = 0 ; | |
5c8c7dd3 RD |
26790 | double val2 ; |
26791 | int ecode2 = 0 ; | |
26792 | double val3 ; | |
26793 | int ecode3 = 0 ; | |
26794 | double val4 ; | |
26795 | int ecode4 = 0 ; | |
26796 | double val5 ; | |
26797 | int ecode5 = 0 ; | |
70d7cb34 RD |
26798 | PyObject * obj0 = 0 ; |
26799 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26800 | PyObject * obj2 = 0 ; |
26801 | PyObject * obj3 = 0 ; | |
26802 | PyObject * obj4 = 0 ; | |
70d7cb34 | 26803 | char * kwnames[] = { |
5c8c7dd3 | 26804 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
26805 | }; |
26806 | ||
5c8c7dd3 RD |
26807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26808 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26809 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26811 | } |
5c8c7dd3 RD |
26812 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26813 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26814 | if (!SWIG_IsOK(ecode2)) { | |
26815 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26816 | } | |
26817 | arg2 = static_cast< wxDouble >(val2); | |
26818 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26819 | if (!SWIG_IsOK(ecode3)) { | |
26820 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26821 | } | |
26822 | arg3 = static_cast< wxDouble >(val3); | |
26823 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26824 | if (!SWIG_IsOK(ecode4)) { | |
26825 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26826 | } | |
26827 | arg4 = static_cast< wxDouble >(val4); | |
26828 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26829 | if (!SWIG_IsOK(ecode5)) { | |
26830 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26831 | } | |
26832 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26833 | { |
5c8c7dd3 | 26834 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26835 | if (PyErr_Occurred()) SWIG_fail; |
26836 | } | |
26837 | resultobj = SWIG_Py_Void(); | |
26838 | return resultobj; | |
26839 | fail: | |
26840 | return NULL; | |
26841 | } | |
26842 | ||
26843 | ||
5c8c7dd3 | 26844 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26845 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26846 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26847 | wxDouble arg2 ; | |
26848 | wxDouble arg3 ; | |
26849 | wxDouble arg4 ; | |
70d7cb34 RD |
26850 | void *argp1 = 0 ; |
26851 | int res1 = 0 ; | |
5c8c7dd3 RD |
26852 | double val2 ; |
26853 | int ecode2 = 0 ; | |
26854 | double val3 ; | |
26855 | int ecode3 = 0 ; | |
26856 | double val4 ; | |
26857 | int ecode4 = 0 ; | |
70d7cb34 RD |
26858 | PyObject * obj0 = 0 ; |
26859 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26860 | PyObject * obj2 = 0 ; |
26861 | PyObject * obj3 = 0 ; | |
70d7cb34 | 26862 | char * kwnames[] = { |
5c8c7dd3 | 26863 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
26864 | }; |
26865 | ||
5c8c7dd3 RD |
26866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
26867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26868 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26870 | } |
5c8c7dd3 RD |
26871 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26872 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26873 | if (!SWIG_IsOK(ecode2)) { | |
26874 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26875 | } | |
26876 | arg2 = static_cast< wxDouble >(val2); | |
26877 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26878 | if (!SWIG_IsOK(ecode3)) { | |
26879 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26880 | } | |
26881 | arg3 = static_cast< wxDouble >(val3); | |
26882 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26883 | if (!SWIG_IsOK(ecode4)) { | |
26884 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26885 | } | |
26886 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 26887 | { |
5c8c7dd3 | 26888 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
26889 | if (PyErr_Occurred()) SWIG_fail; |
26890 | } | |
26891 | resultobj = SWIG_Py_Void(); | |
26892 | return resultobj; | |
26893 | fail: | |
26894 | return NULL; | |
26895 | } | |
26896 | ||
26897 | ||
5c8c7dd3 | 26898 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26899 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26900 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26901 | wxDouble arg2 ; | |
26902 | wxDouble arg3 ; | |
26903 | wxDouble arg4 ; | |
26904 | wxDouble arg5 ; | |
26905 | wxDouble arg6 ; | |
70d7cb34 RD |
26906 | void *argp1 = 0 ; |
26907 | int res1 = 0 ; | |
26908 | double val2 ; | |
26909 | int ecode2 = 0 ; | |
26910 | double val3 ; | |
26911 | int ecode3 = 0 ; | |
26912 | double val4 ; | |
26913 | int ecode4 = 0 ; | |
26914 | double val5 ; | |
26915 | int ecode5 = 0 ; | |
26916 | double val6 ; | |
26917 | int ecode6 = 0 ; | |
70d7cb34 RD |
26918 | PyObject * obj0 = 0 ; |
26919 | PyObject * obj1 = 0 ; | |
26920 | PyObject * obj2 = 0 ; | |
26921 | PyObject * obj3 = 0 ; | |
26922 | PyObject * obj4 = 0 ; | |
26923 | PyObject * obj5 = 0 ; | |
70d7cb34 | 26924 | char * kwnames[] = { |
5c8c7dd3 | 26925 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
26926 | }; |
26927 | ||
5c8c7dd3 RD |
26928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
26929 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26930 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26932 | } |
5c8c7dd3 RD |
26933 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26934 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26935 | if (!SWIG_IsOK(ecode2)) { | |
26936 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26937 | } | |
26938 | arg2 = static_cast< wxDouble >(val2); | |
26939 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26940 | if (!SWIG_IsOK(ecode3)) { | |
26941 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26942 | } | |
26943 | arg3 = static_cast< wxDouble >(val3); | |
26944 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26945 | if (!SWIG_IsOK(ecode4)) { | |
26946 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26947 | } | |
26948 | arg4 = static_cast< wxDouble >(val4); | |
26949 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26950 | if (!SWIG_IsOK(ecode5)) { | |
26951 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26952 | } | |
26953 | arg5 = static_cast< wxDouble >(val5); | |
26954 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26955 | if (!SWIG_IsOK(ecode6)) { | |
26956 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26957 | } | |
26958 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 26959 | { |
5c8c7dd3 | 26960 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
26961 | if (PyErr_Occurred()) SWIG_fail; |
26962 | } | |
26963 | resultobj = SWIG_Py_Void(); | |
26964 | return resultobj; | |
26965 | fail: | |
26966 | return NULL; | |
26967 | } | |
26968 | ||
26969 | ||
5c8c7dd3 | 26970 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26971 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26972 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26973 | wxDouble arg2 ; | |
26974 | wxDouble arg3 ; | |
26975 | wxDouble arg4 ; | |
26976 | wxDouble arg5 ; | |
70d7cb34 RD |
26977 | void *argp1 = 0 ; |
26978 | int res1 = 0 ; | |
5c8c7dd3 RD |
26979 | double val2 ; |
26980 | int ecode2 = 0 ; | |
26981 | double val3 ; | |
26982 | int ecode3 = 0 ; | |
26983 | double val4 ; | |
26984 | int ecode4 = 0 ; | |
26985 | double val5 ; | |
26986 | int ecode5 = 0 ; | |
26987 | PyObject * obj0 = 0 ; | |
26988 | PyObject * obj1 = 0 ; | |
26989 | PyObject * obj2 = 0 ; | |
26990 | PyObject * obj3 = 0 ; | |
26991 | PyObject * obj4 = 0 ; | |
26992 | char * kwnames[] = { | |
26993 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26994 | }; | |
70d7cb34 | 26995 | |
5c8c7dd3 RD |
26996 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26998 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27000 | } |
5c8c7dd3 RD |
27001 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27002 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27003 | if (!SWIG_IsOK(ecode2)) { | |
27004 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27005 | } | |
27006 | arg2 = static_cast< wxDouble >(val2); | |
27007 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27008 | if (!SWIG_IsOK(ecode3)) { | |
27009 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27010 | } | |
27011 | arg3 = static_cast< wxDouble >(val3); | |
27012 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27013 | if (!SWIG_IsOK(ecode4)) { | |
27014 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27015 | } | |
27016 | arg4 = static_cast< wxDouble >(val4); | |
27017 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27018 | if (!SWIG_IsOK(ecode5)) { | |
27019 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27020 | } | |
27021 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27022 | { |
5c8c7dd3 | 27023 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27024 | if (PyErr_Occurred()) SWIG_fail; |
27025 | } | |
27026 | resultobj = SWIG_Py_Void(); | |
27027 | return resultobj; | |
27028 | fail: | |
27029 | return NULL; | |
27030 | } | |
27031 | ||
27032 | ||
5c8c7dd3 | 27033 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27034 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27035 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27036 | wxDouble arg2 ; | |
27037 | wxDouble arg3 ; | |
27038 | wxDouble arg4 ; | |
27039 | wxDouble arg5 ; | |
27040 | wxDouble arg6 ; | |
70d7cb34 RD |
27041 | void *argp1 = 0 ; |
27042 | int res1 = 0 ; | |
5c8c7dd3 RD |
27043 | double val2 ; |
27044 | int ecode2 = 0 ; | |
27045 | double val3 ; | |
27046 | int ecode3 = 0 ; | |
27047 | double val4 ; | |
27048 | int ecode4 = 0 ; | |
27049 | double val5 ; | |
27050 | int ecode5 = 0 ; | |
27051 | double val6 ; | |
27052 | int ecode6 = 0 ; | |
70d7cb34 RD |
27053 | PyObject * obj0 = 0 ; |
27054 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27055 | PyObject * obj2 = 0 ; |
27056 | PyObject * obj3 = 0 ; | |
27057 | PyObject * obj4 = 0 ; | |
27058 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27059 | char * kwnames[] = { |
5c8c7dd3 | 27060 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
27061 | }; |
27062 | ||
5c8c7dd3 RD |
27063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27065 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27067 | } |
5c8c7dd3 RD |
27068 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27069 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27070 | if (!SWIG_IsOK(ecode2)) { | |
27071 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27072 | } | |
27073 | arg2 = static_cast< wxDouble >(val2); | |
27074 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27075 | if (!SWIG_IsOK(ecode3)) { | |
27076 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27077 | } | |
27078 | arg3 = static_cast< wxDouble >(val3); | |
27079 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27080 | if (!SWIG_IsOK(ecode4)) { | |
27081 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27082 | } | |
27083 | arg4 = static_cast< wxDouble >(val4); | |
27084 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27085 | if (!SWIG_IsOK(ecode5)) { | |
27086 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27087 | } | |
27088 | arg5 = static_cast< wxDouble >(val5); | |
27089 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27090 | if (!SWIG_IsOK(ecode6)) { | |
27091 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27092 | } | |
27093 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27094 | { |
5c8c7dd3 | 27095 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27096 | if (PyErr_Occurred()) SWIG_fail; |
27097 | } | |
5c8c7dd3 | 27098 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27099 | return resultobj; |
27100 | fail: | |
27101 | return NULL; | |
27102 | } | |
27103 | ||
27104 | ||
5c8c7dd3 | 27105 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27106 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27107 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27108 | void *result = 0 ; | |
70d7cb34 RD |
27109 | void *argp1 = 0 ; |
27110 | int res1 = 0 ; | |
27111 | PyObject *swig_obj[1] ; | |
27112 | ||
27113 | if (!args) SWIG_fail; | |
27114 | swig_obj[0] = args; | |
5c8c7dd3 | 27115 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 27116 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27118 | } |
5c8c7dd3 | 27119 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27120 | { |
5c8c7dd3 | 27121 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
27122 | if (PyErr_Occurred()) SWIG_fail; |
27123 | } | |
5c8c7dd3 | 27124 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
27125 | return resultobj; |
27126 | fail: | |
27127 | return NULL; | |
27128 | } | |
27129 | ||
27130 | ||
5c8c7dd3 | 27131 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27132 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27133 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27134 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
27135 | void *argp1 = 0 ; |
27136 | int res1 = 0 ; | |
5c8c7dd3 | 27137 | int res2 ; |
70d7cb34 RD |
27138 | PyObject * obj0 = 0 ; |
27139 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27140 | char * kwnames[] = { |
5c8c7dd3 | 27141 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
27142 | }; |
27143 | ||
5c8c7dd3 RD |
27144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
27145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27146 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
27147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
27148 | } | |
27149 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27150 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
27151 | if (!SWIG_IsOK(res2)) { | |
27152 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 27153 | } |
70d7cb34 | 27154 | { |
5c8c7dd3 | 27155 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
27156 | if (PyErr_Occurred()) SWIG_fail; |
27157 | } | |
27158 | resultobj = SWIG_Py_Void(); | |
27159 | return resultobj; | |
27160 | fail: | |
27161 | return NULL; | |
27162 | } | |
27163 | ||
27164 | ||
5c8c7dd3 | 27165 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27166 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27167 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27168 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
27169 | void *argp1 = 0 ; |
27170 | int res1 = 0 ; | |
5c8c7dd3 RD |
27171 | void *argp2 = 0 ; |
27172 | int res2 = 0 ; | |
70d7cb34 RD |
27173 | PyObject * obj0 = 0 ; |
27174 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27175 | char * kwnames[] = { |
5c8c7dd3 | 27176 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
27177 | }; |
27178 | ||
5c8c7dd3 RD |
27179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
27180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27181 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27183 | } |
5c8c7dd3 RD |
27184 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27185 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
27186 | if (!SWIG_IsOK(res2)) { | |
27187 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27188 | } | |
27189 | if (!argp2) { | |
27190 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27191 | } | |
27192 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 27193 | { |
5c8c7dd3 | 27194 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
27195 | if (PyErr_Occurred()) SWIG_fail; |
27196 | } | |
27197 | resultobj = SWIG_Py_Void(); | |
27198 | return resultobj; | |
27199 | fail: | |
27200 | return NULL; | |
27201 | } | |
27202 | ||
27203 | ||
5c8c7dd3 | 27204 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27205 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27206 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27207 | wxRect2DDouble result; | |
70d7cb34 RD |
27208 | void *argp1 = 0 ; |
27209 | int res1 = 0 ; | |
5c8c7dd3 | 27210 | PyObject *swig_obj[1] ; |
70d7cb34 | 27211 | |
5c8c7dd3 RD |
27212 | if (!args) SWIG_fail; |
27213 | swig_obj[0] = args; | |
27214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27215 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27217 | } |
5c8c7dd3 | 27218 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27219 | { |
5c8c7dd3 | 27220 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
27221 | if (PyErr_Occurred()) SWIG_fail; |
27222 | } | |
5c8c7dd3 | 27223 | resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
27224 | return resultobj; |
27225 | fail: | |
27226 | return NULL; | |
27227 | } | |
27228 | ||
27229 | ||
5c8c7dd3 | 27230 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27231 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27232 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27233 | wxDouble arg2 ; | |
27234 | wxDouble arg3 ; | |
27235 | int arg4 = (int) wxODDEVEN_RULE ; | |
27236 | bool result; | |
70d7cb34 RD |
27237 | void *argp1 = 0 ; |
27238 | int res1 = 0 ; | |
5c8c7dd3 RD |
27239 | double val2 ; |
27240 | int ecode2 = 0 ; | |
27241 | double val3 ; | |
27242 | int ecode3 = 0 ; | |
27243 | int val4 ; | |
27244 | int ecode4 = 0 ; | |
70d7cb34 | 27245 | |
5c8c7dd3 RD |
27246 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
27247 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27248 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27250 | } |
5c8c7dd3 RD |
27251 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27252 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27253 | if (!SWIG_IsOK(ecode2)) { | |
27254 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27255 | } | |
27256 | arg2 = static_cast< wxDouble >(val2); | |
27257 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27258 | if (!SWIG_IsOK(ecode3)) { | |
27259 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27260 | } | |
27261 | arg3 = static_cast< wxDouble >(val3); | |
27262 | if (swig_obj[3]) { | |
27263 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
27264 | if (!SWIG_IsOK(ecode4)) { | |
27265 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
27266 | } | |
27267 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
27268 | } |
27269 | { | |
5c8c7dd3 | 27270 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
27271 | if (PyErr_Occurred()) SWIG_fail; |
27272 | } | |
5c8c7dd3 RD |
27273 | { |
27274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27275 | } |
27276 | return resultobj; | |
27277 | fail: | |
27278 | return NULL; | |
27279 | } | |
27280 | ||
27281 | ||
5c8c7dd3 | 27282 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27283 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27284 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27285 | wxPoint2DDouble *arg2 = 0 ; | |
27286 | int arg3 = (int) wxODDEVEN_RULE ; | |
27287 | bool result; | |
70d7cb34 RD |
27288 | void *argp1 = 0 ; |
27289 | int res1 = 0 ; | |
5c8c7dd3 | 27290 | void *argp2 = 0 ; |
70d7cb34 | 27291 | int res2 = 0 ; |
5c8c7dd3 RD |
27292 | int val3 ; |
27293 | int ecode3 = 0 ; | |
70d7cb34 | 27294 | |
5c8c7dd3 RD |
27295 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
27296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27297 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27299 | } |
5c8c7dd3 RD |
27300 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27301 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0); | |
27302 | if (!SWIG_IsOK(res2)) { | |
27303 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
70d7cb34 | 27304 | } |
5c8c7dd3 RD |
27305 | if (!argp2) { |
27306 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
27307 | } | |
27308 | arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2); | |
27309 | if (swig_obj[2]) { | |
27310 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
27311 | if (!SWIG_IsOK(ecode3)) { | |
27312 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
27313 | } | |
27314 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
27315 | } |
27316 | { | |
5c8c7dd3 | 27317 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3); |
70d7cb34 RD |
27318 | if (PyErr_Occurred()) SWIG_fail; |
27319 | } | |
5c8c7dd3 RD |
27320 | { |
27321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27322 | } |
27323 | return resultobj; | |
27324 | fail: | |
27325 | return NULL; | |
27326 | } | |
27327 | ||
27328 | ||
5c8c7dd3 RD |
27329 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
27330 | int argc; | |
27331 | PyObject *argv[5]; | |
70d7cb34 | 27332 | |
5c8c7dd3 RD |
27333 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
27334 | --argc; | |
27335 | if ((argc >= 2) && (argc <= 3)) { | |
27336 | int _v = 0; | |
27337 | { | |
27338 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0); | |
27339 | _v = SWIG_CheckState(res); | |
27340 | } | |
27341 | if (!_v) goto check_1; | |
27342 | if (argc > 2) { | |
27343 | { | |
27344 | { | |
27345 | int res = SWIG_AsVal_int(argv[2], NULL); | |
27346 | _v = SWIG_CheckState(res); | |
27347 | } | |
27348 | } | |
27349 | if (!_v) goto check_1; | |
27350 | } | |
27351 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 27352 | } |
5c8c7dd3 RD |
27353 | check_1: |
27354 | ||
27355 | if ((argc >= 3) && (argc <= 4)) { | |
27356 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 27357 | } |
5c8c7dd3 | 27358 | |
70d7cb34 | 27359 | fail: |
5c8c7dd3 | 27360 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
27361 | return NULL; |
27362 | } | |
27363 | ||
27364 | ||
5c8c7dd3 | 27365 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27366 | PyObject *obj; |
27367 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 27368 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
27369 | return SWIG_Py_Void(); |
27370 | } | |
27371 | ||
8f514ab4 RD |
27372 | SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27373 | return SWIG_Python_InitShadowInstance(args); | |
27374 | } | |
27375 | ||
5c8c7dd3 RD |
27376 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
27377 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
27378 | return 1; | |
27379 | } | |
27380 | ||
27381 | ||
27382 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
27383 | PyObject *pyobj = 0; | |
27384 | ||
27385 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
27386 | return pyobj; | |
27387 | } | |
27388 | ||
27389 | ||
27390 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
27391 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
27392 | return 1; | |
27393 | } | |
27394 | ||
27395 | ||
27396 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
27397 | PyObject *pyobj = 0; | |
27398 | ||
27399 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
27400 | return pyobj; | |
27401 | } | |
27402 | ||
27403 | ||
27404 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
27405 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
27406 | return 1; | |
27407 | } | |
27408 | ||
27409 | ||
27410 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
27411 | PyObject *pyobj = 0; | |
27412 | ||
27413 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
27414 | return pyobj; | |
27415 | } | |
27416 | ||
27417 | ||
27418 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
27419 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
27420 | return 1; | |
27421 | } | |
27422 | ||
27423 | ||
27424 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
27425 | PyObject *pyobj = 0; | |
27426 | ||
27427 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
27428 | return pyobj; | |
27429 | } | |
27430 | ||
27431 | ||
27432 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
27433 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
27434 | return 1; | |
27435 | } | |
27436 | ||
27437 | ||
27438 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
27439 | PyObject *pyobj = 0; | |
27440 | ||
27441 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
27442 | return pyobj; | |
27443 | } | |
27444 | ||
27445 | ||
70d7cb34 RD |
27446 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27447 | PyObject *resultobj = 0; | |
27448 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27449 | void *argp1 = 0 ; | |
27450 | int res1 = 0 ; | |
27451 | PyObject *swig_obj[1] ; | |
27452 | ||
27453 | if (!args) SWIG_fail; | |
27454 | swig_obj[0] = args; | |
27455 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
27456 | if (!SWIG_IsOK(res1)) { | |
27457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27458 | } | |
27459 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27460 | { | |
27461 | delete arg1; | |
27462 | ||
27463 | if (PyErr_Occurred()) SWIG_fail; | |
27464 | } | |
27465 | resultobj = SWIG_Py_Void(); | |
27466 | return resultobj; | |
27467 | fail: | |
27468 | return NULL; | |
27469 | } | |
27470 | ||
27471 | ||
27472 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27473 | PyObject *resultobj = 0; | |
27474 | wxWindowDC *arg1 = 0 ; | |
27475 | wxGraphicsContext *result = 0 ; | |
27476 | void *argp1 = 0 ; | |
27477 | int res1 = 0 ; | |
27478 | ||
27479 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27480 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
27481 | if (!SWIG_IsOK(res1)) { | |
27482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27483 | } | |
27484 | if (!argp1) { | |
27485 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27486 | } | |
27487 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
27488 | { | |
27489 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
27490 | if (PyErr_Occurred()) SWIG_fail; | |
27491 | } | |
27492 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27493 | return resultobj; | |
27494 | fail: | |
27495 | return NULL; | |
27496 | } | |
27497 | ||
27498 | ||
27499 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27500 | PyObject *resultobj = 0; | |
27501 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27502 | wxGraphicsContext *result = 0 ; | |
27503 | void *argp1 = 0 ; | |
27504 | int res1 = 0 ; | |
27505 | ||
27506 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27507 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27508 | if (!SWIG_IsOK(res1)) { | |
27509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
27510 | } | |
27511 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
27512 | { | |
27513 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
27514 | if (PyErr_Occurred()) SWIG_fail; | |
27515 | } | |
27516 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27517 | return resultobj; | |
27518 | fail: | |
27519 | return NULL; | |
27520 | } | |
27521 | ||
27522 | ||
27523 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
27524 | int argc; | |
27525 | PyObject *argv[2]; | |
27526 | ||
27527 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
27528 | --argc; | |
27529 | if (argc == 1) { | |
27530 | int _v = 0; | |
27531 | { | |
27532 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
27533 | _v = SWIG_CheckState(res); | |
27534 | } | |
27535 | if (!_v) goto check_1; | |
27536 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
27537 | } | |
27538 | check_1: | |
27539 | ||
27540 | if (argc == 1) { | |
27541 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
27542 | } | |
27543 | ||
27544 | fail: | |
27545 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
27546 | return NULL; | |
27547 | } | |
27548 | ||
27549 | ||
f89238b9 RD |
27550 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27551 | PyObject *resultobj = 0; | |
27552 | wxGraphicsContext *result = 0 ; | |
27553 | ||
27554 | if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail; | |
27555 | { | |
27556 | result = (wxGraphicsContext *)wxGraphicsContext::Create(); | |
27557 | if (PyErr_Occurred()) SWIG_fail; | |
27558 | } | |
27559 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27560 | return resultobj; | |
27561 | fail: | |
27562 | return NULL; | |
27563 | } | |
27564 | ||
27565 | ||
70d7cb34 RD |
27566 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27567 | PyObject *resultobj = 0; | |
27568 | void *arg1 = (void *) 0 ; | |
27569 | wxGraphicsContext *result = 0 ; | |
27570 | int res1 ; | |
27571 | PyObject * obj0 = 0 ; | |
27572 | char * kwnames[] = { | |
27573 | (char *) "context", NULL | |
27574 | }; | |
27575 | ||
27576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
27577 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27578 | if (!SWIG_IsOK(res1)) { | |
27579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
27580 | } | |
27581 | { | |
27582 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
27583 | if (PyErr_Occurred()) SWIG_fail; | |
27584 | } | |
27585 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27586 | return resultobj; | |
27587 | fail: | |
27588 | return NULL; | |
27589 | } | |
27590 | ||
27591 | ||
27592 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27593 | PyObject *resultobj = 0; | |
27594 | void *arg1 = (void *) 0 ; | |
27595 | wxGraphicsContext *result = 0 ; | |
27596 | int res1 ; | |
27597 | PyObject * obj0 = 0 ; | |
27598 | char * kwnames[] = { | |
27599 | (char *) "window", NULL | |
27600 | }; | |
27601 | ||
27602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
27603 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27604 | if (!SWIG_IsOK(res1)) { | |
27605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
27606 | } | |
27607 | { | |
27608 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
27609 | if (PyErr_Occurred()) SWIG_fail; | |
27610 | } | |
27611 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27612 | return resultobj; | |
27613 | fail: | |
27614 | return NULL; | |
27615 | } | |
27616 | ||
27617 | ||
27618 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27619 | PyObject *resultobj = 0; | |
27620 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 27621 | wxGraphicsPath result; |
70d7cb34 RD |
27622 | void *argp1 = 0 ; |
27623 | int res1 = 0 ; | |
27624 | PyObject *swig_obj[1] ; | |
27625 | ||
27626 | if (!args) SWIG_fail; | |
27627 | swig_obj[0] = args; | |
27628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27629 | if (!SWIG_IsOK(res1)) { | |
27630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27631 | } | |
27632 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27633 | { | |
5c8c7dd3 | 27634 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
27635 | if (PyErr_Occurred()) SWIG_fail; |
27636 | } | |
5c8c7dd3 | 27637 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27638 | return resultobj; |
27639 | fail: | |
27640 | return NULL; | |
27641 | } | |
27642 | ||
27643 | ||
70d7cb34 | 27644 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27645 | PyObject *resultobj = 0; |
70d7cb34 RD |
27646 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27647 | wxPen *arg2 = 0 ; | |
27648 | wxGraphicsPen result; | |
72ef6efb RD |
27649 | void *argp1 = 0 ; |
27650 | int res1 = 0 ; | |
70d7cb34 RD |
27651 | void *argp2 = 0 ; |
27652 | int res2 = 0 ; | |
72ef6efb RD |
27653 | PyObject * obj0 = 0 ; |
27654 | PyObject * obj1 = 0 ; | |
72ef6efb | 27655 | char * kwnames[] = { |
70d7cb34 | 27656 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
27657 | }; |
27658 | ||
70d7cb34 RD |
27659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
27660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27661 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27663 | } |
70d7cb34 RD |
27664 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27665 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
27666 | if (!SWIG_IsOK(res2)) { | |
27667 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27668 | } | |
27669 | if (!argp2) { | |
27670 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27671 | } | |
27672 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 27673 | { |
70d7cb34 | 27674 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
27675 | if (PyErr_Occurred()) SWIG_fail; |
27676 | } | |
70d7cb34 | 27677 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27678 | return resultobj; |
27679 | fail: | |
27680 | return NULL; | |
27681 | } | |
27682 | ||
27683 | ||
70d7cb34 | 27684 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27685 | PyObject *resultobj = 0; |
70d7cb34 RD |
27686 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27687 | wxBrush *arg2 = 0 ; | |
27688 | wxGraphicsBrush result; | |
72ef6efb RD |
27689 | void *argp1 = 0 ; |
27690 | int res1 = 0 ; | |
70d7cb34 RD |
27691 | void *argp2 = 0 ; |
27692 | int res2 = 0 ; | |
72ef6efb RD |
27693 | PyObject * obj0 = 0 ; |
27694 | PyObject * obj1 = 0 ; | |
72ef6efb | 27695 | char * kwnames[] = { |
70d7cb34 | 27696 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
27697 | }; |
27698 | ||
70d7cb34 RD |
27699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
27700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27701 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27703 | } |
70d7cb34 RD |
27704 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27705 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
27706 | if (!SWIG_IsOK(res2)) { | |
27707 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27708 | } | |
27709 | if (!argp2) { | |
27710 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27711 | } | |
27712 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 27713 | { |
70d7cb34 | 27714 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
27715 | if (PyErr_Occurred()) SWIG_fail; |
27716 | } | |
70d7cb34 | 27717 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27718 | return resultobj; |
27719 | fail: | |
27720 | return NULL; | |
27721 | } | |
27722 | ||
27723 | ||
70d7cb34 | 27724 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27725 | PyObject *resultobj = 0; |
70d7cb34 | 27726 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27727 | wxDouble arg2 ; |
27728 | wxDouble arg3 ; | |
27729 | wxDouble arg4 ; | |
27730 | wxDouble arg5 ; | |
70d7cb34 RD |
27731 | wxColour *arg6 = 0 ; |
27732 | wxColour *arg7 = 0 ; | |
27733 | wxGraphicsBrush result; | |
72ef6efb RD |
27734 | void *argp1 = 0 ; |
27735 | int res1 = 0 ; | |
27736 | double val2 ; | |
27737 | int ecode2 = 0 ; | |
27738 | double val3 ; | |
27739 | int ecode3 = 0 ; | |
27740 | double val4 ; | |
27741 | int ecode4 = 0 ; | |
27742 | double val5 ; | |
27743 | int ecode5 = 0 ; | |
70d7cb34 RD |
27744 | wxColour temp6 ; |
27745 | wxColour temp7 ; | |
72ef6efb RD |
27746 | PyObject * obj0 = 0 ; |
27747 | PyObject * obj1 = 0 ; | |
27748 | PyObject * obj2 = 0 ; | |
27749 | PyObject * obj3 = 0 ; | |
27750 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
27751 | PyObject * obj5 = 0 ; |
27752 | PyObject * obj6 = 0 ; | |
72ef6efb | 27753 | char * kwnames[] = { |
70d7cb34 | 27754 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
27755 | }; |
27756 | ||
70d7cb34 RD |
27757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27759 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27761 | } |
70d7cb34 | 27762 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27763 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27764 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27766 | } |
27767 | arg2 = static_cast< wxDouble >(val2); | |
27768 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27769 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27770 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27771 | } |
27772 | arg3 = static_cast< wxDouble >(val3); | |
27773 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27774 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27775 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27776 | } |
27777 | arg4 = static_cast< wxDouble >(val4); | |
27778 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27779 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27780 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27781 | } |
27782 | arg5 = static_cast< wxDouble >(val5); | |
27783 | { | |
70d7cb34 RD |
27784 | arg6 = &temp6; |
27785 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 27786 | } |
70d7cb34 RD |
27787 | { |
27788 | arg7 = &temp7; | |
27789 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 27790 | } |
72ef6efb | 27791 | { |
70d7cb34 | 27792 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
27793 | if (PyErr_Occurred()) SWIG_fail; |
27794 | } | |
70d7cb34 | 27795 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27796 | return resultobj; |
27797 | fail: | |
27798 | return NULL; | |
27799 | } | |
27800 | ||
27801 | ||
70d7cb34 | 27802 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27803 | PyObject *resultobj = 0; |
70d7cb34 | 27804 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27805 | wxDouble arg2 ; |
27806 | wxDouble arg3 ; | |
27807 | wxDouble arg4 ; | |
27808 | wxDouble arg5 ; | |
27809 | wxDouble arg6 ; | |
70d7cb34 RD |
27810 | wxColour *arg7 = 0 ; |
27811 | wxColour *arg8 = 0 ; | |
27812 | wxGraphicsBrush result; | |
72ef6efb RD |
27813 | void *argp1 = 0 ; |
27814 | int res1 = 0 ; | |
27815 | double val2 ; | |
27816 | int ecode2 = 0 ; | |
27817 | double val3 ; | |
27818 | int ecode3 = 0 ; | |
27819 | double val4 ; | |
27820 | int ecode4 = 0 ; | |
27821 | double val5 ; | |
27822 | int ecode5 = 0 ; | |
27823 | double val6 ; | |
27824 | int ecode6 = 0 ; | |
70d7cb34 RD |
27825 | wxColour temp7 ; |
27826 | wxColour temp8 ; | |
72ef6efb RD |
27827 | PyObject * obj0 = 0 ; |
27828 | PyObject * obj1 = 0 ; | |
27829 | PyObject * obj2 = 0 ; | |
27830 | PyObject * obj3 = 0 ; | |
27831 | PyObject * obj4 = 0 ; | |
27832 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
27833 | PyObject * obj6 = 0 ; |
27834 | PyObject * obj7 = 0 ; | |
72ef6efb | 27835 | char * kwnames[] = { |
70d7cb34 | 27836 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
27837 | }; |
27838 | ||
70d7cb34 RD |
27839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
27840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27841 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27843 | } |
70d7cb34 | 27844 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27845 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27846 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27848 | } |
27849 | arg2 = static_cast< wxDouble >(val2); | |
27850 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27851 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27852 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27853 | } |
27854 | arg3 = static_cast< wxDouble >(val3); | |
27855 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27856 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27857 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27858 | } |
27859 | arg4 = static_cast< wxDouble >(val4); | |
27860 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27861 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27862 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27863 | } |
27864 | arg5 = static_cast< wxDouble >(val5); | |
27865 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27866 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 27867 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
27868 | } |
27869 | arg6 = static_cast< wxDouble >(val6); | |
27870 | { | |
70d7cb34 RD |
27871 | arg7 = &temp7; |
27872 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
27873 | } | |
27874 | { | |
27875 | arg8 = &temp8; | |
27876 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
27877 | } | |
27878 | { | |
27879 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
27880 | if (PyErr_Occurred()) SWIG_fail; |
27881 | } | |
70d7cb34 | 27882 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27883 | return resultobj; |
27884 | fail: | |
27885 | return NULL; | |
27886 | } | |
27887 | ||
27888 | ||
70d7cb34 | 27889 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27890 | PyObject *resultobj = 0; |
27891 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
27892 | wxFont *arg2 = 0 ; |
27893 | wxColour const &arg3_defvalue = *wxBLACK ; | |
27894 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
27895 | wxGraphicsFont result; | |
72ef6efb RD |
27896 | void *argp1 = 0 ; |
27897 | int res1 = 0 ; | |
70d7cb34 RD |
27898 | void *argp2 = 0 ; |
27899 | int res2 = 0 ; | |
27900 | wxColour temp3 ; | |
27901 | PyObject * obj0 = 0 ; | |
27902 | PyObject * obj1 = 0 ; | |
27903 | PyObject * obj2 = 0 ; | |
27904 | char * kwnames[] = { | |
27905 | (char *) "self",(char *) "font",(char *) "col", NULL | |
27906 | }; | |
72ef6efb | 27907 | |
70d7cb34 RD |
27908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
27909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27910 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
27912 | } |
27913 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
27914 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
27915 | if (!SWIG_IsOK(res2)) { | |
27916 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27917 | } |
70d7cb34 RD |
27918 | if (!argp2) { |
27919 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27920 | } |
70d7cb34 RD |
27921 | arg2 = reinterpret_cast< wxFont * >(argp2); |
27922 | if (obj2) { | |
27923 | { | |
27924 | arg3 = &temp3; | |
27925 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
27926 | } | |
72ef6efb | 27927 | } |
72ef6efb | 27928 | { |
70d7cb34 | 27929 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
27930 | if (PyErr_Occurred()) SWIG_fail; |
27931 | } | |
70d7cb34 | 27932 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27933 | return resultobj; |
27934 | fail: | |
27935 | return NULL; | |
27936 | } | |
27937 | ||
27938 | ||
70d7cb34 | 27939 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 27940 | PyObject *resultobj = 0; |
70d7cb34 RD |
27941 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27942 | wxDouble arg2 = (wxDouble) 1.0 ; | |
27943 | wxDouble arg3 = (wxDouble) 0.0 ; | |
27944 | wxDouble arg4 = (wxDouble) 0.0 ; | |
27945 | wxDouble arg5 = (wxDouble) 1.0 ; | |
27946 | wxDouble arg6 = (wxDouble) 0.0 ; | |
27947 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 27948 | wxGraphicsMatrix result; |
0a27f394 RD |
27949 | void *argp1 = 0 ; |
27950 | int res1 = 0 ; | |
70d7cb34 RD |
27951 | double val2 ; |
27952 | int ecode2 = 0 ; | |
27953 | double val3 ; | |
27954 | int ecode3 = 0 ; | |
27955 | double val4 ; | |
27956 | int ecode4 = 0 ; | |
27957 | double val5 ; | |
27958 | int ecode5 = 0 ; | |
27959 | double val6 ; | |
27960 | int ecode6 = 0 ; | |
27961 | double val7 ; | |
27962 | int ecode7 = 0 ; | |
27963 | PyObject * obj0 = 0 ; | |
27964 | PyObject * obj1 = 0 ; | |
27965 | PyObject * obj2 = 0 ; | |
27966 | PyObject * obj3 = 0 ; | |
27967 | PyObject * obj4 = 0 ; | |
27968 | PyObject * obj5 = 0 ; | |
27969 | PyObject * obj6 = 0 ; | |
27970 | char * kwnames[] = { | |
27971 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
27972 | }; | |
0a27f394 | 27973 | |
70d7cb34 RD |
27974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 27976 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 27978 | } |
70d7cb34 RD |
27979 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27980 | if (obj1) { | |
27981 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27982 | if (!SWIG_IsOK(ecode2)) { | |
27983 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27984 | } | |
27985 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 27986 | } |
70d7cb34 RD |
27987 | if (obj2) { |
27988 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27989 | if (!SWIG_IsOK(ecode3)) { | |
27990 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27991 | } | |
27992 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 27993 | } |
70d7cb34 RD |
27994 | if (obj3) { |
27995 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27996 | if (!SWIG_IsOK(ecode4)) { | |
27997 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27998 | } | |
27999 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 28000 | } |
70d7cb34 RD |
28001 | if (obj4) { |
28002 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28003 | if (!SWIG_IsOK(ecode5)) { | |
28004 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28005 | } | |
28006 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 28007 | } |
70d7cb34 RD |
28008 | if (obj5) { |
28009 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28010 | if (!SWIG_IsOK(ecode6)) { | |
28011 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28012 | } | |
28013 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 28014 | } |
70d7cb34 RD |
28015 | if (obj6) { |
28016 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
28017 | if (!SWIG_IsOK(ecode7)) { | |
28018 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
28019 | } | |
28020 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 28021 | } |
72ef6efb | 28022 | { |
5c8c7dd3 | 28023 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
28024 | if (PyErr_Occurred()) SWIG_fail; |
28025 | } | |
5c8c7dd3 | 28026 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28027 | return resultobj; |
28028 | fail: | |
28029 | return NULL; | |
28030 | } | |
28031 | ||
28032 | ||
28033 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28034 | PyObject *resultobj = 0; | |
28035 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28036 | void *argp1 = 0 ; | |
28037 | int res1 = 0 ; | |
28038 | PyObject *swig_obj[1] ; | |
28039 | ||
28040 | if (!args) SWIG_fail; | |
28041 | swig_obj[0] = args; | |
28042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28043 | if (!SWIG_IsOK(res1)) { | |
28044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28045 | } | |
28046 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28047 | { | |
72ef6efb | 28048 | (arg1)->PushState(); |
72ef6efb RD |
28049 | if (PyErr_Occurred()) SWIG_fail; |
28050 | } | |
28051 | resultobj = SWIG_Py_Void(); | |
28052 | return resultobj; | |
28053 | fail: | |
28054 | return NULL; | |
28055 | } | |
28056 | ||
28057 | ||
28058 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28059 | PyObject *resultobj = 0; | |
28060 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28061 | void *argp1 = 0 ; | |
28062 | int res1 = 0 ; | |
28063 | PyObject *swig_obj[1] ; | |
28064 | ||
28065 | if (!args) SWIG_fail; | |
28066 | swig_obj[0] = args; | |
28067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28068 | if (!SWIG_IsOK(res1)) { | |
28069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28070 | } | |
28071 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28072 | { | |
72ef6efb | 28073 | (arg1)->PopState(); |
72ef6efb RD |
28074 | if (PyErr_Occurred()) SWIG_fail; |
28075 | } | |
28076 | resultobj = SWIG_Py_Void(); | |
28077 | return resultobj; | |
28078 | fail: | |
28079 | return NULL; | |
28080 | } | |
28081 | ||
28082 | ||
0a27f394 | 28083 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28084 | PyObject *resultobj = 0; |
28085 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28086 | wxRegion *arg2 = 0 ; | |
28087 | void *argp1 = 0 ; | |
28088 | int res1 = 0 ; | |
28089 | void *argp2 = 0 ; | |
28090 | int res2 = 0 ; | |
28091 | PyObject * obj0 = 0 ; | |
28092 | PyObject * obj1 = 0 ; | |
28093 | char * kwnames[] = { | |
28094 | (char *) "self",(char *) "region", NULL | |
28095 | }; | |
28096 | ||
0a27f394 | 28097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
28099 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 28100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28101 | } |
28102 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28103 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
28104 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 28105 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28106 | } |
28107 | if (!argp2) { | |
0a27f394 | 28108 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28109 | } |
28110 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
28111 | { | |
72ef6efb | 28112 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
28113 | if (PyErr_Occurred()) SWIG_fail; |
28114 | } | |
28115 | resultobj = SWIG_Py_Void(); | |
28116 | return resultobj; | |
28117 | fail: | |
28118 | return NULL; | |
28119 | } | |
28120 | ||
28121 | ||
0a27f394 RD |
28122 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28123 | PyObject *resultobj = 0; | |
28124 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28125 | wxDouble arg2 ; | |
28126 | wxDouble arg3 ; | |
28127 | wxDouble arg4 ; | |
28128 | wxDouble arg5 ; | |
28129 | void *argp1 = 0 ; | |
28130 | int res1 = 0 ; | |
28131 | double val2 ; | |
28132 | int ecode2 = 0 ; | |
28133 | double val3 ; | |
28134 | int ecode3 = 0 ; | |
28135 | double val4 ; | |
28136 | int ecode4 = 0 ; | |
28137 | double val5 ; | |
28138 | int ecode5 = 0 ; | |
28139 | PyObject * obj0 = 0 ; | |
28140 | PyObject * obj1 = 0 ; | |
28141 | PyObject * obj2 = 0 ; | |
28142 | PyObject * obj3 = 0 ; | |
28143 | PyObject * obj4 = 0 ; | |
28144 | char * kwnames[] = { | |
28145 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
28146 | }; | |
28147 | ||
28148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28150 | if (!SWIG_IsOK(res1)) { | |
28151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28152 | } | |
28153 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28154 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28155 | if (!SWIG_IsOK(ecode2)) { | |
28156 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28157 | } | |
28158 | arg2 = static_cast< wxDouble >(val2); | |
28159 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28160 | if (!SWIG_IsOK(ecode3)) { | |
28161 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28162 | } | |
28163 | arg3 = static_cast< wxDouble >(val3); | |
28164 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28165 | if (!SWIG_IsOK(ecode4)) { | |
28166 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28167 | } | |
28168 | arg4 = static_cast< wxDouble >(val4); | |
28169 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28170 | if (!SWIG_IsOK(ecode5)) { | |
28171 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28172 | } | |
28173 | arg5 = static_cast< wxDouble >(val5); | |
28174 | { | |
28175 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
28176 | if (PyErr_Occurred()) SWIG_fail; | |
28177 | } | |
28178 | resultobj = SWIG_Py_Void(); | |
28179 | return resultobj; | |
28180 | fail: | |
28181 | return NULL; | |
28182 | } | |
28183 | ||
28184 | ||
28185 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28186 | PyObject *resultobj = 0; | |
28187 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28188 | void *argp1 = 0 ; | |
28189 | int res1 = 0 ; | |
28190 | PyObject *swig_obj[1] ; | |
28191 | ||
28192 | if (!args) SWIG_fail; | |
28193 | swig_obj[0] = args; | |
28194 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28195 | if (!SWIG_IsOK(res1)) { | |
28196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28197 | } | |
28198 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28199 | { | |
28200 | (arg1)->ResetClip(); | |
28201 | if (PyErr_Occurred()) SWIG_fail; | |
28202 | } | |
28203 | resultobj = SWIG_Py_Void(); | |
28204 | return resultobj; | |
28205 | fail: | |
28206 | return NULL; | |
28207 | } | |
28208 | ||
28209 | ||
28210 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28211 | PyObject *resultobj = 0; | |
28212 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28213 | void *result = 0 ; | |
28214 | void *argp1 = 0 ; | |
28215 | int res1 = 0 ; | |
28216 | PyObject *swig_obj[1] ; | |
28217 | ||
28218 | if (!args) SWIG_fail; | |
28219 | swig_obj[0] = args; | |
28220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28221 | if (!SWIG_IsOK(res1)) { | |
28222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28223 | } | |
28224 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28225 | { | |
28226 | result = (void *)(arg1)->GetNativeContext(); | |
28227 | if (PyErr_Occurred()) SWIG_fail; | |
28228 | } | |
28229 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
28230 | return resultobj; | |
28231 | fail: | |
28232 | return NULL; | |
28233 | } | |
28234 | ||
28235 | ||
c8aaaf9e RD |
28236 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28237 | PyObject *resultobj = 0; | |
28238 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28239 | int result; | |
28240 | void *argp1 = 0 ; | |
28241 | int res1 = 0 ; | |
28242 | PyObject *swig_obj[1] ; | |
28243 | ||
28244 | if (!args) SWIG_fail; | |
28245 | swig_obj[0] = args; | |
28246 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28247 | if (!SWIG_IsOK(res1)) { | |
28248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28249 | } | |
28250 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28251 | { | |
28252 | result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction(); | |
28253 | if (PyErr_Occurred()) SWIG_fail; | |
28254 | } | |
28255 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28256 | return resultobj; | |
28257 | fail: | |
28258 | return NULL; | |
28259 | } | |
28260 | ||
28261 | ||
28262 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28263 | PyObject *resultobj = 0; | |
28264 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28265 | int arg2 ; | |
28266 | bool result; | |
28267 | void *argp1 = 0 ; | |
28268 | int res1 = 0 ; | |
28269 | int val2 ; | |
28270 | int ecode2 = 0 ; | |
28271 | PyObject * obj0 = 0 ; | |
28272 | PyObject * obj1 = 0 ; | |
28273 | char * kwnames[] = { | |
28274 | (char *) "self",(char *) "function", NULL | |
28275 | }; | |
28276 | ||
28277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
28278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28279 | if (!SWIG_IsOK(res1)) { | |
28280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28281 | } | |
28282 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28283 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28284 | if (!SWIG_IsOK(ecode2)) { | |
28285 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
28286 | } | |
28287 | arg2 = static_cast< int >(val2); | |
28288 | { | |
28289 | result = (bool)(arg1)->SetLogicalFunction(arg2); | |
28290 | if (PyErr_Occurred()) SWIG_fail; | |
28291 | } | |
28292 | { | |
28293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28294 | } | |
28295 | return resultobj; | |
28296 | fail: | |
28297 | return NULL; | |
28298 | } | |
28299 | ||
28300 | ||
72ef6efb RD |
28301 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28302 | PyObject *resultobj = 0; | |
28303 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28304 | wxDouble arg2 ; | |
28305 | wxDouble arg3 ; | |
28306 | void *argp1 = 0 ; | |
28307 | int res1 = 0 ; | |
28308 | double val2 ; | |
28309 | int ecode2 = 0 ; | |
28310 | double val3 ; | |
28311 | int ecode3 = 0 ; | |
28312 | PyObject * obj0 = 0 ; | |
28313 | PyObject * obj1 = 0 ; | |
28314 | PyObject * obj2 = 0 ; | |
28315 | char * kwnames[] = { | |
28316 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
28317 | }; | |
28318 | ||
28319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28321 | if (!SWIG_IsOK(res1)) { | |
28322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28323 | } | |
28324 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28325 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28326 | if (!SWIG_IsOK(ecode2)) { | |
28327 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28328 | } | |
28329 | arg2 = static_cast< wxDouble >(val2); | |
28330 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28331 | if (!SWIG_IsOK(ecode3)) { | |
28332 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28333 | } | |
28334 | arg3 = static_cast< wxDouble >(val3); | |
28335 | { | |
72ef6efb | 28336 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
28337 | if (PyErr_Occurred()) SWIG_fail; |
28338 | } | |
28339 | resultobj = SWIG_Py_Void(); | |
28340 | return resultobj; | |
28341 | fail: | |
28342 | return NULL; | |
28343 | } | |
28344 | ||
28345 | ||
28346 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28347 | PyObject *resultobj = 0; | |
28348 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28349 | wxDouble arg2 ; | |
28350 | wxDouble arg3 ; | |
28351 | void *argp1 = 0 ; | |
28352 | int res1 = 0 ; | |
28353 | double val2 ; | |
28354 | int ecode2 = 0 ; | |
28355 | double val3 ; | |
28356 | int ecode3 = 0 ; | |
28357 | PyObject * obj0 = 0 ; | |
28358 | PyObject * obj1 = 0 ; | |
28359 | PyObject * obj2 = 0 ; | |
28360 | char * kwnames[] = { | |
28361 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
28362 | }; | |
28363 | ||
28364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28366 | if (!SWIG_IsOK(res1)) { | |
28367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28368 | } | |
28369 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28370 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28371 | if (!SWIG_IsOK(ecode2)) { | |
28372 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28373 | } | |
28374 | arg2 = static_cast< wxDouble >(val2); | |
28375 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28376 | if (!SWIG_IsOK(ecode3)) { | |
28377 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28378 | } | |
28379 | arg3 = static_cast< wxDouble >(val3); | |
28380 | { | |
72ef6efb | 28381 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
28382 | if (PyErr_Occurred()) SWIG_fail; |
28383 | } | |
28384 | resultobj = SWIG_Py_Void(); | |
28385 | return resultobj; | |
28386 | fail: | |
28387 | return NULL; | |
28388 | } | |
28389 | ||
28390 | ||
28391 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28392 | PyObject *resultobj = 0; | |
28393 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28394 | wxDouble arg2 ; | |
28395 | void *argp1 = 0 ; | |
28396 | int res1 = 0 ; | |
28397 | double val2 ; | |
28398 | int ecode2 = 0 ; | |
28399 | PyObject * obj0 = 0 ; | |
28400 | PyObject * obj1 = 0 ; | |
28401 | char * kwnames[] = { | |
28402 | (char *) "self",(char *) "angle", NULL | |
28403 | }; | |
28404 | ||
28405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
28406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28407 | if (!SWIG_IsOK(res1)) { | |
28408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28409 | } | |
28410 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28411 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28412 | if (!SWIG_IsOK(ecode2)) { | |
28413 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28414 | } | |
28415 | arg2 = static_cast< wxDouble >(val2); | |
28416 | { | |
72ef6efb | 28417 | (arg1)->Rotate(arg2); |
72ef6efb RD |
28418 | if (PyErr_Occurred()) SWIG_fail; |
28419 | } | |
28420 | resultobj = SWIG_Py_Void(); | |
28421 | return resultobj; | |
28422 | fail: | |
28423 | return NULL; | |
28424 | } | |
28425 | ||
28426 | ||
5c8c7dd3 RD |
28427 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28428 | PyObject *resultobj = 0; | |
28429 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28430 | wxGraphicsMatrix *arg2 = 0 ; | |
28431 | void *argp1 = 0 ; | |
28432 | int res1 = 0 ; | |
28433 | void *argp2 = 0 ; | |
28434 | int res2 = 0 ; | |
28435 | PyObject * obj0 = 0 ; | |
28436 | PyObject * obj1 = 0 ; | |
28437 | char * kwnames[] = { | |
28438 | (char *) "self",(char *) "matrix", NULL | |
28439 | }; | |
28440 | ||
28441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28443 | if (!SWIG_IsOK(res1)) { | |
28444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28445 | } | |
28446 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28447 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28448 | if (!SWIG_IsOK(res2)) { | |
28449 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28450 | } | |
28451 | if (!argp2) { | |
28452 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28453 | } | |
28454 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28455 | { | |
28456 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
28457 | if (PyErr_Occurred()) SWIG_fail; | |
28458 | } | |
28459 | resultobj = SWIG_Py_Void(); | |
28460 | return resultobj; | |
28461 | fail: | |
28462 | return NULL; | |
28463 | } | |
28464 | ||
28465 | ||
28466 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28467 | PyObject *resultobj = 0; | |
28468 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28469 | wxGraphicsMatrix *arg2 = 0 ; | |
28470 | void *argp1 = 0 ; | |
28471 | int res1 = 0 ; | |
28472 | void *argp2 = 0 ; | |
28473 | int res2 = 0 ; | |
28474 | PyObject * obj0 = 0 ; | |
28475 | PyObject * obj1 = 0 ; | |
28476 | char * kwnames[] = { | |
28477 | (char *) "self",(char *) "matrix", NULL | |
28478 | }; | |
28479 | ||
28480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28482 | if (!SWIG_IsOK(res1)) { | |
28483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28484 | } | |
28485 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28486 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28487 | if (!SWIG_IsOK(res2)) { | |
28488 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28489 | } | |
28490 | if (!argp2) { | |
28491 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28492 | } | |
28493 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28494 | { | |
28495 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
28496 | if (PyErr_Occurred()) SWIG_fail; | |
28497 | } | |
28498 | resultobj = SWIG_Py_Void(); | |
28499 | return resultobj; | |
28500 | fail: | |
28501 | return NULL; | |
28502 | } | |
28503 | ||
28504 | ||
28505 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28506 | PyObject *resultobj = 0; | |
28507 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28508 | wxGraphicsMatrix result; | |
28509 | void *argp1 = 0 ; | |
28510 | int res1 = 0 ; | |
28511 | PyObject *swig_obj[1] ; | |
28512 | ||
28513 | if (!args) SWIG_fail; | |
28514 | swig_obj[0] = args; | |
28515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28516 | if (!SWIG_IsOK(res1)) { | |
28517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28518 | } | |
28519 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28520 | { | |
28521 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
28522 | if (PyErr_Occurred()) SWIG_fail; | |
28523 | } | |
28524 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
28525 | return resultobj; | |
28526 | fail: | |
28527 | return NULL; | |
28528 | } | |
28529 | ||
28530 | ||
70d7cb34 RD |
28531 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
28532 | PyObject *resultobj = 0; | |
28533 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28534 | wxGraphicsPen *arg2 = 0 ; | |
28535 | void *argp1 = 0 ; | |
28536 | int res1 = 0 ; | |
28537 | void *argp2 = 0 ; | |
28538 | int res2 = 0 ; | |
28539 | ||
28540 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28542 | if (!SWIG_IsOK(res1)) { | |
28543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28544 | } | |
28545 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28546 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
28547 | if (!SWIG_IsOK(res2)) { | |
28548 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28549 | } | |
28550 | if (!argp2) { | |
28551 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28552 | } | |
28553 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
28554 | { | |
28555 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
28556 | if (PyErr_Occurred()) SWIG_fail; | |
28557 | } | |
28558 | resultobj = SWIG_Py_Void(); | |
28559 | return resultobj; | |
28560 | fail: | |
28561 | return NULL; | |
28562 | } | |
28563 | ||
28564 | ||
28565 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28566 | PyObject *resultobj = 0; |
28567 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28568 | wxPen *arg2 = 0 ; | |
28569 | void *argp1 = 0 ; | |
28570 | int res1 = 0 ; | |
28571 | void *argp2 = 0 ; | |
28572 | int res2 = 0 ; | |
72ef6efb | 28573 | |
70d7cb34 RD |
28574 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28576 | if (!SWIG_IsOK(res1)) { |
28577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28578 | } | |
28579 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28580 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
28581 | if (!SWIG_IsOK(res2)) { |
28582 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28583 | } | |
28584 | if (!argp2) { | |
28585 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28586 | } | |
28587 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
28588 | { | |
72ef6efb | 28589 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
28590 | if (PyErr_Occurred()) SWIG_fail; |
28591 | } | |
28592 | resultobj = SWIG_Py_Void(); | |
28593 | return resultobj; | |
28594 | fail: | |
28595 | return NULL; | |
28596 | } | |
28597 | ||
28598 | ||
70d7cb34 RD |
28599 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
28600 | int argc; | |
28601 | PyObject *argv[3]; | |
28602 | ||
28603 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
28604 | --argc; | |
28605 | if (argc == 2) { | |
28606 | int _v = 0; | |
28607 | { | |
28608 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
28609 | _v = SWIG_CheckState(res); | |
28610 | } | |
28611 | if (!_v) goto check_1; | |
28612 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
28613 | } | |
28614 | check_1: | |
28615 | ||
28616 | if (argc == 2) { | |
28617 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
28618 | } | |
28619 | ||
28620 | fail: | |
28621 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
28622 | return NULL; | |
28623 | } | |
28624 | ||
28625 | ||
28626 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28627 | PyObject *resultobj = 0; | |
28628 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28629 | wxGraphicsBrush *arg2 = 0 ; | |
28630 | void *argp1 = 0 ; | |
28631 | int res1 = 0 ; | |
28632 | void *argp2 = 0 ; | |
28633 | int res2 = 0 ; | |
28634 | ||
28635 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28637 | if (!SWIG_IsOK(res1)) { | |
28638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28639 | } | |
28640 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28641 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
28642 | if (!SWIG_IsOK(res2)) { | |
28643 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28644 | } | |
28645 | if (!argp2) { | |
28646 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28647 | } | |
28648 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
28649 | { | |
28650 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
28651 | if (PyErr_Occurred()) SWIG_fail; | |
28652 | } | |
28653 | resultobj = SWIG_Py_Void(); | |
28654 | return resultobj; | |
28655 | fail: | |
28656 | return NULL; | |
28657 | } | |
28658 | ||
28659 | ||
28660 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28661 | PyObject *resultobj = 0; |
28662 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28663 | wxBrush *arg2 = 0 ; | |
28664 | void *argp1 = 0 ; | |
28665 | int res1 = 0 ; | |
28666 | void *argp2 = 0 ; | |
28667 | int res2 = 0 ; | |
72ef6efb | 28668 | |
70d7cb34 RD |
28669 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28670 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28671 | if (!SWIG_IsOK(res1)) { |
28672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28673 | } | |
28674 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28675 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
28676 | if (!SWIG_IsOK(res2)) { |
28677 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28678 | } | |
28679 | if (!argp2) { | |
28680 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28681 | } | |
28682 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
28683 | { | |
72ef6efb | 28684 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28685 | if (PyErr_Occurred()) SWIG_fail; |
28686 | } | |
28687 | resultobj = SWIG_Py_Void(); | |
28688 | return resultobj; | |
28689 | fail: | |
28690 | return NULL; | |
28691 | } | |
28692 | ||
28693 | ||
70d7cb34 RD |
28694 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
28695 | int argc; | |
28696 | PyObject *argv[3]; | |
72ef6efb | 28697 | |
70d7cb34 RD |
28698 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
28699 | --argc; | |
28700 | if (argc == 2) { | |
28701 | int _v = 0; | |
28702 | { | |
28703 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
28704 | _v = SWIG_CheckState(res); | |
28705 | } | |
28706 | if (!_v) goto check_1; | |
28707 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 28708 | } |
70d7cb34 RD |
28709 | check_1: |
28710 | ||
28711 | if (argc == 2) { | |
28712 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 28713 | } |
70d7cb34 | 28714 | |
72ef6efb | 28715 | fail: |
70d7cb34 | 28716 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
28717 | return NULL; |
28718 | } | |
28719 | ||
28720 | ||
70d7cb34 | 28721 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28722 | PyObject *resultobj = 0; |
28723 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 28724 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
28725 | void *argp1 = 0 ; |
28726 | int res1 = 0 ; | |
70d7cb34 RD |
28727 | void *argp2 = 0 ; |
28728 | int res2 = 0 ; | |
72ef6efb | 28729 | |
70d7cb34 RD |
28730 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28732 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28734 | } |
28735 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28736 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
28737 | if (!SWIG_IsOK(res2)) { | |
28738 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28739 | } |
70d7cb34 RD |
28740 | if (!argp2) { |
28741 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28742 | } |
70d7cb34 | 28743 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 28744 | { |
70d7cb34 | 28745 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
28746 | if (PyErr_Occurred()) SWIG_fail; |
28747 | } | |
28748 | resultobj = SWIG_Py_Void(); | |
28749 | return resultobj; | |
28750 | fail: | |
28751 | return NULL; | |
28752 | } | |
28753 | ||
28754 | ||
70d7cb34 | 28755 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28756 | PyObject *resultobj = 0; |
28757 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28758 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
28759 | wxColour const &arg3_defvalue = *wxBLACK ; |
28760 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
28761 | void *argp1 = 0 ; |
28762 | int res1 = 0 ; | |
28763 | void *argp2 = 0 ; | |
28764 | int res2 = 0 ; | |
70d7cb34 | 28765 | wxColour temp3 ; |
72ef6efb | 28766 | |
70d7cb34 RD |
28767 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
28768 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28769 | if (!SWIG_IsOK(res1)) { |
28770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28771 | } | |
28772 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28773 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
28774 | if (!SWIG_IsOK(res2)) { |
28775 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28776 | } | |
28777 | if (!argp2) { | |
28778 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28779 | } | |
28780 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
28781 | if (swig_obj[2]) { |
28782 | { | |
28783 | arg3 = &temp3; | |
28784 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
28785 | } | |
28786 | } | |
72ef6efb | 28787 | { |
70d7cb34 | 28788 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28789 | if (PyErr_Occurred()) SWIG_fail; |
28790 | } | |
28791 | resultobj = SWIG_Py_Void(); | |
28792 | return resultobj; | |
28793 | fail: | |
28794 | return NULL; | |
28795 | } | |
28796 | ||
28797 | ||
70d7cb34 RD |
28798 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
28799 | int argc; | |
28800 | PyObject *argv[4]; | |
72ef6efb | 28801 | |
70d7cb34 RD |
28802 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
28803 | --argc; | |
28804 | if (argc == 2) { | |
28805 | int _v = 0; | |
28806 | { | |
28807 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
28808 | _v = SWIG_CheckState(res); | |
28809 | } | |
28810 | if (!_v) goto check_1; | |
28811 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 28812 | } |
70d7cb34 RD |
28813 | check_1: |
28814 | ||
28815 | if ((argc >= 2) && (argc <= 3)) { | |
28816 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 28817 | } |
70d7cb34 | 28818 | |
72ef6efb | 28819 | fail: |
70d7cb34 | 28820 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
28821 | return NULL; |
28822 | } | |
28823 | ||
28824 | ||
28825 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28826 | PyObject *resultobj = 0; | |
28827 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28828 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
28829 | void *argp1 = 0 ; |
28830 | int res1 = 0 ; | |
28831 | void *argp2 = 0 ; | |
28832 | int res2 = 0 ; | |
28833 | PyObject * obj0 = 0 ; | |
28834 | PyObject * obj1 = 0 ; | |
28835 | char * kwnames[] = { | |
28836 | (char *) "self",(char *) "path", NULL | |
28837 | }; | |
28838 | ||
28839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
28840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28841 | if (!SWIG_IsOK(res1)) { | |
28842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28843 | } | |
28844 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28845 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28846 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28847 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28848 | } | |
28849 | if (!argp2) { | |
28850 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28851 | } |
28852 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28853 | { | |
5c8c7dd3 | 28854 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
28855 | if (PyErr_Occurred()) SWIG_fail; |
28856 | } | |
28857 | resultobj = SWIG_Py_Void(); | |
28858 | return resultobj; | |
28859 | fail: | |
28860 | return NULL; | |
28861 | } | |
28862 | ||
28863 | ||
28864 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28865 | PyObject *resultobj = 0; | |
28866 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28867 | wxGraphicsPath *arg2 = 0 ; |
28868 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28869 | void *argp1 = 0 ; |
28870 | int res1 = 0 ; | |
28871 | void *argp2 = 0 ; | |
28872 | int res2 = 0 ; | |
28873 | int val3 ; | |
28874 | int ecode3 = 0 ; | |
28875 | PyObject * obj0 = 0 ; | |
28876 | PyObject * obj1 = 0 ; | |
28877 | PyObject * obj2 = 0 ; | |
28878 | char * kwnames[] = { | |
28879 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28880 | }; | |
28881 | ||
28882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28884 | if (!SWIG_IsOK(res1)) { | |
28885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28886 | } | |
28887 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28888 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28889 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28890 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28891 | } | |
28892 | if (!argp2) { | |
28893 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28894 | } |
28895 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28896 | if (obj2) { | |
28897 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28898 | if (!SWIG_IsOK(ecode3)) { | |
28899 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
28900 | } | |
28901 | arg3 = static_cast< int >(val3); | |
28902 | } | |
28903 | { | |
5c8c7dd3 | 28904 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28905 | if (PyErr_Occurred()) SWIG_fail; |
28906 | } | |
28907 | resultobj = SWIG_Py_Void(); | |
28908 | return resultobj; | |
28909 | fail: | |
28910 | return NULL; | |
28911 | } | |
28912 | ||
28913 | ||
28914 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28915 | PyObject *resultobj = 0; | |
28916 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28917 | wxGraphicsPath *arg2 = 0 ; |
28918 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28919 | void *argp1 = 0 ; |
28920 | int res1 = 0 ; | |
28921 | void *argp2 = 0 ; | |
28922 | int res2 = 0 ; | |
28923 | int val3 ; | |
28924 | int ecode3 = 0 ; | |
28925 | PyObject * obj0 = 0 ; | |
28926 | PyObject * obj1 = 0 ; | |
28927 | PyObject * obj2 = 0 ; | |
28928 | char * kwnames[] = { | |
28929 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28930 | }; | |
28931 | ||
28932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28934 | if (!SWIG_IsOK(res1)) { | |
28935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28936 | } | |
28937 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28938 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28939 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28940 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28941 | } | |
28942 | if (!argp2) { | |
28943 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28944 | } |
28945 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28946 | if (obj2) { | |
28947 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28948 | if (!SWIG_IsOK(ecode3)) { | |
28949 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
28950 | } | |
28951 | arg3 = static_cast< int >(val3); | |
28952 | } | |
28953 | { | |
5c8c7dd3 | 28954 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28955 | if (PyErr_Occurred()) SWIG_fail; |
28956 | } | |
28957 | resultobj = SWIG_Py_Void(); | |
28958 | return resultobj; | |
28959 | fail: | |
28960 | return NULL; | |
28961 | } | |
28962 | ||
28963 | ||
b39fe951 | 28964 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28965 | PyObject *resultobj = 0; |
28966 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28967 | wxString *arg2 = 0 ; | |
28968 | wxDouble arg3 ; | |
28969 | wxDouble arg4 ; | |
f89238b9 RD |
28970 | wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ; |
28971 | wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ; | |
72ef6efb RD |
28972 | void *argp1 = 0 ; |
28973 | int res1 = 0 ; | |
28974 | bool temp2 = false ; | |
28975 | double val3 ; | |
28976 | int ecode3 = 0 ; | |
28977 | double val4 ; | |
28978 | int ecode4 = 0 ; | |
f89238b9 RD |
28979 | void *argp5 = 0 ; |
28980 | int res5 = 0 ; | |
b39fe951 RD |
28981 | PyObject * obj0 = 0 ; |
28982 | PyObject * obj1 = 0 ; | |
28983 | PyObject * obj2 = 0 ; | |
28984 | PyObject * obj3 = 0 ; | |
f89238b9 | 28985 | PyObject * obj4 = 0 ; |
b39fe951 | 28986 | char * kwnames[] = { |
f89238b9 | 28987 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL |
b39fe951 | 28988 | }; |
72ef6efb | 28989 | |
f89238b9 | 28990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
b39fe951 | 28991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb RD |
28992 | if (!SWIG_IsOK(res1)) { |
28993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28994 | } | |
28995 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28996 | { | |
b39fe951 | 28997 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
28998 | if (arg2 == NULL) SWIG_fail; |
28999 | temp2 = true; | |
29000 | } | |
b39fe951 | 29001 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
29002 | if (!SWIG_IsOK(ecode3)) { |
29003 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29004 | } | |
29005 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29006 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
29007 | if (!SWIG_IsOK(ecode4)) { |
29008 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29009 | } | |
29010 | arg4 = static_cast< wxDouble >(val4); | |
f89238b9 RD |
29011 | if (obj4) { |
29012 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29013 | if (!SWIG_IsOK(res5)) { | |
29014 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29015 | } | |
29016 | if (!argp5) { | |
29017 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29018 | } | |
29019 | arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5); | |
29020 | } | |
72ef6efb | 29021 | { |
f89238b9 | 29022 | wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5); |
72ef6efb RD |
29023 | if (PyErr_Occurred()) SWIG_fail; |
29024 | } | |
29025 | resultobj = SWIG_Py_Void(); | |
29026 | { | |
29027 | if (temp2) | |
29028 | delete arg2; | |
29029 | } | |
29030 | return resultobj; | |
29031 | fail: | |
29032 | { | |
29033 | if (temp2) | |
29034 | delete arg2; | |
29035 | } | |
29036 | return NULL; | |
29037 | } | |
29038 | ||
29039 | ||
b39fe951 | 29040 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29041 | PyObject *resultobj = 0; |
29042 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29043 | wxString *arg2 = 0 ; | |
29044 | wxDouble arg3 ; | |
29045 | wxDouble arg4 ; | |
29046 | wxDouble arg5 ; | |
f89238b9 RD |
29047 | wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ; |
29048 | wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ; | |
72ef6efb RD |
29049 | void *argp1 = 0 ; |
29050 | int res1 = 0 ; | |
29051 | bool temp2 = false ; | |
29052 | double val3 ; | |
29053 | int ecode3 = 0 ; | |
29054 | double val4 ; | |
29055 | int ecode4 = 0 ; | |
29056 | double val5 ; | |
29057 | int ecode5 = 0 ; | |
f89238b9 RD |
29058 | void *argp6 = 0 ; |
29059 | int res6 = 0 ; | |
b39fe951 RD |
29060 | PyObject * obj0 = 0 ; |
29061 | PyObject * obj1 = 0 ; | |
29062 | PyObject * obj2 = 0 ; | |
29063 | PyObject * obj3 = 0 ; | |
29064 | PyObject * obj4 = 0 ; | |
f89238b9 | 29065 | PyObject * obj5 = 0 ; |
b39fe951 | 29066 | char * kwnames[] = { |
f89238b9 | 29067 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL |
b39fe951 | 29068 | }; |
72ef6efb | 29069 | |
f89238b9 | 29070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
b39fe951 | 29071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb | 29072 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 29073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29074 | } |
29075 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29076 | { | |
b39fe951 | 29077 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29078 | if (arg2 == NULL) SWIG_fail; |
29079 | temp2 = true; | |
29080 | } | |
b39fe951 | 29081 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 29082 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 29083 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29084 | } |
29085 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29086 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 29087 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 29088 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29089 | } |
29090 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 29091 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 29092 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 29093 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29094 | } |
29095 | arg5 = static_cast< wxDouble >(val5); | |
f89238b9 RD |
29096 | if (obj5) { |
29097 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29098 | if (!SWIG_IsOK(res6)) { | |
29099 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29100 | } | |
29101 | if (!argp6) { | |
29102 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29103 | } | |
29104 | arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6); | |
29105 | } | |
72ef6efb | 29106 | { |
f89238b9 | 29107 | wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6); |
72ef6efb RD |
29108 | if (PyErr_Occurred()) SWIG_fail; |
29109 | } | |
29110 | resultobj = SWIG_Py_Void(); | |
29111 | { | |
29112 | if (temp2) | |
29113 | delete arg2; | |
29114 | } | |
29115 | return resultobj; | |
29116 | fail: | |
29117 | { | |
29118 | if (temp2) | |
29119 | delete arg2; | |
29120 | } | |
29121 | return NULL; | |
29122 | } | |
29123 | ||
29124 | ||
be68621e | 29125 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29126 | PyObject *resultobj = 0; |
29127 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29128 | wxString *arg2 = 0 ; | |
29129 | wxDouble *arg3 = (wxDouble *) 0 ; | |
29130 | wxDouble *arg4 = (wxDouble *) 0 ; | |
29131 | wxDouble *arg5 = (wxDouble *) 0 ; | |
29132 | wxDouble *arg6 = (wxDouble *) 0 ; | |
29133 | void *argp1 = 0 ; | |
29134 | int res1 = 0 ; | |
29135 | bool temp2 = false ; | |
29136 | wxDouble temp3 ; | |
29137 | int res3 = SWIG_TMPOBJ ; | |
29138 | wxDouble temp4 ; | |
29139 | int res4 = SWIG_TMPOBJ ; | |
29140 | wxDouble temp5 ; | |
29141 | int res5 = SWIG_TMPOBJ ; | |
29142 | wxDouble temp6 ; | |
29143 | int res6 = SWIG_TMPOBJ ; | |
29144 | PyObject * obj0 = 0 ; | |
29145 | PyObject * obj1 = 0 ; | |
29146 | char * kwnames[] = { | |
29147 | (char *) "self",(char *) "text", NULL | |
29148 | }; | |
29149 | ||
29150 | arg3 = &temp3; | |
29151 | arg4 = &temp4; | |
29152 | arg5 = &temp5; | |
29153 | arg6 = &temp6; | |
be68621e | 29154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29156 | if (!SWIG_IsOK(res1)) { | |
be68621e | 29157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29158 | } |
29159 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29160 | { | |
29161 | arg2 = wxString_in_helper(obj1); | |
29162 | if (arg2 == NULL) SWIG_fail; | |
29163 | temp2 = true; | |
29164 | } | |
29165 | { | |
72ef6efb | 29166 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29167 | if (PyErr_Occurred()) SWIG_fail; |
29168 | } | |
29169 | resultobj = SWIG_Py_Void(); | |
29170 | if (SWIG_IsTmpObj(res3)) { | |
29171 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
29172 | } else { | |
29173 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29174 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
29175 | } | |
29176 | if (SWIG_IsTmpObj(res4)) { | |
29177 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
29178 | } else { | |
29179 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29180 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
29181 | } | |
29182 | if (SWIG_IsTmpObj(res5)) { | |
29183 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
29184 | } else { | |
29185 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29186 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
29187 | } | |
29188 | if (SWIG_IsTmpObj(res6)) { | |
29189 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
29190 | } else { | |
29191 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29192 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
29193 | } | |
29194 | { | |
29195 | if (temp2) | |
29196 | delete arg2; | |
29197 | } | |
29198 | return resultobj; | |
29199 | fail: | |
29200 | { | |
29201 | if (temp2) | |
29202 | delete arg2; | |
29203 | } | |
29204 | return NULL; | |
29205 | } | |
29206 | ||
29207 | ||
be68621e RD |
29208 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29209 | PyObject *resultobj = 0; | |
29210 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29211 | wxString *arg2 = 0 ; | |
29212 | PyObject *result = 0 ; | |
29213 | void *argp1 = 0 ; | |
29214 | int res1 = 0 ; | |
29215 | bool temp2 = false ; | |
29216 | PyObject * obj0 = 0 ; | |
29217 | PyObject * obj1 = 0 ; | |
29218 | char * kwnames[] = { | |
29219 | (char *) "self",(char *) "text", NULL | |
29220 | }; | |
29221 | ||
29222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
29223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29224 | if (!SWIG_IsOK(res1)) { | |
29225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29226 | } | |
29227 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29228 | { | |
29229 | arg2 = wxString_in_helper(obj1); | |
29230 | if (arg2 == NULL) SWIG_fail; | |
29231 | temp2 = true; | |
29232 | } | |
29233 | { | |
29234 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
29235 | if (PyErr_Occurred()) SWIG_fail; | |
29236 | } | |
29237 | resultobj = result; | |
29238 | { | |
29239 | if (temp2) | |
29240 | delete arg2; | |
29241 | } | |
29242 | return resultobj; | |
29243 | fail: | |
29244 | { | |
29245 | if (temp2) | |
29246 | delete arg2; | |
29247 | } | |
29248 | return NULL; | |
29249 | } | |
29250 | ||
29251 | ||
72ef6efb RD |
29252 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29253 | PyObject *resultobj = 0; | |
29254 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29255 | wxString *arg2 = 0 ; | |
b39fe951 | 29256 | wxArrayDouble result; |
72ef6efb RD |
29257 | void *argp1 = 0 ; |
29258 | int res1 = 0 ; | |
29259 | bool temp2 = false ; | |
72ef6efb RD |
29260 | PyObject * obj0 = 0 ; |
29261 | PyObject * obj1 = 0 ; | |
72ef6efb | 29262 | char * kwnames[] = { |
b39fe951 | 29263 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
29264 | }; |
29265 | ||
b39fe951 | 29266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29268 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 29269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29270 | } |
29271 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29272 | { | |
29273 | arg2 = wxString_in_helper(obj1); | |
29274 | if (arg2 == NULL) SWIG_fail; | |
29275 | temp2 = true; | |
29276 | } | |
72ef6efb | 29277 | { |
b39fe951 | 29278 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
29279 | if (PyErr_Occurred()) SWIG_fail; |
29280 | } | |
b39fe951 RD |
29281 | { |
29282 | resultobj = wxArrayDouble2PyList_helper(result); | |
29283 | } | |
72ef6efb RD |
29284 | { |
29285 | if (temp2) | |
29286 | delete arg2; | |
29287 | } | |
29288 | return resultobj; | |
29289 | fail: | |
29290 | { | |
29291 | if (temp2) | |
29292 | delete arg2; | |
29293 | } | |
29294 | return NULL; | |
29295 | } | |
29296 | ||
29297 | ||
29298 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29299 | PyObject *resultobj = 0; | |
29300 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29301 | wxBitmap *arg2 = 0 ; | |
29302 | wxDouble arg3 ; | |
29303 | wxDouble arg4 ; | |
29304 | wxDouble arg5 ; | |
29305 | wxDouble arg6 ; | |
29306 | void *argp1 = 0 ; | |
29307 | int res1 = 0 ; | |
29308 | void *argp2 = 0 ; | |
29309 | int res2 = 0 ; | |
29310 | double val3 ; | |
29311 | int ecode3 = 0 ; | |
29312 | double val4 ; | |
29313 | int ecode4 = 0 ; | |
29314 | double val5 ; | |
29315 | int ecode5 = 0 ; | |
29316 | double val6 ; | |
29317 | int ecode6 = 0 ; | |
29318 | PyObject * obj0 = 0 ; | |
29319 | PyObject * obj1 = 0 ; | |
29320 | PyObject * obj2 = 0 ; | |
29321 | PyObject * obj3 = 0 ; | |
29322 | PyObject * obj4 = 0 ; | |
29323 | PyObject * obj5 = 0 ; | |
29324 | char * kwnames[] = { | |
29325 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29326 | }; | |
29327 | ||
29328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29330 | if (!SWIG_IsOK(res1)) { | |
29331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29332 | } | |
29333 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29334 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
29335 | if (!SWIG_IsOK(res2)) { | |
29336 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29337 | } | |
29338 | if (!argp2) { | |
29339 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29340 | } | |
29341 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
29342 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29343 | if (!SWIG_IsOK(ecode3)) { | |
29344 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29345 | } | |
29346 | arg3 = static_cast< wxDouble >(val3); | |
29347 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29348 | if (!SWIG_IsOK(ecode4)) { | |
29349 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29350 | } | |
29351 | arg4 = static_cast< wxDouble >(val4); | |
29352 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29353 | if (!SWIG_IsOK(ecode5)) { | |
29354 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29355 | } | |
29356 | arg5 = static_cast< wxDouble >(val5); | |
29357 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29358 | if (!SWIG_IsOK(ecode6)) { | |
29359 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29360 | } | |
29361 | arg6 = static_cast< wxDouble >(val6); | |
29362 | { | |
72ef6efb | 29363 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29364 | if (PyErr_Occurred()) SWIG_fail; |
29365 | } | |
29366 | resultobj = SWIG_Py_Void(); | |
29367 | return resultobj; | |
29368 | fail: | |
29369 | return NULL; | |
29370 | } | |
29371 | ||
29372 | ||
29373 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29374 | PyObject *resultobj = 0; | |
29375 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29376 | wxIcon *arg2 = 0 ; | |
29377 | wxDouble arg3 ; | |
29378 | wxDouble arg4 ; | |
29379 | wxDouble arg5 ; | |
29380 | wxDouble arg6 ; | |
29381 | void *argp1 = 0 ; | |
29382 | int res1 = 0 ; | |
29383 | void *argp2 = 0 ; | |
29384 | int res2 = 0 ; | |
29385 | double val3 ; | |
29386 | int ecode3 = 0 ; | |
29387 | double val4 ; | |
29388 | int ecode4 = 0 ; | |
29389 | double val5 ; | |
29390 | int ecode5 = 0 ; | |
70d7cb34 RD |
29391 | double val6 ; |
29392 | int ecode6 = 0 ; | |
29393 | PyObject * obj0 = 0 ; | |
29394 | PyObject * obj1 = 0 ; | |
29395 | PyObject * obj2 = 0 ; | |
29396 | PyObject * obj3 = 0 ; | |
29397 | PyObject * obj4 = 0 ; | |
29398 | PyObject * obj5 = 0 ; | |
29399 | char * kwnames[] = { | |
29400 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29401 | }; | |
29402 | ||
29403 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29404 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29405 | if (!SWIG_IsOK(res1)) { | |
29406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29407 | } | |
29408 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29409 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
29410 | if (!SWIG_IsOK(res2)) { | |
29411 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29412 | } | |
29413 | if (!argp2) { | |
29414 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29415 | } | |
29416 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
29417 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29418 | if (!SWIG_IsOK(ecode3)) { | |
29419 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29420 | } | |
29421 | arg3 = static_cast< wxDouble >(val3); | |
29422 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29423 | if (!SWIG_IsOK(ecode4)) { | |
29424 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29425 | } | |
29426 | arg4 = static_cast< wxDouble >(val4); | |
29427 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29428 | if (!SWIG_IsOK(ecode5)) { | |
29429 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29430 | } | |
29431 | arg5 = static_cast< wxDouble >(val5); | |
29432 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29433 | if (!SWIG_IsOK(ecode6)) { | |
29434 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29435 | } | |
29436 | arg6 = static_cast< wxDouble >(val6); | |
29437 | { | |
29438 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
29439 | if (PyErr_Occurred()) SWIG_fail; | |
29440 | } | |
29441 | resultobj = SWIG_Py_Void(); | |
29442 | return resultobj; | |
29443 | fail: | |
29444 | return NULL; | |
29445 | } | |
29446 | ||
29447 | ||
29448 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29449 | PyObject *resultobj = 0; | |
29450 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29451 | wxDouble arg2 ; | |
29452 | wxDouble arg3 ; | |
29453 | wxDouble arg4 ; | |
29454 | wxDouble arg5 ; | |
29455 | void *argp1 = 0 ; | |
29456 | int res1 = 0 ; | |
29457 | double val2 ; | |
29458 | int ecode2 = 0 ; | |
29459 | double val3 ; | |
29460 | int ecode3 = 0 ; | |
29461 | double val4 ; | |
29462 | int ecode4 = 0 ; | |
29463 | double val5 ; | |
29464 | int ecode5 = 0 ; | |
29465 | PyObject * obj0 = 0 ; | |
29466 | PyObject * obj1 = 0 ; | |
29467 | PyObject * obj2 = 0 ; | |
29468 | PyObject * obj3 = 0 ; | |
29469 | PyObject * obj4 = 0 ; | |
29470 | char * kwnames[] = { | |
29471 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
29472 | }; | |
29473 | ||
29474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29476 | if (!SWIG_IsOK(res1)) { | |
29477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29478 | } | |
29479 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29480 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29481 | if (!SWIG_IsOK(ecode2)) { | |
29482 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29483 | } | |
29484 | arg2 = static_cast< wxDouble >(val2); | |
29485 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29486 | if (!SWIG_IsOK(ecode3)) { | |
29487 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29488 | } | |
29489 | arg3 = static_cast< wxDouble >(val3); | |
29490 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29491 | if (!SWIG_IsOK(ecode4)) { | |
29492 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29493 | } | |
29494 | arg4 = static_cast< wxDouble >(val4); | |
29495 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29496 | if (!SWIG_IsOK(ecode5)) { | |
29497 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29498 | } | |
29499 | arg5 = static_cast< wxDouble >(val5); | |
29500 | { | |
29501 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
29502 | if (PyErr_Occurred()) SWIG_fail; | |
29503 | } | |
29504 | resultobj = SWIG_Py_Void(); | |
29505 | return resultobj; | |
29506 | fail: | |
29507 | return NULL; | |
29508 | } | |
29509 | ||
29510 | ||
29511 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29512 | PyObject *resultobj = 0; | |
29513 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29514 | size_t arg2 ; | |
29515 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
29516 | void *argp1 = 0 ; | |
29517 | int res1 = 0 ; | |
29518 | PyObject * obj0 = 0 ; | |
29519 | PyObject * obj1 = 0 ; | |
29520 | char * kwnames[] = { | |
29521 | (char *) "self",(char *) "points", NULL | |
29522 | }; | |
29523 | ||
29524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
29525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29526 | if (!SWIG_IsOK(res1)) { | |
29527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29528 | } | |
29529 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29530 | { | |
29531 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29532 | if (arg3 == NULL) SWIG_fail; | |
29533 | } | |
29534 | { | |
29535 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
29536 | if (PyErr_Occurred()) SWIG_fail; | |
29537 | } | |
29538 | resultobj = SWIG_Py_Void(); | |
29539 | { | |
29540 | if (arg3) delete [] arg3; | |
29541 | } | |
29542 | return resultobj; | |
29543 | fail: | |
29544 | { | |
29545 | if (arg3) delete [] arg3; | |
29546 | } | |
29547 | return NULL; | |
29548 | } | |
29549 | ||
29550 | ||
29551 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29552 | PyObject *resultobj = 0; | |
29553 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29554 | PyObject *arg2 = (PyObject *) 0 ; | |
29555 | PyObject *arg3 = (PyObject *) 0 ; | |
29556 | void *argp1 = 0 ; | |
29557 | int res1 = 0 ; | |
29558 | PyObject * obj0 = 0 ; | |
29559 | PyObject * obj1 = 0 ; | |
29560 | PyObject * obj2 = 0 ; | |
29561 | char * kwnames[] = { | |
29562 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
29563 | }; | |
29564 | ||
29565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29566 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29567 | if (!SWIG_IsOK(res1)) { | |
29568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29569 | } | |
29570 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29571 | arg2 = obj1; | |
29572 | arg3 = obj2; | |
29573 | { | |
29574 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
29575 | if (PyErr_Occurred()) SWIG_fail; | |
29576 | } | |
29577 | resultobj = SWIG_Py_Void(); | |
29578 | return resultobj; | |
29579 | fail: | |
29580 | return NULL; | |
29581 | } | |
29582 | ||
29583 | ||
29584 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29585 | PyObject *resultobj = 0; | |
29586 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29587 | size_t arg2 ; | |
29588 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
5c8c7dd3 | 29589 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
29590 | void *argp1 = 0 ; |
29591 | int res1 = 0 ; | |
29592 | int val4 ; | |
29593 | int ecode4 = 0 ; | |
29594 | PyObject * obj0 = 0 ; | |
29595 | PyObject * obj1 = 0 ; | |
29596 | PyObject * obj2 = 0 ; | |
29597 | char * kwnames[] = { | |
29598 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
29599 | }; | |
29600 | ||
29601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29603 | if (!SWIG_IsOK(res1)) { | |
29604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29605 | } | |
29606 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29607 | { | |
29608 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29609 | if (arg3 == NULL) SWIG_fail; | |
29610 | } | |
29611 | if (obj2) { | |
29612 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
29613 | if (!SWIG_IsOK(ecode4)) { | |
29614 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
29615 | } | |
29616 | arg4 = static_cast< int >(val4); | |
29617 | } | |
29618 | { | |
29619 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
29620 | if (PyErr_Occurred()) SWIG_fail; | |
29621 | } | |
29622 | resultobj = SWIG_Py_Void(); | |
29623 | { | |
29624 | if (arg3) delete [] arg3; | |
29625 | } | |
29626 | return resultobj; | |
29627 | fail: | |
29628 | { | |
29629 | if (arg3) delete [] arg3; | |
29630 | } | |
29631 | return NULL; | |
29632 | } | |
29633 | ||
29634 | ||
29635 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29636 | PyObject *resultobj = 0; | |
29637 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29638 | wxDouble arg2 ; | |
29639 | wxDouble arg3 ; | |
29640 | wxDouble arg4 ; | |
29641 | wxDouble arg5 ; | |
29642 | void *argp1 = 0 ; | |
29643 | int res1 = 0 ; | |
29644 | double val2 ; | |
29645 | int ecode2 = 0 ; | |
29646 | double val3 ; | |
29647 | int ecode3 = 0 ; | |
29648 | double val4 ; | |
29649 | int ecode4 = 0 ; | |
29650 | double val5 ; | |
29651 | int ecode5 = 0 ; | |
29652 | PyObject * obj0 = 0 ; | |
29653 | PyObject * obj1 = 0 ; | |
29654 | PyObject * obj2 = 0 ; | |
29655 | PyObject * obj3 = 0 ; | |
29656 | PyObject * obj4 = 0 ; | |
29657 | char * kwnames[] = { | |
29658 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29659 | }; | |
29660 | ||
29661 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29662 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29663 | if (!SWIG_IsOK(res1)) { | |
29664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29665 | } | |
29666 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29667 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29668 | if (!SWIG_IsOK(ecode2)) { | |
29669 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29670 | } | |
29671 | arg2 = static_cast< wxDouble >(val2); | |
29672 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29673 | if (!SWIG_IsOK(ecode3)) { | |
29674 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29675 | } | |
29676 | arg3 = static_cast< wxDouble >(val3); | |
29677 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29678 | if (!SWIG_IsOK(ecode4)) { | |
29679 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29680 | } | |
29681 | arg4 = static_cast< wxDouble >(val4); | |
29682 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29683 | if (!SWIG_IsOK(ecode5)) { | |
29684 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29685 | } | |
29686 | arg5 = static_cast< wxDouble >(val5); | |
29687 | { | |
29688 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
29689 | if (PyErr_Occurred()) SWIG_fail; | |
29690 | } | |
29691 | resultobj = SWIG_Py_Void(); | |
29692 | return resultobj; | |
29693 | fail: | |
29694 | return NULL; | |
29695 | } | |
29696 | ||
29697 | ||
29698 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29699 | PyObject *resultobj = 0; | |
29700 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29701 | wxDouble arg2 ; | |
29702 | wxDouble arg3 ; | |
29703 | wxDouble arg4 ; | |
29704 | wxDouble arg5 ; | |
29705 | void *argp1 = 0 ; | |
29706 | int res1 = 0 ; | |
29707 | double val2 ; | |
29708 | int ecode2 = 0 ; | |
29709 | double val3 ; | |
29710 | int ecode3 = 0 ; | |
29711 | double val4 ; | |
29712 | int ecode4 = 0 ; | |
29713 | double val5 ; | |
29714 | int ecode5 = 0 ; | |
72ef6efb RD |
29715 | PyObject * obj0 = 0 ; |
29716 | PyObject * obj1 = 0 ; | |
29717 | PyObject * obj2 = 0 ; | |
29718 | PyObject * obj3 = 0 ; | |
29719 | PyObject * obj4 = 0 ; | |
72ef6efb | 29720 | char * kwnames[] = { |
70d7cb34 | 29721 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
29722 | }; |
29723 | ||
70d7cb34 | 29724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
29725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29726 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29728 | } |
29729 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29730 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
29731 | if (!SWIG_IsOK(ecode2)) { | |
29732 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29733 | } | |
29734 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
29735 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
29736 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29737 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29738 | } |
29739 | arg3 = static_cast< wxDouble >(val3); | |
29740 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29741 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29742 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29743 | } |
29744 | arg4 = static_cast< wxDouble >(val4); | |
29745 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29746 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29747 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29748 | } |
29749 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 29750 | { |
70d7cb34 | 29751 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
29752 | if (PyErr_Occurred()) SWIG_fail; |
29753 | } | |
29754 | resultobj = SWIG_Py_Void(); | |
29755 | return resultobj; | |
29756 | fail: | |
29757 | return NULL; | |
29758 | } | |
29759 | ||
29760 | ||
70d7cb34 | 29761 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29762 | PyObject *resultobj = 0; |
29763 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29764 | wxDouble arg2 ; | |
29765 | wxDouble arg3 ; | |
29766 | wxDouble arg4 ; | |
29767 | wxDouble arg5 ; | |
70d7cb34 | 29768 | wxDouble arg6 ; |
72ef6efb RD |
29769 | void *argp1 = 0 ; |
29770 | int res1 = 0 ; | |
29771 | double val2 ; | |
29772 | int ecode2 = 0 ; | |
29773 | double val3 ; | |
29774 | int ecode3 = 0 ; | |
29775 | double val4 ; | |
29776 | int ecode4 = 0 ; | |
29777 | double val5 ; | |
29778 | int ecode5 = 0 ; | |
70d7cb34 RD |
29779 | double val6 ; |
29780 | int ecode6 = 0 ; | |
72ef6efb RD |
29781 | PyObject * obj0 = 0 ; |
29782 | PyObject * obj1 = 0 ; | |
29783 | PyObject * obj2 = 0 ; | |
29784 | PyObject * obj3 = 0 ; | |
29785 | PyObject * obj4 = 0 ; | |
70d7cb34 | 29786 | PyObject * obj5 = 0 ; |
72ef6efb | 29787 | char * kwnames[] = { |
70d7cb34 | 29788 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
29789 | }; |
29790 | ||
70d7cb34 | 29791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
29792 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29793 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29795 | } |
29796 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29797 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29798 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 29799 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
29800 | } |
29801 | arg2 = static_cast< wxDouble >(val2); | |
29802 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29803 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29804 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29805 | } |
29806 | arg3 = static_cast< wxDouble >(val3); | |
29807 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29808 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29809 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29810 | } |
29811 | arg4 = static_cast< wxDouble >(val4); | |
29812 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29813 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29814 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29815 | } |
29816 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
29817 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
29818 | if (!SWIG_IsOK(ecode6)) { | |
29819 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29820 | } | |
29821 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 29822 | { |
70d7cb34 | 29823 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29824 | if (PyErr_Occurred()) SWIG_fail; |
29825 | } | |
29826 | resultobj = SWIG_Py_Void(); | |
29827 | return resultobj; | |
29828 | fail: | |
29829 | return NULL; | |
29830 | } | |
29831 | ||
29832 | ||
70d7cb34 | 29833 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
29834 | PyObject *resultobj = 0; |
29835 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29836 | bool result; |
72ef6efb RD |
29837 | void *argp1 = 0 ; |
29838 | int res1 = 0 ; | |
70d7cb34 | 29839 | PyObject *swig_obj[1] ; |
72ef6efb | 29840 | |
70d7cb34 RD |
29841 | if (!args) SWIG_fail; |
29842 | swig_obj[0] = args; | |
29843 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29844 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29846 | } |
29847 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 29848 | { |
70d7cb34 RD |
29849 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
29850 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 29851 | } |
72ef6efb | 29852 | { |
70d7cb34 RD |
29853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
29854 | } | |
29855 | return resultobj; | |
29856 | fail: | |
29857 | return NULL; | |
29858 | } | |
29859 | ||
29860 | ||
29861 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29862 | PyObject *obj; | |
29863 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29864 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
29865 | return SWIG_Py_Void(); | |
29866 | } | |
29867 | ||
29868 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29869 | PyObject *resultobj = 0; | |
29870 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29871 | void *argp1 = 0 ; | |
29872 | int res1 = 0 ; | |
29873 | PyObject *swig_obj[1] ; | |
29874 | ||
29875 | if (!args) SWIG_fail; | |
29876 | swig_obj[0] = args; | |
29877 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
29878 | if (!SWIG_IsOK(res1)) { | |
29879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29880 | } | |
29881 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29882 | { | |
29883 | delete arg1; | |
29884 | ||
72ef6efb RD |
29885 | if (PyErr_Occurred()) SWIG_fail; |
29886 | } | |
29887 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
29888 | return resultobj; |
29889 | fail: | |
29890 | return NULL; | |
29891 | } | |
29892 | ||
29893 | ||
29894 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29895 | PyObject *resultobj = 0; | |
29896 | wxGraphicsRenderer *result = 0 ; | |
29897 | ||
29898 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 29899 | { |
70d7cb34 RD |
29900 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
29901 | if (PyErr_Occurred()) SWIG_fail; | |
29902 | } | |
29903 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29904 | return resultobj; | |
29905 | fail: | |
29906 | return NULL; | |
29907 | } | |
29908 | ||
29909 | ||
29910 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29911 | PyObject *resultobj = 0; | |
29912 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29913 | wxWindowDC *arg2 = 0 ; | |
29914 | wxGraphicsContext *result = 0 ; | |
29915 | void *argp1 = 0 ; | |
29916 | int res1 = 0 ; | |
29917 | void *argp2 = 0 ; | |
29918 | int res2 = 0 ; | |
29919 | ||
29920 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29922 | if (!SWIG_IsOK(res1)) { | |
29923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29924 | } | |
29925 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29926 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
29927 | if (!SWIG_IsOK(res2)) { | |
29928 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29929 | } | |
29930 | if (!argp2) { | |
29931 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29932 | } | |
29933 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
29934 | { | |
29935 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
29936 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29937 | } |
70d7cb34 | 29938 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29939 | return resultobj; |
29940 | fail: | |
70d7cb34 RD |
29941 | return NULL; |
29942 | } | |
29943 | ||
29944 | ||
29945 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29946 | PyObject *resultobj = 0; | |
29947 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29948 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29949 | wxGraphicsContext *result = 0 ; | |
29950 | void *argp1 = 0 ; | |
29951 | int res1 = 0 ; | |
29952 | void *argp2 = 0 ; | |
29953 | int res2 = 0 ; | |
29954 | ||
29955 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29957 | if (!SWIG_IsOK(res1)) { | |
29958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29959 | } | |
29960 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29961 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29962 | if (!SWIG_IsOK(res2)) { | |
29963 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29964 | } | |
29965 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 29966 | { |
70d7cb34 RD |
29967 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
29968 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29969 | } |
70d7cb34 RD |
29970 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
29971 | return resultobj; | |
29972 | fail: | |
72ef6efb RD |
29973 | return NULL; |
29974 | } | |
29975 | ||
29976 | ||
70d7cb34 RD |
29977 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
29978 | int argc; | |
29979 | PyObject *argv[3]; | |
29980 | ||
29981 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
29982 | --argc; | |
29983 | if (argc == 2) { | |
29984 | int _v = 0; | |
29985 | { | |
29986 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
29987 | _v = SWIG_CheckState(res); | |
29988 | } | |
29989 | if (!_v) goto check_1; | |
29990 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
29991 | } | |
29992 | check_1: | |
29993 | ||
29994 | if (argc == 2) { | |
29995 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
29996 | } | |
29997 | ||
29998 | fail: | |
29999 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
30000 | return NULL; | |
30001 | } | |
30002 | ||
30003 | ||
f89238b9 RD |
30004 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30005 | PyObject *resultobj = 0; | |
30006 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30007 | wxGraphicsContext *result = 0 ; | |
30008 | void *argp1 = 0 ; | |
30009 | int res1 = 0 ; | |
30010 | PyObject *swig_obj[1] ; | |
30011 | ||
30012 | if (!args) SWIG_fail; | |
30013 | swig_obj[0] = args; | |
30014 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30015 | if (!SWIG_IsOK(res1)) { | |
30016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30017 | } | |
30018 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30019 | { | |
30020 | result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext(); | |
30021 | if (PyErr_Occurred()) SWIG_fail; | |
30022 | } | |
30023 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30024 | return resultobj; | |
30025 | fail: | |
30026 | return NULL; | |
30027 | } | |
30028 | ||
30029 | ||
70d7cb34 | 30030 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30031 | PyObject *resultobj = 0; |
70d7cb34 RD |
30032 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30033 | void *arg2 = (void *) 0 ; | |
30034 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30035 | void *argp1 = 0 ; |
30036 | int res1 = 0 ; | |
70d7cb34 | 30037 | int res2 ; |
b39fe951 RD |
30038 | PyObject * obj0 = 0 ; |
30039 | PyObject * obj1 = 0 ; | |
b39fe951 | 30040 | char * kwnames[] = { |
70d7cb34 | 30041 | (char *) "self",(char *) "context", NULL |
b39fe951 | 30042 | }; |
72ef6efb | 30043 | |
70d7cb34 RD |
30044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
30045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30046 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30048 | } | |
30049 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30050 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30051 | if (!SWIG_IsOK(res2)) { | |
30052 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 30053 | } |
72ef6efb | 30054 | { |
70d7cb34 | 30055 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
30056 | if (PyErr_Occurred()) SWIG_fail; |
30057 | } | |
70d7cb34 | 30058 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30059 | return resultobj; |
30060 | fail: | |
30061 | return NULL; | |
30062 | } | |
30063 | ||
30064 | ||
70d7cb34 | 30065 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30066 | PyObject *resultobj = 0; |
70d7cb34 RD |
30067 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30068 | void *arg2 = (void *) 0 ; | |
30069 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30070 | void *argp1 = 0 ; |
30071 | int res1 = 0 ; | |
70d7cb34 | 30072 | int res2 ; |
72ef6efb RD |
30073 | PyObject * obj0 = 0 ; |
30074 | PyObject * obj1 = 0 ; | |
72ef6efb | 30075 | char * kwnames[] = { |
70d7cb34 | 30076 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
30077 | }; |
30078 | ||
70d7cb34 RD |
30079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail; |
30080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30081 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30083 | } |
70d7cb34 RD |
30084 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
30085 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30086 | if (!SWIG_IsOK(res2)) { | |
30087 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
30088 | } |
30089 | { | |
70d7cb34 | 30090 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
30091 | if (PyErr_Occurred()) SWIG_fail; |
30092 | } | |
70d7cb34 | 30093 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30094 | return resultobj; |
30095 | fail: | |
70d7cb34 RD |
30096 | return NULL; |
30097 | } | |
30098 | ||
30099 | ||
30100 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30101 | PyObject *resultobj = 0; | |
30102 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 30103 | wxGraphicsPath result; |
70d7cb34 RD |
30104 | void *argp1 = 0 ; |
30105 | int res1 = 0 ; | |
30106 | PyObject *swig_obj[1] ; | |
30107 | ||
30108 | if (!args) SWIG_fail; | |
30109 | swig_obj[0] = args; | |
30110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30111 | if (!SWIG_IsOK(res1)) { | |
30112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30113 | } | |
30114 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 30115 | { |
5c8c7dd3 | 30116 | result = (arg1)->CreatePath(); |
70d7cb34 | 30117 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 30118 | } |
5c8c7dd3 | 30119 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
30120 | return resultobj; |
30121 | fail: | |
72ef6efb RD |
30122 | return NULL; |
30123 | } | |
30124 | ||
30125 | ||
70d7cb34 | 30126 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30127 | PyObject *resultobj = 0; |
70d7cb34 RD |
30128 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30129 | wxDouble arg2 = (wxDouble) 1.0 ; | |
30130 | wxDouble arg3 = (wxDouble) 0.0 ; | |
30131 | wxDouble arg4 = (wxDouble) 0.0 ; | |
30132 | wxDouble arg5 = (wxDouble) 1.0 ; | |
30133 | wxDouble arg6 = (wxDouble) 0.0 ; | |
30134 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 30135 | wxGraphicsMatrix result; |
72ef6efb RD |
30136 | void *argp1 = 0 ; |
30137 | int res1 = 0 ; | |
30138 | double val2 ; | |
30139 | int ecode2 = 0 ; | |
30140 | double val3 ; | |
30141 | int ecode3 = 0 ; | |
30142 | double val4 ; | |
30143 | int ecode4 = 0 ; | |
30144 | double val5 ; | |
30145 | int ecode5 = 0 ; | |
70d7cb34 RD |
30146 | double val6 ; |
30147 | int ecode6 = 0 ; | |
30148 | double val7 ; | |
30149 | int ecode7 = 0 ; | |
72ef6efb RD |
30150 | PyObject * obj0 = 0 ; |
30151 | PyObject * obj1 = 0 ; | |
30152 | PyObject * obj2 = 0 ; | |
30153 | PyObject * obj3 = 0 ; | |
30154 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30155 | PyObject * obj5 = 0 ; |
30156 | PyObject * obj6 = 0 ; | |
72ef6efb | 30157 | char * kwnames[] = { |
70d7cb34 | 30158 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
30159 | }; |
30160 | ||
70d7cb34 RD |
30161 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30163 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30165 | } | |
30166 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30167 | if (obj1) { | |
30168 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30169 | if (!SWIG_IsOK(ecode2)) { | |
30170 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30171 | } | |
30172 | arg2 = static_cast< wxDouble >(val2); | |
30173 | } | |
30174 | if (obj2) { | |
30175 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30176 | if (!SWIG_IsOK(ecode3)) { | |
30177 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30178 | } | |
30179 | arg3 = static_cast< wxDouble >(val3); | |
30180 | } | |
30181 | if (obj3) { | |
30182 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30183 | if (!SWIG_IsOK(ecode4)) { | |
30184 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30185 | } | |
30186 | arg4 = static_cast< wxDouble >(val4); | |
30187 | } | |
30188 | if (obj4) { | |
30189 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30190 | if (!SWIG_IsOK(ecode5)) { | |
30191 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30192 | } | |
30193 | arg5 = static_cast< wxDouble >(val5); | |
30194 | } | |
30195 | if (obj5) { | |
30196 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30197 | if (!SWIG_IsOK(ecode6)) { | |
30198 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30199 | } | |
30200 | arg6 = static_cast< wxDouble >(val6); | |
30201 | } | |
30202 | if (obj6) { | |
30203 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
30204 | if (!SWIG_IsOK(ecode7)) { | |
30205 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
30206 | } | |
30207 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 30208 | } |
72ef6efb | 30209 | { |
5c8c7dd3 | 30210 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
30211 | if (PyErr_Occurred()) SWIG_fail; |
30212 | } | |
5c8c7dd3 | 30213 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30214 | return resultobj; |
30215 | fail: | |
30216 | return NULL; | |
30217 | } | |
30218 | ||
30219 | ||
70d7cb34 | 30220 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30221 | PyObject *resultobj = 0; |
70d7cb34 RD |
30222 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30223 | wxPen *arg2 = 0 ; | |
30224 | wxGraphicsPen result; | |
30225 | void *argp1 = 0 ; | |
30226 | int res1 = 0 ; | |
30227 | void *argp2 = 0 ; | |
30228 | int res2 = 0 ; | |
30229 | PyObject * obj0 = 0 ; | |
30230 | PyObject * obj1 = 0 ; | |
30231 | char * kwnames[] = { | |
30232 | (char *) "self",(char *) "pen", NULL | |
30233 | }; | |
30234 | ||
30235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
30236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30237 | if (!SWIG_IsOK(res1)) { | |
30238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30239 | } | |
30240 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30241 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
30242 | if (!SWIG_IsOK(res2)) { | |
30243 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30244 | } | |
30245 | if (!argp2) { | |
30246 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30247 | } | |
30248 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
30249 | { | |
30250 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
30251 | if (PyErr_Occurred()) SWIG_fail; | |
30252 | } | |
30253 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
30254 | return resultobj; | |
30255 | fail: | |
30256 | return NULL; | |
30257 | } | |
30258 | ||
30259 | ||
30260 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30261 | PyObject *resultobj = 0; | |
30262 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30263 | wxBrush *arg2 = 0 ; | |
30264 | wxGraphicsBrush result; | |
30265 | void *argp1 = 0 ; | |
30266 | int res1 = 0 ; | |
30267 | void *argp2 = 0 ; | |
30268 | int res2 = 0 ; | |
30269 | PyObject * obj0 = 0 ; | |
30270 | PyObject * obj1 = 0 ; | |
30271 | char * kwnames[] = { | |
30272 | (char *) "self",(char *) "brush", NULL | |
30273 | }; | |
30274 | ||
30275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
30276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30277 | if (!SWIG_IsOK(res1)) { | |
30278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30279 | } | |
30280 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30281 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
30282 | if (!SWIG_IsOK(res2)) { | |
30283 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30284 | } | |
30285 | if (!argp2) { | |
30286 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30287 | } | |
30288 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
30289 | { | |
30290 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
30291 | if (PyErr_Occurred()) SWIG_fail; | |
30292 | } | |
30293 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
30294 | return resultobj; | |
30295 | fail: | |
30296 | return NULL; | |
30297 | } | |
30298 | ||
30299 | ||
30300 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30301 | PyObject *resultobj = 0; | |
30302 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
30303 | wxDouble arg2 ; |
30304 | wxDouble arg3 ; | |
30305 | wxDouble arg4 ; | |
30306 | wxDouble arg5 ; | |
70d7cb34 RD |
30307 | wxColour *arg6 = 0 ; |
30308 | wxColour *arg7 = 0 ; | |
30309 | wxGraphicsBrush result; | |
72ef6efb RD |
30310 | void *argp1 = 0 ; |
30311 | int res1 = 0 ; | |
30312 | double val2 ; | |
30313 | int ecode2 = 0 ; | |
30314 | double val3 ; | |
30315 | int ecode3 = 0 ; | |
30316 | double val4 ; | |
30317 | int ecode4 = 0 ; | |
30318 | double val5 ; | |
30319 | int ecode5 = 0 ; | |
70d7cb34 RD |
30320 | wxColour temp6 ; |
30321 | wxColour temp7 ; | |
72ef6efb RD |
30322 | PyObject * obj0 = 0 ; |
30323 | PyObject * obj1 = 0 ; | |
30324 | PyObject * obj2 = 0 ; | |
30325 | PyObject * obj3 = 0 ; | |
30326 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30327 | PyObject * obj5 = 0 ; |
30328 | PyObject * obj6 = 0 ; | |
72ef6efb | 30329 | char * kwnames[] = { |
70d7cb34 | 30330 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
30331 | }; |
30332 | ||
70d7cb34 RD |
30333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30335 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30337 | } |
70d7cb34 | 30338 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30339 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30340 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30342 | } |
30343 | arg2 = static_cast< wxDouble >(val2); | |
30344 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30345 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30346 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30347 | } |
30348 | arg3 = static_cast< wxDouble >(val3); | |
30349 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30350 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30351 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30352 | } |
30353 | arg4 = static_cast< wxDouble >(val4); | |
30354 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30355 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30356 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30357 | } |
30358 | arg5 = static_cast< wxDouble >(val5); | |
30359 | { | |
70d7cb34 RD |
30360 | arg6 = &temp6; |
30361 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
30362 | } | |
30363 | { | |
30364 | arg7 = &temp7; | |
30365 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30366 | } | |
30367 | { | |
30368 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
30369 | if (PyErr_Occurred()) SWIG_fail; |
30370 | } | |
70d7cb34 | 30371 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30372 | return resultobj; |
30373 | fail: | |
30374 | return NULL; | |
30375 | } | |
30376 | ||
30377 | ||
70d7cb34 | 30378 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30379 | PyObject *resultobj = 0; |
70d7cb34 | 30380 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
30381 | wxDouble arg2 ; |
30382 | wxDouble arg3 ; | |
30383 | wxDouble arg4 ; | |
30384 | wxDouble arg5 ; | |
30385 | wxDouble arg6 ; | |
70d7cb34 RD |
30386 | wxColour *arg7 = 0 ; |
30387 | wxColour *arg8 = 0 ; | |
30388 | wxGraphicsBrush result; | |
72ef6efb RD |
30389 | void *argp1 = 0 ; |
30390 | int res1 = 0 ; | |
30391 | double val2 ; | |
30392 | int ecode2 = 0 ; | |
30393 | double val3 ; | |
30394 | int ecode3 = 0 ; | |
30395 | double val4 ; | |
30396 | int ecode4 = 0 ; | |
30397 | double val5 ; | |
30398 | int ecode5 = 0 ; | |
30399 | double val6 ; | |
30400 | int ecode6 = 0 ; | |
70d7cb34 RD |
30401 | wxColour temp7 ; |
30402 | wxColour temp8 ; | |
72ef6efb RD |
30403 | PyObject * obj0 = 0 ; |
30404 | PyObject * obj1 = 0 ; | |
30405 | PyObject * obj2 = 0 ; | |
30406 | PyObject * obj3 = 0 ; | |
30407 | PyObject * obj4 = 0 ; | |
30408 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
30409 | PyObject * obj6 = 0 ; |
30410 | PyObject * obj7 = 0 ; | |
72ef6efb | 30411 | char * kwnames[] = { |
70d7cb34 | 30412 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
30413 | }; |
30414 | ||
70d7cb34 RD |
30415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
30416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30417 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30419 | } |
70d7cb34 | 30420 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30421 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30422 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30423 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30424 | } |
30425 | arg2 = static_cast< wxDouble >(val2); | |
30426 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30427 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30428 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30429 | } |
30430 | arg3 = static_cast< wxDouble >(val3); | |
30431 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30432 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30433 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30434 | } |
30435 | arg4 = static_cast< wxDouble >(val4); | |
30436 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30437 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30438 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30439 | } |
30440 | arg5 = static_cast< wxDouble >(val5); | |
30441 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30442 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 30443 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
30444 | } |
30445 | arg6 = static_cast< wxDouble >(val6); | |
30446 | { | |
70d7cb34 RD |
30447 | arg7 = &temp7; |
30448 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30449 | } | |
30450 | { | |
30451 | arg8 = &temp8; | |
30452 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
30453 | } | |
30454 | { | |
30455 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
30456 | if (PyErr_Occurred()) SWIG_fail; |
30457 | } | |
70d7cb34 | 30458 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30459 | return resultobj; |
30460 | fail: | |
30461 | return NULL; | |
30462 | } | |
30463 | ||
30464 | ||
70d7cb34 RD |
30465 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30466 | PyObject *resultobj = 0; | |
30467 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30468 | wxFont *arg2 = 0 ; | |
30469 | wxColour const &arg3_defvalue = *wxBLACK ; | |
30470 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
30471 | wxGraphicsFont result; | |
30472 | void *argp1 = 0 ; | |
30473 | int res1 = 0 ; | |
30474 | void *argp2 = 0 ; | |
30475 | int res2 = 0 ; | |
30476 | wxColour temp3 ; | |
30477 | PyObject * obj0 = 0 ; | |
30478 | PyObject * obj1 = 0 ; | |
30479 | PyObject * obj2 = 0 ; | |
30480 | char * kwnames[] = { | |
30481 | (char *) "self",(char *) "font",(char *) "col", NULL | |
30482 | }; | |
30483 | ||
30484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30486 | if (!SWIG_IsOK(res1)) { | |
30487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30488 | } | |
30489 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30490 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
30491 | if (!SWIG_IsOK(res2)) { | |
30492 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30493 | } | |
30494 | if (!argp2) { | |
30495 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30496 | } | |
30497 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
30498 | if (obj2) { | |
30499 | { | |
30500 | arg3 = &temp3; | |
30501 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30502 | } | |
30503 | } | |
30504 | { | |
30505 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
30506 | if (PyErr_Occurred()) SWIG_fail; | |
30507 | } | |
30508 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
30509 | return resultobj; | |
30510 | fail: | |
30511 | return NULL; | |
30512 | } | |
30513 | ||
30514 | ||
30515 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
30516 | PyObject *obj; |
30517 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 30518 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
30519 | return SWIG_Py_Void(); |
30520 | } | |
30521 | ||
48a0c021 | 30522 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
30523 | PyObject *resultobj = 0; |
30524 | wxWindowDC *arg1 = 0 ; | |
30525 | wxGCDC *result = 0 ; | |
30526 | void *argp1 = 0 ; | |
30527 | int res1 = 0 ; | |
72ef6efb | 30528 | |
48a0c021 RD |
30529 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; |
30530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
72ef6efb RD |
30531 | if (!SWIG_IsOK(res1)) { |
30532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30533 | } | |
30534 | if (!argp1) { | |
30535 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30536 | } | |
30537 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
30538 | { | |
30539 | if (!wxPyCheckForApp()) SWIG_fail; | |
30540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30541 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
30542 | wxPyEndAllowThreads(__tstate); | |
30543 | if (PyErr_Occurred()) SWIG_fail; | |
30544 | } | |
30545 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
30546 | return resultobj; | |
30547 | fail: | |
30548 | return NULL; | |
30549 | } | |
30550 | ||
30551 | ||
48a0c021 RD |
30552 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
30553 | PyObject *resultobj = 0; | |
30554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30555 | wxGCDC *result = 0 ; | |
30556 | void *argp1 = 0 ; | |
30557 | int res1 = 0 ; | |
30558 | ||
30559 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
30560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30561 | if (!SWIG_IsOK(res1)) { | |
30562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
30563 | } | |
30564 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
30565 | { | |
30566 | if (!wxPyCheckForApp()) SWIG_fail; | |
30567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30568 | result = (wxGCDC *)new wxGCDC(arg1); | |
30569 | wxPyEndAllowThreads(__tstate); | |
30570 | if (PyErr_Occurred()) SWIG_fail; | |
30571 | } | |
30572 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
30573 | return resultobj; | |
30574 | fail: | |
30575 | return NULL; | |
30576 | } | |
30577 | ||
30578 | ||
30579 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) { | |
30580 | int argc; | |
30581 | PyObject *argv[2]; | |
30582 | ||
30583 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail; | |
30584 | --argc; | |
30585 | if (argc == 1) { | |
30586 | int _v = 0; | |
30587 | { | |
30588 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
30589 | _v = SWIG_CheckState(res); | |
30590 | } | |
30591 | if (!_v) goto check_1; | |
30592 | return _wrap_new_GCDC__SWIG_0(self, argc, argv); | |
30593 | } | |
30594 | check_1: | |
30595 | ||
30596 | if (argc == 1) { | |
30597 | return _wrap_new_GCDC__SWIG_1(self, argc, argv); | |
30598 | } | |
30599 | ||
30600 | fail: | |
30601 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'"); | |
30602 | return NULL; | |
30603 | } | |
30604 | ||
30605 | ||
72ef6efb RD |
30606 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30607 | PyObject *resultobj = 0; | |
30608 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30609 | void *argp1 = 0 ; | |
30610 | int res1 = 0 ; | |
30611 | PyObject *swig_obj[1] ; | |
30612 | ||
30613 | if (!args) SWIG_fail; | |
30614 | swig_obj[0] = args; | |
30615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
30616 | if (!SWIG_IsOK(res1)) { | |
30617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30618 | } | |
30619 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30620 | { | |
72ef6efb RD |
30621 | delete arg1; |
30622 | ||
72ef6efb RD |
30623 | if (PyErr_Occurred()) SWIG_fail; |
30624 | } | |
30625 | resultobj = SWIG_Py_Void(); | |
30626 | return resultobj; | |
30627 | fail: | |
30628 | return NULL; | |
30629 | } | |
30630 | ||
30631 | ||
0a27f394 | 30632 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30633 | PyObject *resultobj = 0; |
30634 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30635 | wxGraphicsContext *result = 0 ; | |
30636 | void *argp1 = 0 ; | |
30637 | int res1 = 0 ; | |
30638 | PyObject *swig_obj[1] ; | |
30639 | ||
30640 | if (!args) SWIG_fail; | |
30641 | swig_obj[0] = args; | |
30642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30643 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 30644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
30645 | } |
30646 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30647 | { | |
0a27f394 | 30648 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
30649 | if (PyErr_Occurred()) SWIG_fail; |
30650 | } | |
30651 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30652 | return resultobj; | |
30653 | fail: | |
30654 | return NULL; | |
30655 | } | |
30656 | ||
30657 | ||
0a27f394 RD |
30658 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30659 | PyObject *resultobj = 0; | |
30660 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30661 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
30662 | void *argp1 = 0 ; | |
30663 | int res1 = 0 ; | |
30664 | void *argp2 = 0 ; | |
30665 | int res2 = 0 ; | |
30666 | PyObject * obj0 = 0 ; | |
30667 | PyObject * obj1 = 0 ; | |
30668 | char * kwnames[] = { | |
30669 | (char *) "self",(char *) "ctx", NULL | |
30670 | }; | |
30671 | ||
30672 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
30673 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30674 | if (!SWIG_IsOK(res1)) { | |
30675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30676 | } | |
30677 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30678 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30679 | if (!SWIG_IsOK(res2)) { | |
30680 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
30681 | } | |
30682 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
30683 | { | |
30684 | (arg1)->SetGraphicsContext(arg2); | |
30685 | if (PyErr_Occurred()) SWIG_fail; | |
30686 | } | |
30687 | resultobj = SWIG_Py_Void(); | |
30688 | return resultobj; | |
30689 | fail: | |
30690 | return NULL; | |
30691 | } | |
30692 | ||
30693 | ||
72ef6efb RD |
30694 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30695 | PyObject *obj; | |
30696 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30697 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
30698 | return SWIG_Py_Void(); | |
30699 | } | |
30700 | ||
30701 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30702 | return SWIG_Python_InitShadowInstance(args); | |
30703 | } | |
30704 | ||
b39fe951 RD |
30705 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30706 | PyObject *resultobj = 0; | |
30707 | wxOverlay *result = 0 ; | |
30708 | ||
30709 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
30710 | { | |
30711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30712 | result = (wxOverlay *)new wxOverlay(); | |
30713 | wxPyEndAllowThreads(__tstate); | |
30714 | if (PyErr_Occurred()) SWIG_fail; | |
30715 | } | |
30716 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
30717 | return resultobj; | |
30718 | fail: | |
30719 | return NULL; | |
30720 | } | |
30721 | ||
30722 | ||
30723 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30724 | PyObject *resultobj = 0; | |
30725 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30726 | void *argp1 = 0 ; | |
30727 | int res1 = 0 ; | |
30728 | PyObject *swig_obj[1] ; | |
30729 | ||
30730 | if (!args) SWIG_fail; | |
30731 | swig_obj[0] = args; | |
30732 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30733 | if (!SWIG_IsOK(res1)) { | |
30734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30735 | } | |
30736 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30737 | { | |
30738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30739 | delete arg1; | |
30740 | ||
30741 | wxPyEndAllowThreads(__tstate); | |
30742 | if (PyErr_Occurred()) SWIG_fail; | |
30743 | } | |
30744 | resultobj = SWIG_Py_Void(); | |
30745 | return resultobj; | |
30746 | fail: | |
30747 | return NULL; | |
30748 | } | |
30749 | ||
30750 | ||
30751 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30752 | PyObject *resultobj = 0; | |
30753 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30754 | void *argp1 = 0 ; | |
30755 | int res1 = 0 ; | |
30756 | PyObject *swig_obj[1] ; | |
30757 | ||
30758 | if (!args) SWIG_fail; | |
30759 | swig_obj[0] = args; | |
30760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
30761 | if (!SWIG_IsOK(res1)) { | |
30762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30763 | } | |
30764 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30765 | { | |
30766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30767 | (arg1)->Reset(); | |
30768 | wxPyEndAllowThreads(__tstate); | |
30769 | if (PyErr_Occurred()) SWIG_fail; | |
30770 | } | |
30771 | resultobj = SWIG_Py_Void(); | |
30772 | return resultobj; | |
30773 | fail: | |
30774 | return NULL; | |
30775 | } | |
30776 | ||
30777 | ||
30778 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30779 | PyObject *obj; | |
30780 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30781 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
30782 | return SWIG_Py_Void(); | |
30783 | } | |
30784 | ||
30785 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30786 | return SWIG_Python_InitShadowInstance(args); | |
30787 | } | |
30788 | ||
30789 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30790 | PyObject *resultobj = 0; | |
30791 | wxOverlay *arg1 = 0 ; | |
30792 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30793 | int arg3 ; | |
30794 | int arg4 ; | |
30795 | int arg5 ; | |
30796 | int arg6 ; | |
30797 | wxDCOverlay *result = 0 ; | |
30798 | void *argp1 = 0 ; | |
30799 | int res1 = 0 ; | |
30800 | void *argp2 = 0 ; | |
30801 | int res2 = 0 ; | |
30802 | int val3 ; | |
30803 | int ecode3 = 0 ; | |
30804 | int val4 ; | |
30805 | int ecode4 = 0 ; | |
30806 | int val5 ; | |
30807 | int ecode5 = 0 ; | |
30808 | int val6 ; | |
30809 | int ecode6 = 0 ; | |
30810 | ||
30811 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
30812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30813 | if (!SWIG_IsOK(res1)) { | |
30814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30815 | } | |
30816 | if (!argp1) { | |
30817 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30818 | } | |
30819 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30820 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30821 | if (!SWIG_IsOK(res2)) { | |
30822 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30823 | } | |
30824 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30825 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
30826 | if (!SWIG_IsOK(ecode3)) { | |
30827 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
30828 | } | |
30829 | arg3 = static_cast< int >(val3); | |
30830 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
30831 | if (!SWIG_IsOK(ecode4)) { | |
30832 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
30833 | } | |
30834 | arg4 = static_cast< int >(val4); | |
30835 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
30836 | if (!SWIG_IsOK(ecode5)) { | |
30837 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
30838 | } | |
30839 | arg5 = static_cast< int >(val5); | |
30840 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
30841 | if (!SWIG_IsOK(ecode6)) { | |
30842 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
30843 | } | |
30844 | arg6 = static_cast< int >(val6); | |
30845 | { | |
30846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30847 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
30848 | wxPyEndAllowThreads(__tstate); | |
30849 | if (PyErr_Occurred()) SWIG_fail; | |
30850 | } | |
30851 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30852 | return resultobj; | |
30853 | fail: | |
30854 | return NULL; | |
30855 | } | |
30856 | ||
30857 | ||
30858 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30859 | PyObject *resultobj = 0; | |
30860 | wxOverlay *arg1 = 0 ; | |
30861 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30862 | wxDCOverlay *result = 0 ; | |
30863 | void *argp1 = 0 ; | |
30864 | int res1 = 0 ; | |
30865 | void *argp2 = 0 ; | |
30866 | int res2 = 0 ; | |
30867 | ||
30868 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30870 | if (!SWIG_IsOK(res1)) { | |
30871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30872 | } | |
30873 | if (!argp1) { | |
30874 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30875 | } | |
30876 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30877 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30878 | if (!SWIG_IsOK(res2)) { | |
30879 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30880 | } | |
30881 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30882 | { | |
30883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30884 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
30885 | wxPyEndAllowThreads(__tstate); | |
30886 | if (PyErr_Occurred()) SWIG_fail; | |
30887 | } | |
30888 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30889 | return resultobj; | |
30890 | fail: | |
30891 | return NULL; | |
30892 | } | |
30893 | ||
30894 | ||
30895 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
30896 | int argc; | |
30897 | PyObject *argv[7]; | |
30898 | ||
30899 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
30900 | --argc; | |
30901 | if (argc == 2) { | |
30902 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
30903 | } | |
30904 | if (argc == 6) { | |
30905 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
30906 | } | |
30907 | ||
30908 | fail: | |
30909 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
30910 | return NULL; | |
30911 | } | |
30912 | ||
30913 | ||
30914 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30915 | PyObject *resultobj = 0; | |
30916 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30917 | void *argp1 = 0 ; | |
30918 | int res1 = 0 ; | |
30919 | PyObject *swig_obj[1] ; | |
30920 | ||
30921 | if (!args) SWIG_fail; | |
30922 | swig_obj[0] = args; | |
30923 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30924 | if (!SWIG_IsOK(res1)) { | |
30925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30926 | } | |
30927 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30928 | { | |
30929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30930 | delete arg1; | |
30931 | ||
30932 | wxPyEndAllowThreads(__tstate); | |
30933 | if (PyErr_Occurred()) SWIG_fail; | |
30934 | } | |
30935 | resultobj = SWIG_Py_Void(); | |
30936 | return resultobj; | |
30937 | fail: | |
30938 | return NULL; | |
30939 | } | |
30940 | ||
30941 | ||
30942 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30943 | PyObject *resultobj = 0; | |
30944 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30945 | void *argp1 = 0 ; | |
30946 | int res1 = 0 ; | |
30947 | PyObject *swig_obj[1] ; | |
30948 | ||
30949 | if (!args) SWIG_fail; | |
30950 | swig_obj[0] = args; | |
30951 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
30952 | if (!SWIG_IsOK(res1)) { | |
30953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30954 | } | |
30955 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30956 | { | |
30957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30958 | (arg1)->Clear(); | |
30959 | wxPyEndAllowThreads(__tstate); | |
30960 | if (PyErr_Occurred()) SWIG_fail; | |
30961 | } | |
30962 | resultobj = SWIG_Py_Void(); | |
30963 | return resultobj; | |
30964 | fail: | |
30965 | return NULL; | |
30966 | } | |
30967 | ||
30968 | ||
30969 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30970 | PyObject *obj; | |
30971 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30972 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
30973 | return SWIG_Py_Void(); | |
30974 | } | |
30975 | ||
30976 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30977 | return SWIG_Python_InitShadowInstance(args); | |
30978 | } | |
30979 | ||
72ef6efb RD |
30980 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30981 | PyObject *resultobj = 0; | |
30982 | int arg1 ; | |
30983 | int arg2 ; | |
30984 | int arg3 = (int) true ; | |
30985 | int arg4 = (int) 1 ; | |
30986 | wxImageList *result = 0 ; | |
30987 | int val1 ; | |
30988 | int ecode1 = 0 ; | |
30989 | int val2 ; | |
30990 | int ecode2 = 0 ; | |
30991 | int val3 ; | |
30992 | int ecode3 = 0 ; | |
30993 | int val4 ; | |
30994 | int ecode4 = 0 ; | |
30995 | PyObject * obj0 = 0 ; | |
30996 | PyObject * obj1 = 0 ; | |
30997 | PyObject * obj2 = 0 ; | |
30998 | PyObject * obj3 = 0 ; | |
30999 | char * kwnames[] = { | |
31000 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
31001 | }; | |
31002 | ||
31003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31004 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31005 | if (!SWIG_IsOK(ecode1)) { | |
31006 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
31007 | } | |
31008 | arg1 = static_cast< int >(val1); | |
31009 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31010 | if (!SWIG_IsOK(ecode2)) { | |
31011 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
31012 | } | |
31013 | arg2 = static_cast< int >(val2); | |
31014 | if (obj2) { | |
31015 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31016 | if (!SWIG_IsOK(ecode3)) { | |
31017 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
31018 | } | |
31019 | arg3 = static_cast< int >(val3); | |
31020 | } | |
31021 | if (obj3) { | |
31022 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31023 | if (!SWIG_IsOK(ecode4)) { | |
31024 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
31025 | } | |
31026 | arg4 = static_cast< int >(val4); | |
31027 | } | |
31028 | { | |
31029 | if (!wxPyCheckForApp()) SWIG_fail; | |
31030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31031 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
31032 | wxPyEndAllowThreads(__tstate); | |
31033 | if (PyErr_Occurred()) SWIG_fail; | |
31034 | } | |
e02c0a13 | 31035 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
31036 | return resultobj; |
31037 | fail: | |
31038 | return NULL; | |
31039 | } | |
31040 | ||
31041 | ||
31042 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31043 | PyObject *resultobj = 0; | |
31044 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31045 | void *argp1 = 0 ; | |
31046 | int res1 = 0 ; | |
31047 | PyObject *swig_obj[1] ; | |
31048 | ||
31049 | if (!args) SWIG_fail; | |
31050 | swig_obj[0] = args; | |
31051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
31052 | if (!SWIG_IsOK(res1)) { | |
31053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31054 | } | |
31055 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31056 | { | |
31057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31058 | delete arg1; | |
31059 | ||
31060 | wxPyEndAllowThreads(__tstate); | |
31061 | if (PyErr_Occurred()) SWIG_fail; | |
31062 | } | |
31063 | resultobj = SWIG_Py_Void(); | |
31064 | return resultobj; | |
31065 | fail: | |
31066 | return NULL; | |
31067 | } | |
31068 | ||
31069 | ||
31070 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31071 | PyObject *resultobj = 0; | |
31072 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31073 | wxBitmap *arg2 = 0 ; | |
31074 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31075 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31076 | int result; | |
31077 | void *argp1 = 0 ; | |
31078 | int res1 = 0 ; | |
31079 | void *argp2 = 0 ; | |
31080 | int res2 = 0 ; | |
31081 | void *argp3 = 0 ; | |
31082 | int res3 = 0 ; | |
31083 | PyObject * obj0 = 0 ; | |
31084 | PyObject * obj1 = 0 ; | |
31085 | PyObject * obj2 = 0 ; | |
31086 | char * kwnames[] = { | |
31087 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
31088 | }; | |
31089 | ||
31090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31091 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31092 | if (!SWIG_IsOK(res1)) { | |
31093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31094 | } | |
31095 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31096 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31097 | if (!SWIG_IsOK(res2)) { | |
31098 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31099 | } | |
31100 | if (!argp2) { | |
31101 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31102 | } | |
31103 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31104 | if (obj2) { | |
31105 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31106 | if (!SWIG_IsOK(res3)) { | |
31107 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31108 | } | |
31109 | if (!argp3) { | |
31110 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31111 | } | |
31112 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
31113 | } | |
31114 | { | |
31115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31116 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31117 | wxPyEndAllowThreads(__tstate); | |
31118 | if (PyErr_Occurred()) SWIG_fail; | |
31119 | } | |
31120 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31121 | return resultobj; | |
31122 | fail: | |
31123 | return NULL; | |
31124 | } | |
31125 | ||
31126 | ||
31127 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31128 | PyObject *resultobj = 0; | |
31129 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31130 | wxBitmap *arg2 = 0 ; | |
31131 | wxColour *arg3 = 0 ; | |
31132 | int result; | |
31133 | void *argp1 = 0 ; | |
31134 | int res1 = 0 ; | |
31135 | void *argp2 = 0 ; | |
31136 | int res2 = 0 ; | |
31137 | wxColour temp3 ; | |
31138 | PyObject * obj0 = 0 ; | |
31139 | PyObject * obj1 = 0 ; | |
31140 | PyObject * obj2 = 0 ; | |
31141 | char * kwnames[] = { | |
31142 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
31143 | }; | |
31144 | ||
31145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31146 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31147 | if (!SWIG_IsOK(res1)) { | |
31148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31149 | } | |
31150 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31151 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31152 | if (!SWIG_IsOK(res2)) { | |
31153 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31154 | } | |
31155 | if (!argp2) { | |
31156 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31157 | } | |
31158 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31159 | { | |
31160 | arg3 = &temp3; | |
31161 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31162 | } | |
31163 | { | |
31164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31165 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
31166 | wxPyEndAllowThreads(__tstate); | |
31167 | if (PyErr_Occurred()) SWIG_fail; | |
31168 | } | |
31169 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31170 | return resultobj; | |
31171 | fail: | |
31172 | return NULL; | |
31173 | } | |
31174 | ||
31175 | ||
31176 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31177 | PyObject *resultobj = 0; | |
31178 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31179 | wxIcon *arg2 = 0 ; | |
31180 | int result; | |
31181 | void *argp1 = 0 ; | |
31182 | int res1 = 0 ; | |
31183 | void *argp2 = 0 ; | |
31184 | int res2 = 0 ; | |
31185 | PyObject * obj0 = 0 ; | |
31186 | PyObject * obj1 = 0 ; | |
31187 | char * kwnames[] = { | |
31188 | (char *) "self",(char *) "icon", NULL | |
31189 | }; | |
31190 | ||
31191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31193 | if (!SWIG_IsOK(res1)) { | |
31194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31195 | } | |
0085ce49 RD |
31196 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
31197 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
31198 | if (!SWIG_IsOK(res2)) { | |
31199 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31200 | } | |
31201 | if (!argp2) { | |
31202 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31203 | } | |
31204 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
31205 | { | |
31206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31207 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
31208 | wxPyEndAllowThreads(__tstate); | |
31209 | if (PyErr_Occurred()) SWIG_fail; | |
31210 | } | |
31211 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31212 | return resultobj; | |
31213 | fail: | |
31214 | return NULL; | |
31215 | } | |
31216 | ||
31217 | ||
31218 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31219 | PyObject *resultobj = 0; | |
31220 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31221 | int arg2 ; | |
31222 | SwigValueWrapper<wxBitmap > result; | |
31223 | void *argp1 = 0 ; | |
31224 | int res1 = 0 ; | |
31225 | int val2 ; | |
31226 | int ecode2 = 0 ; | |
31227 | PyObject * obj0 = 0 ; | |
31228 | PyObject * obj1 = 0 ; | |
31229 | char * kwnames[] = { | |
31230 | (char *) "self",(char *) "index", NULL | |
31231 | }; | |
31232 | ||
31233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
31234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31235 | if (!SWIG_IsOK(res1)) { | |
31236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31237 | } | |
31238 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31239 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31240 | if (!SWIG_IsOK(ecode2)) { | |
31241 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
31242 | } | |
31243 | arg2 = static_cast< int >(val2); | |
31244 | { | |
31245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31246 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
31247 | wxPyEndAllowThreads(__tstate); | |
31248 | if (PyErr_Occurred()) SWIG_fail; | |
31249 | } | |
31250 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
31251 | return resultobj; | |
31252 | fail: | |
31253 | return NULL; | |
31254 | } | |
31255 | ||
31256 | ||
31257 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31258 | PyObject *resultobj = 0; | |
31259 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31260 | int arg2 ; | |
31261 | wxIcon result; | |
31262 | void *argp1 = 0 ; | |
31263 | int res1 = 0 ; | |
31264 | int val2 ; | |
31265 | int ecode2 = 0 ; | |
31266 | PyObject * obj0 = 0 ; | |
31267 | PyObject * obj1 = 0 ; | |
31268 | char * kwnames[] = { | |
31269 | (char *) "self",(char *) "index", NULL | |
31270 | }; | |
31271 | ||
31272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31274 | if (!SWIG_IsOK(res1)) { | |
31275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31276 | } | |
31277 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31278 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31279 | if (!SWIG_IsOK(ecode2)) { | |
31280 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
31281 | } | |
31282 | arg2 = static_cast< int >(val2); | |
31283 | { | |
31284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31285 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
31286 | wxPyEndAllowThreads(__tstate); | |
31287 | if (PyErr_Occurred()) SWIG_fail; | |
31288 | } | |
31289 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
31290 | return resultobj; | |
31291 | fail: | |
31292 | return NULL; | |
31293 | } | |
31294 | ||
31295 | ||
31296 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31297 | PyObject *resultobj = 0; | |
31298 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31299 | int arg2 ; | |
31300 | wxBitmap *arg3 = 0 ; | |
01f6b6d3 RD |
31301 | wxBitmap const &arg4_defvalue = wxNullBitmap ; |
31302 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
0085ce49 RD |
31303 | bool result; |
31304 | void *argp1 = 0 ; | |
31305 | int res1 = 0 ; | |
31306 | int val2 ; | |
31307 | int ecode2 = 0 ; | |
31308 | void *argp3 = 0 ; | |
31309 | int res3 = 0 ; | |
01f6b6d3 RD |
31310 | void *argp4 = 0 ; |
31311 | int res4 = 0 ; | |
0085ce49 RD |
31312 | PyObject * obj0 = 0 ; |
31313 | PyObject * obj1 = 0 ; | |
31314 | PyObject * obj2 = 0 ; | |
01f6b6d3 | 31315 | PyObject * obj3 = 0 ; |
0085ce49 | 31316 | char * kwnames[] = { |
01f6b6d3 | 31317 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL |
0085ce49 RD |
31318 | }; |
31319 | ||
01f6b6d3 | 31320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
31321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); |
31322 | if (!SWIG_IsOK(res1)) { | |
31323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31324 | } | |
31325 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31326 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31327 | if (!SWIG_IsOK(ecode2)) { | |
31328 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
31329 | } | |
31330 | arg2 = static_cast< int >(val2); | |
31331 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31332 | if (!SWIG_IsOK(res3)) { | |
31333 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31334 | } | |
31335 | if (!argp3) { | |
31336 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31337 | } | |
31338 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
01f6b6d3 RD |
31339 | if (obj3) { |
31340 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31341 | if (!SWIG_IsOK(res4)) { | |
31342 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
31343 | } | |
31344 | if (!argp4) { | |
31345 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
31346 | } | |
31347 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
31348 | } | |
0085ce49 RD |
31349 | { |
31350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 31351 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); |
0085ce49 RD |
31352 | wxPyEndAllowThreads(__tstate); |
31353 | if (PyErr_Occurred()) SWIG_fail; | |
31354 | } | |
31355 | { | |
31356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31357 | } | |
31358 | return resultobj; | |
31359 | fail: | |
31360 | return NULL; | |
31361 | } | |
31362 | ||
31363 | ||
31364 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31365 | PyObject *resultobj = 0; | |
31366 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31367 | int arg2 ; | |
31368 | wxDC *arg3 = 0 ; | |
31369 | int arg4 ; | |
31370 | int arg5 ; | |
31371 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
31372 | bool arg7 = (bool) (bool)false ; | |
31373 | bool result; | |
31374 | void *argp1 = 0 ; | |
31375 | int res1 = 0 ; | |
31376 | int val2 ; | |
31377 | int ecode2 = 0 ; | |
31378 | void *argp3 = 0 ; | |
31379 | int res3 = 0 ; | |
31380 | int val4 ; | |
31381 | int ecode4 = 0 ; | |
31382 | int val5 ; | |
31383 | int ecode5 = 0 ; | |
31384 | int val6 ; | |
31385 | int ecode6 = 0 ; | |
31386 | bool val7 ; | |
31387 | int ecode7 = 0 ; | |
31388 | PyObject * obj0 = 0 ; | |
31389 | PyObject * obj1 = 0 ; | |
31390 | PyObject * obj2 = 0 ; | |
31391 | PyObject * obj3 = 0 ; | |
31392 | PyObject * obj4 = 0 ; | |
31393 | PyObject * obj5 = 0 ; | |
31394 | PyObject * obj6 = 0 ; | |
31395 | char * kwnames[] = { | |
31396 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
31397 | }; | |
31398 | ||
31399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31401 | if (!SWIG_IsOK(res1)) { | |
31402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31403 | } | |
31404 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31405 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31406 | if (!SWIG_IsOK(ecode2)) { | |
31407 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
31408 | } | |
31409 | arg2 = static_cast< int >(val2); | |
31410 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31411 | if (!SWIG_IsOK(res3)) { | |
31412 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31413 | } | |
31414 | if (!argp3) { | |
31415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31416 | } | |
31417 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31418 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31419 | if (!SWIG_IsOK(ecode4)) { | |
31420 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
31421 | } | |
31422 | arg4 = static_cast< int >(val4); | |
31423 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31424 | if (!SWIG_IsOK(ecode5)) { | |
31425 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
31426 | } | |
31427 | arg5 = static_cast< int >(val5); | |
31428 | if (obj5) { | |
31429 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
31430 | if (!SWIG_IsOK(ecode6)) { | |
31431 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
31432 | } | |
31433 | arg6 = static_cast< int >(val6); | |
31434 | } | |
31435 | if (obj6) { | |
31436 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
31437 | if (!SWIG_IsOK(ecode7)) { | |
31438 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
31439 | } | |
31440 | arg7 = static_cast< bool >(val7); | |
31441 | } | |
31442 | { | |
31443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31444 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
31445 | wxPyEndAllowThreads(__tstate); | |
31446 | if (PyErr_Occurred()) SWIG_fail; | |
31447 | } | |
31448 | { | |
31449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31450 | } | |
31451 | return resultobj; | |
31452 | fail: | |
31453 | return NULL; | |
31454 | } | |
31455 | ||
31456 | ||
31457 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31458 | PyObject *resultobj = 0; | |
31459 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31460 | int result; | |
31461 | void *argp1 = 0 ; | |
31462 | int res1 = 0 ; | |
31463 | PyObject *swig_obj[1] ; | |
31464 | ||
31465 | if (!args) SWIG_fail; | |
31466 | swig_obj[0] = args; | |
31467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31468 | if (!SWIG_IsOK(res1)) { | |
31469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31470 | } | |
31471 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31472 | { | |
31473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31474 | result = (int)(arg1)->GetImageCount(); | |
31475 | wxPyEndAllowThreads(__tstate); | |
31476 | if (PyErr_Occurred()) SWIG_fail; | |
31477 | } | |
31478 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31479 | return resultobj; | |
31480 | fail: | |
31481 | return NULL; | |
31482 | } | |
31483 | ||
31484 | ||
31485 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31486 | PyObject *resultobj = 0; | |
31487 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31488 | int arg2 ; | |
31489 | bool result; | |
31490 | void *argp1 = 0 ; | |
31491 | int res1 = 0 ; | |
31492 | int val2 ; | |
31493 | int ecode2 = 0 ; | |
31494 | PyObject * obj0 = 0 ; | |
31495 | PyObject * obj1 = 0 ; | |
31496 | char * kwnames[] = { | |
31497 | (char *) "self",(char *) "index", NULL | |
31498 | }; | |
31499 | ||
31500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
31501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31502 | if (!SWIG_IsOK(res1)) { | |
31503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31504 | } | |
31505 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31506 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31507 | if (!SWIG_IsOK(ecode2)) { | |
31508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
31509 | } | |
31510 | arg2 = static_cast< int >(val2); | |
31511 | { | |
31512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31513 | result = (bool)(arg1)->Remove(arg2); | |
31514 | wxPyEndAllowThreads(__tstate); | |
31515 | if (PyErr_Occurred()) SWIG_fail; | |
31516 | } | |
31517 | { | |
31518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31519 | } | |
31520 | return resultobj; | |
31521 | fail: | |
31522 | return NULL; | |
31523 | } | |
31524 | ||
31525 | ||
31526 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31527 | PyObject *resultobj = 0; | |
31528 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31529 | bool result; | |
31530 | void *argp1 = 0 ; | |
31531 | int res1 = 0 ; | |
31532 | PyObject *swig_obj[1] ; | |
31533 | ||
31534 | if (!args) SWIG_fail; | |
31535 | swig_obj[0] = args; | |
31536 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31537 | if (!SWIG_IsOK(res1)) { | |
31538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31539 | } | |
31540 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31541 | { | |
31542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31543 | result = (bool)(arg1)->RemoveAll(); | |
31544 | wxPyEndAllowThreads(__tstate); | |
31545 | if (PyErr_Occurred()) SWIG_fail; | |
31546 | } | |
31547 | { | |
31548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31549 | } | |
31550 | return resultobj; | |
31551 | fail: | |
31552 | return NULL; | |
31553 | } | |
31554 | ||
31555 | ||
31556 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31557 | PyObject *resultobj = 0; | |
31558 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31559 | int arg2 ; | |
31560 | int *arg3 = 0 ; | |
31561 | int *arg4 = 0 ; | |
31562 | void *argp1 = 0 ; | |
31563 | int res1 = 0 ; | |
31564 | int val2 ; | |
31565 | int ecode2 = 0 ; | |
31566 | int temp3 ; | |
31567 | int res3 = SWIG_TMPOBJ ; | |
31568 | int temp4 ; | |
31569 | int res4 = SWIG_TMPOBJ ; | |
31570 | PyObject * obj0 = 0 ; | |
31571 | PyObject * obj1 = 0 ; | |
31572 | char * kwnames[] = { | |
31573 | (char *) "self",(char *) "index", NULL | |
31574 | }; | |
31575 | ||
31576 | arg3 = &temp3; | |
31577 | arg4 = &temp4; | |
31578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
31579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31580 | if (!SWIG_IsOK(res1)) { | |
31581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31582 | } | |
31583 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31585 | if (!SWIG_IsOK(ecode2)) { | |
31586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
31587 | } | |
31588 | arg2 = static_cast< int >(val2); | |
31589 | { | |
31590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31591 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
31592 | wxPyEndAllowThreads(__tstate); | |
31593 | if (PyErr_Occurred()) SWIG_fail; | |
31594 | } | |
31595 | resultobj = SWIG_Py_Void(); | |
31596 | if (SWIG_IsTmpObj(res3)) { | |
31597 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31598 | } else { | |
31599 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31600 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31601 | } | |
31602 | if (SWIG_IsTmpObj(res4)) { | |
31603 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
31604 | } else { | |
31605 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31606 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
31607 | } | |
31608 | return resultobj; | |
31609 | fail: | |
31610 | return NULL; | |
31611 | } | |
31612 | ||
31613 | ||
31614 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31615 | PyObject *obj; | |
31616 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31617 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
31618 | return SWIG_Py_Void(); | |
31619 | } | |
31620 | ||
31621 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31622 | return SWIG_Python_InitShadowInstance(args); | |
31623 | } | |
31624 | ||
50efceee RD |
31625 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31626 | PyObject *resultobj = 0; | |
31627 | wxStockGDI *result = 0 ; | |
0085ce49 | 31628 | |
50efceee RD |
31629 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
31630 | { | |
31631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31632 | result = (wxStockGDI *)new wxStockGDI(); | |
31633 | wxPyEndAllowThreads(__tstate); | |
31634 | if (PyErr_Occurred()) SWIG_fail; | |
31635 | } | |
31636 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
31637 | return resultobj; | |
31638 | fail: | |
31639 | return NULL; | |
0085ce49 RD |
31640 | } |
31641 | ||
31642 | ||
50efceee RD |
31643 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31644 | PyObject *resultobj = 0; | |
31645 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31646 | void *argp1 = 0 ; | |
31647 | int res1 = 0 ; | |
31648 | PyObject *swig_obj[1] ; | |
0085ce49 | 31649 | |
50efceee RD |
31650 | if (!args) SWIG_fail; |
31651 | swig_obj[0] = args; | |
31652 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
31653 | if (!SWIG_IsOK(res1)) { | |
31654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31655 | } | |
31656 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31657 | { | |
31658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31659 | delete arg1; | |
31660 | ||
31661 | wxPyEndAllowThreads(__tstate); | |
31662 | if (PyErr_Occurred()) SWIG_fail; | |
31663 | } | |
31664 | resultobj = SWIG_Py_Void(); | |
31665 | return resultobj; | |
31666 | fail: | |
31667 | return NULL; | |
0085ce49 RD |
31668 | } |
31669 | ||
31670 | ||
50efceee RD |
31671 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31672 | PyObject *resultobj = 0; | |
0085ce49 | 31673 | |
50efceee RD |
31674 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
31675 | { | |
31676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31677 | wxStockGDI::DeleteAll(); | |
31678 | wxPyEndAllowThreads(__tstate); | |
31679 | if (PyErr_Occurred()) SWIG_fail; | |
31680 | } | |
31681 | resultobj = SWIG_Py_Void(); | |
31682 | return resultobj; | |
31683 | fail: | |
31684 | return NULL; | |
0085ce49 RD |
31685 | } |
31686 | ||
31687 | ||
50efceee RD |
31688 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31689 | PyObject *resultobj = 0; | |
31690 | wxStockGDI *result = 0 ; | |
0085ce49 | 31691 | |
50efceee RD |
31692 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
31693 | { | |
31694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31695 | { | |
31696 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
31697 | result = (wxStockGDI *) &_result_ref; | |
31698 | } | |
31699 | wxPyEndAllowThreads(__tstate); | |
31700 | if (PyErr_Occurred()) SWIG_fail; | |
31701 | } | |
31702 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31703 | return resultobj; | |
31704 | fail: | |
31705 | return NULL; | |
0085ce49 RD |
31706 | } |
31707 | ||
31708 | ||
50efceee RD |
31709 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31710 | PyObject *resultobj = 0; | |
31711 | wxStockGDI::Item arg1 ; | |
31712 | wxBrush *result = 0 ; | |
31713 | int val1 ; | |
31714 | int ecode1 = 0 ; | |
31715 | PyObject * obj0 = 0 ; | |
31716 | char * kwnames[] = { | |
31717 | (char *) "item", NULL | |
31718 | }; | |
31719 | ||
31720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
31721 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31722 | if (!SWIG_IsOK(ecode1)) { | |
31723 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31724 | } | |
31725 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31726 | { | |
31727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31728 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
31729 | wxPyEndAllowThreads(__tstate); | |
31730 | if (PyErr_Occurred()) SWIG_fail; | |
31731 | } | |
31732 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31733 | return resultobj; | |
31734 | fail: | |
31735 | return NULL; | |
0085ce49 RD |
31736 | } |
31737 | ||
31738 | ||
50efceee RD |
31739 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31740 | PyObject *resultobj = 0; | |
31741 | wxStockGDI::Item arg1 ; | |
31742 | wxColour *result = 0 ; | |
31743 | int val1 ; | |
31744 | int ecode1 = 0 ; | |
31745 | PyObject * obj0 = 0 ; | |
31746 | char * kwnames[] = { | |
31747 | (char *) "item", NULL | |
31748 | }; | |
0085ce49 | 31749 | |
50efceee RD |
31750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
31751 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31752 | if (!SWIG_IsOK(ecode1)) { | |
31753 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31754 | } | |
31755 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31756 | { | |
31757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31758 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
31759 | wxPyEndAllowThreads(__tstate); | |
31760 | if (PyErr_Occurred()) SWIG_fail; | |
31761 | } | |
31762 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
31763 | return resultobj; | |
31764 | fail: | |
31765 | return NULL; | |
0085ce49 RD |
31766 | } |
31767 | ||
31768 | ||
50efceee RD |
31769 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31770 | PyObject *resultobj = 0; | |
31771 | wxStockGDI::Item arg1 ; | |
31772 | wxCursor *result = 0 ; | |
31773 | int val1 ; | |
31774 | int ecode1 = 0 ; | |
31775 | PyObject * obj0 = 0 ; | |
31776 | char * kwnames[] = { | |
31777 | (char *) "item", NULL | |
31778 | }; | |
31779 | ||
31780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
31781 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31782 | if (!SWIG_IsOK(ecode1)) { | |
31783 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31784 | } | |
31785 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31786 | { | |
31787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31788 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
31789 | wxPyEndAllowThreads(__tstate); | |
31790 | if (PyErr_Occurred()) SWIG_fail; | |
31791 | } | |
31792 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
31793 | return resultobj; | |
31794 | fail: | |
31795 | return NULL; | |
0085ce49 RD |
31796 | } |
31797 | ||
31798 | ||
50efceee RD |
31799 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31800 | PyObject *resultobj = 0; | |
31801 | wxStockGDI::Item arg1 ; | |
31802 | wxPen *result = 0 ; | |
31803 | int val1 ; | |
31804 | int ecode1 = 0 ; | |
31805 | PyObject * obj0 = 0 ; | |
31806 | char * kwnames[] = { | |
31807 | (char *) "item", NULL | |
31808 | }; | |
31809 | ||
31810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
31811 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31812 | if (!SWIG_IsOK(ecode1)) { | |
31813 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31814 | } | |
31815 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31816 | { | |
31817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31818 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
31819 | wxPyEndAllowThreads(__tstate); | |
31820 | if (PyErr_Occurred()) SWIG_fail; | |
31821 | } | |
31822 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
31823 | return resultobj; | |
31824 | fail: | |
31825 | return NULL; | |
0085ce49 RD |
31826 | } |
31827 | ||
31828 | ||
50efceee RD |
31829 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31830 | PyObject *resultobj = 0; | |
31831 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31832 | wxStockGDI::Item arg2 ; | |
31833 | wxFont *result = 0 ; | |
31834 | void *argp1 = 0 ; | |
31835 | int res1 = 0 ; | |
31836 | int val2 ; | |
31837 | int ecode2 = 0 ; | |
31838 | PyObject * obj0 = 0 ; | |
31839 | PyObject * obj1 = 0 ; | |
31840 | char * kwnames[] = { | |
31841 | (char *) "self",(char *) "item", NULL | |
31842 | }; | |
0085ce49 | 31843 | |
50efceee RD |
31844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
31845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31846 | if (!SWIG_IsOK(res1)) { | |
31847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31848 | } | |
31849 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31850 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31851 | if (!SWIG_IsOK(ecode2)) { | |
31852 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
31853 | } | |
31854 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
31855 | { | |
31856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31857 | result = (wxFont *)(arg1)->GetFont(arg2); | |
31858 | wxPyEndAllowThreads(__tstate); | |
31859 | if (PyErr_Occurred()) SWIG_fail; | |
31860 | } | |
31861 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
31862 | return resultobj; | |
31863 | fail: | |
31864 | return NULL; | |
0085ce49 RD |
31865 | } |
31866 | ||
31867 | ||
50efceee RD |
31868 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31869 | PyObject *obj; | |
31870 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31871 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
31872 | return SWIG_Py_Void(); | |
0085ce49 RD |
31873 | } |
31874 | ||
50efceee RD |
31875 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31876 | return SWIG_Python_InitShadowInstance(args); | |
0085ce49 RD |
31877 | } |
31878 | ||
0085ce49 RD |
31879 | SWIGINTERN int NullBitmap_set(PyObject *) { |
31880 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
31881 | return 1; | |
31882 | } | |
31883 | ||
31884 | ||
31885 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
31886 | PyObject *pyobj = 0; | |
31887 | ||
31888 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
31889 | return pyobj; | |
31890 | } | |
31891 | ||
31892 | ||
31893 | SWIGINTERN int NullIcon_set(PyObject *) { | |
31894 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
31895 | return 1; | |
31896 | } | |
31897 | ||
31898 | ||
31899 | SWIGINTERN PyObject *NullIcon_get(void) { | |
31900 | PyObject *pyobj = 0; | |
31901 | ||
31902 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
31903 | return pyobj; | |
31904 | } | |
31905 | ||
31906 | ||
31907 | SWIGINTERN int NullCursor_set(PyObject *) { | |
31908 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
31909 | return 1; | |
31910 | } | |
31911 | ||
31912 | ||
31913 | SWIGINTERN PyObject *NullCursor_get(void) { | |
31914 | PyObject *pyobj = 0; | |
31915 | ||
31916 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
31917 | return pyobj; | |
31918 | } | |
31919 | ||
31920 | ||
31921 | SWIGINTERN int NullPen_set(PyObject *) { | |
31922 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
31923 | return 1; | |
31924 | } | |
31925 | ||
31926 | ||
31927 | SWIGINTERN PyObject *NullPen_get(void) { | |
31928 | PyObject *pyobj = 0; | |
31929 | ||
31930 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
31931 | return pyobj; | |
31932 | } | |
31933 | ||
31934 | ||
31935 | SWIGINTERN int NullBrush_set(PyObject *) { | |
31936 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
31937 | return 1; | |
31938 | } | |
31939 | ||
31940 | ||
31941 | SWIGINTERN PyObject *NullBrush_get(void) { | |
31942 | PyObject *pyobj = 0; | |
31943 | ||
31944 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
31945 | return pyobj; | |
31946 | } | |
31947 | ||
31948 | ||
31949 | SWIGINTERN int NullPalette_set(PyObject *) { | |
31950 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
31951 | return 1; | |
31952 | } | |
31953 | ||
31954 | ||
31955 | SWIGINTERN PyObject *NullPalette_get(void) { | |
31956 | PyObject *pyobj = 0; | |
31957 | ||
31958 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
31959 | return pyobj; | |
31960 | } | |
31961 | ||
31962 | ||
31963 | SWIGINTERN int NullFont_set(PyObject *) { | |
31964 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
31965 | return 1; | |
31966 | } | |
31967 | ||
31968 | ||
31969 | SWIGINTERN PyObject *NullFont_get(void) { | |
31970 | PyObject *pyobj = 0; | |
31971 | ||
31972 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
31973 | return pyobj; | |
31974 | } | |
31975 | ||
31976 | ||
31977 | SWIGINTERN int NullColour_set(PyObject *) { | |
31978 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
31979 | return 1; | |
31980 | } | |
31981 | ||
31982 | ||
31983 | SWIGINTERN PyObject *NullColour_get(void) { | |
31984 | PyObject *pyobj = 0; | |
31985 | ||
31986 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
31987 | return pyobj; | |
31988 | } | |
31989 | ||
31990 | ||
50efceee | 31991 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 31992 | PyObject *resultobj = 0; |
50efceee RD |
31993 | wxGDIObjListBase *result = 0 ; |
31994 | ||
31995 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
31996 | { | |
31997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31998 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
31999 | wxPyEndAllowThreads(__tstate); | |
32000 | if (PyErr_Occurred()) SWIG_fail; | |
32001 | } | |
32002 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
32003 | return resultobj; | |
32004 | fail: | |
32005 | return NULL; | |
32006 | } | |
32007 | ||
32008 | ||
32009 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32010 | PyObject *resultobj = 0; | |
32011 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
0085ce49 RD |
32012 | void *argp1 = 0 ; |
32013 | int res1 = 0 ; | |
50efceee | 32014 | PyObject *swig_obj[1] ; |
0085ce49 | 32015 | |
50efceee RD |
32016 | if (!args) SWIG_fail; |
32017 | swig_obj[0] = args; | |
32018 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
0085ce49 | 32019 | if (!SWIG_IsOK(res1)) { |
50efceee | 32020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
0085ce49 | 32021 | } |
50efceee | 32022 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
0085ce49 RD |
32023 | { |
32024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
32025 | delete arg1; |
32026 | ||
0085ce49 RD |
32027 | wxPyEndAllowThreads(__tstate); |
32028 | if (PyErr_Occurred()) SWIG_fail; | |
32029 | } | |
32030 | resultobj = SWIG_Py_Void(); | |
32031 | return resultobj; | |
32032 | fail: | |
32033 | return NULL; | |
32034 | } | |
32035 | ||
32036 | ||
50efceee RD |
32037 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32038 | PyObject *obj; | |
32039 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32040 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
32041 | return SWIG_Py_Void(); | |
32042 | } | |
32043 | ||
32044 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32045 | return SWIG_Python_InitShadowInstance(args); | |
32046 | } | |
32047 | ||
0085ce49 RD |
32048 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32049 | PyObject *resultobj = 0; | |
32050 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32051 | wxColour *arg2 = 0 ; | |
32052 | int arg3 ; | |
32053 | int arg4 ; | |
32054 | wxPen *result = 0 ; | |
32055 | void *argp1 = 0 ; | |
32056 | int res1 = 0 ; | |
32057 | wxColour temp2 ; | |
32058 | int val3 ; | |
32059 | int ecode3 = 0 ; | |
32060 | int val4 ; | |
32061 | int ecode4 = 0 ; | |
32062 | PyObject * obj0 = 0 ; | |
32063 | PyObject * obj1 = 0 ; | |
32064 | PyObject * obj2 = 0 ; | |
32065 | PyObject * obj3 = 0 ; | |
32066 | char * kwnames[] = { | |
32067 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
32068 | }; | |
32069 | ||
32070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
32072 | if (!SWIG_IsOK(res1)) { | |
32073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
32074 | } | |
32075 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32076 | { | |
32077 | arg2 = &temp2; | |
32078 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32079 | } | |
32080 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32081 | if (!SWIG_IsOK(ecode3)) { | |
32082 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
32083 | } | |
32084 | arg3 = static_cast< int >(val3); | |
32085 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32086 | if (!SWIG_IsOK(ecode4)) { | |
32087 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
32088 | } | |
32089 | arg4 = static_cast< int >(val4); | |
32090 | { | |
32091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32092 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
32093 | wxPyEndAllowThreads(__tstate); | |
32094 | if (PyErr_Occurred()) SWIG_fail; | |
32095 | } | |
32096 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32097 | return resultobj; | |
32098 | fail: | |
32099 | return NULL; | |
32100 | } | |
32101 | ||
32102 | ||
50efceee | 32103 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
32104 | PyObject *resultobj = 0; |
32105 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32106 | wxPen *arg2 = (wxPen *) 0 ; | |
32107 | void *argp1 = 0 ; | |
32108 | int res1 = 0 ; | |
32109 | void *argp2 = 0 ; | |
32110 | int res2 = 0 ; | |
32111 | PyObject * obj0 = 0 ; | |
32112 | PyObject * obj1 = 0 ; | |
32113 | char * kwnames[] = { | |
32114 | (char *) "self",(char *) "pen", NULL | |
32115 | }; | |
32116 | ||
50efceee | 32117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
0085ce49 RD |
32118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
32119 | if (!SWIG_IsOK(res1)) { | |
50efceee | 32120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
32121 | } |
32122 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32123 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
32124 | if (!SWIG_IsOK(res2)) { | |
50efceee | 32125 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
0085ce49 RD |
32126 | } |
32127 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
32128 | { | |
32129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32130 | (arg1)->AddPen(arg2); |
0085ce49 RD |
32131 | wxPyEndAllowThreads(__tstate); |
32132 | if (PyErr_Occurred()) SWIG_fail; | |
32133 | } | |
32134 | resultobj = SWIG_Py_Void(); | |
32135 | return resultobj; | |
32136 | fail: | |
32137 | return NULL; | |
32138 | } | |
32139 | ||
32140 | ||
50efceee | 32141 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
32142 | PyObject *resultobj = 0; |
32143 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 32144 | wxPen *arg2 = (wxPen *) 0 ; |
0085ce49 RD |
32145 | void *argp1 = 0 ; |
32146 | int res1 = 0 ; | |
50efceee RD |
32147 | void *argp2 = 0 ; |
32148 | int res2 = 0 ; | |
32149 | PyObject * obj0 = 0 ; | |
32150 | PyObject * obj1 = 0 ; | |
32151 | char * kwnames[] = { | |
32152 | (char *) "self",(char *) "pen", NULL | |
32153 | }; | |
0085ce49 | 32154 | |
50efceee RD |
32155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
32156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
0085ce49 | 32157 | if (!SWIG_IsOK(res1)) { |
50efceee | 32158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
32159 | } |
32160 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
32161 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
32162 | if (!SWIG_IsOK(res2)) { | |
32163 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
32164 | } | |
32165 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
0085ce49 RD |
32166 | { |
32167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32168 | (arg1)->RemovePen(arg2); |
0085ce49 RD |
32169 | wxPyEndAllowThreads(__tstate); |
32170 | if (PyErr_Occurred()) SWIG_fail; | |
32171 | } | |
50efceee | 32172 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
32173 | return resultobj; |
32174 | fail: | |
32175 | return NULL; | |
32176 | } | |
32177 | ||
32178 | ||
32179 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32180 | PyObject *obj; | |
32181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32182 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
32183 | return SWIG_Py_Void(); | |
32184 | } | |
32185 | ||
50efceee RD |
32186 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32187 | PyObject *resultobj = 0; | |
32188 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32189 | wxColour *arg2 = 0 ; | |
32190 | int arg3 = (int) wxSOLID ; | |
32191 | wxBrush *result = 0 ; | |
32192 | void *argp1 = 0 ; | |
32193 | int res1 = 0 ; | |
32194 | wxColour temp2 ; | |
32195 | int val3 ; | |
32196 | int ecode3 = 0 ; | |
32197 | PyObject * obj0 = 0 ; | |
32198 | PyObject * obj1 = 0 ; | |
32199 | PyObject * obj2 = 0 ; | |
32200 | char * kwnames[] = { | |
32201 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
32202 | }; | |
32203 | ||
32204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32206 | if (!SWIG_IsOK(res1)) { | |
32207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32208 | } | |
32209 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32210 | { | |
32211 | arg2 = &temp2; | |
32212 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32213 | } | |
32214 | if (obj2) { | |
32215 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32216 | if (!SWIG_IsOK(ecode3)) { | |
32217 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
32218 | } | |
32219 | arg3 = static_cast< int >(val3); | |
32220 | } | |
32221 | { | |
32222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32223 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
32224 | wxPyEndAllowThreads(__tstate); | |
32225 | if (PyErr_Occurred()) SWIG_fail; | |
32226 | } | |
32227 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32228 | return resultobj; | |
32229 | fail: | |
32230 | return NULL; | |
32231 | } | |
32232 | ||
32233 | ||
0085ce49 RD |
32234 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32235 | PyObject *resultobj = 0; | |
32236 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32237 | wxBrush *arg2 = (wxBrush *) 0 ; | |
32238 | void *argp1 = 0 ; | |
32239 | int res1 = 0 ; | |
32240 | void *argp2 = 0 ; | |
32241 | int res2 = 0 ; | |
32242 | PyObject * obj0 = 0 ; | |
32243 | PyObject * obj1 = 0 ; | |
32244 | char * kwnames[] = { | |
32245 | (char *) "self",(char *) "brush", NULL | |
32246 | }; | |
32247 | ||
32248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
32249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32250 | if (!SWIG_IsOK(res1)) { | |
32251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32252 | } | |
32253 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32254 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32255 | if (!SWIG_IsOK(res2)) { | |
32256 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
32257 | } | |
32258 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
32259 | { | |
32260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32261 | (arg1)->AddBrush(arg2); | |
32262 | wxPyEndAllowThreads(__tstate); | |
32263 | if (PyErr_Occurred()) SWIG_fail; | |
32264 | } | |
32265 | resultobj = SWIG_Py_Void(); | |
32266 | return resultobj; | |
32267 | fail: | |
32268 | return NULL; | |
32269 | } | |
32270 | ||
32271 | ||
50efceee | 32272 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
32273 | PyObject *resultobj = 0; |
32274 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 32275 | wxBrush *arg2 = (wxBrush *) 0 ; |
0085ce49 RD |
32276 | void *argp1 = 0 ; |
32277 | int res1 = 0 ; | |
50efceee RD |
32278 | void *argp2 = 0 ; |
32279 | int res2 = 0 ; | |
32280 | PyObject * obj0 = 0 ; | |
32281 | PyObject * obj1 = 0 ; | |
32282 | char * kwnames[] = { | |
32283 | (char *) "self",(char *) "brush", NULL | |
32284 | }; | |
32285 | ||
32286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
32287 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32288 | if (!SWIG_IsOK(res1)) { | |
32289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32290 | } | |
32291 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32292 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32293 | if (!SWIG_IsOK(res2)) { | |
32294 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
32295 | } | |
32296 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
32297 | { | |
32298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32299 | (arg1)->RemoveBrush(arg2); | |
32300 | wxPyEndAllowThreads(__tstate); | |
32301 | if (PyErr_Occurred()) SWIG_fail; | |
32302 | } | |
32303 | resultobj = SWIG_Py_Void(); | |
32304 | return resultobj; | |
32305 | fail: | |
32306 | return NULL; | |
32307 | } | |
32308 | ||
32309 | ||
32310 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32311 | PyObject *obj; | |
32312 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32313 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
32314 | return SWIG_Py_Void(); | |
32315 | } | |
32316 | ||
32317 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32318 | PyObject *resultobj = 0; | |
32319 | wxFontList *arg1 = (wxFontList *) 0 ; | |
32320 | int arg2 ; | |
32321 | int arg3 ; | |
32322 | int arg4 ; | |
32323 | int arg5 ; | |
32324 | bool arg6 = (bool) false ; | |
32325 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
32326 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32327 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
32328 | wxFont *result = 0 ; | |
32329 | void *argp1 = 0 ; | |
32330 | int res1 = 0 ; | |
32331 | int val2 ; | |
32332 | int ecode2 = 0 ; | |
0085ce49 RD |
32333 | int val3 ; |
32334 | int ecode3 = 0 ; | |
50efceee RD |
32335 | int val4 ; |
32336 | int ecode4 = 0 ; | |
32337 | int val5 ; | |
32338 | int ecode5 = 0 ; | |
32339 | bool val6 ; | |
32340 | int ecode6 = 0 ; | |
32341 | bool temp7 = false ; | |
32342 | int val8 ; | |
32343 | int ecode8 = 0 ; | |
0085ce49 RD |
32344 | PyObject * obj0 = 0 ; |
32345 | PyObject * obj1 = 0 ; | |
32346 | PyObject * obj2 = 0 ; | |
50efceee RD |
32347 | PyObject * obj3 = 0 ; |
32348 | PyObject * obj4 = 0 ; | |
32349 | PyObject * obj5 = 0 ; | |
32350 | PyObject * obj6 = 0 ; | |
32351 | PyObject * obj7 = 0 ; | |
0085ce49 | 32352 | char * kwnames[] = { |
50efceee | 32353 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
0085ce49 RD |
32354 | }; |
32355 | ||
50efceee RD |
32356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
32357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32358 | if (!SWIG_IsOK(res1)) { |
50efceee | 32359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32360 | } |
50efceee RD |
32361 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32362 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32363 | if (!SWIG_IsOK(ecode2)) { | |
32364 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
32365 | } | |
32366 | arg2 = static_cast< int >(val2); | |
32367 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32368 | if (!SWIG_IsOK(ecode3)) { | |
32369 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
32370 | } | |
32371 | arg3 = static_cast< int >(val3); | |
32372 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32373 | if (!SWIG_IsOK(ecode4)) { | |
32374 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
32375 | } | |
32376 | arg4 = static_cast< int >(val4); | |
32377 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32378 | if (!SWIG_IsOK(ecode5)) { | |
32379 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
32380 | } | |
32381 | arg5 = static_cast< int >(val5); | |
32382 | if (obj5) { | |
32383 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
32384 | if (!SWIG_IsOK(ecode6)) { | |
32385 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
32386 | } | |
32387 | arg6 = static_cast< bool >(val6); | |
0085ce49 | 32388 | } |
50efceee RD |
32389 | if (obj6) { |
32390 | { | |
32391 | arg7 = wxString_in_helper(obj6); | |
32392 | if (arg7 == NULL) SWIG_fail; | |
32393 | temp7 = true; | |
32394 | } | |
32395 | } | |
32396 | if (obj7) { | |
32397 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
32398 | if (!SWIG_IsOK(ecode8)) { | |
32399 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
0085ce49 | 32400 | } |
50efceee | 32401 | arg8 = static_cast< wxFontEncoding >(val8); |
0085ce49 RD |
32402 | } |
32403 | { | |
32404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32405 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
0085ce49 RD |
32406 | wxPyEndAllowThreads(__tstate); |
32407 | if (PyErr_Occurred()) SWIG_fail; | |
32408 | } | |
50efceee RD |
32409 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
32410 | { | |
32411 | if (temp7) | |
32412 | delete arg7; | |
32413 | } | |
0085ce49 RD |
32414 | return resultobj; |
32415 | fail: | |
50efceee RD |
32416 | { |
32417 | if (temp7) | |
32418 | delete arg7; | |
32419 | } | |
0085ce49 RD |
32420 | return NULL; |
32421 | } | |
32422 | ||
32423 | ||
50efceee | 32424 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 32425 | PyObject *resultobj = 0; |
50efceee RD |
32426 | wxFontList *arg1 = (wxFontList *) 0 ; |
32427 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
32428 | void *argp1 = 0 ; |
32429 | int res1 = 0 ; | |
32430 | void *argp2 = 0 ; | |
32431 | int res2 = 0 ; | |
32432 | PyObject * obj0 = 0 ; | |
32433 | PyObject * obj1 = 0 ; | |
32434 | char * kwnames[] = { | |
50efceee | 32435 | (char *) "self",(char *) "font", NULL |
0085ce49 RD |
32436 | }; |
32437 | ||
50efceee RD |
32438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32440 | if (!SWIG_IsOK(res1)) { |
50efceee | 32441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32442 | } |
50efceee RD |
32443 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32444 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
0085ce49 | 32445 | if (!SWIG_IsOK(res2)) { |
50efceee | 32446 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
0085ce49 | 32447 | } |
50efceee | 32448 | arg2 = reinterpret_cast< wxFont * >(argp2); |
0085ce49 RD |
32449 | { |
32450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32451 | (arg1)->AddFont(arg2); |
0085ce49 RD |
32452 | wxPyEndAllowThreads(__tstate); |
32453 | if (PyErr_Occurred()) SWIG_fail; | |
32454 | } | |
32455 | resultobj = SWIG_Py_Void(); | |
32456 | return resultobj; | |
32457 | fail: | |
32458 | return NULL; | |
32459 | } | |
32460 | ||
32461 | ||
50efceee | 32462 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 32463 | PyObject *resultobj = 0; |
50efceee RD |
32464 | wxFontList *arg1 = (wxFontList *) 0 ; |
32465 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
32466 | void *argp1 = 0 ; |
32467 | int res1 = 0 ; | |
50efceee RD |
32468 | void *argp2 = 0 ; |
32469 | int res2 = 0 ; | |
32470 | PyObject * obj0 = 0 ; | |
32471 | PyObject * obj1 = 0 ; | |
32472 | char * kwnames[] = { | |
32473 | (char *) "self",(char *) "font", NULL | |
32474 | }; | |
0085ce49 | 32475 | |
50efceee RD |
32476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32478 | if (!SWIG_IsOK(res1)) { |
50efceee | 32479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32480 | } |
50efceee RD |
32481 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32482 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
32483 | if (!SWIG_IsOK(res2)) { | |
32484 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
32485 | } | |
32486 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
0085ce49 RD |
32487 | { |
32488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32489 | (arg1)->RemoveFont(arg2); |
0085ce49 RD |
32490 | wxPyEndAllowThreads(__tstate); |
32491 | if (PyErr_Occurred()) SWIG_fail; | |
32492 | } | |
50efceee | 32493 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
32494 | return resultobj; |
32495 | fail: | |
32496 | return NULL; | |
32497 | } | |
32498 | ||
32499 | ||
50efceee | 32500 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
32501 | PyObject *obj; |
32502 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 32503 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
0085ce49 RD |
32504 | return SWIG_Py_Void(); |
32505 | } | |
32506 | ||
32507 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32508 | PyObject *resultobj = 0; | |
32509 | wxColourDatabase *result = 0 ; | |
32510 | ||
32511 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
32512 | { | |
32513 | if (!wxPyCheckForApp()) SWIG_fail; | |
32514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32515 | result = (wxColourDatabase *)new wxColourDatabase(); | |
32516 | wxPyEndAllowThreads(__tstate); | |
32517 | if (PyErr_Occurred()) SWIG_fail; | |
32518 | } | |
32519 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
32520 | return resultobj; | |
32521 | fail: | |
32522 | return NULL; | |
32523 | } | |
32524 | ||
32525 | ||
32526 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32527 | PyObject *resultobj = 0; | |
32528 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32529 | void *argp1 = 0 ; | |
32530 | int res1 = 0 ; | |
32531 | PyObject *swig_obj[1] ; | |
32532 | ||
32533 | if (!args) SWIG_fail; | |
32534 | swig_obj[0] = args; | |
32535 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
32536 | if (!SWIG_IsOK(res1)) { | |
32537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32538 | } | |
32539 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32540 | { | |
32541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32542 | delete arg1; | |
32543 | ||
32544 | wxPyEndAllowThreads(__tstate); | |
32545 | if (PyErr_Occurred()) SWIG_fail; | |
32546 | } | |
32547 | resultobj = SWIG_Py_Void(); | |
32548 | return resultobj; | |
32549 | fail: | |
32550 | return NULL; | |
32551 | } | |
32552 | ||
32553 | ||
32554 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32555 | PyObject *resultobj = 0; | |
32556 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32557 | wxString *arg2 = 0 ; | |
32558 | wxColour result; | |
32559 | void *argp1 = 0 ; | |
32560 | int res1 = 0 ; | |
32561 | bool temp2 = false ; | |
32562 | PyObject * obj0 = 0 ; | |
32563 | PyObject * obj1 = 0 ; | |
32564 | char * kwnames[] = { | |
32565 | (char *) "self",(char *) "name", NULL | |
32566 | }; | |
32567 | ||
32568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
32569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32570 | if (!SWIG_IsOK(res1)) { | |
32571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32572 | } | |
32573 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32574 | { | |
32575 | arg2 = wxString_in_helper(obj1); | |
32576 | if (arg2 == NULL) SWIG_fail; | |
32577 | temp2 = true; | |
32578 | } | |
32579 | { | |
32580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32581 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
32582 | wxPyEndAllowThreads(__tstate); | |
32583 | if (PyErr_Occurred()) SWIG_fail; | |
32584 | } | |
32585 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32586 | { | |
32587 | if (temp2) | |
32588 | delete arg2; | |
32589 | } | |
32590 | return resultobj; | |
32591 | fail: | |
32592 | { | |
32593 | if (temp2) | |
32594 | delete arg2; | |
32595 | } | |
32596 | return NULL; | |
32597 | } | |
32598 | ||
32599 | ||
32600 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32601 | PyObject *resultobj = 0; | |
32602 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32603 | wxColour *arg2 = 0 ; | |
32604 | wxString result; | |
32605 | void *argp1 = 0 ; | |
32606 | int res1 = 0 ; | |
32607 | wxColour temp2 ; | |
32608 | PyObject * obj0 = 0 ; | |
32609 | PyObject * obj1 = 0 ; | |
32610 | char * kwnames[] = { | |
32611 | (char *) "self",(char *) "colour", NULL | |
32612 | }; | |
32613 | ||
32614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
32615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32616 | if (!SWIG_IsOK(res1)) { | |
32617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32618 | } | |
32619 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32620 | { | |
32621 | arg2 = &temp2; | |
32622 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32623 | } | |
32624 | { | |
32625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32626 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
32627 | wxPyEndAllowThreads(__tstate); | |
32628 | if (PyErr_Occurred()) SWIG_fail; | |
32629 | } | |
32630 | { | |
32631 | #if wxUSE_UNICODE | |
32632 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32633 | #else | |
32634 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32635 | #endif | |
32636 | } | |
32637 | return resultobj; | |
32638 | fail: | |
32639 | return NULL; | |
32640 | } | |
32641 | ||
32642 | ||
32643 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32644 | PyObject *resultobj = 0; | |
32645 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32646 | wxString *arg2 = 0 ; | |
32647 | wxColour *arg3 = 0 ; | |
32648 | void *argp1 = 0 ; | |
32649 | int res1 = 0 ; | |
32650 | bool temp2 = false ; | |
32651 | wxColour temp3 ; | |
32652 | PyObject * obj0 = 0 ; | |
32653 | PyObject * obj1 = 0 ; | |
32654 | PyObject * obj2 = 0 ; | |
32655 | char * kwnames[] = { | |
32656 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
32657 | }; | |
32658 | ||
32659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32661 | if (!SWIG_IsOK(res1)) { | |
32662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32663 | } | |
32664 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32665 | { | |
32666 | arg2 = wxString_in_helper(obj1); | |
32667 | if (arg2 == NULL) SWIG_fail; | |
32668 | temp2 = true; | |
32669 | } | |
32670 | { | |
32671 | arg3 = &temp3; | |
32672 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32673 | } | |
32674 | { | |
32675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32676 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
32677 | wxPyEndAllowThreads(__tstate); | |
32678 | if (PyErr_Occurred()) SWIG_fail; | |
32679 | } | |
32680 | resultobj = SWIG_Py_Void(); | |
32681 | { | |
32682 | if (temp2) | |
32683 | delete arg2; | |
32684 | } | |
32685 | return resultobj; | |
32686 | fail: | |
32687 | { | |
32688 | if (temp2) | |
32689 | delete arg2; | |
32690 | } | |
32691 | return NULL; | |
32692 | } | |
32693 | ||
32694 | ||
32695 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32696 | PyObject *resultobj = 0; | |
32697 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32698 | wxString *arg2 = 0 ; | |
32699 | int arg3 ; | |
32700 | int arg4 ; | |
32701 | int arg5 ; | |
32702 | void *argp1 = 0 ; | |
32703 | int res1 = 0 ; | |
32704 | bool temp2 = false ; | |
32705 | int val3 ; | |
32706 | int ecode3 = 0 ; | |
32707 | int val4 ; | |
32708 | int ecode4 = 0 ; | |
50efceee RD |
32709 | int val5 ; |
32710 | int ecode5 = 0 ; | |
0085ce49 RD |
32711 | PyObject * obj0 = 0 ; |
32712 | PyObject * obj1 = 0 ; | |
32713 | PyObject * obj2 = 0 ; | |
32714 | PyObject * obj3 = 0 ; | |
32715 | PyObject * obj4 = 0 ; | |
0085ce49 | 32716 | char * kwnames[] = { |
50efceee | 32717 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
0085ce49 RD |
32718 | }; |
32719 | ||
50efceee RD |
32720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
32721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
0085ce49 | 32722 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
32723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
32724 | } | |
32725 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32726 | { | |
32727 | arg2 = wxString_in_helper(obj1); | |
32728 | if (arg2 == NULL) SWIG_fail; | |
32729 | temp2 = true; | |
0085ce49 | 32730 | } |
0085ce49 RD |
32731 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
32732 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 32733 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
0085ce49 RD |
32734 | } |
32735 | arg3 = static_cast< int >(val3); | |
32736 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32737 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 32738 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
0085ce49 RD |
32739 | } |
32740 | arg4 = static_cast< int >(val4); | |
32741 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32742 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 32743 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
0085ce49 RD |
32744 | } |
32745 | arg5 = static_cast< int >(val5); | |
0085ce49 RD |
32746 | { |
32747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32748 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
0085ce49 RD |
32749 | wxPyEndAllowThreads(__tstate); |
32750 | if (PyErr_Occurred()) SWIG_fail; | |
32751 | } | |
50efceee | 32752 | resultobj = SWIG_Py_Void(); |
0085ce49 | 32753 | { |
50efceee RD |
32754 | if (temp2) |
32755 | delete arg2; | |
0085ce49 RD |
32756 | } |
32757 | return resultobj; | |
32758 | fail: | |
32759 | { | |
50efceee RD |
32760 | if (temp2) |
32761 | delete arg2; | |
0085ce49 RD |
32762 | } |
32763 | return NULL; | |
32764 | } | |
32765 | ||
32766 | ||
50efceee RD |
32767 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32768 | PyObject *obj; | |
32769 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32770 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
32771 | return SWIG_Py_Void(); | |
32772 | } | |
32773 | ||
32774 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32775 | return SWIG_Python_InitShadowInstance(args); | |
32776 | } | |
32777 | ||
32778 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
0085ce49 | 32779 | PyObject *resultobj = 0; |
50efceee | 32780 | wxFontList *result = 0 ; |
0085ce49 | 32781 | |
50efceee | 32782 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32783 | { |
32784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32785 | result = (wxFontList *)_wxPyInitTheFontList(); |
0085ce49 RD |
32786 | wxPyEndAllowThreads(__tstate); |
32787 | if (PyErr_Occurred()) SWIG_fail; | |
32788 | } | |
50efceee | 32789 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
0085ce49 RD |
32790 | return resultobj; |
32791 | fail: | |
32792 | return NULL; | |
32793 | } | |
32794 | ||
32795 | ||
50efceee | 32796 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 32797 | PyObject *resultobj = 0; |
50efceee | 32798 | wxPenList *result = 0 ; |
0085ce49 | 32799 | |
50efceee | 32800 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32801 | { |
32802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32803 | result = (wxPenList *)_wxPyInitThePenList(); |
0085ce49 RD |
32804 | wxPyEndAllowThreads(__tstate); |
32805 | if (PyErr_Occurred()) SWIG_fail; | |
32806 | } | |
50efceee | 32807 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
0085ce49 RD |
32808 | return resultobj; |
32809 | fail: | |
32810 | return NULL; | |
32811 | } | |
32812 | ||
32813 | ||
50efceee RD |
32814 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32815 | PyObject *resultobj = 0; | |
32816 | wxBrushList *result = 0 ; | |
0085ce49 | 32817 | |
50efceee RD |
32818 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
32819 | { | |
32820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32821 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
32822 | wxPyEndAllowThreads(__tstate); | |
32823 | if (PyErr_Occurred()) SWIG_fail; | |
32824 | } | |
32825 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32826 | return resultobj; | |
32827 | fail: | |
32828 | return NULL; | |
0085ce49 RD |
32829 | } |
32830 | ||
32831 | ||
50efceee RD |
32832 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32833 | PyObject *resultobj = 0; | |
32834 | wxColourDatabase *result = 0 ; | |
0085ce49 | 32835 | |
50efceee RD |
32836 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
32837 | { | |
32838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32839 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
32840 | wxPyEndAllowThreads(__tstate); | |
32841 | if (PyErr_Occurred()) SWIG_fail; | |
32842 | } | |
32843 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32844 | return resultobj; | |
32845 | fail: | |
32846 | return NULL; | |
0085ce49 RD |
32847 | } |
32848 | ||
32849 | ||
32850 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32851 | PyObject *resultobj = 0; | |
32852 | wxEffects *result = 0 ; | |
32853 | ||
32854 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
32855 | { | |
32856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32857 | result = (wxEffects *)new wxEffects(); | |
32858 | wxPyEndAllowThreads(__tstate); | |
32859 | if (PyErr_Occurred()) SWIG_fail; | |
32860 | } | |
32861 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
32862 | return resultobj; | |
32863 | fail: | |
32864 | return NULL; | |
32865 | } | |
32866 | ||
32867 | ||
32868 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32869 | PyObject *resultobj = 0; | |
32870 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32871 | wxColour result; | |
32872 | void *argp1 = 0 ; | |
32873 | int res1 = 0 ; | |
32874 | PyObject *swig_obj[1] ; | |
32875 | ||
32876 | if (!args) SWIG_fail; | |
32877 | swig_obj[0] = args; | |
32878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32879 | if (!SWIG_IsOK(res1)) { | |
32880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32881 | } | |
32882 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32883 | { | |
32884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32885 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
32886 | wxPyEndAllowThreads(__tstate); | |
32887 | if (PyErr_Occurred()) SWIG_fail; | |
32888 | } | |
32889 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32890 | return resultobj; | |
32891 | fail: | |
32892 | return NULL; | |
32893 | } | |
32894 | ||
32895 | ||
32896 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32897 | PyObject *resultobj = 0; | |
32898 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32899 | wxColour result; | |
32900 | void *argp1 = 0 ; | |
32901 | int res1 = 0 ; | |
32902 | PyObject *swig_obj[1] ; | |
32903 | ||
32904 | if (!args) SWIG_fail; | |
32905 | swig_obj[0] = args; | |
32906 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32907 | if (!SWIG_IsOK(res1)) { | |
32908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32909 | } | |
32910 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32911 | { | |
32912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32913 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
32914 | wxPyEndAllowThreads(__tstate); | |
32915 | if (PyErr_Occurred()) SWIG_fail; | |
32916 | } | |
32917 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32918 | return resultobj; | |
32919 | fail: | |
32920 | return NULL; | |
32921 | } | |
32922 | ||
32923 | ||
32924 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32925 | PyObject *resultobj = 0; | |
32926 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32927 | wxColour result; | |
32928 | void *argp1 = 0 ; | |
32929 | int res1 = 0 ; | |
32930 | PyObject *swig_obj[1] ; | |
32931 | ||
32932 | if (!args) SWIG_fail; | |
32933 | swig_obj[0] = args; | |
32934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32935 | if (!SWIG_IsOK(res1)) { | |
32936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32937 | } | |
32938 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32939 | { | |
32940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32941 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
32942 | wxPyEndAllowThreads(__tstate); | |
32943 | if (PyErr_Occurred()) SWIG_fail; | |
32944 | } | |
32945 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32946 | return resultobj; | |
32947 | fail: | |
32948 | return NULL; | |
32949 | } | |
32950 | ||
32951 | ||
32952 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32953 | PyObject *resultobj = 0; | |
32954 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32955 | wxColour result; | |
32956 | void *argp1 = 0 ; | |
32957 | int res1 = 0 ; | |
32958 | PyObject *swig_obj[1] ; | |
32959 | ||
32960 | if (!args) SWIG_fail; | |
32961 | swig_obj[0] = args; | |
32962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32963 | if (!SWIG_IsOK(res1)) { | |
32964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32965 | } | |
32966 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32967 | { | |
32968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32969 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
32970 | wxPyEndAllowThreads(__tstate); | |
32971 | if (PyErr_Occurred()) SWIG_fail; | |
32972 | } | |
32973 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32974 | return resultobj; | |
32975 | fail: | |
32976 | return NULL; | |
32977 | } | |
32978 | ||
32979 | ||
32980 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32981 | PyObject *resultobj = 0; | |
32982 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32983 | wxColour result; | |
32984 | void *argp1 = 0 ; | |
32985 | int res1 = 0 ; | |
32986 | PyObject *swig_obj[1] ; | |
32987 | ||
32988 | if (!args) SWIG_fail; | |
32989 | swig_obj[0] = args; | |
32990 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32991 | if (!SWIG_IsOK(res1)) { | |
32992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32993 | } | |
32994 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32995 | { | |
32996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32997 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
32998 | wxPyEndAllowThreads(__tstate); | |
32999 | if (PyErr_Occurred()) SWIG_fail; | |
33000 | } | |
33001 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33002 | return resultobj; | |
33003 | fail: | |
33004 | return NULL; | |
33005 | } | |
33006 | ||
33007 | ||
33008 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33009 | PyObject *resultobj = 0; | |
33010 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33011 | wxColour *arg2 = 0 ; | |
33012 | void *argp1 = 0 ; | |
33013 | int res1 = 0 ; | |
33014 | wxColour temp2 ; | |
33015 | PyObject * obj0 = 0 ; | |
33016 | PyObject * obj1 = 0 ; | |
33017 | char * kwnames[] = { | |
33018 | (char *) "self",(char *) "c", NULL | |
33019 | }; | |
33020 | ||
33021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33023 | if (!SWIG_IsOK(res1)) { | |
33024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33025 | } | |
33026 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33027 | { | |
33028 | arg2 = &temp2; | |
33029 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33030 | } | |
33031 | { | |
33032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33033 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
33034 | wxPyEndAllowThreads(__tstate); | |
33035 | if (PyErr_Occurred()) SWIG_fail; | |
33036 | } | |
33037 | resultobj = SWIG_Py_Void(); | |
33038 | return resultobj; | |
33039 | fail: | |
33040 | return NULL; | |
33041 | } | |
33042 | ||
33043 | ||
33044 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33045 | PyObject *resultobj = 0; | |
33046 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33047 | wxColour *arg2 = 0 ; | |
33048 | void *argp1 = 0 ; | |
33049 | int res1 = 0 ; | |
33050 | wxColour temp2 ; | |
33051 | PyObject * obj0 = 0 ; | |
33052 | PyObject * obj1 = 0 ; | |
33053 | char * kwnames[] = { | |
33054 | (char *) "self",(char *) "c", NULL | |
33055 | }; | |
33056 | ||
33057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33059 | if (!SWIG_IsOK(res1)) { | |
33060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33061 | } | |
33062 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33063 | { | |
33064 | arg2 = &temp2; | |
33065 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33066 | } | |
33067 | { | |
33068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33069 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
33070 | wxPyEndAllowThreads(__tstate); | |
33071 | if (PyErr_Occurred()) SWIG_fail; | |
33072 | } | |
33073 | resultobj = SWIG_Py_Void(); | |
33074 | return resultobj; | |
33075 | fail: | |
33076 | return NULL; | |
33077 | } | |
33078 | ||
33079 | ||
33080 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33081 | PyObject *resultobj = 0; | |
33082 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33083 | wxColour *arg2 = 0 ; | |
33084 | void *argp1 = 0 ; | |
33085 | int res1 = 0 ; | |
33086 | wxColour temp2 ; | |
33087 | PyObject * obj0 = 0 ; | |
33088 | PyObject * obj1 = 0 ; | |
33089 | char * kwnames[] = { | |
33090 | (char *) "self",(char *) "c", NULL | |
33091 | }; | |
33092 | ||
33093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33095 | if (!SWIG_IsOK(res1)) { | |
33096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33097 | } | |
33098 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33099 | { | |
33100 | arg2 = &temp2; | |
33101 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33102 | } | |
33103 | { | |
33104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33105 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
33106 | wxPyEndAllowThreads(__tstate); | |
33107 | if (PyErr_Occurred()) SWIG_fail; | |
33108 | } | |
33109 | resultobj = SWIG_Py_Void(); | |
33110 | return resultobj; | |
33111 | fail: | |
33112 | return NULL; | |
33113 | } | |
33114 | ||
33115 | ||
33116 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33117 | PyObject *resultobj = 0; | |
33118 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33119 | wxColour *arg2 = 0 ; | |
33120 | void *argp1 = 0 ; | |
33121 | int res1 = 0 ; | |
33122 | wxColour temp2 ; | |
33123 | PyObject * obj0 = 0 ; | |
33124 | PyObject * obj1 = 0 ; | |
33125 | char * kwnames[] = { | |
33126 | (char *) "self",(char *) "c", NULL | |
33127 | }; | |
33128 | ||
33129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33131 | if (!SWIG_IsOK(res1)) { | |
33132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33133 | } | |
33134 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33135 | { | |
33136 | arg2 = &temp2; | |
33137 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33138 | } | |
33139 | { | |
33140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33141 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
33142 | wxPyEndAllowThreads(__tstate); | |
33143 | if (PyErr_Occurred()) SWIG_fail; | |
33144 | } | |
33145 | resultobj = SWIG_Py_Void(); | |
33146 | return resultobj; | |
33147 | fail: | |
33148 | return NULL; | |
33149 | } | |
33150 | ||
33151 | ||
33152 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33153 | PyObject *resultobj = 0; | |
33154 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33155 | wxColour *arg2 = 0 ; | |
33156 | void *argp1 = 0 ; | |
33157 | int res1 = 0 ; | |
33158 | wxColour temp2 ; | |
33159 | PyObject * obj0 = 0 ; | |
33160 | PyObject * obj1 = 0 ; | |
33161 | char * kwnames[] = { | |
33162 | (char *) "self",(char *) "c", NULL | |
33163 | }; | |
33164 | ||
33165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33167 | if (!SWIG_IsOK(res1)) { | |
33168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33169 | } | |
33170 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33171 | { | |
33172 | arg2 = &temp2; | |
33173 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33174 | } | |
33175 | { | |
33176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33177 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
33178 | wxPyEndAllowThreads(__tstate); | |
33179 | if (PyErr_Occurred()) SWIG_fail; | |
33180 | } | |
33181 | resultobj = SWIG_Py_Void(); | |
33182 | return resultobj; | |
33183 | fail: | |
33184 | return NULL; | |
33185 | } | |
33186 | ||
33187 | ||
33188 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33189 | PyObject *resultobj = 0; | |
33190 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33191 | wxColour *arg2 = 0 ; | |
33192 | wxColour *arg3 = 0 ; | |
33193 | wxColour *arg4 = 0 ; | |
33194 | wxColour *arg5 = 0 ; | |
33195 | wxColour *arg6 = 0 ; | |
33196 | void *argp1 = 0 ; | |
33197 | int res1 = 0 ; | |
33198 | wxColour temp2 ; | |
33199 | wxColour temp3 ; | |
33200 | wxColour temp4 ; | |
33201 | wxColour temp5 ; | |
33202 | wxColour temp6 ; | |
33203 | PyObject * obj0 = 0 ; | |
33204 | PyObject * obj1 = 0 ; | |
33205 | PyObject * obj2 = 0 ; | |
33206 | PyObject * obj3 = 0 ; | |
33207 | PyObject * obj4 = 0 ; | |
33208 | PyObject * obj5 = 0 ; | |
33209 | char * kwnames[] = { | |
33210 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
33211 | }; | |
33212 | ||
33213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
33214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33215 | if (!SWIG_IsOK(res1)) { | |
33216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33217 | } | |
33218 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33219 | { | |
33220 | arg2 = &temp2; | |
33221 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33222 | } | |
33223 | { | |
33224 | arg3 = &temp3; | |
33225 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
33226 | } | |
33227 | { | |
33228 | arg4 = &temp4; | |
33229 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
33230 | } | |
33231 | { | |
33232 | arg5 = &temp5; | |
33233 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
33234 | } | |
33235 | { | |
33236 | arg6 = &temp6; | |
33237 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
33238 | } | |
33239 | { | |
33240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33241 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
33242 | wxPyEndAllowThreads(__tstate); | |
33243 | if (PyErr_Occurred()) SWIG_fail; | |
33244 | } | |
33245 | resultobj = SWIG_Py_Void(); | |
33246 | return resultobj; | |
33247 | fail: | |
33248 | return NULL; | |
33249 | } | |
33250 | ||
33251 | ||
33252 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33253 | PyObject *resultobj = 0; | |
33254 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33255 | wxDC *arg2 = 0 ; | |
33256 | wxRect *arg3 = 0 ; | |
33257 | int arg4 = (int) 1 ; | |
33258 | void *argp1 = 0 ; | |
33259 | int res1 = 0 ; | |
33260 | void *argp2 = 0 ; | |
33261 | int res2 = 0 ; | |
33262 | wxRect temp3 ; | |
33263 | int val4 ; | |
33264 | int ecode4 = 0 ; | |
33265 | PyObject * obj0 = 0 ; | |
33266 | PyObject * obj1 = 0 ; | |
33267 | PyObject * obj2 = 0 ; | |
33268 | PyObject * obj3 = 0 ; | |
33269 | char * kwnames[] = { | |
33270 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
33271 | }; | |
33272 | ||
33273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33275 | if (!SWIG_IsOK(res1)) { | |
33276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33277 | } | |
33278 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33279 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
33280 | if (!SWIG_IsOK(res2)) { | |
33281 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
33282 | } | |
33283 | if (!argp2) { | |
33284 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
33285 | } | |
33286 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
33287 | { | |
33288 | arg3 = &temp3; | |
33289 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
33290 | } | |
33291 | if (obj3) { | |
33292 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33293 | if (!SWIG_IsOK(ecode4)) { | |
33294 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
33295 | } | |
33296 | arg4 = static_cast< int >(val4); | |
33297 | } | |
33298 | { | |
33299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33300 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
33301 | wxPyEndAllowThreads(__tstate); | |
33302 | if (PyErr_Occurred()) SWIG_fail; | |
33303 | } | |
33304 | resultobj = SWIG_Py_Void(); | |
33305 | return resultobj; | |
33306 | fail: | |
33307 | return NULL; | |
33308 | } | |
33309 | ||
33310 | ||
33311 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33312 | PyObject *resultobj = 0; | |
33313 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33314 | wxRect *arg2 = 0 ; | |
33315 | wxDC *arg3 = 0 ; | |
33316 | wxBitmap *arg4 = 0 ; | |
33317 | bool result; | |
33318 | void *argp1 = 0 ; | |
33319 | int res1 = 0 ; | |
33320 | wxRect temp2 ; | |
33321 | void *argp3 = 0 ; | |
33322 | int res3 = 0 ; | |
33323 | void *argp4 = 0 ; | |
33324 | int res4 = 0 ; | |
33325 | PyObject * obj0 = 0 ; | |
33326 | PyObject * obj1 = 0 ; | |
33327 | PyObject * obj2 = 0 ; | |
33328 | PyObject * obj3 = 0 ; | |
33329 | char * kwnames[] = { | |
33330 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
33331 | }; | |
33332 | ||
33333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33335 | if (!SWIG_IsOK(res1)) { | |
33336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33337 | } | |
33338 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33339 | { | |
33340 | arg2 = &temp2; | |
33341 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
33342 | } | |
33343 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33344 | if (!SWIG_IsOK(res3)) { | |
33345 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33346 | } | |
33347 | if (!argp3) { | |
33348 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33349 | } | |
33350 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33351 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
33352 | if (!SWIG_IsOK(res4)) { | |
33353 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33354 | } | |
33355 | if (!argp4) { | |
33356 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33357 | } | |
33358 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
33359 | { | |
33360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33361 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
33362 | wxPyEndAllowThreads(__tstate); | |
33363 | if (PyErr_Occurred()) SWIG_fail; | |
33364 | } | |
33365 | { | |
33366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33367 | } | |
33368 | return resultobj; | |
33369 | fail: | |
33370 | return NULL; | |
33371 | } | |
33372 | ||
33373 | ||
33374 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33375 | PyObject *obj; | |
33376 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33377 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
33378 | return SWIG_Py_Void(); | |
33379 | } | |
33380 | ||
33381 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33382 | return SWIG_Python_InitShadowInstance(args); | |
33383 | } | |
33384 | ||
33385 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33386 | PyObject *resultobj = 0; | |
33387 | int arg1 ; | |
33388 | int arg2 ; | |
33389 | bool arg3 ; | |
33390 | wxSplitterRenderParams *result = 0 ; | |
33391 | int val1 ; | |
33392 | int ecode1 = 0 ; | |
33393 | int val2 ; | |
33394 | int ecode2 = 0 ; | |
33395 | bool val3 ; | |
33396 | int ecode3 = 0 ; | |
33397 | PyObject * obj0 = 0 ; | |
33398 | PyObject * obj1 = 0 ; | |
33399 | PyObject * obj2 = 0 ; | |
33400 | char * kwnames[] = { | |
33401 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
33402 | }; | |
33403 | ||
33404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33405 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
33406 | if (!SWIG_IsOK(ecode1)) { | |
33407 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
33408 | } | |
33409 | arg1 = static_cast< int >(val1); | |
33410 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33411 | if (!SWIG_IsOK(ecode2)) { | |
33412 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
33413 | } | |
33414 | arg2 = static_cast< int >(val2); | |
33415 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
33416 | if (!SWIG_IsOK(ecode3)) { | |
33417 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
33418 | } | |
33419 | arg3 = static_cast< bool >(val3); | |
33420 | { | |
33421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33422 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
33423 | wxPyEndAllowThreads(__tstate); | |
33424 | if (PyErr_Occurred()) SWIG_fail; | |
33425 | } | |
33426 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
33427 | return resultobj; | |
33428 | fail: | |
33429 | return NULL; | |
33430 | } | |
33431 | ||
33432 | ||
33433 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33434 | PyObject *resultobj = 0; | |
33435 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33436 | void *argp1 = 0 ; | |
33437 | int res1 = 0 ; | |
33438 | PyObject *swig_obj[1] ; | |
33439 | ||
33440 | if (!args) SWIG_fail; | |
33441 | swig_obj[0] = args; | |
33442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
33443 | if (!SWIG_IsOK(res1)) { | |
33444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33445 | } | |
33446 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33447 | { | |
33448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33449 | delete arg1; | |
33450 | ||
33451 | wxPyEndAllowThreads(__tstate); | |
33452 | if (PyErr_Occurred()) SWIG_fail; | |
33453 | } | |
33454 | resultobj = SWIG_Py_Void(); | |
33455 | return resultobj; | |
33456 | fail: | |
33457 | return NULL; | |
33458 | } | |
33459 | ||
33460 | ||
33461 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33462 | PyObject *resultobj = 0; | |
33463 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33464 | int result; | |
33465 | void *argp1 = 0 ; | |
33466 | int res1 = 0 ; | |
33467 | PyObject *swig_obj[1] ; | |
33468 | ||
33469 | if (!args) SWIG_fail; | |
33470 | swig_obj[0] = args; | |
33471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33472 | if (!SWIG_IsOK(res1)) { | |
33473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33474 | } | |
33475 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33476 | result = (int)(int) ((arg1)->widthSash); | |
33477 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33478 | return resultobj; | |
33479 | fail: | |
33480 | return NULL; | |
33481 | } | |
33482 | ||
33483 | ||
33484 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33485 | PyObject *resultobj = 0; | |
33486 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33487 | int result; | |
33488 | void *argp1 = 0 ; | |
33489 | int res1 = 0 ; | |
33490 | PyObject *swig_obj[1] ; | |
33491 | ||
33492 | if (!args) SWIG_fail; | |
33493 | swig_obj[0] = args; | |
33494 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33495 | if (!SWIG_IsOK(res1)) { | |
33496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33497 | } | |
33498 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33499 | result = (int)(int) ((arg1)->border); | |
33500 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33501 | return resultobj; | |
33502 | fail: | |
33503 | return NULL; | |
33504 | } | |
33505 | ||
33506 | ||
33507 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33508 | PyObject *resultobj = 0; | |
33509 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33510 | bool result; | |
33511 | void *argp1 = 0 ; | |
33512 | int res1 = 0 ; | |
33513 | PyObject *swig_obj[1] ; | |
33514 | ||
33515 | if (!args) SWIG_fail; | |
33516 | swig_obj[0] = args; | |
33517 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33518 | if (!SWIG_IsOK(res1)) { | |
33519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33520 | } | |
33521 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33522 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
33523 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
33524 | return resultobj; | |
33525 | fail: | |
33526 | return NULL; | |
33527 | } | |
33528 | ||
33529 | ||
33530 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33531 | PyObject *obj; | |
33532 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33533 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
33534 | return SWIG_Py_Void(); | |
33535 | } | |
33536 | ||
33537 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33538 | return SWIG_Python_InitShadowInstance(args); | |
33539 | } | |
33540 | ||
33d6fd3b RD |
33541 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33542 | PyObject *resultobj = 0; | |
33543 | wxHeaderButtonParams *result = 0 ; | |
33544 | ||
33545 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
33546 | { | |
33547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33548 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
33549 | wxPyEndAllowThreads(__tstate); | |
33550 | if (PyErr_Occurred()) SWIG_fail; | |
33551 | } | |
33552 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
33553 | return resultobj; | |
33554 | fail: | |
33555 | return NULL; | |
33556 | } | |
33557 | ||
33558 | ||
33559 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33560 | PyObject *resultobj = 0; | |
33561 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33562 | void *argp1 = 0 ; | |
33563 | int res1 = 0 ; | |
33564 | PyObject *swig_obj[1] ; | |
33565 | ||
33566 | if (!args) SWIG_fail; | |
33567 | swig_obj[0] = args; | |
33568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
33569 | if (!SWIG_IsOK(res1)) { | |
33570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33571 | } | |
33572 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33573 | { | |
33574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33575 | delete arg1; | |
33576 | ||
33577 | wxPyEndAllowThreads(__tstate); | |
33578 | if (PyErr_Occurred()) SWIG_fail; | |
33579 | } | |
33580 | resultobj = SWIG_Py_Void(); | |
33581 | return resultobj; | |
33582 | fail: | |
33583 | return NULL; | |
33584 | } | |
33585 | ||
33586 | ||
33587 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33588 | PyObject *resultobj = 0; | |
33589 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33590 | wxColour *arg2 = (wxColour *) 0 ; | |
33591 | void *argp1 = 0 ; | |
33592 | int res1 = 0 ; | |
33593 | wxColour temp2 ; | |
33594 | PyObject *swig_obj[2] ; | |
33595 | ||
33596 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
33597 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33598 | if (!SWIG_IsOK(res1)) { | |
33599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33600 | } | |
33601 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33602 | { | |
33603 | arg2 = &temp2; | |
33604 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33605 | } | |
33606 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
33607 | ||
33608 | resultobj = SWIG_Py_Void(); | |
33609 | return resultobj; | |
33610 | fail: | |
33611 | return NULL; | |
33612 | } | |
33613 | ||
33614 | ||
33615 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33616 | PyObject *resultobj = 0; | |
33617 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33618 | wxColour *result = 0 ; | |
33619 | void *argp1 = 0 ; | |
33620 | int res1 = 0 ; | |
33621 | PyObject *swig_obj[1] ; | |
33622 | ||
33623 | if (!args) SWIG_fail; | |
33624 | swig_obj[0] = args; | |
33625 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33626 | if (!SWIG_IsOK(res1)) { | |
33627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33628 | } | |
33629 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33630 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
33631 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33632 | return resultobj; | |
33633 | fail: | |
33634 | return NULL; | |
33635 | } | |
33636 | ||
33637 | ||
33638 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33639 | PyObject *resultobj = 0; | |
33640 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33641 | wxColour *arg2 = (wxColour *) 0 ; | |
33642 | void *argp1 = 0 ; | |
33643 | int res1 = 0 ; | |
33644 | wxColour temp2 ; | |
33645 | PyObject *swig_obj[2] ; | |
33646 | ||
33647 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
33648 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33649 | if (!SWIG_IsOK(res1)) { | |
33650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33651 | } | |
33652 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33653 | { | |
33654 | arg2 = &temp2; | |
33655 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33656 | } | |
33657 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
33658 | ||
33659 | resultobj = SWIG_Py_Void(); | |
33660 | return resultobj; | |
33661 | fail: | |
33662 | return NULL; | |
33663 | } | |
33664 | ||
33665 | ||
33666 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33667 | PyObject *resultobj = 0; | |
33668 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33669 | wxColour *result = 0 ; | |
33670 | void *argp1 = 0 ; | |
33671 | int res1 = 0 ; | |
33672 | PyObject *swig_obj[1] ; | |
33673 | ||
33674 | if (!args) SWIG_fail; | |
33675 | swig_obj[0] = args; | |
33676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33677 | if (!SWIG_IsOK(res1)) { | |
33678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33679 | } | |
33680 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33681 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
33682 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33683 | return resultobj; | |
33684 | fail: | |
33685 | return NULL; | |
33686 | } | |
33687 | ||
33688 | ||
33689 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33690 | PyObject *resultobj = 0; | |
33691 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33692 | wxString *arg2 = (wxString *) 0 ; | |
33693 | void *argp1 = 0 ; | |
33694 | int res1 = 0 ; | |
33695 | bool temp2 = false ; | |
33696 | PyObject *swig_obj[2] ; | |
33697 | ||
33698 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
33699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33700 | if (!SWIG_IsOK(res1)) { | |
33701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33702 | } | |
33703 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33704 | { | |
33705 | arg2 = wxString_in_helper(swig_obj[1]); | |
33706 | if (arg2 == NULL) SWIG_fail; | |
33707 | temp2 = true; | |
33708 | } | |
33709 | if (arg1) (arg1)->m_labelText = *arg2; | |
33710 | ||
33711 | resultobj = SWIG_Py_Void(); | |
33712 | { | |
33713 | if (temp2) | |
33714 | delete arg2; | |
33715 | } | |
33716 | return resultobj; | |
33717 | fail: | |
33718 | { | |
33719 | if (temp2) | |
33720 | delete arg2; | |
33721 | } | |
33722 | return NULL; | |
33723 | } | |
33724 | ||
33725 | ||
33726 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33727 | PyObject *resultobj = 0; | |
33728 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33729 | wxString *result = 0 ; | |
33730 | void *argp1 = 0 ; | |
33731 | int res1 = 0 ; | |
33732 | PyObject *swig_obj[1] ; | |
33733 | ||
33734 | if (!args) SWIG_fail; | |
33735 | swig_obj[0] = args; | |
33736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33737 | if (!SWIG_IsOK(res1)) { | |
33738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33739 | } | |
33740 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33741 | result = (wxString *)& ((arg1)->m_labelText); | |
33742 | { | |
33743 | #if wxUSE_UNICODE | |
33744 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33745 | #else | |
33746 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33747 | #endif | |
33748 | } | |
33749 | return resultobj; | |
33750 | fail: | |
33751 | return NULL; | |
33752 | } | |
33753 | ||
33754 | ||
33755 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33756 | PyObject *resultobj = 0; | |
33757 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33758 | wxFont *arg2 = (wxFont *) 0 ; | |
33759 | void *argp1 = 0 ; | |
33760 | int res1 = 0 ; | |
33761 | void *argp2 = 0 ; | |
33762 | int res2 = 0 ; | |
33763 | PyObject *swig_obj[2] ; | |
33764 | ||
33765 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
33766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33767 | if (!SWIG_IsOK(res1)) { | |
33768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33769 | } | |
33770 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33771 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
33772 | if (!SWIG_IsOK(res2)) { | |
33773 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
33774 | } | |
33775 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
33776 | if (arg1) (arg1)->m_labelFont = *arg2; | |
33777 | ||
33778 | resultobj = SWIG_Py_Void(); | |
33779 | return resultobj; | |
33780 | fail: | |
33781 | return NULL; | |
33782 | } | |
33783 | ||
33784 | ||
33785 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33786 | PyObject *resultobj = 0; | |
33787 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33788 | wxFont *result = 0 ; | |
33789 | void *argp1 = 0 ; | |
33790 | int res1 = 0 ; | |
33791 | PyObject *swig_obj[1] ; | |
33792 | ||
33793 | if (!args) SWIG_fail; | |
33794 | swig_obj[0] = args; | |
33795 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33796 | if (!SWIG_IsOK(res1)) { | |
33797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33798 | } | |
33799 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33800 | result = (wxFont *)& ((arg1)->m_labelFont); | |
33801 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
33802 | return resultobj; | |
33803 | fail: | |
33804 | return NULL; | |
33805 | } | |
33806 | ||
33807 | ||
33808 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33809 | PyObject *resultobj = 0; | |
33810 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33811 | wxColour *arg2 = (wxColour *) 0 ; | |
33812 | void *argp1 = 0 ; | |
33813 | int res1 = 0 ; | |
33814 | wxColour temp2 ; | |
33815 | PyObject *swig_obj[2] ; | |
33816 | ||
33817 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
33818 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33819 | if (!SWIG_IsOK(res1)) { | |
33820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33821 | } | |
33822 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33823 | { | |
33824 | arg2 = &temp2; | |
33825 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33826 | } | |
33827 | if (arg1) (arg1)->m_labelColour = *arg2; | |
33828 | ||
33829 | resultobj = SWIG_Py_Void(); | |
33830 | return resultobj; | |
33831 | fail: | |
33832 | return NULL; | |
33833 | } | |
33834 | ||
33835 | ||
33836 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33837 | PyObject *resultobj = 0; | |
33838 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33839 | wxColour *result = 0 ; | |
33840 | void *argp1 = 0 ; | |
33841 | int res1 = 0 ; | |
33842 | PyObject *swig_obj[1] ; | |
33843 | ||
33844 | if (!args) SWIG_fail; | |
33845 | swig_obj[0] = args; | |
33846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33847 | if (!SWIG_IsOK(res1)) { | |
33848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33849 | } | |
33850 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33851 | result = (wxColour *)& ((arg1)->m_labelColour); | |
33852 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33853 | return resultobj; | |
33854 | fail: | |
33855 | return NULL; | |
33856 | } | |
33857 | ||
33858 | ||
33859 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33860 | PyObject *resultobj = 0; | |
33861 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33862 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
33863 | void *argp1 = 0 ; | |
33864 | int res1 = 0 ; | |
33865 | void *argp2 = 0 ; | |
33866 | int res2 = 0 ; | |
33867 | PyObject *swig_obj[2] ; | |
33868 | ||
33869 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
33870 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33871 | if (!SWIG_IsOK(res1)) { | |
33872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33873 | } | |
33874 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33875 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33876 | if (!SWIG_IsOK(res2)) { | |
33877 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
33878 | } | |
33879 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
33880 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
33881 | ||
33882 | resultobj = SWIG_Py_Void(); | |
33883 | return resultobj; | |
33884 | fail: | |
33885 | return NULL; | |
33886 | } | |
33887 | ||
33888 | ||
33889 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33890 | PyObject *resultobj = 0; | |
33891 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33892 | wxBitmap *result = 0 ; | |
33893 | void *argp1 = 0 ; | |
33894 | int res1 = 0 ; | |
33895 | PyObject *swig_obj[1] ; | |
33896 | ||
33897 | if (!args) SWIG_fail; | |
33898 | swig_obj[0] = args; | |
33899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33900 | if (!SWIG_IsOK(res1)) { | |
33901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33902 | } | |
33903 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33904 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
33905 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33906 | return resultobj; | |
33907 | fail: | |
33908 | return NULL; | |
33909 | } | |
33910 | ||
33911 | ||
33912 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33913 | PyObject *resultobj = 0; | |
33914 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33915 | int arg2 ; | |
33916 | void *argp1 = 0 ; | |
33917 | int res1 = 0 ; | |
33918 | int val2 ; | |
33919 | int ecode2 = 0 ; | |
33920 | PyObject *swig_obj[2] ; | |
33921 | ||
33922 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
33923 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33924 | if (!SWIG_IsOK(res1)) { | |
33925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33926 | } | |
33927 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33928 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
33929 | if (!SWIG_IsOK(ecode2)) { | |
33930 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
33931 | } | |
33932 | arg2 = static_cast< int >(val2); | |
33933 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
33934 | ||
33935 | resultobj = SWIG_Py_Void(); | |
33936 | return resultobj; | |
33937 | fail: | |
33938 | return NULL; | |
33939 | } | |
33940 | ||
33941 | ||
33942 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33943 | PyObject *resultobj = 0; | |
33944 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33945 | int result; | |
33946 | void *argp1 = 0 ; | |
33947 | int res1 = 0 ; | |
33948 | PyObject *swig_obj[1] ; | |
33949 | ||
33950 | if (!args) SWIG_fail; | |
33951 | swig_obj[0] = args; | |
33952 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33953 | if (!SWIG_IsOK(res1)) { | |
33954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33955 | } | |
33956 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33957 | result = (int) ((arg1)->m_labelAlignment); | |
33958 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33959 | return resultobj; | |
33960 | fail: | |
33961 | return NULL; | |
33962 | } | |
33963 | ||
33964 | ||
33965 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33966 | PyObject *obj; | |
33967 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33968 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
33969 | return SWIG_Py_Void(); | |
33970 | } | |
33971 | ||
33972 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33973 | return SWIG_Python_InitShadowInstance(args); | |
33974 | } | |
33975 | ||
0085ce49 RD |
33976 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33977 | PyObject *resultobj = 0; | |
33978 | int arg1 ; | |
33979 | int arg2 ; | |
33980 | wxRendererVersion *result = 0 ; | |
33981 | int val1 ; | |
33982 | int ecode1 = 0 ; | |
33983 | int val2 ; | |
33984 | int ecode2 = 0 ; | |
33985 | PyObject * obj0 = 0 ; | |
33986 | PyObject * obj1 = 0 ; | |
33987 | char * kwnames[] = { | |
33988 | (char *) "version_",(char *) "age_", NULL | |
33989 | }; | |
33990 | ||
33991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
33992 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
33993 | if (!SWIG_IsOK(ecode1)) { | |
33994 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
33995 | } | |
33996 | arg1 = static_cast< int >(val1); | |
33997 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33998 | if (!SWIG_IsOK(ecode2)) { | |
33999 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
34000 | } | |
34001 | arg2 = static_cast< int >(val2); | |
34002 | { | |
34003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34004 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
34005 | wxPyEndAllowThreads(__tstate); | |
34006 | if (PyErr_Occurred()) SWIG_fail; | |
34007 | } | |
34008 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
34009 | return resultobj; | |
34010 | fail: | |
34011 | return NULL; | |
34012 | } | |
34013 | ||
34014 | ||
34015 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34016 | PyObject *resultobj = 0; | |
34017 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34018 | void *argp1 = 0 ; | |
34019 | int res1 = 0 ; | |
34020 | PyObject *swig_obj[1] ; | |
34021 | ||
34022 | if (!args) SWIG_fail; | |
34023 | swig_obj[0] = args; | |
34024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
34025 | if (!SWIG_IsOK(res1)) { | |
34026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34027 | } | |
34028 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34029 | { | |
34030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34031 | delete arg1; | |
34032 | ||
34033 | wxPyEndAllowThreads(__tstate); | |
34034 | if (PyErr_Occurred()) SWIG_fail; | |
34035 | } | |
34036 | resultobj = SWIG_Py_Void(); | |
34037 | return resultobj; | |
34038 | fail: | |
34039 | return NULL; | |
34040 | } | |
34041 | ||
34042 | ||
34043 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34044 | PyObject *resultobj = 0; | |
34045 | wxRendererVersion *arg1 = 0 ; | |
34046 | bool result; | |
34047 | void *argp1 = 0 ; | |
34048 | int res1 = 0 ; | |
34049 | PyObject * obj0 = 0 ; | |
34050 | char * kwnames[] = { | |
34051 | (char *) "ver", NULL | |
34052 | }; | |
34053 | ||
34054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
34055 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
34056 | if (!SWIG_IsOK(res1)) { | |
34057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34058 | } | |
34059 | if (!argp1) { | |
34060 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34061 | } | |
34062 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34063 | { | |
34064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34065 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
34066 | wxPyEndAllowThreads(__tstate); | |
34067 | if (PyErr_Occurred()) SWIG_fail; | |
34068 | } | |
34069 | { | |
34070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34071 | } | |
34072 | return resultobj; | |
34073 | fail: | |
34074 | return NULL; | |
34075 | } | |
34076 | ||
34077 | ||
34078 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34079 | PyObject *resultobj = 0; | |
34080 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34081 | int result; | |
34082 | void *argp1 = 0 ; | |
34083 | int res1 = 0 ; | |
34084 | PyObject *swig_obj[1] ; | |
34085 | ||
34086 | if (!args) SWIG_fail; | |
34087 | swig_obj[0] = args; | |
34088 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34089 | if (!SWIG_IsOK(res1)) { | |
34090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34091 | } | |
34092 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34093 | result = (int)(int) ((arg1)->version); | |
34094 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34095 | return resultobj; | |
34096 | fail: | |
34097 | return NULL; | |
34098 | } | |
34099 | ||
34100 | ||
34101 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34102 | PyObject *resultobj = 0; | |
34103 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34104 | int result; | |
34105 | void *argp1 = 0 ; | |
34106 | int res1 = 0 ; | |
34107 | PyObject *swig_obj[1] ; | |
34108 | ||
34109 | if (!args) SWIG_fail; | |
34110 | swig_obj[0] = args; | |
34111 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34112 | if (!SWIG_IsOK(res1)) { | |
34113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34114 | } | |
34115 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34116 | result = (int)(int) ((arg1)->age); | |
34117 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34118 | return resultobj; | |
34119 | fail: | |
34120 | return NULL; | |
34121 | } | |
34122 | ||
34123 | ||
34124 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34125 | PyObject *obj; | |
34126 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34127 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
34128 | return SWIG_Py_Void(); | |
34129 | } | |
34130 | ||
34131 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34132 | return SWIG_Python_InitShadowInstance(args); | |
34133 | } | |
34134 | ||
34135 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34136 | PyObject *resultobj = 0; | |
34137 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34138 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34139 | wxDC *arg3 = 0 ; | |
34140 | wxRect *arg4 = 0 ; | |
34141 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
34142 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
34143 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 34144 | int result; |
0085ce49 RD |
34145 | void *argp1 = 0 ; |
34146 | int res1 = 0 ; | |
34147 | void *argp2 = 0 ; | |
34148 | int res2 = 0 ; | |
34149 | void *argp3 = 0 ; | |
34150 | int res3 = 0 ; | |
34151 | wxRect temp4 ; | |
34152 | int val5 ; | |
34153 | int ecode5 = 0 ; | |
33d6fd3b RD |
34154 | int val6 ; |
34155 | int ecode6 = 0 ; | |
34156 | void *argp7 = 0 ; | |
34157 | int res7 = 0 ; | |
0085ce49 RD |
34158 | PyObject * obj0 = 0 ; |
34159 | PyObject * obj1 = 0 ; | |
34160 | PyObject * obj2 = 0 ; | |
34161 | PyObject * obj3 = 0 ; | |
34162 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
34163 | PyObject * obj5 = 0 ; |
34164 | PyObject * obj6 = 0 ; | |
0085ce49 | 34165 | char * kwnames[] = { |
33d6fd3b | 34166 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
0085ce49 RD |
34167 | }; |
34168 | ||
33d6fd3b | 34169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
0085ce49 RD |
34170 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34171 | if (!SWIG_IsOK(res1)) { | |
34172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34173 | } | |
34174 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34175 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34176 | if (!SWIG_IsOK(res2)) { | |
34177 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34178 | } | |
34179 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34180 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34181 | if (!SWIG_IsOK(res3)) { | |
34182 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34183 | } | |
34184 | if (!argp3) { | |
34185 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34186 | } | |
34187 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34188 | { | |
34189 | arg4 = &temp4; | |
34190 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34191 | } | |
34192 | if (obj4) { | |
34193 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34194 | if (!SWIG_IsOK(ecode5)) { | |
34195 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
34196 | } | |
34197 | arg5 = static_cast< int >(val5); | |
34198 | } | |
33d6fd3b RD |
34199 | if (obj5) { |
34200 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34201 | if (!SWIG_IsOK(ecode6)) { | |
34202 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34203 | } | |
34204 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34205 | } | |
34206 | if (obj6) { | |
34207 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34208 | if (!SWIG_IsOK(res7)) { | |
34209 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
34210 | } | |
34211 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
34212 | } | |
34213 | { | |
34214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 34215 | result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
33d6fd3b RD |
34216 | wxPyEndAllowThreads(__tstate); |
34217 | if (PyErr_Occurred()) SWIG_fail; | |
34218 | } | |
723282b6 | 34219 | resultobj = SWIG_From_int(static_cast< int >(result)); |
33d6fd3b RD |
34220 | return resultobj; |
34221 | fail: | |
34222 | return NULL; | |
34223 | } | |
34224 | ||
34225 | ||
34226 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34227 | PyObject *resultobj = 0; | |
34228 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34229 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34230 | wxDC *arg3 = 0 ; | |
34231 | wxRect *arg4 = 0 ; | |
34232 | int arg5 = (int) 0 ; | |
34233 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
34234 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 34235 | int result; |
33d6fd3b RD |
34236 | void *argp1 = 0 ; |
34237 | int res1 = 0 ; | |
34238 | void *argp2 = 0 ; | |
34239 | int res2 = 0 ; | |
34240 | void *argp3 = 0 ; | |
34241 | int res3 = 0 ; | |
34242 | wxRect temp4 ; | |
34243 | int val5 ; | |
34244 | int ecode5 = 0 ; | |
34245 | int val6 ; | |
34246 | int ecode6 = 0 ; | |
34247 | void *argp7 = 0 ; | |
34248 | int res7 = 0 ; | |
34249 | PyObject * obj0 = 0 ; | |
34250 | PyObject * obj1 = 0 ; | |
34251 | PyObject * obj2 = 0 ; | |
34252 | PyObject * obj3 = 0 ; | |
34253 | PyObject * obj4 = 0 ; | |
34254 | PyObject * obj5 = 0 ; | |
34255 | PyObject * obj6 = 0 ; | |
34256 | char * kwnames[] = { | |
34257 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
34258 | }; | |
34259 | ||
34260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34261 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34262 | if (!SWIG_IsOK(res1)) { | |
34263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34264 | } | |
34265 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34266 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34267 | if (!SWIG_IsOK(res2)) { | |
34268 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34269 | } | |
34270 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34271 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34272 | if (!SWIG_IsOK(res3)) { | |
34273 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34274 | } | |
34275 | if (!argp3) { | |
34276 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34277 | } | |
34278 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34279 | { | |
34280 | arg4 = &temp4; | |
34281 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34282 | } | |
34283 | if (obj4) { | |
34284 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34285 | if (!SWIG_IsOK(ecode5)) { | |
34286 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
34287 | } | |
34288 | arg5 = static_cast< int >(val5); | |
34289 | } | |
34290 | if (obj5) { | |
34291 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34292 | if (!SWIG_IsOK(ecode6)) { | |
34293 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34294 | } | |
34295 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34296 | } | |
34297 | if (obj6) { | |
34298 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34299 | if (!SWIG_IsOK(res7)) { | |
34300 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
34301 | } | |
34302 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
34303 | } | |
0085ce49 RD |
34304 | { |
34305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 34306 | result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
0085ce49 RD |
34307 | wxPyEndAllowThreads(__tstate); |
34308 | if (PyErr_Occurred()) SWIG_fail; | |
34309 | } | |
723282b6 | 34310 | resultobj = SWIG_From_int(static_cast< int >(result)); |
0085ce49 RD |
34311 | return resultobj; |
34312 | fail: | |
34313 | return NULL; | |
34314 | } | |
34315 | ||
34316 | ||
33d6fd3b RD |
34317 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34318 | PyObject *resultobj = 0; | |
34319 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34320 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34321 | int result; | |
34322 | void *argp1 = 0 ; | |
34323 | int res1 = 0 ; | |
34324 | void *argp2 = 0 ; | |
34325 | int res2 = 0 ; | |
34326 | PyObject * obj0 = 0 ; | |
34327 | PyObject * obj1 = 0 ; | |
34328 | char * kwnames[] = { | |
34329 | (char *) "self",(char *) "win", NULL | |
34330 | }; | |
34331 | ||
34332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
34333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34334 | if (!SWIG_IsOK(res1)) { | |
34335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34336 | } | |
34337 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34338 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34339 | if (!SWIG_IsOK(res2)) { | |
34340 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34341 | } | |
34342 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34343 | { | |
34344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34345 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
34346 | wxPyEndAllowThreads(__tstate); | |
34347 | if (PyErr_Occurred()) SWIG_fail; | |
34348 | } | |
34349 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34350 | return resultobj; | |
34351 | fail: | |
34352 | return NULL; | |
34353 | } | |
34354 | ||
34355 | ||
0085ce49 RD |
34356 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34357 | PyObject *resultobj = 0; | |
34358 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34359 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34360 | wxDC *arg3 = 0 ; | |
34361 | wxRect *arg4 = 0 ; | |
34362 | int arg5 = (int) 0 ; | |
34363 | void *argp1 = 0 ; | |
34364 | int res1 = 0 ; | |
34365 | void *argp2 = 0 ; | |
34366 | int res2 = 0 ; | |
34367 | void *argp3 = 0 ; | |
34368 | int res3 = 0 ; | |
34369 | wxRect temp4 ; | |
34370 | int val5 ; | |
34371 | int ecode5 = 0 ; | |
34372 | PyObject * obj0 = 0 ; | |
34373 | PyObject * obj1 = 0 ; | |
34374 | PyObject * obj2 = 0 ; | |
34375 | PyObject * obj3 = 0 ; | |
34376 | PyObject * obj4 = 0 ; | |
34377 | char * kwnames[] = { | |
34378 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34379 | }; | |
34380 | ||
34381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34383 | if (!SWIG_IsOK(res1)) { | |
34384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34385 | } | |
34386 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34387 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34388 | if (!SWIG_IsOK(res2)) { | |
34389 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34390 | } | |
34391 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34392 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34393 | if (!SWIG_IsOK(res3)) { | |
34394 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34395 | } | |
34396 | if (!argp3) { | |
34397 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34398 | } | |
34399 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34400 | { | |
34401 | arg4 = &temp4; | |
34402 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34403 | } | |
34404 | if (obj4) { | |
34405 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34406 | if (!SWIG_IsOK(ecode5)) { | |
34407 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
34408 | } | |
34409 | arg5 = static_cast< int >(val5); | |
34410 | } | |
34411 | { | |
34412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34413 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34414 | wxPyEndAllowThreads(__tstate); | |
34415 | if (PyErr_Occurred()) SWIG_fail; | |
34416 | } | |
34417 | resultobj = SWIG_Py_Void(); | |
34418 | return resultobj; | |
34419 | fail: | |
34420 | return NULL; | |
34421 | } | |
34422 | ||
34423 | ||
34424 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34425 | PyObject *resultobj = 0; | |
34426 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34427 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34428 | wxDC *arg3 = 0 ; | |
34429 | wxRect *arg4 = 0 ; | |
34430 | int arg5 = (int) 0 ; | |
34431 | void *argp1 = 0 ; | |
34432 | int res1 = 0 ; | |
34433 | void *argp2 = 0 ; | |
34434 | int res2 = 0 ; | |
34435 | void *argp3 = 0 ; | |
34436 | int res3 = 0 ; | |
34437 | wxRect temp4 ; | |
34438 | int val5 ; | |
34439 | int ecode5 = 0 ; | |
34440 | PyObject * obj0 = 0 ; | |
34441 | PyObject * obj1 = 0 ; | |
34442 | PyObject * obj2 = 0 ; | |
34443 | PyObject * obj3 = 0 ; | |
34444 | PyObject * obj4 = 0 ; | |
34445 | char * kwnames[] = { | |
34446 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34447 | }; | |
34448 | ||
34449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34451 | if (!SWIG_IsOK(res1)) { | |
34452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34453 | } | |
34454 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34455 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34456 | if (!SWIG_IsOK(res2)) { | |
34457 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34458 | } | |
34459 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34460 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34461 | if (!SWIG_IsOK(res3)) { | |
34462 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34463 | } | |
34464 | if (!argp3) { | |
34465 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34466 | } | |
34467 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34468 | { | |
34469 | arg4 = &temp4; | |
34470 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34471 | } | |
34472 | if (obj4) { | |
34473 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34474 | if (!SWIG_IsOK(ecode5)) { | |
34475 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
34476 | } | |
34477 | arg5 = static_cast< int >(val5); | |
34478 | } | |
34479 | { | |
34480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34481 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34482 | wxPyEndAllowThreads(__tstate); | |
34483 | if (PyErr_Occurred()) SWIG_fail; | |
34484 | } | |
34485 | resultobj = SWIG_Py_Void(); | |
34486 | return resultobj; | |
34487 | fail: | |
34488 | return NULL; | |
34489 | } | |
34490 | ||
34491 | ||
34492 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34493 | PyObject *resultobj = 0; | |
34494 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34495 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34496 | wxDC *arg3 = 0 ; | |
34497 | wxSize *arg4 = 0 ; | |
34498 | int arg5 ; | |
34499 | wxOrientation arg6 ; | |
34500 | int arg7 = (int) 0 ; | |
34501 | void *argp1 = 0 ; | |
34502 | int res1 = 0 ; | |
34503 | void *argp2 = 0 ; | |
34504 | int res2 = 0 ; | |
34505 | void *argp3 = 0 ; | |
34506 | int res3 = 0 ; | |
34507 | wxSize temp4 ; | |
34508 | int val5 ; | |
34509 | int ecode5 = 0 ; | |
34510 | int val6 ; | |
34511 | int ecode6 = 0 ; | |
34512 | int val7 ; | |
34513 | int ecode7 = 0 ; | |
34514 | PyObject * obj0 = 0 ; | |
34515 | PyObject * obj1 = 0 ; | |
34516 | PyObject * obj2 = 0 ; | |
34517 | PyObject * obj3 = 0 ; | |
34518 | PyObject * obj4 = 0 ; | |
34519 | PyObject * obj5 = 0 ; | |
34520 | PyObject * obj6 = 0 ; | |
34521 | char * kwnames[] = { | |
34522 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
34523 | }; | |
34524 | ||
34525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34526 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34527 | if (!SWIG_IsOK(res1)) { | |
34528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34529 | } | |
34530 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34531 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34532 | if (!SWIG_IsOK(res2)) { | |
34533 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34534 | } | |
34535 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34536 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34537 | if (!SWIG_IsOK(res3)) { | |
34538 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34539 | } | |
34540 | if (!argp3) { | |
34541 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34542 | } | |
34543 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34544 | { | |
34545 | arg4 = &temp4; | |
34546 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
34547 | } | |
34548 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34549 | if (!SWIG_IsOK(ecode5)) { | |
34550 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
34551 | } | |
34552 | arg5 = static_cast< int >(val5); | |
34553 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34554 | if (!SWIG_IsOK(ecode6)) { | |
34555 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
34556 | } | |
34557 | arg6 = static_cast< wxOrientation >(val6); | |
34558 | if (obj6) { | |
34559 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
34560 | if (!SWIG_IsOK(ecode7)) { | |
34561 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
34562 | } | |
34563 | arg7 = static_cast< int >(val7); | |
34564 | } | |
34565 | { | |
34566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34567 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
34568 | wxPyEndAllowThreads(__tstate); | |
34569 | if (PyErr_Occurred()) SWIG_fail; | |
34570 | } | |
34571 | resultobj = SWIG_Py_Void(); | |
34572 | return resultobj; | |
34573 | fail: | |
34574 | return NULL; | |
34575 | } | |
34576 | ||
34577 | ||
34578 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34579 | PyObject *resultobj = 0; | |
34580 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34581 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34582 | wxDC *arg3 = 0 ; | |
34583 | wxRect *arg4 = 0 ; | |
34584 | int arg5 = (int) 0 ; | |
34585 | void *argp1 = 0 ; | |
34586 | int res1 = 0 ; | |
34587 | void *argp2 = 0 ; | |
34588 | int res2 = 0 ; | |
34589 | void *argp3 = 0 ; | |
34590 | int res3 = 0 ; | |
34591 | wxRect temp4 ; | |
34592 | int val5 ; | |
34593 | int ecode5 = 0 ; | |
34594 | PyObject * obj0 = 0 ; | |
34595 | PyObject * obj1 = 0 ; | |
34596 | PyObject * obj2 = 0 ; | |
34597 | PyObject * obj3 = 0 ; | |
34598 | PyObject * obj4 = 0 ; | |
34599 | char * kwnames[] = { | |
34600 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34601 | }; | |
34602 | ||
34603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34605 | if (!SWIG_IsOK(res1)) { | |
34606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34607 | } | |
34608 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34609 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34610 | if (!SWIG_IsOK(res2)) { | |
34611 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34612 | } | |
34613 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34614 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34615 | if (!SWIG_IsOK(res3)) { | |
34616 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34617 | } | |
34618 | if (!argp3) { | |
34619 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34620 | } | |
34621 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34622 | { | |
34623 | arg4 = &temp4; | |
34624 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34625 | } | |
34626 | if (obj4) { | |
34627 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34628 | if (!SWIG_IsOK(ecode5)) { | |
34629 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
34630 | } | |
34631 | arg5 = static_cast< int >(val5); | |
34632 | } | |
34633 | { | |
34634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34635 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34636 | wxPyEndAllowThreads(__tstate); | |
34637 | if (PyErr_Occurred()) SWIG_fail; | |
34638 | } | |
34639 | resultobj = SWIG_Py_Void(); | |
34640 | return resultobj; | |
34641 | fail: | |
34642 | return NULL; | |
34643 | } | |
34644 | ||
34645 | ||
34646 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34647 | PyObject *resultobj = 0; | |
34648 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34649 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34650 | wxDC *arg3 = 0 ; | |
34651 | wxRect *arg4 = 0 ; | |
34652 | int arg5 = (int) 0 ; | |
34653 | void *argp1 = 0 ; | |
34654 | int res1 = 0 ; | |
34655 | void *argp2 = 0 ; | |
34656 | int res2 = 0 ; | |
34657 | void *argp3 = 0 ; | |
34658 | int res3 = 0 ; | |
34659 | wxRect temp4 ; | |
34660 | int val5 ; | |
34661 | int ecode5 = 0 ; | |
34662 | PyObject * obj0 = 0 ; | |
34663 | PyObject * obj1 = 0 ; | |
34664 | PyObject * obj2 = 0 ; | |
34665 | PyObject * obj3 = 0 ; | |
34666 | PyObject * obj4 = 0 ; | |
34667 | char * kwnames[] = { | |
34668 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34669 | }; | |
34670 | ||
34671 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34672 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34673 | if (!SWIG_IsOK(res1)) { | |
34674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34675 | } | |
34676 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34677 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34678 | if (!SWIG_IsOK(res2)) { | |
34679 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34680 | } | |
34681 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34682 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34683 | if (!SWIG_IsOK(res3)) { | |
34684 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34685 | } | |
34686 | if (!argp3) { | |
34687 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34688 | } | |
34689 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34690 | { | |
34691 | arg4 = &temp4; | |
34692 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34693 | } | |
34694 | if (obj4) { | |
34695 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34696 | if (!SWIG_IsOK(ecode5)) { | |
34697 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
34698 | } | |
34699 | arg5 = static_cast< int >(val5); | |
34700 | } | |
34701 | { | |
34702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34703 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34704 | wxPyEndAllowThreads(__tstate); | |
34705 | if (PyErr_Occurred()) SWIG_fail; | |
34706 | } | |
34707 | resultobj = SWIG_Py_Void(); | |
34708 | return resultobj; | |
34709 | fail: | |
34710 | return NULL; | |
34711 | } | |
34712 | ||
34713 | ||
01f6b6d3 RD |
34714 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34715 | PyObject *resultobj = 0; | |
34716 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34717 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34718 | wxDC *arg3 = 0 ; | |
34719 | wxRect *arg4 = 0 ; | |
34720 | int arg5 = (int) 0 ; | |
34721 | void *argp1 = 0 ; | |
34722 | int res1 = 0 ; | |
34723 | void *argp2 = 0 ; | |
34724 | int res2 = 0 ; | |
34725 | void *argp3 = 0 ; | |
34726 | int res3 = 0 ; | |
34727 | wxRect temp4 ; | |
34728 | int val5 ; | |
34729 | int ecode5 = 0 ; | |
34730 | PyObject * obj0 = 0 ; | |
34731 | PyObject * obj1 = 0 ; | |
34732 | PyObject * obj2 = 0 ; | |
34733 | PyObject * obj3 = 0 ; | |
34734 | PyObject * obj4 = 0 ; | |
34735 | char * kwnames[] = { | |
34736 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34737 | }; | |
34738 | ||
34739 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34741 | if (!SWIG_IsOK(res1)) { | |
34742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34743 | } | |
34744 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34745 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34746 | if (!SWIG_IsOK(res2)) { | |
34747 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34748 | } | |
34749 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34750 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34751 | if (!SWIG_IsOK(res3)) { | |
34752 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34753 | } | |
34754 | if (!argp3) { | |
34755 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34756 | } | |
34757 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34758 | { | |
34759 | arg4 = &temp4; | |
34760 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34761 | } | |
34762 | if (obj4) { | |
34763 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34764 | if (!SWIG_IsOK(ecode5)) { | |
34765 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
34766 | } | |
34767 | arg5 = static_cast< int >(val5); | |
34768 | } | |
34769 | { | |
34770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34771 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34772 | wxPyEndAllowThreads(__tstate); | |
34773 | if (PyErr_Occurred()) SWIG_fail; | |
34774 | } | |
34775 | resultobj = SWIG_Py_Void(); | |
34776 | return resultobj; | |
34777 | fail: | |
34778 | return NULL; | |
34779 | } | |
34780 | ||
34781 | ||
34782 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34783 | PyObject *resultobj = 0; | |
34784 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34785 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34786 | wxDC *arg3 = 0 ; | |
34787 | wxRect *arg4 = 0 ; | |
34788 | int arg5 = (int) 0 ; | |
34789 | void *argp1 = 0 ; | |
34790 | int res1 = 0 ; | |
34791 | void *argp2 = 0 ; | |
34792 | int res2 = 0 ; | |
34793 | void *argp3 = 0 ; | |
34794 | int res3 = 0 ; | |
34795 | wxRect temp4 ; | |
34796 | int val5 ; | |
34797 | int ecode5 = 0 ; | |
34798 | PyObject * obj0 = 0 ; | |
34799 | PyObject * obj1 = 0 ; | |
34800 | PyObject * obj2 = 0 ; | |
34801 | PyObject * obj3 = 0 ; | |
34802 | PyObject * obj4 = 0 ; | |
34803 | char * kwnames[] = { | |
34804 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34805 | }; | |
34806 | ||
34807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34808 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34809 | if (!SWIG_IsOK(res1)) { | |
34810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34811 | } | |
34812 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34813 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34814 | if (!SWIG_IsOK(res2)) { | |
34815 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34816 | } | |
34817 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34818 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34819 | if (!SWIG_IsOK(res3)) { | |
34820 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34821 | } | |
34822 | if (!argp3) { | |
34823 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34824 | } | |
34825 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34826 | { | |
34827 | arg4 = &temp4; | |
34828 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34829 | } | |
34830 | if (obj4) { | |
34831 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34832 | if (!SWIG_IsOK(ecode5)) { | |
34833 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
34834 | } | |
34835 | arg5 = static_cast< int >(val5); | |
34836 | } | |
34837 | { | |
34838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34839 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34840 | wxPyEndAllowThreads(__tstate); | |
34841 | if (PyErr_Occurred()) SWIG_fail; | |
34842 | } | |
34843 | resultobj = SWIG_Py_Void(); | |
34844 | return resultobj; | |
34845 | fail: | |
34846 | return NULL; | |
34847 | } | |
34848 | ||
34849 | ||
34850 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
34851 | PyObject *resultobj = 0; |
34852 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34853 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34854 | wxDC *arg3 = 0 ; | |
34855 | wxRect *arg4 = 0 ; | |
34856 | int arg5 = (int) 0 ; | |
34857 | void *argp1 = 0 ; | |
34858 | int res1 = 0 ; | |
34859 | void *argp2 = 0 ; | |
34860 | int res2 = 0 ; | |
34861 | void *argp3 = 0 ; | |
34862 | int res3 = 0 ; | |
34863 | wxRect temp4 ; | |
34864 | int val5 ; | |
34865 | int ecode5 = 0 ; | |
34866 | PyObject * obj0 = 0 ; | |
34867 | PyObject * obj1 = 0 ; | |
34868 | PyObject * obj2 = 0 ; | |
34869 | PyObject * obj3 = 0 ; | |
34870 | PyObject * obj4 = 0 ; | |
34871 | char * kwnames[] = { | |
34872 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34873 | }; | |
34874 | ||
01f6b6d3 | 34875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
34876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34877 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 34878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
34879 | } |
34880 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34881 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34882 | if (!SWIG_IsOK(res2)) { | |
01f6b6d3 | 34883 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
34884 | } |
34885 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34886 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34887 | if (!SWIG_IsOK(res3)) { | |
01f6b6d3 | 34888 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34889 | } |
34890 | if (!argp3) { | |
01f6b6d3 | 34891 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34892 | } |
34893 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34894 | { | |
34895 | arg4 = &temp4; | |
34896 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34897 | } | |
34898 | if (obj4) { | |
34899 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34900 | if (!SWIG_IsOK(ecode5)) { | |
01f6b6d3 | 34901 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
34902 | } |
34903 | arg5 = static_cast< int >(val5); | |
34904 | } | |
34905 | { | |
34906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 34907 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
34908 | wxPyEndAllowThreads(__tstate); |
34909 | if (PyErr_Occurred()) SWIG_fail; | |
34910 | } | |
34911 | resultobj = SWIG_Py_Void(); | |
34912 | return resultobj; | |
34913 | fail: | |
34914 | return NULL; | |
34915 | } | |
34916 | ||
34917 | ||
0085ce49 RD |
34918 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34919 | PyObject *resultobj = 0; | |
34920 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34921 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34922 | SwigValueWrapper<wxSplitterRenderParams > result; | |
34923 | void *argp1 = 0 ; | |
34924 | int res1 = 0 ; | |
34925 | void *argp2 = 0 ; | |
34926 | int res2 = 0 ; | |
34927 | PyObject * obj0 = 0 ; | |
34928 | PyObject * obj1 = 0 ; | |
34929 | char * kwnames[] = { | |
34930 | (char *) "self",(char *) "win", NULL | |
34931 | }; | |
34932 | ||
34933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
34934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34935 | if (!SWIG_IsOK(res1)) { | |
34936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34937 | } | |
34938 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34939 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34940 | if (!SWIG_IsOK(res2)) { | |
34941 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
34942 | } | |
34943 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34944 | { | |
34945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34946 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
34947 | wxPyEndAllowThreads(__tstate); | |
34948 | if (PyErr_Occurred()) SWIG_fail; | |
34949 | } | |
34950 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
34951 | return resultobj; | |
34952 | fail: | |
34953 | return NULL; | |
34954 | } | |
34955 | ||
34956 | ||
34957 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34958 | PyObject *resultobj = 0; | |
34959 | wxRendererNative *result = 0 ; | |
34960 | ||
34961 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
34962 | { | |
704eda0c | 34963 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 34965 | { |
0085ce49 RD |
34966 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
34967 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 34968 | } |
0085ce49 RD |
34969 | wxPyEndAllowThreads(__tstate); |
34970 | if (PyErr_Occurred()) SWIG_fail; | |
34971 | } | |
34972 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34973 | return resultobj; | |
34974 | fail: | |
34975 | return NULL; | |
34976 | } | |
34977 | ||
34978 | ||
34979 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34980 | PyObject *resultobj = 0; | |
34981 | wxRendererNative *result = 0 ; | |
34982 | ||
34983 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
34984 | { | |
704eda0c | 34985 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 34987 | { |
0085ce49 RD |
34988 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
34989 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 34990 | } |
0085ce49 RD |
34991 | wxPyEndAllowThreads(__tstate); |
34992 | if (PyErr_Occurred()) SWIG_fail; | |
34993 | } | |
34994 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34995 | return resultobj; | |
34996 | fail: | |
34997 | return NULL; | |
34998 | } | |
34999 | ||
35000 | ||
35001 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35002 | PyObject *resultobj = 0; | |
35003 | wxRendererNative *result = 0 ; | |
35004 | ||
35005 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
35006 | { | |
704eda0c | 35007 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 35008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 35009 | { |
0085ce49 RD |
35010 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
35011 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 35012 | } |
0085ce49 RD |
35013 | wxPyEndAllowThreads(__tstate); |
35014 | if (PyErr_Occurred()) SWIG_fail; | |
35015 | } | |
35016 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35017 | return resultobj; | |
35018 | fail: | |
35019 | return NULL; | |
35020 | } | |
35021 | ||
35022 | ||
35023 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35024 | PyObject *resultobj = 0; | |
35025 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35026 | wxRendererNative *result = 0 ; | |
35027 | void *argp1 = 0 ; | |
35028 | int res1 = 0 ; | |
35029 | PyObject * obj0 = 0 ; | |
35030 | char * kwnames[] = { | |
35031 | (char *) "renderer", NULL | |
35032 | }; | |
35033 | ||
35034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
35035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35036 | if (!SWIG_IsOK(res1)) { | |
35037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35038 | } | |
35039 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35040 | { | |
704eda0c | 35041 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 RD |
35042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35043 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
35044 | wxPyEndAllowThreads(__tstate); | |
35045 | if (PyErr_Occurred()) SWIG_fail; | |
35046 | } | |
35047 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35048 | return resultobj; | |
35049 | fail: | |
35050 | return NULL; | |
35051 | } | |
35052 | ||
35053 | ||
35054 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35055 | PyObject *resultobj = 0; | |
35056 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35057 | SwigValueWrapper<wxRendererVersion > result; | |
35058 | void *argp1 = 0 ; | |
35059 | int res1 = 0 ; | |
35060 | PyObject *swig_obj[1] ; | |
35061 | ||
35062 | if (!args) SWIG_fail; | |
35063 | swig_obj[0] = args; | |
35064 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35065 | if (!SWIG_IsOK(res1)) { | |
35066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
35067 | } | |
35068 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35069 | { | |
35070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35071 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
35072 | wxPyEndAllowThreads(__tstate); | |
35073 | if (PyErr_Occurred()) SWIG_fail; | |
35074 | } | |
35075 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
35076 | return resultobj; | |
35077 | fail: | |
35078 | return NULL; | |
35079 | } | |
35080 | ||
35081 | ||
35082 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35083 | PyObject *obj; | |
35084 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
35085 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
35086 | return SWIG_Py_Void(); | |
35087 | } | |
35088 | ||
27e45892 RD |
35089 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35090 | PyObject *resultobj = 0; | |
35091 | wxPseudoDC *result = 0 ; | |
35092 | ||
35093 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
35094 | { | |
35095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35096 | result = (wxPseudoDC *)new wxPseudoDC(); | |
35097 | wxPyEndAllowThreads(__tstate); | |
35098 | if (PyErr_Occurred()) SWIG_fail; | |
35099 | } | |
35100 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
35101 | return resultobj; | |
35102 | fail: | |
35103 | return NULL; | |
35104 | } | |
35105 | ||
35106 | ||
35107 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35108 | PyObject *resultobj = 0; | |
35109 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35110 | void *argp1 = 0 ; | |
35111 | int res1 = 0 ; | |
35112 | PyObject *swig_obj[1] ; | |
35113 | ||
35114 | if (!args) SWIG_fail; | |
35115 | swig_obj[0] = args; | |
35116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35117 | if (!SWIG_IsOK(res1)) { | |
35118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35119 | } | |
35120 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35121 | { | |
35122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35123 | (arg1)->BeginDrawing(); | |
35124 | wxPyEndAllowThreads(__tstate); | |
35125 | if (PyErr_Occurred()) SWIG_fail; | |
35126 | } | |
35127 | resultobj = SWIG_Py_Void(); | |
35128 | return resultobj; | |
35129 | fail: | |
35130 | return NULL; | |
35131 | } | |
35132 | ||
35133 | ||
35134 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35135 | PyObject *resultobj = 0; | |
35136 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35137 | void *argp1 = 0 ; | |
35138 | int res1 = 0 ; | |
35139 | PyObject *swig_obj[1] ; | |
35140 | ||
35141 | if (!args) SWIG_fail; | |
35142 | swig_obj[0] = args; | |
35143 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35144 | if (!SWIG_IsOK(res1)) { | |
35145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35146 | } | |
35147 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35148 | { | |
35149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35150 | (arg1)->EndDrawing(); | |
35151 | wxPyEndAllowThreads(__tstate); | |
35152 | if (PyErr_Occurred()) SWIG_fail; | |
35153 | } | |
35154 | resultobj = SWIG_Py_Void(); | |
35155 | return resultobj; | |
35156 | fail: | |
35157 | return NULL; | |
35158 | } | |
35159 | ||
35160 | ||
35161 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35162 | PyObject *resultobj = 0; | |
35163 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35164 | void *argp1 = 0 ; | |
35165 | int res1 = 0 ; | |
35166 | PyObject *swig_obj[1] ; | |
35167 | ||
35168 | if (!args) SWIG_fail; | |
35169 | swig_obj[0] = args; | |
35170 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
35171 | if (!SWIG_IsOK(res1)) { | |
35172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35173 | } | |
35174 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35175 | { | |
35176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35177 | delete arg1; | |
35178 | ||
35179 | wxPyEndAllowThreads(__tstate); | |
35180 | if (PyErr_Occurred()) SWIG_fail; | |
35181 | } | |
35182 | resultobj = SWIG_Py_Void(); | |
35183 | return resultobj; | |
35184 | fail: | |
35185 | return NULL; | |
35186 | } | |
35187 | ||
35188 | ||
35189 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35190 | PyObject *resultobj = 0; | |
35191 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35192 | void *argp1 = 0 ; | |
35193 | int res1 = 0 ; | |
35194 | PyObject *swig_obj[1] ; | |
35195 | ||
35196 | if (!args) SWIG_fail; | |
35197 | swig_obj[0] = args; | |
35198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35199 | if (!SWIG_IsOK(res1)) { | |
35200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35201 | } | |
35202 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35203 | { | |
35204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35205 | (arg1)->RemoveAll(); | |
35206 | wxPyEndAllowThreads(__tstate); | |
35207 | if (PyErr_Occurred()) SWIG_fail; | |
35208 | } | |
35209 | resultobj = SWIG_Py_Void(); | |
35210 | return resultobj; | |
35211 | fail: | |
35212 | return NULL; | |
35213 | } | |
35214 | ||
35215 | ||
35216 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35217 | PyObject *resultobj = 0; | |
35218 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35219 | int result; | |
35220 | void *argp1 = 0 ; | |
35221 | int res1 = 0 ; | |
35222 | PyObject *swig_obj[1] ; | |
35223 | ||
35224 | if (!args) SWIG_fail; | |
35225 | swig_obj[0] = args; | |
35226 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35227 | if (!SWIG_IsOK(res1)) { | |
35228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35229 | } | |
35230 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35231 | { | |
35232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35233 | result = (int)(arg1)->GetLen(); | |
35234 | wxPyEndAllowThreads(__tstate); | |
35235 | if (PyErr_Occurred()) SWIG_fail; | |
35236 | } | |
35237 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35238 | return resultobj; | |
35239 | fail: | |
35240 | return NULL; | |
35241 | } | |
35242 | ||
35243 | ||
35244 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35245 | PyObject *resultobj = 0; | |
35246 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35247 | int arg2 ; | |
35248 | void *argp1 = 0 ; | |
35249 | int res1 = 0 ; | |
35250 | int val2 ; | |
35251 | int ecode2 = 0 ; | |
35252 | PyObject * obj0 = 0 ; | |
35253 | PyObject * obj1 = 0 ; | |
35254 | char * kwnames[] = { | |
35255 | (char *) "self",(char *) "id", NULL | |
35256 | }; | |
35257 | ||
35258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35260 | if (!SWIG_IsOK(res1)) { | |
35261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35262 | } | |
35263 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35264 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35265 | if (!SWIG_IsOK(ecode2)) { | |
35266 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
35267 | } | |
35268 | arg2 = static_cast< int >(val2); | |
35269 | { | |
35270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35271 | (arg1)->SetId(arg2); | |
35272 | wxPyEndAllowThreads(__tstate); | |
35273 | if (PyErr_Occurred()) SWIG_fail; | |
35274 | } | |
35275 | resultobj = SWIG_Py_Void(); | |
35276 | return resultobj; | |
35277 | fail: | |
35278 | return NULL; | |
35279 | } | |
35280 | ||
35281 | ||
35282 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35283 | PyObject *resultobj = 0; | |
35284 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35285 | int arg2 ; | |
35286 | void *argp1 = 0 ; | |
35287 | int res1 = 0 ; | |
35288 | int val2 ; | |
35289 | int ecode2 = 0 ; | |
35290 | PyObject * obj0 = 0 ; | |
35291 | PyObject * obj1 = 0 ; | |
35292 | char * kwnames[] = { | |
35293 | (char *) "self",(char *) "id", NULL | |
35294 | }; | |
35295 | ||
35296 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35297 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35298 | if (!SWIG_IsOK(res1)) { | |
35299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35300 | } | |
35301 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35302 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35303 | if (!SWIG_IsOK(ecode2)) { | |
35304 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
35305 | } | |
35306 | arg2 = static_cast< int >(val2); | |
35307 | { | |
35308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35309 | (arg1)->ClearId(arg2); | |
35310 | wxPyEndAllowThreads(__tstate); | |
35311 | if (PyErr_Occurred()) SWIG_fail; | |
35312 | } | |
35313 | resultobj = SWIG_Py_Void(); | |
35314 | return resultobj; | |
35315 | fail: | |
35316 | return NULL; | |
35317 | } | |
35318 | ||
35319 | ||
35320 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35321 | PyObject *resultobj = 0; | |
35322 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35323 | int arg2 ; | |
35324 | void *argp1 = 0 ; | |
35325 | int res1 = 0 ; | |
35326 | int val2 ; | |
35327 | int ecode2 = 0 ; | |
35328 | PyObject * obj0 = 0 ; | |
35329 | PyObject * obj1 = 0 ; | |
35330 | char * kwnames[] = { | |
35331 | (char *) "self",(char *) "id", NULL | |
35332 | }; | |
35333 | ||
35334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35336 | if (!SWIG_IsOK(res1)) { | |
35337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35338 | } | |
35339 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35340 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35341 | if (!SWIG_IsOK(ecode2)) { | |
35342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
35343 | } | |
35344 | arg2 = static_cast< int >(val2); | |
35345 | { | |
35346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35347 | (arg1)->RemoveId(arg2); | |
35348 | wxPyEndAllowThreads(__tstate); | |
35349 | if (PyErr_Occurred()) SWIG_fail; | |
35350 | } | |
35351 | resultobj = SWIG_Py_Void(); | |
35352 | return resultobj; | |
35353 | fail: | |
35354 | return NULL; | |
35355 | } | |
35356 | ||
35357 | ||
35358 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35359 | PyObject *resultobj = 0; | |
35360 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35361 | int arg2 ; | |
35362 | int arg3 ; | |
35363 | int arg4 ; | |
35364 | void *argp1 = 0 ; | |
35365 | int res1 = 0 ; | |
35366 | int val2 ; | |
35367 | int ecode2 = 0 ; | |
35368 | int val3 ; | |
35369 | int ecode3 = 0 ; | |
35370 | int val4 ; | |
35371 | int ecode4 = 0 ; | |
35372 | PyObject * obj0 = 0 ; | |
35373 | PyObject * obj1 = 0 ; | |
35374 | PyObject * obj2 = 0 ; | |
35375 | PyObject * obj3 = 0 ; | |
35376 | char * kwnames[] = { | |
35377 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
35378 | }; | |
35379 | ||
35380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35382 | if (!SWIG_IsOK(res1)) { | |
35383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35384 | } | |
35385 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35386 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35387 | if (!SWIG_IsOK(ecode2)) { | |
35388 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
35389 | } | |
35390 | arg2 = static_cast< int >(val2); | |
35391 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35392 | if (!SWIG_IsOK(ecode3)) { | |
35393 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
35394 | } | |
35395 | arg3 = static_cast< int >(val3); | |
35396 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35397 | if (!SWIG_IsOK(ecode4)) { | |
35398 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
35399 | } | |
35400 | arg4 = static_cast< int >(val4); | |
35401 | { | |
35402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35403 | (arg1)->TranslateId(arg2,arg3,arg4); | |
35404 | wxPyEndAllowThreads(__tstate); | |
35405 | if (PyErr_Occurred()) SWIG_fail; | |
35406 | } | |
35407 | resultobj = SWIG_Py_Void(); | |
35408 | return resultobj; | |
35409 | fail: | |
35410 | return NULL; | |
35411 | } | |
35412 | ||
35413 | ||
72ef6efb RD |
35414 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35415 | PyObject *resultobj = 0; | |
35416 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35417 | int arg2 ; | |
35418 | bool arg3 = (bool) true ; | |
35419 | void *argp1 = 0 ; | |
35420 | int res1 = 0 ; | |
35421 | int val2 ; | |
35422 | int ecode2 = 0 ; | |
35423 | bool val3 ; | |
35424 | int ecode3 = 0 ; | |
35425 | PyObject * obj0 = 0 ; | |
35426 | PyObject * obj1 = 0 ; | |
35427 | PyObject * obj2 = 0 ; | |
35428 | char * kwnames[] = { | |
35429 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
35430 | }; | |
35431 | ||
35432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35434 | if (!SWIG_IsOK(res1)) { | |
35435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35436 | } | |
35437 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35438 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35439 | if (!SWIG_IsOK(ecode2)) { | |
35440 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35441 | } | |
35442 | arg2 = static_cast< int >(val2); | |
35443 | if (obj2) { | |
35444 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35445 | if (!SWIG_IsOK(ecode3)) { | |
35446 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
35447 | } | |
35448 | arg3 = static_cast< bool >(val3); | |
35449 | } | |
35450 | { | |
35451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35452 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
35453 | wxPyEndAllowThreads(__tstate); | |
35454 | if (PyErr_Occurred()) SWIG_fail; | |
35455 | } | |
35456 | resultobj = SWIG_Py_Void(); | |
35457 | return resultobj; | |
35458 | fail: | |
35459 | return NULL; | |
35460 | } | |
35461 | ||
35462 | ||
35463 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35464 | PyObject *resultobj = 0; | |
35465 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35466 | int arg2 ; | |
35467 | bool result; | |
35468 | void *argp1 = 0 ; | |
35469 | int res1 = 0 ; | |
35470 | int val2 ; | |
35471 | int ecode2 = 0 ; | |
35472 | PyObject * obj0 = 0 ; | |
35473 | PyObject * obj1 = 0 ; | |
35474 | char * kwnames[] = { | |
35475 | (char *) "self",(char *) "id", NULL | |
35476 | }; | |
35477 | ||
35478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
35479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35480 | if (!SWIG_IsOK(res1)) { | |
35481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35482 | } | |
35483 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35484 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35485 | if (!SWIG_IsOK(ecode2)) { | |
35486 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35487 | } | |
35488 | arg2 = static_cast< int >(val2); | |
35489 | { | |
35490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35491 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
35492 | wxPyEndAllowThreads(__tstate); | |
35493 | if (PyErr_Occurred()) SWIG_fail; | |
35494 | } | |
35495 | { | |
35496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35497 | } | |
35498 | return resultobj; | |
35499 | fail: | |
35500 | return NULL; | |
35501 | } | |
35502 | ||
35503 | ||
35504 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35505 | PyObject *resultobj = 0; | |
35506 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35507 | int arg2 ; | |
35508 | int arg3 ; | |
35509 | int arg4 = (int) 1 ; | |
35510 | wxColor const &arg5_defvalue = *wxWHITE ; | |
35511 | wxColor *arg5 = (wxColor *) &arg5_defvalue ; | |
35512 | PyObject *result = 0 ; | |
35513 | void *argp1 = 0 ; | |
35514 | int res1 = 0 ; | |
35515 | int val2 ; | |
35516 | int ecode2 = 0 ; | |
35517 | int val3 ; | |
35518 | int ecode3 = 0 ; | |
35519 | int val4 ; | |
35520 | int ecode4 = 0 ; | |
35521 | void *argp5 = 0 ; | |
35522 | int res5 = 0 ; | |
35523 | PyObject * obj0 = 0 ; | |
35524 | PyObject * obj1 = 0 ; | |
35525 | PyObject * obj2 = 0 ; | |
35526 | PyObject * obj3 = 0 ; | |
35527 | PyObject * obj4 = 0 ; | |
35528 | char * kwnames[] = { | |
35529 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
35530 | }; | |
35531 | ||
35532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35533 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35534 | if (!SWIG_IsOK(res1)) { | |
35535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35536 | } | |
35537 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35538 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35539 | if (!SWIG_IsOK(ecode2)) { | |
35540 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
35541 | } | |
35542 | arg2 = static_cast< int >(val2); | |
35543 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35544 | if (!SWIG_IsOK(ecode3)) { | |
35545 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
35546 | } | |
35547 | arg3 = static_cast< int >(val3); | |
35548 | if (obj3) { | |
35549 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35550 | if (!SWIG_IsOK(ecode4)) { | |
35551 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
35552 | } | |
35553 | arg4 = static_cast< int >(val4); | |
35554 | } | |
35555 | if (obj4) { | |
35556 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0); | |
35557 | if (!SWIG_IsOK(res5)) { | |
35558 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
35559 | } | |
35560 | if (!argp5) { | |
35561 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
35562 | } | |
35563 | arg5 = reinterpret_cast< wxColor * >(argp5); | |
35564 | } | |
35565 | { | |
35566 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5); | |
35567 | if (PyErr_Occurred()) SWIG_fail; | |
35568 | } | |
35569 | resultobj = result; | |
35570 | return resultobj; | |
35571 | fail: | |
35572 | return NULL; | |
35573 | } | |
35574 | ||
35575 | ||
35576 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35577 | PyObject *resultobj = 0; | |
35578 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35579 | int arg2 ; | |
35580 | int arg3 ; | |
35581 | PyObject *result = 0 ; | |
35582 | void *argp1 = 0 ; | |
35583 | int res1 = 0 ; | |
35584 | int val2 ; | |
35585 | int ecode2 = 0 ; | |
35586 | int val3 ; | |
35587 | int ecode3 = 0 ; | |
35588 | PyObject * obj0 = 0 ; | |
35589 | PyObject * obj1 = 0 ; | |
35590 | PyObject * obj2 = 0 ; | |
35591 | char * kwnames[] = { | |
35592 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35593 | }; | |
35594 | ||
35595 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35596 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35597 | if (!SWIG_IsOK(res1)) { | |
35598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35599 | } | |
35600 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35601 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35602 | if (!SWIG_IsOK(ecode2)) { | |
35603 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
35604 | } | |
35605 | arg2 = static_cast< int >(val2); | |
35606 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35607 | if (!SWIG_IsOK(ecode3)) { | |
35608 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
35609 | } | |
35610 | arg3 = static_cast< int >(val3); | |
35611 | { | |
35612 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
35613 | if (PyErr_Occurred()) SWIG_fail; | |
35614 | } | |
35615 | resultobj = result; | |
35616 | return resultobj; | |
35617 | fail: | |
35618 | return NULL; | |
35619 | } | |
35620 | ||
35621 | ||
27e45892 RD |
35622 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35623 | PyObject *resultobj = 0; | |
35624 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35625 | int arg2 ; | |
35626 | wxDC *arg3 = (wxDC *) 0 ; | |
35627 | void *argp1 = 0 ; | |
35628 | int res1 = 0 ; | |
35629 | int val2 ; | |
35630 | int ecode2 = 0 ; | |
35631 | void *argp3 = 0 ; | |
35632 | int res3 = 0 ; | |
35633 | PyObject * obj0 = 0 ; | |
35634 | PyObject * obj1 = 0 ; | |
35635 | PyObject * obj2 = 0 ; | |
35636 | char * kwnames[] = { | |
35637 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
35638 | }; | |
35639 | ||
35640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35642 | if (!SWIG_IsOK(res1)) { | |
35643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35644 | } | |
35645 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35646 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35647 | if (!SWIG_IsOK(ecode2)) { | |
35648 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
35649 | } | |
35650 | arg2 = static_cast< int >(val2); | |
35651 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35652 | if (!SWIG_IsOK(res3)) { | |
35653 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
35654 | } | |
35655 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35656 | { | |
35657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35658 | (arg1)->DrawIdToDC(arg2,arg3); | |
35659 | wxPyEndAllowThreads(__tstate); | |
35660 | if (PyErr_Occurred()) SWIG_fail; | |
35661 | } | |
35662 | resultobj = SWIG_Py_Void(); | |
35663 | return resultobj; | |
35664 | fail: | |
35665 | return NULL; | |
35666 | } | |
35667 | ||
35668 | ||
35669 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35670 | PyObject *resultobj = 0; | |
35671 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35672 | int arg2 ; | |
35673 | wxRect *arg3 = 0 ; | |
35674 | void *argp1 = 0 ; | |
35675 | int res1 = 0 ; | |
35676 | int val2 ; | |
35677 | int ecode2 = 0 ; | |
35678 | wxRect temp3 ; | |
35679 | PyObject * obj0 = 0 ; | |
35680 | PyObject * obj1 = 0 ; | |
35681 | PyObject * obj2 = 0 ; | |
35682 | char * kwnames[] = { | |
35683 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
35684 | }; | |
35685 | ||
35686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35688 | if (!SWIG_IsOK(res1)) { | |
35689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35690 | } | |
35691 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35692 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35693 | if (!SWIG_IsOK(ecode2)) { | |
35694 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35695 | } | |
35696 | arg2 = static_cast< int >(val2); | |
35697 | { | |
35698 | arg3 = &temp3; | |
35699 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35700 | } | |
35701 | { | |
35702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35703 | (arg1)->SetIdBounds(arg2,*arg3); | |
35704 | wxPyEndAllowThreads(__tstate); | |
35705 | if (PyErr_Occurred()) SWIG_fail; | |
35706 | } | |
35707 | resultobj = SWIG_Py_Void(); | |
35708 | return resultobj; | |
35709 | fail: | |
35710 | return NULL; | |
35711 | } | |
35712 | ||
35713 | ||
35714 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35715 | PyObject *resultobj = 0; | |
35716 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35717 | int arg2 ; | |
35718 | wxRect result; | |
35719 | void *argp1 = 0 ; | |
35720 | int res1 = 0 ; | |
35721 | int val2 ; | |
35722 | int ecode2 = 0 ; | |
35723 | PyObject * obj0 = 0 ; | |
35724 | PyObject * obj1 = 0 ; | |
35725 | char * kwnames[] = { | |
35726 | (char *) "self",(char *) "id", NULL | |
35727 | }; | |
35728 | ||
35729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
35730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35731 | if (!SWIG_IsOK(res1)) { | |
35732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35733 | } | |
35734 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35735 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35736 | if (!SWIG_IsOK(ecode2)) { | |
35737 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35738 | } | |
35739 | arg2 = static_cast< int >(val2); | |
35740 | { | |
35741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35742 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
35743 | wxPyEndAllowThreads(__tstate); | |
35744 | if (PyErr_Occurred()) SWIG_fail; | |
35745 | } | |
35746 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
35747 | return resultobj; | |
35748 | fail: | |
35749 | return NULL; | |
35750 | } | |
35751 | ||
35752 | ||
35753 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35754 | PyObject *resultobj = 0; | |
35755 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35756 | wxDC *arg2 = (wxDC *) 0 ; | |
35757 | wxRect *arg3 = 0 ; | |
35758 | void *argp1 = 0 ; | |
35759 | int res1 = 0 ; | |
35760 | void *argp2 = 0 ; | |
35761 | int res2 = 0 ; | |
35762 | wxRect temp3 ; | |
35763 | PyObject * obj0 = 0 ; | |
35764 | PyObject * obj1 = 0 ; | |
35765 | PyObject * obj2 = 0 ; | |
35766 | char * kwnames[] = { | |
35767 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
35768 | }; | |
35769 | ||
35770 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35771 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35772 | if (!SWIG_IsOK(res1)) { | |
35773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35774 | } | |
35775 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35776 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35777 | if (!SWIG_IsOK(res2)) { | |
35778 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35779 | } | |
35780 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35781 | { | |
35782 | arg3 = &temp3; | |
35783 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35784 | } | |
35785 | { | |
35786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35787 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
35788 | wxPyEndAllowThreads(__tstate); | |
35789 | if (PyErr_Occurred()) SWIG_fail; | |
35790 | } | |
35791 | resultobj = SWIG_Py_Void(); | |
35792 | return resultobj; | |
35793 | fail: | |
35794 | return NULL; | |
35795 | } | |
35796 | ||
35797 | ||
35798 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35799 | PyObject *resultobj = 0; | |
35800 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35801 | wxDC *arg2 = (wxDC *) 0 ; | |
35802 | wxRegion *arg3 = 0 ; | |
35803 | void *argp1 = 0 ; | |
35804 | int res1 = 0 ; | |
35805 | void *argp2 = 0 ; | |
35806 | int res2 = 0 ; | |
35807 | void *argp3 = 0 ; | |
35808 | int res3 = 0 ; | |
35809 | PyObject * obj0 = 0 ; | |
35810 | PyObject * obj1 = 0 ; | |
35811 | PyObject * obj2 = 0 ; | |
35812 | char * kwnames[] = { | |
35813 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
35814 | }; | |
35815 | ||
35816 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35818 | if (!SWIG_IsOK(res1)) { | |
35819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35820 | } | |
35821 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35822 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35823 | if (!SWIG_IsOK(res2)) { | |
35824 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35825 | } | |
35826 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35827 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
35828 | if (!SWIG_IsOK(res3)) { | |
35829 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35830 | } | |
35831 | if (!argp3) { | |
35832 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35833 | } | |
35834 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
35835 | { | |
35836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35837 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
35838 | wxPyEndAllowThreads(__tstate); | |
35839 | if (PyErr_Occurred()) SWIG_fail; | |
35840 | } | |
35841 | resultobj = SWIG_Py_Void(); | |
35842 | return resultobj; | |
35843 | fail: | |
35844 | return NULL; | |
35845 | } | |
35846 | ||
35847 | ||
35848 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35849 | PyObject *resultobj = 0; | |
35850 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35851 | wxDC *arg2 = (wxDC *) 0 ; | |
35852 | void *argp1 = 0 ; | |
35853 | int res1 = 0 ; | |
35854 | void *argp2 = 0 ; | |
35855 | int res2 = 0 ; | |
35856 | PyObject * obj0 = 0 ; | |
35857 | PyObject * obj1 = 0 ; | |
35858 | char * kwnames[] = { | |
35859 | (char *) "self",(char *) "dc", NULL | |
35860 | }; | |
35861 | ||
35862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
35863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35864 | if (!SWIG_IsOK(res1)) { | |
35865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35866 | } | |
35867 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35868 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35869 | if (!SWIG_IsOK(res2)) { | |
35870 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35871 | } | |
35872 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35873 | { | |
35874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35875 | (arg1)->DrawToDC(arg2); | |
35876 | wxPyEndAllowThreads(__tstate); | |
35877 | if (PyErr_Occurred()) SWIG_fail; | |
35878 | } | |
35879 | resultobj = SWIG_Py_Void(); | |
35880 | return resultobj; | |
35881 | fail: | |
35882 | return NULL; | |
35883 | } | |
35884 | ||
35885 | ||
35886 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35887 | PyObject *resultobj = 0; | |
35888 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35889 | int arg2 ; | |
35890 | int arg3 ; | |
35891 | wxColour *arg4 = 0 ; | |
35892 | int arg5 = (int) wxFLOOD_SURFACE ; | |
35893 | void *argp1 = 0 ; | |
35894 | int res1 = 0 ; | |
35895 | int val2 ; | |
35896 | int ecode2 = 0 ; | |
35897 | int val3 ; | |
35898 | int ecode3 = 0 ; | |
35899 | wxColour temp4 ; | |
35900 | int val5 ; | |
35901 | int ecode5 = 0 ; | |
35902 | PyObject * obj0 = 0 ; | |
35903 | PyObject * obj1 = 0 ; | |
35904 | PyObject * obj2 = 0 ; | |
35905 | PyObject * obj3 = 0 ; | |
35906 | PyObject * obj4 = 0 ; | |
35907 | char * kwnames[] = { | |
35908 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
35909 | }; | |
35910 | ||
35911 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35913 | if (!SWIG_IsOK(res1)) { | |
35914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35915 | } | |
35916 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35917 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35918 | if (!SWIG_IsOK(ecode2)) { | |
35919 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
35920 | } | |
35921 | arg2 = static_cast< int >(val2); | |
35922 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35923 | if (!SWIG_IsOK(ecode3)) { | |
35924 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
35925 | } | |
35926 | arg3 = static_cast< int >(val3); | |
35927 | { | |
35928 | arg4 = &temp4; | |
35929 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
35930 | } | |
35931 | if (obj4) { | |
35932 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35933 | if (!SWIG_IsOK(ecode5)) { | |
35934 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
35935 | } | |
35936 | arg5 = static_cast< int >(val5); | |
35937 | } | |
35938 | { | |
35939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35940 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
35941 | wxPyEndAllowThreads(__tstate); | |
35942 | if (PyErr_Occurred()) SWIG_fail; | |
35943 | } | |
35944 | resultobj = SWIG_Py_Void(); | |
35945 | return resultobj; | |
35946 | fail: | |
35947 | return NULL; | |
35948 | } | |
35949 | ||
35950 | ||
35951 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35952 | PyObject *resultobj = 0; | |
35953 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35954 | wxPoint *arg2 = 0 ; | |
35955 | wxColour *arg3 = 0 ; | |
35956 | int arg4 = (int) wxFLOOD_SURFACE ; | |
35957 | void *argp1 = 0 ; | |
35958 | int res1 = 0 ; | |
35959 | wxPoint temp2 ; | |
35960 | wxColour temp3 ; | |
35961 | int val4 ; | |
35962 | int ecode4 = 0 ; | |
35963 | PyObject * obj0 = 0 ; | |
35964 | PyObject * obj1 = 0 ; | |
35965 | PyObject * obj2 = 0 ; | |
35966 | PyObject * obj3 = 0 ; | |
35967 | char * kwnames[] = { | |
35968 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
35969 | }; | |
35970 | ||
35971 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35972 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35973 | if (!SWIG_IsOK(res1)) { | |
35974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35975 | } | |
35976 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35977 | { | |
35978 | arg2 = &temp2; | |
35979 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35980 | } | |
35981 | { | |
35982 | arg3 = &temp3; | |
35983 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35984 | } | |
35985 | if (obj3) { | |
35986 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35987 | if (!SWIG_IsOK(ecode4)) { | |
35988 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
35989 | } | |
35990 | arg4 = static_cast< int >(val4); | |
35991 | } | |
35992 | { | |
35993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35994 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
35995 | wxPyEndAllowThreads(__tstate); | |
35996 | if (PyErr_Occurred()) SWIG_fail; | |
35997 | } | |
35998 | resultobj = SWIG_Py_Void(); | |
35999 | return resultobj; | |
36000 | fail: | |
36001 | return NULL; | |
36002 | } | |
36003 | ||
36004 | ||
36005 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36006 | PyObject *resultobj = 0; | |
36007 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36008 | int arg2 ; | |
36009 | int arg3 ; | |
36010 | int arg4 ; | |
36011 | int arg5 ; | |
36012 | void *argp1 = 0 ; | |
36013 | int res1 = 0 ; | |
36014 | int val2 ; | |
36015 | int ecode2 = 0 ; | |
36016 | int val3 ; | |
36017 | int ecode3 = 0 ; | |
36018 | int val4 ; | |
36019 | int ecode4 = 0 ; | |
36020 | int val5 ; | |
36021 | int ecode5 = 0 ; | |
36022 | PyObject * obj0 = 0 ; | |
36023 | PyObject * obj1 = 0 ; | |
36024 | PyObject * obj2 = 0 ; | |
36025 | PyObject * obj3 = 0 ; | |
36026 | PyObject * obj4 = 0 ; | |
36027 | char * kwnames[] = { | |
36028 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
36029 | }; | |
36030 | ||
36031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36033 | if (!SWIG_IsOK(res1)) { | |
36034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36035 | } | |
36036 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36037 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36038 | if (!SWIG_IsOK(ecode2)) { | |
36039 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
36040 | } | |
36041 | arg2 = static_cast< int >(val2); | |
36042 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36043 | if (!SWIG_IsOK(ecode3)) { | |
36044 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
36045 | } | |
36046 | arg3 = static_cast< int >(val3); | |
36047 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36048 | if (!SWIG_IsOK(ecode4)) { | |
36049 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
36050 | } | |
36051 | arg4 = static_cast< int >(val4); | |
36052 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36053 | if (!SWIG_IsOK(ecode5)) { | |
36054 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
36055 | } | |
36056 | arg5 = static_cast< int >(val5); | |
36057 | { | |
36058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36059 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
36060 | wxPyEndAllowThreads(__tstate); | |
36061 | if (PyErr_Occurred()) SWIG_fail; | |
36062 | } | |
36063 | resultobj = SWIG_Py_Void(); | |
36064 | return resultobj; | |
36065 | fail: | |
36066 | return NULL; | |
36067 | } | |
36068 | ||
36069 | ||
36070 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36071 | PyObject *resultobj = 0; | |
36072 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36073 | wxPoint *arg2 = 0 ; | |
36074 | wxPoint *arg3 = 0 ; | |
36075 | void *argp1 = 0 ; | |
36076 | int res1 = 0 ; | |
36077 | wxPoint temp2 ; | |
36078 | wxPoint temp3 ; | |
36079 | PyObject * obj0 = 0 ; | |
36080 | PyObject * obj1 = 0 ; | |
36081 | PyObject * obj2 = 0 ; | |
36082 | char * kwnames[] = { | |
36083 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
36084 | }; | |
36085 | ||
36086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36088 | if (!SWIG_IsOK(res1)) { | |
36089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36090 | } | |
36091 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36092 | { | |
36093 | arg2 = &temp2; | |
36094 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36095 | } | |
36096 | { | |
36097 | arg3 = &temp3; | |
36098 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36099 | } | |
36100 | { | |
36101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36102 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
36103 | wxPyEndAllowThreads(__tstate); | |
36104 | if (PyErr_Occurred()) SWIG_fail; | |
36105 | } | |
36106 | resultobj = SWIG_Py_Void(); | |
36107 | return resultobj; | |
36108 | fail: | |
36109 | return NULL; | |
36110 | } | |
36111 | ||
36112 | ||
36113 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36114 | PyObject *resultobj = 0; | |
36115 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36116 | int arg2 ; | |
36117 | int arg3 ; | |
36118 | void *argp1 = 0 ; | |
36119 | int res1 = 0 ; | |
36120 | int val2 ; | |
36121 | int ecode2 = 0 ; | |
36122 | int val3 ; | |
36123 | int ecode3 = 0 ; | |
36124 | PyObject * obj0 = 0 ; | |
36125 | PyObject * obj1 = 0 ; | |
36126 | PyObject * obj2 = 0 ; | |
36127 | char * kwnames[] = { | |
36128 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36129 | }; | |
36130 | ||
36131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36133 | if (!SWIG_IsOK(res1)) { | |
36134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36135 | } | |
36136 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36137 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36138 | if (!SWIG_IsOK(ecode2)) { | |
36139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
36140 | } | |
36141 | arg2 = static_cast< int >(val2); | |
36142 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36143 | if (!SWIG_IsOK(ecode3)) { | |
36144 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
36145 | } | |
36146 | arg3 = static_cast< int >(val3); | |
36147 | { | |
36148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36149 | (arg1)->CrossHair(arg2,arg3); | |
36150 | wxPyEndAllowThreads(__tstate); | |
36151 | if (PyErr_Occurred()) SWIG_fail; | |
36152 | } | |
36153 | resultobj = SWIG_Py_Void(); | |
36154 | return resultobj; | |
36155 | fail: | |
36156 | return NULL; | |
36157 | } | |
36158 | ||
36159 | ||
36160 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36161 | PyObject *resultobj = 0; | |
36162 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36163 | wxPoint *arg2 = 0 ; | |
36164 | void *argp1 = 0 ; | |
36165 | int res1 = 0 ; | |
36166 | wxPoint temp2 ; | |
36167 | PyObject * obj0 = 0 ; | |
36168 | PyObject * obj1 = 0 ; | |
36169 | char * kwnames[] = { | |
36170 | (char *) "self",(char *) "pt", NULL | |
36171 | }; | |
36172 | ||
36173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36175 | if (!SWIG_IsOK(res1)) { | |
36176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36177 | } | |
36178 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36179 | { | |
36180 | arg2 = &temp2; | |
36181 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36182 | } | |
36183 | { | |
36184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36185 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
36186 | wxPyEndAllowThreads(__tstate); | |
36187 | if (PyErr_Occurred()) SWIG_fail; | |
36188 | } | |
36189 | resultobj = SWIG_Py_Void(); | |
36190 | return resultobj; | |
36191 | fail: | |
36192 | return NULL; | |
36193 | } | |
36194 | ||
36195 | ||
36196 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36197 | PyObject *resultobj = 0; | |
36198 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36199 | int arg2 ; | |
36200 | int arg3 ; | |
36201 | int arg4 ; | |
36202 | int arg5 ; | |
36203 | int arg6 ; | |
36204 | int arg7 ; | |
36205 | void *argp1 = 0 ; | |
36206 | int res1 = 0 ; | |
36207 | int val2 ; | |
36208 | int ecode2 = 0 ; | |
36209 | int val3 ; | |
36210 | int ecode3 = 0 ; | |
36211 | int val4 ; | |
36212 | int ecode4 = 0 ; | |
36213 | int val5 ; | |
36214 | int ecode5 = 0 ; | |
36215 | int val6 ; | |
36216 | int ecode6 = 0 ; | |
36217 | int val7 ; | |
36218 | int ecode7 = 0 ; | |
36219 | PyObject * obj0 = 0 ; | |
36220 | PyObject * obj1 = 0 ; | |
36221 | PyObject * obj2 = 0 ; | |
36222 | PyObject * obj3 = 0 ; | |
36223 | PyObject * obj4 = 0 ; | |
36224 | PyObject * obj5 = 0 ; | |
36225 | PyObject * obj6 = 0 ; | |
36226 | char * kwnames[] = { | |
36227 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
36228 | }; | |
36229 | ||
36230 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36231 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36232 | if (!SWIG_IsOK(res1)) { | |
36233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36234 | } | |
36235 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36236 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36237 | if (!SWIG_IsOK(ecode2)) { | |
36238 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
36239 | } | |
36240 | arg2 = static_cast< int >(val2); | |
36241 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36242 | if (!SWIG_IsOK(ecode3)) { | |
36243 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
36244 | } | |
36245 | arg3 = static_cast< int >(val3); | |
36246 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36247 | if (!SWIG_IsOK(ecode4)) { | |
36248 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
36249 | } | |
36250 | arg4 = static_cast< int >(val4); | |
36251 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36252 | if (!SWIG_IsOK(ecode5)) { | |
36253 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
36254 | } | |
36255 | arg5 = static_cast< int >(val5); | |
36256 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36257 | if (!SWIG_IsOK(ecode6)) { | |
36258 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
36259 | } | |
36260 | arg6 = static_cast< int >(val6); | |
36261 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
36262 | if (!SWIG_IsOK(ecode7)) { | |
36263 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
36264 | } | |
36265 | arg7 = static_cast< int >(val7); | |
36266 | { | |
36267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36268 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36269 | wxPyEndAllowThreads(__tstate); | |
36270 | if (PyErr_Occurred()) SWIG_fail; | |
36271 | } | |
36272 | resultobj = SWIG_Py_Void(); | |
36273 | return resultobj; | |
36274 | fail: | |
36275 | return NULL; | |
36276 | } | |
36277 | ||
36278 | ||
36279 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36280 | PyObject *resultobj = 0; | |
36281 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36282 | wxPoint *arg2 = 0 ; | |
36283 | wxPoint *arg3 = 0 ; | |
36284 | wxPoint *arg4 = 0 ; | |
36285 | void *argp1 = 0 ; | |
36286 | int res1 = 0 ; | |
36287 | wxPoint temp2 ; | |
36288 | wxPoint temp3 ; | |
36289 | wxPoint temp4 ; | |
36290 | PyObject * obj0 = 0 ; | |
36291 | PyObject * obj1 = 0 ; | |
36292 | PyObject * obj2 = 0 ; | |
36293 | PyObject * obj3 = 0 ; | |
36294 | char * kwnames[] = { | |
36295 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
36296 | }; | |
36297 | ||
36298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36300 | if (!SWIG_IsOK(res1)) { | |
36301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36302 | } | |
36303 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36304 | { | |
36305 | arg2 = &temp2; | |
36306 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36307 | } | |
36308 | { | |
36309 | arg3 = &temp3; | |
36310 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36311 | } | |
36312 | { | |
36313 | arg4 = &temp4; | |
36314 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36315 | } | |
36316 | { | |
36317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36318 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
36319 | wxPyEndAllowThreads(__tstate); | |
36320 | if (PyErr_Occurred()) SWIG_fail; | |
36321 | } | |
36322 | resultobj = SWIG_Py_Void(); | |
36323 | return resultobj; | |
36324 | fail: | |
36325 | return NULL; | |
36326 | } | |
36327 | ||
36328 | ||
36329 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36330 | PyObject *resultobj = 0; | |
36331 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36332 | int arg2 ; | |
36333 | int arg3 ; | |
36334 | int arg4 ; | |
36335 | int arg5 ; | |
36336 | void *argp1 = 0 ; | |
36337 | int res1 = 0 ; | |
36338 | int val2 ; | |
36339 | int ecode2 = 0 ; | |
36340 | int val3 ; | |
36341 | int ecode3 = 0 ; | |
36342 | int val4 ; | |
36343 | int ecode4 = 0 ; | |
36344 | int val5 ; | |
36345 | int ecode5 = 0 ; | |
36346 | PyObject * obj0 = 0 ; | |
36347 | PyObject * obj1 = 0 ; | |
36348 | PyObject * obj2 = 0 ; | |
36349 | PyObject * obj3 = 0 ; | |
36350 | PyObject * obj4 = 0 ; | |
36351 | char * kwnames[] = { | |
36352 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36353 | }; | |
36354 | ||
36355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36357 | if (!SWIG_IsOK(res1)) { | |
36358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36359 | } | |
36360 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36361 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36362 | if (!SWIG_IsOK(ecode2)) { | |
36363 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
36364 | } | |
36365 | arg2 = static_cast< int >(val2); | |
36366 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36367 | if (!SWIG_IsOK(ecode3)) { | |
36368 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
36369 | } | |
36370 | arg3 = static_cast< int >(val3); | |
36371 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36372 | if (!SWIG_IsOK(ecode4)) { | |
36373 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
36374 | } | |
36375 | arg4 = static_cast< int >(val4); | |
36376 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36377 | if (!SWIG_IsOK(ecode5)) { | |
36378 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
36379 | } | |
36380 | arg5 = static_cast< int >(val5); | |
36381 | { | |
36382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36383 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
36384 | wxPyEndAllowThreads(__tstate); | |
36385 | if (PyErr_Occurred()) SWIG_fail; | |
36386 | } | |
36387 | resultobj = SWIG_Py_Void(); | |
36388 | return resultobj; | |
36389 | fail: | |
36390 | return NULL; | |
36391 | } | |
36392 | ||
36393 | ||
36394 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36395 | PyObject *resultobj = 0; | |
36396 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36397 | wxRect *arg2 = 0 ; | |
36398 | void *argp1 = 0 ; | |
36399 | int res1 = 0 ; | |
36400 | wxRect temp2 ; | |
36401 | PyObject * obj0 = 0 ; | |
36402 | PyObject * obj1 = 0 ; | |
36403 | char * kwnames[] = { | |
36404 | (char *) "self",(char *) "rect", NULL | |
36405 | }; | |
36406 | ||
36407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36409 | if (!SWIG_IsOK(res1)) { | |
36410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36411 | } | |
36412 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36413 | { | |
36414 | arg2 = &temp2; | |
36415 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36416 | } | |
36417 | { | |
36418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36419 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
36420 | wxPyEndAllowThreads(__tstate); | |
36421 | if (PyErr_Occurred()) SWIG_fail; | |
36422 | } | |
36423 | resultobj = SWIG_Py_Void(); | |
36424 | return resultobj; | |
36425 | fail: | |
36426 | return NULL; | |
36427 | } | |
36428 | ||
36429 | ||
36430 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36431 | PyObject *resultobj = 0; | |
36432 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36433 | int arg2 ; | |
36434 | int arg3 ; | |
36435 | int arg4 ; | |
36436 | int arg5 ; | |
36437 | double arg6 ; | |
36438 | double arg7 ; | |
36439 | void *argp1 = 0 ; | |
36440 | int res1 = 0 ; | |
36441 | int val2 ; | |
36442 | int ecode2 = 0 ; | |
36443 | int val3 ; | |
36444 | int ecode3 = 0 ; | |
36445 | int val4 ; | |
36446 | int ecode4 = 0 ; | |
36447 | int val5 ; | |
36448 | int ecode5 = 0 ; | |
36449 | double val6 ; | |
36450 | int ecode6 = 0 ; | |
36451 | double val7 ; | |
36452 | int ecode7 = 0 ; | |
36453 | PyObject * obj0 = 0 ; | |
36454 | PyObject * obj1 = 0 ; | |
36455 | PyObject * obj2 = 0 ; | |
36456 | PyObject * obj3 = 0 ; | |
36457 | PyObject * obj4 = 0 ; | |
36458 | PyObject * obj5 = 0 ; | |
36459 | PyObject * obj6 = 0 ; | |
36460 | char * kwnames[] = { | |
36461 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
36462 | }; | |
36463 | ||
36464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36466 | if (!SWIG_IsOK(res1)) { | |
36467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36468 | } | |
36469 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36470 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36471 | if (!SWIG_IsOK(ecode2)) { | |
36472 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
36473 | } | |
36474 | arg2 = static_cast< int >(val2); | |
36475 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36476 | if (!SWIG_IsOK(ecode3)) { | |
36477 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
36478 | } | |
36479 | arg3 = static_cast< int >(val3); | |
36480 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36481 | if (!SWIG_IsOK(ecode4)) { | |
36482 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
36483 | } | |
36484 | arg4 = static_cast< int >(val4); | |
36485 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36486 | if (!SWIG_IsOK(ecode5)) { | |
36487 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
36488 | } | |
36489 | arg5 = static_cast< int >(val5); | |
36490 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36491 | if (!SWIG_IsOK(ecode6)) { | |
36492 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
36493 | } | |
36494 | arg6 = static_cast< double >(val6); | |
36495 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
36496 | if (!SWIG_IsOK(ecode7)) { | |
36497 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
36498 | } | |
36499 | arg7 = static_cast< double >(val7); | |
36500 | { | |
36501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36502 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36503 | wxPyEndAllowThreads(__tstate); | |
36504 | if (PyErr_Occurred()) SWIG_fail; | |
36505 | } | |
36506 | resultobj = SWIG_Py_Void(); | |
36507 | return resultobj; | |
36508 | fail: | |
36509 | return NULL; | |
36510 | } | |
36511 | ||
36512 | ||
36513 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36514 | PyObject *resultobj = 0; | |
36515 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36516 | wxPoint *arg2 = 0 ; | |
36517 | wxSize *arg3 = 0 ; | |
36518 | double arg4 ; | |
36519 | double arg5 ; | |
36520 | void *argp1 = 0 ; | |
36521 | int res1 = 0 ; | |
36522 | wxPoint temp2 ; | |
36523 | wxSize temp3 ; | |
36524 | double val4 ; | |
36525 | int ecode4 = 0 ; | |
36526 | double val5 ; | |
36527 | int ecode5 = 0 ; | |
36528 | PyObject * obj0 = 0 ; | |
36529 | PyObject * obj1 = 0 ; | |
36530 | PyObject * obj2 = 0 ; | |
36531 | PyObject * obj3 = 0 ; | |
36532 | PyObject * obj4 = 0 ; | |
36533 | char * kwnames[] = { | |
36534 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
36535 | }; | |
36536 | ||
36537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36539 | if (!SWIG_IsOK(res1)) { | |
36540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36541 | } | |
36542 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36543 | { | |
36544 | arg2 = &temp2; | |
36545 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36546 | } | |
36547 | { | |
36548 | arg3 = &temp3; | |
36549 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36550 | } | |
36551 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36552 | if (!SWIG_IsOK(ecode4)) { | |
36553 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
36554 | } | |
36555 | arg4 = static_cast< double >(val4); | |
36556 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
36557 | if (!SWIG_IsOK(ecode5)) { | |
36558 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
36559 | } | |
36560 | arg5 = static_cast< double >(val5); | |
36561 | { | |
36562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36563 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
36564 | wxPyEndAllowThreads(__tstate); | |
36565 | if (PyErr_Occurred()) SWIG_fail; | |
36566 | } | |
36567 | resultobj = SWIG_Py_Void(); | |
36568 | return resultobj; | |
36569 | fail: | |
36570 | return NULL; | |
36571 | } | |
36572 | ||
36573 | ||
36574 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36575 | PyObject *resultobj = 0; | |
36576 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36577 | int arg2 ; | |
36578 | int arg3 ; | |
36579 | void *argp1 = 0 ; | |
36580 | int res1 = 0 ; | |
36581 | int val2 ; | |
36582 | int ecode2 = 0 ; | |
36583 | int val3 ; | |
36584 | int ecode3 = 0 ; | |
36585 | PyObject * obj0 = 0 ; | |
36586 | PyObject * obj1 = 0 ; | |
36587 | PyObject * obj2 = 0 ; | |
36588 | char * kwnames[] = { | |
36589 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36590 | }; | |
36591 | ||
36592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36593 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36594 | if (!SWIG_IsOK(res1)) { | |
36595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36596 | } | |
36597 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36598 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36599 | if (!SWIG_IsOK(ecode2)) { | |
36600 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
36601 | } | |
36602 | arg2 = static_cast< int >(val2); | |
36603 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36604 | if (!SWIG_IsOK(ecode3)) { | |
36605 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
36606 | } | |
36607 | arg3 = static_cast< int >(val3); | |
36608 | { | |
36609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36610 | (arg1)->DrawPoint(arg2,arg3); | |
36611 | wxPyEndAllowThreads(__tstate); | |
36612 | if (PyErr_Occurred()) SWIG_fail; | |
36613 | } | |
36614 | resultobj = SWIG_Py_Void(); | |
36615 | return resultobj; | |
36616 | fail: | |
36617 | return NULL; | |
36618 | } | |
36619 | ||
36620 | ||
36621 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36622 | PyObject *resultobj = 0; | |
36623 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36624 | wxPoint *arg2 = 0 ; | |
36625 | void *argp1 = 0 ; | |
36626 | int res1 = 0 ; | |
36627 | wxPoint temp2 ; | |
36628 | PyObject * obj0 = 0 ; | |
36629 | PyObject * obj1 = 0 ; | |
36630 | char * kwnames[] = { | |
36631 | (char *) "self",(char *) "pt", NULL | |
36632 | }; | |
36633 | ||
36634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36636 | if (!SWIG_IsOK(res1)) { | |
36637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36638 | } | |
36639 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36640 | { | |
36641 | arg2 = &temp2; | |
36642 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36643 | } | |
36644 | { | |
36645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36646 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
36647 | wxPyEndAllowThreads(__tstate); | |
36648 | if (PyErr_Occurred()) SWIG_fail; | |
36649 | } | |
36650 | resultobj = SWIG_Py_Void(); | |
36651 | return resultobj; | |
36652 | fail: | |
36653 | return NULL; | |
36654 | } | |
36655 | ||
36656 | ||
36657 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36658 | PyObject *resultobj = 0; | |
36659 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36660 | int arg2 ; | |
36661 | int arg3 ; | |
36662 | int arg4 ; | |
36663 | int arg5 ; | |
36664 | void *argp1 = 0 ; | |
36665 | int res1 = 0 ; | |
36666 | int val2 ; | |
36667 | int ecode2 = 0 ; | |
36668 | int val3 ; | |
36669 | int ecode3 = 0 ; | |
36670 | int val4 ; | |
36671 | int ecode4 = 0 ; | |
36672 | int val5 ; | |
36673 | int ecode5 = 0 ; | |
36674 | PyObject * obj0 = 0 ; | |
36675 | PyObject * obj1 = 0 ; | |
36676 | PyObject * obj2 = 0 ; | |
36677 | PyObject * obj3 = 0 ; | |
36678 | PyObject * obj4 = 0 ; | |
36679 | char * kwnames[] = { | |
36680 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36681 | }; | |
36682 | ||
36683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36685 | if (!SWIG_IsOK(res1)) { | |
36686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36687 | } | |
36688 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36689 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36690 | if (!SWIG_IsOK(ecode2)) { | |
36691 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36692 | } | |
36693 | arg2 = static_cast< int >(val2); | |
36694 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36695 | if (!SWIG_IsOK(ecode3)) { | |
36696 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36697 | } | |
36698 | arg3 = static_cast< int >(val3); | |
36699 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36700 | if (!SWIG_IsOK(ecode4)) { | |
36701 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36702 | } | |
36703 | arg4 = static_cast< int >(val4); | |
36704 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36705 | if (!SWIG_IsOK(ecode5)) { | |
36706 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36707 | } | |
36708 | arg5 = static_cast< int >(val5); | |
36709 | { | |
36710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36711 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
36712 | wxPyEndAllowThreads(__tstate); | |
36713 | if (PyErr_Occurred()) SWIG_fail; | |
36714 | } | |
36715 | resultobj = SWIG_Py_Void(); | |
36716 | return resultobj; | |
36717 | fail: | |
36718 | return NULL; | |
36719 | } | |
36720 | ||
36721 | ||
36722 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36723 | PyObject *resultobj = 0; | |
36724 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36725 | wxRect *arg2 = 0 ; | |
36726 | void *argp1 = 0 ; | |
36727 | int res1 = 0 ; | |
36728 | wxRect temp2 ; | |
36729 | PyObject * obj0 = 0 ; | |
36730 | PyObject * obj1 = 0 ; | |
36731 | char * kwnames[] = { | |
36732 | (char *) "self",(char *) "rect", NULL | |
36733 | }; | |
36734 | ||
36735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36737 | if (!SWIG_IsOK(res1)) { | |
36738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36739 | } | |
36740 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36741 | { | |
36742 | arg2 = &temp2; | |
36743 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36744 | } | |
36745 | { | |
36746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36747 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
36748 | wxPyEndAllowThreads(__tstate); | |
36749 | if (PyErr_Occurred()) SWIG_fail; | |
36750 | } | |
36751 | resultobj = SWIG_Py_Void(); | |
36752 | return resultobj; | |
36753 | fail: | |
36754 | return NULL; | |
36755 | } | |
36756 | ||
36757 | ||
36758 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36759 | PyObject *resultobj = 0; | |
36760 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36761 | wxPoint *arg2 = 0 ; | |
36762 | wxSize *arg3 = 0 ; | |
36763 | void *argp1 = 0 ; | |
36764 | int res1 = 0 ; | |
36765 | wxPoint temp2 ; | |
36766 | wxSize temp3 ; | |
36767 | PyObject * obj0 = 0 ; | |
36768 | PyObject * obj1 = 0 ; | |
36769 | PyObject * obj2 = 0 ; | |
36770 | char * kwnames[] = { | |
36771 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
36772 | }; | |
36773 | ||
36774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36776 | if (!SWIG_IsOK(res1)) { | |
36777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36778 | } | |
36779 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36780 | { | |
36781 | arg2 = &temp2; | |
36782 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36783 | } | |
36784 | { | |
36785 | arg3 = &temp3; | |
36786 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36787 | } | |
36788 | { | |
36789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36790 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
36791 | wxPyEndAllowThreads(__tstate); | |
36792 | if (PyErr_Occurred()) SWIG_fail; | |
36793 | } | |
36794 | resultobj = SWIG_Py_Void(); | |
36795 | return resultobj; | |
36796 | fail: | |
36797 | return NULL; | |
36798 | } | |
36799 | ||
36800 | ||
36801 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36802 | PyObject *resultobj = 0; | |
36803 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36804 | int arg2 ; | |
36805 | int arg3 ; | |
36806 | int arg4 ; | |
36807 | int arg5 ; | |
36808 | double arg6 ; | |
36809 | void *argp1 = 0 ; | |
36810 | int res1 = 0 ; | |
36811 | int val2 ; | |
36812 | int ecode2 = 0 ; | |
36813 | int val3 ; | |
36814 | int ecode3 = 0 ; | |
36815 | int val4 ; | |
36816 | int ecode4 = 0 ; | |
36817 | int val5 ; | |
36818 | int ecode5 = 0 ; | |
36819 | double val6 ; | |
36820 | int ecode6 = 0 ; | |
36821 | PyObject * obj0 = 0 ; | |
36822 | PyObject * obj1 = 0 ; | |
36823 | PyObject * obj2 = 0 ; | |
36824 | PyObject * obj3 = 0 ; | |
36825 | PyObject * obj4 = 0 ; | |
36826 | PyObject * obj5 = 0 ; | |
36827 | char * kwnames[] = { | |
36828 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
36829 | }; | |
36830 | ||
36831 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36832 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36833 | if (!SWIG_IsOK(res1)) { | |
36834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36835 | } | |
36836 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36837 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36838 | if (!SWIG_IsOK(ecode2)) { | |
36839 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36840 | } | |
36841 | arg2 = static_cast< int >(val2); | |
36842 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36843 | if (!SWIG_IsOK(ecode3)) { | |
36844 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36845 | } | |
36846 | arg3 = static_cast< int >(val3); | |
36847 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36848 | if (!SWIG_IsOK(ecode4)) { | |
36849 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36850 | } | |
36851 | arg4 = static_cast< int >(val4); | |
36852 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36853 | if (!SWIG_IsOK(ecode5)) { | |
36854 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36855 | } | |
36856 | arg5 = static_cast< int >(val5); | |
36857 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36858 | if (!SWIG_IsOK(ecode6)) { | |
36859 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
36860 | } | |
36861 | arg6 = static_cast< double >(val6); | |
36862 | { | |
36863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36864 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
36865 | wxPyEndAllowThreads(__tstate); | |
36866 | if (PyErr_Occurred()) SWIG_fail; | |
36867 | } | |
36868 | resultobj = SWIG_Py_Void(); | |
36869 | return resultobj; | |
36870 | fail: | |
36871 | return NULL; | |
36872 | } | |
36873 | ||
36874 | ||
36875 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36876 | PyObject *resultobj = 0; | |
36877 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36878 | wxRect *arg2 = 0 ; | |
36879 | double arg3 ; | |
36880 | void *argp1 = 0 ; | |
36881 | int res1 = 0 ; | |
36882 | wxRect temp2 ; | |
36883 | double val3 ; | |
36884 | int ecode3 = 0 ; | |
36885 | PyObject * obj0 = 0 ; | |
36886 | PyObject * obj1 = 0 ; | |
36887 | PyObject * obj2 = 0 ; | |
36888 | char * kwnames[] = { | |
36889 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
36890 | }; | |
36891 | ||
36892 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36893 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36894 | if (!SWIG_IsOK(res1)) { | |
36895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36896 | } | |
36897 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36898 | { | |
36899 | arg2 = &temp2; | |
36900 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36901 | } | |
36902 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
36903 | if (!SWIG_IsOK(ecode3)) { | |
36904 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
36905 | } | |
36906 | arg3 = static_cast< double >(val3); | |
36907 | { | |
36908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36909 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
36910 | wxPyEndAllowThreads(__tstate); | |
36911 | if (PyErr_Occurred()) SWIG_fail; | |
36912 | } | |
36913 | resultobj = SWIG_Py_Void(); | |
36914 | return resultobj; | |
36915 | fail: | |
36916 | return NULL; | |
36917 | } | |
36918 | ||
36919 | ||
36920 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36921 | PyObject *resultobj = 0; | |
36922 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36923 | wxPoint *arg2 = 0 ; | |
36924 | wxSize *arg3 = 0 ; | |
36925 | double arg4 ; | |
36926 | void *argp1 = 0 ; | |
36927 | int res1 = 0 ; | |
36928 | wxPoint temp2 ; | |
36929 | wxSize temp3 ; | |
36930 | double val4 ; | |
36931 | int ecode4 = 0 ; | |
36932 | PyObject * obj0 = 0 ; | |
36933 | PyObject * obj1 = 0 ; | |
36934 | PyObject * obj2 = 0 ; | |
36935 | PyObject * obj3 = 0 ; | |
36936 | char * kwnames[] = { | |
36937 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
36938 | }; | |
36939 | ||
36940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36942 | if (!SWIG_IsOK(res1)) { | |
36943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36944 | } | |
36945 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36946 | { | |
36947 | arg2 = &temp2; | |
36948 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36949 | } | |
36950 | { | |
36951 | arg3 = &temp3; | |
36952 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36953 | } | |
36954 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36955 | if (!SWIG_IsOK(ecode4)) { | |
36956 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
36957 | } | |
36958 | arg4 = static_cast< double >(val4); | |
36959 | { | |
36960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36961 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
36962 | wxPyEndAllowThreads(__tstate); | |
36963 | if (PyErr_Occurred()) SWIG_fail; | |
36964 | } | |
36965 | resultobj = SWIG_Py_Void(); | |
36966 | return resultobj; | |
36967 | fail: | |
36968 | return NULL; | |
36969 | } | |
36970 | ||
36971 | ||
36972 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36973 | PyObject *resultobj = 0; | |
36974 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36975 | int arg2 ; | |
36976 | int arg3 ; | |
36977 | int arg4 ; | |
36978 | void *argp1 = 0 ; | |
36979 | int res1 = 0 ; | |
36980 | int val2 ; | |
36981 | int ecode2 = 0 ; | |
36982 | int val3 ; | |
36983 | int ecode3 = 0 ; | |
36984 | int val4 ; | |
36985 | int ecode4 = 0 ; | |
36986 | PyObject * obj0 = 0 ; | |
36987 | PyObject * obj1 = 0 ; | |
36988 | PyObject * obj2 = 0 ; | |
36989 | PyObject * obj3 = 0 ; | |
36990 | char * kwnames[] = { | |
36991 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
36992 | }; | |
36993 | ||
36994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36996 | if (!SWIG_IsOK(res1)) { | |
36997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36998 | } | |
36999 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37000 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37001 | if (!SWIG_IsOK(ecode2)) { | |
37002 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
37003 | } | |
37004 | arg2 = static_cast< int >(val2); | |
37005 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37006 | if (!SWIG_IsOK(ecode3)) { | |
37007 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
37008 | } | |
37009 | arg3 = static_cast< int >(val3); | |
37010 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37011 | if (!SWIG_IsOK(ecode4)) { | |
37012 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
37013 | } | |
37014 | arg4 = static_cast< int >(val4); | |
37015 | { | |
37016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37017 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
37018 | wxPyEndAllowThreads(__tstate); | |
37019 | if (PyErr_Occurred()) SWIG_fail; | |
37020 | } | |
37021 | resultobj = SWIG_Py_Void(); | |
37022 | return resultobj; | |
37023 | fail: | |
37024 | return NULL; | |
37025 | } | |
37026 | ||
37027 | ||
37028 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37029 | PyObject *resultobj = 0; | |
37030 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37031 | wxPoint *arg2 = 0 ; | |
37032 | int arg3 ; | |
37033 | void *argp1 = 0 ; | |
37034 | int res1 = 0 ; | |
37035 | wxPoint temp2 ; | |
37036 | int val3 ; | |
37037 | int ecode3 = 0 ; | |
37038 | PyObject * obj0 = 0 ; | |
37039 | PyObject * obj1 = 0 ; | |
37040 | PyObject * obj2 = 0 ; | |
37041 | char * kwnames[] = { | |
37042 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
37043 | }; | |
37044 | ||
37045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37047 | if (!SWIG_IsOK(res1)) { | |
37048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37049 | } | |
37050 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37051 | { | |
37052 | arg2 = &temp2; | |
37053 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37054 | } | |
37055 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37056 | if (!SWIG_IsOK(ecode3)) { | |
37057 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
37058 | } | |
37059 | arg3 = static_cast< int >(val3); | |
37060 | { | |
37061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37062 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
37063 | wxPyEndAllowThreads(__tstate); | |
37064 | if (PyErr_Occurred()) SWIG_fail; | |
37065 | } | |
37066 | resultobj = SWIG_Py_Void(); | |
37067 | return resultobj; | |
37068 | fail: | |
37069 | return NULL; | |
37070 | } | |
37071 | ||
37072 | ||
37073 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37074 | PyObject *resultobj = 0; | |
37075 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37076 | int arg2 ; | |
37077 | int arg3 ; | |
37078 | int arg4 ; | |
37079 | int arg5 ; | |
37080 | void *argp1 = 0 ; | |
37081 | int res1 = 0 ; | |
37082 | int val2 ; | |
37083 | int ecode2 = 0 ; | |
37084 | int val3 ; | |
37085 | int ecode3 = 0 ; | |
37086 | int val4 ; | |
37087 | int ecode4 = 0 ; | |
37088 | int val5 ; | |
37089 | int ecode5 = 0 ; | |
37090 | PyObject * obj0 = 0 ; | |
37091 | PyObject * obj1 = 0 ; | |
37092 | PyObject * obj2 = 0 ; | |
37093 | PyObject * obj3 = 0 ; | |
37094 | PyObject * obj4 = 0 ; | |
37095 | char * kwnames[] = { | |
37096 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37097 | }; | |
37098 | ||
37099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37101 | if (!SWIG_IsOK(res1)) { | |
37102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37103 | } | |
37104 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37105 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37106 | if (!SWIG_IsOK(ecode2)) { | |
37107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
37108 | } | |
37109 | arg2 = static_cast< int >(val2); | |
37110 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37111 | if (!SWIG_IsOK(ecode3)) { | |
37112 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
37113 | } | |
37114 | arg3 = static_cast< int >(val3); | |
37115 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37116 | if (!SWIG_IsOK(ecode4)) { | |
37117 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
37118 | } | |
37119 | arg4 = static_cast< int >(val4); | |
37120 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37121 | if (!SWIG_IsOK(ecode5)) { | |
37122 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
37123 | } | |
37124 | arg5 = static_cast< int >(val5); | |
37125 | { | |
37126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37127 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
37128 | wxPyEndAllowThreads(__tstate); | |
37129 | if (PyErr_Occurred()) SWIG_fail; | |
37130 | } | |
37131 | resultobj = SWIG_Py_Void(); | |
37132 | return resultobj; | |
37133 | fail: | |
37134 | return NULL; | |
37135 | } | |
37136 | ||
37137 | ||
37138 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37139 | PyObject *resultobj = 0; | |
37140 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37141 | wxRect *arg2 = 0 ; | |
37142 | void *argp1 = 0 ; | |
37143 | int res1 = 0 ; | |
37144 | wxRect temp2 ; | |
37145 | PyObject * obj0 = 0 ; | |
37146 | PyObject * obj1 = 0 ; | |
37147 | char * kwnames[] = { | |
37148 | (char *) "self",(char *) "rect", NULL | |
37149 | }; | |
37150 | ||
37151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37152 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37153 | if (!SWIG_IsOK(res1)) { | |
37154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37155 | } | |
37156 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37157 | { | |
37158 | arg2 = &temp2; | |
37159 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37160 | } | |
37161 | { | |
37162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37163 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
37164 | wxPyEndAllowThreads(__tstate); | |
37165 | if (PyErr_Occurred()) SWIG_fail; | |
37166 | } | |
37167 | resultobj = SWIG_Py_Void(); | |
37168 | return resultobj; | |
37169 | fail: | |
37170 | return NULL; | |
37171 | } | |
37172 | ||
37173 | ||
37174 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37175 | PyObject *resultobj = 0; | |
37176 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37177 | wxPoint *arg2 = 0 ; | |
37178 | wxSize *arg3 = 0 ; | |
37179 | void *argp1 = 0 ; | |
37180 | int res1 = 0 ; | |
37181 | wxPoint temp2 ; | |
37182 | wxSize temp3 ; | |
37183 | PyObject * obj0 = 0 ; | |
37184 | PyObject * obj1 = 0 ; | |
37185 | PyObject * obj2 = 0 ; | |
37186 | char * kwnames[] = { | |
37187 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37188 | }; | |
37189 | ||
37190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37192 | if (!SWIG_IsOK(res1)) { | |
37193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37194 | } | |
37195 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37196 | { | |
37197 | arg2 = &temp2; | |
37198 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37199 | } | |
37200 | { | |
37201 | arg3 = &temp3; | |
37202 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37203 | } | |
37204 | { | |
37205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37206 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37207 | wxPyEndAllowThreads(__tstate); | |
37208 | if (PyErr_Occurred()) SWIG_fail; | |
37209 | } | |
37210 | resultobj = SWIG_Py_Void(); | |
37211 | return resultobj; | |
37212 | fail: | |
37213 | return NULL; | |
37214 | } | |
37215 | ||
37216 | ||
37217 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37218 | PyObject *resultobj = 0; | |
37219 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37220 | wxIcon *arg2 = 0 ; | |
37221 | int arg3 ; | |
37222 | int arg4 ; | |
37223 | void *argp1 = 0 ; | |
37224 | int res1 = 0 ; | |
37225 | void *argp2 = 0 ; | |
37226 | int res2 = 0 ; | |
37227 | int val3 ; | |
37228 | int ecode3 = 0 ; | |
37229 | int val4 ; | |
37230 | int ecode4 = 0 ; | |
37231 | PyObject * obj0 = 0 ; | |
37232 | PyObject * obj1 = 0 ; | |
37233 | PyObject * obj2 = 0 ; | |
37234 | PyObject * obj3 = 0 ; | |
37235 | char * kwnames[] = { | |
37236 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
37237 | }; | |
37238 | ||
37239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37241 | if (!SWIG_IsOK(res1)) { | |
37242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37243 | } | |
37244 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37245 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
37246 | if (!SWIG_IsOK(res2)) { | |
37247 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37248 | } | |
37249 | if (!argp2) { | |
37250 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37251 | } | |
37252 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
37253 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37254 | if (!SWIG_IsOK(ecode3)) { | |
37255 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
37256 | } | |
37257 | arg3 = static_cast< int >(val3); | |
37258 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37259 | if (!SWIG_IsOK(ecode4)) { | |
37260 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
37261 | } | |
37262 | arg4 = static_cast< int >(val4); | |
37263 | { | |
37264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37265 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
37266 | wxPyEndAllowThreads(__tstate); | |
37267 | if (PyErr_Occurred()) SWIG_fail; | |
37268 | } | |
37269 | resultobj = SWIG_Py_Void(); | |
37270 | return resultobj; | |
37271 | fail: | |
37272 | return NULL; | |
37273 | } | |
37274 | ||
37275 | ||
37276 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37277 | PyObject *resultobj = 0; | |
37278 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37279 | wxIcon *arg2 = 0 ; | |
37280 | wxPoint *arg3 = 0 ; | |
37281 | void *argp1 = 0 ; | |
37282 | int res1 = 0 ; | |
37283 | void *argp2 = 0 ; | |
37284 | int res2 = 0 ; | |
37285 | wxPoint temp3 ; | |
37286 | PyObject * obj0 = 0 ; | |
37287 | PyObject * obj1 = 0 ; | |
37288 | PyObject * obj2 = 0 ; | |
37289 | char * kwnames[] = { | |
37290 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
37291 | }; | |
37292 | ||
37293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37295 | if (!SWIG_IsOK(res1)) { | |
37296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37297 | } | |
37298 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37299 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
37300 | if (!SWIG_IsOK(res2)) { | |
37301 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37302 | } | |
37303 | if (!argp2) { | |
37304 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37305 | } | |
37306 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
37307 | { | |
37308 | arg3 = &temp3; | |
37309 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37310 | } | |
37311 | { | |
37312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37313 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
37314 | wxPyEndAllowThreads(__tstate); | |
37315 | if (PyErr_Occurred()) SWIG_fail; | |
37316 | } | |
37317 | resultobj = SWIG_Py_Void(); | |
37318 | return resultobj; | |
37319 | fail: | |
37320 | return NULL; | |
37321 | } | |
37322 | ||
37323 | ||
37324 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37325 | PyObject *resultobj = 0; | |
37326 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37327 | wxBitmap *arg2 = 0 ; | |
37328 | int arg3 ; | |
37329 | int arg4 ; | |
37330 | bool arg5 = (bool) false ; | |
37331 | void *argp1 = 0 ; | |
37332 | int res1 = 0 ; | |
37333 | void *argp2 = 0 ; | |
37334 | int res2 = 0 ; | |
37335 | int val3 ; | |
37336 | int ecode3 = 0 ; | |
37337 | int val4 ; | |
37338 | int ecode4 = 0 ; | |
37339 | bool val5 ; | |
37340 | int ecode5 = 0 ; | |
37341 | PyObject * obj0 = 0 ; | |
37342 | PyObject * obj1 = 0 ; | |
37343 | PyObject * obj2 = 0 ; | |
37344 | PyObject * obj3 = 0 ; | |
37345 | PyObject * obj4 = 0 ; | |
37346 | char * kwnames[] = { | |
37347 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
37348 | }; | |
37349 | ||
37350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37352 | if (!SWIG_IsOK(res1)) { | |
37353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37354 | } | |
37355 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37356 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37357 | if (!SWIG_IsOK(res2)) { | |
37358 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37359 | } | |
37360 | if (!argp2) { | |
37361 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37362 | } | |
37363 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37364 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37365 | if (!SWIG_IsOK(ecode3)) { | |
37366 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
37367 | } | |
37368 | arg3 = static_cast< int >(val3); | |
37369 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37370 | if (!SWIG_IsOK(ecode4)) { | |
37371 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
37372 | } | |
37373 | arg4 = static_cast< int >(val4); | |
37374 | if (obj4) { | |
37375 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
37376 | if (!SWIG_IsOK(ecode5)) { | |
37377 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
37378 | } | |
37379 | arg5 = static_cast< bool >(val5); | |
37380 | } | |
37381 | { | |
37382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37383 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
37384 | wxPyEndAllowThreads(__tstate); | |
37385 | if (PyErr_Occurred()) SWIG_fail; | |
37386 | } | |
37387 | resultobj = SWIG_Py_Void(); | |
37388 | return resultobj; | |
37389 | fail: | |
37390 | return NULL; | |
37391 | } | |
37392 | ||
37393 | ||
37394 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37395 | PyObject *resultobj = 0; | |
37396 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37397 | wxBitmap *arg2 = 0 ; | |
37398 | wxPoint *arg3 = 0 ; | |
37399 | bool arg4 = (bool) false ; | |
37400 | void *argp1 = 0 ; | |
37401 | int res1 = 0 ; | |
37402 | void *argp2 = 0 ; | |
37403 | int res2 = 0 ; | |
37404 | wxPoint temp3 ; | |
37405 | bool val4 ; | |
37406 | int ecode4 = 0 ; | |
37407 | PyObject * obj0 = 0 ; | |
37408 | PyObject * obj1 = 0 ; | |
37409 | PyObject * obj2 = 0 ; | |
37410 | PyObject * obj3 = 0 ; | |
37411 | char * kwnames[] = { | |
37412 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
37413 | }; | |
37414 | ||
37415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37417 | if (!SWIG_IsOK(res1)) { | |
37418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37419 | } | |
37420 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37421 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37422 | if (!SWIG_IsOK(res2)) { | |
37423 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37424 | } | |
37425 | if (!argp2) { | |
37426 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37427 | } | |
37428 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37429 | { | |
37430 | arg3 = &temp3; | |
37431 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37432 | } | |
37433 | if (obj3) { | |
37434 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
37435 | if (!SWIG_IsOK(ecode4)) { | |
37436 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
37437 | } | |
37438 | arg4 = static_cast< bool >(val4); | |
37439 | } | |
37440 | { | |
37441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37442 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37443 | wxPyEndAllowThreads(__tstate); | |
37444 | if (PyErr_Occurred()) SWIG_fail; | |
37445 | } | |
37446 | resultobj = SWIG_Py_Void(); | |
37447 | return resultobj; | |
37448 | fail: | |
37449 | return NULL; | |
37450 | } | |
37451 | ||
37452 | ||
37453 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37454 | PyObject *resultobj = 0; | |
37455 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37456 | wxString *arg2 = 0 ; | |
37457 | int arg3 ; | |
37458 | int arg4 ; | |
37459 | void *argp1 = 0 ; | |
37460 | int res1 = 0 ; | |
37461 | bool temp2 = false ; | |
37462 | int val3 ; | |
37463 | int ecode3 = 0 ; | |
37464 | int val4 ; | |
37465 | int ecode4 = 0 ; | |
37466 | PyObject * obj0 = 0 ; | |
37467 | PyObject * obj1 = 0 ; | |
37468 | PyObject * obj2 = 0 ; | |
37469 | PyObject * obj3 = 0 ; | |
37470 | char * kwnames[] = { | |
37471 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
37472 | }; | |
37473 | ||
37474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37476 | if (!SWIG_IsOK(res1)) { | |
37477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37478 | } | |
37479 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37480 | { | |
37481 | arg2 = wxString_in_helper(obj1); | |
37482 | if (arg2 == NULL) SWIG_fail; | |
37483 | temp2 = true; | |
37484 | } | |
37485 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37486 | if (!SWIG_IsOK(ecode3)) { | |
37487 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
37488 | } | |
37489 | arg3 = static_cast< int >(val3); | |
37490 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37491 | if (!SWIG_IsOK(ecode4)) { | |
37492 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
37493 | } | |
37494 | arg4 = static_cast< int >(val4); | |
37495 | { | |
37496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37497 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
37498 | wxPyEndAllowThreads(__tstate); | |
37499 | if (PyErr_Occurred()) SWIG_fail; | |
37500 | } | |
37501 | resultobj = SWIG_Py_Void(); | |
37502 | { | |
37503 | if (temp2) | |
37504 | delete arg2; | |
37505 | } | |
37506 | return resultobj; | |
37507 | fail: | |
37508 | { | |
37509 | if (temp2) | |
37510 | delete arg2; | |
37511 | } | |
37512 | return NULL; | |
37513 | } | |
37514 | ||
37515 | ||
37516 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37517 | PyObject *resultobj = 0; | |
37518 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37519 | wxString *arg2 = 0 ; | |
37520 | wxPoint *arg3 = 0 ; | |
37521 | void *argp1 = 0 ; | |
37522 | int res1 = 0 ; | |
37523 | bool temp2 = false ; | |
37524 | wxPoint temp3 ; | |
37525 | PyObject * obj0 = 0 ; | |
37526 | PyObject * obj1 = 0 ; | |
37527 | PyObject * obj2 = 0 ; | |
37528 | char * kwnames[] = { | |
37529 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
37530 | }; | |
37531 | ||
37532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37533 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37534 | if (!SWIG_IsOK(res1)) { | |
37535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37536 | } | |
37537 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37538 | { | |
37539 | arg2 = wxString_in_helper(obj1); | |
37540 | if (arg2 == NULL) SWIG_fail; | |
37541 | temp2 = true; | |
37542 | } | |
37543 | { | |
37544 | arg3 = &temp3; | |
37545 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37546 | } | |
37547 | { | |
37548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37549 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
37550 | wxPyEndAllowThreads(__tstate); | |
37551 | if (PyErr_Occurred()) SWIG_fail; | |
37552 | } | |
37553 | resultobj = SWIG_Py_Void(); | |
37554 | { | |
37555 | if (temp2) | |
37556 | delete arg2; | |
37557 | } | |
37558 | return resultobj; | |
37559 | fail: | |
37560 | { | |
37561 | if (temp2) | |
37562 | delete arg2; | |
37563 | } | |
37564 | return NULL; | |
37565 | } | |
37566 | ||
37567 | ||
37568 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37569 | PyObject *resultobj = 0; | |
37570 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37571 | wxString *arg2 = 0 ; | |
37572 | int arg3 ; | |
37573 | int arg4 ; | |
37574 | double arg5 ; | |
37575 | void *argp1 = 0 ; | |
37576 | int res1 = 0 ; | |
37577 | bool temp2 = false ; | |
37578 | int val3 ; | |
37579 | int ecode3 = 0 ; | |
37580 | int val4 ; | |
37581 | int ecode4 = 0 ; | |
37582 | double val5 ; | |
37583 | int ecode5 = 0 ; | |
37584 | PyObject * obj0 = 0 ; | |
37585 | PyObject * obj1 = 0 ; | |
37586 | PyObject * obj2 = 0 ; | |
37587 | PyObject * obj3 = 0 ; | |
37588 | PyObject * obj4 = 0 ; | |
37589 | char * kwnames[] = { | |
37590 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
37591 | }; | |
37592 | ||
37593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37595 | if (!SWIG_IsOK(res1)) { | |
37596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37597 | } | |
37598 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37599 | { | |
37600 | arg2 = wxString_in_helper(obj1); | |
37601 | if (arg2 == NULL) SWIG_fail; | |
37602 | temp2 = true; | |
37603 | } | |
37604 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37605 | if (!SWIG_IsOK(ecode3)) { | |
37606 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
37607 | } | |
37608 | arg3 = static_cast< int >(val3); | |
37609 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37610 | if (!SWIG_IsOK(ecode4)) { | |
37611 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
37612 | } | |
37613 | arg4 = static_cast< int >(val4); | |
37614 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37615 | if (!SWIG_IsOK(ecode5)) { | |
37616 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
37617 | } | |
37618 | arg5 = static_cast< double >(val5); | |
37619 | { | |
37620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37621 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
37622 | wxPyEndAllowThreads(__tstate); | |
37623 | if (PyErr_Occurred()) SWIG_fail; | |
37624 | } | |
37625 | resultobj = SWIG_Py_Void(); | |
37626 | { | |
37627 | if (temp2) | |
37628 | delete arg2; | |
37629 | } | |
37630 | return resultobj; | |
37631 | fail: | |
37632 | { | |
37633 | if (temp2) | |
37634 | delete arg2; | |
37635 | } | |
37636 | return NULL; | |
37637 | } | |
37638 | ||
37639 | ||
37640 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37641 | PyObject *resultobj = 0; | |
37642 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37643 | wxString *arg2 = 0 ; | |
37644 | wxPoint *arg3 = 0 ; | |
37645 | double arg4 ; | |
37646 | void *argp1 = 0 ; | |
37647 | int res1 = 0 ; | |
37648 | bool temp2 = false ; | |
37649 | wxPoint temp3 ; | |
37650 | double val4 ; | |
37651 | int ecode4 = 0 ; | |
37652 | PyObject * obj0 = 0 ; | |
37653 | PyObject * obj1 = 0 ; | |
37654 | PyObject * obj2 = 0 ; | |
37655 | PyObject * obj3 = 0 ; | |
37656 | char * kwnames[] = { | |
37657 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
37658 | }; | |
37659 | ||
37660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37662 | if (!SWIG_IsOK(res1)) { | |
37663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37664 | } | |
37665 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37666 | { | |
37667 | arg2 = wxString_in_helper(obj1); | |
37668 | if (arg2 == NULL) SWIG_fail; | |
37669 | temp2 = true; | |
37670 | } | |
37671 | { | |
37672 | arg3 = &temp3; | |
37673 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37674 | } | |
37675 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37676 | if (!SWIG_IsOK(ecode4)) { | |
37677 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
37678 | } | |
37679 | arg4 = static_cast< double >(val4); | |
37680 | { | |
37681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37682 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37683 | wxPyEndAllowThreads(__tstate); | |
37684 | if (PyErr_Occurred()) SWIG_fail; | |
37685 | } | |
37686 | resultobj = SWIG_Py_Void(); | |
37687 | { | |
37688 | if (temp2) | |
37689 | delete arg2; | |
37690 | } | |
37691 | return resultobj; | |
37692 | fail: | |
37693 | { | |
37694 | if (temp2) | |
37695 | delete arg2; | |
37696 | } | |
37697 | return NULL; | |
37698 | } | |
37699 | ||
37700 | ||
37701 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37702 | PyObject *resultobj = 0; | |
37703 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37704 | int arg2 ; | |
37705 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37706 | int arg4 = (int) 0 ; | |
37707 | int arg5 = (int) 0 ; | |
37708 | void *argp1 = 0 ; | |
37709 | int res1 = 0 ; | |
37710 | int val4 ; | |
37711 | int ecode4 = 0 ; | |
37712 | int val5 ; | |
37713 | int ecode5 = 0 ; | |
37714 | PyObject * obj0 = 0 ; | |
37715 | PyObject * obj1 = 0 ; | |
37716 | PyObject * obj2 = 0 ; | |
37717 | PyObject * obj3 = 0 ; | |
37718 | char * kwnames[] = { | |
37719 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
37720 | }; | |
37721 | ||
37722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37724 | if (!SWIG_IsOK(res1)) { | |
37725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37726 | } | |
37727 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37728 | { | |
37729 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37730 | if (arg3 == NULL) SWIG_fail; | |
37731 | } | |
37732 | if (obj2) { | |
37733 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37734 | if (!SWIG_IsOK(ecode4)) { | |
37735 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
37736 | } | |
37737 | arg4 = static_cast< int >(val4); | |
37738 | } | |
37739 | if (obj3) { | |
37740 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37741 | if (!SWIG_IsOK(ecode5)) { | |
37742 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
37743 | } | |
37744 | arg5 = static_cast< int >(val5); | |
37745 | } | |
37746 | { | |
37747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37748 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
37749 | wxPyEndAllowThreads(__tstate); | |
37750 | if (PyErr_Occurred()) SWIG_fail; | |
37751 | } | |
37752 | resultobj = SWIG_Py_Void(); | |
37753 | { | |
37754 | if (arg3) delete [] arg3; | |
37755 | } | |
37756 | return resultobj; | |
37757 | fail: | |
37758 | { | |
37759 | if (arg3) delete [] arg3; | |
37760 | } | |
37761 | return NULL; | |
37762 | } | |
37763 | ||
37764 | ||
37765 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37766 | PyObject *resultobj = 0; | |
37767 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37768 | int arg2 ; | |
37769 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37770 | int arg4 = (int) 0 ; | |
37771 | int arg5 = (int) 0 ; | |
37772 | int arg6 = (int) wxODDEVEN_RULE ; | |
37773 | void *argp1 = 0 ; | |
37774 | int res1 = 0 ; | |
37775 | int val4 ; | |
37776 | int ecode4 = 0 ; | |
37777 | int val5 ; | |
37778 | int ecode5 = 0 ; | |
37779 | int val6 ; | |
37780 | int ecode6 = 0 ; | |
37781 | PyObject * obj0 = 0 ; | |
37782 | PyObject * obj1 = 0 ; | |
37783 | PyObject * obj2 = 0 ; | |
37784 | PyObject * obj3 = 0 ; | |
37785 | PyObject * obj4 = 0 ; | |
37786 | char * kwnames[] = { | |
37787 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
37788 | }; | |
37789 | ||
37790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37792 | if (!SWIG_IsOK(res1)) { | |
37793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37794 | } | |
37795 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37796 | { | |
37797 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37798 | if (arg3 == NULL) SWIG_fail; | |
37799 | } | |
37800 | if (obj2) { | |
37801 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37802 | if (!SWIG_IsOK(ecode4)) { | |
37803 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
37804 | } | |
37805 | arg4 = static_cast< int >(val4); | |
37806 | } | |
37807 | if (obj3) { | |
37808 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37809 | if (!SWIG_IsOK(ecode5)) { | |
37810 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
37811 | } | |
37812 | arg5 = static_cast< int >(val5); | |
37813 | } | |
37814 | if (obj4) { | |
37815 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
37816 | if (!SWIG_IsOK(ecode6)) { | |
37817 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
37818 | } | |
37819 | arg6 = static_cast< int >(val6); | |
37820 | } | |
37821 | { | |
37822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37823 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
37824 | wxPyEndAllowThreads(__tstate); | |
37825 | if (PyErr_Occurred()) SWIG_fail; | |
37826 | } | |
37827 | resultobj = SWIG_Py_Void(); | |
37828 | { | |
37829 | if (arg3) delete [] arg3; | |
37830 | } | |
37831 | return resultobj; | |
37832 | fail: | |
37833 | { | |
37834 | if (arg3) delete [] arg3; | |
37835 | } | |
37836 | return NULL; | |
37837 | } | |
37838 | ||
37839 | ||
37840 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37841 | PyObject *resultobj = 0; | |
37842 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37843 | wxString *arg2 = 0 ; | |
37844 | wxRect *arg3 = 0 ; | |
37845 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37846 | int arg5 = (int) -1 ; | |
37847 | void *argp1 = 0 ; | |
37848 | int res1 = 0 ; | |
37849 | bool temp2 = false ; | |
37850 | wxRect temp3 ; | |
37851 | int val4 ; | |
37852 | int ecode4 = 0 ; | |
37853 | int val5 ; | |
37854 | int ecode5 = 0 ; | |
37855 | PyObject * obj0 = 0 ; | |
37856 | PyObject * obj1 = 0 ; | |
37857 | PyObject * obj2 = 0 ; | |
37858 | PyObject * obj3 = 0 ; | |
37859 | PyObject * obj4 = 0 ; | |
37860 | char * kwnames[] = { | |
37861 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37862 | }; | |
37863 | ||
37864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37866 | if (!SWIG_IsOK(res1)) { | |
37867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37868 | } | |
37869 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37870 | { | |
37871 | arg2 = wxString_in_helper(obj1); | |
37872 | if (arg2 == NULL) SWIG_fail; | |
37873 | temp2 = true; | |
37874 | } | |
37875 | { | |
37876 | arg3 = &temp3; | |
37877 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
37878 | } | |
37879 | if (obj3) { | |
37880 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37881 | if (!SWIG_IsOK(ecode4)) { | |
37882 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
37883 | } | |
37884 | arg4 = static_cast< int >(val4); | |
37885 | } | |
37886 | if (obj4) { | |
37887 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37888 | if (!SWIG_IsOK(ecode5)) { | |
37889 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
37890 | } | |
37891 | arg5 = static_cast< int >(val5); | |
37892 | } | |
37893 | { | |
37894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37895 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
37896 | wxPyEndAllowThreads(__tstate); | |
37897 | if (PyErr_Occurred()) SWIG_fail; | |
37898 | } | |
37899 | resultobj = SWIG_Py_Void(); | |
37900 | { | |
37901 | if (temp2) | |
37902 | delete arg2; | |
37903 | } | |
37904 | return resultobj; | |
37905 | fail: | |
37906 | { | |
37907 | if (temp2) | |
37908 | delete arg2; | |
37909 | } | |
37910 | return NULL; | |
37911 | } | |
37912 | ||
37913 | ||
37914 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37915 | PyObject *resultobj = 0; | |
37916 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37917 | wxString *arg2 = 0 ; | |
37918 | wxBitmap *arg3 = 0 ; | |
37919 | wxRect *arg4 = 0 ; | |
37920 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37921 | int arg6 = (int) -1 ; | |
37922 | void *argp1 = 0 ; | |
37923 | int res1 = 0 ; | |
37924 | bool temp2 = false ; | |
37925 | void *argp3 = 0 ; | |
37926 | int res3 = 0 ; | |
37927 | wxRect temp4 ; | |
37928 | int val5 ; | |
37929 | int ecode5 = 0 ; | |
37930 | int val6 ; | |
37931 | int ecode6 = 0 ; | |
37932 | PyObject * obj0 = 0 ; | |
37933 | PyObject * obj1 = 0 ; | |
37934 | PyObject * obj2 = 0 ; | |
37935 | PyObject * obj3 = 0 ; | |
37936 | PyObject * obj4 = 0 ; | |
37937 | PyObject * obj5 = 0 ; | |
37938 | char * kwnames[] = { | |
37939 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37940 | }; | |
37941 | ||
37942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37944 | if (!SWIG_IsOK(res1)) { | |
37945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37946 | } | |
37947 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37948 | { | |
37949 | arg2 = wxString_in_helper(obj1); | |
37950 | if (arg2 == NULL) SWIG_fail; | |
37951 | temp2 = true; | |
37952 | } | |
37953 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37954 | if (!SWIG_IsOK(res3)) { | |
37955 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37956 | } | |
37957 | if (!argp3) { | |
37958 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37959 | } | |
37960 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
37961 | { | |
37962 | arg4 = &temp4; | |
37963 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
37964 | } | |
37965 | if (obj4) { | |
37966 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37967 | if (!SWIG_IsOK(ecode5)) { | |
37968 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
37969 | } | |
37970 | arg5 = static_cast< int >(val5); | |
37971 | } | |
37972 | if (obj5) { | |
37973 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
37974 | if (!SWIG_IsOK(ecode6)) { | |
37975 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
37976 | } | |
37977 | arg6 = static_cast< int >(val6); | |
37978 | } | |
37979 | { | |
37980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37981 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
37982 | wxPyEndAllowThreads(__tstate); | |
37983 | if (PyErr_Occurred()) SWIG_fail; | |
37984 | } | |
37985 | resultobj = SWIG_Py_Void(); | |
37986 | { | |
37987 | if (temp2) | |
37988 | delete arg2; | |
37989 | } | |
37990 | return resultobj; | |
37991 | fail: | |
37992 | { | |
37993 | if (temp2) | |
37994 | delete arg2; | |
37995 | } | |
37996 | return NULL; | |
37997 | } | |
37998 | ||
37999 | ||
38000 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38001 | PyObject *resultobj = 0; | |
38002 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38003 | int arg2 ; | |
38004 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38005 | void *argp1 = 0 ; | |
38006 | int res1 = 0 ; | |
38007 | PyObject * obj0 = 0 ; | |
38008 | PyObject * obj1 = 0 ; | |
38009 | char * kwnames[] = { | |
38010 | (char *) "self",(char *) "points", NULL | |
38011 | }; | |
38012 | ||
38013 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
38014 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38015 | if (!SWIG_IsOK(res1)) { | |
38016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38017 | } | |
38018 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38019 | { | |
38020 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38021 | if (arg3 == NULL) SWIG_fail; | |
38022 | } | |
38023 | { | |
38024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38025 | (arg1)->DrawSpline(arg2,arg3); | |
38026 | wxPyEndAllowThreads(__tstate); | |
38027 | if (PyErr_Occurred()) SWIG_fail; | |
38028 | } | |
38029 | resultobj = SWIG_Py_Void(); | |
38030 | { | |
38031 | if (arg3) delete [] arg3; | |
38032 | } | |
38033 | return resultobj; | |
38034 | fail: | |
38035 | { | |
38036 | if (arg3) delete [] arg3; | |
38037 | } | |
38038 | return NULL; | |
38039 | } | |
38040 | ||
38041 | ||
38042 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38043 | PyObject *resultobj = 0; | |
38044 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38045 | void *argp1 = 0 ; | |
38046 | int res1 = 0 ; | |
38047 | PyObject *swig_obj[1] ; | |
38048 | ||
38049 | if (!args) SWIG_fail; | |
38050 | swig_obj[0] = args; | |
38051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38052 | if (!SWIG_IsOK(res1)) { | |
38053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38054 | } | |
38055 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38056 | { | |
38057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38058 | (arg1)->Clear(); | |
38059 | wxPyEndAllowThreads(__tstate); | |
38060 | if (PyErr_Occurred()) SWIG_fail; | |
38061 | } | |
38062 | resultobj = SWIG_Py_Void(); | |
38063 | return resultobj; | |
38064 | fail: | |
38065 | return NULL; | |
38066 | } | |
38067 | ||
38068 | ||
38069 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38070 | PyObject *resultobj = 0; | |
38071 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38072 | wxFont *arg2 = 0 ; | |
38073 | void *argp1 = 0 ; | |
38074 | int res1 = 0 ; | |
38075 | void *argp2 = 0 ; | |
38076 | int res2 = 0 ; | |
38077 | PyObject * obj0 = 0 ; | |
38078 | PyObject * obj1 = 0 ; | |
38079 | char * kwnames[] = { | |
38080 | (char *) "self",(char *) "font", NULL | |
38081 | }; | |
38082 | ||
38083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
38084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38085 | if (!SWIG_IsOK(res1)) { | |
38086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38087 | } | |
38088 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38089 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
38090 | if (!SWIG_IsOK(res2)) { | |
38091 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38092 | } | |
38093 | if (!argp2) { | |
38094 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38095 | } | |
38096 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
38097 | { | |
38098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38099 | (arg1)->SetFont((wxFont const &)*arg2); | |
38100 | wxPyEndAllowThreads(__tstate); | |
38101 | if (PyErr_Occurred()) SWIG_fail; | |
38102 | } | |
38103 | resultobj = SWIG_Py_Void(); | |
38104 | return resultobj; | |
38105 | fail: | |
38106 | return NULL; | |
38107 | } | |
38108 | ||
38109 | ||
38110 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38111 | PyObject *resultobj = 0; | |
38112 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38113 | wxPen *arg2 = 0 ; | |
38114 | void *argp1 = 0 ; | |
38115 | int res1 = 0 ; | |
38116 | void *argp2 = 0 ; | |
38117 | int res2 = 0 ; | |
38118 | PyObject * obj0 = 0 ; | |
38119 | PyObject * obj1 = 0 ; | |
38120 | char * kwnames[] = { | |
38121 | (char *) "self",(char *) "pen", NULL | |
38122 | }; | |
38123 | ||
38124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
38125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38126 | if (!SWIG_IsOK(res1)) { | |
38127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38128 | } | |
38129 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38130 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
38131 | if (!SWIG_IsOK(res2)) { | |
38132 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38133 | } | |
38134 | if (!argp2) { | |
38135 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38136 | } | |
38137 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
38138 | { | |
38139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38140 | (arg1)->SetPen((wxPen const &)*arg2); | |
38141 | wxPyEndAllowThreads(__tstate); | |
38142 | if (PyErr_Occurred()) SWIG_fail; | |
38143 | } | |
38144 | resultobj = SWIG_Py_Void(); | |
38145 | return resultobj; | |
38146 | fail: | |
38147 | return NULL; | |
38148 | } | |
38149 | ||
38150 | ||
38151 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38152 | PyObject *resultobj = 0; | |
38153 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38154 | wxBrush *arg2 = 0 ; | |
38155 | void *argp1 = 0 ; | |
38156 | int res1 = 0 ; | |
38157 | void *argp2 = 0 ; | |
38158 | int res2 = 0 ; | |
38159 | PyObject * obj0 = 0 ; | |
38160 | PyObject * obj1 = 0 ; | |
38161 | char * kwnames[] = { | |
38162 | (char *) "self",(char *) "brush", NULL | |
38163 | }; | |
38164 | ||
38165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
38166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38167 | if (!SWIG_IsOK(res1)) { | |
38168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38169 | } | |
38170 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38171 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38172 | if (!SWIG_IsOK(res2)) { | |
38173 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38174 | } | |
38175 | if (!argp2) { | |
38176 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38177 | } | |
38178 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38179 | { | |
38180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38181 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
38182 | wxPyEndAllowThreads(__tstate); | |
38183 | if (PyErr_Occurred()) SWIG_fail; | |
38184 | } | |
38185 | resultobj = SWIG_Py_Void(); | |
38186 | return resultobj; | |
38187 | fail: | |
38188 | return NULL; | |
38189 | } | |
38190 | ||
38191 | ||
38192 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38193 | PyObject *resultobj = 0; | |
38194 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38195 | wxBrush *arg2 = 0 ; | |
38196 | void *argp1 = 0 ; | |
38197 | int res1 = 0 ; | |
38198 | void *argp2 = 0 ; | |
38199 | int res2 = 0 ; | |
38200 | PyObject * obj0 = 0 ; | |
38201 | PyObject * obj1 = 0 ; | |
38202 | char * kwnames[] = { | |
38203 | (char *) "self",(char *) "brush", NULL | |
38204 | }; | |
38205 | ||
38206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38208 | if (!SWIG_IsOK(res1)) { | |
38209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38210 | } | |
38211 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38212 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38213 | if (!SWIG_IsOK(res2)) { | |
38214 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38215 | } | |
38216 | if (!argp2) { | |
38217 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38218 | } | |
38219 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38220 | { | |
38221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38222 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
38223 | wxPyEndAllowThreads(__tstate); | |
38224 | if (PyErr_Occurred()) SWIG_fail; | |
38225 | } | |
38226 | resultobj = SWIG_Py_Void(); | |
38227 | return resultobj; | |
38228 | fail: | |
38229 | return NULL; | |
38230 | } | |
38231 | ||
38232 | ||
38233 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38234 | PyObject *resultobj = 0; | |
38235 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38236 | int arg2 ; | |
38237 | void *argp1 = 0 ; | |
38238 | int res1 = 0 ; | |
38239 | int val2 ; | |
38240 | int ecode2 = 0 ; | |
38241 | PyObject * obj0 = 0 ; | |
38242 | PyObject * obj1 = 0 ; | |
38243 | char * kwnames[] = { | |
38244 | (char *) "self",(char *) "mode", NULL | |
38245 | }; | |
38246 | ||
38247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
38248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38249 | if (!SWIG_IsOK(res1)) { | |
38250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38251 | } | |
38252 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38253 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38254 | if (!SWIG_IsOK(ecode2)) { | |
38255 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
38256 | } | |
38257 | arg2 = static_cast< int >(val2); | |
38258 | { | |
38259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38260 | (arg1)->SetBackgroundMode(arg2); | |
38261 | wxPyEndAllowThreads(__tstate); | |
38262 | if (PyErr_Occurred()) SWIG_fail; | |
38263 | } | |
38264 | resultobj = SWIG_Py_Void(); | |
38265 | return resultobj; | |
38266 | fail: | |
38267 | return NULL; | |
38268 | } | |
38269 | ||
38270 | ||
38271 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38272 | PyObject *resultobj = 0; | |
38273 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38274 | wxPalette *arg2 = 0 ; | |
38275 | void *argp1 = 0 ; | |
38276 | int res1 = 0 ; | |
38277 | void *argp2 = 0 ; | |
38278 | int res2 = 0 ; | |
38279 | PyObject * obj0 = 0 ; | |
38280 | PyObject * obj1 = 0 ; | |
38281 | char * kwnames[] = { | |
38282 | (char *) "self",(char *) "palette", NULL | |
38283 | }; | |
38284 | ||
38285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
38286 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38287 | if (!SWIG_IsOK(res1)) { | |
38288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38289 | } | |
38290 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38291 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
38292 | if (!SWIG_IsOK(res2)) { | |
38293 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
38294 | } | |
38295 | if (!argp2) { | |
38296 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
38297 | } | |
38298 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
38299 | { | |
38300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38301 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
38302 | wxPyEndAllowThreads(__tstate); | |
38303 | if (PyErr_Occurred()) SWIG_fail; | |
38304 | } | |
38305 | resultobj = SWIG_Py_Void(); | |
38306 | return resultobj; | |
38307 | fail: | |
38308 | return NULL; | |
38309 | } | |
38310 | ||
38311 | ||
38312 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38313 | PyObject *resultobj = 0; | |
38314 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38315 | wxColour *arg2 = 0 ; | |
38316 | void *argp1 = 0 ; | |
38317 | int res1 = 0 ; | |
38318 | wxColour temp2 ; | |
38319 | PyObject * obj0 = 0 ; | |
38320 | PyObject * obj1 = 0 ; | |
38321 | char * kwnames[] = { | |
38322 | (char *) "self",(char *) "colour", NULL | |
38323 | }; | |
38324 | ||
38325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38327 | if (!SWIG_IsOK(res1)) { | |
38328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38329 | } | |
38330 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38331 | { | |
38332 | arg2 = &temp2; | |
38333 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
38334 | } | |
38335 | { | |
38336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38337 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
38338 | wxPyEndAllowThreads(__tstate); | |
38339 | if (PyErr_Occurred()) SWIG_fail; | |
38340 | } | |
38341 | resultobj = SWIG_Py_Void(); | |
38342 | return resultobj; | |
38343 | fail: | |
38344 | return NULL; | |
38345 | } | |
38346 | ||
38347 | ||
38348 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38349 | PyObject *resultobj = 0; | |
38350 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38351 | wxColour *arg2 = 0 ; | |
38352 | void *argp1 = 0 ; | |
38353 | int res1 = 0 ; | |
38354 | wxColour temp2 ; | |
38355 | PyObject * obj0 = 0 ; | |
38356 | PyObject * obj1 = 0 ; | |
38357 | char * kwnames[] = { | |
38358 | (char *) "self",(char *) "colour", NULL | |
38359 | }; | |
38360 | ||
38361 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38362 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38363 | if (!SWIG_IsOK(res1)) { | |
38364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38365 | } | |
38366 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38367 | { | |
38368 | arg2 = &temp2; | |
38369 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
38370 | } | |
38371 | { | |
38372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38373 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
38374 | wxPyEndAllowThreads(__tstate); | |
38375 | if (PyErr_Occurred()) SWIG_fail; | |
38376 | } | |
38377 | resultobj = SWIG_Py_Void(); | |
38378 | return resultobj; | |
38379 | fail: | |
38380 | return NULL; | |
38381 | } | |
38382 | ||
38383 | ||
38384 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38385 | PyObject *resultobj = 0; | |
38386 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38387 | int arg2 ; | |
38388 | void *argp1 = 0 ; | |
38389 | int res1 = 0 ; | |
38390 | int val2 ; | |
38391 | int ecode2 = 0 ; | |
38392 | PyObject * obj0 = 0 ; | |
38393 | PyObject * obj1 = 0 ; | |
38394 | char * kwnames[] = { | |
38395 | (char *) "self",(char *) "function", NULL | |
38396 | }; | |
38397 | ||
38398 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
38399 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38400 | if (!SWIG_IsOK(res1)) { | |
38401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38402 | } | |
38403 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38404 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38405 | if (!SWIG_IsOK(ecode2)) { | |
38406 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
38407 | } | |
38408 | arg2 = static_cast< int >(val2); | |
38409 | { | |
38410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38411 | (arg1)->SetLogicalFunction(arg2); | |
38412 | wxPyEndAllowThreads(__tstate); | |
38413 | if (PyErr_Occurred()) SWIG_fail; | |
38414 | } | |
38415 | resultobj = SWIG_Py_Void(); | |
38416 | return resultobj; | |
38417 | fail: | |
38418 | return NULL; | |
38419 | } | |
38420 | ||
38421 | ||
38422 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38423 | PyObject *obj; | |
38424 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38425 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
38426 | return SWIG_Py_Void(); | |
38427 | } | |
38428 | ||
38429 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38430 | return SWIG_Python_InitShadowInstance(args); | |
38431 | } | |
38432 | ||
38433 | static PyMethodDef SwigMethods[] = { | |
38434 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
38435 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
38436 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
38437 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
38438 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
38439 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38440 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38441 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38442 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
38443 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
38444 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
38445 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 38446 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 38447 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
38448 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
38449 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38450 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38451 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38452 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
38453 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38454 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 38455 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38456 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
38457 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
38458 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
38459 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38460 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
38461 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38462 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38463 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 38464 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
38465 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
38466 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
38467 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38468 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
38469 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
38470 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
38471 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
38472 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
38473 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 38474 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
38475 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
38476 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38477 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38478 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38479 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38480 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38481 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
38482 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38483 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
38484 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38485 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38486 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
38487 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
38488 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38489 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38490 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
38491 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38492 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38493 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38494 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
38495 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
38496 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
38497 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 38498 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
38499 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
38500 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
38501 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38502 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
38503 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38504 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38505 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38506 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38507 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38508 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
38509 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
38510 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
38511 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
38512 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
38513 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
38514 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
38515 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38516 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38517 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38518 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38519 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38520 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
38521 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38522 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38523 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38524 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38525 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 RD |
38526 | { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
38527 | { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
38528 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38529 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38530 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
38531 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38532 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
38533 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38534 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38535 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
38536 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
38537 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
38538 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
38539 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
38540 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
38541 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
38542 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
38543 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
38544 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
38545 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
38546 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
38547 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
38548 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
38549 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
38550 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38551 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
38552 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
38553 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38554 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38555 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38556 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38557 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38558 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
38559 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38560 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
38561 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
38562 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
38563 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
38564 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
38565 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
38566 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
38567 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
38568 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
38569 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
38570 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38571 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
38572 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
38573 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38574 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38575 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38576 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38577 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38578 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
38579 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38580 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
38581 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
38582 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
38583 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
38584 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
38585 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38586 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
38587 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
38588 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38589 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38590 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38591 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38592 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
38593 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
38594 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
38595 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
38596 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38597 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38598 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38599 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38600 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
38601 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
38602 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38603 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
38604 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
38605 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38606 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
38607 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38608 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
38609 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
38610 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
38611 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
38612 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38613 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38614 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
38615 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38616 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38617 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38618 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
38619 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
38620 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38621 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
38622 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38623 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38624 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
38625 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, |
38626 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
38627 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38628 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38629 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38630 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38631 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
38632 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
38633 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38634 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38635 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38636 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38637 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38638 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
38639 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38640 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38641 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38642 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 38643 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38644 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
38645 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38646 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38647 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38648 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38649 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38650 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38651 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38652 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38653 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
38654 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38655 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38656 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
38657 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
38658 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38659 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
38660 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
38661 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
38662 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
38663 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
38664 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
38665 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
38666 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
38667 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
38668 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
38669 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
38670 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
38671 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
38672 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
38673 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
38674 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
38675 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
38676 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38677 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
38678 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
38679 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
38680 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
38681 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
38682 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
38683 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
38684 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38685 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38686 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38687 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38688 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38689 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38690 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38691 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38692 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
38693 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
38694 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38695 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
38696 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
38697 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
38698 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
38699 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
38700 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
38701 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
38702 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
38703 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
38704 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38705 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
38706 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
38707 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
38708 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38709 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38710 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
38711 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
38712 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
38713 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38714 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38715 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
38716 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38717 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38718 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38719 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38720 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38721 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
38722 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38723 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38724 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38725 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38726 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
38727 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
38728 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38729 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
38730 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38731 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38732 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38733 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38734 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38735 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
27e45892 | 38736 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38737 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38738 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
38739 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
38740 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
38741 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
38742 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
38743 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
38744 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
38745 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
38746 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
38747 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
38748 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
38749 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
38750 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
38751 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38752 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38753 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38754 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38755 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38756 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38757 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38758 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38759 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38760 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38761 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38762 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
38763 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
38764 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
38765 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38766 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
38767 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
38768 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38769 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
38770 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
38771 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
38772 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
38773 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38774 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38775 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
38776 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
38777 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
38778 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38779 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
38780 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
38781 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
38782 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
38783 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
38784 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
38785 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
38786 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
38787 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
38788 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38789 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
38790 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38791 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38792 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
38793 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
38794 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
38795 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
38796 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
38797 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
38798 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
38799 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
38800 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38801 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 38802 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38803 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
38804 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38805 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38806 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38807 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38808 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38809 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
38810 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
38811 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38812 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
38813 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
38814 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38815 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38816 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38817 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
38818 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38819 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
38820 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
38821 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
38822 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
38823 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38824 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38825 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38826 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38827 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38828 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
38829 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
38830 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
38831 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38832 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38833 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38834 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38835 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38836 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38837 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38838 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38839 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38840 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38841 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38842 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38843 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38844 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38845 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38846 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38847 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38848 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38849 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38850 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38851 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38852 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38853 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38854 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38855 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38856 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38857 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38858 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38859 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38860 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38861 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38862 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38863 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38864 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38865 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38866 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38867 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38868 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38869 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 38870 | { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38871 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
38872 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38873 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38874 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38875 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38876 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38877 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38878 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38879 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38880 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
38881 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38882 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
38883 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
38884 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
38885 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38886 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38887 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38888 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38889 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38890 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38891 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
38892 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
38893 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
38894 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
38895 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
38896 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38897 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38898 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38899 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38900 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
38901 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
38902 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
38903 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
38904 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38905 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38906 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38907 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38908 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38909 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38910 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38911 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38912 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
38913 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
38914 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
38915 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 38916 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
0085ce49 RD |
38917 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
38918 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
38919 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
38920 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
38921 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
38922 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
38923 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
38924 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38925 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38926 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
38927 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38928 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
38929 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38930 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
38931 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38932 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
38933 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
38934 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38935 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38936 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
38937 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
38938 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38939 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38940 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38941 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
38942 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38943 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
38944 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38945 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38946 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
38947 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
38948 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
38949 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
38950 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
38951 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
38952 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
38953 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38954 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, |
38955 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38956 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38957 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38958 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38959 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38960 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
38961 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
38962 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
38963 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
38964 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
38965 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38966 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
38967 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
38968 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
38969 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38970 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
38971 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
38972 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
38973 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
38974 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
38975 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
38976 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38977 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
38978 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38979 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38980 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
38981 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
38982 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
38983 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38984 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
38985 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38986 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38987 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
38988 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
38989 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38990 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
38991 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26c4d26f RD |
38992 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38993 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38994 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38995 | { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38996 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
38997 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
38998 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
38999 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
39000 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
b6df5cf9 RD |
39001 | { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
39002 | { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL}, | |
24f6c4e8 RD |
39003 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, |
39004 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
39005 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39006 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39007 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
39008 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39009 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39010 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 39011 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
39012 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39013 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
39014 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
39015 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39016 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
39017 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39018 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39019 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
39020 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
39021 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
39022 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39023 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
39024 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
39025 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39026 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
39027 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
39028 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39029 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
39030 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
70d7cb34 RD |
39031 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
39032 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
39033 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
39034 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
39035 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
39036 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
39037 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
39038 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
39039 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
39040 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
39041 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
39042 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
39043 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
39044 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
39045 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
39046 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
39047 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
39048 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
8f514ab4 | 39049 | { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL}, |
5c8c7dd3 RD |
39050 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
39051 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 | 39052 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
248802d0 | 39053 | { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL}, |
5c8c7dd3 RD |
39054 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, |
39055 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39056 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
39057 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39058 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39059 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39060 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39061 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39062 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
39063 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
8f514ab4 RD |
39064 | { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL}, |
39065 | { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL}, | |
72ef6efb | 39066 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
39067 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
39068 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
39069 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
39070 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39071 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
39072 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 39073 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
39074 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
39075 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39076 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39077 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
39078 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
39079 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39080 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
39081 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39082 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39083 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
39084 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb | 39085 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
8f514ab4 | 39086 | { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL}, |
72ef6efb | 39087 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, |
0a27f394 | 39088 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
f89238b9 | 39089 | { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL}, |
0a27f394 | 39090 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 | 39091 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39092 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
39093 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
39094 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39095 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39096 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39097 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39098 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39099 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
39100 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 39101 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39102 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
39103 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
39104 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
c8aaaf9e RD |
39105 | { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL}, |
39106 | { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39107 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
39108 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39109 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
39110 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
39111 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39112 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
39113 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
39114 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
39115 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
39116 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
39117 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39118 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
39119 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
39120 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 39121 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39122 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
39123 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39124 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39125 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39126 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39127 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 39128 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39129 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
39130 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39131 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39132 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 39133 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 39134 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
39135 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
39136 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
39137 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
f89238b9 | 39138 | { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL}, |
70d7cb34 RD |
39139 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, |
39140 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39141 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
39142 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39143 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39144 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39145 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39146 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39147 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39148 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
48a0c021 | 39149 | { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL}, |
72ef6efb | 39150 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, |
0a27f394 RD |
39151 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
39152 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39153 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
39154 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
39155 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
39156 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
39157 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
39158 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
39159 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
39160 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
39161 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
39162 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
39163 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
39164 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39165 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
39166 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
39167 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39168 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39169 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39170 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39171 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39172 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39173 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39174 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
39175 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39176 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
39177 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39178 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
39179 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39180 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
39181 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
39182 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
39183 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
39184 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39185 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39186 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39187 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39188 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39189 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
39190 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
39191 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
39192 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
39193 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
39194 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
0085ce49 | 39195 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 39196 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39197 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39198 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 39199 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 39200 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39201 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39202 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
39203 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
39204 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39205 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39206 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
39207 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
39208 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
39209 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39210 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39211 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39212 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39213 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
39214 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39215 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
39216 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
39217 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
39218 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
0085ce49 RD |
39219 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
39220 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
39221 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
39222 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
39223 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
39224 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
39225 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39226 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39227 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39228 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39229 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39230 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39231 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39232 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39233 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
39234 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
39235 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39236 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
39237 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
39238 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
39239 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
39240 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
39241 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
39242 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
39243 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
39244 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
39245 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
39246 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
39247 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
39248 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
39249 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
39250 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
39251 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
39252 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
39253 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
39254 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
39255 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
39256 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
39257 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
39258 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
39259 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39260 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
39261 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
39262 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39263 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
39264 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
39265 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
39266 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
39267 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
39268 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
39269 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39270 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
39271 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39272 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39273 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39274 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
01f6b6d3 RD |
39275 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
39276 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39277 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39278 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
39279 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
39280 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
39281 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
39282 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39283 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
39284 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
39285 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
39286 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
39287 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
39288 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
39289 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
39290 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
39291 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39292 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39293 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39294 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39295 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
39296 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39297 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39298 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
39299 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39300 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39301 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39302 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39303 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39304 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39305 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39306 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39307 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39308 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39309 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39310 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39311 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39312 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39313 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39314 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39315 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39316 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39317 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39318 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39319 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39320 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39321 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39322 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39323 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39324 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39325 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39326 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39327 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39328 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39329 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39330 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39331 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39332 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39333 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39334 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39335 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39336 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39337 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39338 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39339 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39340 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39341 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39342 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39343 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
39344 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39345 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39346 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39347 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39348 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39349 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39350 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39351 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39352 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39353 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
39354 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39355 | { NULL, NULL, 0, NULL } |
39356 | }; | |
39357 | ||
39358 | ||
39359 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
39360 | ||
72ef6efb RD |
39361 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
39362 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
39363 | } | |
8e99bda9 RD |
39364 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
39365 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
39366 | } | |
39367 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
39368 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39369 | } | |
26c4d26f RD |
39370 | static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) { |
39371 | return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
39372 | } | |
39373 | static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) { | |
39374 | return (void *)((wxWindowDC *) ((wxMemoryDC *) x)); | |
39375 | } | |
72ef6efb RD |
39376 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
39377 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
39378 | } | |
39379 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
39380 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
39381 | } | |
26c4d26f RD |
39382 | static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) { |
39383 | return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39384 | } | |
fc46b7f3 RD |
39385 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
39386 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
39387 | } | |
70d7cb34 RD |
39388 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
39389 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39390 | } | |
39391 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
39392 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39393 | } | |
39394 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
39395 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39396 | } | |
39397 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
39398 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39399 | } | |
39400 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
39401 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39402 | } | |
39403 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
39404 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39405 | } | |
0085ce49 RD |
39406 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
39407 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
39408 | } | |
39409 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
39410 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
39411 | } | |
39412 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
39413 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
39414 | } | |
39415 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
39416 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
39417 | } | |
39418 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
39419 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
39420 | } | |
39421 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
39422 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
39423 | } | |
39424 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
39425 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
39426 | } | |
39427 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
39428 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
39429 | } | |
72ef6efb RD |
39430 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
39431 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
39432 | } | |
0085ce49 RD |
39433 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
39434 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
39435 | } | |
24f6c4e8 | 39436 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
26c4d26f | 39437 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
24f6c4e8 | 39438 | } |
0085ce49 RD |
39439 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
39440 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
39441 | } | |
0085ce49 RD |
39442 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { |
39443 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
39444 | } | |
26c4d26f RD |
39445 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { |
39446 | return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x)); | |
39447 | } | |
0085ce49 RD |
39448 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { |
39449 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
39450 | } | |
0085ce49 | 39451 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 39452 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
39453 | } |
39454 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 39455 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
0085ce49 | 39456 | } |
24f6c4e8 | 39457 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
26c4d26f | 39458 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
24f6c4e8 RD |
39459 | } |
39460 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
39461 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
39462 | } | |
0085ce49 RD |
39463 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
39464 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
39465 | } | |
39466 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
39467 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
39468 | } | |
50efceee RD |
39469 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
39470 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
39471 | } | |
39472 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
39473 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
39474 | } | |
39475 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
39476 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
39477 | } | |
0085ce49 RD |
39478 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
39479 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39480 | } | |
39481 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
39482 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
39483 | } | |
39484 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
39485 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
39486 | } | |
39487 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
39488 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
39489 | } | |
0085ce49 RD |
39490 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
39491 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
39492 | } | |
34e0a3bb RD |
39493 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
39494 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
39495 | } | |
0085ce49 RD |
39496 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
39497 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
39498 | } | |
39499 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
39500 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
39501 | } | |
39502 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
39503 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
39504 | } | |
39505 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
39506 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39507 | } | |
39508 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
39509 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
39510 | } | |
39511 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
39512 | return (void *)((wxObject *) ((wxSizer *) x)); | |
39513 | } | |
39514 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
39515 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
39516 | } | |
39517 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
39518 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
39519 | } | |
0085ce49 RD |
39520 | static void *_p_wxEventTo_p_wxObject(void *x) { |
39521 | return (void *)((wxObject *) ((wxEvent *) x)); | |
39522 | } | |
39523 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
39524 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
39525 | } | |
39526 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
39527 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
39528 | } | |
39529 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
39530 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
39531 | } | |
27e45892 RD |
39532 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
39533 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
39534 | } | |
2131d850 RD |
39535 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
39536 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
39537 | } | |
0085ce49 RD |
39538 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
39539 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
39540 | } | |
39541 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
39542 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
39543 | } | |
39544 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
39545 | return (void *)((wxObject *) ((wxDC *) x)); | |
39546 | } | |
39547 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
39548 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
39549 | } | |
39550 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
39551 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
39552 | } | |
39553 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
39554 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
39555 | } | |
39556 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
39557 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
39558 | } | |
39559 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
39560 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
39561 | } | |
70d7cb34 RD |
39562 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
39563 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39564 | } | |
0085ce49 RD |
39565 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
39566 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
39567 | } | |
39568 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 39569 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
39570 | } |
39571 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
39572 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
39573 | } | |
39574 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26c4d26f | 39575 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x)); |
0085ce49 RD |
39576 | } |
39577 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
39578 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
39579 | } | |
39580 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
39581 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
39582 | } | |
39583 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
39584 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
39585 | } | |
39586 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
39587 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
39588 | } | |
70d7cb34 RD |
39589 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
39590 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
39591 | } | |
39592 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
39593 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39594 | } | |
0085ce49 RD |
39595 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
39596 | return (void *)((wxObject *) ((wxEffects *) x)); | |
39597 | } | |
39598 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
39599 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
39600 | } | |
39601 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
39602 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
39603 | } | |
39604 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
39605 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
39606 | } | |
70d7cb34 RD |
39607 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
39608 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39609 | } | |
0085ce49 RD |
39610 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
39611 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
39612 | } | |
39613 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
39614 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
39615 | } | |
39616 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
39617 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
39618 | } | |
39619 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
39620 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
39621 | } | |
39622 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
39623 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
39624 | } | |
39625 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
39626 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
39627 | } | |
39628 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
39629 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
39630 | } | |
39631 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
39632 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
39633 | } | |
39634 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
39635 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
39636 | } | |
39637 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
39638 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
39639 | } | |
39640 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
39641 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
39642 | } | |
39643 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
39644 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
39645 | } | |
39646 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
39647 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
39648 | } | |
39649 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
39650 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
39651 | } | |
39652 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
39653 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
39654 | } | |
39655 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
39656 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
39657 | } | |
39658 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
39659 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
39660 | } | |
39661 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
39662 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
39663 | } | |
39664 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
39665 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
39666 | } | |
39667 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
39668 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
39669 | } | |
39670 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
39671 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
39672 | } | |
39673 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
39674 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
39675 | } | |
39676 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
39677 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
39678 | } | |
39679 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
39680 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
39681 | } | |
580080c5 RD |
39682 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
39683 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
39684 | } | |
0085ce49 RD |
39685 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
39686 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
39687 | } | |
34e0a3bb RD |
39688 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
39689 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
39690 | } | |
24f6c4e8 RD |
39691 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
39692 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
39693 | } | |
0085ce49 | 39694 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
26c4d26f | 39695 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
0085ce49 | 39696 | } |
24f6c4e8 RD |
39697 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
39698 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
0085ce49 RD |
39699 | } |
39700 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
39701 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
39702 | } | |
39703 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
39704 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
39705 | } | |
0085ce49 RD |
39706 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
39707 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
39708 | } | |
580080c5 RD |
39709 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
39710 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
39711 | } | |
0085ce49 RD |
39712 | static void *_p_wxImageTo_p_wxObject(void *x) { |
39713 | return (void *)((wxObject *) ((wxImage *) x)); | |
39714 | } | |
39715 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
39716 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
39717 | } | |
70d7cb34 RD |
39718 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
39719 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39720 | } | |
39721 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
39722 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
39723 | } | |
0085ce49 RD |
39724 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
39725 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
39726 | } | |
39727 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26c4d26f | 39728 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
0085ce49 RD |
39729 | } |
39730 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
39731 | return (void *)((wxObject *) ((wxImageList *) x)); | |
39732 | } | |
72ef6efb RD |
39733 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
39734 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
39735 | } | |
0085ce49 RD |
39736 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
39737 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
39738 | } | |
39739 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
39740 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
39741 | } | |
39742 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
39743 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
39744 | } | |
70d7cb34 RD |
39745 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
39746 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39747 | } | |
0085ce49 RD |
39748 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
39749 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
39750 | } | |
39751 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
39752 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
39753 | } | |
39754 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
39755 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
39756 | } | |
39757 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
39758 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
39759 | } | |
39760 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
39761 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
39762 | } | |
39763 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
39764 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
39765 | } | |
39766 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
39767 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
39768 | } | |
0085ce49 RD |
39769 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
39770 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
39771 | } | |
39772 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
39773 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
39774 | } | |
39775 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
39776 | return (void *)((wxObject *) ((wxMask *) x)); | |
39777 | } | |
70d7cb34 RD |
39778 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
39779 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39780 | } | |
0085ce49 RD |
39781 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
39782 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
39783 | } | |
39784 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
39785 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
39786 | } | |
39787 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
39788 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
39789 | } | |
39790 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
39791 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
39792 | } | |
39793 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
39794 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
39795 | } | |
39796 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
39797 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
39798 | } | |
39799 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
39800 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
39801 | } | |
39802 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
39803 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
39804 | } | |
39805 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
39806 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
39807 | } | |
39808 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
39809 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
39810 | } | |
39811 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
39812 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
39813 | } | |
39814 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
39815 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
39816 | } | |
39817 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
39818 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
39819 | } | |
39820 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
39821 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
39822 | } | |
39823 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
39824 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
39825 | } | |
39826 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
39827 | return (void *)((wxObject *) ((wxColour *) x)); | |
39828 | } | |
0085ce49 RD |
39829 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
39830 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
39831 | } | |
39832 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
39833 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
39834 | } | |
39835 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
39836 | return (void *)((wxWindow *) ((wxControl *) x)); | |
39837 | } | |
39838 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
39839 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
39840 | } | |
39841 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
39842 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
39843 | } | |
fc46b7f3 RD |
39844 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
39845 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
39846 | } | |
39847 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
39848 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
39849 | } | |
39850 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
0085ce49 | 39851 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 39852 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39853 | 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}; |
39854 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
39855 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
39856 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
39857 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 39858 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
39859 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
39860 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 39861 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39862 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
39863 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
39864 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
39865 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
39866 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 39867 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
0085ce49 | 39868 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
72ef6efb | 39869 | static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39870 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
39871 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
39872 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
39873 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
39874 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
39875 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 39876 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39877 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
39878 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39879 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
39880 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
39881 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
39882 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
39883 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
39884 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
39885 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39886 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 39887 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 39888 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39889 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 39890 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39891 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
39892 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
39893 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39894 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39895 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
39896 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 39897 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39898 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
39899 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
39900 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
39901 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
39902 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
39903 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
39904 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
39905 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
39906 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
39907 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
39908 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
39909 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
39910 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
39911 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
39912 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
39913 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39914 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
39915 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 39916 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 39917 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39918 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
39919 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
39920 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
39921 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
39922 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
39923 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
39924 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
39925 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
39926 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
39927 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
39928 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
39929 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 39930 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39931 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
39932 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
39933 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
39934 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
39935 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
39936 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
39937 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
39938 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
39939 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
39940 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
39941 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
39942 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
39943 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
39944 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
39945 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
39946 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
39947 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
39948 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
39949 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
39950 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
39951 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
39952 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
39953 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
0085ce49 | 39954 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
580080c5 | 39955 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
39956 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
39957 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
39958 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
39959 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
39960 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
39961 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 39962 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 39963 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 39964 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 39965 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39966 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
39967 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
39968 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
34e0a3bb | 39969 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 | 39970 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 39971 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39972 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; |
39973 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
39974 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
39975 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
39976 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
39977 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
39978 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
39979 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
39980 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
39981 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
39982 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
39983 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
39984 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
39985 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
39986 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
39987 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
39988 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
39989 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
39990 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
39991 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 39992 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39993 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
39994 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
39995 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
39996 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
39997 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 39998 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 39999 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 40000 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40001 | static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40002 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
40003 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
40004 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 40005 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
0085ce49 | 40006 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 40007 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
0085ce49 | 40008 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40009 | static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40010 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
40011 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
40012 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
40013 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
40014 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
40015 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
40016 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 40017 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40018 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
40019 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
40020 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
40021 | ||
40022 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 40023 | &_swigt__p_buffer, |
0085ce49 RD |
40024 | &_swigt__p_char, |
40025 | &_swigt__p_double, | |
40026 | &_swigt__p_form_ops_t, | |
40027 | &_swigt__p_int, | |
40028 | &_swigt__p_unsigned_char, | |
40029 | &_swigt__p_unsigned_int, | |
40030 | &_swigt__p_unsigned_long, | |
0a27f394 | 40031 | &_swigt__p_void, |
0085ce49 RD |
40032 | &_swigt__p_wxANIHandler, |
40033 | &_swigt__p_wxAcceleratorTable, | |
40034 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
40035 | &_swigt__p_wxAlphaPixelData, |
40036 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40037 | &_swigt__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
40038 | &_swigt__p_wxBMPHandler, |
40039 | &_swigt__p_wxBitmap, | |
40040 | &_swigt__p_wxBoxSizer, | |
40041 | &_swigt__p_wxBrush, | |
40042 | &_swigt__p_wxBrushList, | |
40043 | &_swigt__p_wxBufferedDC, | |
40044 | &_swigt__p_wxBufferedPaintDC, | |
40045 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 40046 | &_swigt__p_wxChar, |
0085ce49 RD |
40047 | &_swigt__p_wxChildFocusEvent, |
40048 | &_swigt__p_wxClientDC, | |
2131d850 | 40049 | &_swigt__p_wxClipboardTextEvent, |
0085ce49 | 40050 | &_swigt__p_wxCloseEvent, |
72ef6efb | 40051 | &_swigt__p_wxColor, |
0085ce49 RD |
40052 | &_swigt__p_wxColour, |
40053 | &_swigt__p_wxColourDatabase, | |
40054 | &_swigt__p_wxCommandEvent, | |
40055 | &_swigt__p_wxContextMenuEvent, | |
40056 | &_swigt__p_wxControl, | |
40057 | &_swigt__p_wxControlWithItems, | |
40058 | &_swigt__p_wxCursor, | |
40059 | &_swigt__p_wxDC, | |
70d7cb34 RD |
40060 | &_swigt__p_wxDCBrushChanger, |
40061 | &_swigt__p_wxDCClipper, | |
b39fe951 | 40062 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
40063 | &_swigt__p_wxDCPenChanger, |
40064 | &_swigt__p_wxDCTextColourChanger, | |
0085ce49 RD |
40065 | &_swigt__p_wxDash, |
40066 | &_swigt__p_wxDateEvent, | |
40067 | &_swigt__p_wxDisplayChangedEvent, | |
40068 | &_swigt__p_wxDropFilesEvent, | |
40069 | &_swigt__p_wxDuplexMode, | |
40070 | &_swigt__p_wxEffects, | |
40071 | &_swigt__p_wxEncodingConverter, | |
40072 | &_swigt__p_wxEraseEvent, | |
40073 | &_swigt__p_wxEvent, | |
40074 | &_swigt__p_wxEvtHandler, | |
40075 | &_swigt__p_wxFSFile, | |
40076 | &_swigt__p_wxFileSystem, | |
40077 | &_swigt__p_wxFlexGridSizer, | |
40078 | &_swigt__p_wxFocusEvent, | |
40079 | &_swigt__p_wxFont, | |
40080 | &_swigt__p_wxFontList, | |
40081 | &_swigt__p_wxFontMapper, | |
40082 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 40083 | &_swigt__p_wxGCDC, |
50efceee | 40084 | &_swigt__p_wxGDIObjListBase, |
0085ce49 RD |
40085 | &_swigt__p_wxGDIObject, |
40086 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 40087 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 40088 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
40089 | &_swigt__p_wxGraphicsFont, |
40090 | &_swigt__p_wxGraphicsMatrix, | |
40091 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 40092 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
40093 | &_swigt__p_wxGraphicsPen, |
40094 | &_swigt__p_wxGraphicsRenderer, | |
0085ce49 RD |
40095 | &_swigt__p_wxGridBagSizer, |
40096 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 40097 | &_swigt__p_wxHeaderButtonParams, |
0085ce49 RD |
40098 | &_swigt__p_wxICOHandler, |
40099 | &_swigt__p_wxIcon, | |
40100 | &_swigt__p_wxIconBundle, | |
40101 | &_swigt__p_wxIconLocation, | |
40102 | &_swigt__p_wxIconizeEvent, | |
40103 | &_swigt__p_wxIdleEvent, | |
40104 | &_swigt__p_wxImage, | |
40105 | &_swigt__p_wxImageHandler, | |
40106 | &_swigt__p_wxImageList, | |
40107 | &_swigt__p_wxIndividualLayoutConstraint, | |
40108 | &_swigt__p_wxInitDialogEvent, | |
40109 | &_swigt__p_wxJPEGHandler, | |
40110 | &_swigt__p_wxKeyEvent, | |
40111 | &_swigt__p_wxLanguageInfo, | |
40112 | &_swigt__p_wxLayoutConstraints, | |
40113 | &_swigt__p_wxLocale, | |
40114 | &_swigt__p_wxMask, | |
40115 | &_swigt__p_wxMaximizeEvent, | |
40116 | &_swigt__p_wxMemoryDC, | |
40117 | &_swigt__p_wxMenu, | |
40118 | &_swigt__p_wxMenuBar, | |
40119 | &_swigt__p_wxMenuEvent, | |
40120 | &_swigt__p_wxMenuItem, | |
40121 | &_swigt__p_wxMetaFile, | |
40122 | &_swigt__p_wxMetaFileDC, | |
40123 | &_swigt__p_wxMirrorDC, | |
40124 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 40125 | &_swigt__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
40126 | &_swigt__p_wxMouseEvent, |
40127 | &_swigt__p_wxMoveEvent, | |
40128 | &_swigt__p_wxNativeEncodingInfo, | |
40129 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40130 | &_swigt__p_wxNativePixelData, |
40131 | &_swigt__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
40132 | &_swigt__p_wxNavigationKeyEvent, |
40133 | &_swigt__p_wxNcPaintEvent, | |
40134 | &_swigt__p_wxNotifyEvent, | |
40135 | &_swigt__p_wxObject, | |
b39fe951 | 40136 | &_swigt__p_wxOverlay, |
0085ce49 RD |
40137 | &_swigt__p_wxPCXHandler, |
40138 | &_swigt__p_wxPNGHandler, | |
40139 | &_swigt__p_wxPNMHandler, | |
40140 | &_swigt__p_wxPaintDC, | |
40141 | &_swigt__p_wxPaintEvent, | |
40142 | &_swigt__p_wxPalette, | |
40143 | &_swigt__p_wxPaletteChangedEvent, | |
40144 | &_swigt__p_wxPaperSize, | |
40145 | &_swigt__p_wxPen, | |
40146 | &_swigt__p_wxPenList, | |
fc46b7f3 | 40147 | &_swigt__p_wxPixelDataBase, |
0085ce49 | 40148 | &_swigt__p_wxPoint, |
72ef6efb | 40149 | &_swigt__p_wxPoint2D, |
70d7cb34 | 40150 | &_swigt__p_wxPoint2DDouble, |
0085ce49 RD |
40151 | &_swigt__p_wxPostScriptDC, |
40152 | &_swigt__p_wxPrintData, | |
40153 | &_swigt__p_wxPrinterDC, | |
27e45892 | 40154 | &_swigt__p_wxPseudoDC, |
0085ce49 RD |
40155 | &_swigt__p_wxPyApp, |
40156 | &_swigt__p_wxPyCommandEvent, | |
40157 | &_swigt__p_wxPyEvent, | |
40158 | &_swigt__p_wxPyFontEnumerator, | |
40159 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 40160 | &_swigt__p_wxPyLocale, |
0085ce49 RD |
40161 | &_swigt__p_wxPySizer, |
40162 | &_swigt__p_wxPyValidator, | |
40163 | &_swigt__p_wxQueryNewPaletteEvent, | |
40164 | &_swigt__p_wxRect, | |
70d7cb34 | 40165 | &_swigt__p_wxRect2DDouble, |
0085ce49 RD |
40166 | &_swigt__p_wxRegion, |
40167 | &_swigt__p_wxRegionIterator, | |
40168 | &_swigt__p_wxRendererNative, | |
40169 | &_swigt__p_wxRendererVersion, | |
40170 | &_swigt__p_wxScreenDC, | |
40171 | &_swigt__p_wxScrollEvent, | |
40172 | &_swigt__p_wxScrollWinEvent, | |
40173 | &_swigt__p_wxSetCursorEvent, | |
40174 | &_swigt__p_wxShowEvent, | |
40175 | &_swigt__p_wxSize, | |
40176 | &_swigt__p_wxSizeEvent, | |
40177 | &_swigt__p_wxSizer, | |
40178 | &_swigt__p_wxSizerItem, | |
40179 | &_swigt__p_wxSplitterRenderParams, | |
40180 | &_swigt__p_wxStaticBoxSizer, | |
40181 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 40182 | &_swigt__p_wxStockGDI, |
0085ce49 RD |
40183 | &_swigt__p_wxString, |
40184 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 40185 | &_swigt__p_wxTGAHandler, |
0085ce49 RD |
40186 | &_swigt__p_wxTIFFHandler, |
40187 | &_swigt__p_wxUpdateUIEvent, | |
40188 | &_swigt__p_wxValidator, | |
40189 | &_swigt__p_wxWindow, | |
40190 | &_swigt__p_wxWindowCreateEvent, | |
40191 | &_swigt__p_wxWindowDC, | |
40192 | &_swigt__p_wxWindowDestroyEvent, | |
40193 | &_swigt__p_wxXPMHandler, | |
40194 | }; | |
40195 | ||
fc46b7f3 | 40196 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40197 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
40198 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
40199 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
40200 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40201 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
40202 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40203 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 40204 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
40205 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40206 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40207 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40208 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
40209 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
40210 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
40211 | 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}}; | |
40212 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40213 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb RD |
40214 | 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}}; |
40215 | static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
40216 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
40217 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
40218 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40219 | 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 |
40220 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40221 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 40222 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40223 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40224 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
40225 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
40226 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
40227 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
40228 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
40229 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
40230 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
40231 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 40232 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 40233 | 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 | 40234 | 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 | 40235 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40236 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40237 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
40238 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
40239 | 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 | 40240 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40241 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
40242 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 40243 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40244 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
40245 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
40246 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
40247 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
40248 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
40249 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40250 | 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 | 40251 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 40252 | 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 |
40253 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
40254 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40255 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40256 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
40257 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
40258 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40259 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 40260 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40261 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 40262 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40263 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40264 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
40265 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40266 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40267 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40268 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40269 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40270 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
40271 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40272 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40273 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40274 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 40275 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40276 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40277 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40278 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40279 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40280 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40281 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40282 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
40283 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40284 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
40285 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40286 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40287 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40288 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40289 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
40290 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40291 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40292 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40293 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40294 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40295 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40296 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40297 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40298 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 40299 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 40300 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40301 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
40302 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40303 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40304 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40305 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40306 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40307 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40308 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 40309 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 40310 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40311 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
40312 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40313 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 40314 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40315 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 40316 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40317 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40318 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40319 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40320 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40321 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
40322 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
40323 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40324 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40325 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
40326 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40327 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40328 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40329 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40330 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40331 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40332 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40333 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40334 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
40335 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
40336 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 40337 | 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 | 40338 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40339 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
40340 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
40341 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
40342 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
40343 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40344 | 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 | 40345 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40346 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 40347 | static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40348 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
40349 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
40350 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 40351 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40352 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 40353 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40354 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 40355 | static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40356 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
40357 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
40358 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
40359 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
40360 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40361 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
40362 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 40363 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40364 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
40365 | 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 | 40366 | 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 |
40367 | |
40368 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 40369 | _swigc__p_buffer, |
0085ce49 RD |
40370 | _swigc__p_char, |
40371 | _swigc__p_double, | |
40372 | _swigc__p_form_ops_t, | |
40373 | _swigc__p_int, | |
40374 | _swigc__p_unsigned_char, | |
40375 | _swigc__p_unsigned_int, | |
40376 | _swigc__p_unsigned_long, | |
0a27f394 | 40377 | _swigc__p_void, |
0085ce49 RD |
40378 | _swigc__p_wxANIHandler, |
40379 | _swigc__p_wxAcceleratorTable, | |
40380 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
40381 | _swigc__p_wxAlphaPixelData, |
40382 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40383 | _swigc__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
40384 | _swigc__p_wxBMPHandler, |
40385 | _swigc__p_wxBitmap, | |
40386 | _swigc__p_wxBoxSizer, | |
40387 | _swigc__p_wxBrush, | |
40388 | _swigc__p_wxBrushList, | |
40389 | _swigc__p_wxBufferedDC, | |
40390 | _swigc__p_wxBufferedPaintDC, | |
40391 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 40392 | _swigc__p_wxChar, |
0085ce49 RD |
40393 | _swigc__p_wxChildFocusEvent, |
40394 | _swigc__p_wxClientDC, | |
2131d850 | 40395 | _swigc__p_wxClipboardTextEvent, |
0085ce49 | 40396 | _swigc__p_wxCloseEvent, |
72ef6efb | 40397 | _swigc__p_wxColor, |
0085ce49 RD |
40398 | _swigc__p_wxColour, |
40399 | _swigc__p_wxColourDatabase, | |
40400 | _swigc__p_wxCommandEvent, | |
40401 | _swigc__p_wxContextMenuEvent, | |
40402 | _swigc__p_wxControl, | |
40403 | _swigc__p_wxControlWithItems, | |
40404 | _swigc__p_wxCursor, | |
40405 | _swigc__p_wxDC, | |
70d7cb34 RD |
40406 | _swigc__p_wxDCBrushChanger, |
40407 | _swigc__p_wxDCClipper, | |
b39fe951 | 40408 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
40409 | _swigc__p_wxDCPenChanger, |
40410 | _swigc__p_wxDCTextColourChanger, | |
0085ce49 RD |
40411 | _swigc__p_wxDash, |
40412 | _swigc__p_wxDateEvent, | |
40413 | _swigc__p_wxDisplayChangedEvent, | |
40414 | _swigc__p_wxDropFilesEvent, | |
40415 | _swigc__p_wxDuplexMode, | |
40416 | _swigc__p_wxEffects, | |
40417 | _swigc__p_wxEncodingConverter, | |
40418 | _swigc__p_wxEraseEvent, | |
40419 | _swigc__p_wxEvent, | |
40420 | _swigc__p_wxEvtHandler, | |
40421 | _swigc__p_wxFSFile, | |
40422 | _swigc__p_wxFileSystem, | |
40423 | _swigc__p_wxFlexGridSizer, | |
40424 | _swigc__p_wxFocusEvent, | |
40425 | _swigc__p_wxFont, | |
40426 | _swigc__p_wxFontList, | |
40427 | _swigc__p_wxFontMapper, | |
40428 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 40429 | _swigc__p_wxGCDC, |
50efceee | 40430 | _swigc__p_wxGDIObjListBase, |
0085ce49 RD |
40431 | _swigc__p_wxGDIObject, |
40432 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 40433 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 40434 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
40435 | _swigc__p_wxGraphicsFont, |
40436 | _swigc__p_wxGraphicsMatrix, | |
40437 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 40438 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
40439 | _swigc__p_wxGraphicsPen, |
40440 | _swigc__p_wxGraphicsRenderer, | |
0085ce49 RD |
40441 | _swigc__p_wxGridBagSizer, |
40442 | _swigc__p_wxGridSizer, | |
33d6fd3b | 40443 | _swigc__p_wxHeaderButtonParams, |
0085ce49 RD |
40444 | _swigc__p_wxICOHandler, |
40445 | _swigc__p_wxIcon, | |
40446 | _swigc__p_wxIconBundle, | |
40447 | _swigc__p_wxIconLocation, | |
40448 | _swigc__p_wxIconizeEvent, | |
40449 | _swigc__p_wxIdleEvent, | |
40450 | _swigc__p_wxImage, | |
40451 | _swigc__p_wxImageHandler, | |
40452 | _swigc__p_wxImageList, | |
40453 | _swigc__p_wxIndividualLayoutConstraint, | |
40454 | _swigc__p_wxInitDialogEvent, | |
40455 | _swigc__p_wxJPEGHandler, | |
40456 | _swigc__p_wxKeyEvent, | |
40457 | _swigc__p_wxLanguageInfo, | |
40458 | _swigc__p_wxLayoutConstraints, | |
40459 | _swigc__p_wxLocale, | |
40460 | _swigc__p_wxMask, | |
40461 | _swigc__p_wxMaximizeEvent, | |
40462 | _swigc__p_wxMemoryDC, | |
40463 | _swigc__p_wxMenu, | |
40464 | _swigc__p_wxMenuBar, | |
40465 | _swigc__p_wxMenuEvent, | |
40466 | _swigc__p_wxMenuItem, | |
40467 | _swigc__p_wxMetaFile, | |
40468 | _swigc__p_wxMetaFileDC, | |
40469 | _swigc__p_wxMirrorDC, | |
40470 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 40471 | _swigc__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
40472 | _swigc__p_wxMouseEvent, |
40473 | _swigc__p_wxMoveEvent, | |
40474 | _swigc__p_wxNativeEncodingInfo, | |
40475 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40476 | _swigc__p_wxNativePixelData, |
40477 | _swigc__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
40478 | _swigc__p_wxNavigationKeyEvent, |
40479 | _swigc__p_wxNcPaintEvent, | |
40480 | _swigc__p_wxNotifyEvent, | |
40481 | _swigc__p_wxObject, | |
b39fe951 | 40482 | _swigc__p_wxOverlay, |
0085ce49 RD |
40483 | _swigc__p_wxPCXHandler, |
40484 | _swigc__p_wxPNGHandler, | |
40485 | _swigc__p_wxPNMHandler, | |
40486 | _swigc__p_wxPaintDC, | |
40487 | _swigc__p_wxPaintEvent, | |
40488 | _swigc__p_wxPalette, | |
40489 | _swigc__p_wxPaletteChangedEvent, | |
40490 | _swigc__p_wxPaperSize, | |
40491 | _swigc__p_wxPen, | |
40492 | _swigc__p_wxPenList, | |
fc46b7f3 | 40493 | _swigc__p_wxPixelDataBase, |
0085ce49 | 40494 | _swigc__p_wxPoint, |
72ef6efb | 40495 | _swigc__p_wxPoint2D, |
70d7cb34 | 40496 | _swigc__p_wxPoint2DDouble, |
0085ce49 RD |
40497 | _swigc__p_wxPostScriptDC, |
40498 | _swigc__p_wxPrintData, | |
40499 | _swigc__p_wxPrinterDC, | |
27e45892 | 40500 | _swigc__p_wxPseudoDC, |
0085ce49 RD |
40501 | _swigc__p_wxPyApp, |
40502 | _swigc__p_wxPyCommandEvent, | |
40503 | _swigc__p_wxPyEvent, | |
40504 | _swigc__p_wxPyFontEnumerator, | |
40505 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 40506 | _swigc__p_wxPyLocale, |
0085ce49 RD |
40507 | _swigc__p_wxPySizer, |
40508 | _swigc__p_wxPyValidator, | |
40509 | _swigc__p_wxQueryNewPaletteEvent, | |
40510 | _swigc__p_wxRect, | |
70d7cb34 | 40511 | _swigc__p_wxRect2DDouble, |
0085ce49 RD |
40512 | _swigc__p_wxRegion, |
40513 | _swigc__p_wxRegionIterator, | |
40514 | _swigc__p_wxRendererNative, | |
40515 | _swigc__p_wxRendererVersion, | |
40516 | _swigc__p_wxScreenDC, | |
40517 | _swigc__p_wxScrollEvent, | |
40518 | _swigc__p_wxScrollWinEvent, | |
40519 | _swigc__p_wxSetCursorEvent, | |
40520 | _swigc__p_wxShowEvent, | |
40521 | _swigc__p_wxSize, | |
40522 | _swigc__p_wxSizeEvent, | |
40523 | _swigc__p_wxSizer, | |
40524 | _swigc__p_wxSizerItem, | |
40525 | _swigc__p_wxSplitterRenderParams, | |
40526 | _swigc__p_wxStaticBoxSizer, | |
40527 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 40528 | _swigc__p_wxStockGDI, |
0085ce49 RD |
40529 | _swigc__p_wxString, |
40530 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 40531 | _swigc__p_wxTGAHandler, |
0085ce49 RD |
40532 | _swigc__p_wxTIFFHandler, |
40533 | _swigc__p_wxUpdateUIEvent, | |
40534 | _swigc__p_wxValidator, | |
40535 | _swigc__p_wxWindow, | |
40536 | _swigc__p_wxWindowCreateEvent, | |
40537 | _swigc__p_wxWindowDC, | |
40538 | _swigc__p_wxWindowDestroyEvent, | |
40539 | _swigc__p_wxXPMHandler, | |
40540 | }; | |
40541 | ||
40542 | ||
40543 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
40544 | ||
40545 | static swig_const_info swig_const_table[] = { | |
40546 | {0, 0, 0, 0.0, 0, 0}}; | |
40547 | ||
40548 | #ifdef __cplusplus | |
40549 | } | |
40550 | #endif | |
40551 | /* ----------------------------------------------------------------------------- | |
40552 | * Type initialization: | |
40553 | * This problem is tough by the requirement that no dynamic | |
40554 | * memory is used. Also, since swig_type_info structures store pointers to | |
40555 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
40556 | * to swig_type_info structures, we need some lookup code at initialization. | |
40557 | * The idea is that swig generates all the structures that are needed. | |
40558 | * The runtime then collects these partially filled structures. | |
40559 | * The SWIG_InitializeModule function takes these initial arrays out of | |
40560 | * swig_module, and does all the lookup, filling in the swig_module.types | |
40561 | * array with the correct data and linking the correct swig_cast_info | |
40562 | * structures together. | |
40563 | * | |
40564 | * The generated swig_type_info structures are assigned staticly to an initial | |
40565 | * array. We just loop though that array, and handle each type individually. | |
40566 | * First we lookup if this type has been already loaded, and if so, use the | |
40567 | * loaded structure instead of the generated one. Then we have to fill in the | |
40568 | * cast linked list. The cast data is initially stored in something like a | |
40569 | * two-dimensional array. Each row corresponds to a type (there are the same | |
40570 | * number of rows as there are in the swig_type_initial array). Each entry in | |
40571 | * a column is one of the swig_cast_info structures for that type. | |
40572 | * The cast_initial array is actually an array of arrays, because each row has | |
40573 | * a variable number of columns. So to actually build the cast linked list, | |
40574 | * we find the array of casts associated with the type, and loop through it | |
40575 | * adding the casts to the list. The one last trick we need to do is making | |
40576 | * sure the type pointer in the swig_cast_info struct is correct. | |
40577 | * | |
40578 | * First off, we lookup the cast->type name to see if it is already loaded. | |
40579 | * There are three cases to handle: | |
40580 | * 1) If the cast->type has already been loaded AND the type we are adding | |
40581 | * casting info to has not been loaded (it is in this module), THEN we | |
40582 | * replace the cast->type pointer with the type pointer that has already | |
40583 | * been loaded. | |
40584 | * 2) If BOTH types (the one we are adding casting info to, and the | |
40585 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
40586 | * the previous module so we just ignore it. | |
40587 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
40588 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
40589 | * be correct. | |
40590 | * ----------------------------------------------------------------------------- */ | |
40591 | ||
40592 | #ifdef __cplusplus | |
40593 | extern "C" { | |
40594 | #if 0 | |
40595 | } /* c-mode */ | |
40596 | #endif | |
40597 | #endif | |
40598 | ||
40599 | #if 0 | |
40600 | #define SWIGRUNTIME_DEBUG | |
40601 | #endif | |
40602 | ||
40603 | SWIGRUNTIME void | |
40604 | SWIG_InitializeModule(void *clientdata) { | |
40605 | size_t i; | |
40606 | swig_module_info *module_head; | |
40607 | static int init_run = 0; | |
40608 | ||
40609 | clientdata = clientdata; | |
40610 | ||
40611 | if (init_run) return; | |
40612 | init_run = 1; | |
40613 | ||
40614 | /* Initialize the swig_module */ | |
40615 | swig_module.type_initial = swig_type_initial; | |
40616 | swig_module.cast_initial = swig_cast_initial; | |
40617 | ||
40618 | /* Try and load any already created modules */ | |
40619 | module_head = SWIG_GetModule(clientdata); | |
40620 | if (module_head) { | |
40621 | swig_module.next = module_head->next; | |
40622 | module_head->next = &swig_module; | |
40623 | } else { | |
40624 | /* This is the first module loaded */ | |
40625 | swig_module.next = &swig_module; | |
40626 | SWIG_SetModule(clientdata, &swig_module); | |
40627 | } | |
40628 | ||
40629 | /* Now work on filling in swig_module.types */ | |
40630 | #ifdef SWIGRUNTIME_DEBUG | |
40631 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
40632 | #endif | |
40633 | for (i = 0; i < swig_module.size; ++i) { | |
40634 | swig_type_info *type = 0; | |
40635 | swig_type_info *ret; | |
40636 | swig_cast_info *cast; | |
40637 | ||
40638 | #ifdef SWIGRUNTIME_DEBUG | |
40639 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40640 | #endif | |
40641 | ||
40642 | /* if there is another module already loaded */ | |
40643 | if (swig_module.next != &swig_module) { | |
40644 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
8d38bd1d | 40645 | } |
0085ce49 RD |
40646 | if (type) { |
40647 | /* Overwrite clientdata field */ | |
40648 | #ifdef SWIGRUNTIME_DEBUG | |
40649 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
40650 | #endif | |
40651 | if (swig_module.type_initial[i]->clientdata) { | |
40652 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
40653 | #ifdef SWIGRUNTIME_DEBUG | |
40654 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
40655 | #endif | |
40656 | } | |
40657 | } else { | |
40658 | type = swig_module.type_initial[i]; | |
8d38bd1d | 40659 | } |
0085ce49 RD |
40660 | |
40661 | /* Insert casting types */ | |
40662 | cast = swig_module.cast_initial[i]; | |
40663 | while (cast->type) { | |
40664 | /* Don't need to add information already in the list */ | |
40665 | ret = 0; | |
40666 | #ifdef SWIGRUNTIME_DEBUG | |
40667 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
40668 | #endif | |
40669 | if (swig_module.next != &swig_module) { | |
40670 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
40671 | #ifdef SWIGRUNTIME_DEBUG | |
40672 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
40673 | #endif | |
40674 | } | |
40675 | if (ret) { | |
40676 | if (type == swig_module.type_initial[i]) { | |
40677 | #ifdef SWIGRUNTIME_DEBUG | |
40678 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
40679 | #endif | |
40680 | cast->type = ret; | |
40681 | ret = 0; | |
40682 | } else { | |
40683 | /* Check for casting already in the list */ | |
40684 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
40685 | #ifdef SWIGRUNTIME_DEBUG | |
40686 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
40687 | #endif | |
40688 | if (!ocast) ret = 0; | |
40689 | } | |
40690 | } | |
40691 | ||
40692 | if (!ret) { | |
40693 | #ifdef SWIGRUNTIME_DEBUG | |
40694 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
40695 | #endif | |
40696 | if (type->cast) { | |
40697 | type->cast->prev = cast; | |
40698 | cast->next = type->cast; | |
40699 | } | |
40700 | type->cast = cast; | |
40701 | } | |
40702 | cast++; | |
8d38bd1d | 40703 | } |
0085ce49 RD |
40704 | /* Set entry in modules->types array equal to the type */ |
40705 | swig_module.types[i] = type; | |
40706 | } | |
40707 | swig_module.types[i] = 0; | |
40708 | ||
40709 | #ifdef SWIGRUNTIME_DEBUG | |
40710 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40711 | for (i = 0; i < swig_module.size; ++i) { | |
40712 | int j = 0; | |
40713 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
40714 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40715 | while (cast->type) { | |
40716 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
40717 | cast++; | |
40718 | ++j; | |
40719 | } | |
40720 | printf("---- Total casts: %d\n",j); | |
40721 | } | |
40722 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40723 | #endif | |
40724 | } | |
40725 | ||
40726 | /* This function will propagate the clientdata field of type to | |
40727 | * any new swig_type_info structures that have been added into the list | |
40728 | * of equivalent types. It is like calling | |
40729 | * SWIG_TypeClientData(type, clientdata) a second time. | |
40730 | */ | |
40731 | SWIGRUNTIME void | |
40732 | SWIG_PropagateClientData(void) { | |
40733 | size_t i; | |
40734 | swig_cast_info *equiv; | |
40735 | static int init_run = 0; | |
40736 | ||
40737 | if (init_run) return; | |
40738 | init_run = 1; | |
40739 | ||
40740 | for (i = 0; i < swig_module.size; i++) { | |
40741 | if (swig_module.types[i]->clientdata) { | |
40742 | equiv = swig_module.types[i]->cast; | |
40743 | while (equiv) { | |
40744 | if (!equiv->converter) { | |
40745 | if (equiv->type && !equiv->type->clientdata) | |
40746 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
40747 | } | |
40748 | equiv = equiv->next; | |
40749 | } | |
8d38bd1d | 40750 | } |
0085ce49 RD |
40751 | } |
40752 | } | |
40753 | ||
40754 | #ifdef __cplusplus | |
40755 | #if 0 | |
40756 | { | |
40757 | /* c-mode */ | |
40758 | #endif | |
40759 | } | |
40760 | #endif | |
40761 | ||
40762 | ||
40763 | ||
40764 | #ifdef __cplusplus | |
40765 | extern "C" { | |
40766 | #endif | |
40767 | ||
40768 | /* Python-specific SWIG API */ | |
40769 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
40770 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
40771 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
40772 | ||
40773 | /* ----------------------------------------------------------------------------- | |
40774 | * global variable support code. | |
40775 | * ----------------------------------------------------------------------------- */ | |
40776 | ||
40777 | typedef struct swig_globalvar { | |
40778 | char *name; /* Name of global variable */ | |
40779 | PyObject *(*get_attr)(void); /* Return the current value */ | |
40780 | int (*set_attr)(PyObject *); /* Set the value */ | |
40781 | struct swig_globalvar *next; | |
40782 | } swig_globalvar; | |
40783 | ||
40784 | typedef struct swig_varlinkobject { | |
40785 | PyObject_HEAD | |
40786 | swig_globalvar *vars; | |
40787 | } swig_varlinkobject; | |
40788 | ||
40789 | SWIGINTERN PyObject * | |
40790 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
40791 | return PyString_FromString("<Swig global variables>"); | |
40792 | } | |
40793 | ||
40794 | SWIGINTERN PyObject * | |
40795 | swig_varlink_str(swig_varlinkobject *v) { | |
40796 | PyObject *str = PyString_FromString("("); | |
40797 | swig_globalvar *var; | |
40798 | for (var = v->vars; var; var=var->next) { | |
40799 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
40800 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
40801 | } | |
40802 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
40803 | return str; | |
40804 | } | |
40805 | ||
40806 | SWIGINTERN int | |
40807 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
40808 | PyObject *str = swig_varlink_str(v); | |
40809 | fprintf(fp,"Swig global variables "); | |
40810 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
40811 | Py_DECREF(str); | |
40812 | return 0; | |
40813 | } | |
40814 | ||
40815 | SWIGINTERN void | |
40816 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
40817 | swig_globalvar *var = v->vars; | |
40818 | while (var) { | |
40819 | swig_globalvar *n = var->next; | |
40820 | free(var->name); | |
40821 | free(var); | |
40822 | var = n; | |
8d38bd1d | 40823 | } |
0085ce49 RD |
40824 | } |
40825 | ||
40826 | SWIGINTERN PyObject * | |
40827 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
40828 | PyObject *res = NULL; | |
40829 | swig_globalvar *var = v->vars; | |
40830 | while (var) { | |
40831 | if (strcmp(var->name,n) == 0) { | |
40832 | res = (*var->get_attr)(); | |
40833 | break; | |
40834 | } | |
40835 | var = var->next; | |
8d38bd1d | 40836 | } |
0085ce49 RD |
40837 | if (res == NULL && !PyErr_Occurred()) { |
40838 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40839 | } |
0085ce49 RD |
40840 | return res; |
40841 | } | |
40842 | ||
40843 | SWIGINTERN int | |
40844 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
40845 | int res = 1; | |
40846 | swig_globalvar *var = v->vars; | |
40847 | while (var) { | |
40848 | if (strcmp(var->name,n) == 0) { | |
40849 | res = (*var->set_attr)(p); | |
40850 | break; | |
40851 | } | |
40852 | var = var->next; | |
8d38bd1d | 40853 | } |
0085ce49 RD |
40854 | if (res == 1 && !PyErr_Occurred()) { |
40855 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40856 | } |
0085ce49 RD |
40857 | return res; |
40858 | } | |
40859 | ||
40860 | SWIGINTERN PyTypeObject* | |
40861 | swig_varlink_type(void) { | |
40862 | static char varlink__doc__[] = "Swig var link object"; | |
40863 | static PyTypeObject varlink_type; | |
40864 | static int type_init = 0; | |
40865 | if (!type_init) { | |
40866 | const PyTypeObject tmp | |
40867 | = { | |
40868 | PyObject_HEAD_INIT(NULL) | |
40869 | 0, /* Number of items in variable part (ob_size) */ | |
40870 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
40871 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
40872 | 0, /* Itemsize (tp_itemsize) */ | |
40873 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
40874 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
40875 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
40876 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
40877 | 0, /* tp_compare */ | |
40878 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
40879 | 0, /* tp_as_number */ | |
40880 | 0, /* tp_as_sequence */ | |
40881 | 0, /* tp_as_mapping */ | |
40882 | 0, /* tp_hash */ | |
40883 | 0, /* tp_call */ | |
40884 | (reprfunc)swig_varlink_str, /* tp_str */ | |
40885 | 0, /* tp_getattro */ | |
40886 | 0, /* tp_setattro */ | |
40887 | 0, /* tp_as_buffer */ | |
40888 | 0, /* tp_flags */ | |
40889 | varlink__doc__, /* tp_doc */ | |
40890 | 0, /* tp_traverse */ | |
40891 | 0, /* tp_clear */ | |
40892 | 0, /* tp_richcompare */ | |
40893 | 0, /* tp_weaklistoffset */ | |
40894 | #if PY_VERSION_HEX >= 0x02020000 | |
40895 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
40896 | #endif | |
40897 | #if PY_VERSION_HEX >= 0x02030000 | |
40898 | 0, /* tp_del */ | |
40899 | #endif | |
40900 | #ifdef COUNT_ALLOCS | |
40901 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
40902 | #endif | |
40903 | }; | |
40904 | varlink_type = tmp; | |
40905 | varlink_type.ob_type = &PyType_Type; | |
40906 | type_init = 1; | |
8d38bd1d | 40907 | } |
0085ce49 RD |
40908 | return &varlink_type; |
40909 | } | |
40910 | ||
40911 | /* Create a variable linking object for use later */ | |
40912 | SWIGINTERN PyObject * | |
40913 | SWIG_Python_newvarlink(void) { | |
40914 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
40915 | if (result) { | |
40916 | result->vars = 0; | |
40917 | } | |
40918 | return ((PyObject*) result); | |
40919 | } | |
40920 | ||
40921 | SWIGINTERN void | |
40922 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
40923 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
40924 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
40925 | if (gv) { | |
40926 | size_t size = strlen(name)+1; | |
40927 | gv->name = (char *)malloc(size); | |
40928 | if (gv->name) { | |
40929 | strncpy(gv->name,name,size); | |
40930 | gv->get_attr = get_attr; | |
40931 | gv->set_attr = set_attr; | |
40932 | gv->next = v->vars; | |
40933 | } | |
8d38bd1d | 40934 | } |
0085ce49 RD |
40935 | v->vars = gv; |
40936 | } | |
40937 | ||
40938 | SWIGINTERN PyObject * | |
40939 | SWIG_globals() { | |
40940 | static PyObject *_SWIG_globals = 0; | |
40941 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
40942 | return _SWIG_globals; | |
40943 | } | |
40944 | ||
40945 | /* ----------------------------------------------------------------------------- | |
40946 | * constants/methods manipulation | |
40947 | * ----------------------------------------------------------------------------- */ | |
40948 | ||
40949 | /* Install Constants */ | |
40950 | SWIGINTERN void | |
40951 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
40952 | PyObject *obj = 0; | |
40953 | size_t i; | |
40954 | for (i = 0; constants[i].type; ++i) { | |
40955 | switch(constants[i].type) { | |
40956 | case SWIG_PY_POINTER: | |
40957 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
40958 | break; | |
40959 | case SWIG_PY_BINARY: | |
40960 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
40961 | break; | |
40962 | default: | |
40963 | obj = 0; | |
40964 | break; | |
40965 | } | |
40966 | if (obj) { | |
40967 | PyDict_SetItemString(d, constants[i].name, obj); | |
40968 | Py_DECREF(obj); | |
40969 | } | |
8d38bd1d | 40970 | } |
0085ce49 RD |
40971 | } |
40972 | ||
40973 | /* -----------------------------------------------------------------------------*/ | |
40974 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
40975 | /* -----------------------------------------------------------------------------*/ | |
40976 | ||
40977 | SWIGINTERN void | |
40978 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
40979 | swig_const_info *const_table, | |
40980 | swig_type_info **types, | |
40981 | swig_type_info **types_initial) { | |
40982 | size_t i; | |
40983 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 40984 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
40985 | if (c && (c = strstr(c, "swig_ptr: "))) { |
40986 | int j; | |
40987 | swig_const_info *ci = 0; | |
453fb36b | 40988 | const char *name = c + 10; |
0085ce49 RD |
40989 | for (j = 0; const_table[j].type; ++j) { |
40990 | if (strncmp(const_table[j].name, name, | |
40991 | strlen(const_table[j].name)) == 0) { | |
40992 | ci = &(const_table[j]); | |
40993 | break; | |
40994 | } | |
40995 | } | |
40996 | if (ci) { | |
40997 | size_t shift = (ci->ptype) - types; | |
40998 | swig_type_info *ty = types_initial[shift]; | |
40999 | size_t ldoc = (c - methods[i].ml_doc); | |
41000 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
41001 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
41002 | if (ndoc) { | |
41003 | char *buff = ndoc; | |
41004 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
41005 | if (ptr) { | |
41006 | strncpy(buff, methods[i].ml_doc, ldoc); | |
41007 | buff += ldoc; | |
41008 | strncpy(buff, "swig_ptr: ", 10); | |
41009 | buff += 10; | |
41010 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
41011 | methods[i].ml_doc = ndoc; | |
41012 | } | |
41013 | } | |
41014 | } | |
41015 | } | |
8d38bd1d | 41016 | } |
0085ce49 RD |
41017 | } |
41018 | ||
41019 | #ifdef __cplusplus | |
41020 | } | |
41021 | #endif | |
41022 | ||
41023 | /* -----------------------------------------------------------------------------* | |
41024 | * Partial Init method | |
41025 | * -----------------------------------------------------------------------------*/ | |
41026 | ||
41027 | #ifdef __cplusplus | |
41028 | extern "C" | |
41029 | #endif | |
41030 | SWIGEXPORT void SWIG_init(void) { | |
41031 | PyObject *m, *d; | |
41032 | ||
41033 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41034 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
41035 | ||
41036 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41037 | d = PyModule_GetDict(m); | |
41038 | ||
41039 | SWIG_InitializeModule(0); | |
41040 | SWIG_InstallConstants(d,swig_const_table); | |
41041 | ||
41042 | ||
01f6b6d3 RD |
41043 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
41044 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
41045 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
41046 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
41047 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
0085ce49 RD |
41048 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
41049 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
41050 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
41051 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
41052 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
41053 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
41054 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
41055 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
41056 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
41057 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
41058 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
41059 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
41060 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
41061 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
41062 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
41063 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
41064 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
41065 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
41066 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
41067 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
41068 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
41069 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
41070 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
41071 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
41072 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
41073 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
41074 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
41075 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
41076 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
41077 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
41078 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
41079 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
41080 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
41081 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
41082 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
41083 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
41084 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
41085 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
41086 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
41087 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
41088 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
41089 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
41090 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
41091 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
41092 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
41093 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
41094 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
41095 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
41096 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
41097 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
41098 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
41099 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
41100 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
41101 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
41102 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
41103 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
41104 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
41105 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
41106 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
41107 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
41108 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
41109 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
41110 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
41111 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
41112 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
41113 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
41114 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
41115 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
41116 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
41117 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
41118 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
41119 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
41120 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
41121 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
41122 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
41123 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
41124 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
41125 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
41126 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
41127 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
41128 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
41129 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
41130 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
41131 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
41132 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
41133 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
41134 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
41135 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
41136 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
41137 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
41138 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
41139 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
41140 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
41141 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
41142 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
41143 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
41144 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
41145 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
41146 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
41147 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
41148 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
41149 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
41150 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
41151 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
41152 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
41153 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
41154 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
41155 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
41156 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
41157 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
41158 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
41159 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
41160 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
41161 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
41162 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
41163 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
41164 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
41165 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
41166 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
41167 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
41168 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
41169 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
41170 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
41171 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
41172 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
41173 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
41174 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
41175 | ||
41176 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
41177 | ||
41178 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
41179 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
41180 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
41181 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
41182 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
41183 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
41184 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
41185 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
41186 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
41187 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
41188 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
41189 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
41190 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
41191 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
41192 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
41193 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
41194 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
41195 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
41196 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
41197 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
41198 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
41199 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
41200 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
41201 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
41202 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
41203 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
41204 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
41205 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
41206 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
41207 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
41208 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
41209 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
41210 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
41211 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
41212 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
41213 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
41214 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
41215 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
41216 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
41217 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
41218 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
41219 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
41220 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
41221 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
41222 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
41223 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
41224 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
41225 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
41226 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
41227 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
41228 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
41229 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
41230 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
41231 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
41232 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
41233 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
41234 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
41235 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
41236 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
41237 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
41238 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
41239 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
41240 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
41241 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
41242 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
41243 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
41244 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
41245 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
41246 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
41247 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
41248 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
41249 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
41250 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
41251 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
41252 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
41253 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
41254 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
41255 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
41256 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
41257 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
41258 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
41259 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
41260 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
41261 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
41262 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
41263 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
41264 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
41265 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
41266 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
41267 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
41268 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
41269 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
41270 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
41271 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
41272 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
41273 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
41274 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
41275 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
41276 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
41277 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
41278 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
41279 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
41280 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
41281 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
41282 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
41283 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
41284 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
41285 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
41286 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
41287 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
41288 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
41289 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
41290 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
41291 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
41292 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
41293 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
41294 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
41295 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
41296 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
41297 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
41298 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
41299 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
41300 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
41301 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
41302 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
41303 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
41304 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
41305 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
41306 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
41307 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
41308 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
41309 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
41310 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
41311 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
41312 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
41313 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
41314 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
41315 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
41316 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
41317 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
41318 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
41319 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
41320 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
41321 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
41322 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
41323 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
41324 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
41325 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
41326 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
41327 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
41328 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
41329 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
41330 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
41331 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
41332 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
41333 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
41334 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
41335 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
41336 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
41337 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
41338 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
41339 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
41340 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
41341 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
41342 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
41343 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
41344 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
41345 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
41346 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
41347 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
41348 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
41349 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
41350 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
41351 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
41352 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
41353 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
41354 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
41355 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
41356 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
41357 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
41358 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
41359 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
41360 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
41361 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
41362 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
41363 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
41364 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
41365 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
41366 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
41367 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
41368 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
41369 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
41370 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
41371 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
41372 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
41373 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
41374 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
41375 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
41376 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
41377 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
41378 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
41379 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
41380 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
41381 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
41382 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
41383 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
41384 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
41385 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
41386 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
41387 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
41388 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
41389 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
41390 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
41391 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
41392 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
41393 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
41394 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
41395 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
41396 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
41397 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
41398 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
41399 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
41400 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
41401 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
41402 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
41403 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
41404 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
41405 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
41406 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
41407 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
41408 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
41409 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
41410 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
41411 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
41412 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
41413 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
41414 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
41415 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
41416 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
41417 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
41418 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
41419 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
41420 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
41421 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
41422 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
41423 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
41424 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
41425 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
70d7cb34 RD |
41426 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
41427 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
41428 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
41429 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
41430 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
41431 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
0085ce49 RD |
41432 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
41433 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
41434 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
41435 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
41436 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
41437 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
41438 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
41439 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
41440 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
41441 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
41442 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
41443 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
41444 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
41445 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
41446 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
41447 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
41448 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
41449 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
41450 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
41451 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
41452 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
41453 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
41454 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
41455 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
41456 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
41457 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
41458 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
41459 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
41460 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
41461 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
41462 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
41463 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
41464 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
41465 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
41466 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
41467 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
41468 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
41469 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
41470 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
41471 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
41472 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
41473 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
0085ce49 RD |
41474 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
41475 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
41476 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
41477 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
41478 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
41479 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
41480 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
41481 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
0085ce49 RD |
41482 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
41483 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
41484 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 41485 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
0085ce49 RD |
41486 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
41487 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
41488 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 41489 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
0085ce49 RD |
41490 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
41491 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
41492 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
41493 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
41494 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
41495 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
41496 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
41497 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
41498 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
41499 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
0085ce49 RD |
41500 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
41501 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
41502 | ||
41503 | // Work around a chicken/egg problem in drawlist.cpp | |
41504 | wxPyDrawList_SetAPIPtr(); | |
41505 | ||
d14a1e28 RD |
41506 | } |
41507 |