]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
554f62e9 | 3 | * Version 1.3.29 |
d55e5bfc 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 | |
554f62e9 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d55e5bfc 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 | }; |
d55e5bfc RD |
28 | #endif |
29 | ||
554f62e9 | 30 | /* ----------------------------------------------------------------------------- |
7449af73 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
554f62e9 | 33 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 34 | |
7449af73 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
554f62e9 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 |
d55e5bfc | 47 | |
7449af73 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 | |
554f62e9 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__)) | |
7449af73 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
554f62e9 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
7449af73 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 | ||
554f62e9 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 | ||
7449af73 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 | |
554f62e9 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
7449af73 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 | ||
554f62e9 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 | |
7449af73 | 126 | |
d55e5bfc | 127 | |
554f62e9 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d55e5bfc | 130 | |
554f62e9 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d55e5bfc | 133 | * |
554f62e9 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 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 */ | |
7449af73 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
7449af73 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) | |
d55e5bfc | 147 | #else |
7449af73 | 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 | */ | |
7449af73 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
7449af73 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
7449af73 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
7449af73 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
166 | #endif |
167 | ||
554f62e9 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 | ||
7449af73 RD |
309 | #include <string.h> |
310 | ||
d55e5bfc 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 | ||
7449af73 | 318 | /* Structure to store inforomation on one type */ |
d55e5bfc | 319 | typedef struct swig_type_info { |
7449af73 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 */ | |
554f62e9 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d55e5bfc RD |
326 | } swig_type_info; |
327 | ||
7449af73 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; | |
554f62e9 | 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>|... | |
7449af73 | 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 | } | |
7449af73 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
7449af73 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 | */ |
7449af73 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 | } |
7449af73 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
7449af73 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
7449af73 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 | */ | |
7449af73 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
7449af73 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 * | |
7449af73 | 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. */ | |
554f62e9 | 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 | |
7449af73 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; | |
7449af73 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 | } |
7449af73 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
554f62e9 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
7449af73 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 | } |
7449af73 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 | } |
7449af73 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) { | |
7449af73 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) { |
7449af73 | 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; | |
7449af73 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
7449af73 | 621 | register char d = *(c++); |
554f62e9 | 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 | } | |
d55e5bfc | 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 | } | |
d55e5bfc RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
554f62e9 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 | |
d55e5bfc | 714 | |
554f62e9 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 |
554f62e9 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 | /* ----------------------------------------------------------------------------- |
554f62e9 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 803 | |
554f62e9 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 | } | |
d55e5bfc | 846 | |
554f62e9 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 |
d55e5bfc | 936 | |
554f62e9 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
554f62e9 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 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 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 { | |
554f62e9 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; |
d55e5bfc | 965 | |
d55e5bfc | 966 | #ifdef __cplusplus |
554f62e9 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
d55e5bfc | 972 | |
d55e5bfc | 973 | |
554f62e9 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 | * | |
554f62e9 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 | * |
554f62e9 | 984 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
d55e5bfc | 987 | |
96221a45 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
554f62e9 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 | |
d55e5bfc | 1000 | |
554f62e9 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) | |
d55e5bfc | 1004 | |
554f62e9 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) | |
d55e5bfc | 1008 | |
554f62e9 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) | |
d55e5bfc | 1012 | |
554f62e9 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) | |
7449af73 | 1016 | |
c32bde28 | 1017 | |
554f62e9 | 1018 | /* Runtime API */ |
d55e5bfc | 1019 | |
554f62e9 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) | |
7449af73 | 1023 | |
554f62e9 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 | |
7449af73 | 1029 | |
d55e5bfc | 1030 | |
554f62e9 | 1031 | /* Runtime API implementation */ |
c32bde28 | 1032 | |
554f62e9 | 1033 | /* Error manipulation */ |
c32bde28 | 1034 | |
554f62e9 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 | } |
d55e5bfc | 1042 | |
554f62e9 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 | } |
d55e5bfc | 1049 | |
554f62e9 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
7449af73 | 1051 | |
554f62e9 | 1052 | /* Set a constant value */ |
c32bde28 | 1053 | |
554f62e9 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); | |
d55e5bfc RD |
1058 | } |
1059 | ||
554f62e9 | 1060 | /* Append a value to the result obj */ |
d55e5bfc | 1061 | |
554f62e9 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 { |
554f62e9 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); | |
d55e5bfc | 1100 | } |
554f62e9 RD |
1101 | return result; |
1102 | #endif | |
093d3ff1 | 1103 | } |
d55e5bfc | 1104 | |
554f62e9 | 1105 | /* Unpack the argument tuple */ |
d55e5bfc | 1106 | |
554f62e9 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*/ | |
7449af73 | 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 */ |
7449af73 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 | ||
554f62e9 | 1616 | static PyTypeObject pyswigobject_type; |
7449af73 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
554f62e9 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 |
554f62e9 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 |
554f62e9 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 | |
554f62e9 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
554f62e9 | 1679 | }; |
7449af73 | 1680 | pyswigobject_type = tmp; |
554f62e9 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 | 1682 | type_init = 1; |
c32bde28 | 1683 | } |
7449af73 | 1684 | return &pyswigobject_type; |
d55e5bfc RD |
1685 | } |
1686 | ||
093d3ff1 | 1687 | SWIGRUNTIME PyObject * |
554f62e9 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1689 | { |
554f62e9 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; | |
7449af73 | 1696 | } |
554f62e9 | 1697 | return (PyObject *)sobj; |
093d3ff1 | 1698 | } |
c32bde28 | 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; | |
554f62e9 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
554f62e9 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
c32bde28 | 1713 | { |
093d3ff1 RD |
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); | |
d55e5bfc | 1719 | } |
554f62e9 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
c32bde28 | 1723 | } |
9d7dfdff | 1724 | |
093d3ff1 RD |
1725 | SWIGRUNTIME PyObject * |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
c32bde28 | 1727 | { |
093d3ff1 RD |
1728 | char result[SWIG_BUFFER_SIZE]; |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
554f62e9 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
554f62e9 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1733 | } |
d55e5bfc RD |
1734 | } |
1735 | ||
093d3ff1 RD |
1736 | SWIGRUNTIME PyObject * |
1737 | PySwigPacked_str(PySwigPacked *v) | |
d55e5bfc | 1738 | { |
093d3ff1 RD |
1739 | char result[SWIG_BUFFER_SIZE]; |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
554f62e9 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
554f62e9 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 | 1744 | } |
d55e5bfc RD |
1745 | } |
1746 | ||
093d3ff1 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
d55e5bfc | 1749 | { |
554f62e9 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); | |
d55e5bfc RD |
1754 | } |
1755 | ||
554f62e9 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
d55e5bfc | 1757 | |
093d3ff1 | 1758 | SWIGRUNTIME PyTypeObject* |
7449af73 | 1759 | PySwigPacked_type(void) { |
554f62e9 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 | |
554f62e9 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
554f62e9 | 1842 | }; |
7449af73 | 1843 | pyswigpacked_type = tmp; |
554f62e9 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
7449af73 | 1847 | return &pyswigpacked_type; |
093d3ff1 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
554f62e9 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1852 | { |
554f62e9 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
7449af73 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
554f62e9 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
7449af73 | 1864 | } |
7e63a440 | 1865 | } |
554f62e9 | 1866 | return (PyObject *) sobj; |
093d3ff1 | 1867 | } |
d55e5bfc | 1868 | |
554f62e9 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
554f62e9 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 | } |
d55e5bfc | 1881 | |
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
554f62e9 | 1883 | * pointers/data manipulation |
093d3ff1 | 1884 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 1885 | |
554f62e9 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
d55e5bfc | 1891 | |
554f62e9 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
d55e5bfc | 1898 | |
554f62e9 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d55e5bfc | 1900 | |
554f62e9 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1903 | { |
554f62e9 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 { |
554f62e9 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
554f62e9 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; | |
093d3ff1 RD |
1947 | } |
1948 | } | |
d55e5bfc | 1949 | |
554f62e9 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 | } | |
d55e5bfc | 1961 | } |
554f62e9 | 1962 | return 0; |
c32bde28 RD |
1963 | } |
1964 | ||
554f62e9 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
554f62e9 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 { |
554f62e9 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
554f62e9 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 | 2042 | } |
d55e5bfc RD |
2043 | } |
2044 | ||
554f62e9 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
554f62e9 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 { |
554f62e9 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
96221a45 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
554f62e9 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 | } | |
d55e5bfc | 2071 | |
554f62e9 | 2072 | /* Convert a packed value value */ |
d55e5bfc | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
554f62e9 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 | } | |
093d3ff1 | 2084 | } |
554f62e9 RD |
2085 | return SWIG_OK; |
2086 | } | |
d55e5bfc | 2087 | |
554f62e9 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 2091 | |
554f62e9 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d55e5bfc | 2096 | |
554f62e9 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 | } |
554f62e9 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
554f62e9 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 | } |
554f62e9 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 | } |
554f62e9 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 | } |
554f62e9 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 | } |
d55e5bfc | 2159 | |
554f62e9 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 |
554f62e9 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d55e5bfc | 2180 | |
554f62e9 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 { |
554f62e9 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
554f62e9 | 2194 | return SWIG_Py_Void(); |
093d3ff1 | 2195 | } |
554f62e9 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
554f62e9 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
554f62e9 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 | } |
554f62e9 | 2215 | return robj; |
093d3ff1 | 2216 | } |
093d3ff1 RD |
2217 | } |
2218 | ||
554f62e9 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) { |
554f62e9 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 | 2224 | } |
d55e5bfc | 2225 | |
093d3ff1 RD |
2226 | /* -----------------------------------------------------------------------------* |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
d55e5bfc | 2229 | |
093d3ff1 RD |
2230 | #ifdef SWIG_LINK_RUNTIME |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
d55e5bfc | 2233 | |
7449af73 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); | |
d55e5bfc | 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 | } | |
d55e5bfc | 2248 | #endif |
7449af73 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2251 | } |
d55e5bfc | 2252 | |
7449af73 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
554f62e9 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
7449af73 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"); | |
554f62e9 | 2263 | return SWIG_ERROR; |
7449af73 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
554f62e9 | 2268 | return SWIG_ERROR; |
7449af73 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)); | |
554f62e9 | 2276 | return SWIG_ERROR; |
7449af73 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
554f62e9 | 2279 | return SWIG_ERROR; |
7449af73 | 2280 | Py_DECREF(o); |
554f62e9 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
7449af73 | 2283 | #endif |
d55e5bfc | 2284 | |
554f62e9 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 | ||
7449af73 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); | |
554f62e9 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
7449af73 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
554f62e9 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
7449af73 RD |
2312 | } |
2313 | } | |
d55e5bfc | 2314 | |
554f62e9 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 | } |
5e483524 | 2321 | |
554f62e9 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}; | |
7449af73 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) | |
d55e5bfc | 2641 | |
093d3ff1 | 2642 | /* -------- TYPES TABLE (END) -------- */ |
d55e5bfc | 2643 | |
554f62e9 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 | |
d55e5bfc | 2658 | |
093d3ff1 RD |
2659 | /*----------------------------------------------- |
2660 | @(target):= _gdi_.so | |
2661 | ------------------------------------------------*/ | |
2662 | #define SWIG_init init_gdi_ | |
d55e5bfc | 2663 | |
093d3ff1 | 2664 | #define SWIG_name "_gdi_" |
d55e5bfc | 2665 | |
554f62e9 | 2666 | #define SWIGVERSION 0x010329 |
d55e5bfc | 2667 | |
d55e5bfc | 2668 | |
554f62e9 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)) | |
d55e5bfc RD |
2671 | |
2672 | ||
554f62e9 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 | } |
554f62e9 RD |
2685 | |
2686 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2687 | { | |
2688 | Py_XINCREF(_obj); | |
093d3ff1 | 2689 | } |
554f62e9 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 | } |
d55e5bfc | 2720 | |
d55e5bfc | 2721 | |
554f62e9 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; | |
d55e5bfc | 2731 | } |
554f62e9 | 2732 | }; |
d55e5bfc RD |
2733 | } |
2734 | ||
2735 | ||
554f62e9 RD |
2736 | #include "wx/wxPython/wxPython.h" |
2737 | #include "wx/wxPython/pyclasses.h" | |
2738 | ||
2739 | ||
2740 | static const wxString wxPyEmptyString(wxEmptyString); | |
2741 | ||
f460c29d 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 | ||
554f62e9 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 | |
d55e5bfc | 2762 | |
c32bde28 | 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 |
554f62e9 | 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) { | |
554f62e9 | 2780 | return SWIG_TypeError; |
093d3ff1 RD |
2781 | } |
2782 | else if (val) | |
2783 | *val = (unsigned long)v; | |
554f62e9 | 2784 | return SWIG_OK; |
093d3ff1 | 2785 | } |
c32bde28 | 2786 | |
d55e5bfc | 2787 | |
093d3ff1 | 2788 | SWIGINTERN int |
554f62e9 RD |
2789 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2790 | { | |
093d3ff1 | 2791 | unsigned long v; |
554f62e9 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 { |
554f62e9 | 2797 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2798 | } |
554f62e9 RD |
2799 | } |
2800 | return res; | |
093d3ff1 | 2801 | } |
d55e5bfc RD |
2802 | |
2803 | ||
554f62e9 RD |
2804 | SWIGINTERNINLINE PyObject* |
2805 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2806 | { |
554f62e9 RD |
2807 | return (value > LONG_MAX) ? |
2808 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2809 | } |
d55e5bfc RD |
2810 | |
2811 | ||
554f62e9 RD |
2812 | SWIGINTERNINLINE PyObject * |
2813 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2814 | { | |
2815 | return SWIG_From_unsigned_SS_long (value); | |
2816 | } | |
d55e5bfc | 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 | } | |
554f62e9 | 2873 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2874 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2875 | } | |
2876 | ||
554f62e9 RD |
2877 | SWIGINTERN int |
2878 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2879 | { |
554f62e9 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; | |
d55e5bfc RD |
2890 | } |
2891 | ||
554f62e9 | 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 | } | |
554f62e9 | 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); | |
d55e5bfc | 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 | } | |
554f62e9 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; } | |
d55e5bfc | 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> |
d55e5bfc | 2943 | |
093d3ff1 RD |
2944 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2945 | char** cArray = NULL; | |
2946 | int count; | |
d55e5bfc | 2947 | |
093d3ff1 RD |
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]; | |
d55e5bfc | 2954 | |
093d3ff1 RD |
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; | |
d55e5bfc | 2960 | } |
d55e5bfc RD |
2961 | |
2962 | ||
554f62e9 | 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 | } | |
554f62e9 | 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 | } | |
554f62e9 RD |
2980 | SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
2981 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ | |
093d3ff1 RD |
2982 | wxSize size(self->GetWidth(), self->GetHeight()); |
2983 | return size; | |
2984 | } | |
554f62e9 | 2985 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2986 | wxMask *mask = new wxMask(*self, colour); |
2987 | self->SetMask(mask); | |
2988 | } | |
554f62e9 | 2989 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2990 | self->SetWidth(size.x); |
2991 | self->SetHeight(size.y); | |
2992 | } | |
8f514ab4 RD |
2993 | SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){ |
2994 | int height=self->GetHeight(); | |
2995 | int width=self->GetWidth(); | |
fc46b7f3 | 2996 | |
8f514ab4 RD |
2997 | if (DATASIZE != width * height * 3) { |
2998 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2999 | } | |
3000 | wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3001 | if (! pixData) { | |
3002 | // raise an exception... | |
3003 | wxPyErr_SetString(PyExc_RuntimeError, | |
3004 | "Failed to gain raw access to bitmap data."); | |
3005 | return; | |
3006 | } | |
fc46b7f3 | 3007 | |
8f514ab4 RD |
3008 | wxNativePixelData::Iterator p(pixData); |
3009 | for (int y=0; y<height; y++) { | |
3010 | wxNativePixelData::Iterator rowStart = p; | |
3011 | for (int x=0; x<width; x++) { | |
3012 | p.Red() = *(data++); | |
3013 | p.Green() = *(data++); | |
3014 | p.Blue() = *(data++); | |
3015 | ++p; | |
3016 | } | |
3017 | p = rowStart; | |
3018 | p.OffsetY(pixData, 1); | |
3019 | } | |
3020 | } | |
3021 | SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){ | |
3022 | int height=self->GetHeight(); | |
3023 | int width=self->GetWidth(); | |
3024 | ||
3025 | if (DATASIZE != width * height * 4) { | |
3026 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3027 | } | |
3028 | wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3029 | if (! pixData) { | |
3030 | // raise an exception... | |
3031 | wxPyErr_SetString(PyExc_RuntimeError, | |
3032 | "Failed to gain raw access to bitmap data."); | |
3033 | return; | |
3034 | } | |
3035 | ||
3036 | pixData.UseAlpha(); | |
3037 | wxAlphaPixelData::Iterator p(pixData); | |
3038 | for (int y=0; y<height; y++) { | |
3039 | wxAlphaPixelData::Iterator rowStart = p; | |
3040 | for (int x=0; x<width; x++) { | |
3041 | byte a = data[3]; | |
3042 | p.Red() = wxPy_premultiply(*(data++), a); | |
3043 | p.Green() = wxPy_premultiply(*(data++), a); | |
3044 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3045 | p.Alpha() = a; data++; | |
3046 | ++p; | |
3047 | } | |
3048 | p = rowStart; | |
3049 | p.OffsetY(pixData, 1); | |
3050 | } | |
3051 | } | |
3052 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; } | |
3053 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; } | |
fc46b7f3 RD |
3054 | |
3055 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
3056 | buffer data, int DATASIZE, | |
3057 | buffer alpha, int ALPHASIZE) | |
3058 | { | |
3059 | if (DATASIZE != width*height*3) { | |
3060 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3061 | return NULL; | |
3062 | } | |
3063 | ||
3064 | if (ALPHASIZE != width*height) { | |
3065 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
3066 | return NULL; | |
3067 | } | |
3068 | ||
3069 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3070 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3071 | if (! pixData) { | |
3072 | // raise an exception... | |
3073 | wxPyErr_SetString(PyExc_RuntimeError, | |
3074 | "Failed to gain raw access to bitmap data."); | |
3075 | return NULL; | |
3076 | } | |
3077 | ||
3078 | pixData.UseAlpha(); | |
3079 | wxAlphaPixelData::Iterator p(pixData); | |
3080 | for (int y=0; y<height; y++) { | |
3081 | wxAlphaPixelData::Iterator rowStart = p; | |
3082 | for (int x=0; x<width; x++) { | |
3083 | byte a = *(alpha++); | |
3084 | p.Red() = wxPy_premultiply(*(data++), a); | |
3085 | p.Green() = wxPy_premultiply(*(data++), a); | |
3086 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3087 | p.Alpha() = a; | |
3088 | ++p; | |
3089 | } | |
3090 | p = rowStart; | |
3091 | p.OffsetY(pixData, 1); | |
3092 | } | |
3093 | return bmp; | |
3094 | } | |
3095 | ||
3096 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3097 | { | |
3098 | if (DATASIZE != width*height*3) { | |
3099 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3100 | return NULL; | |
3101 | } | |
3102 | ||
3103 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3104 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3105 | if (! pixData) { | |
3106 | // raise an exception... | |
3107 | wxPyErr_SetString(PyExc_RuntimeError, | |
3108 | "Failed to gain raw access to bitmap data."); | |
3109 | return NULL; | |
3110 | } | |
3111 | ||
3112 | wxNativePixelData::Iterator p(pixData); | |
3113 | for (int y=0; y<height; y++) { | |
3114 | wxNativePixelData::Iterator rowStart = p; | |
3115 | for (int x=0; x<width; x++) { | |
3116 | p.Red() = *(data++); | |
3117 | p.Green() = *(data++); | |
3118 | p.Blue() = *(data++); | |
3119 | ++p; | |
3120 | } | |
3121 | p = rowStart; | |
3122 | p.OffsetY(pixData, 1); | |
3123 | } | |
3124 | return bmp; | |
3125 | } | |
3126 | ||
3127 | ||
3128 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3129 | { | |
3130 | if (DATASIZE != width*height*4) { | |
3131 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3132 | return NULL; | |
3133 | } | |
3134 | ||
3135 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3136 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3137 | if (! pixData) { | |
3138 | // raise an exception... | |
3139 | wxPyErr_SetString(PyExc_RuntimeError, | |
3140 | "Failed to gain raw access to bitmap data."); | |
3141 | return NULL; | |
3142 | } | |
3143 | ||
3144 | pixData.UseAlpha(); | |
3145 | wxAlphaPixelData::Iterator p(pixData); | |
3146 | for (int y=0; y<height; y++) { | |
3147 | wxAlphaPixelData::Iterator rowStart = p; | |
3148 | for (int x=0; x<width; x++) { | |
3149 | byte a = data[3]; | |
3150 | p.Red() = wxPy_premultiply(*(data++), a); | |
3151 | p.Green() = wxPy_premultiply(*(data++), a); | |
3152 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3153 | p.Alpha() = a; data++; | |
3154 | ++p; | |
3155 | } | |
3156 | p = rowStart; | |
3157 | p.OffsetY(pixData, 1); | |
3158 | } | |
3159 | return bmp; | |
3160 | } | |
3161 | ||
3162 | ||
3163 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3164 | ||
3165 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3166 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3167 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3168 | self->Red() = red; | |
3169 | self->Green() = green; | |
3170 | self->Blue() = blue; | |
3171 | } | |
3172 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3173 | PyObject* rv = PyTuple_New(3); | |
3174 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3175 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3176 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3177 | return rv; | |
3178 | } | |
3179 | ||
3180 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3181 | ||
3182 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3183 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3184 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3185 | self->Red() = wxPy_premultiply(red, alpha); | |
3186 | self->Green() = wxPy_premultiply(green, alpha); | |
3187 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3188 | self->Alpha() = alpha; | |
3189 | } | |
3190 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3191 | PyObject* rv = PyTuple_New(4); | |
3192 | int red = self->Red(); | |
3193 | int green = self->Green(); | |
3194 | int blue = self->Blue(); | |
3195 | int alpha = self->Alpha(); | |
3196 | ||
3197 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3198 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3199 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3200 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3201 | return rv; | |
3202 | } | |
554f62e9 | 3203 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
b39fe951 | 3204 | if ( !colour.IsOk() ) |
093d3ff1 RD |
3205 | return new wxMask(bitmap, *wxBLACK); |
3206 | else | |
3207 | return new wxMask(bitmap, colour); | |
3208 | } | |
d55e5bfc | 3209 | |
093d3ff1 | 3210 | #include <wx/iconbndl.h> |
d55e5bfc | 3211 | |
554f62e9 | 3212 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3213 | wxIcon* icon = new wxIcon(); |
3214 | icon->CopyFromBitmap(bmp); | |
3215 | return icon; | |
3216 | } | |
554f62e9 | 3217 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3218 | char** cArray = NULL; |
3219 | wxIcon* icon; | |
d55e5bfc | 3220 | |
093d3ff1 RD |
3221 | cArray = ConvertListOfStrings(listOfStrings); |
3222 | if (! cArray) | |
3223 | return NULL; | |
3224 | icon = new wxIcon(cArray); | |
3225 | delete [] cArray; | |
3226 | return icon; | |
3227 | } | |
554f62e9 RD |
3228 | SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
3229 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ | |
d55e5bfc | 3230 | |
093d3ff1 | 3231 | return new wxIconLocation(*filename, num); |
d55e5bfc RD |
3232 | |
3233 | ||
d55e5bfc | 3234 | |
093d3ff1 | 3235 | } |
554f62e9 | 3236 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d55e5bfc | 3237 | |
093d3ff1 | 3238 | self->SetIndex(num); |
d55e5bfc RD |
3239 | |
3240 | ||
d55e5bfc | 3241 | |
093d3ff1 | 3242 | } |
554f62e9 | 3243 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
d55e5bfc | 3244 | |
093d3ff1 | 3245 | return self->GetIndex(); |
d55e5bfc RD |
3246 | |
3247 | ||
d55e5bfc | 3248 | |
093d3ff1 | 3249 | } |
554f62e9 | 3250 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3251 | #ifdef __WXGTK__ |
fef4c27a RD |
3252 | wxImage img(cursorName, type); |
3253 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3254 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3255 | return new wxCursor(img); | |
093d3ff1 | 3256 | #else |
fef4c27a | 3257 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3258 | #endif |
3259 | } | |
554f62e9 | 3260 | SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
d55e5bfc | 3261 | |
093d3ff1 | 3262 | |
554f62e9 | 3263 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3264 | (*self) ++; |
3265 | } | |
554f62e9 | 3266 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3267 | return self->operator bool(); |
3268 | } | |
3269 | ||
3270 | #include <wx/fontutil.h> | |
3271 | #include <wx/fontmap.h> | |
3272 | #include <wx/fontenum.h> | |
3273 | ||
554f62e9 | 3274 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3275 | return self->ToString(); |
3276 | } | |
3277 | ||
3278 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
3279 | { wxPyRaiseNotImplemented(); return NULL; } | |
3280 | ||
3281 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
3282 | { wxPyRaiseNotImplemented(); return false; } | |
3283 | ||
554f62e9 RD |
3284 | |
3285 | SWIGINTERNINLINE PyObject * | |
3286 | SWIG_From_size_t (size_t value) | |
3287 | { | |
3288 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3289 | } | |
3290 | ||
3291 | ||
3292 | SWIGINTERNINLINE int | |
3293 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3294 | { | |
3295 | unsigned long v; | |
3296 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3297 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3298 | return res; | |
3299 | } | |
3300 | ||
3301 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3302 | wxFontEncoding alt_enc; |
3303 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3304 | return PyInt_FromLong(alt_enc); | |
3305 | else { | |
3306 | Py_INCREF(Py_None); | |
3307 | return Py_None; | |
3308 | } | |
3309 | } | |
554f62e9 | 3310 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3311 | wxNativeFontInfo nfi; |
3312 | nfi.FromString(info); | |
3313 | return new wxFont(nfi); | |
3314 | } | |
554f62e9 | 3315 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3316 | return wxFont::New(pointSize, family, flags, face, encoding); |
3317 | } | |
554f62e9 | 3318 | 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 |
3319 | return wxFontBase::New(pixelSize, family, |
3320 | style, weight, underlined, | |
3321 | face, encoding); | |
3322 | } | |
554f62e9 | 3323 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3324 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3325 | } | |
554f62e9 RD |
3326 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3327 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3328 | |
3329 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3330 | public: | |
3331 | wxPyFontEnumerator() {} | |
3332 | ~wxPyFontEnumerator() {} | |
3333 | ||
3334 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3335 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3336 | ||
3337 | PYPRIVATE; | |
3338 | }; | |
3339 | ||
3340 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3341 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3342 | ||
3343 | ||
704eda0c | 3344 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3345 | PyObject* ret; |
704eda0c | 3346 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3347 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3348 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3349 | wxPyEndBlockThreads(blocked); |
3350 | return ret; | |
093d3ff1 | 3351 | } |
704eda0c | 3352 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3353 | PyObject* ret; |
704eda0c | 3354 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3355 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3356 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3357 | wxPyEndBlockThreads(blocked); |
3358 | return ret; | |
093d3ff1 RD |
3359 | } |
3360 | ||
3361 | #include <locale.h> | |
3362 | ||
554f62e9 | 3363 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3364 | wxLocale* loc; |
3365 | if (language == -1) | |
3366 | loc = new wxLocale(); | |
3367 | else | |
3368 | loc = new wxLocale(language, flags); | |
3369 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3370 | // for the floating point conversions and such to work right. | |
3371 | #if PY_VERSION_HEX < 0x02040000 | |
3372 | setlocale(LC_NUMERIC, "C"); | |
3373 | #endif | |
3374 | return loc; | |
3375 | } | |
554f62e9 | 3376 | 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 |
3377 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3378 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3379 | // for the floating point conversions and such to work right. | |
3380 | #if PY_VERSION_HEX < 0x02040000 | |
3381 | setlocale(LC_NUMERIC, "C"); | |
3382 | #endif | |
3383 | return rc; | |
3384 | } | |
554f62e9 | 3385 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3386 | bool rc = self->Init(language, flags); |
3387 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3388 | // for the floating point conversions and such to work right. | |
3389 | #if PY_VERSION_HEX < 0x02040000 | |
3390 | setlocale(LC_NUMERIC, "C"); | |
3391 | #endif | |
3392 | return rc; | |
3393 | } | |
3394 | ||
fc46b7f3 RD |
3395 | class wxPyLocale : public wxLocale |
3396 | { | |
3397 | public: | |
3398 | wxPyLocale(); | |
3399 | ||
3400 | wxPyLocale(const wxChar *szName, // name (for messages) | |
3401 | const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files) | |
3402 | const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale) | |
3403 | bool bLoadDefault = true, // preload wxstd.mo? | |
3404 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
3405 | ||
3406 | wxPyLocale(int language, // wxLanguage id or custom language | |
3407 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); | |
3408 | ||
3409 | ~wxPyLocale(); | |
3410 | ||
3411 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3412 | const wxChar *szDomain = NULL) const; | |
3413 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3414 | const wxChar *szOrigString2, size_t n, | |
3415 | const wxChar *szDomain = NULL) const; | |
3416 | ||
3417 | virtual wxChar *GetSingularString(const wxChar *szOrigString, | |
3418 | const wxChar *szDomain = NULL) const; | |
3419 | virtual wxChar *GetPluralString(const wxChar *szOrigString, | |
3420 | const wxChar *szOrigString2, size_t n, | |
3421 | const wxChar *szDomain = NULL) const; | |
3422 | ||
3423 | PYPRIVATE; | |
3424 | private: | |
3425 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3426 | }; | |
3427 | ||
3428 | wxPyLocale::wxPyLocale() : wxLocale() | |
3429 | { | |
3430 | } | |
3431 | ||
3432 | wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages) | |
3433 | const wxChar *szShort, // dir prefix (for msg files) | |
3434 | const wxChar *szLocale, // locale (for setlocale) | |
3435 | bool bLoadDefault, // preload wxstd.mo? | |
3436 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3437 | : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding) | |
3438 | { | |
3439 | } | |
3440 | ||
3441 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3442 | int flags) : wxLocale(language, flags) | |
3443 | { | |
3444 | } | |
3445 | ||
3446 | wxPyLocale::~wxPyLocale() | |
3447 | { | |
3448 | } | |
3449 | ||
3450 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3451 | const wxChar *szDomain) const | |
3452 | { | |
3453 | wxChar *str = GetSingularString(szOrigString, szDomain); | |
3454 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain); | |
3455 | } | |
3456 | ||
3457 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3458 | const wxChar *szOrigString2, size_t n, | |
3459 | const wxChar *szDomain) const | |
3460 | { | |
3461 | wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain); | |
3462 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain); | |
3463 | } | |
3464 | ||
3465 | wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString, | |
3466 | const wxChar *szDomain) const | |
3467 | { | |
3468 | bool found; | |
3469 | static wxString str; | |
3470 | 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. | |
3471 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3472 | if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { | |
3473 | PyObject* param1 = wx2PyString(szOrigString); | |
3474 | PyObject* param2 = wx2PyString(szDomain); | |
3475 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2)); | |
3476 | Py_DECREF(param1); | |
3477 | Py_DECREF(param2); | |
3478 | if (ret) { | |
3479 | str = Py2wxString(ret); | |
3480 | Py_DECREF(ret); | |
3481 | } | |
3482 | } | |
3483 | wxPyEndBlockThreads(blocked); | |
3484 | return (found ? (wxChar*)str.c_str() : NULL); | |
3485 | } | |
3486 | ||
3487 | wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString, | |
3488 | const wxChar *szOrigString2, size_t n, | |
3489 | const wxChar *szDomain) const | |
3490 | { | |
3491 | bool found; | |
3492 | static wxString str; | |
3493 | 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. | |
3494 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3495 | if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { | |
3496 | PyObject* param1 = wx2PyString(szOrigString); | |
3497 | PyObject* param2 = wx2PyString(szOrigString2); | |
3498 | PyObject* param4 = wx2PyString(szDomain); | |
3499 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4)); | |
3500 | Py_DECREF(param1); | |
3501 | Py_DECREF(param2); | |
3502 | Py_DECREF(param4); | |
3503 | if( ret) { | |
3504 | str = Py2wxString(ret); | |
3505 | Py_DECREF(ret); | |
3506 | } | |
3507 | } | |
3508 | wxPyEndBlockThreads(blocked); | |
3509 | return (found ? (wxChar*)str.c_str() : NULL); | |
3510 | } | |
3511 | ||
3512 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3513 | wxPyLocale* loc; | |
3514 | if (language == -1) | |
3515 | loc = new wxPyLocale(); | |
3516 | else | |
3517 | loc = new wxPyLocale(language, flags); | |
3518 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3519 | // for the floating point conversions and such to work right. | |
3520 | #if PY_VERSION_HEX < 0x02040000 | |
3521 | setlocale(LC_NUMERIC, "C"); | |
3522 | #endif | |
3523 | return loc; | |
3524 | } | |
3525 | ||
093d3ff1 RD |
3526 | #include "wx/wxPython/pydrawxxx.h" |
3527 | ||
554f62e9 | 3528 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3529 | wxColour col; |
3530 | self->GetPixel(x, y, &col); | |
3531 | return col; | |
3532 | } | |
554f62e9 | 3533 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3534 | wxColour col; |
3535 | self->GetPixel(pt, &col); | |
3536 | return col; | |
3537 | } | |
3538 | ||
3539 | SWIGINTERN int | |
554f62e9 | 3540 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3541 | { |
3542 | if (PyNumber_Check(obj)) { | |
3543 | if (val) *val = PyFloat_AsDouble(obj); | |
554f62e9 | 3544 | return SWIG_OK; |
093d3ff1 | 3545 | } |
554f62e9 | 3546 | return SWIG_TypeError; |
093d3ff1 RD |
3547 | } |
3548 | ||
554f62e9 | 3549 | 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 |
3550 | wxRect rv; |
3551 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3552 | return rv; | |
3553 | } | |
554f62e9 | 3554 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3555 | wxRect rect; |
3556 | self->GetClippingBox(rect); | |
3557 | return rect; | |
3558 | } | |
554f62e9 | 3559 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3560 | wxArrayInt widths; |
3561 | self->GetPartialTextExtents(text, widths); | |
3562 | return widths; | |
3563 | } | |
3564 | ||
554f62e9 | 3565 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3566 | |
554f62e9 | 3567 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3568 | self->SetLogicalOrigin(point.x, point.y); |
3569 | } | |
554f62e9 | 3570 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3571 | self->SetDeviceOrigin(point.x, point.y); |
3572 | } | |
554f62e9 | 3573 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3574 | self->CalcBoundingBox(point.x, point.y); |
3575 | } | |
554f62e9 | 3576 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3577 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3578 | } | |
554f62e9 | 3579 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3580 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3581 | } | |
554f62e9 | 3582 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3583 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3584 | } | |
554f62e9 | 3585 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3586 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3587 | } | |
554f62e9 | 3588 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3589 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3590 | } | |
554f62e9 | 3591 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3592 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3593 | } | |
3594 | ||
3595 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3596 | *x1 = dc->MinX(); | |
3597 | *y1 = dc->MinY(); | |
3598 | *x2 = dc->MaxX(); | |
3599 | *y2 = dc->MaxY(); | |
3600 | } | |
3601 | ||
3602 | ||
3603 | #include <wx/dcbuffer.h> | |
3604 | ||
3605 | ||
3606 | #include <wx/dcps.h> | |
3607 | ||
3608 | ||
3609 | #include <wx/metafile.h> | |
3610 | ||
3611 | ||
72ef6efb RD |
3612 | #include <wx/graphics.h> |
3613 | ||
3614 | ||
3615 | #if !wxUSE_GRAPHICS_CONTEXT | |
70d7cb34 RD |
3616 | // C++ stub classes for platforms or build configurations that don't have |
3617 | // wxGraphicsContext yet. | |
72ef6efb | 3618 | |
70d7cb34 RD |
3619 | |
3620 | class wxGraphicsObject : public wxObject | |
72ef6efb RD |
3621 | { |
3622 | public : | |
70d7cb34 | 3623 | wxGraphicsObject( wxGraphicsRenderer* ) { |
72ef6efb | 3624 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3625 | "wx.GraphicsObject is not available on this platform."); |
3626 | } | |
3627 | wxGraphicsObject( const wxGraphicsObject& ) {} | |
3628 | virtual ~wxGraphicsObject() {} | |
3629 | bool IsNull() const { return false; } | |
3630 | wxGraphicsRenderer* GetRenderer() const { return NULL; } | |
3631 | } ; | |
3632 | ||
3633 | ||
3634 | ||
3635 | class wxGraphicsPen : public wxGraphicsObject | |
3636 | { | |
3637 | wxGraphicsPen() {} | |
3638 | virtual ~wxGraphicsPen() {} | |
3639 | } ; | |
3640 | wxGraphicsPen wxNullGraphicsPen; | |
3641 | ||
3642 | ||
3643 | ||
3644 | class wxGraphicsBrush : public wxGraphicsObject | |
3645 | { | |
3646 | public : | |
3647 | wxGraphicsBrush() {} | |
3648 | virtual ~wxGraphicsBrush() {} | |
3649 | } ; | |
3650 | wxGraphicsBrush wxNullGraphicsBrush; | |
3651 | ||
3652 | ||
3653 | ||
3654 | class wxGraphicsFont : public wxGraphicsObject | |
3655 | { | |
3656 | public : | |
3657 | wxGraphicsFont() {} | |
3658 | virtual ~wxGraphicsFont() {} | |
3659 | } ; | |
3660 | wxGraphicsFont wxNullGraphicsFont; | |
3661 | ||
3662 | ||
3663 | ||
3664 | class wxGraphicsPath : public wxGraphicsObject | |
3665 | { | |
3666 | public : | |
3667 | wxGraphicsPath(wxGraphicsRenderer* ) { | |
3668 | PyErr_SetString(PyExc_NotImplementedError, | |
3669 | "wx.GraphicsPath is not available on this platform."); | |
72ef6efb RD |
3670 | } |
3671 | virtual ~wxGraphicsPath() {} | |
70d7cb34 | 3672 | |
72ef6efb | 3673 | void MoveToPoint( wxDouble, wxDouble ) {} |
70d7cb34 RD |
3674 | void MoveToPoint( const wxPoint2DDouble& ) {} |
3675 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3676 | void AddLineToPoint( const wxPoint2DDouble& ) {} | |
72ef6efb | 3677 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} |
70d7cb34 RD |
3678 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} |
3679 | void AddPath( const wxGraphicsPath* ) {} | |
72ef6efb RD |
3680 | void CloseSubpath() {} |
3681 | void GetCurrentPoint( wxDouble&, wxDouble&) {} | |
70d7cb34 | 3682 | wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); } |
72ef6efb | 3683 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} |
70d7cb34 | 3684 | void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {} |
72ef6efb RD |
3685 | |
3686 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3687 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3688 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3689 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3690 | ||
70d7cb34 RD |
3691 | void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3692 | void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3693 | void * GetNativePath() const { return NULL; } | |
3694 | void UnGetNativePath(void *) {} | |
3695 | void Transform( wxGraphicsMatrix* ) {} | |
3696 | void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {} | |
3697 | wxRect2D GetBox() { return wxRect2D(0,0,0,0); } | |
3698 | ||
3699 | bool Contains( wxDouble , wxDouble , int ) { return false; } | |
3700 | bool Contains( const wxPoint2DDouble& , int ) { return false; } | |
3701 | }; | |
5c8c7dd3 | 3702 | wxGraphicsPath wxNullGraphicsPath; |
70d7cb34 RD |
3703 | |
3704 | ||
3705 | class wxGraphicsMatrix : public wxGraphicsObject | |
3706 | { | |
3707 | public : | |
3708 | wxGraphicsMatrix(wxGraphicsRenderer* ) { | |
3709 | PyErr_SetString(PyExc_NotImplementedError, | |
3710 | "wx.GraphicsMatrix is not available on this platform."); | |
3711 | } | |
3712 | virtual ~wxGraphicsMatrix() {} | |
70d7cb34 RD |
3713 | virtual void Concat( const wxGraphicsMatrix * ) {} |
3714 | virtual void Copy( const wxGraphicsMatrix * ) {} | |
3715 | virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble , | |
3716 | wxDouble , wxDouble ) {} | |
3717 | virtual void Invert() {} | |
3718 | virtual bool IsEqual( const wxGraphicsMatrix* t) const {} | |
3719 | virtual bool IsIdentity() { return false; } | |
3720 | virtual void Translate( wxDouble , wxDouble ) {} | |
3721 | virtual void Scale( wxDouble , wxDouble ) {} | |
3722 | virtual void Rotate( wxDouble ) {} | |
3723 | virtual void TransformPoint( wxDouble *, wxDouble * ) {} | |
3724 | virtual void TransformDistance( wxDouble *, wxDouble * ) {} | |
3725 | virtual void * GetNativeMatrix() const { return NULL; } | |
72ef6efb | 3726 | }; |
5c8c7dd3 | 3727 | wxGraphicsMatrix wxNullGraphicsMatrix; |
72ef6efb | 3728 | |
70d7cb34 RD |
3729 | |
3730 | class wxGraphicsContext : public wxGraphicsObject | |
72ef6efb RD |
3731 | { |
3732 | public: | |
70d7cb34 RD |
3733 | |
3734 | wxGraphicsContext(wxGraphicsRenderer* ) { | |
72ef6efb | 3735 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3736 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3737 | } |
70d7cb34 | 3738 | |
72ef6efb | 3739 | virtual ~wxGraphicsContext() {} |
70d7cb34 RD |
3740 | |
3741 | static wxGraphicsContext* Create( const wxWindowDC& ) { | |
72ef6efb | 3742 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3743 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3744 | } |
b876c1e4 | 3745 | |
70d7cb34 | 3746 | static wxGraphicsContext* CreateFromNative( void * ) { |
b876c1e4 | 3747 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3748 | "wx.GraphicsContext is not available on this platform."); |
3749 | } | |
b876c1e4 | 3750 | |
70d7cb34 RD |
3751 | static wxGraphicsContext* CreateFromNativeWindow( void * ) { |
3752 | PyErr_SetString(PyExc_NotImplementedError, | |
3753 | "wx.GraphicsContext is not available on this platform."); | |
3754 | } | |
3755 | ||
3756 | static wxGraphicsContext* Create( wxWindow* ) { | |
3757 | PyErr_SetString(PyExc_NotImplementedError, | |
3758 | "wx.GraphicsContext is not available on this platform."); | |
3759 | } | |
3760 | ||
3761 | wxGraphicsPath * CreatePath() { return NULL; } | |
3762 | ||
3763 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; } | |
3764 | ||
3765 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; } | |
3766 | ||
3767 | virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , | |
3768 | const wxColour&, const wxColour&) { return NULL; } | |
3769 | ||
3770 | virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo, | |
3771 | wxDouble xc, wxDouble yc, wxDouble radius, | |
3772 | const wxColour &oColor, const wxColour &cColor) { return NULL; } | |
3773 | ||
3774 | virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; } | |
3775 | ||
3776 | virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble, | |
3777 | wxDouble, wxDouble) { return NULL; } | |
3778 | ||
3779 | virtual void PushState() {} | |
3780 | virtual void PopState() {} | |
3781 | virtual void Clip( const wxRegion & ) {} | |
3782 | virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3783 | virtual void ResetClip() {} | |
3784 | virtual void * GetNativeContext() { return NULL; } | |
3785 | virtual void Translate( wxDouble , wxDouble ) {} | |
3786 | virtual void Scale( wxDouble , wxDouble ) {} | |
3787 | virtual void Rotate( wxDouble ) {} | |
3788 | virtual void ConcatTransform( const wxGraphicsMatrix* ) {} | |
3789 | virtual void SetTransform( const wxGraphicsMatrix* ) {} | |
3790 | virtual void GetTransform( wxGraphicsMatrix* ) {} | |
3791 | ||
3792 | virtual void SetPen( const wxGraphicsPen& ) {} | |
3793 | void SetPen( const wxPen& ) {} | |
3794 | ||
3795 | virtual void SetBrush( const wxGraphicsBrush& ) {} | |
3796 | void SetBrush( const wxBrush& ) {} | |
3797 | ||
3798 | virtual void SetFont( const wxGraphicsFont& ) {} | |
3799 | void SetFont( const wxFont&, const wxColour& ) {} | |
3800 | ||
3801 | virtual void StrokePath( const wxGraphicsPath * ) {} | |
3802 | virtual void FillPath( const wxGraphicsPath *, int ) {} | |
3803 | virtual void DrawPath( const wxGraphicsPath *, int ) {} | |
3804 | ||
3805 | virtual void DrawText( const wxString &, wxDouble , wxDouble ) {} | |
3806 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {} | |
3807 | virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *, | |
3808 | wxDouble *, wxDouble * ) const {} | |
3809 | virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {} | |
3810 | ||
3811 | virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3812 | virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3813 | ||
3814 | virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3815 | virtual void StrokeLines( size_t , const wxPoint2DDouble *) {} | |
3816 | virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {} | |
3817 | virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {} | |
3818 | virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3819 | virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3820 | virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3821 | virtual bool ShouldOffset() const { return false; } | |
3822 | }; | |
3823 | ||
3824 | ||
3825 | class wxGraphicsRenderer : public wxObject | |
3826 | { | |
3827 | public : | |
3828 | wxGraphicsRenderer() { | |
3829 | PyErr_SetString(PyExc_NotImplementedError, | |
3830 | "wx.GraphicsRenderer is not available on this platform."); | |
3831 | } | |
3832 | ||
3833 | virtual ~wxGraphicsRenderer() {} | |
3834 | ||
3835 | static wxGraphicsRenderer* GetDefaultRenderer( | |
3836 | PyErr_SetString(PyExc_NotImplementedError, | |
3837 | "wx.GraphicsRenderer is not available on this platform."); | |
3838 | ); | |
3839 | ||
3840 | virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; } | |
3841 | virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; } | |
3842 | virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; } | |
3843 | virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; } | |
3844 | ||
3845 | virtual wxGraphicsPath * CreatePath() { return NULL; } | |
3846 | ||
3847 | virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble , | |
3848 | wxDouble , wxDouble ) { return NULL; } | |
3849 | ||
3850 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; } | |
3851 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; } | |
3852 | virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble , | |
3853 | const wxColour&, const wxColour&) { return wxNullGaphicsBrush; } | |
3854 | virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , | |
3855 | const wxColour &, const wxColour &) { return wxNullGaphicsBrush; } | |
3856 | virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; } | |
72ef6efb RD |
3857 | }; |
3858 | ||
3859 | ||
70d7cb34 | 3860 | |
72ef6efb RD |
3861 | class wxGCDC: public wxWindowDC |
3862 | { | |
3863 | public: | |
3864 | wxGCDC(const wxWindowDC&) { | |
3865 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3866 | PyErr_SetString(PyExc_NotImplementedError, | |
3867 | "wxGCDC is not available on this platform."); | |
3868 | wxPyEndBlockThreads(blocked); | |
3869 | } | |
70d7cb34 | 3870 | |
72ef6efb RD |
3871 | wxGCDC() { |
3872 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3873 | PyErr_SetString(PyExc_NotImplementedError, | |
3874 | "wxGCDC is not available on this platform."); | |
3875 | wxPyEndBlockThreads(blocked); | |
3876 | } | |
70d7cb34 | 3877 | |
72ef6efb RD |
3878 | virtual ~wxGCDC() {} |
3879 | ||
b876c1e4 RD |
3880 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3881 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3882 | }; |
3883 | ||
3884 | #endif | |
3885 | ||
f89238b9 RD |
3886 | SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ |
3887 | if ( !backgroundBrush.IsNull() ) | |
3888 | self->DrawText(str, x, y, backgroundBrush); | |
3889 | else | |
3890 | self->DrawText(str, x, y); | |
3891 | } | |
3892 | SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ | |
3893 | if ( !backgroundBrush.IsNull() ) | |
3894 | self->DrawText(str, x, y, angle, backgroundBrush); | |
3895 | else | |
3896 | self->DrawText(str, x, y, angle); | |
3897 | } | |
be68621e RD |
3898 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3899 | wxDouble width = 0.0, | |
3900 | height = 0.0; | |
3901 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3902 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3903 | PyObject* rv = PyTuple_New(2); | |
3904 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3905 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3906 | return rv; | |
3907 | } | |
b39fe951 RD |
3908 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3909 | wxArrayDouble widths; | |
3910 | self->GetPartialTextExtents(text, widths); | |
3911 | return widths; | |
3912 | } | |
f8eb59b9 | 3913 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3914 | size_t c1, c2, count; |
3915 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3916 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3917 | ||
3918 | if ( beginP != NULL && endP != NULL ) | |
3919 | { | |
3920 | count = wxMin(c1, c2); | |
3921 | self->StrokeLines(count, beginP, endP); | |
3922 | } | |
3923 | delete [] beginP; | |
3924 | delete [] endP; | |
3925 | } | |
72ef6efb | 3926 | |
0a27f394 RD |
3927 | #include "wx/dcgraph.h" |
3928 | ||
3929 | ||
66493fc7 RD |
3930 | #include <wx/overlay.h> |
3931 | ||
3932 | ||
093d3ff1 | 3933 | |
554f62e9 | 3934 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3935 | self->AddColour(name, wxColour(red, green, blue)); |
3936 | } | |
3937 | ||
50efceee RD |
3938 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3939 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3940 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3941 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3942 | ||
3943 | ||
093d3ff1 RD |
3944 | #include <wx/effects.h> |
3945 | ||
be9b1dca RD |
3946 | |
3947 | #include "wx/renderer.h" | |
3948 | ||
3949 | ||
7449af73 | 3950 | SWIGINTERNINLINE PyObject* |
554f62e9 | 3951 | SWIG_From_bool (bool value) |
be9b1dca | 3952 | { |
554f62e9 | 3953 | return PyBool_FromLong(value ? 1 : 0); |
be9b1dca RD |
3954 | } |
3955 | ||
27e45892 RD |
3956 | |
3957 | #include "wx/wxPython/pseudodc.h" | |
3958 | ||
3959 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
3960 | wxRect rect; | |
3961 | self->GetIdBounds(id, rect); | |
3962 | return rect; | |
3963 | } | |
093d3ff1 RD |
3964 | #ifdef __cplusplus |
3965 | extern "C" { | |
3966 | #endif | |
554f62e9 RD |
3967 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3968 | PyObject *resultobj = 0; | |
3969 | wxGDIObject *result = 0 ; | |
3970 | ||
3971 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
3972 | { | |
3973 | if (!wxPyCheckForApp()) SWIG_fail; | |
3974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3975 | result = (wxGDIObject *)new wxGDIObject(); | |
3976 | wxPyEndAllowThreads(__tstate); | |
3977 | if (PyErr_Occurred()) SWIG_fail; | |
3978 | } | |
3979 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
3980 | return resultobj; | |
3981 | fail: | |
3982 | return NULL; | |
d55e5bfc RD |
3983 | } |
3984 | ||
3985 | ||
554f62e9 RD |
3986 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3987 | PyObject *resultobj = 0; | |
3988 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3989 | void *argp1 = 0 ; | |
3990 | int res1 = 0 ; | |
3991 | PyObject *swig_obj[1] ; | |
3992 | ||
3993 | if (!args) SWIG_fail; | |
3994 | swig_obj[0] = args; | |
3995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
3996 | if (!SWIG_IsOK(res1)) { | |
3997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3998 | } | |
3999 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4000 | { | |
4001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4002 | delete arg1; | |
d55e5bfc | 4003 | |
554f62e9 RD |
4004 | wxPyEndAllowThreads(__tstate); |
4005 | if (PyErr_Occurred()) SWIG_fail; | |
4006 | } | |
4007 | resultobj = SWIG_Py_Void(); | |
4008 | return resultobj; | |
4009 | fail: | |
4010 | return NULL; | |
d55e5bfc RD |
4011 | } |
4012 | ||
4013 | ||
554f62e9 RD |
4014 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4015 | PyObject *resultobj = 0; | |
4016 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4017 | bool result; | |
4018 | void *argp1 = 0 ; | |
4019 | int res1 = 0 ; | |
4020 | PyObject *swig_obj[1] ; | |
4021 | ||
4022 | if (!args) SWIG_fail; | |
4023 | swig_obj[0] = args; | |
4024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
4025 | if (!SWIG_IsOK(res1)) { | |
4026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4027 | } | |
4028 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4029 | { | |
4030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4031 | result = (bool)(arg1)->IsNull(); | |
4032 | wxPyEndAllowThreads(__tstate); | |
4033 | if (PyErr_Occurred()) SWIG_fail; | |
4034 | } | |
4035 | { | |
4036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4037 | } | |
4038 | return resultobj; | |
4039 | fail: | |
4040 | return NULL; | |
4041 | } | |
4042 | ||
4043 | ||
4044 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4045 | PyObject *obj; | |
4046 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4047 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
4048 | return SWIG_Py_Void(); | |
4049 | } | |
4050 | ||
4051 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4052 | return SWIG_Python_InitShadowInstance(args); | |
4053 | } | |
4054 | ||
4055 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4056 | PyObject *resultobj = 0; | |
4057 | byte arg1 = (byte) 0 ; | |
4058 | byte arg2 = (byte) 0 ; | |
4059 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 4060 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
554f62e9 RD |
4061 | wxColour *result = 0 ; |
4062 | unsigned char val1 ; | |
4063 | int ecode1 = 0 ; | |
4064 | unsigned char val2 ; | |
4065 | int ecode2 = 0 ; | |
4066 | unsigned char val3 ; | |
4067 | int ecode3 = 0 ; | |
fc46b7f3 RD |
4068 | unsigned char val4 ; |
4069 | int ecode4 = 0 ; | |
554f62e9 RD |
4070 | PyObject * obj0 = 0 ; |
4071 | PyObject * obj1 = 0 ; | |
4072 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 4073 | PyObject * obj3 = 0 ; |
554f62e9 | 4074 | char * kwnames[] = { |
fc46b7f3 | 4075 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
554f62e9 RD |
4076 | }; |
4077 | ||
fc46b7f3 | 4078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
554f62e9 RD |
4079 | if (obj0) { |
4080 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
4081 | if (!SWIG_IsOK(ecode1)) { | |
4082 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
4083 | } | |
4084 | arg1 = static_cast< byte >(val1); | |
4085 | } | |
4086 | if (obj1) { | |
4087 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4088 | if (!SWIG_IsOK(ecode2)) { | |
4089 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
4090 | } | |
4091 | arg2 = static_cast< byte >(val2); | |
4092 | } | |
4093 | if (obj2) { | |
4094 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4095 | if (!SWIG_IsOK(ecode3)) { | |
4096 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
4097 | } | |
4098 | arg3 = static_cast< byte >(val3); | |
4099 | } | |
fc46b7f3 RD |
4100 | if (obj3) { |
4101 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4102 | if (!SWIG_IsOK(ecode4)) { | |
4103 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
4104 | } | |
4105 | arg4 = static_cast< byte >(val4); | |
4106 | } | |
554f62e9 RD |
4107 | { |
4108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4109 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
554f62e9 RD |
4110 | wxPyEndAllowThreads(__tstate); |
4111 | if (PyErr_Occurred()) SWIG_fail; | |
4112 | } | |
4113 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
4114 | return resultobj; | |
4115 | fail: | |
4116 | return NULL; | |
d55e5bfc RD |
4117 | } |
4118 | ||
4119 | ||
554f62e9 RD |
4120 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4121 | PyObject *resultobj = 0; | |
4122 | wxString *arg1 = 0 ; | |
4123 | wxColour *result = 0 ; | |
4124 | bool temp1 = false ; | |
4125 | PyObject * obj0 = 0 ; | |
4126 | char * kwnames[] = { | |
4127 | (char *) "colorName", NULL | |
4128 | }; | |
4129 | ||
4130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
4131 | { | |
4132 | arg1 = wxString_in_helper(obj0); | |
4133 | if (arg1 == NULL) SWIG_fail; | |
4134 | temp1 = true; | |
4135 | } | |
4136 | { | |
4137 | if (!wxPyCheckForApp()) SWIG_fail; | |
4138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4139 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
4140 | wxPyEndAllowThreads(__tstate); | |
4141 | if (PyErr_Occurred()) SWIG_fail; | |
4142 | } | |
4143 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4144 | { | |
4145 | if (temp1) | |
4146 | delete arg1; | |
4147 | } | |
4148 | return resultobj; | |
4149 | fail: | |
4150 | { | |
4151 | if (temp1) | |
4152 | delete arg1; | |
4153 | } | |
4154 | return NULL; | |
b519803b RD |
4155 | } |
4156 | ||
4157 | ||
554f62e9 RD |
4158 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4159 | PyObject *resultobj = 0; | |
4160 | unsigned long arg1 ; | |
4161 | wxColour *result = 0 ; | |
4162 | unsigned long val1 ; | |
4163 | int ecode1 = 0 ; | |
4164 | PyObject * obj0 = 0 ; | |
4165 | char * kwnames[] = { | |
4166 | (char *) "colRGB", NULL | |
4167 | }; | |
4168 | ||
4169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
4170 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
4171 | if (!SWIG_IsOK(ecode1)) { | |
4172 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
4173 | } | |
4174 | arg1 = static_cast< unsigned long >(val1); | |
4175 | { | |
4176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4177 | result = (wxColour *)new wxColour(arg1); | |
4178 | wxPyEndAllowThreads(__tstate); | |
4179 | if (PyErr_Occurred()) SWIG_fail; | |
4180 | } | |
4181 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4182 | return resultobj; | |
4183 | fail: | |
4184 | return NULL; | |
d55e5bfc RD |
4185 | } |
4186 | ||
4187 | ||
554f62e9 RD |
4188 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4189 | PyObject *resultobj = 0; | |
4190 | wxColour *arg1 = (wxColour *) 0 ; | |
4191 | void *argp1 = 0 ; | |
4192 | int res1 = 0 ; | |
4193 | PyObject *swig_obj[1] ; | |
4194 | ||
4195 | if (!args) SWIG_fail; | |
4196 | swig_obj[0] = args; | |
4197 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
4198 | if (!SWIG_IsOK(res1)) { | |
4199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4200 | } | |
4201 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4202 | { | |
4203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4204 | delete arg1; | |
d55e5bfc | 4205 | |
554f62e9 RD |
4206 | wxPyEndAllowThreads(__tstate); |
4207 | if (PyErr_Occurred()) SWIG_fail; | |
4208 | } | |
4209 | resultobj = SWIG_Py_Void(); | |
4210 | return resultobj; | |
4211 | fail: | |
4212 | return NULL; | |
d55e5bfc RD |
4213 | } |
4214 | ||
4215 | ||
554f62e9 RD |
4216 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4217 | PyObject *resultobj = 0; | |
4218 | wxColour *arg1 = (wxColour *) 0 ; | |
4219 | byte result; | |
4220 | void *argp1 = 0 ; | |
4221 | int res1 = 0 ; | |
4222 | PyObject *swig_obj[1] ; | |
4223 | ||
4224 | if (!args) SWIG_fail; | |
4225 | swig_obj[0] = args; | |
4226 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4227 | if (!SWIG_IsOK(res1)) { | |
4228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4229 | } | |
4230 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4231 | { | |
4232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4233 | result = (byte)(arg1)->Red(); | |
4234 | wxPyEndAllowThreads(__tstate); | |
4235 | if (PyErr_Occurred()) SWIG_fail; | |
4236 | } | |
4237 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4238 | return resultobj; | |
4239 | fail: | |
4240 | return NULL; | |
d55e5bfc RD |
4241 | } |
4242 | ||
4243 | ||
554f62e9 RD |
4244 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4245 | PyObject *resultobj = 0; | |
4246 | wxColour *arg1 = (wxColour *) 0 ; | |
4247 | byte result; | |
4248 | void *argp1 = 0 ; | |
4249 | int res1 = 0 ; | |
4250 | PyObject *swig_obj[1] ; | |
4251 | ||
4252 | if (!args) SWIG_fail; | |
4253 | swig_obj[0] = args; | |
4254 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4255 | if (!SWIG_IsOK(res1)) { | |
4256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4257 | } | |
4258 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4259 | { | |
4260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4261 | result = (byte)(arg1)->Green(); | |
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4265 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4266 | return resultobj; | |
4267 | fail: | |
4268 | return NULL; | |
d55e5bfc RD |
4269 | } |
4270 | ||
4271 | ||
554f62e9 RD |
4272 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4273 | PyObject *resultobj = 0; | |
4274 | wxColour *arg1 = (wxColour *) 0 ; | |
4275 | byte result; | |
4276 | void *argp1 = 0 ; | |
4277 | int res1 = 0 ; | |
4278 | PyObject *swig_obj[1] ; | |
4279 | ||
4280 | if (!args) SWIG_fail; | |
4281 | swig_obj[0] = args; | |
4282 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4283 | if (!SWIG_IsOK(res1)) { | |
4284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4285 | } | |
4286 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4287 | { | |
4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4289 | result = (byte)(arg1)->Blue(); | |
4290 | wxPyEndAllowThreads(__tstate); | |
4291 | if (PyErr_Occurred()) SWIG_fail; | |
4292 | } | |
4293 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4294 | return resultobj; | |
4295 | fail: | |
4296 | return NULL; | |
d55e5bfc RD |
4297 | } |
4298 | ||
4299 | ||
fc46b7f3 RD |
4300 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4301 | PyObject *resultobj = 0; | |
4302 | wxColour *arg1 = (wxColour *) 0 ; | |
4303 | byte result; | |
4304 | void *argp1 = 0 ; | |
4305 | int res1 = 0 ; | |
4306 | PyObject *swig_obj[1] ; | |
4307 | ||
4308 | if (!args) SWIG_fail; | |
4309 | swig_obj[0] = args; | |
4310 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4311 | if (!SWIG_IsOK(res1)) { | |
4312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4313 | } | |
4314 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4315 | { | |
4316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4317 | result = (byte)(arg1)->Alpha(); | |
4318 | wxPyEndAllowThreads(__tstate); | |
4319 | if (PyErr_Occurred()) SWIG_fail; | |
4320 | } | |
4321 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4322 | return resultobj; | |
4323 | fail: | |
4324 | return NULL; | |
4325 | } | |
4326 | ||
4327 | ||
b39fe951 | 4328 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
4329 | PyObject *resultobj = 0; |
4330 | wxColour *arg1 = (wxColour *) 0 ; | |
4331 | bool result; | |
4332 | void *argp1 = 0 ; | |
4333 | int res1 = 0 ; | |
4334 | PyObject *swig_obj[1] ; | |
4335 | ||
4336 | if (!args) SWIG_fail; | |
4337 | swig_obj[0] = args; | |
4338 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4339 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4341 | } |
4342 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4343 | { | |
4344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4345 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
4346 | wxPyEndAllowThreads(__tstate); |
4347 | if (PyErr_Occurred()) SWIG_fail; | |
4348 | } | |
4349 | { | |
4350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4351 | } | |
4352 | return resultobj; | |
4353 | fail: | |
4354 | return NULL; | |
4355 | } | |
4356 | ||
4357 | ||
4358 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4359 | PyObject *resultobj = 0; | |
4360 | wxColour *arg1 = (wxColour *) 0 ; | |
4361 | byte arg2 ; | |
4362 | byte arg3 ; | |
4363 | byte arg4 ; | |
fc46b7f3 | 4364 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
554f62e9 RD |
4365 | void *argp1 = 0 ; |
4366 | int res1 = 0 ; | |
4367 | unsigned char val2 ; | |
4368 | int ecode2 = 0 ; | |
4369 | unsigned char val3 ; | |
4370 | int ecode3 = 0 ; | |
4371 | unsigned char val4 ; | |
4372 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4373 | unsigned char val5 ; |
4374 | int ecode5 = 0 ; | |
554f62e9 RD |
4375 | PyObject * obj0 = 0 ; |
4376 | PyObject * obj1 = 0 ; | |
4377 | PyObject * obj2 = 0 ; | |
4378 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4379 | PyObject * obj4 = 0 ; |
554f62e9 | 4380 | char * kwnames[] = { |
fc46b7f3 | 4381 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
554f62e9 RD |
4382 | }; |
4383 | ||
fc46b7f3 | 4384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
554f62e9 RD |
4385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4386 | if (!SWIG_IsOK(res1)) { | |
4387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4388 | } | |
4389 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4390 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4391 | if (!SWIG_IsOK(ecode2)) { | |
4392 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4393 | } | |
4394 | arg2 = static_cast< byte >(val2); | |
4395 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4396 | if (!SWIG_IsOK(ecode3)) { | |
4397 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4398 | } | |
4399 | arg3 = static_cast< byte >(val3); | |
4400 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4401 | if (!SWIG_IsOK(ecode4)) { | |
4402 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4403 | } | |
4404 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4405 | if (obj4) { |
4406 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4407 | if (!SWIG_IsOK(ecode5)) { | |
4408 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4409 | } | |
4410 | arg5 = static_cast< byte >(val5); | |
4411 | } | |
554f62e9 RD |
4412 | { |
4413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4414 | (arg1)->Set(arg2,arg3,arg4,arg5); |
554f62e9 RD |
4415 | wxPyEndAllowThreads(__tstate); |
4416 | if (PyErr_Occurred()) SWIG_fail; | |
4417 | } | |
4418 | resultobj = SWIG_Py_Void(); | |
4419 | return resultobj; | |
4420 | fail: | |
4421 | return NULL; | |
4422 | } | |
4423 | ||
4424 | ||
4425 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4426 | PyObject *resultobj = 0; | |
4427 | wxColour *arg1 = (wxColour *) 0 ; | |
4428 | unsigned long arg2 ; | |
4429 | void *argp1 = 0 ; | |
4430 | int res1 = 0 ; | |
4431 | unsigned long val2 ; | |
4432 | int ecode2 = 0 ; | |
4433 | PyObject * obj0 = 0 ; | |
4434 | PyObject * obj1 = 0 ; | |
4435 | char * kwnames[] = { | |
4436 | (char *) "self",(char *) "colRGB", NULL | |
4437 | }; | |
4438 | ||
4439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4441 | if (!SWIG_IsOK(res1)) { | |
4442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4443 | } | |
4444 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4445 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4446 | if (!SWIG_IsOK(ecode2)) { | |
4447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4448 | } | |
4449 | arg2 = static_cast< unsigned long >(val2); | |
4450 | { | |
4451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4452 | (arg1)->Set(arg2); | |
4453 | wxPyEndAllowThreads(__tstate); | |
4454 | if (PyErr_Occurred()) SWIG_fail; | |
4455 | } | |
4456 | resultobj = SWIG_Py_Void(); | |
4457 | return resultobj; | |
4458 | fail: | |
4459 | return NULL; | |
4460 | } | |
4461 | ||
4462 | ||
4463 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4464 | PyObject *resultobj = 0; | |
4465 | wxColour *arg1 = (wxColour *) 0 ; | |
4466 | wxString *arg2 = 0 ; | |
4467 | void *argp1 = 0 ; | |
4468 | int res1 = 0 ; | |
4469 | bool temp2 = false ; | |
4470 | PyObject * obj0 = 0 ; | |
4471 | PyObject * obj1 = 0 ; | |
4472 | char * kwnames[] = { | |
4473 | (char *) "self",(char *) "colourName", NULL | |
4474 | }; | |
4475 | ||
4476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4478 | if (!SWIG_IsOK(res1)) { | |
4479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4480 | } | |
4481 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4482 | { | |
4483 | arg2 = wxString_in_helper(obj1); | |
4484 | if (arg2 == NULL) SWIG_fail; | |
4485 | temp2 = true; | |
4486 | } | |
4487 | { | |
4488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4489 | (arg1)->Set((wxString const &)*arg2); |
554f62e9 RD |
4490 | wxPyEndAllowThreads(__tstate); |
4491 | if (PyErr_Occurred()) SWIG_fail; | |
4492 | } | |
4493 | resultobj = SWIG_Py_Void(); | |
4494 | { | |
4495 | if (temp2) | |
4496 | delete arg2; | |
4497 | } | |
4498 | return resultobj; | |
4499 | fail: | |
4500 | { | |
4501 | if (temp2) | |
4502 | delete arg2; | |
4503 | } | |
4504 | return NULL; | |
d55e5bfc RD |
4505 | } |
4506 | ||
4507 | ||
f460c29d RD |
4508 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4509 | PyObject *resultobj = 0; | |
4510 | wxColour *arg1 = (wxColour *) 0 ; | |
4511 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4512 | wxString result; | |
4513 | void *argp1 = 0 ; | |
4514 | int res1 = 0 ; | |
4515 | long val2 ; | |
4516 | int ecode2 = 0 ; | |
4517 | PyObject * obj0 = 0 ; | |
4518 | PyObject * obj1 = 0 ; | |
4519 | char * kwnames[] = { | |
4520 | (char *) "self",(char *) "flags", NULL | |
4521 | }; | |
4522 | ||
4523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4525 | if (!SWIG_IsOK(res1)) { | |
4526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4527 | } | |
4528 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4529 | if (obj1) { | |
4530 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4531 | if (!SWIG_IsOK(ecode2)) { | |
4532 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4533 | } | |
4534 | arg2 = static_cast< long >(val2); | |
4535 | } | |
4536 | { | |
4537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4538 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4539 | wxPyEndAllowThreads(__tstate); | |
4540 | if (PyErr_Occurred()) SWIG_fail; | |
4541 | } | |
4542 | { | |
4543 | #if wxUSE_UNICODE | |
4544 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4545 | #else | |
4546 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4547 | #endif | |
4548 | } | |
4549 | return resultobj; | |
4550 | fail: | |
4551 | return NULL; | |
4552 | } | |
4553 | ||
4554 | ||
554f62e9 RD |
4555 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4556 | PyObject *resultobj = 0; | |
4557 | wxColour *arg1 = (wxColour *) 0 ; | |
4558 | long result; | |
4559 | void *argp1 = 0 ; | |
4560 | int res1 = 0 ; | |
4561 | PyObject *swig_obj[1] ; | |
4562 | ||
4563 | if (!args) SWIG_fail; | |
4564 | swig_obj[0] = args; | |
4565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4566 | if (!SWIG_IsOK(res1)) { | |
4567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4568 | } | |
4569 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4570 | { | |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4572 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4573 | wxPyEndAllowThreads(__tstate); | |
4574 | if (PyErr_Occurred()) SWIG_fail; | |
4575 | } | |
4576 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4577 | return resultobj; | |
4578 | fail: | |
4579 | return NULL; | |
4580 | } | |
4581 | ||
4582 | ||
4583 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4584 | PyObject *resultobj = 0; | |
4585 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4586 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
4587 | bool result; |
4588 | void *argp1 = 0 ; | |
4589 | int res1 = 0 ; | |
554f62e9 RD |
4590 | PyObject * obj0 = 0 ; |
4591 | PyObject * obj1 = 0 ; | |
4592 | char * kwnames[] = { | |
e9d6f3a4 | 4593 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
4594 | }; |
4595 | ||
4596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4598 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4600 | } |
4601 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4602 | arg2 = obj1; |
554f62e9 | 4603 | { |
e9d6f3a4 | 4604 | result = (bool)wxColour___eq__(arg1,arg2); |
554f62e9 RD |
4605 | if (PyErr_Occurred()) SWIG_fail; |
4606 | } | |
4607 | { | |
4608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4609 | } | |
4610 | return resultobj; | |
4611 | fail: | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
4616 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4617 | PyObject *resultobj = 0; | |
4618 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4619 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
4620 | bool result; |
4621 | void *argp1 = 0 ; | |
4622 | int res1 = 0 ; | |
554f62e9 RD |
4623 | PyObject * obj0 = 0 ; |
4624 | PyObject * obj1 = 0 ; | |
4625 | char * kwnames[] = { | |
e9d6f3a4 | 4626 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
4627 | }; |
4628 | ||
4629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4631 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4633 | } |
4634 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4635 | arg2 = obj1; |
554f62e9 | 4636 | { |
e9d6f3a4 | 4637 | result = (bool)wxColour___ne__(arg1,arg2); |
554f62e9 RD |
4638 | if (PyErr_Occurred()) SWIG_fail; |
4639 | } | |
4640 | { | |
4641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4642 | } | |
4643 | return resultobj; | |
4644 | fail: | |
4645 | return NULL; | |
d55e5bfc RD |
4646 | } |
4647 | ||
4648 | ||
fc46b7f3 | 4649 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
4650 | PyObject *resultobj = 0; |
4651 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4652 | bool arg2 = (bool) false ; |
554f62e9 RD |
4653 | PyObject *result = 0 ; |
4654 | void *argp1 = 0 ; | |
4655 | int res1 = 0 ; | |
fc46b7f3 RD |
4656 | bool val2 ; |
4657 | int ecode2 = 0 ; | |
4658 | PyObject * obj0 = 0 ; | |
4659 | PyObject * obj1 = 0 ; | |
4660 | char * kwnames[] = { | |
4661 | (char *) "self",(char *) "includeAlpha", NULL | |
4662 | }; | |
554f62e9 | 4663 | |
fc46b7f3 RD |
4664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
554f62e9 RD |
4666 | if (!SWIG_IsOK(res1)) { |
4667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4668 | } | |
4669 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4670 | if (obj1) { |
4671 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4672 | if (!SWIG_IsOK(ecode2)) { | |
4673 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4674 | } | |
4675 | arg2 = static_cast< bool >(val2); | |
4676 | } | |
554f62e9 | 4677 | { |
fc46b7f3 | 4678 | result = (PyObject *)wxColour_Get(arg1,arg2); |
554f62e9 RD |
4679 | if (PyErr_Occurred()) SWIG_fail; |
4680 | } | |
4681 | resultobj = result; | |
4682 | return resultobj; | |
4683 | fail: | |
4684 | return NULL; | |
d55e5bfc RD |
4685 | } |
4686 | ||
4687 | ||
554f62e9 RD |
4688 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4689 | PyObject *resultobj = 0; | |
4690 | wxColour *arg1 = (wxColour *) 0 ; | |
4691 | unsigned long result; | |
4692 | void *argp1 = 0 ; | |
4693 | int res1 = 0 ; | |
4694 | PyObject *swig_obj[1] ; | |
4695 | ||
4696 | if (!args) SWIG_fail; | |
4697 | swig_obj[0] = args; | |
4698 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4699 | if (!SWIG_IsOK(res1)) { | |
4700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4701 | } | |
4702 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4703 | { | |
554f62e9 | 4704 | result = (unsigned long)wxColour_GetRGB(arg1); |
554f62e9 RD |
4705 | if (PyErr_Occurred()) SWIG_fail; |
4706 | } | |
4707 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4708 | return resultobj; | |
4709 | fail: | |
4710 | return NULL; | |
4711 | } | |
4712 | ||
4713 | ||
4714 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4715 | PyObject *obj; | |
4716 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4717 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4718 | return SWIG_Py_Void(); | |
4719 | } | |
4720 | ||
4721 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4722 | return SWIG_Python_InitShadowInstance(args); | |
4723 | } | |
4724 | ||
4725 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4726 | PyObject *resultobj = 0; | |
4727 | int arg1 ; | |
4728 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4729 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4730 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4731 | wxPalette *result = 0 ; | |
4732 | int val1 ; | |
4733 | int ecode1 = 0 ; | |
4734 | void *argp2 = 0 ; | |
4735 | int res2 = 0 ; | |
4736 | void *argp3 = 0 ; | |
4737 | int res3 = 0 ; | |
4738 | void *argp4 = 0 ; | |
4739 | int res4 = 0 ; | |
4740 | PyObject * obj0 = 0 ; | |
4741 | PyObject * obj1 = 0 ; | |
4742 | PyObject * obj2 = 0 ; | |
4743 | PyObject * obj3 = 0 ; | |
4744 | char * kwnames[] = { | |
4745 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4746 | }; | |
4747 | ||
4748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4749 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4750 | if (!SWIG_IsOK(ecode1)) { | |
4751 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4752 | } | |
4753 | arg1 = static_cast< int >(val1); | |
4754 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4755 | if (!SWIG_IsOK(res2)) { | |
4756 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4757 | } | |
4758 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4759 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4760 | if (!SWIG_IsOK(res3)) { | |
4761 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4762 | } | |
4763 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4764 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4765 | if (!SWIG_IsOK(res4)) { | |
4766 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4767 | } | |
4768 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4769 | { | |
4770 | if (!wxPyCheckForApp()) SWIG_fail; | |
4771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4772 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4773 | wxPyEndAllowThreads(__tstate); | |
4774 | if (PyErr_Occurred()) SWIG_fail; | |
4775 | } | |
4776 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4777 | return resultobj; | |
4778 | fail: | |
4779 | return NULL; | |
093d3ff1 RD |
4780 | } |
4781 | ||
4782 | ||
554f62e9 RD |
4783 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4784 | PyObject *resultobj = 0; | |
4785 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4786 | void *argp1 = 0 ; | |
4787 | int res1 = 0 ; | |
4788 | PyObject *swig_obj[1] ; | |
4789 | ||
4790 | if (!args) SWIG_fail; | |
4791 | swig_obj[0] = args; | |
4792 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4793 | if (!SWIG_IsOK(res1)) { | |
4794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4795 | } | |
4796 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | delete arg1; | |
093d3ff1 | 4800 | |
554f62e9 RD |
4801 | wxPyEndAllowThreads(__tstate); |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | resultobj = SWIG_Py_Void(); | |
4805 | return resultobj; | |
4806 | fail: | |
4807 | return NULL; | |
4808 | } | |
4809 | ||
4810 | ||
4811 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4812 | PyObject *resultobj = 0; | |
4813 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4814 | byte arg2 ; | |
4815 | byte arg3 ; | |
4816 | byte arg4 ; | |
4817 | int result; | |
4818 | void *argp1 = 0 ; | |
4819 | int res1 = 0 ; | |
4820 | unsigned char val2 ; | |
4821 | int ecode2 = 0 ; | |
4822 | unsigned char val3 ; | |
4823 | int ecode3 = 0 ; | |
4824 | unsigned char val4 ; | |
4825 | int ecode4 = 0 ; | |
4826 | PyObject * obj0 = 0 ; | |
4827 | PyObject * obj1 = 0 ; | |
4828 | PyObject * obj2 = 0 ; | |
4829 | PyObject * obj3 = 0 ; | |
4830 | char * kwnames[] = { | |
4831 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4832 | }; | |
4833 | ||
4834 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4836 | if (!SWIG_IsOK(res1)) { | |
4837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4838 | } | |
4839 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4840 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4841 | if (!SWIG_IsOK(ecode2)) { | |
4842 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4843 | } | |
4844 | arg2 = static_cast< byte >(val2); | |
4845 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4846 | if (!SWIG_IsOK(ecode3)) { | |
4847 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4848 | } | |
4849 | arg3 = static_cast< byte >(val3); | |
4850 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4851 | if (!SWIG_IsOK(ecode4)) { | |
4852 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4853 | } | |
4854 | arg4 = static_cast< byte >(val4); | |
4855 | { | |
4856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4857 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4858 | wxPyEndAllowThreads(__tstate); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
4861 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4862 | return resultobj; | |
4863 | fail: | |
4864 | return NULL; | |
4865 | } | |
4866 | ||
4867 | ||
4868 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4869 | PyObject *resultobj = 0; | |
4870 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4871 | int arg2 ; | |
4872 | byte *arg3 = (byte *) 0 ; | |
4873 | byte *arg4 = (byte *) 0 ; | |
4874 | byte *arg5 = (byte *) 0 ; | |
4875 | bool result; | |
4876 | void *argp1 = 0 ; | |
4877 | int res1 = 0 ; | |
4878 | int val2 ; | |
4879 | int ecode2 = 0 ; | |
4880 | byte temp3 ; | |
4881 | int res3 = SWIG_TMPOBJ ; | |
4882 | byte temp4 ; | |
4883 | int res4 = SWIG_TMPOBJ ; | |
4884 | byte temp5 ; | |
4885 | int res5 = SWIG_TMPOBJ ; | |
4886 | PyObject * obj0 = 0 ; | |
4887 | PyObject * obj1 = 0 ; | |
4888 | char * kwnames[] = { | |
4889 | (char *) "self",(char *) "pixel", NULL | |
4890 | }; | |
4891 | ||
4892 | arg3 = &temp3; | |
4893 | arg4 = &temp4; | |
4894 | arg5 = &temp5; | |
4895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4897 | if (!SWIG_IsOK(res1)) { | |
4898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4899 | } | |
4900 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4901 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4902 | if (!SWIG_IsOK(ecode2)) { | |
4903 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4904 | } | |
4905 | arg2 = static_cast< int >(val2); | |
4906 | { | |
4907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4908 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4909 | wxPyEndAllowThreads(__tstate); | |
4910 | if (PyErr_Occurred()) SWIG_fail; | |
4911 | } | |
4912 | { | |
4913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4914 | } | |
4915 | if (SWIG_IsTmpObj(res3)) { | |
4916 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4917 | } else { | |
4918 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4919 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4920 | } | |
4921 | if (SWIG_IsTmpObj(res4)) { | |
4922 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4923 | } else { | |
4924 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4925 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4926 | } | |
4927 | if (SWIG_IsTmpObj(res5)) { | |
4928 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4929 | } else { | |
4930 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4931 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4932 | } | |
4933 | return resultobj; | |
4934 | fail: | |
4935 | return NULL; | |
d55e5bfc RD |
4936 | } |
4937 | ||
4938 | ||
554f62e9 RD |
4939 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4940 | PyObject *resultobj = 0; | |
4941 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4942 | int result; | |
4943 | void *argp1 = 0 ; | |
4944 | int res1 = 0 ; | |
4945 | PyObject *swig_obj[1] ; | |
4946 | ||
4947 | if (!args) SWIG_fail; | |
4948 | swig_obj[0] = args; | |
4949 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4950 | if (!SWIG_IsOK(res1)) { | |
4951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4952 | } | |
4953 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4954 | { | |
4955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4956 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4957 | wxPyEndAllowThreads(__tstate); | |
4958 | if (PyErr_Occurred()) SWIG_fail; | |
4959 | } | |
4960 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4961 | return resultobj; | |
4962 | fail: | |
4963 | return NULL; | |
d55e5bfc RD |
4964 | } |
4965 | ||
4966 | ||
b39fe951 | 4967 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
4968 | PyObject *resultobj = 0; |
4969 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4970 | bool result; | |
4971 | void *argp1 = 0 ; | |
4972 | int res1 = 0 ; | |
4973 | PyObject *swig_obj[1] ; | |
4974 | ||
4975 | if (!args) SWIG_fail; | |
4976 | swig_obj[0] = args; | |
4977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4978 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
554f62e9 RD |
4980 | } |
4981 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4984 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
4985 | wxPyEndAllowThreads(__tstate); |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | { | |
4989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4990 | } | |
4991 | return resultobj; | |
4992 | fail: | |
4993 | return NULL; | |
4994 | } | |
4995 | ||
4996 | ||
4997 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4998 | PyObject *obj; | |
4999 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5000 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
5001 | return SWIG_Py_Void(); | |
5002 | } | |
5003 | ||
5004 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5005 | return SWIG_Python_InitShadowInstance(args); | |
5006 | } | |
5007 | ||
5008 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5009 | PyObject *resultobj = 0; | |
5010 | wxColour *arg1 = 0 ; | |
5011 | int arg2 = (int) 1 ; | |
5012 | int arg3 = (int) wxSOLID ; | |
5013 | wxPen *result = 0 ; | |
5014 | wxColour temp1 ; | |
5015 | int val2 ; | |
5016 | int ecode2 = 0 ; | |
5017 | int val3 ; | |
5018 | int ecode3 = 0 ; | |
5019 | PyObject * obj0 = 0 ; | |
5020 | PyObject * obj1 = 0 ; | |
5021 | PyObject * obj2 = 0 ; | |
5022 | char * kwnames[] = { | |
5023 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
5024 | }; | |
5025 | ||
5026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5027 | { | |
5028 | arg1 = &temp1; | |
5029 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5030 | } | |
5031 | if (obj1) { | |
5032 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5033 | if (!SWIG_IsOK(ecode2)) { | |
5034 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
5035 | } | |
5036 | arg2 = static_cast< int >(val2); | |
5037 | } | |
5038 | if (obj2) { | |
5039 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5040 | if (!SWIG_IsOK(ecode3)) { | |
5041 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
5042 | } | |
5043 | arg3 = static_cast< int >(val3); | |
5044 | } | |
5045 | { | |
5046 | if (!wxPyCheckForApp()) SWIG_fail; | |
5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5048 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
5049 | wxPyEndAllowThreads(__tstate); | |
5050 | if (PyErr_Occurred()) SWIG_fail; | |
5051 | } | |
5052 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
5053 | return resultobj; | |
5054 | fail: | |
5055 | return NULL; | |
d55e5bfc RD |
5056 | } |
5057 | ||
5058 | ||
554f62e9 RD |
5059 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5060 | PyObject *resultobj = 0; | |
5061 | wxPen *arg1 = (wxPen *) 0 ; | |
5062 | void *argp1 = 0 ; | |
5063 | int res1 = 0 ; | |
5064 | PyObject *swig_obj[1] ; | |
5065 | ||
5066 | if (!args) SWIG_fail; | |
5067 | swig_obj[0] = args; | |
5068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
5069 | if (!SWIG_IsOK(res1)) { | |
5070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5071 | } | |
5072 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5073 | { | |
5074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5075 | delete arg1; | |
d55e5bfc | 5076 | |
554f62e9 RD |
5077 | wxPyEndAllowThreads(__tstate); |
5078 | if (PyErr_Occurred()) SWIG_fail; | |
5079 | } | |
5080 | resultobj = SWIG_Py_Void(); | |
5081 | return resultobj; | |
5082 | fail: | |
5083 | return NULL; | |
d55e5bfc RD |
5084 | } |
5085 | ||
5086 | ||
554f62e9 RD |
5087 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5088 | PyObject *resultobj = 0; | |
5089 | wxPen *arg1 = (wxPen *) 0 ; | |
5090 | int result; | |
5091 | void *argp1 = 0 ; | |
5092 | int res1 = 0 ; | |
5093 | PyObject *swig_obj[1] ; | |
5094 | ||
5095 | if (!args) SWIG_fail; | |
5096 | swig_obj[0] = args; | |
5097 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5098 | if (!SWIG_IsOK(res1)) { | |
5099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5100 | } | |
5101 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5102 | { | |
5103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5104 | result = (int)(arg1)->GetCap(); | |
5105 | wxPyEndAllowThreads(__tstate); | |
5106 | if (PyErr_Occurred()) SWIG_fail; | |
5107 | } | |
5108 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5109 | return resultobj; | |
5110 | fail: | |
5111 | return NULL; | |
d55e5bfc RD |
5112 | } |
5113 | ||
5114 | ||
554f62e9 RD |
5115 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5116 | PyObject *resultobj = 0; | |
5117 | wxPen *arg1 = (wxPen *) 0 ; | |
5118 | wxColour result; | |
5119 | void *argp1 = 0 ; | |
5120 | int res1 = 0 ; | |
5121 | PyObject *swig_obj[1] ; | |
5122 | ||
5123 | if (!args) SWIG_fail; | |
5124 | swig_obj[0] = args; | |
5125 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5126 | if (!SWIG_IsOK(res1)) { | |
5127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5128 | } | |
5129 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5130 | { | |
5131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5132 | result = (arg1)->GetColour(); | |
5133 | wxPyEndAllowThreads(__tstate); | |
5134 | if (PyErr_Occurred()) SWIG_fail; | |
5135 | } | |
5136 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5137 | return resultobj; | |
5138 | fail: | |
5139 | return NULL; | |
d55e5bfc RD |
5140 | } |
5141 | ||
5142 | ||
554f62e9 RD |
5143 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5144 | PyObject *resultobj = 0; | |
5145 | wxPen *arg1 = (wxPen *) 0 ; | |
5146 | int result; | |
5147 | void *argp1 = 0 ; | |
5148 | int res1 = 0 ; | |
5149 | PyObject *swig_obj[1] ; | |
5150 | ||
5151 | if (!args) SWIG_fail; | |
5152 | swig_obj[0] = args; | |
5153 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5154 | if (!SWIG_IsOK(res1)) { | |
5155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5156 | } | |
5157 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5158 | { | |
5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5160 | result = (int)(arg1)->GetJoin(); | |
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | } | |
5164 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5165 | return resultobj; | |
5166 | fail: | |
5167 | return NULL; | |
d55e5bfc RD |
5168 | } |
5169 | ||
5170 | ||
554f62e9 RD |
5171 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5172 | PyObject *resultobj = 0; | |
5173 | wxPen *arg1 = (wxPen *) 0 ; | |
5174 | int result; | |
5175 | void *argp1 = 0 ; | |
5176 | int res1 = 0 ; | |
5177 | PyObject *swig_obj[1] ; | |
5178 | ||
5179 | if (!args) SWIG_fail; | |
5180 | swig_obj[0] = args; | |
5181 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5182 | if (!SWIG_IsOK(res1)) { | |
5183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5184 | } | |
5185 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5186 | { | |
5187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5188 | result = (int)(arg1)->GetStyle(); | |
5189 | wxPyEndAllowThreads(__tstate); | |
5190 | if (PyErr_Occurred()) SWIG_fail; | |
5191 | } | |
5192 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5193 | return resultobj; | |
5194 | fail: | |
5195 | return NULL; | |
d55e5bfc RD |
5196 | } |
5197 | ||
5198 | ||
554f62e9 RD |
5199 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5200 | PyObject *resultobj = 0; | |
5201 | wxPen *arg1 = (wxPen *) 0 ; | |
5202 | int result; | |
5203 | void *argp1 = 0 ; | |
5204 | int res1 = 0 ; | |
5205 | PyObject *swig_obj[1] ; | |
5206 | ||
5207 | if (!args) SWIG_fail; | |
5208 | swig_obj[0] = args; | |
5209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5210 | if (!SWIG_IsOK(res1)) { | |
5211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5212 | } | |
5213 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5214 | { | |
5215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5216 | result = (int)(arg1)->GetWidth(); | |
5217 | wxPyEndAllowThreads(__tstate); | |
5218 | if (PyErr_Occurred()) SWIG_fail; | |
5219 | } | |
5220 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5221 | return resultobj; | |
5222 | fail: | |
5223 | return NULL; | |
d55e5bfc RD |
5224 | } |
5225 | ||
5226 | ||
b39fe951 | 5227 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
5228 | PyObject *resultobj = 0; |
5229 | wxPen *arg1 = (wxPen *) 0 ; | |
5230 | bool result; | |
5231 | void *argp1 = 0 ; | |
5232 | int res1 = 0 ; | |
5233 | PyObject *swig_obj[1] ; | |
5234 | ||
5235 | if (!args) SWIG_fail; | |
5236 | swig_obj[0] = args; | |
5237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5238 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
554f62e9 RD |
5240 | } |
5241 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5242 | { | |
5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5244 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
5245 | wxPyEndAllowThreads(__tstate); |
5246 | if (PyErr_Occurred()) SWIG_fail; | |
5247 | } | |
5248 | { | |
5249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5250 | } | |
5251 | return resultobj; | |
5252 | fail: | |
5253 | return NULL; | |
5254 | } | |
5255 | ||
5256 | ||
5257 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5258 | PyObject *resultobj = 0; | |
5259 | wxPen *arg1 = (wxPen *) 0 ; | |
5260 | int arg2 ; | |
5261 | void *argp1 = 0 ; | |
5262 | int res1 = 0 ; | |
5263 | int val2 ; | |
5264 | int ecode2 = 0 ; | |
5265 | PyObject * obj0 = 0 ; | |
5266 | PyObject * obj1 = 0 ; | |
5267 | char * kwnames[] = { | |
5268 | (char *) "self",(char *) "cap_style", NULL | |
5269 | }; | |
5270 | ||
5271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5273 | if (!SWIG_IsOK(res1)) { | |
5274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5275 | } | |
5276 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5277 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5278 | if (!SWIG_IsOK(ecode2)) { | |
5279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5280 | } | |
5281 | arg2 = static_cast< int >(val2); | |
5282 | { | |
5283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5284 | (arg1)->SetCap(arg2); | |
5285 | wxPyEndAllowThreads(__tstate); | |
5286 | if (PyErr_Occurred()) SWIG_fail; | |
5287 | } | |
5288 | resultobj = SWIG_Py_Void(); | |
5289 | return resultobj; | |
5290 | fail: | |
5291 | return NULL; | |
5292 | } | |
5293 | ||
5294 | ||
5295 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5296 | PyObject *resultobj = 0; | |
5297 | wxPen *arg1 = (wxPen *) 0 ; | |
5298 | wxColour *arg2 = 0 ; | |
5299 | void *argp1 = 0 ; | |
5300 | int res1 = 0 ; | |
5301 | wxColour temp2 ; | |
5302 | PyObject * obj0 = 0 ; | |
5303 | PyObject * obj1 = 0 ; | |
5304 | char * kwnames[] = { | |
5305 | (char *) "self",(char *) "colour", NULL | |
5306 | }; | |
5307 | ||
5308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5310 | if (!SWIG_IsOK(res1)) { | |
5311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5312 | } | |
5313 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5314 | { | |
5315 | arg2 = &temp2; | |
5316 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5317 | } | |
5318 | { | |
5319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5320 | (arg1)->SetColour(*arg2); | |
5321 | wxPyEndAllowThreads(__tstate); | |
5322 | if (PyErr_Occurred()) SWIG_fail; | |
5323 | } | |
5324 | resultobj = SWIG_Py_Void(); | |
5325 | return resultobj; | |
5326 | fail: | |
5327 | return NULL; | |
5328 | } | |
5329 | ||
5330 | ||
5331 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5332 | PyObject *resultobj = 0; | |
5333 | wxPen *arg1 = (wxPen *) 0 ; | |
5334 | int arg2 ; | |
5335 | void *argp1 = 0 ; | |
5336 | int res1 = 0 ; | |
5337 | int val2 ; | |
5338 | int ecode2 = 0 ; | |
5339 | PyObject * obj0 = 0 ; | |
5340 | PyObject * obj1 = 0 ; | |
5341 | char * kwnames[] = { | |
5342 | (char *) "self",(char *) "join_style", NULL | |
5343 | }; | |
5344 | ||
5345 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5346 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5347 | if (!SWIG_IsOK(res1)) { | |
5348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5349 | } | |
5350 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5351 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5352 | if (!SWIG_IsOK(ecode2)) { | |
5353 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5354 | } | |
5355 | arg2 = static_cast< int >(val2); | |
5356 | { | |
5357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5358 | (arg1)->SetJoin(arg2); | |
5359 | wxPyEndAllowThreads(__tstate); | |
5360 | if (PyErr_Occurred()) SWIG_fail; | |
5361 | } | |
5362 | resultobj = SWIG_Py_Void(); | |
5363 | return resultobj; | |
5364 | fail: | |
5365 | return NULL; | |
5366 | } | |
5367 | ||
5368 | ||
5369 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5370 | PyObject *resultobj = 0; | |
5371 | wxPen *arg1 = (wxPen *) 0 ; | |
5372 | int arg2 ; | |
5373 | void *argp1 = 0 ; | |
5374 | int res1 = 0 ; | |
5375 | int val2 ; | |
5376 | int ecode2 = 0 ; | |
5377 | PyObject * obj0 = 0 ; | |
5378 | PyObject * obj1 = 0 ; | |
5379 | char * kwnames[] = { | |
5380 | (char *) "self",(char *) "style", NULL | |
5381 | }; | |
5382 | ||
5383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5385 | if (!SWIG_IsOK(res1)) { | |
5386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5387 | } | |
5388 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5389 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5390 | if (!SWIG_IsOK(ecode2)) { | |
5391 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5392 | } | |
5393 | arg2 = static_cast< int >(val2); | |
5394 | { | |
5395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5396 | (arg1)->SetStyle(arg2); | |
5397 | wxPyEndAllowThreads(__tstate); | |
5398 | if (PyErr_Occurred()) SWIG_fail; | |
5399 | } | |
5400 | resultobj = SWIG_Py_Void(); | |
5401 | return resultobj; | |
5402 | fail: | |
5403 | return NULL; | |
5404 | } | |
5405 | ||
5406 | ||
5407 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5408 | PyObject *resultobj = 0; | |
5409 | wxPen *arg1 = (wxPen *) 0 ; | |
5410 | int arg2 ; | |
5411 | void *argp1 = 0 ; | |
5412 | int res1 = 0 ; | |
5413 | int val2 ; | |
5414 | int ecode2 = 0 ; | |
5415 | PyObject * obj0 = 0 ; | |
5416 | PyObject * obj1 = 0 ; | |
5417 | char * kwnames[] = { | |
5418 | (char *) "self",(char *) "width", NULL | |
5419 | }; | |
5420 | ||
5421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5423 | if (!SWIG_IsOK(res1)) { | |
5424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5425 | } | |
5426 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5427 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5428 | if (!SWIG_IsOK(ecode2)) { | |
5429 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5430 | } | |
5431 | arg2 = static_cast< int >(val2); | |
5432 | { | |
5433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5434 | (arg1)->SetWidth(arg2); | |
5435 | wxPyEndAllowThreads(__tstate); | |
5436 | if (PyErr_Occurred()) SWIG_fail; | |
5437 | } | |
5438 | resultobj = SWIG_Py_Void(); | |
5439 | return resultobj; | |
5440 | fail: | |
5441 | return NULL; | |
5442 | } | |
5443 | ||
5444 | ||
5445 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5446 | PyObject *resultobj = 0; | |
5447 | wxPen *arg1 = (wxPen *) 0 ; | |
5448 | int arg2 ; | |
5449 | wxDash *arg3 = (wxDash *) 0 ; | |
5450 | void *argp1 = 0 ; | |
5451 | int res1 = 0 ; | |
5452 | PyObject * obj0 = 0 ; | |
5453 | PyObject * obj1 = 0 ; | |
5454 | char * kwnames[] = { | |
5455 | (char *) "self",(char *) "dashes", NULL | |
5456 | }; | |
5457 | ||
5458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5460 | if (!SWIG_IsOK(res1)) { | |
5461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5462 | } | |
5463 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5464 | { | |
5465 | arg2 = PyList_Size(obj1); | |
5466 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5467 | if (arg3 == NULL) SWIG_fail; | |
5468 | } | |
5469 | { | |
5470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5471 | (arg1)->SetDashes(arg2,arg3); | |
5472 | wxPyEndAllowThreads(__tstate); | |
5473 | if (PyErr_Occurred()) SWIG_fail; | |
5474 | } | |
5475 | resultobj = SWIG_Py_Void(); | |
5476 | { | |
5477 | if (arg3) delete [] arg3; | |
5478 | } | |
5479 | return resultobj; | |
5480 | fail: | |
5481 | { | |
5482 | if (arg3) delete [] arg3; | |
5483 | } | |
5484 | return NULL; | |
d55e5bfc RD |
5485 | } |
5486 | ||
5487 | ||
554f62e9 RD |
5488 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5489 | PyObject *resultobj = 0; | |
5490 | wxPen *arg1 = (wxPen *) 0 ; | |
5491 | PyObject *result = 0 ; | |
5492 | void *argp1 = 0 ; | |
5493 | int res1 = 0 ; | |
5494 | PyObject *swig_obj[1] ; | |
5495 | ||
5496 | if (!args) SWIG_fail; | |
5497 | swig_obj[0] = args; | |
5498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5499 | if (!SWIG_IsOK(res1)) { | |
5500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5501 | } | |
5502 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5503 | { | |
5504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5505 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5506 | wxPyEndAllowThreads(__tstate); | |
5507 | if (PyErr_Occurred()) SWIG_fail; | |
5508 | } | |
5509 | resultobj = result; | |
5510 | return resultobj; | |
5511 | fail: | |
5512 | return NULL; | |
5513 | } | |
5514 | ||
5515 | ||
5516 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5517 | PyObject *resultobj = 0; | |
5518 | wxPen *arg1 = (wxPen *) 0 ; | |
5519 | PyObject *arg2 = (PyObject *) 0 ; | |
5520 | PyObject *arg3 = (PyObject *) 0 ; | |
5521 | void *argp1 = 0 ; | |
5522 | int res1 = 0 ; | |
5523 | PyObject * obj0 = 0 ; | |
5524 | PyObject * obj1 = 0 ; | |
5525 | PyObject * obj2 = 0 ; | |
5526 | char * kwnames[] = { | |
5527 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5528 | }; | |
5529 | ||
5530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5532 | if (!SWIG_IsOK(res1)) { | |
5533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5534 | } | |
5535 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5536 | arg2 = obj1; | |
5537 | arg3 = obj2; | |
5538 | { | |
5539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5540 | wxPen__SetDashes(arg1,arg2,arg3); | |
5541 | wxPyEndAllowThreads(__tstate); | |
5542 | if (PyErr_Occurred()) SWIG_fail; | |
5543 | } | |
5544 | resultobj = SWIG_Py_Void(); | |
5545 | return resultobj; | |
5546 | fail: | |
5547 | return NULL; | |
d55e5bfc RD |
5548 | } |
5549 | ||
5550 | ||
554f62e9 RD |
5551 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5552 | PyObject *resultobj = 0; | |
5553 | wxPen *arg1 = (wxPen *) 0 ; | |
5554 | int result; | |
5555 | void *argp1 = 0 ; | |
5556 | int res1 = 0 ; | |
5557 | PyObject *swig_obj[1] ; | |
5558 | ||
5559 | if (!args) SWIG_fail; | |
5560 | swig_obj[0] = args; | |
5561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5562 | if (!SWIG_IsOK(res1)) { | |
5563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5564 | } | |
5565 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5566 | { | |
5567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5568 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5569 | wxPyEndAllowThreads(__tstate); | |
5570 | if (PyErr_Occurred()) SWIG_fail; | |
5571 | } | |
5572 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5573 | return resultobj; | |
5574 | fail: | |
5575 | return NULL; | |
d55e5bfc RD |
5576 | } |
5577 | ||
5578 | ||
554f62e9 RD |
5579 | SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5580 | PyObject *resultobj = 0; | |
5581 | wxPen *arg1 = (wxPen *) 0 ; | |
5582 | wxBitmap *result = 0 ; | |
5583 | void *argp1 = 0 ; | |
5584 | int res1 = 0 ; | |
5585 | PyObject *swig_obj[1] ; | |
5586 | ||
5587 | if (!args) SWIG_fail; | |
5588 | swig_obj[0] = args; | |
5589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5590 | if (!SWIG_IsOK(res1)) { | |
5591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5592 | } | |
5593 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5594 | { | |
5595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5596 | result = (wxBitmap *)(arg1)->GetStipple(); | |
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
5600 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5601 | return resultobj; | |
5602 | fail: | |
5603 | return NULL; | |
5604 | } | |
5605 | ||
5606 | ||
5607 | SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5608 | PyObject *resultobj = 0; | |
5609 | wxPen *arg1 = (wxPen *) 0 ; | |
5610 | wxBitmap *arg2 = 0 ; | |
5611 | void *argp1 = 0 ; | |
5612 | int res1 = 0 ; | |
5613 | void *argp2 = 0 ; | |
5614 | int res2 = 0 ; | |
5615 | PyObject * obj0 = 0 ; | |
5616 | PyObject * obj1 = 0 ; | |
5617 | char * kwnames[] = { | |
5618 | (char *) "self",(char *) "stipple", NULL | |
5619 | }; | |
5620 | ||
5621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5623 | if (!SWIG_IsOK(res1)) { | |
5624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5625 | } | |
5626 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5627 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
5628 | if (!SWIG_IsOK(res2)) { | |
5629 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
5630 | } | |
5631 | if (!argp2) { | |
5632 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
5633 | } | |
5634 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5635 | { | |
5636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5637 | (arg1)->SetStipple(*arg2); | |
5638 | wxPyEndAllowThreads(__tstate); | |
5639 | if (PyErr_Occurred()) SWIG_fail; | |
5640 | } | |
5641 | resultobj = SWIG_Py_Void(); | |
5642 | return resultobj; | |
5643 | fail: | |
5644 | return NULL; | |
5645 | } | |
5646 | ||
5647 | ||
5648 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5649 | PyObject *resultobj = 0; | |
5650 | wxPen *arg1 = (wxPen *) 0 ; | |
5651 | wxPen *arg2 = (wxPen *) 0 ; | |
5652 | bool result; | |
5653 | void *argp1 = 0 ; | |
5654 | int res1 = 0 ; | |
5655 | void *argp2 = 0 ; | |
5656 | int res2 = 0 ; | |
5657 | PyObject * obj0 = 0 ; | |
5658 | PyObject * obj1 = 0 ; | |
5659 | char * kwnames[] = { | |
5660 | (char *) "self",(char *) "other", NULL | |
5661 | }; | |
5662 | ||
5663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5665 | if (!SWIG_IsOK(res1)) { | |
5666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5667 | } | |
5668 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5669 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5670 | if (!SWIG_IsOK(res2)) { | |
5671 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5672 | } | |
5673 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5674 | { | |
5675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5676 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5677 | wxPyEndAllowThreads(__tstate); | |
5678 | if (PyErr_Occurred()) SWIG_fail; | |
5679 | } | |
5680 | { | |
5681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5682 | } | |
5683 | return resultobj; | |
5684 | fail: | |
5685 | return NULL; | |
5686 | } | |
5687 | ||
5688 | ||
5689 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5690 | PyObject *resultobj = 0; | |
5691 | wxPen *arg1 = (wxPen *) 0 ; | |
5692 | wxPen *arg2 = (wxPen *) 0 ; | |
5693 | bool result; | |
5694 | void *argp1 = 0 ; | |
5695 | int res1 = 0 ; | |
5696 | void *argp2 = 0 ; | |
5697 | int res2 = 0 ; | |
5698 | PyObject * obj0 = 0 ; | |
5699 | PyObject * obj1 = 0 ; | |
5700 | char * kwnames[] = { | |
5701 | (char *) "self",(char *) "other", NULL | |
5702 | }; | |
5703 | ||
5704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5706 | if (!SWIG_IsOK(res1)) { | |
5707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5708 | } | |
5709 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5710 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5711 | if (!SWIG_IsOK(res2)) { | |
5712 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5713 | } | |
5714 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5715 | { | |
5716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5717 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5718 | wxPyEndAllowThreads(__tstate); | |
5719 | if (PyErr_Occurred()) SWIG_fail; | |
5720 | } | |
5721 | { | |
5722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5723 | } | |
5724 | return resultobj; | |
5725 | fail: | |
5726 | return NULL; | |
d55e5bfc RD |
5727 | } |
5728 | ||
5729 | ||
554f62e9 RD |
5730 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5731 | PyObject *obj; | |
5732 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5733 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5734 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5735 | } |
5736 | ||
554f62e9 RD |
5737 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5738 | return SWIG_Python_InitShadowInstance(args); | |
5739 | } | |
d55e5bfc | 5740 | |
554f62e9 RD |
5741 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5742 | PyObject *resultobj = 0; | |
5743 | wxColour *arg1 = 0 ; | |
5744 | int arg2 = (int) wxSOLID ; | |
5745 | wxBrush *result = 0 ; | |
5746 | wxColour temp1 ; | |
5747 | int val2 ; | |
5748 | int ecode2 = 0 ; | |
5749 | PyObject * obj0 = 0 ; | |
5750 | PyObject * obj1 = 0 ; | |
5751 | char * kwnames[] = { | |
5752 | (char *) "colour",(char *) "style", NULL | |
5753 | }; | |
5754 | ||
5755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5756 | { | |
5757 | arg1 = &temp1; | |
5758 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5759 | } | |
5760 | if (obj1) { | |
5761 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5762 | if (!SWIG_IsOK(ecode2)) { | |
5763 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5764 | } | |
5765 | arg2 = static_cast< int >(val2); | |
5766 | } | |
5767 | { | |
5768 | if (!wxPyCheckForApp()) SWIG_fail; | |
5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5770 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5771 | wxPyEndAllowThreads(__tstate); | |
5772 | if (PyErr_Occurred()) SWIG_fail; | |
5773 | } | |
5774 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5775 | return resultobj; | |
5776 | fail: | |
5777 | return NULL; | |
5778 | } | |
5779 | ||
5780 | ||
5781 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5782 | PyObject *resultobj = 0; | |
5783 | wxBitmap *arg1 = 0 ; | |
5784 | wxBrush *result = 0 ; | |
5785 | void *argp1 = 0 ; | |
5786 | int res1 = 0 ; | |
5787 | PyObject * obj0 = 0 ; | |
5788 | char * kwnames[] = { | |
5789 | (char *) "stippleBitmap", NULL | |
5790 | }; | |
5791 | ||
5792 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5793 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5794 | if (!SWIG_IsOK(res1)) { | |
5795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5796 | } | |
5797 | if (!argp1) { | |
5798 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5799 | } | |
5800 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5801 | { | |
5802 | if (!wxPyCheckForApp()) SWIG_fail; | |
5803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5804 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5805 | wxPyEndAllowThreads(__tstate); | |
5806 | if (PyErr_Occurred()) SWIG_fail; | |
5807 | } | |
5808 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5809 | return resultobj; | |
5810 | fail: | |
5811 | return NULL; | |
d55e5bfc RD |
5812 | } |
5813 | ||
5814 | ||
554f62e9 RD |
5815 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5816 | PyObject *resultobj = 0; | |
5817 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5818 | void *argp1 = 0 ; | |
5819 | int res1 = 0 ; | |
5820 | PyObject *swig_obj[1] ; | |
5821 | ||
5822 | if (!args) SWIG_fail; | |
5823 | swig_obj[0] = args; | |
5824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5825 | if (!SWIG_IsOK(res1)) { | |
5826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5827 | } | |
5828 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5829 | { | |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5831 | delete arg1; | |
d55e5bfc | 5832 | |
554f62e9 RD |
5833 | wxPyEndAllowThreads(__tstate); |
5834 | if (PyErr_Occurred()) SWIG_fail; | |
5835 | } | |
5836 | resultobj = SWIG_Py_Void(); | |
5837 | return resultobj; | |
5838 | fail: | |
5839 | return NULL; | |
5840 | } | |
5841 | ||
5842 | ||
5843 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5844 | PyObject *resultobj = 0; | |
5845 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5846 | wxColour *arg2 = 0 ; | |
5847 | void *argp1 = 0 ; | |
5848 | int res1 = 0 ; | |
5849 | wxColour temp2 ; | |
5850 | PyObject * obj0 = 0 ; | |
5851 | PyObject * obj1 = 0 ; | |
5852 | char * kwnames[] = { | |
5853 | (char *) "self",(char *) "col", NULL | |
5854 | }; | |
5855 | ||
5856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5858 | if (!SWIG_IsOK(res1)) { | |
5859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5860 | } | |
5861 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5862 | { | |
5863 | arg2 = &temp2; | |
5864 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5865 | } | |
5866 | { | |
5867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5868 | (arg1)->SetColour((wxColour const &)*arg2); | |
5869 | wxPyEndAllowThreads(__tstate); | |
5870 | if (PyErr_Occurred()) SWIG_fail; | |
5871 | } | |
5872 | resultobj = SWIG_Py_Void(); | |
5873 | return resultobj; | |
5874 | fail: | |
5875 | return NULL; | |
5876 | } | |
5877 | ||
5878 | ||
5879 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5880 | PyObject *resultobj = 0; | |
5881 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5882 | int arg2 ; | |
5883 | void *argp1 = 0 ; | |
5884 | int res1 = 0 ; | |
5885 | int val2 ; | |
5886 | int ecode2 = 0 ; | |
5887 | PyObject * obj0 = 0 ; | |
5888 | PyObject * obj1 = 0 ; | |
5889 | char * kwnames[] = { | |
5890 | (char *) "self",(char *) "style", NULL | |
5891 | }; | |
5892 | ||
5893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5895 | if (!SWIG_IsOK(res1)) { | |
5896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5897 | } | |
5898 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5899 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5900 | if (!SWIG_IsOK(ecode2)) { | |
5901 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5902 | } | |
5903 | arg2 = static_cast< int >(val2); | |
5904 | { | |
5905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5906 | (arg1)->SetStyle(arg2); | |
5907 | wxPyEndAllowThreads(__tstate); | |
5908 | if (PyErr_Occurred()) SWIG_fail; | |
5909 | } | |
5910 | resultobj = SWIG_Py_Void(); | |
5911 | return resultobj; | |
5912 | fail: | |
5913 | return NULL; | |
5914 | } | |
5915 | ||
5916 | ||
5917 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5918 | PyObject *resultobj = 0; | |
5919 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5920 | wxBitmap *arg2 = 0 ; | |
5921 | void *argp1 = 0 ; | |
5922 | int res1 = 0 ; | |
5923 | void *argp2 = 0 ; | |
5924 | int res2 = 0 ; | |
5925 | PyObject * obj0 = 0 ; | |
5926 | PyObject * obj1 = 0 ; | |
5927 | char * kwnames[] = { | |
5928 | (char *) "self",(char *) "stipple", NULL | |
5929 | }; | |
5930 | ||
5931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5933 | if (!SWIG_IsOK(res1)) { | |
5934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5935 | } | |
5936 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5937 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5938 | if (!SWIG_IsOK(res2)) { | |
5939 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5940 | } | |
5941 | if (!argp2) { | |
5942 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5943 | } | |
5944 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5945 | { | |
5946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5947 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5948 | wxPyEndAllowThreads(__tstate); | |
5949 | if (PyErr_Occurred()) SWIG_fail; | |
5950 | } | |
5951 | resultobj = SWIG_Py_Void(); | |
5952 | return resultobj; | |
5953 | fail: | |
5954 | return NULL; | |
d55e5bfc RD |
5955 | } |
5956 | ||
5957 | ||
554f62e9 RD |
5958 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5959 | PyObject *resultobj = 0; | |
5960 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5961 | wxColour result; | |
5962 | void *argp1 = 0 ; | |
5963 | int res1 = 0 ; | |
5964 | PyObject *swig_obj[1] ; | |
5965 | ||
5966 | if (!args) SWIG_fail; | |
5967 | swig_obj[0] = args; | |
5968 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5969 | if (!SWIG_IsOK(res1)) { | |
5970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5971 | } | |
5972 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5973 | { | |
5974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5975 | result = ((wxBrush const *)arg1)->GetColour(); | |
5976 | wxPyEndAllowThreads(__tstate); | |
5977 | if (PyErr_Occurred()) SWIG_fail; | |
5978 | } | |
5979 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5980 | return resultobj; | |
5981 | fail: | |
5982 | return NULL; | |
d55e5bfc RD |
5983 | } |
5984 | ||
5985 | ||
554f62e9 RD |
5986 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5987 | PyObject *resultobj = 0; | |
5988 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5989 | int result; | |
5990 | void *argp1 = 0 ; | |
5991 | int res1 = 0 ; | |
5992 | PyObject *swig_obj[1] ; | |
5993 | ||
5994 | if (!args) SWIG_fail; | |
5995 | swig_obj[0] = args; | |
5996 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5997 | if (!SWIG_IsOK(res1)) { | |
5998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5999 | } | |
6000 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6001 | { | |
6002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6003 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
6004 | wxPyEndAllowThreads(__tstate); | |
6005 | if (PyErr_Occurred()) SWIG_fail; | |
6006 | } | |
6007 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6008 | return resultobj; | |
6009 | fail: | |
6010 | return NULL; | |
d55e5bfc RD |
6011 | } |
6012 | ||
6013 | ||
554f62e9 RD |
6014 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6015 | PyObject *resultobj = 0; | |
6016 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6017 | wxBitmap *result = 0 ; | |
6018 | void *argp1 = 0 ; | |
6019 | int res1 = 0 ; | |
6020 | PyObject *swig_obj[1] ; | |
6021 | ||
6022 | if (!args) SWIG_fail; | |
6023 | swig_obj[0] = args; | |
6024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6025 | if (!SWIG_IsOK(res1)) { | |
6026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6027 | } | |
6028 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6029 | { | |
6030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6031 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
6032 | wxPyEndAllowThreads(__tstate); | |
6033 | if (PyErr_Occurred()) SWIG_fail; | |
6034 | } | |
6035 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6036 | return resultobj; | |
6037 | fail: | |
6038 | return NULL; | |
d55e5bfc RD |
6039 | } |
6040 | ||
6041 | ||
554f62e9 RD |
6042 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6043 | PyObject *resultobj = 0; | |
6044 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6045 | bool result; | |
6046 | void *argp1 = 0 ; | |
6047 | int res1 = 0 ; | |
6048 | PyObject *swig_obj[1] ; | |
6049 | ||
6050 | if (!args) SWIG_fail; | |
6051 | swig_obj[0] = args; | |
6052 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6053 | if (!SWIG_IsOK(res1)) { | |
6054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6055 | } | |
6056 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6057 | { | |
6058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6059 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
6060 | wxPyEndAllowThreads(__tstate); | |
6061 | if (PyErr_Occurred()) SWIG_fail; | |
6062 | } | |
6063 | { | |
6064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6065 | } | |
6066 | return resultobj; | |
6067 | fail: | |
6068 | return NULL; | |
f78cc896 RD |
6069 | } |
6070 | ||
6071 | ||
b39fe951 | 6072 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
6073 | PyObject *resultobj = 0; |
6074 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6075 | bool result; | |
6076 | void *argp1 = 0 ; | |
6077 | int res1 = 0 ; | |
6078 | PyObject *swig_obj[1] ; | |
6079 | ||
6080 | if (!args) SWIG_fail; | |
6081 | swig_obj[0] = args; | |
6082 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6083 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
554f62e9 RD |
6085 | } |
6086 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6087 | { | |
6088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 6089 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
6090 | wxPyEndAllowThreads(__tstate); |
6091 | if (PyErr_Occurred()) SWIG_fail; | |
6092 | } | |
6093 | { | |
6094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6095 | } | |
6096 | return resultobj; | |
6097 | fail: | |
6098 | return NULL; | |
d55e5bfc RD |
6099 | } |
6100 | ||
6101 | ||
554f62e9 RD |
6102 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6103 | PyObject *obj; | |
6104 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6105 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
6106 | return SWIG_Py_Void(); | |
d55e5bfc RD |
6107 | } |
6108 | ||
554f62e9 RD |
6109 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6110 | return SWIG_Python_InitShadowInstance(args); | |
6111 | } | |
d55e5bfc | 6112 | |
554f62e9 RD |
6113 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6114 | PyObject *resultobj = 0; | |
6115 | wxString *arg1 = 0 ; | |
6116 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
6117 | wxBitmap *result = 0 ; | |
6118 | bool temp1 = false ; | |
6119 | int val2 ; | |
6120 | int ecode2 = 0 ; | |
6121 | PyObject * obj0 = 0 ; | |
6122 | PyObject * obj1 = 0 ; | |
6123 | char * kwnames[] = { | |
6124 | (char *) "name",(char *) "type", NULL | |
6125 | }; | |
6126 | ||
6127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6128 | { | |
6129 | arg1 = wxString_in_helper(obj0); | |
6130 | if (arg1 == NULL) SWIG_fail; | |
6131 | temp1 = true; | |
6132 | } | |
6133 | if (obj1) { | |
6134 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6135 | if (!SWIG_IsOK(ecode2)) { | |
6136 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6137 | } | |
6138 | arg2 = static_cast< wxBitmapType >(val2); | |
6139 | } | |
6140 | { | |
6141 | if (!wxPyCheckForApp()) SWIG_fail; | |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
6144 | wxPyEndAllowThreads(__tstate); | |
6145 | if (PyErr_Occurred()) SWIG_fail; | |
6146 | } | |
6147 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
6148 | { | |
6149 | if (temp1) | |
6150 | delete arg1; | |
6151 | } | |
6152 | return resultobj; | |
6153 | fail: | |
6154 | { | |
6155 | if (temp1) | |
6156 | delete arg1; | |
6157 | } | |
6158 | return NULL; | |
d55e5bfc RD |
6159 | } |
6160 | ||
6161 | ||
554f62e9 RD |
6162 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6163 | PyObject *resultobj = 0; | |
6164 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6165 | void *argp1 = 0 ; | |
6166 | int res1 = 0 ; | |
6167 | PyObject *swig_obj[1] ; | |
6168 | ||
6169 | if (!args) SWIG_fail; | |
6170 | swig_obj[0] = args; | |
6171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
6172 | if (!SWIG_IsOK(res1)) { | |
6173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6174 | } | |
6175 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6176 | { | |
554f62e9 | 6177 | delete arg1; |
c24da6d6 | 6178 | |
554f62e9 RD |
6179 | if (PyErr_Occurred()) SWIG_fail; |
6180 | } | |
6181 | resultobj = SWIG_Py_Void(); | |
6182 | return resultobj; | |
6183 | fail: | |
6184 | return NULL; | |
6185 | } | |
6186 | ||
6187 | ||
6188 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6189 | PyObject *resultobj = 0; | |
6190 | int arg1 ; | |
6191 | int arg2 ; | |
6192 | int arg3 = (int) -1 ; | |
6193 | wxBitmap *result = 0 ; | |
6194 | int val1 ; | |
6195 | int ecode1 = 0 ; | |
6196 | int val2 ; | |
6197 | int ecode2 = 0 ; | |
6198 | int val3 ; | |
6199 | int ecode3 = 0 ; | |
6200 | PyObject * obj0 = 0 ; | |
6201 | PyObject * obj1 = 0 ; | |
6202 | PyObject * obj2 = 0 ; | |
6203 | char * kwnames[] = { | |
6204 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
6205 | }; | |
6206 | ||
6207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6208 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6209 | if (!SWIG_IsOK(ecode1)) { | |
6210 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
6211 | } | |
6212 | arg1 = static_cast< int >(val1); | |
6213 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6214 | if (!SWIG_IsOK(ecode2)) { | |
6215 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
6216 | } | |
6217 | arg2 = static_cast< int >(val2); | |
6218 | if (obj2) { | |
6219 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6220 | if (!SWIG_IsOK(ecode3)) { | |
6221 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
6222 | } | |
6223 | arg3 = static_cast< int >(val3); | |
6224 | } | |
6225 | { | |
6226 | if (!wxPyCheckForApp()) SWIG_fail; | |
6227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6228 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
6229 | wxPyEndAllowThreads(__tstate); | |
6230 | if (PyErr_Occurred()) SWIG_fail; | |
6231 | } | |
6232 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6233 | return resultobj; | |
6234 | fail: | |
6235 | return NULL; | |
6236 | } | |
6237 | ||
6238 | ||
6239 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6240 | PyObject *resultobj = 0; | |
6241 | wxIcon *arg1 = 0 ; | |
6242 | wxBitmap *result = 0 ; | |
6243 | void *argp1 = 0 ; | |
6244 | int res1 = 0 ; | |
6245 | PyObject * obj0 = 0 ; | |
6246 | char * kwnames[] = { | |
6247 | (char *) "icon", NULL | |
6248 | }; | |
6249 | ||
6250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6251 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6252 | if (!SWIG_IsOK(res1)) { | |
6253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6254 | } | |
6255 | if (!argp1) { | |
6256 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6257 | } | |
6258 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6259 | { | |
6260 | if (!wxPyCheckForApp()) SWIG_fail; | |
6261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6262 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6263 | wxPyEndAllowThreads(__tstate); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | } | |
6266 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6267 | return resultobj; | |
6268 | fail: | |
6269 | return NULL; | |
6270 | } | |
6271 | ||
6272 | ||
6273 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6274 | PyObject *resultobj = 0; | |
6275 | wxImage *arg1 = 0 ; | |
6276 | int arg2 = (int) -1 ; | |
6277 | wxBitmap *result = 0 ; | |
6278 | void *argp1 = 0 ; | |
6279 | int res1 = 0 ; | |
6280 | int val2 ; | |
6281 | int ecode2 = 0 ; | |
6282 | PyObject * obj0 = 0 ; | |
6283 | PyObject * obj1 = 0 ; | |
6284 | char * kwnames[] = { | |
6285 | (char *) "image",(char *) "depth", NULL | |
6286 | }; | |
6287 | ||
6288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6289 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6290 | if (!SWIG_IsOK(res1)) { | |
6291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6292 | } | |
6293 | if (!argp1) { | |
6294 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6295 | } | |
6296 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6297 | if (obj1) { | |
6298 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6299 | if (!SWIG_IsOK(ecode2)) { | |
6300 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6301 | } | |
6302 | arg2 = static_cast< int >(val2); | |
6303 | } | |
6304 | { | |
6305 | if (!wxPyCheckForApp()) SWIG_fail; | |
6306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6307 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6308 | wxPyEndAllowThreads(__tstate); | |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
6310 | } | |
6311 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6312 | return resultobj; | |
6313 | fail: | |
6314 | return NULL; | |
c24da6d6 RD |
6315 | } |
6316 | ||
6317 | ||
554f62e9 RD |
6318 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6319 | PyObject *resultobj = 0; | |
6320 | PyObject *arg1 = (PyObject *) 0 ; | |
6321 | wxBitmap *result = 0 ; | |
6322 | PyObject * obj0 = 0 ; | |
6323 | char * kwnames[] = { | |
6324 | (char *) "listOfStrings", NULL | |
6325 | }; | |
6326 | ||
6327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6328 | arg1 = obj0; | |
6329 | { | |
6330 | if (!wxPyCheckForApp()) SWIG_fail; | |
6331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6332 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6333 | wxPyEndAllowThreads(__tstate); | |
6334 | if (PyErr_Occurred()) SWIG_fail; | |
6335 | } | |
6336 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6337 | return resultobj; | |
6338 | fail: | |
6339 | return NULL; | |
6340 | } | |
6341 | ||
6342 | ||
6343 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6344 | PyObject *resultobj = 0; | |
6345 | PyObject *arg1 = (PyObject *) 0 ; | |
6346 | int arg2 ; | |
6347 | int arg3 ; | |
6348 | int arg4 = (int) 1 ; | |
6349 | wxBitmap *result = 0 ; | |
6350 | int val2 ; | |
6351 | int ecode2 = 0 ; | |
6352 | int val3 ; | |
6353 | int ecode3 = 0 ; | |
6354 | int val4 ; | |
6355 | int ecode4 = 0 ; | |
6356 | PyObject * obj0 = 0 ; | |
6357 | PyObject * obj1 = 0 ; | |
6358 | PyObject * obj2 = 0 ; | |
6359 | PyObject * obj3 = 0 ; | |
6360 | char * kwnames[] = { | |
6361 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6362 | }; | |
6363 | ||
6364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6365 | arg1 = obj0; | |
6366 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6367 | if (!SWIG_IsOK(ecode2)) { | |
6368 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6369 | } | |
6370 | arg2 = static_cast< int >(val2); | |
6371 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6372 | if (!SWIG_IsOK(ecode3)) { | |
6373 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6374 | } | |
6375 | arg3 = static_cast< int >(val3); | |
6376 | if (obj3) { | |
6377 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6378 | if (!SWIG_IsOK(ecode4)) { | |
6379 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6380 | } | |
6381 | arg4 = static_cast< int >(val4); | |
6382 | } | |
6383 | { | |
6384 | if (!wxPyCheckForApp()) SWIG_fail; | |
6385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6386 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6387 | wxPyEndAllowThreads(__tstate); | |
6388 | if (PyErr_Occurred()) SWIG_fail; | |
6389 | } | |
6390 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6391 | return resultobj; | |
6392 | fail: | |
6393 | return NULL; | |
d55e5bfc RD |
6394 | } |
6395 | ||
6396 | ||
554f62e9 RD |
6397 | SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6398 | PyObject *resultobj = 0; | |
6399 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6400 | long result; | |
6401 | void *argp1 = 0 ; | |
6402 | int res1 = 0 ; | |
6403 | PyObject *swig_obj[1] ; | |
6404 | ||
6405 | if (!args) SWIG_fail; | |
6406 | swig_obj[0] = args; | |
6407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6408 | if (!SWIG_IsOK(res1)) { | |
6409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6410 | } | |
6411 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6412 | { | |
554f62e9 | 6413 | result = (long)(arg1)->GetHandle(); |
554f62e9 RD |
6414 | if (PyErr_Occurred()) SWIG_fail; |
6415 | } | |
6416 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6417 | return resultobj; | |
6418 | fail: | |
6419 | return NULL; | |
6420 | } | |
6421 | ||
6422 | ||
6423 | SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6424 | PyObject *resultobj = 0; | |
6425 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6426 | long arg2 ; | |
6427 | void *argp1 = 0 ; | |
6428 | int res1 = 0 ; | |
6429 | long val2 ; | |
6430 | int ecode2 = 0 ; | |
6431 | PyObject * obj0 = 0 ; | |
6432 | PyObject * obj1 = 0 ; | |
6433 | char * kwnames[] = { | |
6434 | (char *) "self",(char *) "handle", NULL | |
6435 | }; | |
6436 | ||
6437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
6438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6439 | if (!SWIG_IsOK(res1)) { | |
6440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6441 | } | |
6442 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6443 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6444 | if (!SWIG_IsOK(ecode2)) { | |
6445 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
6446 | } | |
6447 | arg2 = static_cast< long >(val2); | |
6448 | { | |
554f62e9 | 6449 | wxBitmap_SetHandle(arg1,arg2); |
554f62e9 RD |
6450 | if (PyErr_Occurred()) SWIG_fail; |
6451 | } | |
6452 | resultobj = SWIG_Py_Void(); | |
6453 | return resultobj; | |
6454 | fail: | |
6455 | return NULL; | |
d55e5bfc RD |
6456 | } |
6457 | ||
6458 | ||
b39fe951 | 6459 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
6460 | PyObject *resultobj = 0; |
6461 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6462 | bool result; | |
6463 | void *argp1 = 0 ; | |
6464 | int res1 = 0 ; | |
6465 | PyObject *swig_obj[1] ; | |
6466 | ||
6467 | if (!args) SWIG_fail; | |
6468 | swig_obj[0] = args; | |
6469 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6470 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
554f62e9 RD |
6472 | } |
6473 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6474 | { | |
b39fe951 | 6475 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
6476 | if (PyErr_Occurred()) SWIG_fail; |
6477 | } | |
6478 | { | |
6479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6480 | } | |
6481 | return resultobj; | |
6482 | fail: | |
6483 | return NULL; | |
d55e5bfc RD |
6484 | } |
6485 | ||
6486 | ||
554f62e9 RD |
6487 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6488 | PyObject *resultobj = 0; | |
6489 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6490 | int result; | |
6491 | void *argp1 = 0 ; | |
6492 | int res1 = 0 ; | |
6493 | PyObject *swig_obj[1] ; | |
6494 | ||
6495 | if (!args) SWIG_fail; | |
6496 | swig_obj[0] = args; | |
6497 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6498 | if (!SWIG_IsOK(res1)) { | |
6499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6500 | } | |
6501 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6502 | { | |
554f62e9 | 6503 | result = (int)(arg1)->GetWidth(); |
554f62e9 RD |
6504 | if (PyErr_Occurred()) SWIG_fail; |
6505 | } | |
6506 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6507 | return resultobj; | |
6508 | fail: | |
6509 | return NULL; | |
d55e5bfc RD |
6510 | } |
6511 | ||
6512 | ||
554f62e9 RD |
6513 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6514 | PyObject *resultobj = 0; | |
6515 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6516 | int result; | |
6517 | void *argp1 = 0 ; | |
6518 | int res1 = 0 ; | |
6519 | PyObject *swig_obj[1] ; | |
6520 | ||
6521 | if (!args) SWIG_fail; | |
6522 | swig_obj[0] = args; | |
6523 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6524 | if (!SWIG_IsOK(res1)) { | |
6525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6526 | } | |
6527 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6528 | { | |
554f62e9 | 6529 | result = (int)(arg1)->GetHeight(); |
554f62e9 RD |
6530 | if (PyErr_Occurred()) SWIG_fail; |
6531 | } | |
6532 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6533 | return resultobj; | |
6534 | fail: | |
6535 | return NULL; | |
c24da6d6 RD |
6536 | } |
6537 | ||
6538 | ||
554f62e9 RD |
6539 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6540 | PyObject *resultobj = 0; | |
6541 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6542 | int result; | |
6543 | void *argp1 = 0 ; | |
6544 | int res1 = 0 ; | |
6545 | PyObject *swig_obj[1] ; | |
6546 | ||
6547 | if (!args) SWIG_fail; | |
6548 | swig_obj[0] = args; | |
6549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6550 | if (!SWIG_IsOK(res1)) { | |
6551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6552 | } | |
6553 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6554 | { | |
554f62e9 | 6555 | result = (int)(arg1)->GetDepth(); |
554f62e9 RD |
6556 | if (PyErr_Occurred()) SWIG_fail; |
6557 | } | |
6558 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6559 | return resultobj; | |
6560 | fail: | |
6561 | return NULL; | |
d55e5bfc RD |
6562 | } |
6563 | ||
6564 | ||
554f62e9 RD |
6565 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6566 | PyObject *resultobj = 0; | |
6567 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6568 | wxSize result; | |
6569 | void *argp1 = 0 ; | |
6570 | int res1 = 0 ; | |
6571 | PyObject *swig_obj[1] ; | |
6572 | ||
6573 | if (!args) SWIG_fail; | |
6574 | swig_obj[0] = args; | |
6575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6576 | if (!SWIG_IsOK(res1)) { | |
6577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6578 | } | |
6579 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6580 | { | |
554f62e9 | 6581 | result = wxBitmap_GetSize(arg1); |
554f62e9 RD |
6582 | if (PyErr_Occurred()) SWIG_fail; |
6583 | } | |
6584 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6585 | return resultobj; | |
6586 | fail: | |
6587 | return NULL; | |
d55e5bfc RD |
6588 | } |
6589 | ||
6590 | ||
554f62e9 RD |
6591 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6592 | PyObject *resultobj = 0; | |
6593 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6594 | SwigValueWrapper<wxImage > result; | |
6595 | void *argp1 = 0 ; | |
6596 | int res1 = 0 ; | |
6597 | PyObject *swig_obj[1] ; | |
6598 | ||
6599 | if (!args) SWIG_fail; | |
6600 | swig_obj[0] = args; | |
6601 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6602 | if (!SWIG_IsOK(res1)) { | |
6603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6604 | } | |
6605 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6606 | { | |
554f62e9 | 6607 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
554f62e9 RD |
6608 | if (PyErr_Occurred()) SWIG_fail; |
6609 | } | |
6610 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6611 | return resultobj; | |
6612 | fail: | |
6613 | return NULL; | |
d55e5bfc RD |
6614 | } |
6615 | ||
6616 | ||
554f62e9 RD |
6617 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6618 | PyObject *resultobj = 0; | |
6619 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6620 | wxMask *result = 0 ; | |
6621 | void *argp1 = 0 ; | |
6622 | int res1 = 0 ; | |
6623 | PyObject *swig_obj[1] ; | |
6624 | ||
6625 | if (!args) SWIG_fail; | |
6626 | swig_obj[0] = args; | |
6627 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6628 | if (!SWIG_IsOK(res1)) { | |
6629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6630 | } | |
6631 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6632 | { | |
554f62e9 | 6633 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
554f62e9 RD |
6634 | if (PyErr_Occurred()) SWIG_fail; |
6635 | } | |
6636 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6637 | return resultobj; | |
6638 | fail: | |
6639 | return NULL; | |
6640 | } | |
6641 | ||
6642 | ||
6643 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6644 | PyObject *resultobj = 0; | |
6645 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6646 | wxMask *arg2 = (wxMask *) 0 ; | |
6647 | void *argp1 = 0 ; | |
6648 | int res1 = 0 ; | |
6649 | int res2 = 0 ; | |
6650 | PyObject * obj0 = 0 ; | |
6651 | PyObject * obj1 = 0 ; | |
6652 | char * kwnames[] = { | |
6653 | (char *) "self",(char *) "mask", NULL | |
6654 | }; | |
6655 | ||
6656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6658 | if (!SWIG_IsOK(res1)) { | |
6659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6660 | } | |
6661 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6662 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6663 | if (!SWIG_IsOK(res2)) { | |
6664 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6665 | } | |
6666 | { | |
554f62e9 | 6667 | (arg1)->SetMask(arg2); |
554f62e9 RD |
6668 | if (PyErr_Occurred()) SWIG_fail; |
6669 | } | |
6670 | resultobj = SWIG_Py_Void(); | |
6671 | return resultobj; | |
6672 | fail: | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
6677 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6678 | PyObject *resultobj = 0; | |
6679 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6680 | wxColour *arg2 = 0 ; | |
6681 | void *argp1 = 0 ; | |
6682 | int res1 = 0 ; | |
6683 | wxColour temp2 ; | |
6684 | PyObject * obj0 = 0 ; | |
6685 | PyObject * obj1 = 0 ; | |
6686 | char * kwnames[] = { | |
6687 | (char *) "self",(char *) "colour", NULL | |
6688 | }; | |
6689 | ||
6690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6692 | if (!SWIG_IsOK(res1)) { | |
6693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6694 | } | |
6695 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6696 | { | |
6697 | arg2 = &temp2; | |
6698 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6699 | } | |
6700 | { | |
554f62e9 | 6701 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
554f62e9 RD |
6702 | if (PyErr_Occurred()) SWIG_fail; |
6703 | } | |
6704 | resultobj = SWIG_Py_Void(); | |
6705 | return resultobj; | |
6706 | fail: | |
6707 | return NULL; | |
6708 | } | |
6709 | ||
6710 | ||
6711 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6712 | PyObject *resultobj = 0; | |
6713 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6714 | wxRect *arg2 = 0 ; | |
6715 | SwigValueWrapper<wxBitmap > result; | |
6716 | void *argp1 = 0 ; | |
6717 | int res1 = 0 ; | |
6718 | wxRect temp2 ; | |
6719 | PyObject * obj0 = 0 ; | |
6720 | PyObject * obj1 = 0 ; | |
6721 | char * kwnames[] = { | |
6722 | (char *) "self",(char *) "rect", NULL | |
6723 | }; | |
6724 | ||
6725 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6726 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6727 | if (!SWIG_IsOK(res1)) { | |
6728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6729 | } | |
6730 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6731 | { | |
6732 | arg2 = &temp2; | |
6733 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6734 | } | |
6735 | { | |
554f62e9 | 6736 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
554f62e9 RD |
6737 | if (PyErr_Occurred()) SWIG_fail; |
6738 | } | |
6739 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6740 | return resultobj; | |
6741 | fail: | |
6742 | return NULL; | |
6743 | } | |
6744 | ||
6745 | ||
6746 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6747 | PyObject *resultobj = 0; | |
6748 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6749 | wxString *arg2 = 0 ; | |
6750 | wxBitmapType arg3 ; | |
6751 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6752 | bool result; | |
6753 | void *argp1 = 0 ; | |
6754 | int res1 = 0 ; | |
6755 | bool temp2 = false ; | |
6756 | int val3 ; | |
6757 | int ecode3 = 0 ; | |
6758 | void *argp4 = 0 ; | |
6759 | int res4 = 0 ; | |
6760 | PyObject * obj0 = 0 ; | |
6761 | PyObject * obj1 = 0 ; | |
6762 | PyObject * obj2 = 0 ; | |
6763 | PyObject * obj3 = 0 ; | |
6764 | char * kwnames[] = { | |
6765 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6766 | }; | |
6767 | ||
6768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6770 | if (!SWIG_IsOK(res1)) { | |
6771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6772 | } | |
6773 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6774 | { | |
6775 | arg2 = wxString_in_helper(obj1); | |
6776 | if (arg2 == NULL) SWIG_fail; | |
6777 | temp2 = true; | |
6778 | } | |
6779 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6780 | if (!SWIG_IsOK(ecode3)) { | |
6781 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6782 | } | |
6783 | arg3 = static_cast< wxBitmapType >(val3); | |
6784 | if (obj3) { | |
6785 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6786 | if (!SWIG_IsOK(res4)) { | |
6787 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6788 | } |
554f62e9 RD |
6789 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6790 | } | |
6791 | { | |
554f62e9 | 6792 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
554f62e9 RD |
6793 | if (PyErr_Occurred()) SWIG_fail; |
6794 | } | |
6795 | { | |
6796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6797 | } | |
6798 | { | |
6799 | if (temp2) | |
6800 | delete arg2; | |
6801 | } | |
6802 | return resultobj; | |
6803 | fail: | |
6804 | { | |
6805 | if (temp2) | |
6806 | delete arg2; | |
6807 | } | |
6808 | return NULL; | |
6809 | } | |
6810 | ||
6811 | ||
6812 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6813 | PyObject *resultobj = 0; | |
6814 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6815 | wxString *arg2 = 0 ; | |
6816 | wxBitmapType arg3 ; | |
6817 | bool result; | |
6818 | void *argp1 = 0 ; | |
6819 | int res1 = 0 ; | |
6820 | bool temp2 = false ; | |
6821 | int val3 ; | |
6822 | int ecode3 = 0 ; | |
6823 | PyObject * obj0 = 0 ; | |
6824 | PyObject * obj1 = 0 ; | |
6825 | PyObject * obj2 = 0 ; | |
6826 | char * kwnames[] = { | |
6827 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6828 | }; | |
6829 | ||
6830 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6831 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6832 | if (!SWIG_IsOK(res1)) { | |
6833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6834 | } | |
6835 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6836 | { | |
6837 | arg2 = wxString_in_helper(obj1); | |
6838 | if (arg2 == NULL) SWIG_fail; | |
6839 | temp2 = true; | |
6840 | } | |
6841 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6842 | if (!SWIG_IsOK(ecode3)) { | |
6843 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6844 | } | |
6845 | arg3 = static_cast< wxBitmapType >(val3); | |
6846 | { | |
554f62e9 | 6847 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
554f62e9 RD |
6848 | if (PyErr_Occurred()) SWIG_fail; |
6849 | } | |
6850 | { | |
6851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6852 | } | |
6853 | { | |
6854 | if (temp2) | |
6855 | delete arg2; | |
6856 | } | |
6857 | return resultobj; | |
6858 | fail: | |
6859 | { | |
6860 | if (temp2) | |
6861 | delete arg2; | |
6862 | } | |
6863 | return NULL; | |
d04418a7 RD |
6864 | } |
6865 | ||
6866 | ||
554f62e9 RD |
6867 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6868 | PyObject *resultobj = 0; | |
6869 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6870 | wxPalette *result = 0 ; | |
6871 | void *argp1 = 0 ; | |
6872 | int res1 = 0 ; | |
6873 | PyObject *swig_obj[1] ; | |
6874 | ||
6875 | if (!args) SWIG_fail; | |
6876 | swig_obj[0] = args; | |
6877 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6878 | if (!SWIG_IsOK(res1)) { | |
6879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6880 | } | |
6881 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6882 | { | |
554f62e9 | 6883 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
554f62e9 RD |
6884 | if (PyErr_Occurred()) SWIG_fail; |
6885 | } | |
6886 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6887 | return resultobj; | |
6888 | fail: | |
6889 | return NULL; | |
6890 | } | |
6891 | ||
6892 | ||
6893 | SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6894 | PyObject *resultobj = 0; | |
6895 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6896 | wxPalette *arg2 = 0 ; | |
6897 | void *argp1 = 0 ; | |
6898 | int res1 = 0 ; | |
6899 | void *argp2 = 0 ; | |
6900 | int res2 = 0 ; | |
6901 | PyObject * obj0 = 0 ; | |
6902 | PyObject * obj1 = 0 ; | |
6903 | char * kwnames[] = { | |
6904 | (char *) "self",(char *) "palette", NULL | |
6905 | }; | |
6906 | ||
6907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
6908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6909 | if (!SWIG_IsOK(res1)) { | |
6910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6911 | } | |
6912 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6913 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
6914 | if (!SWIG_IsOK(res2)) { | |
6915 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6916 | } | |
6917 | if (!argp2) { | |
6918 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6919 | } | |
6920 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
6921 | { | |
554f62e9 | 6922 | (arg1)->SetPalette((wxPalette const &)*arg2); |
554f62e9 RD |
6923 | if (PyErr_Occurred()) SWIG_fail; |
6924 | } | |
6925 | resultobj = SWIG_Py_Void(); | |
6926 | return resultobj; | |
6927 | fail: | |
6928 | return NULL; | |
6929 | } | |
6930 | ||
6931 | ||
6932 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6933 | PyObject *resultobj = 0; | |
6934 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6935 | wxIcon *arg2 = 0 ; | |
6936 | bool result; | |
6937 | void *argp1 = 0 ; | |
6938 | int res1 = 0 ; | |
6939 | void *argp2 = 0 ; | |
6940 | int res2 = 0 ; | |
6941 | PyObject * obj0 = 0 ; | |
6942 | PyObject * obj1 = 0 ; | |
6943 | char * kwnames[] = { | |
6944 | (char *) "self",(char *) "icon", NULL | |
6945 | }; | |
6946 | ||
6947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6949 | if (!SWIG_IsOK(res1)) { | |
6950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6951 | } | |
6952 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6953 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6954 | if (!SWIG_IsOK(res2)) { | |
6955 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6956 | } | |
6957 | if (!argp2) { | |
6958 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6959 | } | |
6960 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6961 | { | |
554f62e9 | 6962 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
554f62e9 RD |
6963 | if (PyErr_Occurred()) SWIG_fail; |
6964 | } | |
6965 | { | |
6966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6967 | } | |
6968 | return resultobj; | |
6969 | fail: | |
6970 | return NULL; | |
6971 | } | |
6972 | ||
6973 | ||
6974 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6975 | PyObject *resultobj = 0; | |
6976 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6977 | int arg2 ; | |
6978 | void *argp1 = 0 ; | |
6979 | int res1 = 0 ; | |
6980 | int val2 ; | |
6981 | int ecode2 = 0 ; | |
6982 | PyObject * obj0 = 0 ; | |
6983 | PyObject * obj1 = 0 ; | |
6984 | char * kwnames[] = { | |
6985 | (char *) "self",(char *) "height", NULL | |
6986 | }; | |
6987 | ||
6988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6990 | if (!SWIG_IsOK(res1)) { | |
6991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6992 | } | |
6993 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6994 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6995 | if (!SWIG_IsOK(ecode2)) { | |
6996 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6997 | } | |
6998 | arg2 = static_cast< int >(val2); | |
6999 | { | |
554f62e9 | 7000 | (arg1)->SetHeight(arg2); |
554f62e9 RD |
7001 | if (PyErr_Occurred()) SWIG_fail; |
7002 | } | |
7003 | resultobj = SWIG_Py_Void(); | |
7004 | return resultobj; | |
7005 | fail: | |
7006 | return NULL; | |
7007 | } | |
7008 | ||
7009 | ||
7010 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7011 | PyObject *resultobj = 0; | |
7012 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7013 | int arg2 ; | |
7014 | void *argp1 = 0 ; | |
7015 | int res1 = 0 ; | |
7016 | int val2 ; | |
7017 | int ecode2 = 0 ; | |
7018 | PyObject * obj0 = 0 ; | |
7019 | PyObject * obj1 = 0 ; | |
7020 | char * kwnames[] = { | |
7021 | (char *) "self",(char *) "width", NULL | |
7022 | }; | |
7023 | ||
7024 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7026 | if (!SWIG_IsOK(res1)) { | |
7027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7028 | } | |
7029 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7030 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7031 | if (!SWIG_IsOK(ecode2)) { | |
7032 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
7033 | } | |
7034 | arg2 = static_cast< int >(val2); | |
7035 | { | |
554f62e9 | 7036 | (arg1)->SetWidth(arg2); |
554f62e9 RD |
7037 | if (PyErr_Occurred()) SWIG_fail; |
7038 | } | |
7039 | resultobj = SWIG_Py_Void(); | |
7040 | return resultobj; | |
7041 | fail: | |
7042 | return NULL; | |
7043 | } | |
7044 | ||
7045 | ||
7046 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7047 | PyObject *resultobj = 0; | |
7048 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7049 | int arg2 ; | |
7050 | void *argp1 = 0 ; | |
7051 | int res1 = 0 ; | |
7052 | int val2 ; | |
7053 | int ecode2 = 0 ; | |
7054 | PyObject * obj0 = 0 ; | |
7055 | PyObject * obj1 = 0 ; | |
7056 | char * kwnames[] = { | |
7057 | (char *) "self",(char *) "depth", NULL | |
7058 | }; | |
7059 | ||
7060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7062 | if (!SWIG_IsOK(res1)) { | |
7063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7064 | } | |
7065 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7066 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7067 | if (!SWIG_IsOK(ecode2)) { | |
7068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
7069 | } | |
7070 | arg2 = static_cast< int >(val2); | |
7071 | { | |
554f62e9 | 7072 | (arg1)->SetDepth(arg2); |
554f62e9 RD |
7073 | if (PyErr_Occurred()) SWIG_fail; |
7074 | } | |
7075 | resultobj = SWIG_Py_Void(); | |
7076 | return resultobj; | |
7077 | fail: | |
7078 | return NULL; | |
7079 | } | |
7080 | ||
7081 | ||
7082 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7083 | PyObject *resultobj = 0; | |
7084 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7085 | wxSize *arg2 = 0 ; | |
7086 | void *argp1 = 0 ; | |
7087 | int res1 = 0 ; | |
7088 | wxSize temp2 ; | |
7089 | PyObject * obj0 = 0 ; | |
7090 | PyObject * obj1 = 0 ; | |
7091 | char * kwnames[] = { | |
7092 | (char *) "self",(char *) "size", NULL | |
7093 | }; | |
7094 | ||
7095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
7096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7097 | if (!SWIG_IsOK(res1)) { | |
7098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7099 | } | |
7100 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7101 | { | |
7102 | arg2 = &temp2; | |
7103 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7104 | } | |
7105 | { | |
554f62e9 | 7106 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
554f62e9 RD |
7107 | if (PyErr_Occurred()) SWIG_fail; |
7108 | } | |
7109 | resultobj = SWIG_Py_Void(); | |
7110 | return resultobj; | |
7111 | fail: | |
7112 | return NULL; | |
7113 | } | |
7114 | ||
7115 | ||
7116 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7117 | PyObject *resultobj = 0; | |
7118 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7119 | wxCursor *arg2 = 0 ; | |
7120 | bool result; | |
7121 | void *argp1 = 0 ; | |
7122 | int res1 = 0 ; | |
7123 | void *argp2 = 0 ; | |
7124 | int res2 = 0 ; | |
7125 | PyObject * obj0 = 0 ; | |
7126 | PyObject * obj1 = 0 ; | |
7127 | char * kwnames[] = { | |
7128 | (char *) "self",(char *) "cursor", NULL | |
7129 | }; | |
7130 | ||
7131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail; | |
7132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7133 | if (!SWIG_IsOK(res1)) { | |
7134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7135 | } | |
7136 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7137 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
7138 | if (!SWIG_IsOK(res2)) { | |
7139 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
7140 | } | |
7141 | if (!argp2) { | |
7142 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
7143 | } | |
7144 | arg2 = reinterpret_cast< wxCursor * >(argp2); | |
7145 | { | |
554f62e9 | 7146 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); |
554f62e9 RD |
7147 | if (PyErr_Occurred()) SWIG_fail; |
7148 | } | |
7149 | { | |
7150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7151 | } | |
7152 | return resultobj; | |
7153 | fail: | |
7154 | return NULL; | |
7155 | } | |
7156 | ||
7157 | ||
8f514ab4 RD |
7158 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7159 | PyObject *resultobj = 0; | |
7160 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7161 | buffer arg2 ; | |
7162 | int arg3 ; | |
7163 | void *argp1 = 0 ; | |
7164 | int res1 = 0 ; | |
7165 | Py_ssize_t temp2 ; | |
7166 | PyObject * obj0 = 0 ; | |
7167 | PyObject * obj1 = 0 ; | |
7168 | char * kwnames[] = { | |
7169 | (char *) "self",(char *) "data", NULL | |
7170 | }; | |
7171 | ||
7172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7174 | if (!SWIG_IsOK(res1)) { | |
7175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7176 | } | |
7177 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7178 | { | |
7179 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7180 | arg3 = (int)temp2; | |
7181 | } | |
7182 | { | |
7183 | wxBitmap_CopyFromBuffer(arg1,arg2,arg3); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
7185 | } | |
7186 | resultobj = SWIG_Py_Void(); | |
7187 | return resultobj; | |
7188 | fail: | |
7189 | return NULL; | |
7190 | } | |
7191 | ||
7192 | ||
7193 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7194 | PyObject *resultobj = 0; | |
7195 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7196 | buffer arg2 ; | |
7197 | int arg3 ; | |
7198 | void *argp1 = 0 ; | |
7199 | int res1 = 0 ; | |
7200 | Py_ssize_t temp2 ; | |
7201 | PyObject * obj0 = 0 ; | |
7202 | PyObject * obj1 = 0 ; | |
7203 | char * kwnames[] = { | |
7204 | (char *) "self",(char *) "data", NULL | |
7205 | }; | |
7206 | ||
7207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail; | |
7208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7209 | if (!SWIG_IsOK(res1)) { | |
7210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7211 | } | |
7212 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7213 | { | |
7214 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7215 | arg3 = (int)temp2; | |
7216 | } | |
7217 | { | |
7218 | wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3); | |
7219 | if (PyErr_Occurred()) SWIG_fail; | |
7220 | } | |
7221 | resultobj = SWIG_Py_Void(); | |
7222 | return resultobj; | |
7223 | fail: | |
7224 | return NULL; | |
7225 | } | |
7226 | ||
7227 | ||
554f62e9 RD |
7228 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7229 | PyObject *resultobj = 0; | |
7230 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7231 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7232 | bool result; | |
7233 | void *argp1 = 0 ; | |
7234 | int res1 = 0 ; | |
7235 | void *argp2 = 0 ; | |
7236 | int res2 = 0 ; | |
7237 | PyObject * obj0 = 0 ; | |
7238 | PyObject * obj1 = 0 ; | |
7239 | char * kwnames[] = { | |
7240 | (char *) "self",(char *) "other", NULL | |
7241 | }; | |
7242 | ||
7243 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7244 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7245 | if (!SWIG_IsOK(res1)) { | |
7246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7247 | } | |
7248 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7249 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7250 | if (!SWIG_IsOK(res2)) { | |
7251 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7252 | } | |
7253 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7254 | { | |
554f62e9 | 7255 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
554f62e9 RD |
7256 | if (PyErr_Occurred()) SWIG_fail; |
7257 | } | |
7258 | { | |
fc46b7f3 RD |
7259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7260 | } | |
7261 | return resultobj; | |
7262 | fail: | |
7263 | return NULL; | |
7264 | } | |
7265 | ||
7266 | ||
7267 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7268 | PyObject *resultobj = 0; | |
7269 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7270 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7271 | bool result; | |
7272 | void *argp1 = 0 ; | |
7273 | int res1 = 0 ; | |
7274 | void *argp2 = 0 ; | |
7275 | int res2 = 0 ; | |
7276 | PyObject * obj0 = 0 ; | |
7277 | PyObject * obj1 = 0 ; | |
7278 | char * kwnames[] = { | |
7279 | (char *) "self",(char *) "other", NULL | |
7280 | }; | |
7281 | ||
7282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7283 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7284 | if (!SWIG_IsOK(res1)) { | |
7285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7286 | } | |
7287 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7288 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7289 | if (!SWIG_IsOK(res2)) { | |
7290 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7291 | } | |
7292 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7293 | { | |
7294 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
7295 | if (PyErr_Occurred()) SWIG_fail; | |
7296 | } | |
7297 | { | |
7298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7299 | } | |
7300 | return resultobj; | |
7301 | fail: | |
7302 | return NULL; | |
7303 | } | |
7304 | ||
7305 | ||
7306 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7307 | PyObject *obj; | |
7308 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7309 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
7310 | return SWIG_Py_Void(); | |
7311 | } | |
7312 | ||
7313 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7314 | return SWIG_Python_InitShadowInstance(args); | |
7315 | } | |
7316 | ||
7317 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7318 | PyObject *resultobj = 0; | |
7319 | int arg1 ; | |
7320 | int arg2 ; | |
7321 | buffer arg3 ; | |
7322 | int arg4 ; | |
7323 | buffer arg5 ; | |
7324 | int arg6 ; | |
7325 | wxBitmap *result = 0 ; | |
7326 | int val1 ; | |
7327 | int ecode1 = 0 ; | |
7328 | int val2 ; | |
7329 | int ecode2 = 0 ; | |
e46e7e0d RD |
7330 | Py_ssize_t temp3 ; |
7331 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
7332 | PyObject * obj0 = 0 ; |
7333 | PyObject * obj1 = 0 ; | |
7334 | PyObject * obj2 = 0 ; | |
7335 | PyObject * obj3 = 0 ; | |
7336 | char * kwnames[] = { | |
7337 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7338 | }; | |
7339 | ||
7340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7341 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7342 | if (!SWIG_IsOK(ecode1)) { | |
7343 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7344 | } | |
7345 | arg1 = static_cast< int >(val1); | |
7346 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7347 | if (!SWIG_IsOK(ecode2)) { | |
7348 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7349 | } | |
7350 | arg2 = static_cast< int >(val2); | |
7351 | { | |
e46e7e0d RD |
7352 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7353 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7354 | } |
7355 | { | |
7356 | if (obj3 != Py_None) { | |
e46e7e0d RD |
7357 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7358 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7359 | } |
7360 | } | |
7361 | { | |
7362 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7363 | if (PyErr_Occurred()) SWIG_fail; | |
7364 | } | |
7365 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7366 | return resultobj; | |
7367 | fail: | |
7368 | return NULL; | |
7369 | } | |
7370 | ||
7371 | ||
7372 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7373 | PyObject *resultobj = 0; | |
7374 | int arg1 ; | |
7375 | int arg2 ; | |
7376 | buffer arg3 ; | |
7377 | int arg4 ; | |
7378 | wxBitmap *result = 0 ; | |
7379 | int val1 ; | |
7380 | int ecode1 = 0 ; | |
7381 | int val2 ; | |
7382 | int ecode2 = 0 ; | |
e46e7e0d | 7383 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7384 | PyObject * obj0 = 0 ; |
7385 | PyObject * obj1 = 0 ; | |
7386 | PyObject * obj2 = 0 ; | |
7387 | char * kwnames[] = { | |
7388 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7389 | }; | |
7390 | ||
7391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7392 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7393 | if (!SWIG_IsOK(ecode1)) { | |
7394 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7395 | } | |
7396 | arg1 = static_cast< int >(val1); | |
7397 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7398 | if (!SWIG_IsOK(ecode2)) { | |
7399 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7400 | } | |
7401 | arg2 = static_cast< int >(val2); | |
7402 | { | |
e46e7e0d RD |
7403 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7404 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7405 | } |
7406 | { | |
7407 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7408 | if (PyErr_Occurred()) SWIG_fail; | |
7409 | } | |
7410 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7411 | return resultobj; | |
7412 | fail: | |
7413 | return NULL; | |
7414 | } | |
7415 | ||
7416 | ||
7417 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7418 | PyObject *resultobj = 0; | |
7419 | int arg1 ; | |
7420 | int arg2 ; | |
7421 | buffer arg3 ; | |
7422 | int arg4 ; | |
7423 | wxBitmap *result = 0 ; | |
7424 | int val1 ; | |
7425 | int ecode1 = 0 ; | |
7426 | int val2 ; | |
7427 | int ecode2 = 0 ; | |
e46e7e0d | 7428 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7429 | PyObject * obj0 = 0 ; |
7430 | PyObject * obj1 = 0 ; | |
7431 | PyObject * obj2 = 0 ; | |
7432 | char * kwnames[] = { | |
7433 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7434 | }; | |
7435 | ||
7436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7437 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7438 | if (!SWIG_IsOK(ecode1)) { | |
7439 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7440 | } | |
7441 | arg1 = static_cast< int >(val1); | |
7442 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7443 | if (!SWIG_IsOK(ecode2)) { | |
7444 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7445 | } | |
7446 | arg2 = static_cast< int >(val2); | |
7447 | { | |
e46e7e0d RD |
7448 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7449 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7450 | } |
7451 | { | |
7452 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7453 | if (PyErr_Occurred()) SWIG_fail; | |
7454 | } | |
7455 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7456 | return resultobj; | |
7457 | fail: | |
7458 | return NULL; | |
7459 | } | |
7460 | ||
7461 | ||
7462 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7463 | PyObject *resultobj = 0; | |
7464 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7465 | wxPoint result; | |
7466 | void *argp1 = 0 ; | |
7467 | int res1 = 0 ; | |
7468 | PyObject *swig_obj[1] ; | |
7469 | ||
7470 | if (!args) SWIG_fail; | |
7471 | swig_obj[0] = args; | |
7472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7473 | if (!SWIG_IsOK(res1)) { | |
7474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7475 | } | |
7476 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7477 | { | |
7478 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7479 | if (PyErr_Occurred()) SWIG_fail; | |
7480 | } | |
7481 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7482 | return resultobj; | |
7483 | fail: | |
7484 | return NULL; | |
7485 | } | |
7486 | ||
7487 | ||
7488 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7489 | PyObject *resultobj = 0; | |
7490 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7491 | int result; | |
7492 | void *argp1 = 0 ; | |
7493 | int res1 = 0 ; | |
7494 | PyObject *swig_obj[1] ; | |
7495 | ||
7496 | if (!args) SWIG_fail; | |
7497 | swig_obj[0] = args; | |
7498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7499 | if (!SWIG_IsOK(res1)) { | |
7500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7501 | } | |
7502 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7503 | { | |
7504 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7505 | if (PyErr_Occurred()) SWIG_fail; | |
7506 | } | |
7507 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7508 | return resultobj; | |
7509 | fail: | |
7510 | return NULL; | |
7511 | } | |
7512 | ||
7513 | ||
7514 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7515 | PyObject *resultobj = 0; | |
7516 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7517 | int result; | |
7518 | void *argp1 = 0 ; | |
7519 | int res1 = 0 ; | |
7520 | PyObject *swig_obj[1] ; | |
7521 | ||
7522 | if (!args) SWIG_fail; | |
7523 | swig_obj[0] = args; | |
7524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7525 | if (!SWIG_IsOK(res1)) { | |
7526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7527 | } | |
7528 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7529 | { | |
7530 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
7533 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7534 | return resultobj; | |
7535 | fail: | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
7540 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7541 | PyObject *resultobj = 0; | |
7542 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7543 | wxSize result; | |
7544 | void *argp1 = 0 ; | |
7545 | int res1 = 0 ; | |
7546 | PyObject *swig_obj[1] ; | |
7547 | ||
7548 | if (!args) SWIG_fail; | |
7549 | swig_obj[0] = args; | |
7550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7551 | if (!SWIG_IsOK(res1)) { | |
7552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7553 | } | |
7554 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7555 | { | |
7556 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7557 | if (PyErr_Occurred()) SWIG_fail; | |
7558 | } | |
7559 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7560 | return resultobj; | |
7561 | fail: | |
7562 | return NULL; | |
7563 | } | |
7564 | ||
7565 | ||
7566 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7567 | PyObject *resultobj = 0; | |
7568 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7569 | int result; | |
7570 | void *argp1 = 0 ; | |
7571 | int res1 = 0 ; | |
7572 | PyObject *swig_obj[1] ; | |
7573 | ||
7574 | if (!args) SWIG_fail; | |
7575 | swig_obj[0] = args; | |
7576 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7577 | if (!SWIG_IsOK(res1)) { | |
7578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7579 | } | |
7580 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7581 | { | |
7582 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7583 | if (PyErr_Occurred()) SWIG_fail; | |
7584 | } | |
7585 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7586 | return resultobj; | |
7587 | fail: | |
7588 | return NULL; | |
7589 | } | |
7590 | ||
7591 | ||
7592 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7593 | PyObject *obj; | |
7594 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7595 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7596 | return SWIG_Py_Void(); | |
7597 | } | |
7598 | ||
7599 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7600 | PyObject *resultobj = 0; | |
7601 | wxBitmap *arg1 = 0 ; | |
7602 | wxNativePixelData *result = 0 ; | |
7603 | void *argp1 = 0 ; | |
7604 | int res1 = 0 ; | |
7605 | ||
7606 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7608 | if (!SWIG_IsOK(res1)) { | |
7609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7610 | } | |
7611 | if (!argp1) { | |
7612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7613 | } | |
7614 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7615 | { | |
7616 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7617 | if (PyErr_Occurred()) SWIG_fail; | |
7618 | } | |
7619 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7620 | return resultobj; | |
7621 | fail: | |
7622 | return NULL; | |
7623 | } | |
7624 | ||
7625 | ||
7626 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7627 | PyObject *resultobj = 0; | |
7628 | wxBitmap *arg1 = 0 ; | |
7629 | wxRect *arg2 = 0 ; | |
7630 | wxNativePixelData *result = 0 ; | |
7631 | void *argp1 = 0 ; | |
7632 | int res1 = 0 ; | |
7633 | wxRect temp2 ; | |
7634 | ||
7635 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7637 | if (!SWIG_IsOK(res1)) { | |
7638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7639 | } | |
7640 | if (!argp1) { | |
7641 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7642 | } | |
7643 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7644 | { | |
7645 | arg2 = &temp2; | |
7646 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7647 | } | |
7648 | { | |
7649 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7650 | if (PyErr_Occurred()) SWIG_fail; | |
7651 | } | |
7652 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7653 | return resultobj; | |
7654 | fail: | |
7655 | return NULL; | |
7656 | } | |
7657 | ||
7658 | ||
7659 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7660 | PyObject *resultobj = 0; | |
7661 | wxBitmap *arg1 = 0 ; | |
7662 | wxPoint *arg2 = 0 ; | |
7663 | wxSize *arg3 = 0 ; | |
7664 | wxNativePixelData *result = 0 ; | |
7665 | void *argp1 = 0 ; | |
7666 | int res1 = 0 ; | |
7667 | wxPoint temp2 ; | |
7668 | wxSize temp3 ; | |
7669 | ||
7670 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7671 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7672 | if (!SWIG_IsOK(res1)) { | |
7673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7674 | } | |
7675 | if (!argp1) { | |
7676 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7677 | } | |
7678 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7679 | { | |
7680 | arg2 = &temp2; | |
7681 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7682 | } | |
7683 | { | |
7684 | arg3 = &temp3; | |
7685 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7686 | } | |
7687 | { | |
7688 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
7690 | } | |
7691 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7692 | return resultobj; | |
7693 | fail: | |
7694 | return NULL; | |
7695 | } | |
7696 | ||
7697 | ||
7698 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7699 | int argc; | |
7700 | PyObject *argv[4]; | |
7701 | ||
7702 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7703 | --argc; | |
7704 | if (argc == 1) { | |
7705 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7706 | } | |
7707 | if (argc == 2) { | |
7708 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7709 | } | |
7710 | if (argc == 3) { | |
7711 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7712 | } | |
7713 | ||
7714 | fail: | |
7715 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7716 | return NULL; | |
7717 | } | |
7718 | ||
7719 | ||
7720 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7721 | PyObject *resultobj = 0; | |
7722 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7723 | void *argp1 = 0 ; | |
7724 | int res1 = 0 ; | |
7725 | PyObject *swig_obj[1] ; | |
7726 | ||
7727 | if (!args) SWIG_fail; | |
7728 | swig_obj[0] = args; | |
7729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7730 | if (!SWIG_IsOK(res1)) { | |
7731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7732 | } | |
7733 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7734 | { | |
7735 | delete arg1; | |
7736 | ||
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | } | |
7739 | resultobj = SWIG_Py_Void(); | |
7740 | return resultobj; | |
7741 | fail: | |
7742 | return NULL; | |
7743 | } | |
7744 | ||
7745 | ||
7746 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7747 | PyObject *resultobj = 0; | |
7748 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7749 | wxNativePixelData_Accessor result; | |
7750 | void *argp1 = 0 ; | |
7751 | int res1 = 0 ; | |
7752 | PyObject *swig_obj[1] ; | |
7753 | ||
7754 | if (!args) SWIG_fail; | |
7755 | swig_obj[0] = args; | |
7756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7757 | if (!SWIG_IsOK(res1)) { | |
7758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7759 | } | |
7760 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7761 | { | |
7762 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7763 | if (PyErr_Occurred()) SWIG_fail; | |
7764 | } | |
7765 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7766 | return resultobj; | |
7767 | fail: | |
7768 | return NULL; | |
7769 | } | |
7770 | ||
7771 | ||
7772 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7773 | PyObject *resultobj = 0; | |
7774 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7775 | void *argp1 = 0 ; | |
7776 | int res1 = 0 ; | |
7777 | PyObject *swig_obj[1] ; | |
7778 | ||
7779 | if (!args) SWIG_fail; | |
7780 | swig_obj[0] = args; | |
7781 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7782 | if (!SWIG_IsOK(res1)) { | |
7783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7784 | } | |
7785 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7786 | { | |
7787 | (arg1)->UseAlpha(); | |
7788 | if (PyErr_Occurred()) SWIG_fail; | |
7789 | } | |
7790 | resultobj = SWIG_Py_Void(); | |
7791 | return resultobj; | |
7792 | fail: | |
7793 | return NULL; | |
7794 | } | |
7795 | ||
7796 | ||
7797 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7798 | PyObject *resultobj = 0; | |
7799 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7800 | bool result; | |
7801 | void *argp1 = 0 ; | |
7802 | int res1 = 0 ; | |
7803 | PyObject *swig_obj[1] ; | |
7804 | ||
7805 | if (!args) SWIG_fail; | |
7806 | swig_obj[0] = args; | |
7807 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7808 | if (!SWIG_IsOK(res1)) { | |
7809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7810 | } | |
7811 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7812 | { | |
7813 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7814 | if (PyErr_Occurred()) SWIG_fail; | |
7815 | } | |
7816 | { | |
7817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7818 | } | |
7819 | return resultobj; | |
7820 | fail: | |
7821 | return NULL; | |
7822 | } | |
7823 | ||
7824 | ||
7825 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7826 | PyObject *obj; | |
7827 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7828 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7829 | return SWIG_Py_Void(); | |
7830 | } | |
7831 | ||
7832 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7833 | return SWIG_Python_InitShadowInstance(args); | |
7834 | } | |
7835 | ||
7836 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7837 | PyObject *resultobj = 0; | |
7838 | wxNativePixelData *arg1 = 0 ; | |
7839 | wxNativePixelData_Accessor *result = 0 ; | |
7840 | void *argp1 = 0 ; | |
7841 | int res1 = 0 ; | |
7842 | ||
7843 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7845 | if (!SWIG_IsOK(res1)) { | |
7846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7847 | } | |
7848 | if (!argp1) { | |
7849 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7850 | } | |
7851 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7852 | { | |
7853 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7854 | if (PyErr_Occurred()) SWIG_fail; | |
7855 | } | |
7856 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7857 | return resultobj; | |
7858 | fail: | |
7859 | return NULL; | |
7860 | } | |
7861 | ||
7862 | ||
7863 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7864 | PyObject *resultobj = 0; | |
7865 | wxBitmap *arg1 = 0 ; | |
7866 | wxNativePixelData *arg2 = 0 ; | |
7867 | wxNativePixelData_Accessor *result = 0 ; | |
7868 | void *argp1 = 0 ; | |
7869 | int res1 = 0 ; | |
7870 | void *argp2 = 0 ; | |
7871 | int res2 = 0 ; | |
7872 | ||
7873 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7875 | if (!SWIG_IsOK(res1)) { | |
7876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7877 | } | |
7878 | if (!argp1) { | |
7879 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7880 | } | |
7881 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7882 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7883 | if (!SWIG_IsOK(res2)) { | |
7884 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7885 | } | |
7886 | if (!argp2) { | |
7887 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7888 | } | |
7889 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7890 | { | |
7891 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7892 | if (PyErr_Occurred()) SWIG_fail; | |
7893 | } | |
7894 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7895 | return resultobj; | |
7896 | fail: | |
7897 | return NULL; | |
7898 | } | |
7899 | ||
7900 | ||
7901 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7902 | PyObject *resultobj = 0; | |
7903 | wxNativePixelData_Accessor *result = 0 ; | |
7904 | ||
7905 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7906 | { | |
7907 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7908 | if (PyErr_Occurred()) SWIG_fail; | |
7909 | } | |
7910 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | return NULL; | |
7914 | } | |
7915 | ||
7916 | ||
7917 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7918 | int argc; | |
7919 | PyObject *argv[3]; | |
7920 | ||
7921 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7922 | --argc; | |
7923 | if (argc == 0) { | |
7924 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7925 | } | |
7926 | if (argc == 1) { | |
7927 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7928 | } | |
7929 | if (argc == 2) { | |
7930 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7931 | } | |
7932 | ||
7933 | fail: | |
7934 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7935 | return NULL; | |
7936 | } | |
7937 | ||
7938 | ||
7939 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7940 | PyObject *resultobj = 0; | |
7941 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7942 | void *argp1 = 0 ; | |
7943 | int res1 = 0 ; | |
7944 | PyObject *swig_obj[1] ; | |
7945 | ||
7946 | if (!args) SWIG_fail; | |
7947 | swig_obj[0] = args; | |
7948 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7949 | if (!SWIG_IsOK(res1)) { | |
7950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7951 | } | |
7952 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7953 | { | |
7954 | delete arg1; | |
7955 | ||
7956 | if (PyErr_Occurred()) SWIG_fail; | |
7957 | } | |
7958 | resultobj = SWIG_Py_Void(); | |
7959 | return resultobj; | |
7960 | fail: | |
7961 | return NULL; | |
7962 | } | |
7963 | ||
7964 | ||
7965 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7966 | PyObject *resultobj = 0; | |
7967 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7968 | wxNativePixelData *arg2 = 0 ; | |
7969 | void *argp1 = 0 ; | |
7970 | int res1 = 0 ; | |
7971 | void *argp2 = 0 ; | |
7972 | int res2 = 0 ; | |
7973 | PyObject * obj0 = 0 ; | |
7974 | PyObject * obj1 = 0 ; | |
7975 | char * kwnames[] = { | |
7976 | (char *) "self",(char *) "data", NULL | |
7977 | }; | |
7978 | ||
7979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
7980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7981 | if (!SWIG_IsOK(res1)) { | |
7982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7983 | } | |
7984 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7985 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7986 | if (!SWIG_IsOK(res2)) { | |
7987 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7988 | } | |
7989 | if (!argp2) { | |
7990 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7991 | } | |
7992 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7993 | { | |
7994 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
7995 | if (PyErr_Occurred()) SWIG_fail; | |
7996 | } | |
7997 | resultobj = SWIG_Py_Void(); | |
7998 | return resultobj; | |
7999 | fail: | |
8000 | return NULL; | |
8001 | } | |
8002 | ||
8003 | ||
8004 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8005 | PyObject *resultobj = 0; | |
8006 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8007 | bool result; | |
8008 | void *argp1 = 0 ; | |
8009 | int res1 = 0 ; | |
8010 | PyObject *swig_obj[1] ; | |
8011 | ||
8012 | if (!args) SWIG_fail; | |
8013 | swig_obj[0] = args; | |
8014 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8015 | if (!SWIG_IsOK(res1)) { | |
8016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
8017 | } | |
8018 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8019 | { | |
8020 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | } | |
8023 | { | |
8024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8025 | } | |
8026 | return resultobj; | |
8027 | fail: | |
8028 | return NULL; | |
8029 | } | |
8030 | ||
8031 | ||
8032 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8033 | PyObject *resultobj = 0; | |
8034 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8035 | void *argp1 = 0 ; | |
8036 | int res1 = 0 ; | |
8037 | PyObject *swig_obj[1] ; | |
8038 | ||
8039 | if (!args) SWIG_fail; | |
8040 | swig_obj[0] = args; | |
8041 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8042 | if (!SWIG_IsOK(res1)) { | |
8043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8044 | } | |
8045 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8046 | { | |
8047 | wxNativePixelData_Accessor_nextPixel(arg1); | |
8048 | if (PyErr_Occurred()) SWIG_fail; | |
8049 | } | |
8050 | resultobj = SWIG_Py_Void(); | |
8051 | return resultobj; | |
8052 | fail: | |
8053 | return NULL; | |
8054 | } | |
8055 | ||
8056 | ||
8057 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8058 | PyObject *resultobj = 0; | |
8059 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8060 | wxNativePixelData *arg2 = 0 ; | |
8061 | int arg3 ; | |
8062 | int arg4 ; | |
8063 | void *argp1 = 0 ; | |
8064 | int res1 = 0 ; | |
8065 | void *argp2 = 0 ; | |
8066 | int res2 = 0 ; | |
8067 | int val3 ; | |
8068 | int ecode3 = 0 ; | |
8069 | int val4 ; | |
8070 | int ecode4 = 0 ; | |
8071 | PyObject * obj0 = 0 ; | |
8072 | PyObject * obj1 = 0 ; | |
8073 | PyObject * obj2 = 0 ; | |
8074 | PyObject * obj3 = 0 ; | |
8075 | char * kwnames[] = { | |
8076 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8077 | }; | |
8078 | ||
8079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8081 | if (!SWIG_IsOK(res1)) { | |
8082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8083 | } | |
8084 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8085 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8086 | if (!SWIG_IsOK(res2)) { | |
8087 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8088 | } | |
8089 | if (!argp2) { | |
8090 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8091 | } | |
8092 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8093 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8094 | if (!SWIG_IsOK(ecode3)) { | |
8095 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8096 | } | |
8097 | arg3 = static_cast< int >(val3); | |
8098 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8099 | if (!SWIG_IsOK(ecode4)) { | |
8100 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8101 | } | |
8102 | arg4 = static_cast< int >(val4); | |
8103 | { | |
8104 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
8105 | if (PyErr_Occurred()) SWIG_fail; | |
8106 | } | |
8107 | resultobj = SWIG_Py_Void(); | |
8108 | return resultobj; | |
8109 | fail: | |
8110 | return NULL; | |
8111 | } | |
8112 | ||
8113 | ||
8114 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8115 | PyObject *resultobj = 0; | |
8116 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8117 | wxNativePixelData *arg2 = 0 ; | |
8118 | int arg3 ; | |
8119 | void *argp1 = 0 ; | |
8120 | int res1 = 0 ; | |
8121 | void *argp2 = 0 ; | |
8122 | int res2 = 0 ; | |
8123 | int val3 ; | |
8124 | int ecode3 = 0 ; | |
8125 | PyObject * obj0 = 0 ; | |
8126 | PyObject * obj1 = 0 ; | |
8127 | PyObject * obj2 = 0 ; | |
8128 | char * kwnames[] = { | |
8129 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8130 | }; | |
8131 | ||
8132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8134 | if (!SWIG_IsOK(res1)) { | |
8135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8136 | } | |
8137 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8138 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8139 | if (!SWIG_IsOK(res2)) { | |
8140 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8141 | } | |
8142 | if (!argp2) { | |
8143 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8144 | } | |
8145 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8146 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8147 | if (!SWIG_IsOK(ecode3)) { | |
8148 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8149 | } | |
8150 | arg3 = static_cast< int >(val3); | |
8151 | { | |
8152 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
8153 | if (PyErr_Occurred()) SWIG_fail; | |
8154 | } | |
8155 | resultobj = SWIG_Py_Void(); | |
8156 | return resultobj; | |
8157 | fail: | |
8158 | return NULL; | |
8159 | } | |
8160 | ||
8161 | ||
8162 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8163 | PyObject *resultobj = 0; | |
8164 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8165 | wxNativePixelData *arg2 = 0 ; | |
8166 | int arg3 ; | |
8167 | void *argp1 = 0 ; | |
8168 | int res1 = 0 ; | |
8169 | void *argp2 = 0 ; | |
8170 | int res2 = 0 ; | |
8171 | int val3 ; | |
8172 | int ecode3 = 0 ; | |
8173 | PyObject * obj0 = 0 ; | |
8174 | PyObject * obj1 = 0 ; | |
8175 | PyObject * obj2 = 0 ; | |
8176 | char * kwnames[] = { | |
8177 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8178 | }; | |
8179 | ||
8180 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8181 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8182 | if (!SWIG_IsOK(res1)) { | |
8183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8184 | } | |
8185 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8186 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8187 | if (!SWIG_IsOK(res2)) { | |
8188 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8189 | } | |
8190 | if (!argp2) { | |
8191 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8192 | } | |
8193 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8194 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8195 | if (!SWIG_IsOK(ecode3)) { | |
8196 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8197 | } | |
8198 | arg3 = static_cast< int >(val3); | |
8199 | { | |
8200 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
8201 | if (PyErr_Occurred()) SWIG_fail; | |
8202 | } | |
8203 | resultobj = SWIG_Py_Void(); | |
8204 | return resultobj; | |
8205 | fail: | |
8206 | return NULL; | |
8207 | } | |
8208 | ||
8209 | ||
8210 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8211 | PyObject *resultobj = 0; | |
8212 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8213 | wxNativePixelData *arg2 = 0 ; | |
8214 | int arg3 ; | |
8215 | int arg4 ; | |
8216 | void *argp1 = 0 ; | |
8217 | int res1 = 0 ; | |
8218 | void *argp2 = 0 ; | |
8219 | int res2 = 0 ; | |
8220 | int val3 ; | |
8221 | int ecode3 = 0 ; | |
8222 | int val4 ; | |
8223 | int ecode4 = 0 ; | |
8224 | PyObject * obj0 = 0 ; | |
8225 | PyObject * obj1 = 0 ; | |
8226 | PyObject * obj2 = 0 ; | |
8227 | PyObject * obj3 = 0 ; | |
8228 | char * kwnames[] = { | |
8229 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8230 | }; | |
8231 | ||
8232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8234 | if (!SWIG_IsOK(res1)) { | |
8235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8236 | } | |
8237 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8238 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8239 | if (!SWIG_IsOK(res2)) { | |
8240 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8241 | } | |
8242 | if (!argp2) { | |
8243 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8244 | } | |
8245 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8246 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8247 | if (!SWIG_IsOK(ecode3)) { | |
8248 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8249 | } | |
8250 | arg3 = static_cast< int >(val3); | |
8251 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8252 | if (!SWIG_IsOK(ecode4)) { | |
8253 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8254 | } | |
8255 | arg4 = static_cast< int >(val4); | |
8256 | { | |
8257 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
8258 | if (PyErr_Occurred()) SWIG_fail; | |
8259 | } | |
8260 | resultobj = SWIG_Py_Void(); | |
8261 | return resultobj; | |
8262 | fail: | |
8263 | return NULL; | |
8264 | } | |
8265 | ||
8266 | ||
8267 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8268 | PyObject *resultobj = 0; | |
8269 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8270 | byte arg2 ; | |
8271 | byte arg3 ; | |
8272 | byte arg4 ; | |
8273 | void *argp1 = 0 ; | |
8274 | int res1 = 0 ; | |
8275 | unsigned char val2 ; | |
8276 | int ecode2 = 0 ; | |
8277 | unsigned char val3 ; | |
8278 | int ecode3 = 0 ; | |
8279 | unsigned char val4 ; | |
8280 | int ecode4 = 0 ; | |
8281 | PyObject * obj0 = 0 ; | |
8282 | PyObject * obj1 = 0 ; | |
8283 | PyObject * obj2 = 0 ; | |
8284 | PyObject * obj3 = 0 ; | |
8285 | char * kwnames[] = { | |
8286 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
8287 | }; | |
8288 | ||
8289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8291 | if (!SWIG_IsOK(res1)) { | |
8292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8293 | } | |
8294 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8295 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8296 | if (!SWIG_IsOK(ecode2)) { | |
8297 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8298 | } | |
8299 | arg2 = static_cast< byte >(val2); | |
8300 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8301 | if (!SWIG_IsOK(ecode3)) { | |
8302 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8303 | } | |
8304 | arg3 = static_cast< byte >(val3); | |
8305 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8306 | if (!SWIG_IsOK(ecode4)) { | |
8307 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8308 | } | |
8309 | arg4 = static_cast< byte >(val4); | |
8310 | { | |
8311 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
8312 | if (PyErr_Occurred()) SWIG_fail; | |
8313 | } | |
8314 | resultobj = SWIG_Py_Void(); | |
8315 | return resultobj; | |
8316 | fail: | |
8317 | return NULL; | |
8318 | } | |
8319 | ||
8320 | ||
8321 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8322 | PyObject *resultobj = 0; | |
8323 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8324 | PyObject *result = 0 ; | |
8325 | void *argp1 = 0 ; | |
8326 | int res1 = 0 ; | |
8327 | PyObject *swig_obj[1] ; | |
8328 | ||
8329 | if (!args) SWIG_fail; | |
8330 | swig_obj[0] = args; | |
8331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8332 | if (!SWIG_IsOK(res1)) { | |
8333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8334 | } | |
8335 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8336 | { | |
8337 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8338 | if (PyErr_Occurred()) SWIG_fail; | |
8339 | } | |
8340 | resultobj = result; | |
8341 | return resultobj; | |
8342 | fail: | |
8343 | return NULL; | |
8344 | } | |
8345 | ||
8346 | ||
8347 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8348 | PyObject *obj; | |
8349 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8350 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8351 | return SWIG_Py_Void(); | |
8352 | } | |
8353 | ||
8354 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8355 | return SWIG_Python_InitShadowInstance(args); | |
8356 | } | |
8357 | ||
8358 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8359 | PyObject *resultobj = 0; | |
8360 | wxBitmap *arg1 = 0 ; | |
8361 | wxAlphaPixelData *result = 0 ; | |
8362 | void *argp1 = 0 ; | |
8363 | int res1 = 0 ; | |
8364 | ||
8365 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8366 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8367 | if (!SWIG_IsOK(res1)) { | |
8368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8369 | } | |
8370 | if (!argp1) { | |
8371 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8372 | } | |
8373 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8374 | { | |
8375 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8376 | if (PyErr_Occurred()) SWIG_fail; | |
8377 | } | |
8378 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8379 | return resultobj; | |
8380 | fail: | |
8381 | return NULL; | |
8382 | } | |
8383 | ||
8384 | ||
8385 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8386 | PyObject *resultobj = 0; | |
8387 | wxBitmap *arg1 = 0 ; | |
8388 | wxRect *arg2 = 0 ; | |
8389 | wxAlphaPixelData *result = 0 ; | |
8390 | void *argp1 = 0 ; | |
8391 | int res1 = 0 ; | |
8392 | wxRect temp2 ; | |
8393 | ||
8394 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8395 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8396 | if (!SWIG_IsOK(res1)) { | |
8397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8398 | } | |
8399 | if (!argp1) { | |
8400 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8401 | } | |
8402 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8403 | { | |
8404 | arg2 = &temp2; | |
8405 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8406 | } | |
8407 | { | |
8408 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8409 | if (PyErr_Occurred()) SWIG_fail; | |
8410 | } | |
8411 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8412 | return resultobj; | |
8413 | fail: | |
8414 | return NULL; | |
8415 | } | |
8416 | ||
8417 | ||
8418 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8419 | PyObject *resultobj = 0; | |
8420 | wxBitmap *arg1 = 0 ; | |
8421 | wxPoint *arg2 = 0 ; | |
8422 | wxSize *arg3 = 0 ; | |
8423 | wxAlphaPixelData *result = 0 ; | |
8424 | void *argp1 = 0 ; | |
8425 | int res1 = 0 ; | |
8426 | wxPoint temp2 ; | |
8427 | wxSize temp3 ; | |
8428 | ||
8429 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8430 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8431 | if (!SWIG_IsOK(res1)) { | |
8432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8433 | } | |
8434 | if (!argp1) { | |
8435 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8436 | } | |
8437 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8438 | { | |
8439 | arg2 = &temp2; | |
8440 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8441 | } | |
8442 | { | |
8443 | arg3 = &temp3; | |
8444 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8445 | } | |
8446 | { | |
8447 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8448 | if (PyErr_Occurred()) SWIG_fail; | |
8449 | } | |
8450 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8451 | return resultobj; | |
8452 | fail: | |
8453 | return NULL; | |
8454 | } | |
8455 | ||
8456 | ||
8457 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8458 | int argc; | |
8459 | PyObject *argv[4]; | |
8460 | ||
8461 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8462 | --argc; | |
8463 | if (argc == 1) { | |
8464 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8465 | } | |
8466 | if (argc == 2) { | |
8467 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8468 | } | |
8469 | if (argc == 3) { | |
8470 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8471 | } | |
8472 | ||
8473 | fail: | |
8474 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8475 | return NULL; | |
8476 | } | |
8477 | ||
8478 | ||
8479 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8480 | PyObject *resultobj = 0; | |
8481 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8482 | void *argp1 = 0 ; | |
8483 | int res1 = 0 ; | |
8484 | PyObject *swig_obj[1] ; | |
8485 | ||
8486 | if (!args) SWIG_fail; | |
8487 | swig_obj[0] = args; | |
8488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8489 | if (!SWIG_IsOK(res1)) { | |
8490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8491 | } | |
8492 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8493 | { | |
8494 | delete arg1; | |
8495 | ||
8496 | if (PyErr_Occurred()) SWIG_fail; | |
8497 | } | |
8498 | resultobj = SWIG_Py_Void(); | |
8499 | return resultobj; | |
8500 | fail: | |
8501 | return NULL; | |
8502 | } | |
8503 | ||
8504 | ||
8505 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8506 | PyObject *resultobj = 0; | |
8507 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8508 | wxAlphaPixelData_Accessor result; | |
8509 | void *argp1 = 0 ; | |
8510 | int res1 = 0 ; | |
8511 | PyObject *swig_obj[1] ; | |
8512 | ||
8513 | if (!args) SWIG_fail; | |
8514 | swig_obj[0] = args; | |
8515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8516 | if (!SWIG_IsOK(res1)) { | |
8517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8518 | } | |
8519 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8520 | { | |
8521 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8522 | if (PyErr_Occurred()) SWIG_fail; | |
8523 | } | |
8524 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8525 | return resultobj; | |
8526 | fail: | |
8527 | return NULL; | |
8528 | } | |
8529 | ||
8530 | ||
8531 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8532 | PyObject *resultobj = 0; | |
8533 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8534 | void *argp1 = 0 ; | |
8535 | int res1 = 0 ; | |
8536 | PyObject *swig_obj[1] ; | |
8537 | ||
8538 | if (!args) SWIG_fail; | |
8539 | swig_obj[0] = args; | |
8540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8541 | if (!SWIG_IsOK(res1)) { | |
8542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8543 | } | |
8544 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8545 | { | |
8546 | (arg1)->UseAlpha(); | |
8547 | if (PyErr_Occurred()) SWIG_fail; | |
8548 | } | |
8549 | resultobj = SWIG_Py_Void(); | |
8550 | return resultobj; | |
8551 | fail: | |
8552 | return NULL; | |
8553 | } | |
8554 | ||
8555 | ||
8556 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8557 | PyObject *resultobj = 0; | |
8558 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8559 | bool result; | |
8560 | void *argp1 = 0 ; | |
8561 | int res1 = 0 ; | |
8562 | PyObject *swig_obj[1] ; | |
8563 | ||
8564 | if (!args) SWIG_fail; | |
8565 | swig_obj[0] = args; | |
8566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8567 | if (!SWIG_IsOK(res1)) { | |
8568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8569 | } | |
8570 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8571 | { | |
8572 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
8575 | { | |
8576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8577 | } | |
8578 | return resultobj; | |
8579 | fail: | |
8580 | return NULL; | |
8581 | } | |
8582 | ||
8583 | ||
8584 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8585 | PyObject *obj; | |
8586 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8587 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8588 | return SWIG_Py_Void(); | |
8589 | } | |
8590 | ||
8591 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8592 | return SWIG_Python_InitShadowInstance(args); | |
8593 | } | |
8594 | ||
8595 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8596 | PyObject *resultobj = 0; | |
8597 | wxAlphaPixelData *arg1 = 0 ; | |
8598 | wxAlphaPixelData_Accessor *result = 0 ; | |
8599 | void *argp1 = 0 ; | |
8600 | int res1 = 0 ; | |
8601 | ||
8602 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8603 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8604 | if (!SWIG_IsOK(res1)) { | |
8605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8606 | } | |
8607 | if (!argp1) { | |
8608 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8609 | } | |
8610 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8611 | { | |
8612 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8613 | if (PyErr_Occurred()) SWIG_fail; | |
8614 | } | |
8615 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8616 | return resultobj; | |
8617 | fail: | |
8618 | return NULL; | |
8619 | } | |
8620 | ||
8621 | ||
8622 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8623 | PyObject *resultobj = 0; | |
8624 | wxBitmap *arg1 = 0 ; | |
8625 | wxAlphaPixelData *arg2 = 0 ; | |
8626 | wxAlphaPixelData_Accessor *result = 0 ; | |
8627 | void *argp1 = 0 ; | |
8628 | int res1 = 0 ; | |
8629 | void *argp2 = 0 ; | |
8630 | int res2 = 0 ; | |
8631 | ||
8632 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8633 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8634 | if (!SWIG_IsOK(res1)) { | |
8635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8636 | } | |
8637 | if (!argp1) { | |
8638 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8639 | } | |
8640 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8641 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8642 | if (!SWIG_IsOK(res2)) { | |
8643 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8644 | } | |
8645 | if (!argp2) { | |
8646 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8647 | } | |
8648 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8649 | { | |
8650 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | } | |
8653 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8654 | return resultobj; | |
8655 | fail: | |
8656 | return NULL; | |
8657 | } | |
8658 | ||
8659 | ||
8660 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8661 | PyObject *resultobj = 0; | |
8662 | wxAlphaPixelData_Accessor *result = 0 ; | |
8663 | ||
8664 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8665 | { | |
8666 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8667 | if (PyErr_Occurred()) SWIG_fail; | |
8668 | } | |
8669 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8670 | return resultobj; | |
8671 | fail: | |
8672 | return NULL; | |
8673 | } | |
8674 | ||
8675 | ||
8676 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8677 | int argc; | |
8678 | PyObject *argv[3]; | |
8679 | ||
8680 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8681 | --argc; | |
8682 | if (argc == 0) { | |
8683 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8684 | } | |
8685 | if (argc == 1) { | |
8686 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8687 | } | |
8688 | if (argc == 2) { | |
8689 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8690 | } | |
8691 | ||
8692 | fail: | |
8693 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8694 | return NULL; | |
8695 | } | |
8696 | ||
8697 | ||
8698 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8699 | PyObject *resultobj = 0; | |
8700 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8701 | void *argp1 = 0 ; | |
8702 | int res1 = 0 ; | |
8703 | PyObject *swig_obj[1] ; | |
8704 | ||
8705 | if (!args) SWIG_fail; | |
8706 | swig_obj[0] = args; | |
8707 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8708 | if (!SWIG_IsOK(res1)) { | |
8709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8710 | } | |
8711 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8712 | { | |
8713 | delete arg1; | |
8714 | ||
8715 | if (PyErr_Occurred()) SWIG_fail; | |
8716 | } | |
8717 | resultobj = SWIG_Py_Void(); | |
8718 | return resultobj; | |
8719 | fail: | |
8720 | return NULL; | |
8721 | } | |
8722 | ||
8723 | ||
8724 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8725 | PyObject *resultobj = 0; | |
8726 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8727 | wxAlphaPixelData *arg2 = 0 ; | |
8728 | void *argp1 = 0 ; | |
8729 | int res1 = 0 ; | |
8730 | void *argp2 = 0 ; | |
8731 | int res2 = 0 ; | |
8732 | PyObject * obj0 = 0 ; | |
8733 | PyObject * obj1 = 0 ; | |
8734 | char * kwnames[] = { | |
8735 | (char *) "self",(char *) "data", NULL | |
8736 | }; | |
8737 | ||
8738 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8739 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8740 | if (!SWIG_IsOK(res1)) { | |
8741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8742 | } | |
8743 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8744 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8745 | if (!SWIG_IsOK(res2)) { | |
8746 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8747 | } | |
8748 | if (!argp2) { | |
8749 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8750 | } | |
8751 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8752 | { | |
8753 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8754 | if (PyErr_Occurred()) SWIG_fail; | |
8755 | } | |
8756 | resultobj = SWIG_Py_Void(); | |
8757 | return resultobj; | |
8758 | fail: | |
8759 | return NULL; | |
8760 | } | |
8761 | ||
8762 | ||
8763 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8764 | PyObject *resultobj = 0; | |
8765 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8766 | bool result; | |
8767 | void *argp1 = 0 ; | |
8768 | int res1 = 0 ; | |
8769 | PyObject *swig_obj[1] ; | |
8770 | ||
8771 | if (!args) SWIG_fail; | |
8772 | swig_obj[0] = args; | |
8773 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8774 | if (!SWIG_IsOK(res1)) { | |
8775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8776 | } | |
8777 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8778 | { | |
8779 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8780 | if (PyErr_Occurred()) SWIG_fail; | |
8781 | } | |
8782 | { | |
8783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8784 | } | |
8785 | return resultobj; | |
8786 | fail: | |
8787 | return NULL; | |
8788 | } | |
8789 | ||
8790 | ||
8791 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8792 | PyObject *resultobj = 0; | |
8793 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8794 | void *argp1 = 0 ; | |
8795 | int res1 = 0 ; | |
8796 | PyObject *swig_obj[1] ; | |
8797 | ||
8798 | if (!args) SWIG_fail; | |
8799 | swig_obj[0] = args; | |
8800 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8801 | if (!SWIG_IsOK(res1)) { | |
8802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8803 | } | |
8804 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8805 | { | |
8806 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8807 | if (PyErr_Occurred()) SWIG_fail; | |
8808 | } | |
8809 | resultobj = SWIG_Py_Void(); | |
8810 | return resultobj; | |
8811 | fail: | |
8812 | return NULL; | |
8813 | } | |
8814 | ||
8815 | ||
8816 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8817 | PyObject *resultobj = 0; | |
8818 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8819 | wxAlphaPixelData *arg2 = 0 ; | |
8820 | int arg3 ; | |
8821 | int arg4 ; | |
8822 | void *argp1 = 0 ; | |
8823 | int res1 = 0 ; | |
8824 | void *argp2 = 0 ; | |
8825 | int res2 = 0 ; | |
8826 | int val3 ; | |
8827 | int ecode3 = 0 ; | |
8828 | int val4 ; | |
8829 | int ecode4 = 0 ; | |
8830 | PyObject * obj0 = 0 ; | |
8831 | PyObject * obj1 = 0 ; | |
8832 | PyObject * obj2 = 0 ; | |
8833 | PyObject * obj3 = 0 ; | |
8834 | char * kwnames[] = { | |
8835 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8836 | }; | |
8837 | ||
8838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8840 | if (!SWIG_IsOK(res1)) { | |
8841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8842 | } | |
8843 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8844 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8845 | if (!SWIG_IsOK(res2)) { | |
8846 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8847 | } | |
8848 | if (!argp2) { | |
8849 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8850 | } | |
8851 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8852 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8853 | if (!SWIG_IsOK(ecode3)) { | |
8854 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8855 | } | |
8856 | arg3 = static_cast< int >(val3); | |
8857 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8858 | if (!SWIG_IsOK(ecode4)) { | |
8859 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8860 | } | |
8861 | arg4 = static_cast< int >(val4); | |
8862 | { | |
8863 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8864 | if (PyErr_Occurred()) SWIG_fail; | |
8865 | } | |
8866 | resultobj = SWIG_Py_Void(); | |
8867 | return resultobj; | |
8868 | fail: | |
8869 | return NULL; | |
8870 | } | |
8871 | ||
8872 | ||
8873 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8874 | PyObject *resultobj = 0; | |
8875 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8876 | wxAlphaPixelData *arg2 = 0 ; | |
8877 | int arg3 ; | |
8878 | void *argp1 = 0 ; | |
8879 | int res1 = 0 ; | |
8880 | void *argp2 = 0 ; | |
8881 | int res2 = 0 ; | |
8882 | int val3 ; | |
8883 | int ecode3 = 0 ; | |
8884 | PyObject * obj0 = 0 ; | |
8885 | PyObject * obj1 = 0 ; | |
8886 | PyObject * obj2 = 0 ; | |
8887 | char * kwnames[] = { | |
8888 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8889 | }; | |
8890 | ||
8891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8893 | if (!SWIG_IsOK(res1)) { | |
8894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8895 | } | |
8896 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8897 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8898 | if (!SWIG_IsOK(res2)) { | |
8899 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8900 | } | |
8901 | if (!argp2) { | |
8902 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8903 | } | |
8904 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8905 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8906 | if (!SWIG_IsOK(ecode3)) { | |
8907 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8908 | } | |
8909 | arg3 = static_cast< int >(val3); | |
8910 | { | |
8911 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
8913 | } | |
8914 | resultobj = SWIG_Py_Void(); | |
8915 | return resultobj; | |
8916 | fail: | |
8917 | return NULL; | |
8918 | } | |
8919 | ||
8920 | ||
8921 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8922 | PyObject *resultobj = 0; | |
8923 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8924 | wxAlphaPixelData *arg2 = 0 ; | |
8925 | int arg3 ; | |
8926 | void *argp1 = 0 ; | |
8927 | int res1 = 0 ; | |
8928 | void *argp2 = 0 ; | |
8929 | int res2 = 0 ; | |
8930 | int val3 ; | |
8931 | int ecode3 = 0 ; | |
8932 | PyObject * obj0 = 0 ; | |
8933 | PyObject * obj1 = 0 ; | |
8934 | PyObject * obj2 = 0 ; | |
8935 | char * kwnames[] = { | |
8936 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8937 | }; | |
8938 | ||
8939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8941 | if (!SWIG_IsOK(res1)) { | |
8942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8943 | } | |
8944 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8945 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8946 | if (!SWIG_IsOK(res2)) { | |
8947 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8948 | } | |
8949 | if (!argp2) { | |
8950 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8951 | } | |
8952 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8953 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8954 | if (!SWIG_IsOK(ecode3)) { | |
8955 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8956 | } | |
8957 | arg3 = static_cast< int >(val3); | |
8958 | { | |
8959 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8960 | if (PyErr_Occurred()) SWIG_fail; | |
8961 | } | |
8962 | resultobj = SWIG_Py_Void(); | |
8963 | return resultobj; | |
8964 | fail: | |
8965 | return NULL; | |
8966 | } | |
8967 | ||
8968 | ||
8969 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8970 | PyObject *resultobj = 0; | |
8971 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8972 | wxAlphaPixelData *arg2 = 0 ; | |
8973 | int arg3 ; | |
8974 | int arg4 ; | |
8975 | void *argp1 = 0 ; | |
8976 | int res1 = 0 ; | |
8977 | void *argp2 = 0 ; | |
8978 | int res2 = 0 ; | |
8979 | int val3 ; | |
8980 | int ecode3 = 0 ; | |
8981 | int val4 ; | |
8982 | int ecode4 = 0 ; | |
8983 | PyObject * obj0 = 0 ; | |
8984 | PyObject * obj1 = 0 ; | |
8985 | PyObject * obj2 = 0 ; | |
8986 | PyObject * obj3 = 0 ; | |
8987 | char * kwnames[] = { | |
8988 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8989 | }; | |
8990 | ||
8991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8993 | if (!SWIG_IsOK(res1)) { | |
8994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8995 | } | |
8996 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8997 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8998 | if (!SWIG_IsOK(res2)) { | |
8999 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
9000 | } | |
9001 | if (!argp2) { | |
9002 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
9003 | } | |
9004 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
9005 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9006 | if (!SWIG_IsOK(ecode3)) { | |
9007 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
9008 | } | |
9009 | arg3 = static_cast< int >(val3); | |
9010 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9011 | if (!SWIG_IsOK(ecode4)) { | |
9012 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
9013 | } | |
9014 | arg4 = static_cast< int >(val4); | |
9015 | { | |
9016 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
9017 | if (PyErr_Occurred()) SWIG_fail; | |
9018 | } | |
9019 | resultobj = SWIG_Py_Void(); | |
9020 | return resultobj; | |
9021 | fail: | |
9022 | return NULL; | |
9023 | } | |
9024 | ||
9025 | ||
9026 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9027 | PyObject *resultobj = 0; | |
9028 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
9029 | byte arg2 ; | |
9030 | byte arg3 ; | |
9031 | byte arg4 ; | |
9032 | byte arg5 ; | |
9033 | void *argp1 = 0 ; | |
9034 | int res1 = 0 ; | |
9035 | unsigned char val2 ; | |
9036 | int ecode2 = 0 ; | |
9037 | unsigned char val3 ; | |
9038 | int ecode3 = 0 ; | |
9039 | unsigned char val4 ; | |
9040 | int ecode4 = 0 ; | |
9041 | unsigned char val5 ; | |
9042 | int ecode5 = 0 ; | |
9043 | PyObject * obj0 = 0 ; | |
9044 | PyObject * obj1 = 0 ; | |
9045 | PyObject * obj2 = 0 ; | |
9046 | PyObject * obj3 = 0 ; | |
9047 | PyObject * obj4 = 0 ; | |
9048 | char * kwnames[] = { | |
9049 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
9050 | }; | |
9051 | ||
9052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
9054 | if (!SWIG_IsOK(res1)) { | |
9055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
9056 | } | |
9057 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
9058 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
9059 | if (!SWIG_IsOK(ecode2)) { | |
9060 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
9061 | } | |
9062 | arg2 = static_cast< byte >(val2); | |
9063 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
9064 | if (!SWIG_IsOK(ecode3)) { | |
9065 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
9066 | } | |
9067 | arg3 = static_cast< byte >(val3); | |
9068 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
9069 | if (!SWIG_IsOK(ecode4)) { | |
9070 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
9071 | } | |
9072 | arg4 = static_cast< byte >(val4); | |
9073 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
9074 | if (!SWIG_IsOK(ecode5)) { | |
9075 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
9076 | } | |
9077 | arg5 = static_cast< byte >(val5); | |
9078 | { | |
9079 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
9080 | if (PyErr_Occurred()) SWIG_fail; | |
554f62e9 | 9081 | } |
fc46b7f3 | 9082 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
9083 | return resultobj; |
9084 | fail: | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
fc46b7f3 | 9089 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 9090 | PyObject *resultobj = 0; |
fc46b7f3 RD |
9091 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
9092 | PyObject *result = 0 ; | |
554f62e9 RD |
9093 | void *argp1 = 0 ; |
9094 | int res1 = 0 ; | |
fc46b7f3 | 9095 | PyObject *swig_obj[1] ; |
554f62e9 | 9096 | |
fc46b7f3 RD |
9097 | if (!args) SWIG_fail; |
9098 | swig_obj[0] = args; | |
9099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
554f62e9 | 9100 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 9101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
554f62e9 | 9102 | } |
fc46b7f3 | 9103 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
554f62e9 | 9104 | { |
fc46b7f3 | 9105 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
554f62e9 RD |
9106 | if (PyErr_Occurred()) SWIG_fail; |
9107 | } | |
fc46b7f3 | 9108 | resultobj = result; |
554f62e9 RD |
9109 | return resultobj; |
9110 | fail: | |
9111 | return NULL; | |
d55e5bfc RD |
9112 | } |
9113 | ||
9114 | ||
fc46b7f3 | 9115 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
9116 | PyObject *obj; |
9117 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 9118 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
554f62e9 | 9119 | return SWIG_Py_Void(); |
d55e5bfc RD |
9120 | } |
9121 | ||
fc46b7f3 | 9122 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 9123 | return SWIG_Python_InitShadowInstance(args); |
093d3ff1 RD |
9124 | } |
9125 | ||
554f62e9 RD |
9126 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9127 | PyObject *resultobj = 0; | |
9128 | wxBitmap *arg1 = 0 ; | |
9129 | wxColour const &arg2_defvalue = wxNullColour ; | |
9130 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
9131 | wxMask *result = 0 ; | |
9132 | void *argp1 = 0 ; | |
9133 | int res1 = 0 ; | |
9134 | wxColour temp2 ; | |
9135 | PyObject * obj0 = 0 ; | |
9136 | PyObject * obj1 = 0 ; | |
9137 | char * kwnames[] = { | |
9138 | (char *) "bitmap",(char *) "colour", NULL | |
9139 | }; | |
9140 | ||
9141 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
9142 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9143 | if (!SWIG_IsOK(res1)) { | |
9144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9145 | } | |
9146 | if (!argp1) { | |
9147 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9148 | } | |
9149 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9150 | if (obj1) { | |
d55e5bfc | 9151 | { |
554f62e9 RD |
9152 | arg2 = &temp2; |
9153 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 9154 | } |
554f62e9 RD |
9155 | } |
9156 | { | |
9157 | if (!wxPyCheckForApp()) SWIG_fail; | |
9158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9159 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
9160 | wxPyEndAllowThreads(__tstate); | |
9161 | if (PyErr_Occurred()) SWIG_fail; | |
9162 | } | |
9163 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
9164 | return resultobj; | |
9165 | fail: | |
9166 | return NULL; | |
d55e5bfc RD |
9167 | } |
9168 | ||
9169 | ||
554f62e9 RD |
9170 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9171 | PyObject *resultobj = 0; | |
9172 | wxMask *arg1 = (wxMask *) 0 ; | |
9173 | void *argp1 = 0 ; | |
9174 | int res1 = 0 ; | |
9175 | PyObject *swig_obj[1] ; | |
9176 | ||
9177 | if (!args) SWIG_fail; | |
9178 | swig_obj[0] = args; | |
9179 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
9180 | if (!SWIG_IsOK(res1)) { | |
9181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
9182 | } | |
9183 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
9184 | { | |
554f62e9 | 9185 | delete arg1; |
d55e5bfc | 9186 | |
554f62e9 RD |
9187 | if (PyErr_Occurred()) SWIG_fail; |
9188 | } | |
9189 | resultobj = SWIG_Py_Void(); | |
9190 | return resultobj; | |
9191 | fail: | |
9192 | return NULL; | |
9193 | } | |
9194 | ||
9195 | ||
9196 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9197 | PyObject *obj; | |
9198 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9199 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
9200 | return SWIG_Py_Void(); | |
9201 | } | |
9202 | ||
9203 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9204 | return SWIG_Python_InitShadowInstance(args); | |
9205 | } | |
9206 | ||
9207 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9208 | PyObject *resultobj = 0; | |
9209 | wxString *arg1 = 0 ; | |
9210 | wxBitmapType arg2 ; | |
9211 | int arg3 = (int) -1 ; | |
9212 | int arg4 = (int) -1 ; | |
9213 | wxIcon *result = 0 ; | |
9214 | bool temp1 = false ; | |
9215 | int val2 ; | |
9216 | int ecode2 = 0 ; | |
9217 | int val3 ; | |
9218 | int ecode3 = 0 ; | |
9219 | int val4 ; | |
9220 | int ecode4 = 0 ; | |
9221 | PyObject * obj0 = 0 ; | |
9222 | PyObject * obj1 = 0 ; | |
9223 | PyObject * obj2 = 0 ; | |
9224 | PyObject * obj3 = 0 ; | |
9225 | char * kwnames[] = { | |
9226 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
9227 | }; | |
9228 | ||
9229 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9230 | { | |
9231 | arg1 = wxString_in_helper(obj0); | |
9232 | if (arg1 == NULL) SWIG_fail; | |
9233 | temp1 = true; | |
9234 | } | |
9235 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9236 | if (!SWIG_IsOK(ecode2)) { | |
9237 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
9238 | } | |
9239 | arg2 = static_cast< wxBitmapType >(val2); | |
9240 | if (obj2) { | |
9241 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9242 | if (!SWIG_IsOK(ecode3)) { | |
9243 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
9244 | } | |
9245 | arg3 = static_cast< int >(val3); | |
9246 | } | |
9247 | if (obj3) { | |
9248 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9249 | if (!SWIG_IsOK(ecode4)) { | |
9250 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
9251 | } | |
9252 | arg4 = static_cast< int >(val4); | |
9253 | } | |
9254 | { | |
9255 | if (!wxPyCheckForApp()) SWIG_fail; | |
9256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9257 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
9258 | wxPyEndAllowThreads(__tstate); | |
9259 | if (PyErr_Occurred()) SWIG_fail; | |
9260 | } | |
9261 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
9262 | { | |
9263 | if (temp1) | |
9264 | delete arg1; | |
9265 | } | |
9266 | return resultobj; | |
9267 | fail: | |
9268 | { | |
9269 | if (temp1) | |
9270 | delete arg1; | |
9271 | } | |
9272 | return NULL; | |
d55e5bfc RD |
9273 | } |
9274 | ||
9275 | ||
554f62e9 RD |
9276 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9277 | PyObject *resultobj = 0; | |
9278 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9279 | void *argp1 = 0 ; | |
9280 | int res1 = 0 ; | |
9281 | PyObject *swig_obj[1] ; | |
9282 | ||
9283 | if (!args) SWIG_fail; | |
9284 | swig_obj[0] = args; | |
9285 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
9286 | if (!SWIG_IsOK(res1)) { | |
9287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9288 | } | |
9289 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9290 | { | |
9291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9292 | delete arg1; | |
d55e5bfc | 9293 | |
554f62e9 RD |
9294 | wxPyEndAllowThreads(__tstate); |
9295 | if (PyErr_Occurred()) SWIG_fail; | |
9296 | } | |
9297 | resultobj = SWIG_Py_Void(); | |
9298 | return resultobj; | |
9299 | fail: | |
9300 | return NULL; | |
d55e5bfc RD |
9301 | } |
9302 | ||
9303 | ||
554f62e9 RD |
9304 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9305 | PyObject *resultobj = 0; | |
9306 | wxIcon *result = 0 ; | |
9307 | ||
9308 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
9309 | { | |
9310 | if (!wxPyCheckForApp()) SWIG_fail; | |
9311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9312 | result = (wxIcon *)new wxIcon(); | |
9313 | wxPyEndAllowThreads(__tstate); | |
9314 | if (PyErr_Occurred()) SWIG_fail; | |
9315 | } | |
9316 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9317 | return resultobj; | |
9318 | fail: | |
9319 | return NULL; | |
9320 | } | |
9321 | ||
9322 | ||
9323 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9324 | PyObject *resultobj = 0; | |
9325 | wxIconLocation *arg1 = 0 ; | |
9326 | wxIcon *result = 0 ; | |
9327 | void *argp1 = 0 ; | |
9328 | int res1 = 0 ; | |
9329 | PyObject * obj0 = 0 ; | |
9330 | char * kwnames[] = { | |
9331 | (char *) "loc", NULL | |
9332 | }; | |
9333 | ||
9334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9335 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9336 | if (!SWIG_IsOK(res1)) { | |
9337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9338 | } | |
9339 | if (!argp1) { | |
9340 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9341 | } | |
9342 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9343 | { | |
9344 | if (!wxPyCheckForApp()) SWIG_fail; | |
9345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9346 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9347 | wxPyEndAllowThreads(__tstate); | |
9348 | if (PyErr_Occurred()) SWIG_fail; | |
9349 | } | |
9350 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9351 | return resultobj; | |
9352 | fail: | |
9353 | return NULL; | |
9354 | } | |
9355 | ||
9356 | ||
9357 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9358 | PyObject *resultobj = 0; | |
9359 | wxBitmap *arg1 = 0 ; | |
9360 | wxIcon *result = 0 ; | |
9361 | void *argp1 = 0 ; | |
9362 | int res1 = 0 ; | |
9363 | PyObject * obj0 = 0 ; | |
9364 | char * kwnames[] = { | |
9365 | (char *) "bmp", NULL | |
9366 | }; | |
9367 | ||
9368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9369 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9370 | if (!SWIG_IsOK(res1)) { | |
9371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9372 | } | |
9373 | if (!argp1) { | |
9374 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9375 | } | |
9376 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9377 | { | |
9378 | if (!wxPyCheckForApp()) SWIG_fail; | |
9379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9380 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9381 | wxPyEndAllowThreads(__tstate); | |
9382 | if (PyErr_Occurred()) SWIG_fail; | |
9383 | } | |
9384 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9385 | return resultobj; | |
9386 | fail: | |
9387 | return NULL; | |
d55e5bfc RD |
9388 | } |
9389 | ||
9390 | ||
554f62e9 RD |
9391 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9392 | PyObject *resultobj = 0; | |
9393 | PyObject *arg1 = (PyObject *) 0 ; | |
9394 | wxIcon *result = 0 ; | |
9395 | PyObject * obj0 = 0 ; | |
9396 | char * kwnames[] = { | |
9397 | (char *) "listOfStrings", NULL | |
9398 | }; | |
9399 | ||
9400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9401 | arg1 = obj0; | |
9402 | { | |
9403 | if (!wxPyCheckForApp()) SWIG_fail; | |
9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9405 | result = (wxIcon *)new_wxIcon(arg1); | |
9406 | wxPyEndAllowThreads(__tstate); | |
9407 | if (PyErr_Occurred()) SWIG_fail; | |
9408 | } | |
9409 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9410 | return resultobj; | |
9411 | fail: | |
9412 | return NULL; | |
9413 | } | |
9414 | ||
9415 | ||
9416 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9417 | PyObject *resultobj = 0; | |
9418 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9419 | wxString *arg2 = 0 ; | |
9420 | wxBitmapType arg3 ; | |
9421 | bool result; | |
9422 | void *argp1 = 0 ; | |
9423 | int res1 = 0 ; | |
9424 | bool temp2 = false ; | |
9425 | int val3 ; | |
9426 | int ecode3 = 0 ; | |
9427 | PyObject * obj0 = 0 ; | |
9428 | PyObject * obj1 = 0 ; | |
9429 | PyObject * obj2 = 0 ; | |
9430 | char * kwnames[] = { | |
9431 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9432 | }; | |
9433 | ||
9434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9436 | if (!SWIG_IsOK(res1)) { | |
9437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9438 | } | |
9439 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9440 | { | |
9441 | arg2 = wxString_in_helper(obj1); | |
9442 | if (arg2 == NULL) SWIG_fail; | |
9443 | temp2 = true; | |
9444 | } | |
9445 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9446 | if (!SWIG_IsOK(ecode3)) { | |
9447 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9448 | } | |
9449 | arg3 = static_cast< wxBitmapType >(val3); | |
9450 | { | |
9451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9452 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9453 | wxPyEndAllowThreads(__tstate); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | } | |
9456 | { | |
9457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9458 | } | |
9459 | { | |
9460 | if (temp2) | |
9461 | delete arg2; | |
9462 | } | |
9463 | return resultobj; | |
9464 | fail: | |
9465 | { | |
9466 | if (temp2) | |
9467 | delete arg2; | |
9468 | } | |
9469 | return NULL; | |
d55e5bfc RD |
9470 | } |
9471 | ||
9472 | ||
554f62e9 RD |
9473 | SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9474 | PyObject *resultobj = 0; | |
9475 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9476 | long result; | |
9477 | void *argp1 = 0 ; | |
9478 | int res1 = 0 ; | |
9479 | PyObject *swig_obj[1] ; | |
9480 | ||
9481 | if (!args) SWIG_fail; | |
9482 | swig_obj[0] = args; | |
9483 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9484 | if (!SWIG_IsOK(res1)) { | |
9485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9486 | } | |
9487 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9488 | { | |
9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9490 | result = (long)(arg1)->GetHandle(); | |
9491 | wxPyEndAllowThreads(__tstate); | |
9492 | if (PyErr_Occurred()) SWIG_fail; | |
9493 | } | |
9494 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
9495 | return resultobj; | |
9496 | fail: | |
9497 | return NULL; | |
9498 | } | |
9499 | ||
9500 | ||
9501 | SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9502 | PyObject *resultobj = 0; | |
9503 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9504 | long arg2 ; | |
9505 | void *argp1 = 0 ; | |
9506 | int res1 = 0 ; | |
9507 | long val2 ; | |
9508 | int ecode2 = 0 ; | |
9509 | PyObject * obj0 = 0 ; | |
9510 | PyObject * obj1 = 0 ; | |
9511 | char * kwnames[] = { | |
9512 | (char *) "self",(char *) "handle", NULL | |
9513 | }; | |
9514 | ||
9515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",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_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9519 | } | |
9520 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9521 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9522 | if (!SWIG_IsOK(ecode2)) { | |
9523 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
9524 | } | |
9525 | arg2 = static_cast< long >(val2); | |
9526 | { | |
9527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9528 | wxIcon_SetHandle(arg1,arg2); | |
9529 | wxPyEndAllowThreads(__tstate); | |
9530 | if (PyErr_Occurred()) SWIG_fail; | |
9531 | } | |
9532 | resultobj = SWIG_Py_Void(); | |
9533 | return resultobj; | |
9534 | fail: | |
9535 | return NULL; | |
d55e5bfc RD |
9536 | } |
9537 | ||
9538 | ||
b39fe951 | 9539 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
9540 | PyObject *resultobj = 0; |
9541 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9542 | bool result; | |
9543 | void *argp1 = 0 ; | |
9544 | int res1 = 0 ; | |
9545 | PyObject *swig_obj[1] ; | |
9546 | ||
9547 | if (!args) SWIG_fail; | |
9548 | swig_obj[0] = args; | |
9549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9550 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
554f62e9 RD |
9552 | } |
9553 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9554 | { | |
9555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9556 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
9557 | wxPyEndAllowThreads(__tstate); |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
9559 | } | |
9560 | { | |
9561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9562 | } | |
9563 | return resultobj; | |
9564 | fail: | |
9565 | return NULL; | |
d55e5bfc RD |
9566 | } |
9567 | ||
9568 | ||
554f62e9 RD |
9569 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9570 | PyObject *resultobj = 0; | |
9571 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9572 | int result; | |
9573 | void *argp1 = 0 ; | |
9574 | int res1 = 0 ; | |
9575 | PyObject *swig_obj[1] ; | |
9576 | ||
9577 | if (!args) SWIG_fail; | |
9578 | swig_obj[0] = args; | |
9579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9580 | if (!SWIG_IsOK(res1)) { | |
9581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9582 | } | |
9583 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9584 | { | |
9585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9586 | result = (int)(arg1)->GetWidth(); | |
9587 | wxPyEndAllowThreads(__tstate); | |
9588 | if (PyErr_Occurred()) SWIG_fail; | |
9589 | } | |
9590 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9591 | return resultobj; | |
9592 | fail: | |
9593 | return NULL; | |
c1cb24a4 RD |
9594 | } |
9595 | ||
9596 | ||
554f62e9 RD |
9597 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9598 | PyObject *resultobj = 0; | |
9599 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9600 | int result; | |
9601 | void *argp1 = 0 ; | |
9602 | int res1 = 0 ; | |
9603 | PyObject *swig_obj[1] ; | |
9604 | ||
9605 | if (!args) SWIG_fail; | |
9606 | swig_obj[0] = args; | |
9607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9608 | if (!SWIG_IsOK(res1)) { | |
9609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9610 | } | |
9611 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9612 | { | |
9613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9614 | result = (int)(arg1)->GetHeight(); | |
9615 | wxPyEndAllowThreads(__tstate); | |
9616 | if (PyErr_Occurred()) SWIG_fail; | |
9617 | } | |
9618 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9619 | return resultobj; | |
9620 | fail: | |
9621 | return NULL; | |
c1cb24a4 RD |
9622 | } |
9623 | ||
9624 | ||
554f62e9 RD |
9625 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9626 | PyObject *resultobj = 0; | |
9627 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9628 | int result; | |
9629 | void *argp1 = 0 ; | |
9630 | int res1 = 0 ; | |
9631 | PyObject *swig_obj[1] ; | |
9632 | ||
9633 | if (!args) SWIG_fail; | |
9634 | swig_obj[0] = args; | |
9635 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9636 | if (!SWIG_IsOK(res1)) { | |
9637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9638 | } | |
9639 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9640 | { | |
9641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9642 | result = (int)(arg1)->GetDepth(); | |
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
9646 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9647 | return resultobj; | |
9648 | fail: | |
9649 | return NULL; | |
9650 | } | |
9651 | ||
9652 | ||
9653 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9654 | PyObject *resultobj = 0; | |
9655 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9656 | int arg2 ; | |
9657 | void *argp1 = 0 ; | |
9658 | int res1 = 0 ; | |
9659 | int val2 ; | |
9660 | int ecode2 = 0 ; | |
9661 | PyObject * obj0 = 0 ; | |
9662 | PyObject * obj1 = 0 ; | |
9663 | char * kwnames[] = { | |
9664 | (char *) "self",(char *) "w", NULL | |
9665 | }; | |
9666 | ||
9667 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9669 | if (!SWIG_IsOK(res1)) { | |
9670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9671 | } | |
9672 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9673 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9674 | if (!SWIG_IsOK(ecode2)) { | |
9675 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9676 | } | |
9677 | arg2 = static_cast< int >(val2); | |
9678 | { | |
9679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9680 | (arg1)->SetWidth(arg2); | |
9681 | wxPyEndAllowThreads(__tstate); | |
9682 | if (PyErr_Occurred()) SWIG_fail; | |
9683 | } | |
9684 | resultobj = SWIG_Py_Void(); | |
9685 | return resultobj; | |
9686 | fail: | |
9687 | return NULL; | |
9688 | } | |
9689 | ||
9690 | ||
9691 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9692 | PyObject *resultobj = 0; | |
9693 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9694 | int arg2 ; | |
9695 | void *argp1 = 0 ; | |
9696 | int res1 = 0 ; | |
9697 | int val2 ; | |
9698 | int ecode2 = 0 ; | |
9699 | PyObject * obj0 = 0 ; | |
9700 | PyObject * obj1 = 0 ; | |
9701 | char * kwnames[] = { | |
9702 | (char *) "self",(char *) "h", NULL | |
9703 | }; | |
9704 | ||
9705 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9706 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9707 | if (!SWIG_IsOK(res1)) { | |
9708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9709 | } | |
9710 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9711 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9712 | if (!SWIG_IsOK(ecode2)) { | |
9713 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9714 | } | |
9715 | arg2 = static_cast< int >(val2); | |
9716 | { | |
9717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9718 | (arg1)->SetHeight(arg2); | |
9719 | wxPyEndAllowThreads(__tstate); | |
9720 | if (PyErr_Occurred()) SWIG_fail; | |
9721 | } | |
9722 | resultobj = SWIG_Py_Void(); | |
9723 | return resultobj; | |
9724 | fail: | |
9725 | return NULL; | |
9726 | } | |
9727 | ||
9728 | ||
9729 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9730 | PyObject *resultobj = 0; | |
9731 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9732 | int arg2 ; | |
9733 | void *argp1 = 0 ; | |
9734 | int res1 = 0 ; | |
9735 | int val2 ; | |
9736 | int ecode2 = 0 ; | |
9737 | PyObject * obj0 = 0 ; | |
9738 | PyObject * obj1 = 0 ; | |
9739 | char * kwnames[] = { | |
9740 | (char *) "self",(char *) "d", NULL | |
9741 | }; | |
9742 | ||
9743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9745 | if (!SWIG_IsOK(res1)) { | |
9746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9747 | } | |
9748 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9749 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9750 | if (!SWIG_IsOK(ecode2)) { | |
9751 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9752 | } | |
9753 | arg2 = static_cast< int >(val2); | |
9754 | { | |
9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9756 | (arg1)->SetDepth(arg2); | |
9757 | wxPyEndAllowThreads(__tstate); | |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
9759 | } | |
9760 | resultobj = SWIG_Py_Void(); | |
9761 | return resultobj; | |
9762 | fail: | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
9767 | SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9768 | PyObject *resultobj = 0; | |
9769 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9770 | wxSize *arg2 = 0 ; | |
9771 | void *argp1 = 0 ; | |
9772 | int res1 = 0 ; | |
9773 | wxSize temp2 ; | |
9774 | PyObject * obj0 = 0 ; | |
9775 | PyObject * obj1 = 0 ; | |
9776 | char * kwnames[] = { | |
9777 | (char *) "self",(char *) "size", NULL | |
9778 | }; | |
9779 | ||
9780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9782 | if (!SWIG_IsOK(res1)) { | |
9783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9784 | } | |
9785 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9786 | { | |
9787 | arg2 = &temp2; | |
9788 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
9789 | } | |
9790 | { | |
9791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9792 | (arg1)->SetSize((wxSize const &)*arg2); | |
9793 | wxPyEndAllowThreads(__tstate); | |
9794 | if (PyErr_Occurred()) SWIG_fail; | |
9795 | } | |
9796 | resultobj = SWIG_Py_Void(); | |
9797 | return resultobj; | |
9798 | fail: | |
9799 | return NULL; | |
9800 | } | |
9801 | ||
9802 | ||
9803 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9804 | PyObject *resultobj = 0; | |
9805 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9806 | wxBitmap *arg2 = 0 ; | |
9807 | void *argp1 = 0 ; | |
9808 | int res1 = 0 ; | |
9809 | void *argp2 = 0 ; | |
9810 | int res2 = 0 ; | |
9811 | PyObject * obj0 = 0 ; | |
9812 | PyObject * obj1 = 0 ; | |
9813 | char * kwnames[] = { | |
9814 | (char *) "self",(char *) "bmp", NULL | |
9815 | }; | |
9816 | ||
9817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9819 | if (!SWIG_IsOK(res1)) { | |
9820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9821 | } | |
9822 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9823 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9824 | if (!SWIG_IsOK(res2)) { | |
9825 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9826 | } | |
9827 | if (!argp2) { | |
9828 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9829 | } | |
9830 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9831 | { | |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9834 | wxPyEndAllowThreads(__tstate); | |
9835 | if (PyErr_Occurred()) SWIG_fail; | |
9836 | } | |
9837 | resultobj = SWIG_Py_Void(); | |
9838 | return resultobj; | |
9839 | fail: | |
9840 | return NULL; | |
d55e5bfc RD |
9841 | } |
9842 | ||
9843 | ||
554f62e9 RD |
9844 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9845 | PyObject *obj; | |
9846 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9847 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9848 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9849 | } |
9850 | ||
554f62e9 RD |
9851 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9852 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
9853 | } |
9854 | ||
554f62e9 RD |
9855 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9856 | PyObject *resultobj = 0; | |
9857 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9858 | int arg2 = (int) 0 ; | |
9859 | wxIconLocation *result = 0 ; | |
9860 | bool temp1 = false ; | |
9861 | int val2 ; | |
9862 | int ecode2 = 0 ; | |
9863 | PyObject * obj0 = 0 ; | |
9864 | PyObject * obj1 = 0 ; | |
9865 | char * kwnames[] = { | |
9866 | (char *) "filename",(char *) "num", NULL | |
9867 | }; | |
9868 | ||
9869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9870 | if (obj0) { | |
d55e5bfc | 9871 | { |
554f62e9 RD |
9872 | arg1 = wxString_in_helper(obj0); |
9873 | if (arg1 == NULL) SWIG_fail; | |
9874 | temp1 = true; | |
d55e5bfc | 9875 | } |
554f62e9 RD |
9876 | } |
9877 | if (obj1) { | |
9878 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9879 | if (!SWIG_IsOK(ecode2)) { | |
9880 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9881 | } | |
9882 | arg2 = static_cast< int >(val2); | |
9883 | } | |
9884 | { | |
9885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9886 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9887 | wxPyEndAllowThreads(__tstate); | |
9888 | if (PyErr_Occurred()) SWIG_fail; | |
9889 | } | |
9890 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9891 | { | |
9892 | if (temp1) | |
9893 | delete arg1; | |
9894 | } | |
9895 | return resultobj; | |
9896 | fail: | |
9897 | { | |
9898 | if (temp1) | |
9899 | delete arg1; | |
9900 | } | |
9901 | return NULL; | |
d55e5bfc RD |
9902 | } |
9903 | ||
9904 | ||
554f62e9 RD |
9905 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9906 | PyObject *resultobj = 0; | |
9907 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9908 | void *argp1 = 0 ; | |
9909 | int res1 = 0 ; | |
9910 | PyObject *swig_obj[1] ; | |
9911 | ||
9912 | if (!args) SWIG_fail; | |
9913 | swig_obj[0] = args; | |
9914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9915 | if (!SWIG_IsOK(res1)) { | |
9916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9917 | } | |
9918 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9919 | { | |
9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9921 | delete arg1; | |
d55e5bfc | 9922 | |
554f62e9 RD |
9923 | wxPyEndAllowThreads(__tstate); |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | } | |
9926 | resultobj = SWIG_Py_Void(); | |
9927 | return resultobj; | |
9928 | fail: | |
9929 | return NULL; | |
d55e5bfc RD |
9930 | } |
9931 | ||
9932 | ||
554f62e9 RD |
9933 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9934 | PyObject *resultobj = 0; | |
9935 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9936 | bool result; | |
9937 | void *argp1 = 0 ; | |
9938 | int res1 = 0 ; | |
9939 | PyObject *swig_obj[1] ; | |
9940 | ||
9941 | if (!args) SWIG_fail; | |
9942 | swig_obj[0] = args; | |
9943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9944 | if (!SWIG_IsOK(res1)) { | |
9945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9946 | } | |
9947 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9948 | { | |
9949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9950 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
9954 | { | |
9955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9956 | } | |
9957 | return resultobj; | |
9958 | fail: | |
9959 | return NULL; | |
9960 | } | |
9961 | ||
9962 | ||
9963 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9964 | PyObject *resultobj = 0; | |
9965 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9966 | wxString *arg2 = 0 ; | |
9967 | void *argp1 = 0 ; | |
9968 | int res1 = 0 ; | |
9969 | bool temp2 = false ; | |
9970 | PyObject * obj0 = 0 ; | |
9971 | PyObject * obj1 = 0 ; | |
9972 | char * kwnames[] = { | |
9973 | (char *) "self",(char *) "filename", NULL | |
9974 | }; | |
9975 | ||
9976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9978 | if (!SWIG_IsOK(res1)) { | |
9979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9980 | } | |
9981 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9982 | { | |
9983 | arg2 = wxString_in_helper(obj1); | |
9984 | if (arg2 == NULL) SWIG_fail; | |
9985 | temp2 = true; | |
9986 | } | |
9987 | { | |
9988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9989 | (arg1)->SetFileName((wxString const &)*arg2); | |
9990 | wxPyEndAllowThreads(__tstate); | |
9991 | if (PyErr_Occurred()) SWIG_fail; | |
9992 | } | |
9993 | resultobj = SWIG_Py_Void(); | |
9994 | { | |
9995 | if (temp2) | |
9996 | delete arg2; | |
9997 | } | |
9998 | return resultobj; | |
9999 | fail: | |
10000 | { | |
10001 | if (temp2) | |
10002 | delete arg2; | |
10003 | } | |
10004 | return NULL; | |
d55e5bfc RD |
10005 | } |
10006 | ||
10007 | ||
554f62e9 RD |
10008 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10009 | PyObject *resultobj = 0; | |
10010 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
10011 | wxString *result = 0 ; | |
10012 | void *argp1 = 0 ; | |
10013 | int res1 = 0 ; | |
10014 | PyObject *swig_obj[1] ; | |
10015 | ||
10016 | if (!args) SWIG_fail; | |
10017 | swig_obj[0] = args; | |
10018 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10019 | if (!SWIG_IsOK(res1)) { | |
10020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
10021 | } | |
10022 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10023 | { | |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10025 | { |
554f62e9 RD |
10026 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
10027 | result = (wxString *) &_result_ref; | |
093d3ff1 | 10028 | } |
554f62e9 RD |
10029 | wxPyEndAllowThreads(__tstate); |
10030 | if (PyErr_Occurred()) SWIG_fail; | |
10031 | } | |
10032 | { | |
10033 | #if wxUSE_UNICODE | |
10034 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10035 | #else | |
10036 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10037 | #endif | |
10038 | } | |
10039 | return resultobj; | |
10040 | fail: | |
10041 | return NULL; | |
10042 | } | |
10043 | ||
10044 | ||
10045 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10046 | PyObject *resultobj = 0; | |
10047 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
10048 | int arg2 ; | |
10049 | void *argp1 = 0 ; | |
10050 | int res1 = 0 ; | |
10051 | int val2 ; | |
10052 | int ecode2 = 0 ; | |
10053 | PyObject * obj0 = 0 ; | |
10054 | PyObject * obj1 = 0 ; | |
10055 | char * kwnames[] = { | |
10056 | (char *) "self",(char *) "num", NULL | |
10057 | }; | |
10058 | ||
10059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
10060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10061 | if (!SWIG_IsOK(res1)) { | |
10062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
10063 | } | |
10064 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10065 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10066 | if (!SWIG_IsOK(ecode2)) { | |
10067 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
10068 | } | |
10069 | arg2 = static_cast< int >(val2); | |
10070 | { | |
10071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10072 | wxIconLocation_SetIndex(arg1,arg2); | |
10073 | wxPyEndAllowThreads(__tstate); | |
10074 | if (PyErr_Occurred()) SWIG_fail; | |
10075 | } | |
10076 | resultobj = SWIG_Py_Void(); | |
10077 | return resultobj; | |
10078 | fail: | |
10079 | return NULL; | |
d55e5bfc RD |
10080 | } |
10081 | ||
10082 | ||
554f62e9 RD |
10083 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10084 | PyObject *resultobj = 0; | |
10085 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
10086 | int result; | |
10087 | void *argp1 = 0 ; | |
10088 | int res1 = 0 ; | |
10089 | PyObject *swig_obj[1] ; | |
10090 | ||
10091 | if (!args) SWIG_fail; | |
10092 | swig_obj[0] = args; | |
10093 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10094 | if (!SWIG_IsOK(res1)) { | |
10095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
10096 | } | |
10097 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10098 | { | |
10099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10100 | result = (int)wxIconLocation_GetIndex(arg1); | |
10101 | wxPyEndAllowThreads(__tstate); | |
10102 | if (PyErr_Occurred()) SWIG_fail; | |
10103 | } | |
10104 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10105 | return resultobj; | |
10106 | fail: | |
10107 | return NULL; | |
d55e5bfc RD |
10108 | } |
10109 | ||
10110 | ||
554f62e9 RD |
10111 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10112 | PyObject *obj; | |
10113 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10114 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
10115 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10116 | } |
10117 | ||
554f62e9 RD |
10118 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10119 | return SWIG_Python_InitShadowInstance(args); | |
10120 | } | |
d55e5bfc | 10121 | |
554f62e9 RD |
10122 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10123 | PyObject *resultobj = 0; | |
10124 | wxIconBundle *result = 0 ; | |
10125 | ||
10126 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
10127 | { | |
10128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10129 | result = (wxIconBundle *)new wxIconBundle(); | |
10130 | wxPyEndAllowThreads(__tstate); | |
10131 | if (PyErr_Occurred()) SWIG_fail; | |
10132 | } | |
10133 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
10134 | return resultobj; | |
10135 | fail: | |
10136 | return NULL; | |
10137 | } | |
10138 | ||
10139 | ||
10140 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10141 | PyObject *resultobj = 0; | |
10142 | wxString *arg1 = 0 ; | |
10143 | long arg2 ; | |
10144 | wxIconBundle *result = 0 ; | |
10145 | bool temp1 = false ; | |
10146 | long val2 ; | |
10147 | int ecode2 = 0 ; | |
10148 | PyObject * obj0 = 0 ; | |
10149 | PyObject * obj1 = 0 ; | |
10150 | char * kwnames[] = { | |
10151 | (char *) "file",(char *) "type", NULL | |
10152 | }; | |
10153 | ||
10154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) 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_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
10163 | } | |
10164 | arg2 = static_cast< long >(val2); | |
10165 | { | |
10166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10167 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
10168 | wxPyEndAllowThreads(__tstate); | |
10169 | if (PyErr_Occurred()) SWIG_fail; | |
10170 | } | |
10171 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
10172 | { | |
10173 | if (temp1) | |
10174 | delete arg1; | |
10175 | } | |
10176 | return resultobj; | |
10177 | fail: | |
10178 | { | |
10179 | if (temp1) | |
10180 | delete arg1; | |
10181 | } | |
10182 | return NULL; | |
d55e5bfc RD |
10183 | } |
10184 | ||
10185 | ||
554f62e9 RD |
10186 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10187 | PyObject *resultobj = 0; | |
10188 | wxIcon *arg1 = 0 ; | |
10189 | wxIconBundle *result = 0 ; | |
10190 | void *argp1 = 0 ; | |
10191 | int res1 = 0 ; | |
10192 | PyObject * obj0 = 0 ; | |
10193 | char * kwnames[] = { | |
10194 | (char *) "icon", NULL | |
10195 | }; | |
10196 | ||
10197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
10198 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
10199 | if (!SWIG_IsOK(res1)) { | |
10200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
10201 | } | |
10202 | if (!argp1) { | |
10203 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
10204 | } | |
10205 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
10206 | { | |
10207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10208 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
10209 | wxPyEndAllowThreads(__tstate); | |
10210 | if (PyErr_Occurred()) SWIG_fail; | |
10211 | } | |
10212 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
10213 | return resultobj; | |
10214 | fail: | |
10215 | return NULL; | |
d55e5bfc RD |
10216 | } |
10217 | ||
10218 | ||
554f62e9 RD |
10219 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10220 | PyObject *resultobj = 0; | |
10221 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10222 | void *argp1 = 0 ; | |
10223 | int res1 = 0 ; | |
10224 | PyObject *swig_obj[1] ; | |
10225 | ||
10226 | if (!args) SWIG_fail; | |
10227 | swig_obj[0] = args; | |
10228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
10229 | if (!SWIG_IsOK(res1)) { | |
10230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10231 | } | |
10232 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10233 | { | |
10234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10235 | delete arg1; | |
d55e5bfc | 10236 | |
554f62e9 RD |
10237 | wxPyEndAllowThreads(__tstate); |
10238 | if (PyErr_Occurred()) SWIG_fail; | |
10239 | } | |
10240 | resultobj = SWIG_Py_Void(); | |
10241 | return resultobj; | |
10242 | fail: | |
10243 | return NULL; | |
10244 | } | |
10245 | ||
10246 | ||
10247 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10248 | PyObject *resultobj = 0; | |
10249 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10250 | wxIcon *arg2 = 0 ; | |
10251 | void *argp1 = 0 ; | |
10252 | int res1 = 0 ; | |
10253 | void *argp2 = 0 ; | |
10254 | int res2 = 0 ; | |
10255 | PyObject * obj0 = 0 ; | |
10256 | PyObject * obj1 = 0 ; | |
10257 | char * kwnames[] = { | |
10258 | (char *) "self",(char *) "icon", NULL | |
10259 | }; | |
10260 | ||
10261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10263 | if (!SWIG_IsOK(res1)) { | |
10264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10265 | } | |
10266 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10267 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
10268 | if (!SWIG_IsOK(res2)) { | |
10269 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10270 | } | |
10271 | if (!argp2) { | |
10272 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10273 | } | |
10274 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
10275 | { | |
10276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10277 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
10278 | wxPyEndAllowThreads(__tstate); | |
10279 | if (PyErr_Occurred()) SWIG_fail; | |
10280 | } | |
10281 | resultobj = SWIG_Py_Void(); | |
10282 | return resultobj; | |
10283 | fail: | |
10284 | return NULL; | |
10285 | } | |
10286 | ||
10287 | ||
10288 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10289 | PyObject *resultobj = 0; | |
10290 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10291 | wxString *arg2 = 0 ; | |
10292 | long arg3 ; | |
10293 | void *argp1 = 0 ; | |
10294 | int res1 = 0 ; | |
10295 | bool temp2 = false ; | |
10296 | long val3 ; | |
10297 | int ecode3 = 0 ; | |
10298 | PyObject * obj0 = 0 ; | |
10299 | PyObject * obj1 = 0 ; | |
10300 | PyObject * obj2 = 0 ; | |
10301 | char * kwnames[] = { | |
10302 | (char *) "self",(char *) "file",(char *) "type", NULL | |
10303 | }; | |
10304 | ||
10305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10307 | if (!SWIG_IsOK(res1)) { | |
10308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10309 | } | |
10310 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10311 | { | |
10312 | arg2 = wxString_in_helper(obj1); | |
10313 | if (arg2 == NULL) SWIG_fail; | |
10314 | temp2 = true; | |
10315 | } | |
10316 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10317 | if (!SWIG_IsOK(ecode3)) { | |
10318 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
10319 | } | |
10320 | arg3 = static_cast< long >(val3); | |
10321 | { | |
10322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10323 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
10324 | wxPyEndAllowThreads(__tstate); | |
10325 | if (PyErr_Occurred()) SWIG_fail; | |
10326 | } | |
10327 | resultobj = SWIG_Py_Void(); | |
10328 | { | |
10329 | if (temp2) | |
10330 | delete arg2; | |
10331 | } | |
10332 | return resultobj; | |
10333 | fail: | |
10334 | { | |
10335 | if (temp2) | |
10336 | delete arg2; | |
10337 | } | |
10338 | return NULL; | |
10339 | } | |
10340 | ||
10341 | ||
10342 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10343 | PyObject *resultobj = 0; | |
10344 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10345 | wxSize *arg2 = 0 ; | |
10346 | wxIcon *result = 0 ; | |
10347 | void *argp1 = 0 ; | |
10348 | int res1 = 0 ; | |
10349 | wxSize temp2 ; | |
10350 | PyObject * obj0 = 0 ; | |
10351 | PyObject * obj1 = 0 ; | |
10352 | char * kwnames[] = { | |
10353 | (char *) "self",(char *) "size", NULL | |
10354 | }; | |
10355 | ||
10356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10358 | if (!SWIG_IsOK(res1)) { | |
10359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10360 | } | |
10361 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10362 | { | |
10363 | arg2 = &temp2; | |
10364 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10365 | } | |
10366 | { | |
10367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 10368 | { |
554f62e9 RD |
10369 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
10370 | result = (wxIcon *) &_result_ref; | |
d55e5bfc | 10371 | } |
554f62e9 RD |
10372 | wxPyEndAllowThreads(__tstate); |
10373 | if (PyErr_Occurred()) SWIG_fail; | |
10374 | } | |
10375 | { | |
10376 | wxIcon* resultptr = new wxIcon(*result); | |
10377 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
10378 | } | |
10379 | return resultobj; | |
10380 | fail: | |
10381 | return NULL; | |
10382 | } | |
10383 | ||
10384 | ||
10385 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10386 | PyObject *obj; | |
10387 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10388 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
10389 | return SWIG_Py_Void(); | |
10390 | } | |
10391 | ||
10392 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10393 | return SWIG_Python_InitShadowInstance(args); | |
10394 | } | |
10395 | ||
10396 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10397 | PyObject *resultobj = 0; | |
10398 | wxString *arg1 = 0 ; | |
10399 | long arg2 ; | |
10400 | int arg3 = (int) 0 ; | |
10401 | int arg4 = (int) 0 ; | |
10402 | wxCursor *result = 0 ; | |
10403 | bool temp1 = false ; | |
10404 | long val2 ; | |
10405 | int ecode2 = 0 ; | |
10406 | int val3 ; | |
10407 | int ecode3 = 0 ; | |
10408 | int val4 ; | |
10409 | int ecode4 = 0 ; | |
10410 | PyObject * obj0 = 0 ; | |
10411 | PyObject * obj1 = 0 ; | |
10412 | PyObject * obj2 = 0 ; | |
10413 | PyObject * obj3 = 0 ; | |
10414 | char * kwnames[] = { | |
10415 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
10416 | }; | |
10417 | ||
10418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10419 | { | |
10420 | arg1 = wxString_in_helper(obj0); | |
10421 | if (arg1 == NULL) SWIG_fail; | |
10422 | temp1 = true; | |
10423 | } | |
10424 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10425 | if (!SWIG_IsOK(ecode2)) { | |
10426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
10427 | } | |
10428 | arg2 = static_cast< long >(val2); | |
10429 | if (obj2) { | |
10430 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10431 | if (!SWIG_IsOK(ecode3)) { | |
10432 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
10433 | } | |
10434 | arg3 = static_cast< int >(val3); | |
10435 | } | |
10436 | if (obj3) { | |
10437 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10438 | if (!SWIG_IsOK(ecode4)) { | |
10439 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10440 | } | |
10441 | arg4 = static_cast< int >(val4); | |
10442 | } | |
10443 | { | |
10444 | if (!wxPyCheckForApp()) SWIG_fail; | |
10445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10446 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10447 | wxPyEndAllowThreads(__tstate); | |
10448 | if (PyErr_Occurred()) SWIG_fail; | |
10449 | } | |
10450 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10451 | { | |
10452 | if (temp1) | |
10453 | delete arg1; | |
10454 | } | |
10455 | return resultobj; | |
10456 | fail: | |
10457 | { | |
10458 | if (temp1) | |
10459 | delete arg1; | |
10460 | } | |
10461 | return NULL; | |
d55e5bfc RD |
10462 | } |
10463 | ||
10464 | ||
554f62e9 RD |
10465 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10466 | PyObject *resultobj = 0; | |
10467 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10468 | void *argp1 = 0 ; | |
10469 | int res1 = 0 ; | |
10470 | PyObject *swig_obj[1] ; | |
10471 | ||
10472 | if (!args) SWIG_fail; | |
10473 | swig_obj[0] = args; | |
10474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10475 | if (!SWIG_IsOK(res1)) { | |
10476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10477 | } | |
10478 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10479 | { | |
10480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10481 | delete arg1; | |
d55e5bfc | 10482 | |
554f62e9 RD |
10483 | wxPyEndAllowThreads(__tstate); |
10484 | if (PyErr_Occurred()) SWIG_fail; | |
10485 | } | |
10486 | resultobj = SWIG_Py_Void(); | |
10487 | return resultobj; | |
10488 | fail: | |
10489 | return NULL; | |
10490 | } | |
10491 | ||
10492 | ||
10493 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10494 | PyObject *resultobj = 0; | |
10495 | int arg1 ; | |
10496 | wxCursor *result = 0 ; | |
10497 | int val1 ; | |
10498 | int ecode1 = 0 ; | |
10499 | PyObject * obj0 = 0 ; | |
10500 | char * kwnames[] = { | |
10501 | (char *) "id", NULL | |
10502 | }; | |
10503 | ||
10504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10505 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10506 | if (!SWIG_IsOK(ecode1)) { | |
10507 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10508 | } | |
10509 | arg1 = static_cast< int >(val1); | |
10510 | { | |
10511 | if (!wxPyCheckForApp()) SWIG_fail; | |
10512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10513 | result = (wxCursor *)new wxCursor(arg1); | |
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10518 | return resultobj; | |
10519 | fail: | |
10520 | return NULL; | |
10521 | } | |
10522 | ||
10523 | ||
10524 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10525 | PyObject *resultobj = 0; | |
10526 | wxImage *arg1 = 0 ; | |
10527 | wxCursor *result = 0 ; | |
10528 | void *argp1 = 0 ; | |
10529 | int res1 = 0 ; | |
10530 | PyObject * obj0 = 0 ; | |
10531 | char * kwnames[] = { | |
10532 | (char *) "image", NULL | |
10533 | }; | |
10534 | ||
10535 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10536 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10537 | if (!SWIG_IsOK(res1)) { | |
10538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10539 | } | |
10540 | if (!argp1) { | |
10541 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10542 | } | |
10543 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10544 | { | |
10545 | if (!wxPyCheckForApp()) SWIG_fail; | |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10548 | wxPyEndAllowThreads(__tstate); | |
10549 | if (PyErr_Occurred()) SWIG_fail; | |
10550 | } | |
10551 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10552 | return resultobj; | |
10553 | fail: | |
10554 | return NULL; | |
d55e5bfc RD |
10555 | } |
10556 | ||
10557 | ||
554f62e9 RD |
10558 | SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10559 | PyObject *resultobj = 0; | |
10560 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10561 | long result; | |
10562 | void *argp1 = 0 ; | |
10563 | int res1 = 0 ; | |
10564 | PyObject *swig_obj[1] ; | |
10565 | ||
10566 | if (!args) SWIG_fail; | |
10567 | swig_obj[0] = args; | |
10568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10569 | if (!SWIG_IsOK(res1)) { | |
10570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10571 | } | |
10572 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10573 | { | |
10574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10575 | result = (long)(arg1)->GetHandle(); | |
10576 | wxPyEndAllowThreads(__tstate); | |
10577 | if (PyErr_Occurred()) SWIG_fail; | |
10578 | } | |
10579 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
10580 | return resultobj; | |
10581 | fail: | |
10582 | return NULL; | |
10583 | } | |
10584 | ||
10585 | ||
10586 | SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10587 | PyObject *resultobj = 0; | |
10588 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10589 | long arg2 ; | |
10590 | void *argp1 = 0 ; | |
10591 | int res1 = 0 ; | |
10592 | long val2 ; | |
10593 | int ecode2 = 0 ; | |
10594 | PyObject * obj0 = 0 ; | |
10595 | PyObject * obj1 = 0 ; | |
10596 | char * kwnames[] = { | |
10597 | (char *) "self",(char *) "handle", NULL | |
10598 | }; | |
10599 | ||
10600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
10601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10602 | if (!SWIG_IsOK(res1)) { | |
10603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10604 | } | |
10605 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10606 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10607 | if (!SWIG_IsOK(ecode2)) { | |
10608 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
10609 | } | |
10610 | arg2 = static_cast< long >(val2); | |
10611 | { | |
10612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10613 | wxCursor_SetHandle(arg1,arg2); | |
10614 | wxPyEndAllowThreads(__tstate); | |
10615 | if (PyErr_Occurred()) SWIG_fail; | |
10616 | } | |
10617 | resultobj = SWIG_Py_Void(); | |
10618 | return resultobj; | |
10619 | fail: | |
10620 | return NULL; | |
d55e5bfc RD |
10621 | } |
10622 | ||
10623 | ||
b39fe951 | 10624 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
10625 | PyObject *resultobj = 0; |
10626 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10627 | bool result; | |
10628 | void *argp1 = 0 ; | |
10629 | int res1 = 0 ; | |
10630 | PyObject *swig_obj[1] ; | |
10631 | ||
10632 | if (!args) SWIG_fail; | |
10633 | swig_obj[0] = args; | |
10634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10635 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
554f62e9 RD |
10637 | } |
10638 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10639 | { | |
10640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10641 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
10642 | wxPyEndAllowThreads(__tstate); |
10643 | if (PyErr_Occurred()) SWIG_fail; | |
10644 | } | |
10645 | { | |
10646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10647 | } | |
10648 | return resultobj; | |
10649 | fail: | |
10650 | return NULL; | |
d55e5bfc RD |
10651 | } |
10652 | ||
10653 | ||
554f62e9 RD |
10654 | SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10655 | PyObject *resultobj = 0; | |
10656 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10657 | int result; | |
10658 | void *argp1 = 0 ; | |
10659 | int res1 = 0 ; | |
10660 | PyObject *swig_obj[1] ; | |
10661 | ||
10662 | if (!args) SWIG_fail; | |
10663 | swig_obj[0] = args; | |
10664 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10665 | if (!SWIG_IsOK(res1)) { | |
10666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10667 | } | |
10668 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10669 | { | |
10670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10671 | result = (int)(arg1)->GetWidth(); | |
10672 | wxPyEndAllowThreads(__tstate); | |
10673 | if (PyErr_Occurred()) SWIG_fail; | |
10674 | } | |
10675 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10676 | return resultobj; | |
10677 | fail: | |
10678 | return NULL; | |
d55e5bfc RD |
10679 | } |
10680 | ||
10681 | ||
554f62e9 RD |
10682 | SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10683 | PyObject *resultobj = 0; | |
10684 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10685 | int result; | |
10686 | void *argp1 = 0 ; | |
10687 | int res1 = 0 ; | |
10688 | PyObject *swig_obj[1] ; | |
10689 | ||
10690 | if (!args) SWIG_fail; | |
10691 | swig_obj[0] = args; | |
10692 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10693 | if (!SWIG_IsOK(res1)) { | |
10694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10695 | } | |
10696 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10697 | { | |
10698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10699 | result = (int)(arg1)->GetHeight(); | |
10700 | wxPyEndAllowThreads(__tstate); | |
10701 | if (PyErr_Occurred()) SWIG_fail; | |
10702 | } | |
10703 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10704 | return resultobj; | |
10705 | fail: | |
10706 | return NULL; | |
d55e5bfc RD |
10707 | } |
10708 | ||
10709 | ||
554f62e9 RD |
10710 | SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10711 | PyObject *resultobj = 0; | |
10712 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10713 | int result; | |
10714 | void *argp1 = 0 ; | |
10715 | int res1 = 0 ; | |
10716 | PyObject *swig_obj[1] ; | |
10717 | ||
10718 | if (!args) SWIG_fail; | |
10719 | swig_obj[0] = args; | |
10720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10721 | if (!SWIG_IsOK(res1)) { | |
10722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10723 | } | |
10724 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10725 | { | |
10726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10727 | result = (int)(arg1)->GetDepth(); | |
10728 | wxPyEndAllowThreads(__tstate); | |
10729 | if (PyErr_Occurred()) SWIG_fail; | |
10730 | } | |
10731 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10732 | return resultobj; | |
10733 | fail: | |
10734 | return NULL; | |
10735 | } | |
10736 | ||
10737 | ||
10738 | SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10739 | PyObject *resultobj = 0; | |
10740 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10741 | int arg2 ; | |
10742 | void *argp1 = 0 ; | |
10743 | int res1 = 0 ; | |
10744 | int val2 ; | |
10745 | int ecode2 = 0 ; | |
10746 | PyObject * obj0 = 0 ; | |
10747 | PyObject * obj1 = 0 ; | |
10748 | char * kwnames[] = { | |
10749 | (char *) "self",(char *) "w", NULL | |
10750 | }; | |
10751 | ||
10752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
10753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10754 | if (!SWIG_IsOK(res1)) { | |
10755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10756 | } | |
10757 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10758 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10759 | if (!SWIG_IsOK(ecode2)) { | |
10760 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
10761 | } | |
10762 | arg2 = static_cast< int >(val2); | |
10763 | { | |
10764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10765 | (arg1)->SetWidth(arg2); | |
10766 | wxPyEndAllowThreads(__tstate); | |
10767 | if (PyErr_Occurred()) SWIG_fail; | |
10768 | } | |
10769 | resultobj = SWIG_Py_Void(); | |
10770 | return resultobj; | |
10771 | fail: | |
10772 | return NULL; | |
10773 | } | |
10774 | ||
10775 | ||
10776 | SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10777 | PyObject *resultobj = 0; | |
10778 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10779 | int arg2 ; | |
10780 | void *argp1 = 0 ; | |
10781 | int res1 = 0 ; | |
10782 | int val2 ; | |
10783 | int ecode2 = 0 ; | |
10784 | PyObject * obj0 = 0 ; | |
10785 | PyObject * obj1 = 0 ; | |
10786 | char * kwnames[] = { | |
10787 | (char *) "self",(char *) "h", NULL | |
10788 | }; | |
10789 | ||
10790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
10791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10792 | if (!SWIG_IsOK(res1)) { | |
10793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10794 | } | |
10795 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10796 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10797 | if (!SWIG_IsOK(ecode2)) { | |
10798 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
10799 | } | |
10800 | arg2 = static_cast< int >(val2); | |
10801 | { | |
10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10803 | (arg1)->SetHeight(arg2); | |
10804 | wxPyEndAllowThreads(__tstate); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
10807 | resultobj = SWIG_Py_Void(); | |
10808 | return resultobj; | |
10809 | fail: | |
10810 | return NULL; | |
10811 | } | |
10812 | ||
10813 | ||
10814 | SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10815 | PyObject *resultobj = 0; | |
10816 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10817 | int arg2 ; | |
10818 | void *argp1 = 0 ; | |
10819 | int res1 = 0 ; | |
10820 | int val2 ; | |
10821 | int ecode2 = 0 ; | |
10822 | PyObject * obj0 = 0 ; | |
10823 | PyObject * obj1 = 0 ; | |
10824 | char * kwnames[] = { | |
10825 | (char *) "self",(char *) "d", NULL | |
10826 | }; | |
10827 | ||
10828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
10829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10830 | if (!SWIG_IsOK(res1)) { | |
10831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10832 | } | |
10833 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10834 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10835 | if (!SWIG_IsOK(ecode2)) { | |
10836 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
10837 | } | |
10838 | arg2 = static_cast< int >(val2); | |
10839 | { | |
10840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10841 | (arg1)->SetDepth(arg2); | |
10842 | wxPyEndAllowThreads(__tstate); | |
10843 | if (PyErr_Occurred()) SWIG_fail; | |
10844 | } | |
10845 | resultobj = SWIG_Py_Void(); | |
10846 | return resultobj; | |
10847 | fail: | |
10848 | return NULL; | |
10849 | } | |
10850 | ||
10851 | ||
10852 | SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10853 | PyObject *resultobj = 0; | |
10854 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10855 | wxSize *arg2 = 0 ; | |
10856 | void *argp1 = 0 ; | |
10857 | int res1 = 0 ; | |
10858 | wxSize temp2 ; | |
10859 | PyObject * obj0 = 0 ; | |
10860 | PyObject * obj1 = 0 ; | |
10861 | char * kwnames[] = { | |
10862 | (char *) "self",(char *) "size", NULL | |
10863 | }; | |
10864 | ||
10865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10867 | if (!SWIG_IsOK(res1)) { | |
10868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10869 | } | |
10870 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10871 | { | |
10872 | arg2 = &temp2; | |
10873 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10874 | } | |
10875 | { | |
10876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10877 | (arg1)->SetSize((wxSize const &)*arg2); | |
10878 | wxPyEndAllowThreads(__tstate); | |
10879 | if (PyErr_Occurred()) SWIG_fail; | |
10880 | } | |
10881 | resultobj = SWIG_Py_Void(); | |
10882 | return resultobj; | |
10883 | fail: | |
10884 | return NULL; | |
10885 | } | |
10886 | ||
10887 | ||
10888 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10889 | PyObject *obj; | |
10890 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10891 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10892 | return SWIG_Py_Void(); | |
10893 | } | |
10894 | ||
10895 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10896 | return SWIG_Python_InitShadowInstance(args); | |
10897 | } | |
10898 | ||
10899 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10900 | PyObject *resultobj = 0; | |
10901 | int arg1 = (int) 0 ; | |
10902 | int arg2 = (int) 0 ; | |
10903 | int arg3 = (int) 0 ; | |
10904 | int arg4 = (int) 0 ; | |
10905 | wxRegion *result = 0 ; | |
10906 | int val1 ; | |
10907 | int ecode1 = 0 ; | |
10908 | int val2 ; | |
10909 | int ecode2 = 0 ; | |
10910 | int val3 ; | |
10911 | int ecode3 = 0 ; | |
10912 | int val4 ; | |
10913 | int ecode4 = 0 ; | |
10914 | PyObject * obj0 = 0 ; | |
10915 | PyObject * obj1 = 0 ; | |
10916 | PyObject * obj2 = 0 ; | |
10917 | PyObject * obj3 = 0 ; | |
10918 | char * kwnames[] = { | |
10919 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10920 | }; | |
10921 | ||
10922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10923 | if (obj0) { | |
10924 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10925 | if (!SWIG_IsOK(ecode1)) { | |
10926 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10927 | } | |
10928 | arg1 = static_cast< int >(val1); | |
10929 | } | |
10930 | if (obj1) { | |
10931 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10932 | if (!SWIG_IsOK(ecode2)) { | |
10933 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10934 | } | |
10935 | arg2 = static_cast< int >(val2); | |
10936 | } | |
10937 | if (obj2) { | |
10938 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10939 | if (!SWIG_IsOK(ecode3)) { | |
10940 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10941 | } | |
10942 | arg3 = static_cast< int >(val3); | |
10943 | } | |
10944 | if (obj3) { | |
10945 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10946 | if (!SWIG_IsOK(ecode4)) { | |
10947 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10948 | } | |
10949 | arg4 = static_cast< int >(val4); | |
10950 | } | |
10951 | { | |
10952 | if (!wxPyCheckForApp()) SWIG_fail; | |
10953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10954 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10955 | wxPyEndAllowThreads(__tstate); | |
10956 | if (PyErr_Occurred()) SWIG_fail; | |
10957 | } | |
10958 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10959 | return resultobj; | |
10960 | fail: | |
10961 | return NULL; | |
10962 | } | |
10963 | ||
10964 | ||
10965 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10966 | PyObject *resultobj = 0; | |
10967 | wxBitmap *arg1 = 0 ; | |
10968 | wxRegion *result = 0 ; | |
10969 | void *argp1 = 0 ; | |
10970 | int res1 = 0 ; | |
10971 | PyObject * obj0 = 0 ; | |
10972 | char * kwnames[] = { | |
10973 | (char *) "bmp", NULL | |
10974 | }; | |
10975 | ||
10976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
10977 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10978 | if (!SWIG_IsOK(res1)) { | |
10979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10980 | } | |
10981 | if (!argp1) { | |
10982 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10983 | } | |
10984 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10985 | { | |
10986 | if (!wxPyCheckForApp()) SWIG_fail; | |
10987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10988 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
10989 | wxPyEndAllowThreads(__tstate); | |
10990 | if (PyErr_Occurred()) SWIG_fail; | |
10991 | } | |
10992 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10993 | return resultobj; | |
10994 | fail: | |
10995 | return NULL; | |
10996 | } | |
10997 | ||
10998 | ||
10999 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11000 | PyObject *resultobj = 0; | |
11001 | wxBitmap *arg1 = 0 ; | |
11002 | wxColour *arg2 = 0 ; | |
11003 | int arg3 = (int) 0 ; | |
11004 | wxRegion *result = 0 ; | |
11005 | void *argp1 = 0 ; | |
11006 | int res1 = 0 ; | |
11007 | wxColour temp2 ; | |
11008 | int val3 ; | |
11009 | int ecode3 = 0 ; | |
11010 | PyObject * obj0 = 0 ; | |
11011 | PyObject * obj1 = 0 ; | |
11012 | PyObject * obj2 = 0 ; | |
11013 | char * kwnames[] = { | |
11014 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11015 | }; | |
11016 | ||
11017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11018 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11019 | if (!SWIG_IsOK(res1)) { | |
11020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11021 | } | |
11022 | if (!argp1) { | |
11023 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11024 | } | |
11025 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
11026 | { | |
11027 | arg2 = &temp2; | |
11028 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11029 | } | |
11030 | if (obj2) { | |
11031 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11032 | if (!SWIG_IsOK(ecode3)) { | |
11033 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
11034 | } | |
11035 | arg3 = static_cast< int >(val3); | |
11036 | } | |
11037 | { | |
11038 | if (!wxPyCheckForApp()) SWIG_fail; | |
11039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11040 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
11041 | wxPyEndAllowThreads(__tstate); | |
11042 | if (PyErr_Occurred()) SWIG_fail; | |
11043 | } | |
11044 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
11045 | return resultobj; | |
11046 | fail: | |
11047 | return NULL; | |
11048 | } | |
11049 | ||
11050 | ||
11051 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11052 | PyObject *resultobj = 0; | |
11053 | int arg1 ; | |
11054 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11055 | int arg3 = (int) wxWINDING_RULE ; | |
11056 | wxRegion *result = 0 ; | |
11057 | int val3 ; | |
11058 | int ecode3 = 0 ; | |
11059 | PyObject * obj0 = 0 ; | |
11060 | PyObject * obj1 = 0 ; | |
11061 | char * kwnames[] = { | |
11062 | (char *) "points",(char *) "fillStyle", NULL | |
11063 | }; | |
11064 | ||
11065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
11066 | { | |
11067 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
11068 | if (arg2 == NULL) SWIG_fail; | |
11069 | } | |
11070 | if (obj1) { | |
11071 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
11072 | if (!SWIG_IsOK(ecode3)) { | |
11073 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
11074 | } | |
11075 | arg3 = static_cast< int >(val3); | |
11076 | } | |
11077 | { | |
11078 | if (!wxPyCheckForApp()) SWIG_fail; | |
11079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11080 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
11081 | wxPyEndAllowThreads(__tstate); | |
11082 | if (PyErr_Occurred()) SWIG_fail; | |
11083 | } | |
11084 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
11085 | { | |
11086 | if (arg2) delete [] arg2; | |
11087 | } | |
11088 | return resultobj; | |
11089 | fail: | |
11090 | { | |
11091 | if (arg2) delete [] arg2; | |
11092 | } | |
11093 | return NULL; | |
d55e5bfc RD |
11094 | } |
11095 | ||
11096 | ||
554f62e9 RD |
11097 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11098 | PyObject *resultobj = 0; | |
11099 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11100 | void *argp1 = 0 ; | |
11101 | int res1 = 0 ; | |
11102 | PyObject *swig_obj[1] ; | |
11103 | ||
11104 | if (!args) SWIG_fail; | |
11105 | swig_obj[0] = args; | |
11106 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
11107 | if (!SWIG_IsOK(res1)) { | |
11108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11109 | } | |
11110 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11111 | { | |
11112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11113 | delete arg1; | |
d55e5bfc | 11114 | |
554f62e9 RD |
11115 | wxPyEndAllowThreads(__tstate); |
11116 | if (PyErr_Occurred()) SWIG_fail; | |
11117 | } | |
11118 | resultobj = SWIG_Py_Void(); | |
11119 | return resultobj; | |
11120 | fail: | |
11121 | return NULL; | |
d55e5bfc RD |
11122 | } |
11123 | ||
11124 | ||
554f62e9 RD |
11125 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11126 | PyObject *resultobj = 0; | |
11127 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11128 | void *argp1 = 0 ; | |
11129 | int res1 = 0 ; | |
11130 | PyObject *swig_obj[1] ; | |
11131 | ||
11132 | if (!args) SWIG_fail; | |
11133 | swig_obj[0] = args; | |
11134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11135 | if (!SWIG_IsOK(res1)) { | |
11136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11137 | } | |
11138 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11139 | { | |
11140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11141 | (arg1)->Clear(); | |
11142 | wxPyEndAllowThreads(__tstate); | |
11143 | if (PyErr_Occurred()) SWIG_fail; | |
11144 | } | |
11145 | resultobj = SWIG_Py_Void(); | |
11146 | return resultobj; | |
11147 | fail: | |
11148 | return NULL; | |
11149 | } | |
11150 | ||
11151 | ||
11152 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11153 | PyObject *resultobj = 0; | |
11154 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11155 | int arg2 ; | |
11156 | int arg3 ; | |
11157 | bool result; | |
11158 | void *argp1 = 0 ; | |
11159 | int res1 = 0 ; | |
11160 | int val2 ; | |
11161 | int ecode2 = 0 ; | |
11162 | int val3 ; | |
11163 | int ecode3 = 0 ; | |
11164 | PyObject * obj0 = 0 ; | |
11165 | PyObject * obj1 = 0 ; | |
11166 | PyObject * obj2 = 0 ; | |
11167 | char * kwnames[] = { | |
11168 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11169 | }; | |
11170 | ||
11171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11173 | if (!SWIG_IsOK(res1)) { | |
11174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11175 | } | |
11176 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11177 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11178 | if (!SWIG_IsOK(ecode2)) { | |
11179 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
11180 | } | |
11181 | arg2 = static_cast< int >(val2); | |
11182 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11183 | if (!SWIG_IsOK(ecode3)) { | |
11184 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
11185 | } | |
11186 | arg3 = static_cast< int >(val3); | |
11187 | { | |
11188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11189 | result = (bool)(arg1)->Offset(arg2,arg3); | |
11190 | wxPyEndAllowThreads(__tstate); | |
11191 | if (PyErr_Occurred()) SWIG_fail; | |
11192 | } | |
11193 | { | |
11194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11195 | } | |
11196 | return resultobj; | |
11197 | fail: | |
11198 | return NULL; | |
11199 | } | |
11200 | ||
11201 | ||
11202 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11203 | PyObject *resultobj = 0; | |
11204 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11205 | int arg2 ; | |
11206 | int arg3 ; | |
11207 | wxRegionContain result; | |
11208 | void *argp1 = 0 ; | |
11209 | int res1 = 0 ; | |
11210 | int val2 ; | |
11211 | int ecode2 = 0 ; | |
11212 | int val3 ; | |
11213 | int ecode3 = 0 ; | |
11214 | PyObject * obj0 = 0 ; | |
11215 | PyObject * obj1 = 0 ; | |
11216 | PyObject * obj2 = 0 ; | |
11217 | char * kwnames[] = { | |
11218 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11219 | }; | |
11220 | ||
11221 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11222 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11223 | if (!SWIG_IsOK(res1)) { | |
11224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11225 | } | |
11226 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11227 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11228 | if (!SWIG_IsOK(ecode2)) { | |
11229 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
11230 | } | |
11231 | arg2 = static_cast< int >(val2); | |
11232 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11233 | if (!SWIG_IsOK(ecode3)) { | |
11234 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
11235 | } | |
11236 | arg3 = static_cast< int >(val3); | |
11237 | { | |
11238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11239 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
11240 | wxPyEndAllowThreads(__tstate); | |
11241 | if (PyErr_Occurred()) SWIG_fail; | |
11242 | } | |
11243 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11244 | return resultobj; | |
11245 | fail: | |
11246 | return NULL; | |
11247 | } | |
11248 | ||
11249 | ||
11250 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11251 | PyObject *resultobj = 0; | |
11252 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11253 | wxPoint *arg2 = 0 ; | |
11254 | wxRegionContain result; | |
11255 | void *argp1 = 0 ; | |
11256 | int res1 = 0 ; | |
11257 | wxPoint temp2 ; | |
11258 | PyObject * obj0 = 0 ; | |
11259 | PyObject * obj1 = 0 ; | |
11260 | char * kwnames[] = { | |
11261 | (char *) "self",(char *) "pt", NULL | |
11262 | }; | |
11263 | ||
11264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
11265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11266 | if (!SWIG_IsOK(res1)) { | |
11267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11268 | } | |
11269 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11270 | { | |
11271 | arg2 = &temp2; | |
11272 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11273 | } | |
11274 | { | |
11275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11276 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
11277 | wxPyEndAllowThreads(__tstate); | |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
11279 | } | |
11280 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11281 | return resultobj; | |
11282 | fail: | |
11283 | return NULL; | |
11284 | } | |
11285 | ||
11286 | ||
11287 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11288 | PyObject *resultobj = 0; | |
11289 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11290 | wxRect *arg2 = 0 ; | |
11291 | wxRegionContain result; | |
11292 | void *argp1 = 0 ; | |
11293 | int res1 = 0 ; | |
11294 | wxRect temp2 ; | |
11295 | PyObject * obj0 = 0 ; | |
11296 | PyObject * obj1 = 0 ; | |
11297 | char * kwnames[] = { | |
11298 | (char *) "self",(char *) "rect", NULL | |
11299 | }; | |
11300 | ||
11301 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11303 | if (!SWIG_IsOK(res1)) { | |
11304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11305 | } | |
11306 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11307 | { | |
11308 | arg2 = &temp2; | |
11309 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11310 | } | |
11311 | { | |
11312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11313 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
11314 | wxPyEndAllowThreads(__tstate); | |
11315 | if (PyErr_Occurred()) SWIG_fail; | |
11316 | } | |
11317 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11318 | return resultobj; | |
11319 | fail: | |
11320 | return NULL; | |
11321 | } | |
11322 | ||
11323 | ||
11324 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11325 | PyObject *resultobj = 0; | |
11326 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11327 | int arg2 ; | |
11328 | int arg3 ; | |
11329 | int arg4 ; | |
11330 | int arg5 ; | |
11331 | wxRegionContain result; | |
11332 | void *argp1 = 0 ; | |
11333 | int res1 = 0 ; | |
11334 | int val2 ; | |
11335 | int ecode2 = 0 ; | |
11336 | int val3 ; | |
11337 | int ecode3 = 0 ; | |
11338 | int val4 ; | |
11339 | int ecode4 = 0 ; | |
11340 | int val5 ; | |
11341 | int ecode5 = 0 ; | |
11342 | PyObject * obj0 = 0 ; | |
11343 | PyObject * obj1 = 0 ; | |
11344 | PyObject * obj2 = 0 ; | |
11345 | PyObject * obj3 = 0 ; | |
11346 | PyObject * obj4 = 0 ; | |
11347 | char * kwnames[] = { | |
11348 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
11349 | }; | |
11350 | ||
11351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11353 | if (!SWIG_IsOK(res1)) { | |
11354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11355 | } | |
11356 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11357 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11358 | if (!SWIG_IsOK(ecode2)) { | |
11359 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
11360 | } | |
11361 | arg2 = static_cast< int >(val2); | |
11362 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11363 | if (!SWIG_IsOK(ecode3)) { | |
11364 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
11365 | } | |
11366 | arg3 = static_cast< int >(val3); | |
11367 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11368 | if (!SWIG_IsOK(ecode4)) { | |
11369 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
11370 | } | |
11371 | arg4 = static_cast< int >(val4); | |
11372 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11373 | if (!SWIG_IsOK(ecode5)) { | |
11374 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
11375 | } | |
11376 | arg5 = static_cast< int >(val5); | |
11377 | { | |
11378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11379 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
11380 | wxPyEndAllowThreads(__tstate); | |
11381 | if (PyErr_Occurred()) SWIG_fail; | |
11382 | } | |
11383 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11384 | return resultobj; | |
11385 | fail: | |
11386 | return NULL; | |
d55e5bfc RD |
11387 | } |
11388 | ||
11389 | ||
554f62e9 RD |
11390 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11391 | PyObject *resultobj = 0; | |
11392 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11393 | wxRect result; | |
11394 | void *argp1 = 0 ; | |
11395 | int res1 = 0 ; | |
11396 | PyObject *swig_obj[1] ; | |
11397 | ||
11398 | if (!args) SWIG_fail; | |
11399 | swig_obj[0] = args; | |
11400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11401 | if (!SWIG_IsOK(res1)) { | |
11402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11403 | } | |
11404 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11405 | { | |
11406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11407 | result = (arg1)->GetBox(); | |
11408 | wxPyEndAllowThreads(__tstate); | |
11409 | if (PyErr_Occurred()) SWIG_fail; | |
11410 | } | |
11411 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11412 | return resultobj; | |
11413 | fail: | |
11414 | return NULL; | |
11415 | } | |
11416 | ||
11417 | ||
11418 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11419 | PyObject *resultobj = 0; | |
11420 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11421 | int arg2 ; | |
11422 | int arg3 ; | |
11423 | int arg4 ; | |
11424 | int arg5 ; | |
11425 | bool result; | |
11426 | void *argp1 = 0 ; | |
11427 | int res1 = 0 ; | |
11428 | int val2 ; | |
11429 | int ecode2 = 0 ; | |
11430 | int val3 ; | |
11431 | int ecode3 = 0 ; | |
11432 | int val4 ; | |
11433 | int ecode4 = 0 ; | |
11434 | int val5 ; | |
11435 | int ecode5 = 0 ; | |
11436 | PyObject * obj0 = 0 ; | |
11437 | PyObject * obj1 = 0 ; | |
11438 | PyObject * obj2 = 0 ; | |
11439 | PyObject * obj3 = 0 ; | |
11440 | PyObject * obj4 = 0 ; | |
11441 | char * kwnames[] = { | |
11442 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11443 | }; | |
11444 | ||
11445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11447 | if (!SWIG_IsOK(res1)) { | |
11448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11449 | } | |
11450 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11451 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11452 | if (!SWIG_IsOK(ecode2)) { | |
11453 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
11454 | } | |
11455 | arg2 = static_cast< int >(val2); | |
11456 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11457 | if (!SWIG_IsOK(ecode3)) { | |
11458 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
11459 | } | |
11460 | arg3 = static_cast< int >(val3); | |
11461 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11462 | if (!SWIG_IsOK(ecode4)) { | |
11463 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
11464 | } | |
11465 | arg4 = static_cast< int >(val4); | |
11466 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11467 | if (!SWIG_IsOK(ecode5)) { | |
11468 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
11469 | } | |
11470 | arg5 = static_cast< int >(val5); | |
11471 | { | |
11472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11473 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
11474 | wxPyEndAllowThreads(__tstate); | |
11475 | if (PyErr_Occurred()) SWIG_fail; | |
11476 | } | |
11477 | { | |
11478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11479 | } | |
11480 | return resultobj; | |
11481 | fail: | |
11482 | return NULL; | |
11483 | } | |
11484 | ||
11485 | ||
11486 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11487 | PyObject *resultobj = 0; | |
11488 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11489 | wxRect *arg2 = 0 ; | |
11490 | bool result; | |
11491 | void *argp1 = 0 ; | |
11492 | int res1 = 0 ; | |
11493 | wxRect temp2 ; | |
11494 | PyObject * obj0 = 0 ; | |
11495 | PyObject * obj1 = 0 ; | |
11496 | char * kwnames[] = { | |
11497 | (char *) "self",(char *) "rect", NULL | |
11498 | }; | |
11499 | ||
11500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11502 | if (!SWIG_IsOK(res1)) { | |
11503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11504 | } | |
11505 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11506 | { | |
11507 | arg2 = &temp2; | |
11508 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11509 | } | |
11510 | { | |
11511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11512 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
11513 | wxPyEndAllowThreads(__tstate); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
11516 | { | |
11517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11518 | } | |
11519 | return resultobj; | |
11520 | fail: | |
11521 | return NULL; | |
11522 | } | |
11523 | ||
11524 | ||
11525 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11526 | PyObject *resultobj = 0; | |
11527 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11528 | wxRegion *arg2 = 0 ; | |
11529 | bool result; | |
11530 | void *argp1 = 0 ; | |
11531 | int res1 = 0 ; | |
11532 | void *argp2 = 0 ; | |
11533 | int res2 = 0 ; | |
11534 | PyObject * obj0 = 0 ; | |
11535 | PyObject * obj1 = 0 ; | |
11536 | char * kwnames[] = { | |
11537 | (char *) "self",(char *) "region", NULL | |
11538 | }; | |
11539 | ||
11540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11542 | if (!SWIG_IsOK(res1)) { | |
11543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11544 | } | |
11545 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11546 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11547 | if (!SWIG_IsOK(res2)) { | |
11548 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11549 | } | |
11550 | if (!argp2) { | |
11551 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11552 | } | |
11553 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11554 | { | |
11555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11556 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | { | |
11561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11562 | } | |
11563 | return resultobj; | |
11564 | fail: | |
11565 | return NULL; | |
d55e5bfc RD |
11566 | } |
11567 | ||
11568 | ||
554f62e9 RD |
11569 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11570 | PyObject *resultobj = 0; | |
11571 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11572 | bool result; | |
11573 | void *argp1 = 0 ; | |
11574 | int res1 = 0 ; | |
11575 | PyObject *swig_obj[1] ; | |
11576 | ||
11577 | if (!args) SWIG_fail; | |
11578 | swig_obj[0] = args; | |
11579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11580 | if (!SWIG_IsOK(res1)) { | |
11581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11582 | } | |
11583 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11584 | { | |
11585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11586 | result = (bool)(arg1)->IsEmpty(); | |
11587 | wxPyEndAllowThreads(__tstate); | |
11588 | if (PyErr_Occurred()) SWIG_fail; | |
11589 | } | |
11590 | { | |
11591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11592 | } | |
11593 | return resultobj; | |
11594 | fail: | |
11595 | return NULL; | |
11596 | } | |
11597 | ||
11598 | ||
f5263701 RD |
11599 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11600 | PyObject *resultobj = 0; | |
11601 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11602 | wxRegion *arg2 = 0 ; | |
11603 | bool result; | |
11604 | void *argp1 = 0 ; | |
11605 | int res1 = 0 ; | |
11606 | void *argp2 = 0 ; | |
11607 | int res2 = 0 ; | |
11608 | PyObject * obj0 = 0 ; | |
11609 | PyObject * obj1 = 0 ; | |
11610 | char * kwnames[] = { | |
11611 | (char *) "self",(char *) "region", NULL | |
11612 | }; | |
11613 | ||
11614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
11615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11616 | if (!SWIG_IsOK(res1)) { | |
11617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
11618 | } | |
11619 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11620 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11621 | if (!SWIG_IsOK(res2)) { | |
11622 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11623 | } | |
11624 | if (!argp2) { | |
11625 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11626 | } | |
11627 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11628 | { | |
11629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11630 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
11631 | wxPyEndAllowThreads(__tstate); | |
11632 | if (PyErr_Occurred()) SWIG_fail; | |
11633 | } | |
11634 | { | |
11635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11636 | } | |
11637 | return resultobj; | |
11638 | fail: | |
11639 | return NULL; | |
11640 | } | |
11641 | ||
11642 | ||
554f62e9 RD |
11643 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11644 | PyObject *resultobj = 0; | |
11645 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11646 | int arg2 ; | |
11647 | int arg3 ; | |
11648 | int arg4 ; | |
11649 | int arg5 ; | |
11650 | bool result; | |
11651 | void *argp1 = 0 ; | |
11652 | int res1 = 0 ; | |
11653 | int val2 ; | |
11654 | int ecode2 = 0 ; | |
11655 | int val3 ; | |
11656 | int ecode3 = 0 ; | |
11657 | int val4 ; | |
11658 | int ecode4 = 0 ; | |
11659 | int val5 ; | |
11660 | int ecode5 = 0 ; | |
11661 | PyObject * obj0 = 0 ; | |
11662 | PyObject * obj1 = 0 ; | |
11663 | PyObject * obj2 = 0 ; | |
11664 | PyObject * obj3 = 0 ; | |
11665 | PyObject * obj4 = 0 ; | |
11666 | char * kwnames[] = { | |
11667 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11668 | }; | |
11669 | ||
11670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11672 | if (!SWIG_IsOK(res1)) { | |
11673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11674 | } | |
11675 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11676 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11677 | if (!SWIG_IsOK(ecode2)) { | |
11678 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
11679 | } | |
11680 | arg2 = static_cast< int >(val2); | |
11681 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11682 | if (!SWIG_IsOK(ecode3)) { | |
11683 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
11684 | } | |
11685 | arg3 = static_cast< int >(val3); | |
11686 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11687 | if (!SWIG_IsOK(ecode4)) { | |
11688 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
11689 | } | |
11690 | arg4 = static_cast< int >(val4); | |
11691 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11692 | if (!SWIG_IsOK(ecode5)) { | |
11693 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
11694 | } | |
11695 | arg5 = static_cast< int >(val5); | |
11696 | { | |
11697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11698 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
11699 | wxPyEndAllowThreads(__tstate); | |
11700 | if (PyErr_Occurred()) SWIG_fail; | |
11701 | } | |
11702 | { | |
11703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11704 | } | |
11705 | return resultobj; | |
11706 | fail: | |
11707 | return NULL; | |
11708 | } | |
11709 | ||
11710 | ||
11711 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11712 | PyObject *resultobj = 0; | |
11713 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11714 | wxRect *arg2 = 0 ; | |
11715 | bool result; | |
11716 | void *argp1 = 0 ; | |
11717 | int res1 = 0 ; | |
11718 | wxRect temp2 ; | |
11719 | PyObject * obj0 = 0 ; | |
11720 | PyObject * obj1 = 0 ; | |
11721 | char * kwnames[] = { | |
11722 | (char *) "self",(char *) "rect", NULL | |
11723 | }; | |
11724 | ||
11725 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11726 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11727 | if (!SWIG_IsOK(res1)) { | |
11728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11729 | } | |
11730 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11731 | { | |
11732 | arg2 = &temp2; | |
11733 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11734 | } | |
11735 | { | |
11736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11737 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11738 | wxPyEndAllowThreads(__tstate); | |
11739 | if (PyErr_Occurred()) SWIG_fail; | |
11740 | } | |
11741 | { | |
11742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11743 | } | |
11744 | return resultobj; | |
11745 | fail: | |
11746 | return NULL; | |
11747 | } | |
11748 | ||
11749 | ||
11750 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11751 | PyObject *resultobj = 0; | |
11752 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11753 | wxRegion *arg2 = 0 ; | |
11754 | bool result; | |
11755 | void *argp1 = 0 ; | |
11756 | int res1 = 0 ; | |
11757 | void *argp2 = 0 ; | |
11758 | int res2 = 0 ; | |
11759 | PyObject * obj0 = 0 ; | |
11760 | PyObject * obj1 = 0 ; | |
11761 | char * kwnames[] = { | |
11762 | (char *) "self",(char *) "region", NULL | |
11763 | }; | |
11764 | ||
11765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11767 | if (!SWIG_IsOK(res1)) { | |
11768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11769 | } | |
11770 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11771 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11772 | if (!SWIG_IsOK(res2)) { | |
11773 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11774 | } | |
11775 | if (!argp2) { | |
11776 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11777 | } | |
11778 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11779 | { | |
11780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11781 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11782 | wxPyEndAllowThreads(__tstate); | |
11783 | if (PyErr_Occurred()) SWIG_fail; | |
11784 | } | |
11785 | { | |
11786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11787 | } | |
11788 | return resultobj; | |
11789 | fail: | |
11790 | return NULL; | |
11791 | } | |
11792 | ||
11793 | ||
11794 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11795 | PyObject *resultobj = 0; | |
11796 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11797 | int arg2 ; | |
11798 | int arg3 ; | |
11799 | int arg4 ; | |
11800 | int arg5 ; | |
11801 | bool result; | |
11802 | void *argp1 = 0 ; | |
11803 | int res1 = 0 ; | |
11804 | int val2 ; | |
11805 | int ecode2 = 0 ; | |
11806 | int val3 ; | |
11807 | int ecode3 = 0 ; | |
11808 | int val4 ; | |
11809 | int ecode4 = 0 ; | |
11810 | int val5 ; | |
11811 | int ecode5 = 0 ; | |
11812 | PyObject * obj0 = 0 ; | |
11813 | PyObject * obj1 = 0 ; | |
11814 | PyObject * obj2 = 0 ; | |
11815 | PyObject * obj3 = 0 ; | |
11816 | PyObject * obj4 = 0 ; | |
11817 | char * kwnames[] = { | |
11818 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11819 | }; | |
11820 | ||
11821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11823 | if (!SWIG_IsOK(res1)) { | |
11824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11825 | } | |
11826 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11827 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11828 | if (!SWIG_IsOK(ecode2)) { | |
11829 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11830 | } | |
11831 | arg2 = static_cast< int >(val2); | |
11832 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11833 | if (!SWIG_IsOK(ecode3)) { | |
11834 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11835 | } | |
11836 | arg3 = static_cast< int >(val3); | |
11837 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11838 | if (!SWIG_IsOK(ecode4)) { | |
11839 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11840 | } | |
11841 | arg4 = static_cast< int >(val4); | |
11842 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11843 | if (!SWIG_IsOK(ecode5)) { | |
11844 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11845 | } | |
11846 | arg5 = static_cast< int >(val5); | |
11847 | { | |
11848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11849 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11850 | wxPyEndAllowThreads(__tstate); | |
11851 | if (PyErr_Occurred()) SWIG_fail; | |
11852 | } | |
11853 | { | |
11854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11855 | } | |
11856 | return resultobj; | |
11857 | fail: | |
11858 | return NULL; | |
11859 | } | |
11860 | ||
11861 | ||
11862 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11863 | PyObject *resultobj = 0; | |
11864 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11865 | wxRect *arg2 = 0 ; | |
11866 | bool result; | |
11867 | void *argp1 = 0 ; | |
11868 | int res1 = 0 ; | |
11869 | wxRect temp2 ; | |
11870 | PyObject * obj0 = 0 ; | |
11871 | PyObject * obj1 = 0 ; | |
11872 | char * kwnames[] = { | |
11873 | (char *) "self",(char *) "rect", NULL | |
11874 | }; | |
11875 | ||
11876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11878 | if (!SWIG_IsOK(res1)) { | |
11879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11880 | } | |
11881 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11882 | { | |
11883 | arg2 = &temp2; | |
11884 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11885 | } | |
11886 | { | |
11887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11888 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11889 | wxPyEndAllowThreads(__tstate); | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | } | |
11892 | { | |
11893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11894 | } | |
11895 | return resultobj; | |
11896 | fail: | |
11897 | return NULL; | |
11898 | } | |
11899 | ||
11900 | ||
11901 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11902 | PyObject *resultobj = 0; | |
11903 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11904 | wxRegion *arg2 = 0 ; | |
11905 | bool result; | |
11906 | void *argp1 = 0 ; | |
11907 | int res1 = 0 ; | |
11908 | void *argp2 = 0 ; | |
11909 | int res2 = 0 ; | |
11910 | PyObject * obj0 = 0 ; | |
11911 | PyObject * obj1 = 0 ; | |
11912 | char * kwnames[] = { | |
11913 | (char *) "self",(char *) "region", NULL | |
11914 | }; | |
11915 | ||
11916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11918 | if (!SWIG_IsOK(res1)) { | |
11919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11920 | } | |
11921 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11922 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11923 | if (!SWIG_IsOK(res2)) { | |
11924 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11925 | } | |
11926 | if (!argp2) { | |
11927 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11928 | } | |
11929 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11930 | { | |
11931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11932 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11933 | wxPyEndAllowThreads(__tstate); | |
11934 | if (PyErr_Occurred()) SWIG_fail; | |
11935 | } | |
11936 | { | |
11937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11938 | } | |
11939 | return resultobj; | |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
11945 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11946 | PyObject *resultobj = 0; | |
11947 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11948 | int arg2 ; | |
11949 | int arg3 ; | |
11950 | int arg4 ; | |
11951 | int arg5 ; | |
11952 | bool result; | |
11953 | void *argp1 = 0 ; | |
11954 | int res1 = 0 ; | |
11955 | int val2 ; | |
11956 | int ecode2 = 0 ; | |
11957 | int val3 ; | |
11958 | int ecode3 = 0 ; | |
11959 | int val4 ; | |
11960 | int ecode4 = 0 ; | |
11961 | int val5 ; | |
11962 | int ecode5 = 0 ; | |
11963 | PyObject * obj0 = 0 ; | |
11964 | PyObject * obj1 = 0 ; | |
11965 | PyObject * obj2 = 0 ; | |
11966 | PyObject * obj3 = 0 ; | |
11967 | PyObject * obj4 = 0 ; | |
11968 | char * kwnames[] = { | |
11969 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11970 | }; | |
11971 | ||
11972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11974 | if (!SWIG_IsOK(res1)) { | |
11975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11976 | } | |
11977 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11978 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11979 | if (!SWIG_IsOK(ecode2)) { | |
11980 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
11981 | } | |
11982 | arg2 = static_cast< int >(val2); | |
11983 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11984 | if (!SWIG_IsOK(ecode3)) { | |
11985 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
11986 | } | |
11987 | arg3 = static_cast< int >(val3); | |
11988 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11989 | if (!SWIG_IsOK(ecode4)) { | |
11990 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
11991 | } | |
11992 | arg4 = static_cast< int >(val4); | |
11993 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11994 | if (!SWIG_IsOK(ecode5)) { | |
11995 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
11996 | } | |
11997 | arg5 = static_cast< int >(val5); | |
11998 | { | |
11999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12000 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
12001 | wxPyEndAllowThreads(__tstate); | |
12002 | if (PyErr_Occurred()) SWIG_fail; | |
12003 | } | |
12004 | { | |
12005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12006 | } | |
12007 | return resultobj; | |
12008 | fail: | |
12009 | return NULL; | |
12010 | } | |
12011 | ||
12012 | ||
12013 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12014 | PyObject *resultobj = 0; | |
12015 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12016 | wxRect *arg2 = 0 ; | |
12017 | bool result; | |
12018 | void *argp1 = 0 ; | |
12019 | int res1 = 0 ; | |
12020 | wxRect temp2 ; | |
12021 | PyObject * obj0 = 0 ; | |
12022 | PyObject * obj1 = 0 ; | |
12023 | char * kwnames[] = { | |
12024 | (char *) "self",(char *) "rect", NULL | |
12025 | }; | |
12026 | ||
12027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12029 | if (!SWIG_IsOK(res1)) { | |
12030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12031 | } | |
12032 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12033 | { | |
12034 | arg2 = &temp2; | |
12035 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12036 | } | |
12037 | { | |
12038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12039 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
12040 | wxPyEndAllowThreads(__tstate); | |
12041 | if (PyErr_Occurred()) SWIG_fail; | |
12042 | } | |
12043 | { | |
12044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12045 | } | |
12046 | return resultobj; | |
12047 | fail: | |
12048 | return NULL; | |
12049 | } | |
12050 | ||
12051 | ||
12052 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12053 | PyObject *resultobj = 0; | |
12054 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12055 | wxRegion *arg2 = 0 ; | |
12056 | bool result; | |
12057 | void *argp1 = 0 ; | |
12058 | int res1 = 0 ; | |
12059 | void *argp2 = 0 ; | |
12060 | int res2 = 0 ; | |
12061 | PyObject * obj0 = 0 ; | |
12062 | PyObject * obj1 = 0 ; | |
12063 | char * kwnames[] = { | |
12064 | (char *) "self",(char *) "region", NULL | |
12065 | }; | |
12066 | ||
12067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
12068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12069 | if (!SWIG_IsOK(res1)) { | |
12070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12071 | } | |
12072 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12073 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
12074 | if (!SWIG_IsOK(res2)) { | |
12075 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
12076 | } | |
12077 | if (!argp2) { | |
12078 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
12079 | } | |
12080 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
12081 | { | |
12082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12083 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
12084 | wxPyEndAllowThreads(__tstate); | |
12085 | if (PyErr_Occurred()) SWIG_fail; | |
12086 | } | |
12087 | { | |
12088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12089 | } | |
12090 | return resultobj; | |
12091 | fail: | |
12092 | return NULL; | |
d55e5bfc RD |
12093 | } |
12094 | ||
12095 | ||
554f62e9 RD |
12096 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12097 | PyObject *resultobj = 0; | |
12098 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12099 | SwigValueWrapper<wxBitmap > result; | |
12100 | void *argp1 = 0 ; | |
12101 | int res1 = 0 ; | |
12102 | PyObject *swig_obj[1] ; | |
12103 | ||
12104 | if (!args) SWIG_fail; | |
12105 | swig_obj[0] = args; | |
12106 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12107 | if (!SWIG_IsOK(res1)) { | |
12108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12109 | } | |
12110 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12111 | { | |
12112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12113 | result = (arg1)->ConvertToBitmap(); | |
12114 | wxPyEndAllowThreads(__tstate); | |
12115 | if (PyErr_Occurred()) SWIG_fail; | |
12116 | } | |
12117 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
12118 | return resultobj; | |
12119 | fail: | |
12120 | return NULL; | |
12121 | } | |
12122 | ||
12123 | ||
12124 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12125 | PyObject *resultobj = 0; | |
12126 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12127 | wxBitmap *arg2 = 0 ; | |
12128 | bool result; | |
12129 | void *argp1 = 0 ; | |
12130 | int res1 = 0 ; | |
12131 | void *argp2 = 0 ; | |
12132 | int res2 = 0 ; | |
12133 | PyObject * obj0 = 0 ; | |
12134 | PyObject * obj1 = 0 ; | |
12135 | char * kwnames[] = { | |
12136 | (char *) "self",(char *) "bmp", NULL | |
12137 | }; | |
12138 | ||
12139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
12140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12141 | if (!SWIG_IsOK(res1)) { | |
12142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12143 | } | |
12144 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12145 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
12146 | if (!SWIG_IsOK(res2)) { | |
12147 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12148 | } | |
12149 | if (!argp2) { | |
12150 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12151 | } | |
12152 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
12153 | { | |
12154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12155 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
12156 | wxPyEndAllowThreads(__tstate); | |
12157 | if (PyErr_Occurred()) SWIG_fail; | |
12158 | } | |
12159 | { | |
12160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12161 | } | |
12162 | return resultobj; | |
12163 | fail: | |
12164 | return NULL; | |
12165 | } | |
12166 | ||
12167 | ||
12168 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12169 | PyObject *resultobj = 0; | |
12170 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12171 | wxBitmap *arg2 = 0 ; | |
12172 | wxColour *arg3 = 0 ; | |
12173 | int arg4 = (int) 0 ; | |
12174 | bool result; | |
12175 | void *argp1 = 0 ; | |
12176 | int res1 = 0 ; | |
12177 | void *argp2 = 0 ; | |
12178 | int res2 = 0 ; | |
12179 | wxColour temp3 ; | |
12180 | int val4 ; | |
12181 | int ecode4 = 0 ; | |
12182 | PyObject * obj0 = 0 ; | |
12183 | PyObject * obj1 = 0 ; | |
12184 | PyObject * obj2 = 0 ; | |
12185 | PyObject * obj3 = 0 ; | |
12186 | char * kwnames[] = { | |
12187 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
12188 | }; | |
12189 | ||
12190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12192 | if (!SWIG_IsOK(res1)) { | |
12193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12194 | } | |
12195 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12196 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
12197 | if (!SWIG_IsOK(res2)) { | |
12198 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12199 | } | |
12200 | if (!argp2) { | |
12201 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12202 | } | |
12203 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
12204 | { | |
12205 | arg3 = &temp3; | |
12206 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
12207 | } | |
12208 | if (obj3) { | |
12209 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
12210 | if (!SWIG_IsOK(ecode4)) { | |
12211 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
12212 | } | |
12213 | arg4 = static_cast< int >(val4); | |
12214 | } | |
12215 | { | |
12216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12217 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
12221 | { | |
12222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12223 | } | |
12224 | return resultobj; | |
12225 | fail: | |
12226 | return NULL; | |
d55e5bfc RD |
12227 | } |
12228 | ||
12229 | ||
554f62e9 RD |
12230 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12231 | PyObject *obj; | |
12232 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12233 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
12234 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12235 | } |
12236 | ||
554f62e9 RD |
12237 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12238 | return SWIG_Python_InitShadowInstance(args); | |
12239 | } | |
d55e5bfc | 12240 | |
554f62e9 RD |
12241 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12242 | PyObject *resultobj = 0; | |
12243 | wxRegion *arg1 = 0 ; | |
12244 | wxRegionIterator *result = 0 ; | |
12245 | void *argp1 = 0 ; | |
12246 | int res1 = 0 ; | |
12247 | PyObject * obj0 = 0 ; | |
12248 | char * kwnames[] = { | |
12249 | (char *) "region", NULL | |
12250 | }; | |
12251 | ||
12252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
12253 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
12254 | if (!SWIG_IsOK(res1)) { | |
12255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
12256 | } | |
12257 | if (!argp1) { | |
12258 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
12259 | } | |
12260 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12261 | { | |
12262 | if (!wxPyCheckForApp()) SWIG_fail; | |
12263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12264 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
12265 | wxPyEndAllowThreads(__tstate); | |
12266 | if (PyErr_Occurred()) SWIG_fail; | |
12267 | } | |
12268 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
12269 | return resultobj; | |
12270 | fail: | |
12271 | return NULL; | |
d55e5bfc RD |
12272 | } |
12273 | ||
12274 | ||
554f62e9 RD |
12275 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12276 | PyObject *resultobj = 0; | |
12277 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12278 | void *argp1 = 0 ; | |
12279 | int res1 = 0 ; | |
12280 | PyObject *swig_obj[1] ; | |
12281 | ||
12282 | if (!args) SWIG_fail; | |
12283 | swig_obj[0] = args; | |
12284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
12285 | if (!SWIG_IsOK(res1)) { | |
12286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12287 | } | |
12288 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12289 | { | |
12290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12291 | delete arg1; | |
d55e5bfc | 12292 | |
554f62e9 RD |
12293 | wxPyEndAllowThreads(__tstate); |
12294 | if (PyErr_Occurred()) SWIG_fail; | |
12295 | } | |
12296 | resultobj = SWIG_Py_Void(); | |
12297 | return resultobj; | |
12298 | fail: | |
12299 | return NULL; | |
d55e5bfc RD |
12300 | } |
12301 | ||
12302 | ||
554f62e9 RD |
12303 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12304 | PyObject *resultobj = 0; | |
12305 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12306 | int result; | |
12307 | void *argp1 = 0 ; | |
12308 | int res1 = 0 ; | |
12309 | PyObject *swig_obj[1] ; | |
12310 | ||
12311 | if (!args) SWIG_fail; | |
12312 | swig_obj[0] = args; | |
12313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12314 | if (!SWIG_IsOK(res1)) { | |
12315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12316 | } | |
12317 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12318 | { | |
12319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12320 | result = (int)(arg1)->GetX(); | |
12321 | wxPyEndAllowThreads(__tstate); | |
12322 | if (PyErr_Occurred()) SWIG_fail; | |
12323 | } | |
12324 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12325 | return resultobj; | |
12326 | fail: | |
12327 | return NULL; | |
d55e5bfc RD |
12328 | } |
12329 | ||
12330 | ||
554f62e9 RD |
12331 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12332 | PyObject *resultobj = 0; | |
12333 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12334 | int result; | |
12335 | void *argp1 = 0 ; | |
12336 | int res1 = 0 ; | |
12337 | PyObject *swig_obj[1] ; | |
12338 | ||
12339 | if (!args) SWIG_fail; | |
12340 | swig_obj[0] = args; | |
12341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12342 | if (!SWIG_IsOK(res1)) { | |
12343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12344 | } | |
12345 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12346 | { | |
12347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12348 | result = (int)(arg1)->GetY(); | |
12349 | wxPyEndAllowThreads(__tstate); | |
12350 | if (PyErr_Occurred()) SWIG_fail; | |
12351 | } | |
12352 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12353 | return resultobj; | |
12354 | fail: | |
12355 | return NULL; | |
d55e5bfc RD |
12356 | } |
12357 | ||
12358 | ||
554f62e9 RD |
12359 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12360 | PyObject *resultobj = 0; | |
12361 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12362 | int result; | |
12363 | void *argp1 = 0 ; | |
12364 | int res1 = 0 ; | |
12365 | PyObject *swig_obj[1] ; | |
12366 | ||
12367 | if (!args) SWIG_fail; | |
12368 | swig_obj[0] = args; | |
12369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12370 | if (!SWIG_IsOK(res1)) { | |
12371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12372 | } | |
12373 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12374 | { | |
12375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12376 | result = (int)(arg1)->GetW(); | |
12377 | wxPyEndAllowThreads(__tstate); | |
12378 | if (PyErr_Occurred()) SWIG_fail; | |
12379 | } | |
12380 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12381 | return resultobj; | |
12382 | fail: | |
12383 | return NULL; | |
d55e5bfc RD |
12384 | } |
12385 | ||
12386 | ||
554f62e9 RD |
12387 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12388 | PyObject *resultobj = 0; | |
12389 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12390 | int result; | |
12391 | void *argp1 = 0 ; | |
12392 | int res1 = 0 ; | |
12393 | PyObject *swig_obj[1] ; | |
12394 | ||
12395 | if (!args) SWIG_fail; | |
12396 | swig_obj[0] = args; | |
12397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12398 | if (!SWIG_IsOK(res1)) { | |
12399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12400 | } | |
12401 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12402 | { | |
12403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12404 | result = (int)(arg1)->GetWidth(); | |
12405 | wxPyEndAllowThreads(__tstate); | |
12406 | if (PyErr_Occurred()) SWIG_fail; | |
12407 | } | |
12408 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12409 | return resultobj; | |
12410 | fail: | |
12411 | return NULL; | |
d55e5bfc RD |
12412 | } |
12413 | ||
12414 | ||
554f62e9 RD |
12415 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12416 | PyObject *resultobj = 0; | |
12417 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12418 | int result; | |
12419 | void *argp1 = 0 ; | |
12420 | int res1 = 0 ; | |
12421 | PyObject *swig_obj[1] ; | |
12422 | ||
12423 | if (!args) SWIG_fail; | |
12424 | swig_obj[0] = args; | |
12425 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12426 | if (!SWIG_IsOK(res1)) { | |
12427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12428 | } | |
12429 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12430 | { | |
12431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12432 | result = (int)(arg1)->GetH(); | |
12433 | wxPyEndAllowThreads(__tstate); | |
12434 | if (PyErr_Occurred()) SWIG_fail; | |
12435 | } | |
12436 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12437 | return resultobj; | |
12438 | fail: | |
12439 | return NULL; | |
d55e5bfc RD |
12440 | } |
12441 | ||
12442 | ||
554f62e9 RD |
12443 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12444 | PyObject *resultobj = 0; | |
12445 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12446 | int result; | |
12447 | void *argp1 = 0 ; | |
12448 | int res1 = 0 ; | |
12449 | PyObject *swig_obj[1] ; | |
12450 | ||
12451 | if (!args) SWIG_fail; | |
12452 | swig_obj[0] = args; | |
12453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12454 | if (!SWIG_IsOK(res1)) { | |
12455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12456 | } | |
12457 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12458 | { | |
12459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12460 | result = (int)(arg1)->GetHeight(); | |
12461 | wxPyEndAllowThreads(__tstate); | |
12462 | if (PyErr_Occurred()) SWIG_fail; | |
12463 | } | |
12464 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12465 | return resultobj; | |
12466 | fail: | |
12467 | return NULL; | |
d55e5bfc RD |
12468 | } |
12469 | ||
12470 | ||
554f62e9 RD |
12471 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12472 | PyObject *resultobj = 0; | |
12473 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12474 | wxRect result; | |
12475 | void *argp1 = 0 ; | |
12476 | int res1 = 0 ; | |
12477 | PyObject *swig_obj[1] ; | |
12478 | ||
12479 | if (!args) SWIG_fail; | |
12480 | swig_obj[0] = args; | |
12481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12482 | if (!SWIG_IsOK(res1)) { | |
12483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12484 | } | |
12485 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12486 | { | |
12487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12488 | result = (arg1)->GetRect(); | |
12489 | wxPyEndAllowThreads(__tstate); | |
12490 | if (PyErr_Occurred()) SWIG_fail; | |
12491 | } | |
12492 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12493 | return resultobj; | |
12494 | fail: | |
12495 | return NULL; | |
d55e5bfc RD |
12496 | } |
12497 | ||
12498 | ||
554f62e9 RD |
12499 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12500 | PyObject *resultobj = 0; | |
12501 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12502 | bool result; | |
12503 | void *argp1 = 0 ; | |
12504 | int res1 = 0 ; | |
12505 | PyObject *swig_obj[1] ; | |
12506 | ||
12507 | if (!args) SWIG_fail; | |
12508 | swig_obj[0] = args; | |
12509 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12510 | if (!SWIG_IsOK(res1)) { | |
12511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12512 | } | |
12513 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12514 | { | |
12515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12516 | result = (bool)(arg1)->HaveRects(); | |
12517 | wxPyEndAllowThreads(__tstate); | |
12518 | if (PyErr_Occurred()) SWIG_fail; | |
12519 | } | |
12520 | { | |
12521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12522 | } | |
12523 | return resultobj; | |
12524 | fail: | |
12525 | return NULL; | |
d55e5bfc RD |
12526 | } |
12527 | ||
12528 | ||
554f62e9 RD |
12529 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12530 | PyObject *resultobj = 0; | |
12531 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12532 | void *argp1 = 0 ; | |
12533 | int res1 = 0 ; | |
12534 | PyObject *swig_obj[1] ; | |
12535 | ||
12536 | if (!args) SWIG_fail; | |
12537 | swig_obj[0] = args; | |
12538 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12539 | if (!SWIG_IsOK(res1)) { | |
12540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12541 | } | |
12542 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12543 | { | |
12544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12545 | (arg1)->Reset(); | |
12546 | wxPyEndAllowThreads(__tstate); | |
12547 | if (PyErr_Occurred()) SWIG_fail; | |
12548 | } | |
12549 | resultobj = SWIG_Py_Void(); | |
12550 | return resultobj; | |
12551 | fail: | |
12552 | return NULL; | |
d55e5bfc RD |
12553 | } |
12554 | ||
12555 | ||
554f62e9 RD |
12556 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12557 | PyObject *resultobj = 0; | |
12558 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12559 | void *argp1 = 0 ; | |
12560 | int res1 = 0 ; | |
12561 | PyObject *swig_obj[1] ; | |
12562 | ||
12563 | if (!args) SWIG_fail; | |
12564 | swig_obj[0] = args; | |
12565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12566 | if (!SWIG_IsOK(res1)) { | |
12567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12568 | } | |
12569 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12570 | { | |
12571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12572 | wxRegionIterator_Next(arg1); | |
12573 | wxPyEndAllowThreads(__tstate); | |
12574 | if (PyErr_Occurred()) SWIG_fail; | |
12575 | } | |
12576 | resultobj = SWIG_Py_Void(); | |
12577 | return resultobj; | |
12578 | fail: | |
12579 | return NULL; | |
d55e5bfc RD |
12580 | } |
12581 | ||
12582 | ||
554f62e9 RD |
12583 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12584 | PyObject *resultobj = 0; | |
12585 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12586 | bool result; | |
12587 | void *argp1 = 0 ; | |
12588 | int res1 = 0 ; | |
12589 | PyObject *swig_obj[1] ; | |
12590 | ||
12591 | if (!args) SWIG_fail; | |
12592 | swig_obj[0] = args; | |
12593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12594 | if (!SWIG_IsOK(res1)) { | |
12595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12596 | } | |
12597 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12598 | { | |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12600 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
12601 | wxPyEndAllowThreads(__tstate); | |
12602 | if (PyErr_Occurred()) SWIG_fail; | |
12603 | } | |
12604 | { | |
12605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12606 | } | |
12607 | return resultobj; | |
12608 | fail: | |
12609 | return NULL; | |
d55e5bfc RD |
12610 | } |
12611 | ||
12612 | ||
554f62e9 RD |
12613 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12614 | PyObject *obj; | |
12615 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12616 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
12617 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12618 | } |
12619 | ||
554f62e9 RD |
12620 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12621 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12622 | } |
12623 | ||
554f62e9 RD |
12624 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12625 | PyObject *resultobj = 0; | |
12626 | wxNativeFontInfo *result = 0 ; | |
12627 | ||
12628 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
12629 | { | |
12630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12631 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
12632 | wxPyEndAllowThreads(__tstate); | |
12633 | if (PyErr_Occurred()) SWIG_fail; | |
12634 | } | |
12635 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
12636 | return resultobj; | |
12637 | fail: | |
12638 | return NULL; | |
d55e5bfc RD |
12639 | } |
12640 | ||
12641 | ||
554f62e9 RD |
12642 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12643 | PyObject *resultobj = 0; | |
12644 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12645 | void *argp1 = 0 ; | |
12646 | int res1 = 0 ; | |
12647 | PyObject *swig_obj[1] ; | |
12648 | ||
12649 | if (!args) SWIG_fail; | |
12650 | swig_obj[0] = args; | |
12651 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
12652 | if (!SWIG_IsOK(res1)) { | |
12653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12654 | } | |
12655 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12656 | { | |
12657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12658 | delete arg1; | |
d55e5bfc | 12659 | |
554f62e9 RD |
12660 | wxPyEndAllowThreads(__tstate); |
12661 | if (PyErr_Occurred()) SWIG_fail; | |
12662 | } | |
12663 | resultobj = SWIG_Py_Void(); | |
12664 | return resultobj; | |
12665 | fail: | |
12666 | return NULL; | |
d55e5bfc RD |
12667 | } |
12668 | ||
12669 | ||
554f62e9 RD |
12670 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12671 | PyObject *resultobj = 0; | |
12672 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12673 | void *argp1 = 0 ; | |
12674 | int res1 = 0 ; | |
12675 | PyObject *swig_obj[1] ; | |
12676 | ||
12677 | if (!args) SWIG_fail; | |
12678 | swig_obj[0] = args; | |
12679 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12680 | if (!SWIG_IsOK(res1)) { | |
12681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12682 | } | |
12683 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12684 | { | |
12685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12686 | (arg1)->Init(); | |
12687 | wxPyEndAllowThreads(__tstate); | |
12688 | if (PyErr_Occurred()) SWIG_fail; | |
12689 | } | |
12690 | resultobj = SWIG_Py_Void(); | |
12691 | return resultobj; | |
12692 | fail: | |
12693 | return NULL; | |
12694 | } | |
12695 | ||
12696 | ||
12697 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12698 | PyObject *resultobj = 0; | |
12699 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12700 | wxFont *arg2 = 0 ; | |
12701 | void *argp1 = 0 ; | |
12702 | int res1 = 0 ; | |
12703 | void *argp2 = 0 ; | |
12704 | int res2 = 0 ; | |
12705 | PyObject * obj0 = 0 ; | |
12706 | PyObject * obj1 = 0 ; | |
12707 | char * kwnames[] = { | |
12708 | (char *) "self",(char *) "font", NULL | |
12709 | }; | |
12710 | ||
12711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
12712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12713 | if (!SWIG_IsOK(res1)) { | |
12714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12715 | } | |
12716 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12717 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
12718 | if (!SWIG_IsOK(res2)) { | |
12719 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12720 | } | |
12721 | if (!argp2) { | |
12722 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12723 | } | |
12724 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12725 | { | |
12726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12727 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
12728 | wxPyEndAllowThreads(__tstate); | |
12729 | if (PyErr_Occurred()) SWIG_fail; | |
12730 | } | |
12731 | resultobj = SWIG_Py_Void(); | |
12732 | return resultobj; | |
12733 | fail: | |
12734 | return NULL; | |
d55e5bfc RD |
12735 | } |
12736 | ||
12737 | ||
554f62e9 RD |
12738 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12739 | PyObject *resultobj = 0; | |
12740 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12741 | int result; | |
12742 | void *argp1 = 0 ; | |
12743 | int res1 = 0 ; | |
12744 | PyObject *swig_obj[1] ; | |
12745 | ||
12746 | if (!args) SWIG_fail; | |
12747 | swig_obj[0] = args; | |
12748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12749 | if (!SWIG_IsOK(res1)) { | |
12750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12751 | } | |
12752 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12753 | { | |
12754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12755 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12756 | wxPyEndAllowThreads(__tstate); | |
12757 | if (PyErr_Occurred()) SWIG_fail; | |
12758 | } | |
12759 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12760 | return resultobj; | |
12761 | fail: | |
12762 | return NULL; | |
d55e5bfc RD |
12763 | } |
12764 | ||
12765 | ||
554f62e9 RD |
12766 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12767 | PyObject *resultobj = 0; | |
12768 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12769 | wxSize result; | |
12770 | void *argp1 = 0 ; | |
12771 | int res1 = 0 ; | |
12772 | PyObject *swig_obj[1] ; | |
12773 | ||
12774 | if (!args) SWIG_fail; | |
12775 | swig_obj[0] = args; | |
12776 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12777 | if (!SWIG_IsOK(res1)) { | |
12778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12779 | } | |
12780 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12781 | { | |
12782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12783 | result = ((wxNativeFontInfo const *)arg1)->GetPixelSize(); | |
12784 | wxPyEndAllowThreads(__tstate); | |
12785 | if (PyErr_Occurred()) SWIG_fail; | |
12786 | } | |
12787 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12788 | return resultobj; | |
12789 | fail: | |
12790 | return NULL; | |
d55e5bfc RD |
12791 | } |
12792 | ||
12793 | ||
554f62e9 RD |
12794 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12795 | PyObject *resultobj = 0; | |
12796 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12797 | wxFontStyle result; | |
12798 | void *argp1 = 0 ; | |
12799 | int res1 = 0 ; | |
12800 | PyObject *swig_obj[1] ; | |
12801 | ||
12802 | if (!args) SWIG_fail; | |
12803 | swig_obj[0] = args; | |
12804 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12805 | if (!SWIG_IsOK(res1)) { | |
12806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12807 | } | |
12808 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12809 | { | |
12810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12811 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
12812 | wxPyEndAllowThreads(__tstate); | |
12813 | if (PyErr_Occurred()) SWIG_fail; | |
12814 | } | |
12815 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12816 | return resultobj; | |
12817 | fail: | |
12818 | return NULL; | |
d55e5bfc RD |
12819 | } |
12820 | ||
12821 | ||
554f62e9 RD |
12822 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12823 | PyObject *resultobj = 0; | |
12824 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12825 | wxFontWeight result; | |
12826 | void *argp1 = 0 ; | |
12827 | int res1 = 0 ; | |
12828 | PyObject *swig_obj[1] ; | |
12829 | ||
12830 | if (!args) SWIG_fail; | |
12831 | swig_obj[0] = args; | |
12832 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12833 | if (!SWIG_IsOK(res1)) { | |
12834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12835 | } | |
12836 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12837 | { | |
12838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12839 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12840 | wxPyEndAllowThreads(__tstate); | |
12841 | if (PyErr_Occurred()) SWIG_fail; | |
12842 | } | |
12843 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12844 | return resultobj; | |
12845 | fail: | |
12846 | return NULL; | |
d55e5bfc RD |
12847 | } |
12848 | ||
12849 | ||
554f62e9 RD |
12850 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12851 | PyObject *resultobj = 0; | |
12852 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12853 | bool result; | |
12854 | void *argp1 = 0 ; | |
12855 | int res1 = 0 ; | |
12856 | PyObject *swig_obj[1] ; | |
12857 | ||
12858 | if (!args) SWIG_fail; | |
12859 | swig_obj[0] = args; | |
12860 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12861 | if (!SWIG_IsOK(res1)) { | |
12862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12863 | } | |
12864 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12865 | { | |
12866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12867 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12868 | wxPyEndAllowThreads(__tstate); | |
12869 | if (PyErr_Occurred()) SWIG_fail; | |
12870 | } | |
12871 | { | |
12872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12873 | } | |
12874 | return resultobj; | |
12875 | fail: | |
12876 | return NULL; | |
d55e5bfc RD |
12877 | } |
12878 | ||
12879 | ||
554f62e9 RD |
12880 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12881 | PyObject *resultobj = 0; | |
12882 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12883 | wxString result; | |
12884 | void *argp1 = 0 ; | |
12885 | int res1 = 0 ; | |
12886 | PyObject *swig_obj[1] ; | |
12887 | ||
12888 | if (!args) SWIG_fail; | |
12889 | swig_obj[0] = args; | |
12890 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12891 | if (!SWIG_IsOK(res1)) { | |
12892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12893 | } | |
12894 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12895 | { | |
12896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12897 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12898 | wxPyEndAllowThreads(__tstate); | |
12899 | if (PyErr_Occurred()) SWIG_fail; | |
12900 | } | |
12901 | { | |
093d3ff1 | 12902 | #if wxUSE_UNICODE |
554f62e9 | 12903 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 12904 | #else |
554f62e9 | 12905 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 12906 | #endif |
554f62e9 RD |
12907 | } |
12908 | return resultobj; | |
12909 | fail: | |
12910 | return NULL; | |
d55e5bfc RD |
12911 | } |
12912 | ||
12913 | ||
554f62e9 RD |
12914 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12915 | PyObject *resultobj = 0; | |
12916 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12917 | wxFontFamily result; | |
12918 | void *argp1 = 0 ; | |
12919 | int res1 = 0 ; | |
12920 | PyObject *swig_obj[1] ; | |
12921 | ||
12922 | if (!args) SWIG_fail; | |
12923 | swig_obj[0] = args; | |
12924 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12925 | if (!SWIG_IsOK(res1)) { | |
12926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12927 | } | |
12928 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12929 | { | |
12930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12931 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
12932 | wxPyEndAllowThreads(__tstate); | |
12933 | if (PyErr_Occurred()) SWIG_fail; | |
12934 | } | |
12935 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12936 | return resultobj; | |
12937 | fail: | |
12938 | return NULL; | |
d55e5bfc RD |
12939 | } |
12940 | ||
12941 | ||
554f62e9 RD |
12942 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12943 | PyObject *resultobj = 0; | |
12944 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12945 | wxFontEncoding result; | |
12946 | void *argp1 = 0 ; | |
12947 | int res1 = 0 ; | |
12948 | PyObject *swig_obj[1] ; | |
12949 | ||
12950 | if (!args) SWIG_fail; | |
12951 | swig_obj[0] = args; | |
12952 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12953 | if (!SWIG_IsOK(res1)) { | |
12954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12955 | } | |
12956 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12957 | { | |
12958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12959 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12960 | wxPyEndAllowThreads(__tstate); | |
12961 | if (PyErr_Occurred()) SWIG_fail; | |
12962 | } | |
12963 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12964 | return resultobj; | |
12965 | fail: | |
12966 | return NULL; | |
12967 | } | |
12968 | ||
12969 | ||
12970 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12971 | PyObject *resultobj = 0; | |
12972 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12973 | int arg2 ; | |
12974 | void *argp1 = 0 ; | |
12975 | int res1 = 0 ; | |
12976 | int val2 ; | |
12977 | int ecode2 = 0 ; | |
12978 | PyObject * obj0 = 0 ; | |
12979 | PyObject * obj1 = 0 ; | |
12980 | char * kwnames[] = { | |
12981 | (char *) "self",(char *) "pointsize", NULL | |
12982 | }; | |
12983 | ||
12984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12986 | if (!SWIG_IsOK(res1)) { | |
12987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12988 | } | |
12989 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12990 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12991 | if (!SWIG_IsOK(ecode2)) { | |
12992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12993 | } | |
12994 | arg2 = static_cast< int >(val2); | |
12995 | { | |
12996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12997 | (arg1)->SetPointSize(arg2); | |
12998 | wxPyEndAllowThreads(__tstate); | |
12999 | if (PyErr_Occurred()) SWIG_fail; | |
13000 | } | |
13001 | resultobj = SWIG_Py_Void(); | |
13002 | return resultobj; | |
13003 | fail: | |
13004 | return NULL; | |
13005 | } | |
13006 | ||
13007 | ||
13008 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13009 | PyObject *resultobj = 0; | |
13010 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13011 | wxSize *arg2 = 0 ; | |
13012 | void *argp1 = 0 ; | |
13013 | int res1 = 0 ; | |
13014 | wxSize temp2 ; | |
13015 | PyObject * obj0 = 0 ; | |
13016 | PyObject * obj1 = 0 ; | |
13017 | char * kwnames[] = { | |
13018 | (char *) "self",(char *) "pixelSize", NULL | |
13019 | }; | |
13020 | ||
13021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
13022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13023 | if (!SWIG_IsOK(res1)) { | |
13024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13025 | } | |
13026 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13027 | { | |
13028 | arg2 = &temp2; | |
13029 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13030 | } | |
13031 | { | |
13032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13033 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
13034 | wxPyEndAllowThreads(__tstate); | |
13035 | if (PyErr_Occurred()) SWIG_fail; | |
13036 | } | |
13037 | resultobj = SWIG_Py_Void(); | |
13038 | return resultobj; | |
13039 | fail: | |
13040 | return NULL; | |
13041 | } | |
13042 | ||
13043 | ||
13044 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13045 | PyObject *resultobj = 0; | |
13046 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13047 | wxFontStyle arg2 ; | |
13048 | void *argp1 = 0 ; | |
13049 | int res1 = 0 ; | |
13050 | int val2 ; | |
13051 | int ecode2 = 0 ; | |
13052 | PyObject * obj0 = 0 ; | |
13053 | PyObject * obj1 = 0 ; | |
13054 | char * kwnames[] = { | |
13055 | (char *) "self",(char *) "style", NULL | |
13056 | }; | |
13057 | ||
13058 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13059 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13060 | if (!SWIG_IsOK(res1)) { | |
13061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13062 | } | |
13063 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13064 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13065 | if (!SWIG_IsOK(ecode2)) { | |
13066 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
13067 | } | |
13068 | arg2 = static_cast< wxFontStyle >(val2); | |
13069 | { | |
13070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13071 | (arg1)->SetStyle(arg2); | |
13072 | wxPyEndAllowThreads(__tstate); | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | } | |
13075 | resultobj = SWIG_Py_Void(); | |
13076 | return resultobj; | |
13077 | fail: | |
13078 | return NULL; | |
13079 | } | |
13080 | ||
13081 | ||
13082 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13083 | PyObject *resultobj = 0; | |
13084 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13085 | wxFontWeight arg2 ; | |
13086 | void *argp1 = 0 ; | |
13087 | int res1 = 0 ; | |
13088 | int val2 ; | |
13089 | int ecode2 = 0 ; | |
13090 | PyObject * obj0 = 0 ; | |
13091 | PyObject * obj1 = 0 ; | |
13092 | char * kwnames[] = { | |
13093 | (char *) "self",(char *) "weight", NULL | |
13094 | }; | |
13095 | ||
13096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
13097 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13098 | if (!SWIG_IsOK(res1)) { | |
13099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13100 | } | |
13101 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13102 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13103 | if (!SWIG_IsOK(ecode2)) { | |
13104 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
13105 | } | |
13106 | arg2 = static_cast< wxFontWeight >(val2); | |
13107 | { | |
13108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13109 | (arg1)->SetWeight(arg2); | |
13110 | wxPyEndAllowThreads(__tstate); | |
13111 | if (PyErr_Occurred()) SWIG_fail; | |
13112 | } | |
13113 | resultobj = SWIG_Py_Void(); | |
13114 | return resultobj; | |
13115 | fail: | |
13116 | return NULL; | |
13117 | } | |
13118 | ||
13119 | ||
13120 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13121 | PyObject *resultobj = 0; | |
13122 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13123 | bool arg2 ; | |
13124 | void *argp1 = 0 ; | |
13125 | int res1 = 0 ; | |
13126 | bool val2 ; | |
13127 | int ecode2 = 0 ; | |
13128 | PyObject * obj0 = 0 ; | |
13129 | PyObject * obj1 = 0 ; | |
13130 | char * kwnames[] = { | |
13131 | (char *) "self",(char *) "underlined", NULL | |
13132 | }; | |
13133 | ||
13134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
13135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13136 | if (!SWIG_IsOK(res1)) { | |
13137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13138 | } | |
13139 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13140 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13141 | if (!SWIG_IsOK(ecode2)) { | |
13142 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
13143 | } | |
13144 | arg2 = static_cast< bool >(val2); | |
13145 | { | |
13146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13147 | (arg1)->SetUnderlined(arg2); | |
13148 | wxPyEndAllowThreads(__tstate); | |
13149 | if (PyErr_Occurred()) SWIG_fail; | |
13150 | } | |
13151 | resultobj = SWIG_Py_Void(); | |
13152 | return resultobj; | |
13153 | fail: | |
13154 | return NULL; | |
13155 | } | |
13156 | ||
13157 | ||
13158 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13159 | PyObject *resultobj = 0; | |
13160 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13161 | wxString arg2 ; | |
704eda0c | 13162 | bool result; |
554f62e9 RD |
13163 | void *argp1 = 0 ; |
13164 | int res1 = 0 ; | |
13165 | PyObject * obj0 = 0 ; | |
13166 | PyObject * obj1 = 0 ; | |
13167 | char * kwnames[] = { | |
13168 | (char *) "self",(char *) "facename", NULL | |
13169 | }; | |
13170 | ||
13171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
13172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13173 | if (!SWIG_IsOK(res1)) { | |
13174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13175 | } | |
13176 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13177 | { | |
13178 | wxString* sptr = wxString_in_helper(obj1); | |
13179 | if (sptr == NULL) SWIG_fail; | |
13180 | arg2 = *sptr; | |
13181 | delete sptr; | |
13182 | } | |
13183 | { | |
13184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 13185 | result = (bool)(arg1)->SetFaceName(arg2); |
554f62e9 RD |
13186 | wxPyEndAllowThreads(__tstate); |
13187 | if (PyErr_Occurred()) SWIG_fail; | |
13188 | } | |
704eda0c RD |
13189 | { |
13190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13191 | } | |
554f62e9 RD |
13192 | return resultobj; |
13193 | fail: | |
13194 | return NULL; | |
13195 | } | |
13196 | ||
13197 | ||
13198 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13199 | PyObject *resultobj = 0; | |
13200 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13201 | wxFontFamily arg2 ; | |
13202 | void *argp1 = 0 ; | |
13203 | int res1 = 0 ; | |
13204 | int val2 ; | |
13205 | int ecode2 = 0 ; | |
13206 | PyObject * obj0 = 0 ; | |
13207 | PyObject * obj1 = 0 ; | |
13208 | char * kwnames[] = { | |
13209 | (char *) "self",(char *) "family", NULL | |
13210 | }; | |
13211 | ||
13212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
13213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13214 | if (!SWIG_IsOK(res1)) { | |
13215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13216 | } | |
13217 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13218 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13219 | if (!SWIG_IsOK(ecode2)) { | |
13220 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
13221 | } | |
13222 | arg2 = static_cast< wxFontFamily >(val2); | |
13223 | { | |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | (arg1)->SetFamily(arg2); | |
13226 | wxPyEndAllowThreads(__tstate); | |
13227 | if (PyErr_Occurred()) SWIG_fail; | |
13228 | } | |
13229 | resultobj = SWIG_Py_Void(); | |
13230 | return resultobj; | |
13231 | fail: | |
13232 | return NULL; | |
13233 | } | |
13234 | ||
13235 | ||
13236 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13237 | PyObject *resultobj = 0; | |
13238 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13239 | wxFontEncoding arg2 ; | |
13240 | void *argp1 = 0 ; | |
13241 | int res1 = 0 ; | |
13242 | int val2 ; | |
13243 | int ecode2 = 0 ; | |
13244 | PyObject * obj0 = 0 ; | |
13245 | PyObject * obj1 = 0 ; | |
13246 | char * kwnames[] = { | |
13247 | (char *) "self",(char *) "encoding", NULL | |
13248 | }; | |
13249 | ||
13250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
13251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13252 | if (!SWIG_IsOK(res1)) { | |
13253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13254 | } | |
13255 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13256 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13257 | if (!SWIG_IsOK(ecode2)) { | |
13258 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13259 | } | |
13260 | arg2 = static_cast< wxFontEncoding >(val2); | |
13261 | { | |
13262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13263 | (arg1)->SetEncoding(arg2); | |
13264 | wxPyEndAllowThreads(__tstate); | |
13265 | if (PyErr_Occurred()) SWIG_fail; | |
13266 | } | |
13267 | resultobj = SWIG_Py_Void(); | |
13268 | return resultobj; | |
13269 | fail: | |
13270 | return NULL; | |
13271 | } | |
13272 | ||
13273 | ||
13274 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13275 | PyObject *resultobj = 0; | |
13276 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13277 | wxString *arg2 = 0 ; | |
13278 | bool result; | |
13279 | void *argp1 = 0 ; | |
13280 | int res1 = 0 ; | |
13281 | bool temp2 = false ; | |
13282 | PyObject * obj0 = 0 ; | |
13283 | PyObject * obj1 = 0 ; | |
13284 | char * kwnames[] = { | |
13285 | (char *) "self",(char *) "s", NULL | |
13286 | }; | |
13287 | ||
13288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13289 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13290 | if (!SWIG_IsOK(res1)) { | |
13291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13292 | } | |
13293 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13294 | { | |
13295 | arg2 = wxString_in_helper(obj1); | |
13296 | if (arg2 == NULL) SWIG_fail; | |
13297 | temp2 = true; | |
13298 | } | |
13299 | { | |
13300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13301 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13302 | wxPyEndAllowThreads(__tstate); | |
13303 | if (PyErr_Occurred()) SWIG_fail; | |
13304 | } | |
13305 | { | |
13306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13307 | } | |
13308 | { | |
13309 | if (temp2) | |
13310 | delete arg2; | |
13311 | } | |
13312 | return resultobj; | |
13313 | fail: | |
13314 | { | |
13315 | if (temp2) | |
13316 | delete arg2; | |
13317 | } | |
13318 | return NULL; | |
d55e5bfc RD |
13319 | } |
13320 | ||
13321 | ||
554f62e9 RD |
13322 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13323 | PyObject *resultobj = 0; | |
13324 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13325 | wxString result; | |
13326 | void *argp1 = 0 ; | |
13327 | int res1 = 0 ; | |
13328 | PyObject *swig_obj[1] ; | |
13329 | ||
13330 | if (!args) SWIG_fail; | |
13331 | swig_obj[0] = args; | |
13332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13333 | if (!SWIG_IsOK(res1)) { | |
13334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
13335 | } | |
13336 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13337 | { | |
13338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13339 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
13340 | wxPyEndAllowThreads(__tstate); | |
13341 | if (PyErr_Occurred()) SWIG_fail; | |
13342 | } | |
13343 | { | |
13344 | #if wxUSE_UNICODE | |
13345 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13346 | #else | |
13347 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13348 | #endif | |
13349 | } | |
13350 | return resultobj; | |
13351 | fail: | |
13352 | return NULL; | |
d55e5bfc RD |
13353 | } |
13354 | ||
13355 | ||
554f62e9 RD |
13356 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13357 | PyObject *resultobj = 0; | |
13358 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13359 | wxString result; | |
13360 | void *argp1 = 0 ; | |
13361 | int res1 = 0 ; | |
13362 | PyObject *swig_obj[1] ; | |
13363 | ||
13364 | if (!args) SWIG_fail; | |
13365 | swig_obj[0] = args; | |
13366 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13367 | if (!SWIG_IsOK(res1)) { | |
13368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13369 | } | |
13370 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13371 | { | |
13372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13373 | result = wxNativeFontInfo___str__(arg1); | |
13374 | wxPyEndAllowThreads(__tstate); | |
13375 | if (PyErr_Occurred()) SWIG_fail; | |
13376 | } | |
13377 | { | |
13378 | #if wxUSE_UNICODE | |
13379 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13380 | #else | |
13381 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13382 | #endif | |
13383 | } | |
13384 | return resultobj; | |
13385 | fail: | |
13386 | return NULL; | |
13387 | } | |
13388 | ||
13389 | ||
13390 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13391 | PyObject *resultobj = 0; | |
13392 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13393 | wxString *arg2 = 0 ; | |
13394 | bool result; | |
13395 | void *argp1 = 0 ; | |
13396 | int res1 = 0 ; | |
13397 | bool temp2 = false ; | |
13398 | PyObject * obj0 = 0 ; | |
13399 | PyObject * obj1 = 0 ; | |
13400 | char * kwnames[] = { | |
13401 | (char *) "self",(char *) "s", NULL | |
13402 | }; | |
13403 | ||
13404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13406 | if (!SWIG_IsOK(res1)) { | |
13407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13408 | } | |
13409 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13410 | { | |
13411 | arg2 = wxString_in_helper(obj1); | |
13412 | if (arg2 == NULL) SWIG_fail; | |
13413 | temp2 = true; | |
13414 | } | |
13415 | { | |
13416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13417 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
13418 | wxPyEndAllowThreads(__tstate); | |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
13420 | } | |
13421 | { | |
13422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13423 | } | |
13424 | { | |
13425 | if (temp2) | |
13426 | delete arg2; | |
13427 | } | |
13428 | return resultobj; | |
13429 | fail: | |
13430 | { | |
13431 | if (temp2) | |
13432 | delete arg2; | |
13433 | } | |
13434 | return NULL; | |
a2569024 RD |
13435 | } |
13436 | ||
13437 | ||
554f62e9 RD |
13438 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13439 | PyObject *resultobj = 0; | |
13440 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13441 | wxString result; | |
13442 | void *argp1 = 0 ; | |
13443 | int res1 = 0 ; | |
13444 | PyObject *swig_obj[1] ; | |
13445 | ||
13446 | if (!args) SWIG_fail; | |
13447 | swig_obj[0] = args; | |
13448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13449 | if (!SWIG_IsOK(res1)) { | |
13450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
13451 | } | |
13452 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13453 | { | |
13454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13455 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
13456 | wxPyEndAllowThreads(__tstate); | |
13457 | if (PyErr_Occurred()) SWIG_fail; | |
13458 | } | |
13459 | { | |
13460 | #if wxUSE_UNICODE | |
13461 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13462 | #else | |
13463 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13464 | #endif | |
13465 | } | |
13466 | return resultobj; | |
13467 | fail: | |
13468 | return NULL; | |
d55e5bfc RD |
13469 | } |
13470 | ||
13471 | ||
554f62e9 RD |
13472 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13473 | PyObject *obj; | |
13474 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13475 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
13476 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13477 | } |
13478 | ||
554f62e9 RD |
13479 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13480 | return SWIG_Python_InitShadowInstance(args); | |
13481 | } | |
d55e5bfc | 13482 | |
554f62e9 RD |
13483 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13484 | PyObject *resultobj = 0; | |
13485 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13486 | wxString *arg2 = (wxString *) 0 ; | |
13487 | void *argp1 = 0 ; | |
13488 | int res1 = 0 ; | |
13489 | bool temp2 = false ; | |
13490 | PyObject *swig_obj[2] ; | |
13491 | ||
13492 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
13493 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13494 | if (!SWIG_IsOK(res1)) { | |
13495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13496 | } | |
13497 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13498 | { | |
13499 | arg2 = wxString_in_helper(swig_obj[1]); | |
13500 | if (arg2 == NULL) SWIG_fail; | |
13501 | temp2 = true; | |
13502 | } | |
13503 | if (arg1) (arg1)->facename = *arg2; | |
13504 | ||
13505 | resultobj = SWIG_Py_Void(); | |
13506 | { | |
13507 | if (temp2) | |
13508 | delete arg2; | |
13509 | } | |
13510 | return resultobj; | |
13511 | fail: | |
13512 | { | |
13513 | if (temp2) | |
13514 | delete arg2; | |
13515 | } | |
13516 | return NULL; | |
d55e5bfc RD |
13517 | } |
13518 | ||
13519 | ||
554f62e9 RD |
13520 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13521 | PyObject *resultobj = 0; | |
13522 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13523 | wxString *result = 0 ; | |
13524 | void *argp1 = 0 ; | |
13525 | int res1 = 0 ; | |
13526 | PyObject *swig_obj[1] ; | |
13527 | ||
13528 | if (!args) SWIG_fail; | |
13529 | swig_obj[0] = args; | |
13530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13531 | if (!SWIG_IsOK(res1)) { | |
13532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13533 | } | |
13534 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13535 | result = (wxString *)& ((arg1)->facename); | |
13536 | { | |
13537 | #if wxUSE_UNICODE | |
13538 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13539 | #else | |
13540 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13541 | #endif | |
13542 | } | |
13543 | return resultobj; | |
13544 | fail: | |
13545 | return NULL; | |
d55e5bfc RD |
13546 | } |
13547 | ||
13548 | ||
554f62e9 RD |
13549 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13550 | PyObject *resultobj = 0; | |
13551 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13552 | wxFontEncoding arg2 ; | |
13553 | void *argp1 = 0 ; | |
13554 | int res1 = 0 ; | |
13555 | int val2 ; | |
13556 | int ecode2 = 0 ; | |
13557 | PyObject *swig_obj[2] ; | |
13558 | ||
13559 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
13560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13561 | if (!SWIG_IsOK(res1)) { | |
13562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13563 | } | |
13564 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13565 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
13566 | if (!SWIG_IsOK(ecode2)) { | |
13567 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13568 | } | |
13569 | arg2 = static_cast< wxFontEncoding >(val2); | |
13570 | if (arg1) (arg1)->encoding = arg2; | |
13571 | ||
13572 | resultobj = SWIG_Py_Void(); | |
13573 | return resultobj; | |
13574 | fail: | |
13575 | return NULL; | |
d55e5bfc RD |
13576 | } |
13577 | ||
13578 | ||
554f62e9 RD |
13579 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13580 | PyObject *resultobj = 0; | |
13581 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13582 | wxFontEncoding result; | |
13583 | void *argp1 = 0 ; | |
13584 | int res1 = 0 ; | |
13585 | PyObject *swig_obj[1] ; | |
13586 | ||
13587 | if (!args) SWIG_fail; | |
13588 | swig_obj[0] = args; | |
13589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13590 | if (!SWIG_IsOK(res1)) { | |
13591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13592 | } | |
13593 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13594 | result = (wxFontEncoding) ((arg1)->encoding); | |
13595 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13596 | return resultobj; | |
13597 | fail: | |
13598 | return NULL; | |
d55e5bfc RD |
13599 | } |
13600 | ||
13601 | ||
554f62e9 RD |
13602 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13603 | PyObject *resultobj = 0; | |
13604 | wxNativeEncodingInfo *result = 0 ; | |
13605 | ||
13606 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
13607 | { | |
13608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13609 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
13610 | wxPyEndAllowThreads(__tstate); | |
13611 | if (PyErr_Occurred()) SWIG_fail; | |
13612 | } | |
13613 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
13614 | return resultobj; | |
13615 | fail: | |
13616 | return NULL; | |
d55e5bfc RD |
13617 | } |
13618 | ||
13619 | ||
554f62e9 RD |
13620 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13621 | PyObject *resultobj = 0; | |
13622 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13623 | void *argp1 = 0 ; | |
13624 | int res1 = 0 ; | |
13625 | PyObject *swig_obj[1] ; | |
13626 | ||
13627 | if (!args) SWIG_fail; | |
13628 | swig_obj[0] = args; | |
13629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
13630 | if (!SWIG_IsOK(res1)) { | |
13631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13632 | } | |
13633 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13634 | { | |
13635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13636 | delete arg1; | |
d55e5bfc | 13637 | |
554f62e9 RD |
13638 | wxPyEndAllowThreads(__tstate); |
13639 | if (PyErr_Occurred()) SWIG_fail; | |
13640 | } | |
13641 | resultobj = SWIG_Py_Void(); | |
13642 | return resultobj; | |
13643 | fail: | |
13644 | return NULL; | |
13645 | } | |
13646 | ||
13647 | ||
13648 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13649 | PyObject *resultobj = 0; | |
13650 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13651 | wxString *arg2 = 0 ; | |
13652 | bool result; | |
13653 | void *argp1 = 0 ; | |
13654 | int res1 = 0 ; | |
13655 | bool temp2 = false ; | |
13656 | PyObject * obj0 = 0 ; | |
13657 | PyObject * obj1 = 0 ; | |
13658 | char * kwnames[] = { | |
13659 | (char *) "self",(char *) "s", NULL | |
13660 | }; | |
13661 | ||
13662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13664 | if (!SWIG_IsOK(res1)) { | |
13665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13666 | } | |
13667 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13668 | { | |
13669 | arg2 = wxString_in_helper(obj1); | |
13670 | if (arg2 == NULL) SWIG_fail; | |
13671 | temp2 = true; | |
13672 | } | |
13673 | { | |
13674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13675 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13676 | wxPyEndAllowThreads(__tstate); | |
13677 | if (PyErr_Occurred()) SWIG_fail; | |
13678 | } | |
13679 | { | |
13680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13681 | } | |
13682 | { | |
13683 | if (temp2) | |
13684 | delete arg2; | |
13685 | } | |
13686 | return resultobj; | |
13687 | fail: | |
13688 | { | |
13689 | if (temp2) | |
13690 | delete arg2; | |
13691 | } | |
13692 | return NULL; | |
d55e5bfc RD |
13693 | } |
13694 | ||
13695 | ||
554f62e9 RD |
13696 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13697 | PyObject *resultobj = 0; | |
13698 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13699 | wxString result; | |
13700 | void *argp1 = 0 ; | |
13701 | int res1 = 0 ; | |
13702 | PyObject *swig_obj[1] ; | |
13703 | ||
13704 | if (!args) SWIG_fail; | |
13705 | swig_obj[0] = args; | |
13706 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13707 | if (!SWIG_IsOK(res1)) { | |
13708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
13709 | } | |
13710 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13711 | { | |
13712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13713 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
13714 | wxPyEndAllowThreads(__tstate); | |
13715 | if (PyErr_Occurred()) SWIG_fail; | |
13716 | } | |
13717 | { | |
13718 | #if wxUSE_UNICODE | |
13719 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13720 | #else | |
13721 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13722 | #endif | |
13723 | } | |
13724 | return resultobj; | |
13725 | fail: | |
13726 | return NULL; | |
d55e5bfc RD |
13727 | } |
13728 | ||
13729 | ||
554f62e9 RD |
13730 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13731 | PyObject *obj; | |
13732 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13733 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
13734 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13735 | } |
13736 | ||
554f62e9 RD |
13737 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13738 | return SWIG_Python_InitShadowInstance(args); | |
13739 | } | |
d55e5bfc | 13740 | |
554f62e9 RD |
13741 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13742 | PyObject *resultobj = 0; | |
13743 | wxFontEncoding arg1 ; | |
13744 | wxNativeEncodingInfo *result = 0 ; | |
13745 | int val1 ; | |
13746 | int ecode1 = 0 ; | |
13747 | PyObject * obj0 = 0 ; | |
13748 | char * kwnames[] = { | |
13749 | (char *) "encoding", NULL | |
13750 | }; | |
13751 | ||
13752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13753 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13754 | if (!SWIG_IsOK(ecode1)) { | |
13755 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13756 | } | |
13757 | arg1 = static_cast< wxFontEncoding >(val1); | |
13758 | { | |
13759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13760 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
13761 | wxPyEndAllowThreads(__tstate); | |
13762 | if (PyErr_Occurred()) SWIG_fail; | |
13763 | } | |
13764 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13765 | return resultobj; | |
13766 | fail: | |
13767 | return NULL; | |
13768 | } | |
13769 | ||
13770 | ||
13771 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13772 | PyObject *resultobj = 0; | |
13773 | wxNativeEncodingInfo *arg1 = 0 ; | |
13774 | bool result; | |
13775 | void *argp1 = 0 ; | |
13776 | int res1 = 0 ; | |
13777 | PyObject * obj0 = 0 ; | |
13778 | char * kwnames[] = { | |
13779 | (char *) "info", NULL | |
13780 | }; | |
13781 | ||
13782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13783 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
13784 | if (!SWIG_IsOK(res1)) { | |
13785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13786 | } | |
13787 | if (!argp1) { | |
13788 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13789 | } | |
13790 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13791 | { | |
13792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13793 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
13794 | wxPyEndAllowThreads(__tstate); | |
13795 | if (PyErr_Occurred()) SWIG_fail; | |
13796 | } | |
13797 | { | |
13798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13799 | } | |
13800 | return resultobj; | |
13801 | fail: | |
13802 | return NULL; | |
d55e5bfc RD |
13803 | } |
13804 | ||
13805 | ||
554f62e9 RD |
13806 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13807 | PyObject *resultobj = 0; | |
13808 | wxFontMapper *result = 0 ; | |
13809 | ||
13810 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13811 | { | |
13812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13813 | result = (wxFontMapper *)new wxFontMapper(); | |
13814 | wxPyEndAllowThreads(__tstate); | |
13815 | if (PyErr_Occurred()) SWIG_fail; | |
13816 | } | |
13817 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13818 | return resultobj; | |
13819 | fail: | |
13820 | return NULL; | |
d55e5bfc RD |
13821 | } |
13822 | ||
13823 | ||
554f62e9 RD |
13824 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13825 | PyObject *resultobj = 0; | |
13826 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13827 | void *argp1 = 0 ; | |
13828 | int res1 = 0 ; | |
13829 | PyObject *swig_obj[1] ; | |
13830 | ||
13831 | if (!args) SWIG_fail; | |
13832 | swig_obj[0] = args; | |
13833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13834 | if (!SWIG_IsOK(res1)) { | |
13835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13836 | } | |
13837 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13838 | { | |
13839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13840 | delete arg1; | |
d55e5bfc | 13841 | |
554f62e9 RD |
13842 | wxPyEndAllowThreads(__tstate); |
13843 | if (PyErr_Occurred()) SWIG_fail; | |
13844 | } | |
13845 | resultobj = SWIG_Py_Void(); | |
13846 | return resultobj; | |
13847 | fail: | |
13848 | return NULL; | |
d55e5bfc RD |
13849 | } |
13850 | ||
13851 | ||
554f62e9 RD |
13852 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13853 | PyObject *resultobj = 0; | |
13854 | wxFontMapper *result = 0 ; | |
13855 | ||
13856 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13857 | { | |
13858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13859 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13860 | wxPyEndAllowThreads(__tstate); | |
13861 | if (PyErr_Occurred()) SWIG_fail; | |
13862 | } | |
13863 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13864 | return resultobj; | |
13865 | fail: | |
13866 | return NULL; | |
13867 | } | |
13868 | ||
13869 | ||
13870 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13871 | PyObject *resultobj = 0; | |
13872 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13873 | wxFontMapper *result = 0 ; | |
13874 | void *argp1 = 0 ; | |
13875 | int res1 = 0 ; | |
13876 | PyObject * obj0 = 0 ; | |
13877 | char * kwnames[] = { | |
13878 | (char *) "mapper", NULL | |
13879 | }; | |
13880 | ||
13881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13883 | if (!SWIG_IsOK(res1)) { | |
13884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13885 | } | |
13886 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13887 | { | |
13888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13889 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13890 | wxPyEndAllowThreads(__tstate); | |
13891 | if (PyErr_Occurred()) SWIG_fail; | |
13892 | } | |
13893 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13894 | return resultobj; | |
13895 | fail: | |
13896 | return NULL; | |
13897 | } | |
13898 | ||
13899 | ||
13900 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13901 | PyObject *resultobj = 0; | |
13902 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13903 | wxString *arg2 = 0 ; | |
13904 | bool arg3 = (bool) true ; | |
13905 | wxFontEncoding result; | |
13906 | void *argp1 = 0 ; | |
13907 | int res1 = 0 ; | |
13908 | bool temp2 = false ; | |
13909 | bool val3 ; | |
13910 | int ecode3 = 0 ; | |
13911 | PyObject * obj0 = 0 ; | |
13912 | PyObject * obj1 = 0 ; | |
13913 | PyObject * obj2 = 0 ; | |
13914 | char * kwnames[] = { | |
13915 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13916 | }; | |
13917 | ||
13918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13920 | if (!SWIG_IsOK(res1)) { | |
13921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13922 | } | |
13923 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13924 | { | |
13925 | arg2 = wxString_in_helper(obj1); | |
13926 | if (arg2 == NULL) SWIG_fail; | |
13927 | temp2 = true; | |
13928 | } | |
13929 | if (obj2) { | |
13930 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13931 | if (!SWIG_IsOK(ecode3)) { | |
13932 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13933 | } | |
13934 | arg3 = static_cast< bool >(val3); | |
13935 | } | |
13936 | { | |
13937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13938 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13939 | wxPyEndAllowThreads(__tstate); | |
13940 | if (PyErr_Occurred()) SWIG_fail; | |
13941 | } | |
13942 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13943 | { | |
13944 | if (temp2) | |
13945 | delete arg2; | |
13946 | } | |
13947 | return resultobj; | |
13948 | fail: | |
13949 | { | |
13950 | if (temp2) | |
13951 | delete arg2; | |
13952 | } | |
13953 | return NULL; | |
d55e5bfc RD |
13954 | } |
13955 | ||
13956 | ||
554f62e9 RD |
13957 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13958 | PyObject *resultobj = 0; | |
13959 | size_t result; | |
13960 | ||
13961 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13962 | { | |
13963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13964 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13965 | wxPyEndAllowThreads(__tstate); | |
13966 | if (PyErr_Occurred()) SWIG_fail; | |
13967 | } | |
13968 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13969 | return resultobj; | |
13970 | fail: | |
13971 | return NULL; | |
13972 | } | |
13973 | ||
13974 | ||
13975 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13976 | PyObject *resultobj = 0; | |
13977 | size_t arg1 ; | |
13978 | wxFontEncoding result; | |
13979 | size_t val1 ; | |
13980 | int ecode1 = 0 ; | |
13981 | PyObject * obj0 = 0 ; | |
13982 | char * kwnames[] = { | |
13983 | (char *) "n", NULL | |
13984 | }; | |
13985 | ||
13986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
13987 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
13988 | if (!SWIG_IsOK(ecode1)) { | |
13989 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
13990 | } | |
13991 | arg1 = static_cast< size_t >(val1); | |
13992 | { | |
13993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13994 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
13995 | wxPyEndAllowThreads(__tstate); | |
13996 | if (PyErr_Occurred()) SWIG_fail; | |
13997 | } | |
13998 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13999 | return resultobj; | |
14000 | fail: | |
14001 | return NULL; | |
14002 | } | |
14003 | ||
14004 | ||
14005 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14006 | PyObject *resultobj = 0; | |
14007 | wxFontEncoding arg1 ; | |
14008 | wxString result; | |
14009 | int val1 ; | |
14010 | int ecode1 = 0 ; | |
14011 | PyObject * obj0 = 0 ; | |
14012 | char * kwnames[] = { | |
14013 | (char *) "encoding", NULL | |
14014 | }; | |
14015 | ||
14016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
14017 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14018 | if (!SWIG_IsOK(ecode1)) { | |
14019 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14020 | } | |
14021 | arg1 = static_cast< wxFontEncoding >(val1); | |
14022 | { | |
14023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14024 | result = wxFontMapper::GetEncodingName(arg1); | |
14025 | wxPyEndAllowThreads(__tstate); | |
14026 | if (PyErr_Occurred()) SWIG_fail; | |
14027 | } | |
14028 | { | |
14029 | #if wxUSE_UNICODE | |
14030 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14031 | #else | |
14032 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14033 | #endif | |
14034 | } | |
14035 | return resultobj; | |
14036 | fail: | |
14037 | return NULL; | |
d55e5bfc RD |
14038 | } |
14039 | ||
14040 | ||
554f62e9 RD |
14041 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14042 | PyObject *resultobj = 0; | |
14043 | wxFontEncoding arg1 ; | |
14044 | wxString result; | |
14045 | int val1 ; | |
14046 | int ecode1 = 0 ; | |
14047 | PyObject * obj0 = 0 ; | |
14048 | char * kwnames[] = { | |
14049 | (char *) "encoding", NULL | |
14050 | }; | |
14051 | ||
14052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
14053 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14054 | if (!SWIG_IsOK(ecode1)) { | |
14055 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14056 | } | |
14057 | arg1 = static_cast< wxFontEncoding >(val1); | |
14058 | { | |
14059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14060 | result = wxFontMapper::GetEncodingDescription(arg1); | |
14061 | wxPyEndAllowThreads(__tstate); | |
14062 | if (PyErr_Occurred()) SWIG_fail; | |
14063 | } | |
14064 | { | |
14065 | #if wxUSE_UNICODE | |
14066 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14067 | #else | |
14068 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14069 | #endif | |
14070 | } | |
14071 | return resultobj; | |
14072 | fail: | |
14073 | return NULL; | |
d55e5bfc RD |
14074 | } |
14075 | ||
14076 | ||
554f62e9 RD |
14077 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14078 | PyObject *resultobj = 0; | |
14079 | wxString *arg1 = 0 ; | |
14080 | wxFontEncoding result; | |
14081 | bool temp1 = false ; | |
14082 | PyObject * obj0 = 0 ; | |
14083 | char * kwnames[] = { | |
14084 | (char *) "name", NULL | |
14085 | }; | |
14086 | ||
14087 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
14088 | { | |
14089 | arg1 = wxString_in_helper(obj0); | |
14090 | if (arg1 == NULL) SWIG_fail; | |
14091 | temp1 = true; | |
14092 | } | |
14093 | { | |
14094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14095 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
14096 | wxPyEndAllowThreads(__tstate); | |
14097 | if (PyErr_Occurred()) SWIG_fail; | |
14098 | } | |
14099 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14100 | { | |
14101 | if (temp1) | |
14102 | delete arg1; | |
14103 | } | |
14104 | return resultobj; | |
14105 | fail: | |
14106 | { | |
14107 | if (temp1) | |
14108 | delete arg1; | |
14109 | } | |
14110 | return NULL; | |
d55e5bfc RD |
14111 | } |
14112 | ||
14113 | ||
554f62e9 RD |
14114 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14115 | PyObject *resultobj = 0; | |
14116 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14117 | wxString *arg2 = 0 ; | |
14118 | void *argp1 = 0 ; | |
14119 | int res1 = 0 ; | |
14120 | bool temp2 = false ; | |
14121 | PyObject * obj0 = 0 ; | |
14122 | PyObject * obj1 = 0 ; | |
14123 | char * kwnames[] = { | |
14124 | (char *) "self",(char *) "prefix", NULL | |
14125 | }; | |
14126 | ||
14127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
14128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14129 | if (!SWIG_IsOK(res1)) { | |
14130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14131 | } | |
14132 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14133 | { | |
14134 | arg2 = wxString_in_helper(obj1); | |
14135 | if (arg2 == NULL) SWIG_fail; | |
14136 | temp2 = true; | |
14137 | } | |
14138 | { | |
14139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14140 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
14141 | wxPyEndAllowThreads(__tstate); | |
14142 | if (PyErr_Occurred()) SWIG_fail; | |
14143 | } | |
14144 | resultobj = SWIG_Py_Void(); | |
14145 | { | |
14146 | if (temp2) | |
14147 | delete arg2; | |
14148 | } | |
14149 | return resultobj; | |
14150 | fail: | |
14151 | { | |
14152 | if (temp2) | |
14153 | delete arg2; | |
14154 | } | |
14155 | return NULL; | |
d55e5bfc RD |
14156 | } |
14157 | ||
14158 | ||
554f62e9 RD |
14159 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14160 | PyObject *resultobj = 0; | |
14161 | wxString result; | |
14162 | ||
14163 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
14164 | { | |
14165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14166 | result = wxFontMapper::GetDefaultConfigPath(); | |
14167 | wxPyEndAllowThreads(__tstate); | |
14168 | if (PyErr_Occurred()) SWIG_fail; | |
14169 | } | |
14170 | { | |
14171 | #if wxUSE_UNICODE | |
14172 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14173 | #else | |
14174 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14175 | #endif | |
14176 | } | |
14177 | return resultobj; | |
14178 | fail: | |
14179 | return NULL; | |
14180 | } | |
14181 | ||
14182 | ||
14183 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14184 | PyObject *resultobj = 0; | |
14185 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14186 | wxFontEncoding arg2 ; | |
14187 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14188 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14189 | bool arg4 = (bool) true ; | |
14190 | PyObject *result = 0 ; | |
14191 | void *argp1 = 0 ; | |
14192 | int res1 = 0 ; | |
14193 | int val2 ; | |
14194 | int ecode2 = 0 ; | |
14195 | bool temp3 = false ; | |
14196 | bool val4 ; | |
14197 | int ecode4 = 0 ; | |
14198 | PyObject * obj0 = 0 ; | |
14199 | PyObject * obj1 = 0 ; | |
14200 | PyObject * obj2 = 0 ; | |
14201 | PyObject * obj3 = 0 ; | |
14202 | char * kwnames[] = { | |
14203 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
14204 | }; | |
14205 | ||
14206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14208 | if (!SWIG_IsOK(res1)) { | |
14209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14210 | } | |
14211 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14212 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14213 | if (!SWIG_IsOK(ecode2)) { | |
14214 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14215 | } | |
14216 | arg2 = static_cast< wxFontEncoding >(val2); | |
14217 | if (obj2) { | |
d55e5bfc | 14218 | { |
554f62e9 RD |
14219 | arg3 = wxString_in_helper(obj2); |
14220 | if (arg3 == NULL) SWIG_fail; | |
14221 | temp3 = true; | |
d55e5bfc | 14222 | } |
554f62e9 RD |
14223 | } |
14224 | if (obj3) { | |
14225 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
14226 | if (!SWIG_IsOK(ecode4)) { | |
14227 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
14228 | } | |
14229 | arg4 = static_cast< bool >(val4); | |
14230 | } | |
14231 | { | |
14232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14233 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
14234 | wxPyEndAllowThreads(__tstate); | |
14235 | if (PyErr_Occurred()) SWIG_fail; | |
14236 | } | |
14237 | resultobj = result; | |
14238 | { | |
14239 | if (temp3) | |
14240 | delete arg3; | |
14241 | } | |
14242 | return resultobj; | |
14243 | fail: | |
14244 | { | |
14245 | if (temp3) | |
14246 | delete arg3; | |
14247 | } | |
14248 | return NULL; | |
14249 | } | |
14250 | ||
14251 | ||
14252 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14253 | PyObject *resultobj = 0; | |
14254 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14255 | wxFontEncoding arg2 ; | |
14256 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14257 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14258 | bool result; | |
14259 | void *argp1 = 0 ; | |
14260 | int res1 = 0 ; | |
14261 | int val2 ; | |
14262 | int ecode2 = 0 ; | |
14263 | bool temp3 = false ; | |
14264 | PyObject * obj0 = 0 ; | |
14265 | PyObject * obj1 = 0 ; | |
14266 | PyObject * obj2 = 0 ; | |
14267 | char * kwnames[] = { | |
14268 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
14269 | }; | |
14270 | ||
14271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14273 | if (!SWIG_IsOK(res1)) { | |
14274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14275 | } | |
14276 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14277 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14278 | if (!SWIG_IsOK(ecode2)) { | |
14279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14280 | } | |
14281 | arg2 = static_cast< wxFontEncoding >(val2); | |
14282 | if (obj2) { | |
093d3ff1 | 14283 | { |
554f62e9 RD |
14284 | arg3 = wxString_in_helper(obj2); |
14285 | if (arg3 == NULL) SWIG_fail; | |
14286 | temp3 = true; | |
d55e5bfc | 14287 | } |
554f62e9 RD |
14288 | } |
14289 | { | |
14290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14291 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
14292 | wxPyEndAllowThreads(__tstate); | |
14293 | if (PyErr_Occurred()) SWIG_fail; | |
14294 | } | |
14295 | { | |
14296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14297 | } | |
14298 | { | |
14299 | if (temp3) | |
14300 | delete arg3; | |
14301 | } | |
14302 | return resultobj; | |
14303 | fail: | |
14304 | { | |
14305 | if (temp3) | |
14306 | delete arg3; | |
14307 | } | |
14308 | return NULL; | |
14309 | } | |
14310 | ||
14311 | ||
14312 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14313 | PyObject *resultobj = 0; | |
14314 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14315 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14316 | void *argp1 = 0 ; | |
14317 | int res1 = 0 ; | |
14318 | void *argp2 = 0 ; | |
14319 | int res2 = 0 ; | |
14320 | PyObject * obj0 = 0 ; | |
14321 | PyObject * obj1 = 0 ; | |
14322 | char * kwnames[] = { | |
14323 | (char *) "self",(char *) "parent", NULL | |
14324 | }; | |
14325 | ||
14326 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14328 | if (!SWIG_IsOK(res1)) { | |
14329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14330 | } | |
14331 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14332 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14333 | if (!SWIG_IsOK(res2)) { | |
14334 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14335 | } | |
14336 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14337 | { | |
14338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14339 | (arg1)->SetDialogParent(arg2); | |
14340 | wxPyEndAllowThreads(__tstate); | |
14341 | if (PyErr_Occurred()) SWIG_fail; | |
14342 | } | |
14343 | resultobj = SWIG_Py_Void(); | |
14344 | return resultobj; | |
14345 | fail: | |
14346 | return NULL; | |
14347 | } | |
14348 | ||
14349 | ||
14350 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14351 | PyObject *resultobj = 0; | |
14352 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14353 | wxString *arg2 = 0 ; | |
14354 | void *argp1 = 0 ; | |
14355 | int res1 = 0 ; | |
14356 | bool temp2 = false ; | |
14357 | PyObject * obj0 = 0 ; | |
14358 | PyObject * obj1 = 0 ; | |
14359 | char * kwnames[] = { | |
14360 | (char *) "self",(char *) "title", NULL | |
14361 | }; | |
14362 | ||
14363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14365 | if (!SWIG_IsOK(res1)) { | |
14366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14367 | } | |
14368 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14369 | { | |
14370 | arg2 = wxString_in_helper(obj1); | |
14371 | if (arg2 == NULL) SWIG_fail; | |
14372 | temp2 = true; | |
14373 | } | |
14374 | { | |
14375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14376 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
14377 | wxPyEndAllowThreads(__tstate); | |
14378 | if (PyErr_Occurred()) SWIG_fail; | |
14379 | } | |
14380 | resultobj = SWIG_Py_Void(); | |
14381 | { | |
14382 | if (temp2) | |
14383 | delete arg2; | |
14384 | } | |
14385 | return resultobj; | |
14386 | fail: | |
14387 | { | |
14388 | if (temp2) | |
14389 | delete arg2; | |
14390 | } | |
14391 | return NULL; | |
14392 | } | |
14393 | ||
14394 | ||
14395 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14396 | PyObject *obj; | |
14397 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14398 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
14399 | return SWIG_Py_Void(); | |
14400 | } | |
14401 | ||
14402 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14403 | return SWIG_Python_InitShadowInstance(args); | |
14404 | } | |
14405 | ||
14406 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14407 | PyObject *resultobj = 0; | |
14408 | int arg1 ; | |
14409 | int arg2 ; | |
14410 | int arg3 ; | |
14411 | int arg4 ; | |
14412 | bool arg5 = (bool) false ; | |
14413 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14414 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14415 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14416 | wxFont *result = 0 ; | |
14417 | int val1 ; | |
14418 | int ecode1 = 0 ; | |
14419 | int val2 ; | |
14420 | int ecode2 = 0 ; | |
14421 | int val3 ; | |
14422 | int ecode3 = 0 ; | |
14423 | int val4 ; | |
14424 | int ecode4 = 0 ; | |
14425 | bool val5 ; | |
14426 | int ecode5 = 0 ; | |
14427 | bool temp6 = false ; | |
14428 | int val7 ; | |
14429 | int ecode7 = 0 ; | |
14430 | PyObject * obj0 = 0 ; | |
14431 | PyObject * obj1 = 0 ; | |
14432 | PyObject * obj2 = 0 ; | |
14433 | PyObject * obj3 = 0 ; | |
14434 | PyObject * obj4 = 0 ; | |
14435 | PyObject * obj5 = 0 ; | |
14436 | PyObject * obj6 = 0 ; | |
14437 | char * kwnames[] = { | |
14438 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
14439 | }; | |
14440 | ||
14441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14442 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14443 | if (!SWIG_IsOK(ecode1)) { | |
14444 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
14445 | } | |
14446 | arg1 = static_cast< int >(val1); | |
14447 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14448 | if (!SWIG_IsOK(ecode2)) { | |
14449 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
14450 | } | |
14451 | arg2 = static_cast< int >(val2); | |
14452 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14453 | if (!SWIG_IsOK(ecode3)) { | |
14454 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
14455 | } | |
14456 | arg3 = static_cast< int >(val3); | |
14457 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14458 | if (!SWIG_IsOK(ecode4)) { | |
14459 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
14460 | } | |
14461 | arg4 = static_cast< int >(val4); | |
14462 | if (obj4) { | |
14463 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14464 | if (!SWIG_IsOK(ecode5)) { | |
14465 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
14466 | } | |
14467 | arg5 = static_cast< bool >(val5); | |
14468 | } | |
14469 | if (obj5) { | |
d55e5bfc | 14470 | { |
554f62e9 RD |
14471 | arg6 = wxString_in_helper(obj5); |
14472 | if (arg6 == NULL) SWIG_fail; | |
14473 | temp6 = true; | |
d55e5bfc | 14474 | } |
554f62e9 RD |
14475 | } |
14476 | if (obj6) { | |
14477 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14478 | if (!SWIG_IsOK(ecode7)) { | |
14479 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14480 | } | |
14481 | arg7 = static_cast< wxFontEncoding >(val7); | |
14482 | } | |
14483 | { | |
14484 | if (!wxPyCheckForApp()) SWIG_fail; | |
14485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14486 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14487 | wxPyEndAllowThreads(__tstate); | |
14488 | if (PyErr_Occurred()) SWIG_fail; | |
14489 | } | |
14490 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
14491 | { | |
14492 | if (temp6) | |
14493 | delete arg6; | |
14494 | } | |
14495 | return resultobj; | |
14496 | fail: | |
14497 | { | |
14498 | if (temp6) | |
14499 | delete arg6; | |
14500 | } | |
14501 | return NULL; | |
d55e5bfc RD |
14502 | } |
14503 | ||
14504 | ||
554f62e9 RD |
14505 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14506 | PyObject *resultobj = 0; | |
14507 | wxFont *arg1 = (wxFont *) 0 ; | |
14508 | void *argp1 = 0 ; | |
14509 | int res1 = 0 ; | |
14510 | PyObject *swig_obj[1] ; | |
14511 | ||
14512 | if (!args) SWIG_fail; | |
14513 | swig_obj[0] = args; | |
14514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
14515 | if (!SWIG_IsOK(res1)) { | |
14516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14517 | } | |
14518 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14519 | { | |
14520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14521 | delete arg1; | |
d55e5bfc | 14522 | |
554f62e9 RD |
14523 | wxPyEndAllowThreads(__tstate); |
14524 | if (PyErr_Occurred()) SWIG_fail; | |
14525 | } | |
14526 | resultobj = SWIG_Py_Void(); | |
14527 | return resultobj; | |
14528 | fail: | |
14529 | return NULL; | |
14530 | } | |
14531 | ||
14532 | ||
14533 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14534 | PyObject *resultobj = 0; | |
14535 | wxNativeFontInfo *arg1 = 0 ; | |
14536 | wxFont *result = 0 ; | |
14537 | void *argp1 = 0 ; | |
14538 | int res1 = 0 ; | |
14539 | PyObject * obj0 = 0 ; | |
14540 | char * kwnames[] = { | |
14541 | (char *) "info", NULL | |
14542 | }; | |
14543 | ||
14544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
14545 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
14546 | if (!SWIG_IsOK(res1)) { | |
14547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14548 | } | |
14549 | if (!argp1) { | |
14550 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14551 | } | |
14552 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
14553 | { | |
14554 | if (!wxPyCheckForApp()) SWIG_fail; | |
14555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14556 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
14557 | wxPyEndAllowThreads(__tstate); | |
14558 | if (PyErr_Occurred()) SWIG_fail; | |
14559 | } | |
14560 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14561 | return resultobj; | |
14562 | fail: | |
14563 | return NULL; | |
d55e5bfc RD |
14564 | } |
14565 | ||
14566 | ||
554f62e9 RD |
14567 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14568 | PyObject *resultobj = 0; | |
14569 | wxString *arg1 = 0 ; | |
14570 | wxFont *result = 0 ; | |
14571 | bool temp1 = false ; | |
14572 | PyObject * obj0 = 0 ; | |
14573 | char * kwnames[] = { | |
14574 | (char *) "info", NULL | |
14575 | }; | |
14576 | ||
14577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
14578 | { | |
14579 | arg1 = wxString_in_helper(obj0); | |
14580 | if (arg1 == NULL) SWIG_fail; | |
14581 | temp1 = true; | |
14582 | } | |
14583 | { | |
14584 | if (!wxPyCheckForApp()) SWIG_fail; | |
14585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14586 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
14587 | wxPyEndAllowThreads(__tstate); | |
14588 | if (PyErr_Occurred()) SWIG_fail; | |
14589 | } | |
14590 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14591 | { | |
14592 | if (temp1) | |
14593 | delete arg1; | |
14594 | } | |
14595 | return resultobj; | |
14596 | fail: | |
14597 | { | |
14598 | if (temp1) | |
14599 | delete arg1; | |
14600 | } | |
14601 | return NULL; | |
14602 | } | |
14603 | ||
14604 | ||
14605 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14606 | PyObject *resultobj = 0; | |
14607 | int arg1 ; | |
14608 | wxFontFamily arg2 ; | |
14609 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14610 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14611 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14612 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14613 | wxFont *result = 0 ; | |
14614 | int val1 ; | |
14615 | int ecode1 = 0 ; | |
14616 | int val2 ; | |
14617 | int ecode2 = 0 ; | |
14618 | int val3 ; | |
14619 | int ecode3 = 0 ; | |
14620 | bool temp4 = false ; | |
14621 | int val5 ; | |
14622 | int ecode5 = 0 ; | |
14623 | PyObject * obj0 = 0 ; | |
14624 | PyObject * obj1 = 0 ; | |
14625 | PyObject * obj2 = 0 ; | |
14626 | PyObject * obj3 = 0 ; | |
14627 | PyObject * obj4 = 0 ; | |
14628 | char * kwnames[] = { | |
14629 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14630 | }; | |
14631 | ||
14632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14633 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14634 | if (!SWIG_IsOK(ecode1)) { | |
14635 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
14636 | } | |
14637 | arg1 = static_cast< int >(val1); | |
14638 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14639 | if (!SWIG_IsOK(ecode2)) { | |
14640 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14641 | } | |
14642 | arg2 = static_cast< wxFontFamily >(val2); | |
14643 | if (obj2) { | |
14644 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14645 | if (!SWIG_IsOK(ecode3)) { | |
14646 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
14647 | } | |
14648 | arg3 = static_cast< int >(val3); | |
14649 | } | |
14650 | if (obj3) { | |
d55e5bfc | 14651 | { |
554f62e9 RD |
14652 | arg4 = wxString_in_helper(obj3); |
14653 | if (arg4 == NULL) SWIG_fail; | |
14654 | temp4 = true; | |
d55e5bfc | 14655 | } |
554f62e9 RD |
14656 | } |
14657 | if (obj4) { | |
14658 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14659 | if (!SWIG_IsOK(ecode5)) { | |
14660 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14661 | } | |
14662 | arg5 = static_cast< wxFontEncoding >(val5); | |
14663 | } | |
14664 | { | |
14665 | if (!wxPyCheckForApp()) SWIG_fail; | |
14666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14667 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14668 | wxPyEndAllowThreads(__tstate); | |
14669 | if (PyErr_Occurred()) SWIG_fail; | |
14670 | } | |
14671 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14672 | { | |
14673 | if (temp4) | |
14674 | delete arg4; | |
14675 | } | |
14676 | return resultobj; | |
14677 | fail: | |
14678 | { | |
14679 | if (temp4) | |
14680 | delete arg4; | |
14681 | } | |
14682 | return NULL; | |
14683 | } | |
14684 | ||
14685 | ||
14686 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14687 | PyObject *resultobj = 0; | |
14688 | wxSize *arg1 = 0 ; | |
14689 | int arg2 ; | |
14690 | int arg3 ; | |
14691 | int arg4 ; | |
14692 | bool arg5 = (bool) false ; | |
14693 | wxString const &arg6_defvalue = wxEmptyString ; | |
14694 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14695 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14696 | wxFont *result = 0 ; | |
14697 | wxSize temp1 ; | |
14698 | int val2 ; | |
14699 | int ecode2 = 0 ; | |
14700 | int val3 ; | |
14701 | int ecode3 = 0 ; | |
14702 | int val4 ; | |
14703 | int ecode4 = 0 ; | |
14704 | bool val5 ; | |
14705 | int ecode5 = 0 ; | |
14706 | bool temp6 = false ; | |
14707 | int val7 ; | |
14708 | int ecode7 = 0 ; | |
14709 | PyObject * obj0 = 0 ; | |
14710 | PyObject * obj1 = 0 ; | |
14711 | PyObject * obj2 = 0 ; | |
14712 | PyObject * obj3 = 0 ; | |
14713 | PyObject * obj4 = 0 ; | |
14714 | PyObject * obj5 = 0 ; | |
14715 | PyObject * obj6 = 0 ; | |
14716 | char * kwnames[] = { | |
14717 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
14718 | }; | |
14719 | ||
14720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14721 | { | |
14722 | arg1 = &temp1; | |
14723 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14724 | } | |
14725 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14726 | if (!SWIG_IsOK(ecode2)) { | |
14727 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
14728 | } | |
14729 | arg2 = static_cast< int >(val2); | |
14730 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14731 | if (!SWIG_IsOK(ecode3)) { | |
14732 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14733 | } | |
14734 | arg3 = static_cast< int >(val3); | |
14735 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14736 | if (!SWIG_IsOK(ecode4)) { | |
14737 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
14738 | } | |
14739 | arg4 = static_cast< int >(val4); | |
14740 | if (obj4) { | |
14741 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14742 | if (!SWIG_IsOK(ecode5)) { | |
14743 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
14744 | } | |
14745 | arg5 = static_cast< bool >(val5); | |
14746 | } | |
14747 | if (obj5) { | |
d55e5bfc | 14748 | { |
554f62e9 RD |
14749 | arg6 = wxString_in_helper(obj5); |
14750 | if (arg6 == NULL) SWIG_fail; | |
14751 | temp6 = true; | |
d55e5bfc | 14752 | } |
554f62e9 RD |
14753 | } |
14754 | if (obj6) { | |
14755 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14756 | if (!SWIG_IsOK(ecode7)) { | |
14757 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14758 | } | |
14759 | arg7 = static_cast< wxFontEncoding >(val7); | |
14760 | } | |
14761 | { | |
14762 | if (!wxPyCheckForApp()) SWIG_fail; | |
14763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14764 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14765 | wxPyEndAllowThreads(__tstate); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
14767 | } | |
14768 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14769 | { | |
14770 | if (temp6) | |
14771 | delete arg6; | |
14772 | } | |
14773 | return resultobj; | |
14774 | fail: | |
14775 | { | |
14776 | if (temp6) | |
14777 | delete arg6; | |
14778 | } | |
14779 | return NULL; | |
14780 | } | |
14781 | ||
14782 | ||
14783 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14784 | PyObject *resultobj = 0; | |
14785 | wxSize *arg1 = 0 ; | |
14786 | wxFontFamily arg2 ; | |
14787 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14788 | wxString const &arg4_defvalue = wxEmptyString ; | |
14789 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14790 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14791 | wxFont *result = 0 ; | |
14792 | wxSize temp1 ; | |
14793 | int val2 ; | |
14794 | int ecode2 = 0 ; | |
14795 | int val3 ; | |
14796 | int ecode3 = 0 ; | |
14797 | bool temp4 = false ; | |
14798 | int val5 ; | |
14799 | int ecode5 = 0 ; | |
14800 | PyObject * obj0 = 0 ; | |
14801 | PyObject * obj1 = 0 ; | |
14802 | PyObject * obj2 = 0 ; | |
14803 | PyObject * obj3 = 0 ; | |
14804 | PyObject * obj4 = 0 ; | |
14805 | char * kwnames[] = { | |
14806 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14807 | }; | |
14808 | ||
14809 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14810 | { | |
14811 | arg1 = &temp1; | |
14812 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14813 | } | |
14814 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14815 | if (!SWIG_IsOK(ecode2)) { | |
14816 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14817 | } | |
14818 | arg2 = static_cast< wxFontFamily >(val2); | |
14819 | if (obj2) { | |
14820 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14821 | if (!SWIG_IsOK(ecode3)) { | |
14822 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14823 | } | |
14824 | arg3 = static_cast< int >(val3); | |
14825 | } | |
14826 | if (obj3) { | |
d55e5bfc | 14827 | { |
554f62e9 RD |
14828 | arg4 = wxString_in_helper(obj3); |
14829 | if (arg4 == NULL) SWIG_fail; | |
14830 | temp4 = true; | |
d55e5bfc | 14831 | } |
554f62e9 RD |
14832 | } |
14833 | if (obj4) { | |
14834 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14835 | if (!SWIG_IsOK(ecode5)) { | |
14836 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14837 | } | |
14838 | arg5 = static_cast< wxFontEncoding >(val5); | |
14839 | } | |
14840 | { | |
14841 | if (!wxPyCheckForApp()) SWIG_fail; | |
14842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14843 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14844 | wxPyEndAllowThreads(__tstate); | |
14845 | if (PyErr_Occurred()) SWIG_fail; | |
14846 | } | |
14847 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14848 | { | |
14849 | if (temp4) | |
14850 | delete arg4; | |
14851 | } | |
14852 | return resultobj; | |
14853 | fail: | |
14854 | { | |
14855 | if (temp4) | |
14856 | delete arg4; | |
14857 | } | |
14858 | return NULL; | |
d55e5bfc RD |
14859 | } |
14860 | ||
14861 | ||
b39fe951 | 14862 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
14863 | PyObject *resultobj = 0; |
14864 | wxFont *arg1 = (wxFont *) 0 ; | |
14865 | bool result; | |
14866 | void *argp1 = 0 ; | |
14867 | int res1 = 0 ; | |
14868 | PyObject *swig_obj[1] ; | |
14869 | ||
14870 | if (!args) SWIG_fail; | |
14871 | swig_obj[0] = args; | |
14872 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14873 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
554f62e9 RD |
14875 | } |
14876 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14877 | { | |
14878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14879 | result = (bool)((wxFont const *)arg1)->IsOk(); |
554f62e9 RD |
14880 | wxPyEndAllowThreads(__tstate); |
14881 | if (PyErr_Occurred()) SWIG_fail; | |
14882 | } | |
14883 | { | |
14884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14885 | } | |
14886 | return resultobj; | |
14887 | fail: | |
14888 | return NULL; | |
14889 | } | |
14890 | ||
14891 | ||
14892 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14893 | PyObject *resultobj = 0; | |
14894 | wxFont *arg1 = (wxFont *) 0 ; | |
14895 | wxFont *arg2 = (wxFont *) 0 ; | |
14896 | bool result; | |
14897 | void *argp1 = 0 ; | |
14898 | int res1 = 0 ; | |
14899 | void *argp2 = 0 ; | |
14900 | int res2 = 0 ; | |
14901 | PyObject * obj0 = 0 ; | |
14902 | PyObject * obj1 = 0 ; | |
14903 | char * kwnames[] = { | |
14904 | (char *) "self",(char *) "other", NULL | |
14905 | }; | |
14906 | ||
14907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14909 | if (!SWIG_IsOK(res1)) { | |
14910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14911 | } | |
14912 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14913 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14914 | if (!SWIG_IsOK(res2)) { | |
14915 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14916 | } | |
14917 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14918 | { | |
14919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14920 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14921 | wxPyEndAllowThreads(__tstate); | |
14922 | if (PyErr_Occurred()) SWIG_fail; | |
14923 | } | |
14924 | { | |
14925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14926 | } | |
14927 | return resultobj; | |
14928 | fail: | |
14929 | return NULL; | |
14930 | } | |
14931 | ||
14932 | ||
14933 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14934 | PyObject *resultobj = 0; | |
14935 | wxFont *arg1 = (wxFont *) 0 ; | |
14936 | wxFont *arg2 = (wxFont *) 0 ; | |
14937 | bool result; | |
14938 | void *argp1 = 0 ; | |
14939 | int res1 = 0 ; | |
14940 | void *argp2 = 0 ; | |
14941 | int res2 = 0 ; | |
14942 | PyObject * obj0 = 0 ; | |
14943 | PyObject * obj1 = 0 ; | |
14944 | char * kwnames[] = { | |
14945 | (char *) "self",(char *) "other", NULL | |
14946 | }; | |
14947 | ||
14948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14950 | if (!SWIG_IsOK(res1)) { | |
14951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14952 | } | |
14953 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14954 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14955 | if (!SWIG_IsOK(res2)) { | |
14956 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14957 | } | |
14958 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14959 | { | |
14960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14961 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14962 | wxPyEndAllowThreads(__tstate); | |
14963 | if (PyErr_Occurred()) SWIG_fail; | |
14964 | } | |
14965 | { | |
14966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14967 | } | |
14968 | return resultobj; | |
14969 | fail: | |
14970 | return NULL; | |
a2569024 RD |
14971 | } |
14972 | ||
14973 | ||
554f62e9 RD |
14974 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14975 | PyObject *resultobj = 0; | |
14976 | wxFont *arg1 = (wxFont *) 0 ; | |
14977 | int result; | |
14978 | void *argp1 = 0 ; | |
14979 | int res1 = 0 ; | |
14980 | PyObject *swig_obj[1] ; | |
14981 | ||
14982 | if (!args) SWIG_fail; | |
14983 | swig_obj[0] = args; | |
14984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14985 | if (!SWIG_IsOK(res1)) { | |
14986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14987 | } | |
14988 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14989 | { | |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14991 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
14992 | wxPyEndAllowThreads(__tstate); | |
14993 | if (PyErr_Occurred()) SWIG_fail; | |
14994 | } | |
14995 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14996 | return resultobj; | |
14997 | fail: | |
14998 | return NULL; | |
d55e5bfc RD |
14999 | } |
15000 | ||
15001 | ||
554f62e9 RD |
15002 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15003 | PyObject *resultobj = 0; | |
15004 | wxFont *arg1 = (wxFont *) 0 ; | |
15005 | wxSize result; | |
15006 | void *argp1 = 0 ; | |
15007 | int res1 = 0 ; | |
15008 | PyObject *swig_obj[1] ; | |
15009 | ||
15010 | if (!args) SWIG_fail; | |
15011 | swig_obj[0] = args; | |
15012 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15013 | if (!SWIG_IsOK(res1)) { | |
15014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15015 | } | |
15016 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15017 | { | |
15018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15019 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
15020 | wxPyEndAllowThreads(__tstate); | |
15021 | if (PyErr_Occurred()) SWIG_fail; | |
15022 | } | |
15023 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
15024 | return resultobj; | |
15025 | fail: | |
15026 | return NULL; | |
d55e5bfc RD |
15027 | } |
15028 | ||
15029 | ||
554f62e9 RD |
15030 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15031 | PyObject *resultobj = 0; | |
15032 | wxFont *arg1 = (wxFont *) 0 ; | |
15033 | bool result; | |
15034 | void *argp1 = 0 ; | |
15035 | int res1 = 0 ; | |
15036 | PyObject *swig_obj[1] ; | |
15037 | ||
15038 | if (!args) SWIG_fail; | |
15039 | swig_obj[0] = args; | |
15040 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15041 | if (!SWIG_IsOK(res1)) { | |
15042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15043 | } | |
15044 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15045 | { | |
15046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15047 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
15048 | wxPyEndAllowThreads(__tstate); | |
15049 | if (PyErr_Occurred()) SWIG_fail; | |
15050 | } | |
15051 | { | |
15052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15053 | } | |
15054 | return resultobj; | |
15055 | fail: | |
15056 | return NULL; | |
d55e5bfc RD |
15057 | } |
15058 | ||
15059 | ||
554f62e9 RD |
15060 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15061 | PyObject *resultobj = 0; | |
15062 | wxFont *arg1 = (wxFont *) 0 ; | |
15063 | int result; | |
15064 | void *argp1 = 0 ; | |
15065 | int res1 = 0 ; | |
15066 | PyObject *swig_obj[1] ; | |
15067 | ||
15068 | if (!args) SWIG_fail; | |
15069 | swig_obj[0] = args; | |
15070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15071 | if (!SWIG_IsOK(res1)) { | |
15072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15073 | } | |
15074 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15075 | { | |
15076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15077 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
15078 | wxPyEndAllowThreads(__tstate); | |
15079 | if (PyErr_Occurred()) SWIG_fail; | |
15080 | } | |
15081 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15082 | return resultobj; | |
15083 | fail: | |
15084 | return NULL; | |
d55e5bfc RD |
15085 | } |
15086 | ||
15087 | ||
554f62e9 RD |
15088 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15089 | PyObject *resultobj = 0; | |
15090 | wxFont *arg1 = (wxFont *) 0 ; | |
15091 | int result; | |
15092 | void *argp1 = 0 ; | |
15093 | int res1 = 0 ; | |
15094 | PyObject *swig_obj[1] ; | |
15095 | ||
15096 | if (!args) SWIG_fail; | |
15097 | swig_obj[0] = args; | |
15098 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15099 | if (!SWIG_IsOK(res1)) { | |
15100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15101 | } | |
15102 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15103 | { | |
15104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15105 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
15106 | wxPyEndAllowThreads(__tstate); | |
15107 | if (PyErr_Occurred()) SWIG_fail; | |
15108 | } | |
15109 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15110 | return resultobj; | |
15111 | fail: | |
15112 | return NULL; | |
d55e5bfc RD |
15113 | } |
15114 | ||
15115 | ||
554f62e9 RD |
15116 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15117 | PyObject *resultobj = 0; | |
15118 | wxFont *arg1 = (wxFont *) 0 ; | |
15119 | int result; | |
15120 | void *argp1 = 0 ; | |
15121 | int res1 = 0 ; | |
15122 | PyObject *swig_obj[1] ; | |
15123 | ||
15124 | if (!args) SWIG_fail; | |
15125 | swig_obj[0] = args; | |
15126 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15127 | if (!SWIG_IsOK(res1)) { | |
15128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15129 | } | |
15130 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15131 | { | |
15132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15133 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
15134 | wxPyEndAllowThreads(__tstate); | |
15135 | if (PyErr_Occurred()) SWIG_fail; | |
15136 | } | |
15137 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15138 | return resultobj; | |
15139 | fail: | |
15140 | return NULL; | |
d55e5bfc RD |
15141 | } |
15142 | ||
15143 | ||
554f62e9 RD |
15144 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15145 | PyObject *resultobj = 0; | |
15146 | wxFont *arg1 = (wxFont *) 0 ; | |
15147 | bool result; | |
15148 | void *argp1 = 0 ; | |
15149 | int res1 = 0 ; | |
15150 | PyObject *swig_obj[1] ; | |
15151 | ||
15152 | if (!args) SWIG_fail; | |
15153 | swig_obj[0] = args; | |
15154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15155 | if (!SWIG_IsOK(res1)) { | |
15156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15157 | } | |
15158 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15159 | { | |
15160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15161 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
15162 | wxPyEndAllowThreads(__tstate); | |
15163 | if (PyErr_Occurred()) SWIG_fail; | |
15164 | } | |
15165 | { | |
15166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15167 | } | |
15168 | return resultobj; | |
15169 | fail: | |
15170 | return NULL; | |
d55e5bfc RD |
15171 | } |
15172 | ||
15173 | ||
554f62e9 RD |
15174 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15175 | PyObject *resultobj = 0; | |
15176 | wxFont *arg1 = (wxFont *) 0 ; | |
15177 | wxString result; | |
15178 | void *argp1 = 0 ; | |
15179 | int res1 = 0 ; | |
15180 | PyObject *swig_obj[1] ; | |
15181 | ||
15182 | if (!args) SWIG_fail; | |
15183 | swig_obj[0] = args; | |
15184 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15185 | if (!SWIG_IsOK(res1)) { | |
15186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15187 | } | |
15188 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15189 | { | |
15190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15191 | result = ((wxFont const *)arg1)->GetFaceName(); | |
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
15195 | { | |
15196 | #if wxUSE_UNICODE | |
15197 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15198 | #else | |
15199 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15200 | #endif | |
15201 | } | |
15202 | return resultobj; | |
15203 | fail: | |
15204 | return NULL; | |
d55e5bfc RD |
15205 | } |
15206 | ||
15207 | ||
554f62e9 RD |
15208 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15209 | PyObject *resultobj = 0; | |
15210 | wxFont *arg1 = (wxFont *) 0 ; | |
15211 | wxFontEncoding result; | |
15212 | void *argp1 = 0 ; | |
15213 | int res1 = 0 ; | |
15214 | PyObject *swig_obj[1] ; | |
15215 | ||
15216 | if (!args) SWIG_fail; | |
15217 | swig_obj[0] = args; | |
15218 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15219 | if (!SWIG_IsOK(res1)) { | |
15220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15221 | } | |
15222 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15223 | { | |
15224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15225 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
15226 | wxPyEndAllowThreads(__tstate); | |
15227 | if (PyErr_Occurred()) SWIG_fail; | |
15228 | } | |
15229 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15230 | return resultobj; | |
15231 | fail: | |
15232 | return NULL; | |
d55e5bfc RD |
15233 | } |
15234 | ||
15235 | ||
554f62e9 RD |
15236 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15237 | PyObject *resultobj = 0; | |
15238 | wxFont *arg1 = (wxFont *) 0 ; | |
15239 | wxNativeFontInfo *result = 0 ; | |
15240 | void *argp1 = 0 ; | |
15241 | int res1 = 0 ; | |
15242 | PyObject *swig_obj[1] ; | |
15243 | ||
15244 | if (!args) SWIG_fail; | |
15245 | swig_obj[0] = args; | |
15246 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15247 | if (!SWIG_IsOK(res1)) { | |
15248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15249 | } | |
15250 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15251 | { | |
15252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15253 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
15254 | wxPyEndAllowThreads(__tstate); | |
15255 | if (PyErr_Occurred()) SWIG_fail; | |
15256 | } | |
15257 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
15258 | return resultobj; | |
15259 | fail: | |
15260 | return NULL; | |
d55e5bfc RD |
15261 | } |
15262 | ||
15263 | ||
554f62e9 RD |
15264 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15265 | PyObject *resultobj = 0; | |
15266 | wxFont *arg1 = (wxFont *) 0 ; | |
15267 | bool result; | |
15268 | void *argp1 = 0 ; | |
15269 | int res1 = 0 ; | |
15270 | PyObject *swig_obj[1] ; | |
15271 | ||
15272 | if (!args) SWIG_fail; | |
15273 | swig_obj[0] = args; | |
15274 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15275 | if (!SWIG_IsOK(res1)) { | |
15276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15277 | } | |
15278 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15279 | { | |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
15282 | wxPyEndAllowThreads(__tstate); | |
15283 | if (PyErr_Occurred()) SWIG_fail; | |
15284 | } | |
15285 | { | |
15286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15287 | } | |
15288 | return resultobj; | |
15289 | fail: | |
15290 | return NULL; | |
d55e5bfc RD |
15291 | } |
15292 | ||
15293 | ||
554f62e9 RD |
15294 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15295 | PyObject *resultobj = 0; | |
15296 | wxFont *arg1 = (wxFont *) 0 ; | |
15297 | wxString result; | |
15298 | void *argp1 = 0 ; | |
15299 | int res1 = 0 ; | |
15300 | PyObject *swig_obj[1] ; | |
15301 | ||
15302 | if (!args) SWIG_fail; | |
15303 | swig_obj[0] = args; | |
15304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15305 | if (!SWIG_IsOK(res1)) { | |
15306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15307 | } | |
15308 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15309 | { | |
15310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15311 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
15312 | wxPyEndAllowThreads(__tstate); | |
15313 | if (PyErr_Occurred()) SWIG_fail; | |
15314 | } | |
15315 | { | |
15316 | #if wxUSE_UNICODE | |
15317 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15318 | #else | |
15319 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15320 | #endif | |
15321 | } | |
15322 | return resultobj; | |
15323 | fail: | |
15324 | return NULL; | |
d55e5bfc RD |
15325 | } |
15326 | ||
15327 | ||
554f62e9 RD |
15328 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15329 | PyObject *resultobj = 0; | |
15330 | wxFont *arg1 = (wxFont *) 0 ; | |
15331 | wxString result; | |
15332 | void *argp1 = 0 ; | |
15333 | int res1 = 0 ; | |
15334 | PyObject *swig_obj[1] ; | |
15335 | ||
15336 | if (!args) SWIG_fail; | |
15337 | swig_obj[0] = args; | |
15338 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15339 | if (!SWIG_IsOK(res1)) { | |
15340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15341 | } | |
15342 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15343 | { | |
15344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15345 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
15346 | wxPyEndAllowThreads(__tstate); | |
15347 | if (PyErr_Occurred()) SWIG_fail; | |
15348 | } | |
15349 | { | |
15350 | #if wxUSE_UNICODE | |
15351 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15352 | #else | |
15353 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15354 | #endif | |
15355 | } | |
15356 | return resultobj; | |
15357 | fail: | |
15358 | return NULL; | |
15359 | } | |
15360 | ||
15361 | ||
15362 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15363 | PyObject *resultobj = 0; | |
15364 | wxFont *arg1 = (wxFont *) 0 ; | |
15365 | int arg2 ; | |
15366 | void *argp1 = 0 ; | |
15367 | int res1 = 0 ; | |
15368 | int val2 ; | |
15369 | int ecode2 = 0 ; | |
15370 | PyObject * obj0 = 0 ; | |
15371 | PyObject * obj1 = 0 ; | |
15372 | char * kwnames[] = { | |
15373 | (char *) "self",(char *) "pointSize", NULL | |
15374 | }; | |
15375 | ||
15376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
15377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15378 | if (!SWIG_IsOK(res1)) { | |
15379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15380 | } | |
15381 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15382 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15383 | if (!SWIG_IsOK(ecode2)) { | |
15384 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
15385 | } | |
15386 | arg2 = static_cast< int >(val2); | |
15387 | { | |
15388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15389 | (arg1)->SetPointSize(arg2); | |
15390 | wxPyEndAllowThreads(__tstate); | |
15391 | if (PyErr_Occurred()) SWIG_fail; | |
15392 | } | |
15393 | resultobj = SWIG_Py_Void(); | |
15394 | return resultobj; | |
15395 | fail: | |
15396 | return NULL; | |
15397 | } | |
15398 | ||
15399 | ||
15400 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15401 | PyObject *resultobj = 0; | |
15402 | wxFont *arg1 = (wxFont *) 0 ; | |
15403 | wxSize *arg2 = 0 ; | |
15404 | void *argp1 = 0 ; | |
15405 | int res1 = 0 ; | |
15406 | wxSize temp2 ; | |
15407 | PyObject * obj0 = 0 ; | |
15408 | PyObject * obj1 = 0 ; | |
15409 | char * kwnames[] = { | |
15410 | (char *) "self",(char *) "pixelSize", NULL | |
15411 | }; | |
15412 | ||
15413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
15414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15415 | if (!SWIG_IsOK(res1)) { | |
15416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15417 | } | |
15418 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15419 | { | |
15420 | arg2 = &temp2; | |
15421 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15422 | } | |
15423 | { | |
15424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15425 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
15426 | wxPyEndAllowThreads(__tstate); | |
15427 | if (PyErr_Occurred()) SWIG_fail; | |
15428 | } | |
15429 | resultobj = SWIG_Py_Void(); | |
15430 | return resultobj; | |
15431 | fail: | |
15432 | return NULL; | |
15433 | } | |
15434 | ||
15435 | ||
15436 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15437 | PyObject *resultobj = 0; | |
15438 | wxFont *arg1 = (wxFont *) 0 ; | |
15439 | int arg2 ; | |
15440 | void *argp1 = 0 ; | |
15441 | int res1 = 0 ; | |
15442 | int val2 ; | |
15443 | int ecode2 = 0 ; | |
15444 | PyObject * obj0 = 0 ; | |
15445 | PyObject * obj1 = 0 ; | |
15446 | char * kwnames[] = { | |
15447 | (char *) "self",(char *) "family", NULL | |
15448 | }; | |
15449 | ||
15450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
15451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15452 | if (!SWIG_IsOK(res1)) { | |
15453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15454 | } | |
15455 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15456 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15457 | if (!SWIG_IsOK(ecode2)) { | |
15458 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
15459 | } | |
15460 | arg2 = static_cast< int >(val2); | |
15461 | { | |
15462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15463 | (arg1)->SetFamily(arg2); | |
15464 | wxPyEndAllowThreads(__tstate); | |
15465 | if (PyErr_Occurred()) SWIG_fail; | |
15466 | } | |
15467 | resultobj = SWIG_Py_Void(); | |
15468 | return resultobj; | |
15469 | fail: | |
15470 | return NULL; | |
15471 | } | |
15472 | ||
15473 | ||
15474 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15475 | PyObject *resultobj = 0; | |
15476 | wxFont *arg1 = (wxFont *) 0 ; | |
15477 | int arg2 ; | |
15478 | void *argp1 = 0 ; | |
15479 | int res1 = 0 ; | |
15480 | int val2 ; | |
15481 | int ecode2 = 0 ; | |
15482 | PyObject * obj0 = 0 ; | |
15483 | PyObject * obj1 = 0 ; | |
15484 | char * kwnames[] = { | |
15485 | (char *) "self",(char *) "style", NULL | |
15486 | }; | |
15487 | ||
15488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15490 | if (!SWIG_IsOK(res1)) { | |
15491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15492 | } | |
15493 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15494 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15495 | if (!SWIG_IsOK(ecode2)) { | |
15496 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
15497 | } | |
15498 | arg2 = static_cast< int >(val2); | |
15499 | { | |
15500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15501 | (arg1)->SetStyle(arg2); | |
15502 | wxPyEndAllowThreads(__tstate); | |
15503 | if (PyErr_Occurred()) SWIG_fail; | |
15504 | } | |
15505 | resultobj = SWIG_Py_Void(); | |
15506 | return resultobj; | |
15507 | fail: | |
15508 | return NULL; | |
15509 | } | |
15510 | ||
15511 | ||
15512 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15513 | PyObject *resultobj = 0; | |
15514 | wxFont *arg1 = (wxFont *) 0 ; | |
15515 | int arg2 ; | |
15516 | void *argp1 = 0 ; | |
15517 | int res1 = 0 ; | |
15518 | int val2 ; | |
15519 | int ecode2 = 0 ; | |
15520 | PyObject * obj0 = 0 ; | |
15521 | PyObject * obj1 = 0 ; | |
15522 | char * kwnames[] = { | |
15523 | (char *) "self",(char *) "weight", NULL | |
15524 | }; | |
15525 | ||
15526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
15527 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15528 | if (!SWIG_IsOK(res1)) { | |
15529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15530 | } | |
15531 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15532 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15533 | if (!SWIG_IsOK(ecode2)) { | |
15534 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
15535 | } | |
15536 | arg2 = static_cast< int >(val2); | |
15537 | { | |
15538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15539 | (arg1)->SetWeight(arg2); | |
15540 | wxPyEndAllowThreads(__tstate); | |
15541 | if (PyErr_Occurred()) SWIG_fail; | |
15542 | } | |
15543 | resultobj = SWIG_Py_Void(); | |
15544 | return resultobj; | |
15545 | fail: | |
15546 | return NULL; | |
15547 | } | |
15548 | ||
15549 | ||
15550 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15551 | PyObject *resultobj = 0; | |
15552 | wxFont *arg1 = (wxFont *) 0 ; | |
15553 | wxString *arg2 = 0 ; | |
704eda0c | 15554 | bool result; |
554f62e9 RD |
15555 | void *argp1 = 0 ; |
15556 | int res1 = 0 ; | |
15557 | bool temp2 = false ; | |
15558 | PyObject * obj0 = 0 ; | |
15559 | PyObject * obj1 = 0 ; | |
15560 | char * kwnames[] = { | |
15561 | (char *) "self",(char *) "faceName", NULL | |
15562 | }; | |
15563 | ||
15564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
15565 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15566 | if (!SWIG_IsOK(res1)) { | |
15567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15568 | } | |
15569 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15570 | { | |
15571 | arg2 = wxString_in_helper(obj1); | |
15572 | if (arg2 == NULL) SWIG_fail; | |
15573 | temp2 = true; | |
15574 | } | |
15575 | { | |
15576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15577 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
554f62e9 RD |
15578 | wxPyEndAllowThreads(__tstate); |
15579 | if (PyErr_Occurred()) SWIG_fail; | |
15580 | } | |
704eda0c RD |
15581 | { |
15582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15583 | } | |
554f62e9 RD |
15584 | { |
15585 | if (temp2) | |
15586 | delete arg2; | |
15587 | } | |
15588 | return resultobj; | |
15589 | fail: | |
15590 | { | |
15591 | if (temp2) | |
15592 | delete arg2; | |
15593 | } | |
15594 | return NULL; | |
15595 | } | |
15596 | ||
15597 | ||
15598 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15599 | PyObject *resultobj = 0; | |
15600 | wxFont *arg1 = (wxFont *) 0 ; | |
15601 | bool arg2 ; | |
15602 | void *argp1 = 0 ; | |
15603 | int res1 = 0 ; | |
15604 | bool val2 ; | |
15605 | int ecode2 = 0 ; | |
15606 | PyObject * obj0 = 0 ; | |
15607 | PyObject * obj1 = 0 ; | |
15608 | char * kwnames[] = { | |
15609 | (char *) "self",(char *) "underlined", NULL | |
15610 | }; | |
15611 | ||
15612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
15613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15614 | if (!SWIG_IsOK(res1)) { | |
15615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15616 | } | |
15617 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15618 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15619 | if (!SWIG_IsOK(ecode2)) { | |
15620 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
15621 | } | |
15622 | arg2 = static_cast< bool >(val2); | |
15623 | { | |
15624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15625 | (arg1)->SetUnderlined(arg2); | |
15626 | wxPyEndAllowThreads(__tstate); | |
15627 | if (PyErr_Occurred()) SWIG_fail; | |
15628 | } | |
15629 | resultobj = SWIG_Py_Void(); | |
15630 | return resultobj; | |
15631 | fail: | |
15632 | return NULL; | |
15633 | } | |
15634 | ||
15635 | ||
15636 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15637 | PyObject *resultobj = 0; | |
15638 | wxFont *arg1 = (wxFont *) 0 ; | |
15639 | wxFontEncoding arg2 ; | |
15640 | void *argp1 = 0 ; | |
15641 | int res1 = 0 ; | |
15642 | int val2 ; | |
15643 | int ecode2 = 0 ; | |
15644 | PyObject * obj0 = 0 ; | |
15645 | PyObject * obj1 = 0 ; | |
15646 | char * kwnames[] = { | |
15647 | (char *) "self",(char *) "encoding", NULL | |
15648 | }; | |
15649 | ||
15650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
15651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15652 | if (!SWIG_IsOK(res1)) { | |
15653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15654 | } | |
15655 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15656 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15657 | if (!SWIG_IsOK(ecode2)) { | |
15658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15659 | } | |
15660 | arg2 = static_cast< wxFontEncoding >(val2); | |
15661 | { | |
15662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15663 | (arg1)->SetEncoding(arg2); | |
15664 | wxPyEndAllowThreads(__tstate); | |
15665 | if (PyErr_Occurred()) SWIG_fail; | |
15666 | } | |
15667 | resultobj = SWIG_Py_Void(); | |
15668 | return resultobj; | |
15669 | fail: | |
15670 | return NULL; | |
15671 | } | |
15672 | ||
15673 | ||
15674 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15675 | PyObject *resultobj = 0; | |
15676 | wxFont *arg1 = (wxFont *) 0 ; | |
15677 | wxNativeFontInfo *arg2 = 0 ; | |
15678 | void *argp1 = 0 ; | |
15679 | int res1 = 0 ; | |
15680 | void *argp2 = 0 ; | |
15681 | int res2 = 0 ; | |
15682 | PyObject * obj0 = 0 ; | |
15683 | PyObject * obj1 = 0 ; | |
15684 | char * kwnames[] = { | |
15685 | (char *) "self",(char *) "info", NULL | |
15686 | }; | |
15687 | ||
15688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
15689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15690 | if (!SWIG_IsOK(res1)) { | |
15691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15692 | } | |
15693 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15694 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
15695 | if (!SWIG_IsOK(res2)) { | |
15696 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15697 | } | |
15698 | if (!argp2) { | |
15699 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15700 | } | |
15701 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
15702 | { | |
15703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15704 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
15705 | wxPyEndAllowThreads(__tstate); | |
15706 | if (PyErr_Occurred()) SWIG_fail; | |
15707 | } | |
15708 | resultobj = SWIG_Py_Void(); | |
15709 | return resultobj; | |
15710 | fail: | |
15711 | return NULL; | |
15712 | } | |
15713 | ||
15714 | ||
15715 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15716 | PyObject *resultobj = 0; | |
15717 | wxFont *arg1 = (wxFont *) 0 ; | |
15718 | wxString *arg2 = 0 ; | |
704eda0c | 15719 | bool result; |
554f62e9 RD |
15720 | void *argp1 = 0 ; |
15721 | int res1 = 0 ; | |
15722 | bool temp2 = false ; | |
15723 | PyObject * obj0 = 0 ; | |
15724 | PyObject * obj1 = 0 ; | |
15725 | char * kwnames[] = { | |
15726 | (char *) "self",(char *) "info", NULL | |
15727 | }; | |
15728 | ||
15729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15731 | if (!SWIG_IsOK(res1)) { | |
15732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15733 | } | |
15734 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15735 | { | |
15736 | arg2 = wxString_in_helper(obj1); | |
15737 | if (arg2 == NULL) SWIG_fail; | |
15738 | temp2 = true; | |
15739 | } | |
15740 | { | |
15741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15742 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
554f62e9 RD |
15743 | wxPyEndAllowThreads(__tstate); |
15744 | if (PyErr_Occurred()) SWIG_fail; | |
15745 | } | |
704eda0c RD |
15746 | { |
15747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15748 | } | |
554f62e9 RD |
15749 | { |
15750 | if (temp2) | |
15751 | delete arg2; | |
15752 | } | |
15753 | return resultobj; | |
15754 | fail: | |
15755 | { | |
15756 | if (temp2) | |
15757 | delete arg2; | |
15758 | } | |
15759 | return NULL; | |
d55e5bfc RD |
15760 | } |
15761 | ||
15762 | ||
554f62e9 RD |
15763 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15764 | PyObject *resultobj = 0; | |
15765 | wxFont *arg1 = (wxFont *) 0 ; | |
15766 | wxString *arg2 = 0 ; | |
704eda0c | 15767 | bool result; |
554f62e9 RD |
15768 | void *argp1 = 0 ; |
15769 | int res1 = 0 ; | |
15770 | bool temp2 = false ; | |
15771 | PyObject * obj0 = 0 ; | |
15772 | PyObject * obj1 = 0 ; | |
15773 | char * kwnames[] = { | |
15774 | (char *) "self",(char *) "info", NULL | |
15775 | }; | |
15776 | ||
15777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
15778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15779 | if (!SWIG_IsOK(res1)) { | |
15780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15781 | } | |
15782 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15783 | { | |
15784 | arg2 = wxString_in_helper(obj1); | |
15785 | if (arg2 == NULL) SWIG_fail; | |
15786 | temp2 = true; | |
15787 | } | |
15788 | { | |
15789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15790 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
554f62e9 RD |
15791 | wxPyEndAllowThreads(__tstate); |
15792 | if (PyErr_Occurred()) SWIG_fail; | |
15793 | } | |
704eda0c RD |
15794 | { |
15795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15796 | } | |
554f62e9 RD |
15797 | { |
15798 | if (temp2) | |
15799 | delete arg2; | |
15800 | } | |
15801 | return resultobj; | |
15802 | fail: | |
15803 | { | |
15804 | if (temp2) | |
15805 | delete arg2; | |
15806 | } | |
15807 | return NULL; | |
d55e5bfc RD |
15808 | } |
15809 | ||
15810 | ||
554f62e9 RD |
15811 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15812 | PyObject *resultobj = 0; | |
15813 | wxFont *arg1 = (wxFont *) 0 ; | |
15814 | wxString result; | |
15815 | void *argp1 = 0 ; | |
15816 | int res1 = 0 ; | |
15817 | PyObject *swig_obj[1] ; | |
15818 | ||
15819 | if (!args) SWIG_fail; | |
15820 | swig_obj[0] = args; | |
15821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15822 | if (!SWIG_IsOK(res1)) { | |
15823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15824 | } | |
15825 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15826 | { | |
15827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15828 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15829 | wxPyEndAllowThreads(__tstate); | |
15830 | if (PyErr_Occurred()) SWIG_fail; | |
15831 | } | |
15832 | { | |
15833 | #if wxUSE_UNICODE | |
15834 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15835 | #else | |
15836 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15837 | #endif | |
15838 | } | |
15839 | return resultobj; | |
15840 | fail: | |
15841 | return NULL; | |
d55e5bfc RD |
15842 | } |
15843 | ||
15844 | ||
554f62e9 RD |
15845 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15846 | PyObject *resultobj = 0; | |
15847 | wxFont *arg1 = (wxFont *) 0 ; | |
15848 | wxString result; | |
15849 | void *argp1 = 0 ; | |
15850 | int res1 = 0 ; | |
15851 | PyObject *swig_obj[1] ; | |
15852 | ||
15853 | if (!args) SWIG_fail; | |
15854 | swig_obj[0] = args; | |
15855 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15856 | if (!SWIG_IsOK(res1)) { | |
15857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15858 | } | |
15859 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15860 | { | |
15861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15862 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15863 | wxPyEndAllowThreads(__tstate); | |
15864 | if (PyErr_Occurred()) SWIG_fail; | |
15865 | } | |
15866 | { | |
15867 | #if wxUSE_UNICODE | |
15868 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15869 | #else | |
15870 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15871 | #endif | |
15872 | } | |
15873 | return resultobj; | |
15874 | fail: | |
15875 | return NULL; | |
d55e5bfc RD |
15876 | } |
15877 | ||
15878 | ||
554f62e9 RD |
15879 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15880 | PyObject *resultobj = 0; | |
15881 | wxFont *arg1 = (wxFont *) 0 ; | |
15882 | wxString result; | |
15883 | void *argp1 = 0 ; | |
15884 | int res1 = 0 ; | |
15885 | PyObject *swig_obj[1] ; | |
15886 | ||
15887 | if (!args) SWIG_fail; | |
15888 | swig_obj[0] = args; | |
15889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15890 | if (!SWIG_IsOK(res1)) { | |
15891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15892 | } | |
15893 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15894 | { | |
15895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15896 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15897 | wxPyEndAllowThreads(__tstate); | |
15898 | if (PyErr_Occurred()) SWIG_fail; | |
15899 | } | |
15900 | { | |
15901 | #if wxUSE_UNICODE | |
15902 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15903 | #else | |
15904 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15905 | #endif | |
15906 | } | |
15907 | return resultobj; | |
15908 | fail: | |
15909 | return NULL; | |
15910 | } | |
15911 | ||
15912 | ||
15913 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15914 | PyObject *resultobj = 0; | |
15915 | wxFont *arg1 = (wxFont *) 0 ; | |
15916 | bool arg2 = (bool) true ; | |
15917 | void *argp1 = 0 ; | |
15918 | int res1 = 0 ; | |
15919 | bool val2 ; | |
15920 | int ecode2 = 0 ; | |
15921 | PyObject * obj0 = 0 ; | |
15922 | PyObject * obj1 = 0 ; | |
15923 | char * kwnames[] = { | |
15924 | (char *) "self",(char *) "no", NULL | |
15925 | }; | |
15926 | ||
15927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15929 | if (!SWIG_IsOK(res1)) { | |
15930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15931 | } | |
15932 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15933 | if (obj1) { | |
15934 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15935 | if (!SWIG_IsOK(ecode2)) { | |
15936 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15937 | } | |
15938 | arg2 = static_cast< bool >(val2); | |
15939 | } | |
15940 | { | |
15941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15942 | (arg1)->SetNoAntiAliasing(arg2); | |
15943 | wxPyEndAllowThreads(__tstate); | |
15944 | if (PyErr_Occurred()) SWIG_fail; | |
15945 | } | |
15946 | resultobj = SWIG_Py_Void(); | |
15947 | return resultobj; | |
15948 | fail: | |
15949 | return NULL; | |
d55e5bfc RD |
15950 | } |
15951 | ||
15952 | ||
554f62e9 RD |
15953 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15954 | PyObject *resultobj = 0; | |
15955 | wxFont *arg1 = (wxFont *) 0 ; | |
15956 | bool result; | |
15957 | void *argp1 = 0 ; | |
15958 | int res1 = 0 ; | |
15959 | PyObject *swig_obj[1] ; | |
15960 | ||
15961 | if (!args) SWIG_fail; | |
15962 | swig_obj[0] = args; | |
15963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15964 | if (!SWIG_IsOK(res1)) { | |
15965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15966 | } | |
15967 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15968 | { | |
15969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15970 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
15971 | wxPyEndAllowThreads(__tstate); | |
15972 | if (PyErr_Occurred()) SWIG_fail; | |
15973 | } | |
15974 | { | |
15975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15976 | } | |
15977 | return resultobj; | |
15978 | fail: | |
15979 | return NULL; | |
d55e5bfc RD |
15980 | } |
15981 | ||
15982 | ||
554f62e9 RD |
15983 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15984 | PyObject *resultobj = 0; | |
15985 | wxFontEncoding result; | |
15986 | ||
15987 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
15988 | { | |
15989 | if (!wxPyCheckForApp()) SWIG_fail; | |
15990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15991 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
15992 | wxPyEndAllowThreads(__tstate); | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
15994 | } | |
15995 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15996 | return resultobj; | |
15997 | fail: | |
15998 | return NULL; | |
d55e5bfc RD |
15999 | } |
16000 | ||
16001 | ||
554f62e9 RD |
16002 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16003 | PyObject *resultobj = 0; | |
16004 | wxFontEncoding arg1 ; | |
16005 | int val1 ; | |
16006 | int ecode1 = 0 ; | |
16007 | PyObject * obj0 = 0 ; | |
16008 | char * kwnames[] = { | |
16009 | (char *) "encoding", NULL | |
16010 | }; | |
16011 | ||
16012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
16013 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16014 | if (!SWIG_IsOK(ecode1)) { | |
16015 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
16016 | } | |
16017 | arg1 = static_cast< wxFontEncoding >(val1); | |
16018 | { | |
16019 | if (!wxPyCheckForApp()) SWIG_fail; | |
16020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16021 | wxFont::SetDefaultEncoding(arg1); | |
16022 | wxPyEndAllowThreads(__tstate); | |
16023 | if (PyErr_Occurred()) SWIG_fail; | |
16024 | } | |
16025 | resultobj = SWIG_Py_Void(); | |
16026 | return resultobj; | |
16027 | fail: | |
16028 | return NULL; | |
5e483524 RD |
16029 | } |
16030 | ||
16031 | ||
554f62e9 RD |
16032 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16033 | PyObject *obj; | |
16034 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16035 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
16036 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16037 | } |
16038 | ||
554f62e9 RD |
16039 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16040 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16041 | } |
16042 | ||
554f62e9 RD |
16043 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16044 | PyObject *resultobj = 0; | |
16045 | wxPyFontEnumerator *result = 0 ; | |
16046 | ||
16047 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
16048 | { | |
16049 | if (!wxPyCheckForApp()) SWIG_fail; | |
16050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16051 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
16052 | wxPyEndAllowThreads(__tstate); | |
16053 | if (PyErr_Occurred()) SWIG_fail; | |
16054 | } | |
16055 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
16056 | return resultobj; | |
16057 | fail: | |
16058 | return NULL; | |
d55e5bfc RD |
16059 | } |
16060 | ||
16061 | ||
554f62e9 RD |
16062 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16063 | PyObject *resultobj = 0; | |
16064 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16065 | void *argp1 = 0 ; | |
16066 | int res1 = 0 ; | |
16067 | PyObject *swig_obj[1] ; | |
16068 | ||
16069 | if (!args) SWIG_fail; | |
16070 | swig_obj[0] = args; | |
16071 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
16072 | if (!SWIG_IsOK(res1)) { | |
16073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16074 | } | |
16075 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16076 | { | |
16077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16078 | delete arg1; | |
d55e5bfc | 16079 | |
554f62e9 RD |
16080 | wxPyEndAllowThreads(__tstate); |
16081 | if (PyErr_Occurred()) SWIG_fail; | |
16082 | } | |
16083 | resultobj = SWIG_Py_Void(); | |
16084 | return resultobj; | |
16085 | fail: | |
16086 | return NULL; | |
16087 | } | |
16088 | ||
16089 | ||
16090 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16091 | PyObject *resultobj = 0; | |
16092 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16093 | PyObject *arg2 = (PyObject *) 0 ; | |
16094 | PyObject *arg3 = (PyObject *) 0 ; | |
16095 | bool arg4 ; | |
16096 | void *argp1 = 0 ; | |
16097 | int res1 = 0 ; | |
16098 | bool val4 ; | |
16099 | int ecode4 = 0 ; | |
16100 | PyObject * obj0 = 0 ; | |
16101 | PyObject * obj1 = 0 ; | |
16102 | PyObject * obj2 = 0 ; | |
16103 | PyObject * obj3 = 0 ; | |
16104 | char * kwnames[] = { | |
16105 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
16106 | }; | |
16107 | ||
16108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
16110 | if (!SWIG_IsOK(res1)) { | |
16111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16112 | } | |
16113 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16114 | arg2 = obj1; | |
16115 | arg3 = obj2; | |
16116 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
16117 | if (!SWIG_IsOK(ecode4)) { | |
16118 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'"); | |
16119 | } | |
16120 | arg4 = static_cast< bool >(val4); | |
16121 | { | |
16122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16123 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
16124 | wxPyEndAllowThreads(__tstate); | |
16125 | if (PyErr_Occurred()) SWIG_fail; | |
16126 | } | |
16127 | resultobj = SWIG_Py_Void(); | |
16128 | return resultobj; | |
16129 | fail: | |
16130 | return NULL; | |
16131 | } | |
16132 | ||
16133 | ||
16134 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16135 | PyObject *resultobj = 0; | |
16136 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16137 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
16138 | bool arg3 = (bool) false ; | |
16139 | bool result; | |
16140 | void *argp1 = 0 ; | |
16141 | int res1 = 0 ; | |
16142 | int val2 ; | |
16143 | int ecode2 = 0 ; | |
16144 | bool val3 ; | |
16145 | int ecode3 = 0 ; | |
16146 | PyObject * obj0 = 0 ; | |
16147 | PyObject * obj1 = 0 ; | |
16148 | PyObject * obj2 = 0 ; | |
16149 | char * kwnames[] = { | |
16150 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
16151 | }; | |
16152 | ||
16153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
16155 | if (!SWIG_IsOK(res1)) { | |
16156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16157 | } | |
16158 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16159 | if (obj1) { | |
16160 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16161 | if (!SWIG_IsOK(ecode2)) { | |
16162 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
16163 | } | |
16164 | arg2 = static_cast< wxFontEncoding >(val2); | |
16165 | } | |
16166 | if (obj2) { | |
16167 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16168 | if (!SWIG_IsOK(ecode3)) { | |
16169 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
16170 | } | |
16171 | arg3 = static_cast< bool >(val3); | |
16172 | } | |
16173 | { | |
16174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16175 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
16176 | wxPyEndAllowThreads(__tstate); | |
16177 | if (PyErr_Occurred()) SWIG_fail; | |
16178 | } | |
16179 | { | |
16180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16181 | } | |
16182 | return resultobj; | |
16183 | fail: | |
16184 | return NULL; | |
16185 | } | |
16186 | ||
16187 | ||
16188 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16189 | PyObject *resultobj = 0; | |
16190 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16191 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16192 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16193 | bool result; | |
16194 | void *argp1 = 0 ; | |
16195 | int res1 = 0 ; | |
16196 | bool temp2 = false ; | |
16197 | PyObject * obj0 = 0 ; | |
16198 | PyObject * obj1 = 0 ; | |
16199 | char * kwnames[] = { | |
16200 | (char *) "self",(char *) "facename", NULL | |
16201 | }; | |
16202 | ||
16203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
16204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
16205 | if (!SWIG_IsOK(res1)) { | |
16206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16207 | } | |
16208 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16209 | if (obj1) { | |
093d3ff1 | 16210 | { |
554f62e9 RD |
16211 | arg2 = wxString_in_helper(obj1); |
16212 | if (arg2 == NULL) SWIG_fail; | |
16213 | temp2 = true; | |
093d3ff1 | 16214 | } |
554f62e9 RD |
16215 | } |
16216 | { | |
16217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16218 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
16219 | wxPyEndAllowThreads(__tstate); | |
16220 | if (PyErr_Occurred()) SWIG_fail; | |
16221 | } | |
16222 | { | |
16223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16224 | } | |
16225 | { | |
16226 | if (temp2) | |
16227 | delete arg2; | |
16228 | } | |
16229 | return resultobj; | |
16230 | fail: | |
16231 | { | |
16232 | if (temp2) | |
16233 | delete arg2; | |
16234 | } | |
16235 | return NULL; | |
d55e5bfc RD |
16236 | } |
16237 | ||
16238 | ||
554f62e9 RD |
16239 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16240 | PyObject *resultobj = 0; | |
554f62e9 | 16241 | PyObject *result = 0 ; |
554f62e9 | 16242 | |
704eda0c | 16243 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
554f62e9 RD |
16244 | { |
16245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 16246 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
554f62e9 RD |
16247 | wxPyEndAllowThreads(__tstate); |
16248 | if (PyErr_Occurred()) SWIG_fail; | |
16249 | } | |
16250 | resultobj = result; | |
16251 | return resultobj; | |
16252 | fail: | |
16253 | return NULL; | |
d55e5bfc RD |
16254 | } |
16255 | ||
16256 | ||
554f62e9 RD |
16257 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16258 | PyObject *resultobj = 0; | |
554f62e9 | 16259 | PyObject *result = 0 ; |
554f62e9 | 16260 | |
704eda0c | 16261 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
554f62e9 RD |
16262 | { |
16263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 16264 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
554f62e9 RD |
16265 | wxPyEndAllowThreads(__tstate); |
16266 | if (PyErr_Occurred()) SWIG_fail; | |
16267 | } | |
16268 | resultobj = result; | |
16269 | return resultobj; | |
16270 | fail: | |
16271 | return NULL; | |
d55e5bfc RD |
16272 | } |
16273 | ||
16274 | ||
704eda0c RD |
16275 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16276 | PyObject *resultobj = 0; | |
16277 | wxString *arg1 = 0 ; | |
16278 | bool result; | |
16279 | bool temp1 = false ; | |
16280 | PyObject * obj0 = 0 ; | |
16281 | char * kwnames[] = { | |
16282 | (char *) "str", NULL | |
16283 | }; | |
16284 | ||
16285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
16286 | { | |
16287 | arg1 = wxString_in_helper(obj0); | |
16288 | if (arg1 == NULL) SWIG_fail; | |
16289 | temp1 = true; | |
16290 | } | |
16291 | { | |
16292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16293 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
16294 | wxPyEndAllowThreads(__tstate); | |
16295 | if (PyErr_Occurred()) SWIG_fail; | |
16296 | } | |
16297 | { | |
16298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16299 | } | |
16300 | { | |
16301 | if (temp1) | |
16302 | delete arg1; | |
16303 | } | |
16304 | return resultobj; | |
16305 | fail: | |
16306 | { | |
16307 | if (temp1) | |
16308 | delete arg1; | |
16309 | } | |
16310 | return NULL; | |
16311 | } | |
16312 | ||
16313 | ||
554f62e9 RD |
16314 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16315 | PyObject *obj; | |
16316 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16317 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
16318 | return SWIG_Py_Void(); | |
5e483524 RD |
16319 | } |
16320 | ||
554f62e9 RD |
16321 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16322 | return SWIG_Python_InitShadowInstance(args); | |
16323 | } | |
5e483524 | 16324 | |
554f62e9 RD |
16325 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16326 | PyObject *resultobj = 0; | |
16327 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16328 | int arg2 ; | |
16329 | void *argp1 = 0 ; | |
16330 | int res1 = 0 ; | |
16331 | int val2 ; | |
16332 | int ecode2 = 0 ; | |
16333 | PyObject *swig_obj[2] ; | |
16334 | ||
16335 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
16336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16337 | if (!SWIG_IsOK(res1)) { | |
16338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16339 | } | |
16340 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16341 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
16342 | if (!SWIG_IsOK(ecode2)) { | |
16343 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
16344 | } | |
16345 | arg2 = static_cast< int >(val2); | |
16346 | if (arg1) (arg1)->Language = arg2; | |
16347 | ||
16348 | resultobj = SWIG_Py_Void(); | |
16349 | return resultobj; | |
16350 | fail: | |
16351 | return NULL; | |
d55e5bfc RD |
16352 | } |
16353 | ||
16354 | ||
554f62e9 RD |
16355 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16356 | PyObject *resultobj = 0; | |
16357 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16358 | int result; | |
16359 | void *argp1 = 0 ; | |
16360 | int res1 = 0 ; | |
16361 | PyObject *swig_obj[1] ; | |
16362 | ||
16363 | if (!args) SWIG_fail; | |
16364 | swig_obj[0] = args; | |
16365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16366 | if (!SWIG_IsOK(res1)) { | |
16367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16368 | } | |
16369 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16370 | result = (int) ((arg1)->Language); | |
16371 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16372 | return resultobj; | |
16373 | fail: | |
16374 | return NULL; | |
16375 | } | |
16376 | ||
16377 | ||
16378 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16379 | PyObject *resultobj = 0; | |
16380 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16381 | wxString *arg2 = (wxString *) 0 ; | |
16382 | void *argp1 = 0 ; | |
16383 | int res1 = 0 ; | |
16384 | bool temp2 = false ; | |
16385 | PyObject *swig_obj[2] ; | |
16386 | ||
16387 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
16388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16389 | if (!SWIG_IsOK(res1)) { | |
16390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16391 | } | |
16392 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16393 | { | |
16394 | arg2 = wxString_in_helper(swig_obj[1]); | |
16395 | if (arg2 == NULL) SWIG_fail; | |
16396 | temp2 = true; | |
16397 | } | |
16398 | if (arg1) (arg1)->CanonicalName = *arg2; | |
16399 | ||
16400 | resultobj = SWIG_Py_Void(); | |
16401 | { | |
16402 | if (temp2) | |
16403 | delete arg2; | |
16404 | } | |
16405 | return resultobj; | |
16406 | fail: | |
16407 | { | |
16408 | if (temp2) | |
16409 | delete arg2; | |
16410 | } | |
16411 | return NULL; | |
d55e5bfc RD |
16412 | } |
16413 | ||
16414 | ||
554f62e9 RD |
16415 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16416 | PyObject *resultobj = 0; | |
16417 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16418 | wxString *result = 0 ; | |
16419 | void *argp1 = 0 ; | |
16420 | int res1 = 0 ; | |
16421 | PyObject *swig_obj[1] ; | |
16422 | ||
16423 | if (!args) SWIG_fail; | |
16424 | swig_obj[0] = args; | |
16425 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16426 | if (!SWIG_IsOK(res1)) { | |
16427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16428 | } | |
16429 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16430 | result = (wxString *)& ((arg1)->CanonicalName); | |
16431 | { | |
16432 | #if wxUSE_UNICODE | |
16433 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16434 | #else | |
16435 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16436 | #endif | |
16437 | } | |
16438 | return resultobj; | |
16439 | fail: | |
16440 | return NULL; | |
d55e5bfc RD |
16441 | } |
16442 | ||
16443 | ||
554f62e9 RD |
16444 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16445 | PyObject *resultobj = 0; | |
16446 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16447 | wxString *arg2 = (wxString *) 0 ; | |
16448 | void *argp1 = 0 ; | |
16449 | int res1 = 0 ; | |
16450 | bool temp2 = false ; | |
16451 | PyObject *swig_obj[2] ; | |
16452 | ||
16453 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
16454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16455 | if (!SWIG_IsOK(res1)) { | |
16456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16457 | } | |
16458 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16459 | { | |
16460 | arg2 = wxString_in_helper(swig_obj[1]); | |
16461 | if (arg2 == NULL) SWIG_fail; | |
16462 | temp2 = true; | |
16463 | } | |
16464 | if (arg1) (arg1)->Description = *arg2; | |
16465 | ||
16466 | resultobj = SWIG_Py_Void(); | |
16467 | { | |
16468 | if (temp2) | |
16469 | delete arg2; | |
16470 | } | |
16471 | return resultobj; | |
16472 | fail: | |
16473 | { | |
16474 | if (temp2) | |
16475 | delete arg2; | |
16476 | } | |
16477 | return NULL; | |
d55e5bfc RD |
16478 | } |
16479 | ||
16480 | ||
554f62e9 RD |
16481 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16482 | PyObject *resultobj = 0; | |
16483 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16484 | wxString *result = 0 ; | |
16485 | void *argp1 = 0 ; | |
16486 | int res1 = 0 ; | |
16487 | PyObject *swig_obj[1] ; | |
16488 | ||
16489 | if (!args) SWIG_fail; | |
16490 | swig_obj[0] = args; | |
16491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16492 | if (!SWIG_IsOK(res1)) { | |
16493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16494 | } | |
16495 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16496 | result = (wxString *)& ((arg1)->Description); | |
16497 | { | |
16498 | #if wxUSE_UNICODE | |
16499 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16500 | #else | |
16501 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16502 | #endif | |
16503 | } | |
16504 | return resultobj; | |
16505 | fail: | |
16506 | return NULL; | |
16507 | } | |
16508 | ||
16509 | ||
16510 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16511 | PyObject *obj; | |
16512 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16513 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
16514 | return SWIG_Py_Void(); | |
16515 | } | |
16516 | ||
16517 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16518 | PyObject *resultobj = 0; | |
16519 | int arg1 = (int) -1 ; | |
16520 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16521 | wxLocale *result = 0 ; | |
16522 | int val1 ; | |
16523 | int ecode1 = 0 ; | |
16524 | int val2 ; | |
16525 | int ecode2 = 0 ; | |
16526 | PyObject * obj0 = 0 ; | |
16527 | PyObject * obj1 = 0 ; | |
16528 | char * kwnames[] = { | |
16529 | (char *) "language",(char *) "flags", NULL | |
16530 | }; | |
16531 | ||
16532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16533 | if (obj0) { | |
16534 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16535 | if (!SWIG_IsOK(ecode1)) { | |
16536 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
16537 | } | |
16538 | arg1 = static_cast< int >(val1); | |
16539 | } | |
16540 | if (obj1) { | |
16541 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16542 | if (!SWIG_IsOK(ecode2)) { | |
16543 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
16544 | } | |
16545 | arg2 = static_cast< int >(val2); | |
16546 | } | |
16547 | { | |
16548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16549 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
16550 | wxPyEndAllowThreads(__tstate); | |
16551 | if (PyErr_Occurred()) SWIG_fail; | |
16552 | } | |
16553 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
16554 | return resultobj; | |
16555 | fail: | |
16556 | return NULL; | |
d55e5bfc RD |
16557 | } |
16558 | ||
16559 | ||
554f62e9 RD |
16560 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16561 | PyObject *resultobj = 0; | |
16562 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16563 | void *argp1 = 0 ; | |
16564 | int res1 = 0 ; | |
16565 | PyObject *swig_obj[1] ; | |
16566 | ||
16567 | if (!args) SWIG_fail; | |
16568 | swig_obj[0] = args; | |
16569 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
16570 | if (!SWIG_IsOK(res1)) { | |
16571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16572 | } | |
16573 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16574 | { | |
16575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16576 | delete arg1; | |
d55e5bfc | 16577 | |
554f62e9 RD |
16578 | wxPyEndAllowThreads(__tstate); |
16579 | if (PyErr_Occurred()) SWIG_fail; | |
16580 | } | |
16581 | resultobj = SWIG_Py_Void(); | |
16582 | return resultobj; | |
16583 | fail: | |
16584 | return NULL; | |
16585 | } | |
16586 | ||
16587 | ||
16588 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16589 | PyObject *resultobj = 0; | |
16590 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16591 | wxString *arg2 = 0 ; | |
16592 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16593 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16594 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16595 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16596 | bool arg5 = (bool) true ; | |
16597 | bool arg6 = (bool) false ; | |
16598 | bool result; | |
16599 | void *argp1 = 0 ; | |
16600 | int res1 = 0 ; | |
16601 | bool temp2 = false ; | |
16602 | bool temp3 = false ; | |
16603 | bool temp4 = false ; | |
16604 | bool val5 ; | |
16605 | int ecode5 = 0 ; | |
16606 | bool val6 ; | |
16607 | int ecode6 = 0 ; | |
16608 | PyObject * obj0 = 0 ; | |
16609 | PyObject * obj1 = 0 ; | |
16610 | PyObject * obj2 = 0 ; | |
16611 | PyObject * obj3 = 0 ; | |
16612 | PyObject * obj4 = 0 ; | |
16613 | PyObject * obj5 = 0 ; | |
16614 | char * kwnames[] = { | |
16615 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
16616 | }; | |
16617 | ||
16618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
16619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16620 | if (!SWIG_IsOK(res1)) { | |
16621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16622 | } | |
16623 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16624 | { | |
16625 | arg2 = wxString_in_helper(obj1); | |
16626 | if (arg2 == NULL) SWIG_fail; | |
16627 | temp2 = true; | |
16628 | } | |
16629 | if (obj2) { | |
093d3ff1 | 16630 | { |
554f62e9 RD |
16631 | arg3 = wxString_in_helper(obj2); |
16632 | if (arg3 == NULL) SWIG_fail; | |
16633 | temp3 = true; | |
093d3ff1 | 16634 | } |
554f62e9 RD |
16635 | } |
16636 | if (obj3) { | |
d55e5bfc | 16637 | { |
554f62e9 RD |
16638 | arg4 = wxString_in_helper(obj3); |
16639 | if (arg4 == NULL) SWIG_fail; | |
16640 | temp4 = true; | |
d55e5bfc | 16641 | } |
554f62e9 RD |
16642 | } |
16643 | if (obj4) { | |
16644 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16645 | if (!SWIG_IsOK(ecode5)) { | |
16646 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
16647 | } | |
16648 | arg5 = static_cast< bool >(val5); | |
16649 | } | |
16650 | if (obj5) { | |
16651 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
16652 | if (!SWIG_IsOK(ecode6)) { | |
16653 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
16654 | } | |
16655 | arg6 = static_cast< bool >(val6); | |
16656 | } | |
16657 | { | |
16658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16659 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
16660 | wxPyEndAllowThreads(__tstate); | |
16661 | if (PyErr_Occurred()) SWIG_fail; | |
16662 | } | |
16663 | { | |
16664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16665 | } | |
16666 | { | |
16667 | if (temp2) | |
16668 | delete arg2; | |
16669 | } | |
16670 | { | |
16671 | if (temp3) | |
16672 | delete arg3; | |
16673 | } | |
16674 | { | |
16675 | if (temp4) | |
16676 | delete arg4; | |
16677 | } | |
16678 | return resultobj; | |
16679 | fail: | |
16680 | { | |
16681 | if (temp2) | |
16682 | delete arg2; | |
16683 | } | |
16684 | { | |
16685 | if (temp3) | |
16686 | delete arg3; | |
16687 | } | |
16688 | { | |
16689 | if (temp4) | |
16690 | delete arg4; | |
16691 | } | |
16692 | return NULL; | |
16693 | } | |
16694 | ||
16695 | ||
16696 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16697 | PyObject *resultobj = 0; | |
16698 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16699 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
16700 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16701 | bool result; | |
16702 | void *argp1 = 0 ; | |
16703 | int res1 = 0 ; | |
16704 | int val2 ; | |
16705 | int ecode2 = 0 ; | |
16706 | int val3 ; | |
16707 | int ecode3 = 0 ; | |
16708 | PyObject * obj0 = 0 ; | |
16709 | PyObject * obj1 = 0 ; | |
16710 | PyObject * obj2 = 0 ; | |
16711 | char * kwnames[] = { | |
16712 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
16713 | }; | |
16714 | ||
16715 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16716 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16717 | if (!SWIG_IsOK(res1)) { | |
16718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16719 | } | |
16720 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16721 | if (obj1) { | |
16722 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16723 | if (!SWIG_IsOK(ecode2)) { | |
16724 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
16725 | } | |
16726 | arg2 = static_cast< int >(val2); | |
16727 | } | |
16728 | if (obj2) { | |
16729 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16730 | if (!SWIG_IsOK(ecode3)) { | |
16731 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
16732 | } | |
16733 | arg3 = static_cast< int >(val3); | |
16734 | } | |
16735 | { | |
16736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16737 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
16738 | wxPyEndAllowThreads(__tstate); | |
16739 | if (PyErr_Occurred()) SWIG_fail; | |
16740 | } | |
16741 | { | |
16742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16743 | } | |
16744 | return resultobj; | |
16745 | fail: | |
16746 | return NULL; | |
d55e5bfc RD |
16747 | } |
16748 | ||
16749 | ||
554f62e9 RD |
16750 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16751 | PyObject *resultobj = 0; | |
16752 | int result; | |
16753 | ||
16754 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
16755 | { | |
16756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16757 | result = (int)wxLocale::GetSystemLanguage(); | |
16758 | wxPyEndAllowThreads(__tstate); | |
16759 | if (PyErr_Occurred()) SWIG_fail; | |
16760 | } | |
16761 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16762 | return resultobj; | |
16763 | fail: | |
16764 | return NULL; | |
d55e5bfc RD |
16765 | } |
16766 | ||
16767 | ||
554f62e9 RD |
16768 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16769 | PyObject *resultobj = 0; | |
16770 | wxFontEncoding result; | |
16771 | ||
16772 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
16773 | { | |
16774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16775 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
16779 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16780 | return resultobj; | |
16781 | fail: | |
16782 | return NULL; | |
d55e5bfc RD |
16783 | } |
16784 | ||
16785 | ||
554f62e9 RD |
16786 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16787 | PyObject *resultobj = 0; | |
16788 | wxString result; | |
16789 | ||
16790 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
16791 | { | |
16792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16793 | result = wxLocale::GetSystemEncodingName(); | |
16794 | wxPyEndAllowThreads(__tstate); | |
16795 | if (PyErr_Occurred()) SWIG_fail; | |
16796 | } | |
16797 | { | |
16798 | #if wxUSE_UNICODE | |
16799 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16800 | #else | |
16801 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16802 | #endif | |
16803 | } | |
16804 | return resultobj; | |
16805 | fail: | |
16806 | return NULL; | |
d55e5bfc RD |
16807 | } |
16808 | ||
16809 | ||
554f62e9 RD |
16810 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16811 | PyObject *resultobj = 0; | |
16812 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16813 | bool result; | |
16814 | void *argp1 = 0 ; | |
16815 | int res1 = 0 ; | |
16816 | PyObject *swig_obj[1] ; | |
16817 | ||
16818 | if (!args) SWIG_fail; | |
16819 | swig_obj[0] = args; | |
16820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16821 | if (!SWIG_IsOK(res1)) { | |
16822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16823 | } | |
16824 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16825 | { | |
16826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16827 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16828 | wxPyEndAllowThreads(__tstate); | |
16829 | if (PyErr_Occurred()) SWIG_fail; | |
16830 | } | |
16831 | { | |
16832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16833 | } | |
16834 | return resultobj; | |
16835 | fail: | |
16836 | return NULL; | |
d55e5bfc RD |
16837 | } |
16838 | ||
16839 | ||
554f62e9 RD |
16840 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16841 | PyObject *resultobj = 0; | |
16842 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16843 | wxString result; | |
16844 | void *argp1 = 0 ; | |
16845 | int res1 = 0 ; | |
16846 | PyObject *swig_obj[1] ; | |
16847 | ||
16848 | if (!args) SWIG_fail; | |
16849 | swig_obj[0] = args; | |
16850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16851 | if (!SWIG_IsOK(res1)) { | |
16852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16853 | } | |
16854 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16855 | { | |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16858 | wxPyEndAllowThreads(__tstate); | |
16859 | if (PyErr_Occurred()) SWIG_fail; | |
16860 | } | |
16861 | { | |
16862 | #if wxUSE_UNICODE | |
16863 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16864 | #else | |
16865 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16866 | #endif | |
16867 | } | |
16868 | return resultobj; | |
16869 | fail: | |
16870 | return NULL; | |
d55e5bfc RD |
16871 | } |
16872 | ||
16873 | ||
554f62e9 RD |
16874 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16875 | PyObject *resultobj = 0; | |
16876 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16877 | int result; | |
16878 | void *argp1 = 0 ; | |
16879 | int res1 = 0 ; | |
16880 | PyObject *swig_obj[1] ; | |
16881 | ||
16882 | if (!args) SWIG_fail; | |
16883 | swig_obj[0] = args; | |
16884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16885 | if (!SWIG_IsOK(res1)) { | |
16886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16887 | } | |
16888 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16889 | { | |
16890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16891 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16892 | wxPyEndAllowThreads(__tstate); | |
16893 | if (PyErr_Occurred()) SWIG_fail; | |
16894 | } | |
16895 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16896 | return resultobj; | |
16897 | fail: | |
16898 | return NULL; | |
d55e5bfc RD |
16899 | } |
16900 | ||
16901 | ||
554f62e9 RD |
16902 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16903 | PyObject *resultobj = 0; | |
16904 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16905 | wxString result; | |
16906 | void *argp1 = 0 ; | |
16907 | int res1 = 0 ; | |
16908 | PyObject *swig_obj[1] ; | |
16909 | ||
16910 | if (!args) SWIG_fail; | |
16911 | swig_obj[0] = args; | |
16912 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16913 | if (!SWIG_IsOK(res1)) { | |
16914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16915 | } | |
16916 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16917 | { | |
16918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16919 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16920 | wxPyEndAllowThreads(__tstate); | |
16921 | if (PyErr_Occurred()) SWIG_fail; | |
16922 | } | |
16923 | { | |
16924 | #if wxUSE_UNICODE | |
16925 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16926 | #else | |
16927 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16928 | #endif | |
16929 | } | |
16930 | return resultobj; | |
16931 | fail: | |
16932 | return NULL; | |
d55e5bfc RD |
16933 | } |
16934 | ||
16935 | ||
554f62e9 RD |
16936 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16937 | PyObject *resultobj = 0; | |
16938 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16939 | wxString result; | |
16940 | void *argp1 = 0 ; | |
16941 | int res1 = 0 ; | |
16942 | PyObject *swig_obj[1] ; | |
16943 | ||
16944 | if (!args) SWIG_fail; | |
16945 | swig_obj[0] = args; | |
16946 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16947 | if (!SWIG_IsOK(res1)) { | |
16948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16949 | } | |
16950 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16951 | { | |
16952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16953 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16954 | wxPyEndAllowThreads(__tstate); | |
16955 | if (PyErr_Occurred()) SWIG_fail; | |
16956 | } | |
16957 | { | |
093d3ff1 | 16958 | #if wxUSE_UNICODE |
554f62e9 | 16959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16960 | #else |
554f62e9 | 16961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16962 | #endif |
554f62e9 RD |
16963 | } |
16964 | return resultobj; | |
16965 | fail: | |
16966 | return NULL; | |
d55e5bfc RD |
16967 | } |
16968 | ||
16969 | ||
554f62e9 RD |
16970 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16971 | PyObject *resultobj = 0; | |
16972 | wxString *arg1 = 0 ; | |
16973 | bool temp1 = false ; | |
16974 | PyObject * obj0 = 0 ; | |
16975 | char * kwnames[] = { | |
16976 | (char *) "prefix", NULL | |
16977 | }; | |
16978 | ||
16979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
16980 | { | |
16981 | arg1 = wxString_in_helper(obj0); | |
16982 | if (arg1 == NULL) SWIG_fail; | |
16983 | temp1 = true; | |
16984 | } | |
16985 | { | |
16986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16987 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
16988 | wxPyEndAllowThreads(__tstate); | |
16989 | if (PyErr_Occurred()) SWIG_fail; | |
16990 | } | |
16991 | resultobj = SWIG_Py_Void(); | |
16992 | { | |
16993 | if (temp1) | |
16994 | delete arg1; | |
16995 | } | |
16996 | return resultobj; | |
16997 | fail: | |
16998 | { | |
16999 | if (temp1) | |
17000 | delete arg1; | |
17001 | } | |
17002 | return NULL; | |
17003 | } | |
17004 | ||
17005 | ||
17006 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17007 | PyObject *resultobj = 0; | |
17008 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17009 | wxString *arg2 = 0 ; | |
17010 | bool result; | |
17011 | void *argp1 = 0 ; | |
17012 | int res1 = 0 ; | |
17013 | bool temp2 = false ; | |
17014 | PyObject * obj0 = 0 ; | |
17015 | PyObject * obj1 = 0 ; | |
17016 | char * kwnames[] = { | |
17017 | (char *) "self",(char *) "szDomain", NULL | |
17018 | }; | |
17019 | ||
17020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
17021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17022 | if (!SWIG_IsOK(res1)) { | |
17023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
17024 | } | |
17025 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17026 | { | |
17027 | arg2 = wxString_in_helper(obj1); | |
17028 | if (arg2 == NULL) SWIG_fail; | |
17029 | temp2 = true; | |
17030 | } | |
17031 | { | |
17032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17033 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
17034 | wxPyEndAllowThreads(__tstate); | |
17035 | if (PyErr_Occurred()) SWIG_fail; | |
17036 | } | |
17037 | { | |
17038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17039 | } | |
17040 | { | |
17041 | if (temp2) | |
17042 | delete arg2; | |
17043 | } | |
17044 | return resultobj; | |
17045 | fail: | |
17046 | { | |
17047 | if (temp2) | |
17048 | delete arg2; | |
17049 | } | |
17050 | return NULL; | |
17051 | } | |
17052 | ||
17053 | ||
33d6fd3b RD |
17054 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17055 | PyObject *resultobj = 0; | |
17056 | int arg1 ; | |
17057 | bool result; | |
17058 | int val1 ; | |
17059 | int ecode1 = 0 ; | |
17060 | PyObject * obj0 = 0 ; | |
17061 | char * kwnames[] = { | |
17062 | (char *) "lang", NULL | |
17063 | }; | |
17064 | ||
17065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
17066 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17067 | if (!SWIG_IsOK(ecode1)) { | |
17068 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
17069 | } | |
17070 | arg1 = static_cast< int >(val1); | |
17071 | { | |
17072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17073 | result = (bool)wxLocale::IsAvailable(arg1); | |
17074 | wxPyEndAllowThreads(__tstate); | |
17075 | if (PyErr_Occurred()) SWIG_fail; | |
17076 | } | |
17077 | { | |
17078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17079 | } | |
17080 | return resultobj; | |
17081 | fail: | |
17082 | return NULL; | |
17083 | } | |
17084 | ||
17085 | ||
554f62e9 RD |
17086 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17087 | PyObject *resultobj = 0; | |
17088 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17089 | wxString *arg2 = 0 ; | |
17090 | bool result; | |
17091 | void *argp1 = 0 ; | |
17092 | int res1 = 0 ; | |
17093 | bool temp2 = false ; | |
17094 | PyObject * obj0 = 0 ; | |
17095 | PyObject * obj1 = 0 ; | |
17096 | char * kwnames[] = { | |
17097 | (char *) "self",(char *) "szDomain", NULL | |
17098 | }; | |
17099 | ||
17100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
17101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17102 | if (!SWIG_IsOK(res1)) { | |
17103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17104 | } | |
17105 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17106 | { | |
17107 | arg2 = wxString_in_helper(obj1); | |
17108 | if (arg2 == NULL) SWIG_fail; | |
17109 | temp2 = true; | |
17110 | } | |
17111 | { | |
17112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17113 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
17114 | wxPyEndAllowThreads(__tstate); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
17117 | { | |
17118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17119 | } | |
17120 | { | |
17121 | if (temp2) | |
17122 | delete arg2; | |
17123 | } | |
17124 | return resultobj; | |
17125 | fail: | |
17126 | { | |
17127 | if (temp2) | |
17128 | delete arg2; | |
17129 | } | |
17130 | return NULL; | |
d55e5bfc RD |
17131 | } |
17132 | ||
17133 | ||
554f62e9 RD |
17134 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17135 | PyObject *resultobj = 0; | |
17136 | int arg1 ; | |
17137 | wxLanguageInfo *result = 0 ; | |
17138 | int val1 ; | |
17139 | int ecode1 = 0 ; | |
17140 | PyObject * obj0 = 0 ; | |
17141 | char * kwnames[] = { | |
17142 | (char *) "lang", NULL | |
17143 | }; | |
17144 | ||
17145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
17146 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17147 | if (!SWIG_IsOK(ecode1)) { | |
17148 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
17149 | } | |
17150 | arg1 = static_cast< int >(val1); | |
17151 | { | |
17152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17153 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
17154 | wxPyEndAllowThreads(__tstate); | |
17155 | if (PyErr_Occurred()) SWIG_fail; | |
17156 | } | |
17157 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
17158 | return resultobj; | |
17159 | fail: | |
17160 | return NULL; | |
17161 | } | |
17162 | ||
17163 | ||
17164 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17165 | PyObject *resultobj = 0; | |
17166 | int arg1 ; | |
17167 | wxString result; | |
17168 | int val1 ; | |
17169 | int ecode1 = 0 ; | |
17170 | PyObject * obj0 = 0 ; | |
17171 | char * kwnames[] = { | |
17172 | (char *) "lang", NULL | |
17173 | }; | |
17174 | ||
17175 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
17176 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17177 | if (!SWIG_IsOK(ecode1)) { | |
17178 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
17179 | } | |
17180 | arg1 = static_cast< int >(val1); | |
17181 | { | |
17182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17183 | result = wxLocale::GetLanguageName(arg1); | |
17184 | wxPyEndAllowThreads(__tstate); | |
17185 | if (PyErr_Occurred()) SWIG_fail; | |
17186 | } | |
17187 | { | |
17188 | #if wxUSE_UNICODE | |
17189 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17190 | #else | |
17191 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17192 | #endif | |
17193 | } | |
17194 | return resultobj; | |
17195 | fail: | |
17196 | return NULL; | |
093d3ff1 RD |
17197 | } |
17198 | ||
17199 | ||
554f62e9 RD |
17200 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17201 | PyObject *resultobj = 0; | |
17202 | wxString *arg1 = 0 ; | |
17203 | wxLanguageInfo *result = 0 ; | |
17204 | bool temp1 = false ; | |
17205 | PyObject * obj0 = 0 ; | |
17206 | char * kwnames[] = { | |
17207 | (char *) "locale", NULL | |
17208 | }; | |
17209 | ||
17210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
17211 | { | |
17212 | arg1 = wxString_in_helper(obj0); | |
17213 | if (arg1 == NULL) SWIG_fail; | |
17214 | temp1 = true; | |
17215 | } | |
17216 | { | |
17217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
17218 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
17219 | wxPyEndAllowThreads(__tstate); | |
17220 | if (PyErr_Occurred()) SWIG_fail; | |
17221 | } | |
17222 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
17223 | { | |
17224 | if (temp1) | |
17225 | delete arg1; | |
17226 | } | |
17227 | return resultobj; | |
17228 | fail: | |
17229 | { | |
17230 | if (temp1) | |
17231 | delete arg1; | |
17232 | } | |
17233 | return NULL; | |
17234 | } | |
17235 | ||
17236 | ||
17237 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17238 | PyObject *resultobj = 0; | |
17239 | wxLanguageInfo *arg1 = 0 ; | |
17240 | void *argp1 = 0 ; | |
17241 | int res1 = 0 ; | |
17242 | PyObject * obj0 = 0 ; | |
17243 | char * kwnames[] = { | |
17244 | (char *) "info", NULL | |
17245 | }; | |
17246 | ||
17247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
17248 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
17249 | if (!SWIG_IsOK(res1)) { | |
17250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
17251 | } | |
17252 | if (!argp1) { | |
17253 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
17254 | } | |
17255 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
17256 | { | |
17257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17258 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
17259 | wxPyEndAllowThreads(__tstate); | |
17260 | if (PyErr_Occurred()) SWIG_fail; | |
17261 | } | |
17262 | resultobj = SWIG_Py_Void(); | |
17263 | return resultobj; | |
17264 | fail: | |
17265 | return NULL; | |
17266 | } | |
17267 | ||
17268 | ||
17269 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17270 | PyObject *resultobj = 0; | |
17271 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17272 | wxString *arg2 = 0 ; | |
17273 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17274 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17275 | wxString result; | |
17276 | void *argp1 = 0 ; | |
17277 | int res1 = 0 ; | |
17278 | bool temp2 = false ; | |
17279 | bool temp3 = false ; | |
17280 | PyObject * obj0 = 0 ; | |
17281 | PyObject * obj1 = 0 ; | |
17282 | PyObject * obj2 = 0 ; | |
17283 | char * kwnames[] = { | |
17284 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
17285 | }; | |
17286 | ||
17287 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17288 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17289 | if (!SWIG_IsOK(res1)) { | |
17290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17291 | } | |
17292 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17293 | { | |
17294 | arg2 = wxString_in_helper(obj1); | |
17295 | if (arg2 == NULL) SWIG_fail; | |
17296 | temp2 = true; | |
17297 | } | |
17298 | if (obj2) { | |
17299 | { | |
17300 | arg3 = wxString_in_helper(obj2); | |
17301 | if (arg3 == NULL) SWIG_fail; | |
17302 | temp3 = true; | |
17303 | } | |
17304 | } | |
17305 | { | |
17306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17307 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
17308 | wxPyEndAllowThreads(__tstate); | |
17309 | if (PyErr_Occurred()) SWIG_fail; | |
17310 | } | |
17311 | { | |
17312 | #if wxUSE_UNICODE | |
17313 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17314 | #else | |
17315 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17316 | #endif | |
17317 | } | |
17318 | { | |
17319 | if (temp2) | |
17320 | delete arg2; | |
17321 | } | |
17322 | { | |
17323 | if (temp3) | |
17324 | delete arg3; | |
17325 | } | |
17326 | return resultobj; | |
17327 | fail: | |
17328 | { | |
17329 | if (temp2) | |
17330 | delete arg2; | |
17331 | } | |
17332 | { | |
17333 | if (temp3) | |
17334 | delete arg3; | |
17335 | } | |
17336 | return NULL; | |
17337 | } | |
17338 | ||
17339 | ||
17340 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17341 | PyObject *resultobj = 0; | |
17342 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17343 | wxString *result = 0 ; | |
17344 | void *argp1 = 0 ; | |
17345 | int res1 = 0 ; | |
17346 | PyObject *swig_obj[1] ; | |
17347 | ||
17348 | if (!args) SWIG_fail; | |
17349 | swig_obj[0] = args; | |
17350 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17351 | if (!SWIG_IsOK(res1)) { | |
17352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17353 | } | |
17354 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17355 | { | |
17356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17357 | { | |
17358 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
17359 | result = (wxString *) &_result_ref; | |
17360 | } | |
17361 | wxPyEndAllowThreads(__tstate); | |
17362 | if (PyErr_Occurred()) SWIG_fail; | |
17363 | } | |
17364 | { | |
17365 | #if wxUSE_UNICODE | |
17366 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17367 | #else | |
17368 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17369 | #endif | |
17370 | } | |
17371 | return resultobj; | |
17372 | fail: | |
17373 | return NULL; | |
17374 | } | |
17375 | ||
17376 | ||
17377 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17378 | PyObject *obj; | |
17379 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17380 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
17381 | return SWIG_Py_Void(); | |
17382 | } | |
17383 | ||
17384 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17385 | return SWIG_Python_InitShadowInstance(args); | |
17386 | } | |
17387 | ||
17388 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17389 | PyObject *resultobj = 0; | |
17390 | int arg1 = (int) -1 ; | |
17391 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
17392 | wxPyLocale *result = 0 ; | |
17393 | int val1 ; | |
17394 | int ecode1 = 0 ; | |
17395 | int val2 ; | |
17396 | int ecode2 = 0 ; | |
17397 | PyObject * obj0 = 0 ; | |
17398 | PyObject * obj1 = 0 ; | |
17399 | char * kwnames[] = { | |
17400 | (char *) "language",(char *) "flags", NULL | |
17401 | }; | |
17402 | ||
17403 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
17404 | if (obj0) { | |
17405 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17406 | if (!SWIG_IsOK(ecode1)) { | |
17407 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
17408 | } | |
17409 | arg1 = static_cast< int >(val1); | |
17410 | } | |
17411 | if (obj1) { | |
17412 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17413 | if (!SWIG_IsOK(ecode2)) { | |
17414 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
17415 | } | |
17416 | arg2 = static_cast< int >(val2); | |
17417 | } | |
17418 | { | |
17419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17420 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
17421 | wxPyEndAllowThreads(__tstate); | |
17422 | if (PyErr_Occurred()) SWIG_fail; | |
17423 | } | |
17424 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
17425 | return resultobj; | |
17426 | fail: | |
17427 | return NULL; | |
17428 | } | |
17429 | ||
17430 | ||
17431 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17432 | PyObject *resultobj = 0; | |
17433 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
17434 | void *argp1 = 0 ; | |
17435 | int res1 = 0 ; | |
17436 | PyObject *swig_obj[1] ; | |
17437 | ||
17438 | if (!args) SWIG_fail; | |
17439 | swig_obj[0] = args; | |
17440 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
17441 | if (!SWIG_IsOK(res1)) { | |
17442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
17443 | } | |
17444 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
17445 | { | |
17446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17447 | delete arg1; | |
17448 | ||
554f62e9 RD |
17449 | wxPyEndAllowThreads(__tstate); |
17450 | if (PyErr_Occurred()) SWIG_fail; | |
17451 | } | |
fc46b7f3 | 17452 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
17453 | return resultobj; |
17454 | fail: | |
554f62e9 | 17455 | return NULL; |
d55e5bfc RD |
17456 | } |
17457 | ||
17458 | ||
fc46b7f3 | 17459 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17460 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17461 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17462 | PyObject *arg2 = (PyObject *) 0 ; | |
17463 | PyObject *arg3 = (PyObject *) 0 ; | |
554f62e9 RD |
17464 | void *argp1 = 0 ; |
17465 | int res1 = 0 ; | |
17466 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
17467 | PyObject * obj1 = 0 ; |
17468 | PyObject * obj2 = 0 ; | |
554f62e9 | 17469 | char * kwnames[] = { |
fc46b7f3 | 17470 | (char *) "self",(char *) "self",(char *) "_class", NULL |
554f62e9 RD |
17471 | }; |
17472 | ||
fc46b7f3 RD |
17473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17474 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17475 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
554f62e9 | 17477 | } |
fc46b7f3 RD |
17478 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
17479 | arg2 = obj1; | |
17480 | arg3 = obj2; | |
554f62e9 RD |
17481 | { |
17482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17483 | (arg1)->_setCallbackInfo(arg2,arg3); |
554f62e9 RD |
17484 | wxPyEndAllowThreads(__tstate); |
17485 | if (PyErr_Occurred()) SWIG_fail; | |
17486 | } | |
17487 | resultobj = SWIG_Py_Void(); | |
17488 | return resultobj; | |
17489 | fail: | |
17490 | return NULL; | |
17491 | } | |
17492 | ||
17493 | ||
fc46b7f3 | 17494 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17495 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17496 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17497 | wxChar *arg2 = (wxChar *) 0 ; | |
17498 | wxChar *arg3 = (wxChar *) NULL ; | |
17499 | wxChar *result = 0 ; | |
554f62e9 RD |
17500 | void *argp1 = 0 ; |
17501 | int res1 = 0 ; | |
fc46b7f3 RD |
17502 | void *argp2 = 0 ; |
17503 | int res2 = 0 ; | |
17504 | void *argp3 = 0 ; | |
17505 | int res3 = 0 ; | |
554f62e9 RD |
17506 | PyObject * obj0 = 0 ; |
17507 | PyObject * obj1 = 0 ; | |
17508 | PyObject * obj2 = 0 ; | |
17509 | char * kwnames[] = { | |
17510 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
17511 | }; | |
17512 | ||
fc46b7f3 RD |
17513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17515 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
554f62e9 | 17517 | } |
fc46b7f3 RD |
17518 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
17519 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17520 | if (!SWIG_IsOK(res2)) { | |
17521 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
554f62e9 | 17522 | } |
fc46b7f3 | 17523 | arg2 = reinterpret_cast< wxChar * >(argp2); |
554f62e9 | 17524 | if (obj2) { |
fc46b7f3 RD |
17525 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
17526 | if (!SWIG_IsOK(res3)) { | |
17527 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
d55e5bfc | 17528 | } |
fc46b7f3 | 17529 | arg3 = reinterpret_cast< wxChar * >(argp3); |
554f62e9 RD |
17530 | } |
17531 | { | |
17532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17533 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
554f62e9 RD |
17534 | wxPyEndAllowThreads(__tstate); |
17535 | if (PyErr_Occurred()) SWIG_fail; | |
17536 | } | |
fc46b7f3 | 17537 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
554f62e9 RD |
17538 | return resultobj; |
17539 | fail: | |
554f62e9 | 17540 | return NULL; |
d55e5bfc RD |
17541 | } |
17542 | ||
17543 | ||
fc46b7f3 | 17544 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17545 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17546 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17547 | wxChar *arg2 = (wxChar *) 0 ; | |
17548 | wxChar *arg3 = (wxChar *) 0 ; | |
17549 | size_t arg4 ; | |
17550 | wxChar *arg5 = (wxChar *) NULL ; | |
17551 | wxChar *result = 0 ; | |
554f62e9 RD |
17552 | void *argp1 = 0 ; |
17553 | int res1 = 0 ; | |
fc46b7f3 RD |
17554 | void *argp2 = 0 ; |
17555 | int res2 = 0 ; | |
17556 | void *argp3 = 0 ; | |
17557 | int res3 = 0 ; | |
17558 | size_t val4 ; | |
17559 | int ecode4 = 0 ; | |
17560 | void *argp5 = 0 ; | |
17561 | int res5 = 0 ; | |
17562 | PyObject * obj0 = 0 ; | |
17563 | PyObject * obj1 = 0 ; | |
17564 | PyObject * obj2 = 0 ; | |
17565 | PyObject * obj3 = 0 ; | |
17566 | PyObject * obj4 = 0 ; | |
17567 | char * kwnames[] = { | |
17568 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
17569 | }; | |
554f62e9 | 17570 | |
fc46b7f3 RD |
17571 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
17572 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17573 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
17574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
17575 | } | |
17576 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
17577 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17578 | if (!SWIG_IsOK(res2)) { | |
17579 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
17580 | } | |
17581 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
17582 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17583 | if (!SWIG_IsOK(res3)) { | |
17584 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
17585 | } | |
17586 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
17587 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
17588 | if (!SWIG_IsOK(ecode4)) { | |
17589 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
17590 | } | |
17591 | arg4 = static_cast< size_t >(val4); | |
17592 | if (obj4) { | |
17593 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17594 | if (!SWIG_IsOK(res5)) { | |
17595 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
17596 | } | |
17597 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
554f62e9 | 17598 | } |
554f62e9 RD |
17599 | { |
17600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17601 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
554f62e9 RD |
17602 | wxPyEndAllowThreads(__tstate); |
17603 | if (PyErr_Occurred()) SWIG_fail; | |
17604 | } | |
fc46b7f3 | 17605 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
554f62e9 RD |
17606 | return resultobj; |
17607 | fail: | |
17608 | return NULL; | |
d55e5bfc RD |
17609 | } |
17610 | ||
17611 | ||
fc46b7f3 | 17612 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
17613 | PyObject *obj; |
17614 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 17615 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
554f62e9 | 17616 | return SWIG_Py_Void(); |
d55e5bfc RD |
17617 | } |
17618 | ||
fc46b7f3 | 17619 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 17620 | return SWIG_Python_InitShadowInstance(args); |
d55e5bfc RD |
17621 | } |
17622 | ||
554f62e9 RD |
17623 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17624 | PyObject *resultobj = 0; | |
17625 | wxLocale *result = 0 ; | |
17626 | ||
17627 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
17628 | { | |
17629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17630 | result = (wxLocale *)wxGetLocale(); | |
17631 | wxPyEndAllowThreads(__tstate); | |
17632 | if (PyErr_Occurred()) SWIG_fail; | |
17633 | } | |
17634 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17635 | return resultobj; | |
17636 | fail: | |
17637 | return NULL; | |
d55e5bfc RD |
17638 | } |
17639 | ||
17640 | ||
554f62e9 RD |
17641 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17642 | PyObject *resultobj = 0; | |
17643 | wxString *arg1 = 0 ; | |
17644 | wxString result; | |
17645 | bool temp1 = false ; | |
17646 | ||
17647 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
17648 | { | |
17649 | arg1 = wxString_in_helper(swig_obj[0]); | |
17650 | if (arg1 == NULL) SWIG_fail; | |
17651 | temp1 = true; | |
17652 | } | |
17653 | { | |
17654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17655 | result = wxGetTranslation((wxString const &)*arg1); | |
17656 | wxPyEndAllowThreads(__tstate); | |
17657 | if (PyErr_Occurred()) SWIG_fail; | |
17658 | } | |
17659 | { | |
093d3ff1 | 17660 | #if wxUSE_UNICODE |
554f62e9 | 17661 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17662 | #else |
554f62e9 | 17663 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17664 | #endif |
554f62e9 RD |
17665 | } |
17666 | { | |
17667 | if (temp1) | |
17668 | delete arg1; | |
17669 | } | |
17670 | return resultobj; | |
17671 | fail: | |
17672 | { | |
17673 | if (temp1) | |
17674 | delete arg1; | |
17675 | } | |
17676 | return NULL; | |
d55e5bfc RD |
17677 | } |
17678 | ||
17679 | ||
554f62e9 | 17680 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
17681 | PyObject *resultobj = 0; |
17682 | wxString *arg1 = 0 ; | |
17683 | wxString *arg2 = 0 ; | |
17684 | wxString result; | |
17685 | bool temp1 = false ; | |
17686 | bool temp2 = false ; | |
17687 | ||
17688 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
17689 | { | |
17690 | arg1 = wxString_in_helper(swig_obj[0]); | |
17691 | if (arg1 == NULL) SWIG_fail; | |
17692 | temp1 = true; | |
17693 | } | |
17694 | { | |
17695 | arg2 = wxString_in_helper(swig_obj[1]); | |
17696 | if (arg2 == NULL) SWIG_fail; | |
17697 | temp2 = true; | |
17698 | } | |
17699 | { | |
17700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17701 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
17702 | wxPyEndAllowThreads(__tstate); | |
17703 | if (PyErr_Occurred()) SWIG_fail; | |
17704 | } | |
17705 | { | |
17706 | #if wxUSE_UNICODE | |
17707 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17708 | #else | |
17709 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17710 | #endif | |
17711 | } | |
17712 | { | |
17713 | if (temp1) | |
17714 | delete arg1; | |
17715 | } | |
17716 | { | |
17717 | if (temp2) | |
17718 | delete arg2; | |
17719 | } | |
17720 | return resultobj; | |
17721 | fail: | |
17722 | { | |
17723 | if (temp1) | |
17724 | delete arg1; | |
17725 | } | |
17726 | { | |
17727 | if (temp2) | |
17728 | delete arg2; | |
17729 | } | |
17730 | return NULL; | |
17731 | } | |
17732 | ||
17733 | ||
17734 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
554f62e9 RD |
17735 | PyObject *resultobj = 0; |
17736 | wxString *arg1 = 0 ; | |
17737 | wxString *arg2 = 0 ; | |
17738 | size_t arg3 ; | |
17739 | wxString result; | |
17740 | bool temp1 = false ; | |
17741 | bool temp2 = false ; | |
17742 | size_t val3 ; | |
17743 | int ecode3 = 0 ; | |
17744 | ||
17745 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
17746 | { | |
17747 | arg1 = wxString_in_helper(swig_obj[0]); | |
17748 | if (arg1 == NULL) SWIG_fail; | |
17749 | temp1 = true; | |
17750 | } | |
17751 | { | |
17752 | arg2 = wxString_in_helper(swig_obj[1]); | |
17753 | if (arg2 == NULL) SWIG_fail; | |
17754 | temp2 = true; | |
17755 | } | |
17756 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17757 | if (!SWIG_IsOK(ecode3)) { | |
17758 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17759 | } | |
17760 | arg3 = static_cast< size_t >(val3); | |
17761 | { | |
17762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17763 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
17764 | wxPyEndAllowThreads(__tstate); | |
17765 | if (PyErr_Occurred()) SWIG_fail; | |
17766 | } | |
17767 | { | |
093d3ff1 | 17768 | #if wxUSE_UNICODE |
554f62e9 | 17769 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17770 | #else |
554f62e9 | 17771 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17772 | #endif |
554f62e9 RD |
17773 | } |
17774 | { | |
17775 | if (temp1) | |
17776 | delete arg1; | |
17777 | } | |
17778 | { | |
17779 | if (temp2) | |
17780 | delete arg2; | |
17781 | } | |
17782 | return resultobj; | |
17783 | fail: | |
17784 | { | |
17785 | if (temp1) | |
17786 | delete arg1; | |
17787 | } | |
17788 | { | |
17789 | if (temp2) | |
17790 | delete arg2; | |
17791 | } | |
17792 | return NULL; | |
d55e5bfc RD |
17793 | } |
17794 | ||
17795 | ||
fc46b7f3 RD |
17796 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17797 | PyObject *resultobj = 0; | |
17798 | wxString *arg1 = 0 ; | |
17799 | wxString *arg2 = 0 ; | |
17800 | size_t arg3 ; | |
17801 | wxString *arg4 = 0 ; | |
17802 | wxString result; | |
17803 | bool temp1 = false ; | |
17804 | bool temp2 = false ; | |
17805 | size_t val3 ; | |
17806 | int ecode3 = 0 ; | |
17807 | bool temp4 = false ; | |
17808 | ||
17809 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17810 | { | |
17811 | arg1 = wxString_in_helper(swig_obj[0]); | |
17812 | if (arg1 == NULL) SWIG_fail; | |
17813 | temp1 = true; | |
17814 | } | |
17815 | { | |
17816 | arg2 = wxString_in_helper(swig_obj[1]); | |
17817 | if (arg2 == NULL) SWIG_fail; | |
17818 | temp2 = true; | |
17819 | } | |
17820 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17821 | if (!SWIG_IsOK(ecode3)) { | |
17822 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17823 | } | |
17824 | arg3 = static_cast< size_t >(val3); | |
17825 | { | |
17826 | arg4 = wxString_in_helper(swig_obj[3]); | |
17827 | if (arg4 == NULL) SWIG_fail; | |
17828 | temp4 = true; | |
17829 | } | |
17830 | { | |
17831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17832 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17833 | wxPyEndAllowThreads(__tstate); | |
17834 | if (PyErr_Occurred()) SWIG_fail; | |
17835 | } | |
17836 | { | |
17837 | #if wxUSE_UNICODE | |
17838 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17839 | #else | |
17840 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17841 | #endif | |
17842 | } | |
17843 | { | |
17844 | if (temp1) | |
17845 | delete arg1; | |
17846 | } | |
17847 | { | |
17848 | if (temp2) | |
17849 | delete arg2; | |
17850 | } | |
17851 | { | |
17852 | if (temp4) | |
17853 | delete arg4; | |
17854 | } | |
17855 | return resultobj; | |
17856 | fail: | |
17857 | { | |
17858 | if (temp1) | |
17859 | delete arg1; | |
17860 | } | |
17861 | { | |
17862 | if (temp2) | |
17863 | delete arg2; | |
17864 | } | |
17865 | { | |
17866 | if (temp4) | |
17867 | delete arg4; | |
17868 | } | |
17869 | return NULL; | |
17870 | } | |
17871 | ||
17872 | ||
554f62e9 RD |
17873 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17874 | int argc; | |
fc46b7f3 | 17875 | PyObject *argv[5]; |
554f62e9 | 17876 | |
fc46b7f3 | 17877 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
554f62e9 RD |
17878 | --argc; |
17879 | if (argc == 1) { | |
17880 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17881 | } | |
fc46b7f3 | 17882 | if (argc == 2) { |
554f62e9 RD |
17883 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17884 | } | |
fc46b7f3 RD |
17885 | if (argc == 3) { |
17886 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17887 | } | |
17888 | if (argc == 4) { | |
17889 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17890 | } | |
554f62e9 RD |
17891 | |
17892 | fail: | |
17893 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17894 | return NULL; | |
d55e5bfc RD |
17895 | } |
17896 | ||
17897 | ||
554f62e9 RD |
17898 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17899 | PyObject *resultobj = 0; | |
17900 | wxEncodingConverter *result = 0 ; | |
17901 | ||
17902 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17903 | { | |
17904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17905 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17906 | wxPyEndAllowThreads(__tstate); | |
17907 | if (PyErr_Occurred()) SWIG_fail; | |
17908 | } | |
17909 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17910 | return resultobj; | |
17911 | fail: | |
17912 | return NULL; | |
d55e5bfc RD |
17913 | } |
17914 | ||
17915 | ||
554f62e9 RD |
17916 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17917 | PyObject *resultobj = 0; | |
17918 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17919 | void *argp1 = 0 ; | |
17920 | int res1 = 0 ; | |
17921 | PyObject *swig_obj[1] ; | |
17922 | ||
17923 | if (!args) SWIG_fail; | |
17924 | swig_obj[0] = args; | |
17925 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17926 | if (!SWIG_IsOK(res1)) { | |
17927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17928 | } | |
17929 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17930 | { | |
17931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17932 | delete arg1; | |
d55e5bfc | 17933 | |
554f62e9 RD |
17934 | wxPyEndAllowThreads(__tstate); |
17935 | if (PyErr_Occurred()) SWIG_fail; | |
17936 | } | |
17937 | resultobj = SWIG_Py_Void(); | |
17938 | return resultobj; | |
17939 | fail: | |
17940 | return NULL; | |
17941 | } | |
17942 | ||
17943 | ||
17944 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17945 | PyObject *resultobj = 0; | |
17946 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17947 | wxFontEncoding arg2 ; | |
17948 | wxFontEncoding arg3 ; | |
17949 | int arg4 = (int) wxCONVERT_STRICT ; | |
17950 | bool result; | |
17951 | void *argp1 = 0 ; | |
17952 | int res1 = 0 ; | |
17953 | int val2 ; | |
17954 | int ecode2 = 0 ; | |
17955 | int val3 ; | |
17956 | int ecode3 = 0 ; | |
17957 | int val4 ; | |
17958 | int ecode4 = 0 ; | |
17959 | PyObject * obj0 = 0 ; | |
17960 | PyObject * obj1 = 0 ; | |
17961 | PyObject * obj2 = 0 ; | |
17962 | PyObject * obj3 = 0 ; | |
17963 | char * kwnames[] = { | |
17964 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17965 | }; | |
17966 | ||
17967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17969 | if (!SWIG_IsOK(res1)) { | |
17970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17971 | } | |
17972 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17973 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17974 | if (!SWIG_IsOK(ecode2)) { | |
17975 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17976 | } | |
17977 | arg2 = static_cast< wxFontEncoding >(val2); | |
17978 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17979 | if (!SWIG_IsOK(ecode3)) { | |
17980 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
17981 | } | |
17982 | arg3 = static_cast< wxFontEncoding >(val3); | |
17983 | if (obj3) { | |
17984 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17985 | if (!SWIG_IsOK(ecode4)) { | |
17986 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
17987 | } | |
17988 | arg4 = static_cast< int >(val4); | |
17989 | } | |
17990 | { | |
17991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17992 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
17993 | wxPyEndAllowThreads(__tstate); | |
17994 | if (PyErr_Occurred()) SWIG_fail; | |
17995 | } | |
17996 | { | |
17997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17998 | } | |
17999 | return resultobj; | |
18000 | fail: | |
18001 | return NULL; | |
18002 | } | |
18003 | ||
18004 | ||
18005 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18006 | PyObject *resultobj = 0; | |
18007 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
18008 | wxString *arg2 = 0 ; | |
18009 | wxString result; | |
18010 | void *argp1 = 0 ; | |
18011 | int res1 = 0 ; | |
18012 | bool temp2 = false ; | |
18013 | PyObject * obj0 = 0 ; | |
18014 | PyObject * obj1 = 0 ; | |
18015 | char * kwnames[] = { | |
18016 | (char *) "self",(char *) "input", NULL | |
18017 | }; | |
18018 | ||
18019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
18020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
18021 | if (!SWIG_IsOK(res1)) { | |
18022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
18023 | } | |
18024 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
18025 | { | |
18026 | arg2 = wxString_in_helper(obj1); | |
18027 | if (arg2 == NULL) SWIG_fail; | |
18028 | temp2 = true; | |
18029 | } | |
18030 | { | |
18031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18032 | result = (arg1)->Convert((wxString const &)*arg2); | |
18033 | wxPyEndAllowThreads(__tstate); | |
18034 | if (PyErr_Occurred()) SWIG_fail; | |
18035 | } | |
18036 | { | |
d55e5bfc | 18037 | #if wxUSE_UNICODE |
554f62e9 | 18038 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 18039 | #else |
554f62e9 | 18040 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 18041 | #endif |
554f62e9 RD |
18042 | } |
18043 | { | |
18044 | if (temp2) | |
18045 | delete arg2; | |
18046 | } | |
18047 | return resultobj; | |
18048 | fail: | |
18049 | { | |
18050 | if (temp2) | |
18051 | delete arg2; | |
18052 | } | |
18053 | return NULL; | |
18054 | } | |
18055 | ||
18056 | ||
18057 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18058 | PyObject *resultobj = 0; | |
18059 | wxFontEncoding arg1 ; | |
18060 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
18061 | wxFontEncodingArray result; | |
18062 | int val1 ; | |
18063 | int ecode1 = 0 ; | |
18064 | int val2 ; | |
18065 | int ecode2 = 0 ; | |
18066 | PyObject * obj0 = 0 ; | |
18067 | PyObject * obj1 = 0 ; | |
18068 | char * kwnames[] = { | |
18069 | (char *) "enc",(char *) "platform", NULL | |
18070 | }; | |
18071 | ||
18072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
18073 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18074 | if (!SWIG_IsOK(ecode1)) { | |
18075 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
18076 | } | |
18077 | arg1 = static_cast< wxFontEncoding >(val1); | |
18078 | if (obj1) { | |
18079 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18080 | if (!SWIG_IsOK(ecode2)) { | |
18081 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
18082 | } | |
18083 | arg2 = static_cast< int >(val2); | |
18084 | } | |
18085 | { | |
18086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18087 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
18088 | wxPyEndAllowThreads(__tstate); | |
18089 | if (PyErr_Occurred()) SWIG_fail; | |
18090 | } | |
18091 | { | |
18092 | resultobj = PyList_New(0); | |
18093 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
18094 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
18095 | PyList_Append(resultobj, number); | |
18096 | Py_DECREF(number); | |
d55e5bfc | 18097 | } |
554f62e9 RD |
18098 | } |
18099 | return resultobj; | |
18100 | fail: | |
18101 | return NULL; | |
d55e5bfc RD |
18102 | } |
18103 | ||
18104 | ||
554f62e9 RD |
18105 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18106 | PyObject *resultobj = 0; | |
18107 | wxFontEncoding arg1 ; | |
18108 | wxFontEncodingArray result; | |
18109 | int val1 ; | |
18110 | int ecode1 = 0 ; | |
18111 | PyObject * obj0 = 0 ; | |
18112 | char * kwnames[] = { | |
18113 | (char *) "enc", NULL | |
18114 | }; | |
18115 | ||
18116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
18117 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18118 | if (!SWIG_IsOK(ecode1)) { | |
18119 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
18120 | } | |
18121 | arg1 = static_cast< wxFontEncoding >(val1); | |
18122 | { | |
18123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18124 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
18125 | wxPyEndAllowThreads(__tstate); | |
18126 | if (PyErr_Occurred()) SWIG_fail; | |
18127 | } | |
18128 | { | |
18129 | resultobj = PyList_New(0); | |
18130 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
18131 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
18132 | PyList_Append(resultobj, number); | |
18133 | Py_DECREF(number); | |
d55e5bfc | 18134 | } |
554f62e9 RD |
18135 | } |
18136 | return resultobj; | |
18137 | fail: | |
18138 | return NULL; | |
18139 | } | |
18140 | ||
18141 | ||
18142 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18143 | PyObject *resultobj = 0; | |
18144 | wxFontEncoding arg1 ; | |
18145 | wxFontEncoding arg2 ; | |
18146 | bool result; | |
18147 | int val1 ; | |
18148 | int ecode1 = 0 ; | |
18149 | int val2 ; | |
18150 | int ecode2 = 0 ; | |
18151 | PyObject * obj0 = 0 ; | |
18152 | PyObject * obj1 = 0 ; | |
18153 | char * kwnames[] = { | |
18154 | (char *) "encIn",(char *) "encOut", NULL | |
18155 | }; | |
18156 | ||
18157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
18158 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18159 | if (!SWIG_IsOK(ecode1)) { | |
18160 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
18161 | } | |
18162 | arg1 = static_cast< wxFontEncoding >(val1); | |
18163 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18164 | if (!SWIG_IsOK(ecode2)) { | |
18165 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
18166 | } | |
18167 | arg2 = static_cast< wxFontEncoding >(val2); | |
18168 | { | |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
18171 | wxPyEndAllowThreads(__tstate); | |
18172 | if (PyErr_Occurred()) SWIG_fail; | |
18173 | } | |
18174 | { | |
18175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18176 | } | |
18177 | return resultobj; | |
18178 | fail: | |
18179 | return NULL; | |
d55e5bfc RD |
18180 | } |
18181 | ||
18182 | ||
554f62e9 RD |
18183 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18184 | PyObject *obj; | |
18185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18186 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
18187 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18188 | } |
18189 | ||
554f62e9 RD |
18190 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18191 | return SWIG_Python_InitShadowInstance(args); | |
5e483524 RD |
18192 | } |
18193 | ||
554f62e9 RD |
18194 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18195 | PyObject *resultobj = 0; | |
18196 | wxDC *arg1 = (wxDC *) 0 ; | |
18197 | void *argp1 = 0 ; | |
18198 | int res1 = 0 ; | |
18199 | PyObject *swig_obj[1] ; | |
18200 | ||
18201 | if (!args) SWIG_fail; | |
18202 | swig_obj[0] = args; | |
18203 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
18204 | if (!SWIG_IsOK(res1)) { | |
18205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18206 | } | |
18207 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18208 | { | |
18209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18210 | delete arg1; | |
d55e5bfc | 18211 | |
554f62e9 RD |
18212 | wxPyEndAllowThreads(__tstate); |
18213 | if (PyErr_Occurred()) SWIG_fail; | |
18214 | } | |
18215 | resultobj = SWIG_Py_Void(); | |
18216 | return resultobj; | |
18217 | fail: | |
18218 | return NULL; | |
18219 | } | |
18220 | ||
18221 | ||
18222 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18223 | PyObject *resultobj = 0; | |
18224 | wxDC *arg1 = (wxDC *) 0 ; | |
18225 | int arg2 ; | |
18226 | int arg3 ; | |
18227 | wxColour *arg4 = 0 ; | |
18228 | int arg5 = (int) wxFLOOD_SURFACE ; | |
18229 | bool result; | |
18230 | void *argp1 = 0 ; | |
18231 | int res1 = 0 ; | |
18232 | int val2 ; | |
18233 | int ecode2 = 0 ; | |
18234 | int val3 ; | |
18235 | int ecode3 = 0 ; | |
18236 | wxColour temp4 ; | |
18237 | int val5 ; | |
18238 | int ecode5 = 0 ; | |
18239 | PyObject * obj0 = 0 ; | |
18240 | PyObject * obj1 = 0 ; | |
18241 | PyObject * obj2 = 0 ; | |
18242 | PyObject * obj3 = 0 ; | |
18243 | PyObject * obj4 = 0 ; | |
18244 | char * kwnames[] = { | |
18245 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
18246 | }; | |
18247 | ||
18248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18250 | if (!SWIG_IsOK(res1)) { | |
18251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18252 | } | |
18253 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18254 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18255 | if (!SWIG_IsOK(ecode2)) { | |
18256 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
18257 | } | |
18258 | arg2 = static_cast< int >(val2); | |
18259 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18260 | if (!SWIG_IsOK(ecode3)) { | |
18261 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
18262 | } | |
18263 | arg3 = static_cast< int >(val3); | |
18264 | { | |
18265 | arg4 = &temp4; | |
18266 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18267 | } | |
18268 | if (obj4) { | |
18269 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18270 | if (!SWIG_IsOK(ecode5)) { | |
18271 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
18272 | } | |
18273 | arg5 = static_cast< int >(val5); | |
18274 | } | |
18275 | { | |
18276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18277 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
18278 | wxPyEndAllowThreads(__tstate); | |
18279 | if (PyErr_Occurred()) SWIG_fail; | |
18280 | } | |
18281 | { | |
18282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18283 | } | |
18284 | return resultobj; | |
18285 | fail: | |
18286 | return NULL; | |
18287 | } | |
18288 | ||
18289 | ||
18290 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18291 | PyObject *resultobj = 0; | |
18292 | wxDC *arg1 = (wxDC *) 0 ; | |
18293 | wxPoint *arg2 = 0 ; | |
18294 | wxColour *arg3 = 0 ; | |
18295 | int arg4 = (int) wxFLOOD_SURFACE ; | |
18296 | bool result; | |
18297 | void *argp1 = 0 ; | |
18298 | int res1 = 0 ; | |
18299 | wxPoint temp2 ; | |
18300 | wxColour temp3 ; | |
18301 | int val4 ; | |
18302 | int ecode4 = 0 ; | |
18303 | PyObject * obj0 = 0 ; | |
18304 | PyObject * obj1 = 0 ; | |
18305 | PyObject * obj2 = 0 ; | |
18306 | PyObject * obj3 = 0 ; | |
18307 | char * kwnames[] = { | |
18308 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
18309 | }; | |
18310 | ||
18311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18313 | if (!SWIG_IsOK(res1)) { | |
18314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18315 | } | |
18316 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18317 | { | |
18318 | arg2 = &temp2; | |
18319 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18320 | } | |
18321 | { | |
18322 | arg3 = &temp3; | |
18323 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18324 | } | |
18325 | if (obj3) { | |
18326 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18327 | if (!SWIG_IsOK(ecode4)) { | |
18328 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
18329 | } | |
18330 | arg4 = static_cast< int >(val4); | |
18331 | } | |
18332 | { | |
18333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18334 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
18335 | wxPyEndAllowThreads(__tstate); | |
18336 | if (PyErr_Occurred()) SWIG_fail; | |
18337 | } | |
18338 | { | |
18339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18340 | } | |
18341 | return resultobj; | |
18342 | fail: | |
18343 | return NULL; | |
18344 | } | |
18345 | ||
18346 | ||
18347 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18348 | PyObject *resultobj = 0; | |
18349 | wxDC *arg1 = (wxDC *) 0 ; | |
18350 | wxRect *arg2 = 0 ; | |
18351 | wxColour *arg3 = 0 ; | |
18352 | wxColour *arg4 = 0 ; | |
18353 | wxPoint *arg5 = 0 ; | |
18354 | void *argp1 = 0 ; | |
18355 | int res1 = 0 ; | |
18356 | wxRect temp2 ; | |
18357 | wxColour temp3 ; | |
18358 | wxColour temp4 ; | |
18359 | wxPoint temp5 ; | |
18360 | PyObject * obj0 = 0 ; | |
18361 | PyObject * obj1 = 0 ; | |
18362 | PyObject * obj2 = 0 ; | |
18363 | PyObject * obj3 = 0 ; | |
18364 | PyObject * obj4 = 0 ; | |
18365 | char * kwnames[] = { | |
18366 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
18367 | }; | |
18368 | ||
18369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18370 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18371 | if (!SWIG_IsOK(res1)) { | |
18372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18373 | } | |
18374 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18375 | { | |
18376 | arg2 = &temp2; | |
18377 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18378 | } | |
18379 | { | |
18380 | arg3 = &temp3; | |
18381 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18382 | } | |
18383 | { | |
18384 | arg4 = &temp4; | |
18385 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18386 | } | |
18387 | { | |
18388 | arg5 = &temp5; | |
18389 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
18390 | } | |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
18394 | wxPyEndAllowThreads(__tstate); | |
18395 | if (PyErr_Occurred()) SWIG_fail; | |
18396 | } | |
18397 | resultobj = SWIG_Py_Void(); | |
18398 | return resultobj; | |
18399 | fail: | |
18400 | return NULL; | |
18401 | } | |
18402 | ||
18403 | ||
18404 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18405 | PyObject *resultobj = 0; | |
18406 | wxDC *arg1 = (wxDC *) 0 ; | |
18407 | wxRect *arg2 = 0 ; | |
18408 | wxColour *arg3 = 0 ; | |
18409 | wxColour *arg4 = 0 ; | |
18410 | wxDirection arg5 = (wxDirection) wxEAST ; | |
18411 | void *argp1 = 0 ; | |
18412 | int res1 = 0 ; | |
18413 | wxRect temp2 ; | |
18414 | wxColour temp3 ; | |
18415 | wxColour temp4 ; | |
18416 | int val5 ; | |
18417 | int ecode5 = 0 ; | |
18418 | PyObject * obj0 = 0 ; | |
18419 | PyObject * obj1 = 0 ; | |
18420 | PyObject * obj2 = 0 ; | |
18421 | PyObject * obj3 = 0 ; | |
18422 | PyObject * obj4 = 0 ; | |
18423 | char * kwnames[] = { | |
18424 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
18425 | }; | |
18426 | ||
18427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18429 | if (!SWIG_IsOK(res1)) { | |
18430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18431 | } | |
18432 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18433 | { | |
18434 | arg2 = &temp2; | |
18435 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18436 | } | |
18437 | { | |
18438 | arg3 = &temp3; | |
18439 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18440 | } | |
18441 | { | |
18442 | arg4 = &temp4; | |
18443 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18444 | } | |
18445 | if (obj4) { | |
18446 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18447 | if (!SWIG_IsOK(ecode5)) { | |
18448 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
18449 | } | |
18450 | arg5 = static_cast< wxDirection >(val5); | |
18451 | } | |
18452 | { | |
18453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18454 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
18455 | wxPyEndAllowThreads(__tstate); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | } | |
18458 | resultobj = SWIG_Py_Void(); | |
18459 | return resultobj; | |
18460 | fail: | |
18461 | return NULL; | |
18462 | } | |
18463 | ||
18464 | ||
18465 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18466 | PyObject *resultobj = 0; | |
18467 | wxDC *arg1 = (wxDC *) 0 ; | |
18468 | int arg2 ; | |
18469 | int arg3 ; | |
18470 | wxColour result; | |
18471 | void *argp1 = 0 ; | |
18472 | int res1 = 0 ; | |
18473 | int val2 ; | |
18474 | int ecode2 = 0 ; | |
18475 | int val3 ; | |
18476 | int ecode3 = 0 ; | |
18477 | PyObject * obj0 = 0 ; | |
18478 | PyObject * obj1 = 0 ; | |
18479 | PyObject * obj2 = 0 ; | |
18480 | char * kwnames[] = { | |
18481 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18482 | }; | |
18483 | ||
18484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18486 | if (!SWIG_IsOK(res1)) { | |
18487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18488 | } | |
18489 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18490 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18491 | if (!SWIG_IsOK(ecode2)) { | |
18492 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
18493 | } | |
18494 | arg2 = static_cast< int >(val2); | |
18495 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18496 | if (!SWIG_IsOK(ecode3)) { | |
18497 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
18498 | } | |
18499 | arg3 = static_cast< int >(val3); | |
18500 | { | |
18501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18502 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
18503 | wxPyEndAllowThreads(__tstate); | |
18504 | if (PyErr_Occurred()) SWIG_fail; | |
18505 | } | |
18506 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18507 | return resultobj; | |
18508 | fail: | |
18509 | return NULL; | |
18510 | } | |
18511 | ||
18512 | ||
18513 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18514 | PyObject *resultobj = 0; | |
18515 | wxDC *arg1 = (wxDC *) 0 ; | |
18516 | wxPoint *arg2 = 0 ; | |
18517 | wxColour result; | |
18518 | void *argp1 = 0 ; | |
18519 | int res1 = 0 ; | |
18520 | wxPoint temp2 ; | |
18521 | PyObject * obj0 = 0 ; | |
18522 | PyObject * obj1 = 0 ; | |
18523 | char * kwnames[] = { | |
18524 | (char *) "self",(char *) "pt", NULL | |
18525 | }; | |
18526 | ||
18527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18529 | if (!SWIG_IsOK(res1)) { | |
18530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18531 | } | |
18532 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18533 | { | |
18534 | arg2 = &temp2; | |
18535 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18536 | } | |
18537 | { | |
18538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18539 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
18540 | wxPyEndAllowThreads(__tstate); | |
18541 | if (PyErr_Occurred()) SWIG_fail; | |
18542 | } | |
18543 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18544 | return resultobj; | |
18545 | fail: | |
18546 | return NULL; | |
18547 | } | |
18548 | ||
18549 | ||
18550 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18551 | PyObject *resultobj = 0; | |
18552 | wxDC *arg1 = (wxDC *) 0 ; | |
18553 | int arg2 ; | |
18554 | int arg3 ; | |
18555 | int arg4 ; | |
18556 | int arg5 ; | |
18557 | void *argp1 = 0 ; | |
18558 | int res1 = 0 ; | |
18559 | int val2 ; | |
18560 | int ecode2 = 0 ; | |
18561 | int val3 ; | |
18562 | int ecode3 = 0 ; | |
18563 | int val4 ; | |
18564 | int ecode4 = 0 ; | |
18565 | int val5 ; | |
18566 | int ecode5 = 0 ; | |
18567 | PyObject * obj0 = 0 ; | |
18568 | PyObject * obj1 = 0 ; | |
18569 | PyObject * obj2 = 0 ; | |
18570 | PyObject * obj3 = 0 ; | |
18571 | PyObject * obj4 = 0 ; | |
18572 | char * kwnames[] = { | |
18573 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
18574 | }; | |
18575 | ||
18576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18578 | if (!SWIG_IsOK(res1)) { | |
18579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18580 | } | |
18581 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18582 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18583 | if (!SWIG_IsOK(ecode2)) { | |
18584 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
18585 | } | |
18586 | arg2 = static_cast< int >(val2); | |
18587 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18588 | if (!SWIG_IsOK(ecode3)) { | |
18589 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
18590 | } | |
18591 | arg3 = static_cast< int >(val3); | |
18592 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18593 | if (!SWIG_IsOK(ecode4)) { | |
18594 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
18595 | } | |
18596 | arg4 = static_cast< int >(val4); | |
18597 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18598 | if (!SWIG_IsOK(ecode5)) { | |
18599 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
18600 | } | |
18601 | arg5 = static_cast< int >(val5); | |
18602 | { | |
18603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18604 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
18605 | wxPyEndAllowThreads(__tstate); | |
18606 | if (PyErr_Occurred()) SWIG_fail; | |
18607 | } | |
18608 | resultobj = SWIG_Py_Void(); | |
18609 | return resultobj; | |
18610 | fail: | |
18611 | return NULL; | |
18612 | } | |
18613 | ||
18614 | ||
18615 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18616 | PyObject *resultobj = 0; | |
18617 | wxDC *arg1 = (wxDC *) 0 ; | |
18618 | wxPoint *arg2 = 0 ; | |
18619 | wxPoint *arg3 = 0 ; | |
18620 | void *argp1 = 0 ; | |
18621 | int res1 = 0 ; | |
18622 | wxPoint temp2 ; | |
18623 | wxPoint temp3 ; | |
18624 | PyObject * obj0 = 0 ; | |
18625 | PyObject * obj1 = 0 ; | |
18626 | PyObject * obj2 = 0 ; | |
18627 | char * kwnames[] = { | |
18628 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
18629 | }; | |
18630 | ||
18631 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18633 | if (!SWIG_IsOK(res1)) { | |
18634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18635 | } | |
18636 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18637 | { | |
18638 | arg2 = &temp2; | |
18639 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18640 | } | |
18641 | { | |
18642 | arg3 = &temp3; | |
18643 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18644 | } | |
18645 | { | |
18646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18647 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
18648 | wxPyEndAllowThreads(__tstate); | |
18649 | if (PyErr_Occurred()) SWIG_fail; | |
18650 | } | |
18651 | resultobj = SWIG_Py_Void(); | |
18652 | return resultobj; | |
18653 | fail: | |
18654 | return NULL; | |
18655 | } | |
18656 | ||
18657 | ||
18658 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18659 | PyObject *resultobj = 0; | |
18660 | wxDC *arg1 = (wxDC *) 0 ; | |
18661 | int arg2 ; | |
18662 | int arg3 ; | |
18663 | void *argp1 = 0 ; | |
18664 | int res1 = 0 ; | |
18665 | int val2 ; | |
18666 | int ecode2 = 0 ; | |
18667 | int val3 ; | |
18668 | int ecode3 = 0 ; | |
18669 | PyObject * obj0 = 0 ; | |
18670 | PyObject * obj1 = 0 ; | |
18671 | PyObject * obj2 = 0 ; | |
18672 | char * kwnames[] = { | |
18673 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18674 | }; | |
18675 | ||
18676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18678 | if (!SWIG_IsOK(res1)) { | |
18679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18680 | } | |
18681 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18682 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18683 | if (!SWIG_IsOK(ecode2)) { | |
18684 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
18685 | } | |
18686 | arg2 = static_cast< int >(val2); | |
18687 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18688 | if (!SWIG_IsOK(ecode3)) { | |
18689 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
18690 | } | |
18691 | arg3 = static_cast< int >(val3); | |
18692 | { | |
18693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18694 | (arg1)->CrossHair(arg2,arg3); | |
18695 | wxPyEndAllowThreads(__tstate); | |
18696 | if (PyErr_Occurred()) SWIG_fail; | |
18697 | } | |
18698 | resultobj = SWIG_Py_Void(); | |
18699 | return resultobj; | |
18700 | fail: | |
18701 | return NULL; | |
18702 | } | |
18703 | ||
18704 | ||
18705 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18706 | PyObject *resultobj = 0; | |
18707 | wxDC *arg1 = (wxDC *) 0 ; | |
18708 | wxPoint *arg2 = 0 ; | |
18709 | void *argp1 = 0 ; | |
18710 | int res1 = 0 ; | |
18711 | wxPoint temp2 ; | |
18712 | PyObject * obj0 = 0 ; | |
18713 | PyObject * obj1 = 0 ; | |
18714 | char * kwnames[] = { | |
18715 | (char *) "self",(char *) "pt", NULL | |
18716 | }; | |
18717 | ||
18718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18720 | if (!SWIG_IsOK(res1)) { | |
18721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18722 | } | |
18723 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18724 | { | |
18725 | arg2 = &temp2; | |
18726 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18727 | } | |
18728 | { | |
18729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18730 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
18731 | wxPyEndAllowThreads(__tstate); | |
18732 | if (PyErr_Occurred()) SWIG_fail; | |
18733 | } | |
18734 | resultobj = SWIG_Py_Void(); | |
18735 | return resultobj; | |
18736 | fail: | |
18737 | return NULL; | |
18738 | } | |
18739 | ||
18740 | ||
18741 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18742 | PyObject *resultobj = 0; | |
18743 | wxDC *arg1 = (wxDC *) 0 ; | |
18744 | int arg2 ; | |
18745 | int arg3 ; | |
18746 | int arg4 ; | |
18747 | int arg5 ; | |
18748 | int arg6 ; | |
18749 | int arg7 ; | |
18750 | void *argp1 = 0 ; | |
18751 | int res1 = 0 ; | |
18752 | int val2 ; | |
18753 | int ecode2 = 0 ; | |
18754 | int val3 ; | |
18755 | int ecode3 = 0 ; | |
18756 | int val4 ; | |
18757 | int ecode4 = 0 ; | |
18758 | int val5 ; | |
18759 | int ecode5 = 0 ; | |
18760 | int val6 ; | |
18761 | int ecode6 = 0 ; | |
18762 | int val7 ; | |
18763 | int ecode7 = 0 ; | |
18764 | PyObject * obj0 = 0 ; | |
18765 | PyObject * obj1 = 0 ; | |
18766 | PyObject * obj2 = 0 ; | |
18767 | PyObject * obj3 = 0 ; | |
18768 | PyObject * obj4 = 0 ; | |
18769 | PyObject * obj5 = 0 ; | |
18770 | PyObject * obj6 = 0 ; | |
18771 | char * kwnames[] = { | |
18772 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
18773 | }; | |
18774 | ||
18775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18777 | if (!SWIG_IsOK(res1)) { | |
18778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18779 | } | |
18780 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18781 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18782 | if (!SWIG_IsOK(ecode2)) { | |
18783 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
18784 | } | |
18785 | arg2 = static_cast< int >(val2); | |
18786 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18787 | if (!SWIG_IsOK(ecode3)) { | |
18788 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
18789 | } | |
18790 | arg3 = static_cast< int >(val3); | |
18791 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18792 | if (!SWIG_IsOK(ecode4)) { | |
18793 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
18794 | } | |
18795 | arg4 = static_cast< int >(val4); | |
18796 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18797 | if (!SWIG_IsOK(ecode5)) { | |
18798 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18799 | } | |
18800 | arg5 = static_cast< int >(val5); | |
18801 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18802 | if (!SWIG_IsOK(ecode6)) { | |
18803 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18804 | } | |
18805 | arg6 = static_cast< int >(val6); | |
18806 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18807 | if (!SWIG_IsOK(ecode7)) { | |
18808 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18809 | } | |
18810 | arg7 = static_cast< int >(val7); | |
18811 | { | |
18812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18813 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18814 | wxPyEndAllowThreads(__tstate); | |
18815 | if (PyErr_Occurred()) SWIG_fail; | |
18816 | } | |
18817 | resultobj = SWIG_Py_Void(); | |
18818 | return resultobj; | |
18819 | fail: | |
18820 | return NULL; | |
18821 | } | |
18822 | ||
18823 | ||
18824 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18825 | PyObject *resultobj = 0; | |
18826 | wxDC *arg1 = (wxDC *) 0 ; | |
18827 | wxPoint *arg2 = 0 ; | |
18828 | wxPoint *arg3 = 0 ; | |
18829 | wxPoint *arg4 = 0 ; | |
18830 | void *argp1 = 0 ; | |
18831 | int res1 = 0 ; | |
18832 | wxPoint temp2 ; | |
18833 | wxPoint temp3 ; | |
18834 | wxPoint temp4 ; | |
18835 | PyObject * obj0 = 0 ; | |
18836 | PyObject * obj1 = 0 ; | |
18837 | PyObject * obj2 = 0 ; | |
18838 | PyObject * obj3 = 0 ; | |
18839 | char * kwnames[] = { | |
18840 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18841 | }; | |
18842 | ||
18843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18845 | if (!SWIG_IsOK(res1)) { | |
18846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18847 | } | |
18848 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18849 | { | |
18850 | arg2 = &temp2; | |
18851 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18852 | } | |
18853 | { | |
18854 | arg3 = &temp3; | |
18855 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18856 | } | |
18857 | { | |
18858 | arg4 = &temp4; | |
18859 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18860 | } | |
18861 | { | |
18862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18863 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18864 | wxPyEndAllowThreads(__tstate); | |
18865 | if (PyErr_Occurred()) SWIG_fail; | |
18866 | } | |
18867 | resultobj = SWIG_Py_Void(); | |
18868 | return resultobj; | |
18869 | fail: | |
18870 | return NULL; | |
18871 | } | |
18872 | ||
18873 | ||
18874 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18875 | PyObject *resultobj = 0; | |
18876 | wxDC *arg1 = (wxDC *) 0 ; | |
18877 | int arg2 ; | |
18878 | int arg3 ; | |
18879 | int arg4 ; | |
18880 | int arg5 ; | |
18881 | void *argp1 = 0 ; | |
18882 | int res1 = 0 ; | |
18883 | int val2 ; | |
18884 | int ecode2 = 0 ; | |
18885 | int val3 ; | |
18886 | int ecode3 = 0 ; | |
18887 | int val4 ; | |
18888 | int ecode4 = 0 ; | |
18889 | int val5 ; | |
18890 | int ecode5 = 0 ; | |
18891 | PyObject * obj0 = 0 ; | |
18892 | PyObject * obj1 = 0 ; | |
18893 | PyObject * obj2 = 0 ; | |
18894 | PyObject * obj3 = 0 ; | |
18895 | PyObject * obj4 = 0 ; | |
18896 | char * kwnames[] = { | |
18897 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18898 | }; | |
18899 | ||
18900 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18901 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18902 | if (!SWIG_IsOK(res1)) { | |
18903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18904 | } | |
18905 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18906 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18907 | if (!SWIG_IsOK(ecode2)) { | |
18908 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18909 | } | |
18910 | arg2 = static_cast< int >(val2); | |
18911 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18912 | if (!SWIG_IsOK(ecode3)) { | |
18913 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18914 | } | |
18915 | arg3 = static_cast< int >(val3); | |
18916 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18917 | if (!SWIG_IsOK(ecode4)) { | |
18918 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18919 | } | |
18920 | arg4 = static_cast< int >(val4); | |
18921 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18922 | if (!SWIG_IsOK(ecode5)) { | |
18923 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18924 | } | |
18925 | arg5 = static_cast< int >(val5); | |
18926 | { | |
18927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18928 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18929 | wxPyEndAllowThreads(__tstate); | |
18930 | if (PyErr_Occurred()) SWIG_fail; | |
18931 | } | |
18932 | resultobj = SWIG_Py_Void(); | |
18933 | return resultobj; | |
18934 | fail: | |
18935 | return NULL; | |
18936 | } | |
18937 | ||
18938 | ||
18939 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18940 | PyObject *resultobj = 0; | |
18941 | wxDC *arg1 = (wxDC *) 0 ; | |
18942 | wxRect *arg2 = 0 ; | |
18943 | void *argp1 = 0 ; | |
18944 | int res1 = 0 ; | |
18945 | wxRect temp2 ; | |
18946 | PyObject * obj0 = 0 ; | |
18947 | PyObject * obj1 = 0 ; | |
18948 | char * kwnames[] = { | |
18949 | (char *) "self",(char *) "rect", NULL | |
18950 | }; | |
18951 | ||
18952 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18953 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18954 | if (!SWIG_IsOK(res1)) { | |
18955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18956 | } | |
18957 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18958 | { | |
18959 | arg2 = &temp2; | |
18960 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18961 | } | |
18962 | { | |
18963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18964 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18965 | wxPyEndAllowThreads(__tstate); | |
18966 | if (PyErr_Occurred()) SWIG_fail; | |
18967 | } | |
18968 | resultobj = SWIG_Py_Void(); | |
18969 | return resultobj; | |
18970 | fail: | |
18971 | return NULL; | |
18972 | } | |
18973 | ||
18974 | ||
18975 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18976 | PyObject *resultobj = 0; | |
18977 | wxDC *arg1 = (wxDC *) 0 ; | |
18978 | int arg2 ; | |
18979 | int arg3 ; | |
18980 | int arg4 ; | |
18981 | int arg5 ; | |
18982 | double arg6 ; | |
18983 | double arg7 ; | |
18984 | void *argp1 = 0 ; | |
18985 | int res1 = 0 ; | |
18986 | int val2 ; | |
18987 | int ecode2 = 0 ; | |
18988 | int val3 ; | |
18989 | int ecode3 = 0 ; | |
18990 | int val4 ; | |
18991 | int ecode4 = 0 ; | |
18992 | int val5 ; | |
18993 | int ecode5 = 0 ; | |
18994 | double val6 ; | |
18995 | int ecode6 = 0 ; | |
18996 | double val7 ; | |
18997 | int ecode7 = 0 ; | |
18998 | PyObject * obj0 = 0 ; | |
18999 | PyObject * obj1 = 0 ; | |
19000 | PyObject * obj2 = 0 ; | |
19001 | PyObject * obj3 = 0 ; | |
19002 | PyObject * obj4 = 0 ; | |
19003 | PyObject * obj5 = 0 ; | |
19004 | PyObject * obj6 = 0 ; | |
19005 | char * kwnames[] = { | |
19006 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
19007 | }; | |
19008 | ||
19009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
19010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19011 | if (!SWIG_IsOK(res1)) { | |
19012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19013 | } | |
19014 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19015 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19016 | if (!SWIG_IsOK(ecode2)) { | |
19017 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
19018 | } | |
19019 | arg2 = static_cast< int >(val2); | |
19020 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19021 | if (!SWIG_IsOK(ecode3)) { | |
19022 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
19023 | } | |
19024 | arg3 = static_cast< int >(val3); | |
19025 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19026 | if (!SWIG_IsOK(ecode4)) { | |
19027 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
19028 | } | |
19029 | arg4 = static_cast< int >(val4); | |
19030 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19031 | if (!SWIG_IsOK(ecode5)) { | |
19032 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
19033 | } | |
19034 | arg5 = static_cast< int >(val5); | |
19035 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
19036 | if (!SWIG_IsOK(ecode6)) { | |
19037 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
19038 | } | |
19039 | arg6 = static_cast< double >(val6); | |
19040 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
19041 | if (!SWIG_IsOK(ecode7)) { | |
19042 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
19043 | } | |
19044 | arg7 = static_cast< double >(val7); | |
19045 | { | |
19046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19047 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
19048 | wxPyEndAllowThreads(__tstate); | |
19049 | if (PyErr_Occurred()) SWIG_fail; | |
19050 | } | |
19051 | resultobj = SWIG_Py_Void(); | |
19052 | return resultobj; | |
19053 | fail: | |
19054 | return NULL; | |
19055 | } | |
19056 | ||
19057 | ||
19058 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19059 | PyObject *resultobj = 0; | |
19060 | wxDC *arg1 = (wxDC *) 0 ; | |
19061 | wxPoint *arg2 = 0 ; | |
19062 | wxSize *arg3 = 0 ; | |
19063 | double arg4 ; | |
19064 | double arg5 ; | |
19065 | void *argp1 = 0 ; | |
19066 | int res1 = 0 ; | |
19067 | wxPoint temp2 ; | |
19068 | wxSize temp3 ; | |
19069 | double val4 ; | |
19070 | int ecode4 = 0 ; | |
19071 | double val5 ; | |
19072 | int ecode5 = 0 ; | |
19073 | PyObject * obj0 = 0 ; | |
19074 | PyObject * obj1 = 0 ; | |
19075 | PyObject * obj2 = 0 ; | |
19076 | PyObject * obj3 = 0 ; | |
19077 | PyObject * obj4 = 0 ; | |
19078 | char * kwnames[] = { | |
19079 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
19080 | }; | |
19081 | ||
19082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19084 | if (!SWIG_IsOK(res1)) { | |
19085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19086 | } | |
19087 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19088 | { | |
19089 | arg2 = &temp2; | |
19090 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19091 | } | |
19092 | { | |
19093 | arg3 = &temp3; | |
19094 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19095 | } | |
19096 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19097 | if (!SWIG_IsOK(ecode4)) { | |
19098 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
19099 | } | |
19100 | arg4 = static_cast< double >(val4); | |
19101 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19102 | if (!SWIG_IsOK(ecode5)) { | |
19103 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
19104 | } | |
19105 | arg5 = static_cast< double >(val5); | |
19106 | { | |
19107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19108 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
19109 | wxPyEndAllowThreads(__tstate); | |
19110 | if (PyErr_Occurred()) SWIG_fail; | |
19111 | } | |
19112 | resultobj = SWIG_Py_Void(); | |
19113 | return resultobj; | |
19114 | fail: | |
19115 | return NULL; | |
19116 | } | |
19117 | ||
19118 | ||
19119 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19120 | PyObject *resultobj = 0; | |
19121 | wxDC *arg1 = (wxDC *) 0 ; | |
19122 | int arg2 ; | |
19123 | int arg3 ; | |
19124 | void *argp1 = 0 ; | |
19125 | int res1 = 0 ; | |
19126 | int val2 ; | |
19127 | int ecode2 = 0 ; | |
19128 | int val3 ; | |
19129 | int ecode3 = 0 ; | |
19130 | PyObject * obj0 = 0 ; | |
19131 | PyObject * obj1 = 0 ; | |
19132 | PyObject * obj2 = 0 ; | |
19133 | char * kwnames[] = { | |
19134 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19135 | }; | |
19136 | ||
19137 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19138 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19139 | if (!SWIG_IsOK(res1)) { | |
19140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19141 | } | |
19142 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19143 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19144 | if (!SWIG_IsOK(ecode2)) { | |
19145 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
19146 | } | |
19147 | arg2 = static_cast< int >(val2); | |
19148 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19149 | if (!SWIG_IsOK(ecode3)) { | |
19150 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
19151 | } | |
19152 | arg3 = static_cast< int >(val3); | |
19153 | { | |
19154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19155 | (arg1)->DrawPoint(arg2,arg3); | |
19156 | wxPyEndAllowThreads(__tstate); | |
19157 | if (PyErr_Occurred()) SWIG_fail; | |
19158 | } | |
19159 | resultobj = SWIG_Py_Void(); | |
19160 | return resultobj; | |
19161 | fail: | |
19162 | return NULL; | |
19163 | } | |
19164 | ||
19165 | ||
19166 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19167 | PyObject *resultobj = 0; | |
19168 | wxDC *arg1 = (wxDC *) 0 ; | |
19169 | wxPoint *arg2 = 0 ; | |
19170 | void *argp1 = 0 ; | |
19171 | int res1 = 0 ; | |
19172 | wxPoint temp2 ; | |
19173 | PyObject * obj0 = 0 ; | |
19174 | PyObject * obj1 = 0 ; | |
19175 | char * kwnames[] = { | |
19176 | (char *) "self",(char *) "pt", NULL | |
19177 | }; | |
19178 | ||
19179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
19180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19181 | if (!SWIG_IsOK(res1)) { | |
19182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19183 | } | |
19184 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19185 | { | |
19186 | arg2 = &temp2; | |
19187 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19188 | } | |
19189 | { | |
19190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19191 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
19192 | wxPyEndAllowThreads(__tstate); | |
19193 | if (PyErr_Occurred()) SWIG_fail; | |
19194 | } | |
19195 | resultobj = SWIG_Py_Void(); | |
19196 | return resultobj; | |
19197 | fail: | |
19198 | return NULL; | |
19199 | } | |
19200 | ||
19201 | ||
19202 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19203 | PyObject *resultobj = 0; | |
19204 | wxDC *arg1 = (wxDC *) 0 ; | |
19205 | int arg2 ; | |
19206 | int arg3 ; | |
19207 | int arg4 ; | |
19208 | int arg5 ; | |
19209 | void *argp1 = 0 ; | |
19210 | int res1 = 0 ; | |
19211 | int val2 ; | |
19212 | int ecode2 = 0 ; | |
19213 | int val3 ; | |
19214 | int ecode3 = 0 ; | |
19215 | int val4 ; | |
19216 | int ecode4 = 0 ; | |
19217 | int val5 ; | |
19218 | int ecode5 = 0 ; | |
19219 | PyObject * obj0 = 0 ; | |
19220 | PyObject * obj1 = 0 ; | |
19221 | PyObject * obj2 = 0 ; | |
19222 | PyObject * obj3 = 0 ; | |
19223 | PyObject * obj4 = 0 ; | |
19224 | char * kwnames[] = { | |
19225 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19226 | }; | |
19227 | ||
19228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19230 | if (!SWIG_IsOK(res1)) { | |
19231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19232 | } | |
19233 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19234 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19235 | if (!SWIG_IsOK(ecode2)) { | |
19236 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
19237 | } | |
19238 | arg2 = static_cast< int >(val2); | |
19239 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19240 | if (!SWIG_IsOK(ecode3)) { | |
19241 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
19242 | } | |
19243 | arg3 = static_cast< int >(val3); | |
19244 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19245 | if (!SWIG_IsOK(ecode4)) { | |
19246 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
19247 | } | |
19248 | arg4 = static_cast< int >(val4); | |
19249 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19250 | if (!SWIG_IsOK(ecode5)) { | |
19251 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
19252 | } | |
19253 | arg5 = static_cast< int >(val5); | |
19254 | { | |
19255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19256 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
19257 | wxPyEndAllowThreads(__tstate); | |
19258 | if (PyErr_Occurred()) SWIG_fail; | |
19259 | } | |
19260 | resultobj = SWIG_Py_Void(); | |
19261 | return resultobj; | |
19262 | fail: | |
19263 | return NULL; | |
19264 | } | |
19265 | ||
19266 | ||
19267 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19268 | PyObject *resultobj = 0; | |
19269 | wxDC *arg1 = (wxDC *) 0 ; | |
19270 | wxRect *arg2 = 0 ; | |
19271 | void *argp1 = 0 ; | |
19272 | int res1 = 0 ; | |
19273 | wxRect temp2 ; | |
19274 | PyObject * obj0 = 0 ; | |
19275 | PyObject * obj1 = 0 ; | |
19276 | char * kwnames[] = { | |
19277 | (char *) "self",(char *) "rect", NULL | |
19278 | }; | |
19279 | ||
19280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19282 | if (!SWIG_IsOK(res1)) { | |
19283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19284 | } | |
19285 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19286 | { | |
19287 | arg2 = &temp2; | |
19288 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19289 | } | |
19290 | { | |
19291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19292 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
19293 | wxPyEndAllowThreads(__tstate); | |
19294 | if (PyErr_Occurred()) SWIG_fail; | |
19295 | } | |
19296 | resultobj = SWIG_Py_Void(); | |
19297 | return resultobj; | |
19298 | fail: | |
19299 | return NULL; | |
19300 | } | |
19301 | ||
19302 | ||
19303 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19304 | PyObject *resultobj = 0; | |
19305 | wxDC *arg1 = (wxDC *) 0 ; | |
19306 | wxPoint *arg2 = 0 ; | |
19307 | wxSize *arg3 = 0 ; | |
19308 | void *argp1 = 0 ; | |
19309 | int res1 = 0 ; | |
19310 | wxPoint temp2 ; | |
19311 | wxSize temp3 ; | |
19312 | PyObject * obj0 = 0 ; | |
19313 | PyObject * obj1 = 0 ; | |
19314 | PyObject * obj2 = 0 ; | |
19315 | char * kwnames[] = { | |
19316 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19317 | }; | |
19318 | ||
19319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19321 | if (!SWIG_IsOK(res1)) { | |
19322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19323 | } | |
19324 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19325 | { | |
19326 | arg2 = &temp2; | |
19327 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19328 | } | |
19329 | { | |
19330 | arg3 = &temp3; | |
19331 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19332 | } | |
19333 | { | |
19334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19335 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19336 | wxPyEndAllowThreads(__tstate); | |
19337 | if (PyErr_Occurred()) SWIG_fail; | |
19338 | } | |
19339 | resultobj = SWIG_Py_Void(); | |
19340 | return resultobj; | |
19341 | fail: | |
19342 | return NULL; | |
19343 | } | |
19344 | ||
19345 | ||
19346 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19347 | PyObject *resultobj = 0; | |
19348 | wxDC *arg1 = (wxDC *) 0 ; | |
19349 | int arg2 ; | |
19350 | int arg3 ; | |
19351 | int arg4 ; | |
19352 | int arg5 ; | |
19353 | double arg6 ; | |
19354 | void *argp1 = 0 ; | |
19355 | int res1 = 0 ; | |
19356 | int val2 ; | |
19357 | int ecode2 = 0 ; | |
19358 | int val3 ; | |
19359 | int ecode3 = 0 ; | |
19360 | int val4 ; | |
19361 | int ecode4 = 0 ; | |
19362 | int val5 ; | |
19363 | int ecode5 = 0 ; | |
19364 | double val6 ; | |
19365 | int ecode6 = 0 ; | |
19366 | PyObject * obj0 = 0 ; | |
19367 | PyObject * obj1 = 0 ; | |
19368 | PyObject * obj2 = 0 ; | |
19369 | PyObject * obj3 = 0 ; | |
19370 | PyObject * obj4 = 0 ; | |
19371 | PyObject * obj5 = 0 ; | |
19372 | char * kwnames[] = { | |
19373 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
19374 | }; | |
19375 | ||
19376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
19377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19378 | if (!SWIG_IsOK(res1)) { | |
19379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19380 | } | |
19381 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19382 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19383 | if (!SWIG_IsOK(ecode2)) { | |
19384 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
19385 | } | |
19386 | arg2 = static_cast< int >(val2); | |
19387 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19388 | if (!SWIG_IsOK(ecode3)) { | |
19389 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
19390 | } | |
19391 | arg3 = static_cast< int >(val3); | |
19392 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19393 | if (!SWIG_IsOK(ecode4)) { | |
19394 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
19395 | } | |
19396 | arg4 = static_cast< int >(val4); | |
19397 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19398 | if (!SWIG_IsOK(ecode5)) { | |
19399 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
19400 | } | |
19401 | arg5 = static_cast< int >(val5); | |
19402 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
19403 | if (!SWIG_IsOK(ecode6)) { | |
19404 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
19405 | } | |
19406 | arg6 = static_cast< double >(val6); | |
19407 | { | |
19408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19409 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
19410 | wxPyEndAllowThreads(__tstate); | |
19411 | if (PyErr_Occurred()) SWIG_fail; | |
19412 | } | |
19413 | resultobj = SWIG_Py_Void(); | |
19414 | return resultobj; | |
19415 | fail: | |
19416 | return NULL; | |
19417 | } | |
19418 | ||
19419 | ||
19420 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19421 | PyObject *resultobj = 0; | |
19422 | wxDC *arg1 = (wxDC *) 0 ; | |
19423 | wxRect *arg2 = 0 ; | |
19424 | double arg3 ; | |
19425 | void *argp1 = 0 ; | |
19426 | int res1 = 0 ; | |
19427 | wxRect temp2 ; | |
19428 | double val3 ; | |
19429 | int ecode3 = 0 ; | |
19430 | PyObject * obj0 = 0 ; | |
19431 | PyObject * obj1 = 0 ; | |
19432 | PyObject * obj2 = 0 ; | |
19433 | char * kwnames[] = { | |
19434 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
19435 | }; | |
19436 | ||
19437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19439 | if (!SWIG_IsOK(res1)) { | |
19440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19441 | } | |
19442 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19443 | { | |
19444 | arg2 = &temp2; | |
19445 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19446 | } | |
19447 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19448 | if (!SWIG_IsOK(ecode3)) { | |
19449 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
19450 | } | |
19451 | arg3 = static_cast< double >(val3); | |
19452 | { | |
19453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19454 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
19455 | wxPyEndAllowThreads(__tstate); | |
19456 | if (PyErr_Occurred()) SWIG_fail; | |
19457 | } | |
19458 | resultobj = SWIG_Py_Void(); | |
19459 | return resultobj; | |
19460 | fail: | |
19461 | return NULL; | |
19462 | } | |
19463 | ||
19464 | ||
19465 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19466 | PyObject *resultobj = 0; | |
19467 | wxDC *arg1 = (wxDC *) 0 ; | |
19468 | wxPoint *arg2 = 0 ; | |
19469 | wxSize *arg3 = 0 ; | |
19470 | double arg4 ; | |
19471 | void *argp1 = 0 ; | |
19472 | int res1 = 0 ; | |
19473 | wxPoint temp2 ; | |
19474 | wxSize temp3 ; | |
19475 | double val4 ; | |
19476 | int ecode4 = 0 ; | |
19477 | PyObject * obj0 = 0 ; | |
19478 | PyObject * obj1 = 0 ; | |
19479 | PyObject * obj2 = 0 ; | |
19480 | PyObject * obj3 = 0 ; | |
19481 | char * kwnames[] = { | |
19482 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
19483 | }; | |
19484 | ||
19485 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19486 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19487 | if (!SWIG_IsOK(res1)) { | |
19488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19489 | } | |
19490 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19491 | { | |
19492 | arg2 = &temp2; | |
19493 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19494 | } | |
19495 | { | |
19496 | arg3 = &temp3; | |
19497 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19498 | } | |
19499 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19500 | if (!SWIG_IsOK(ecode4)) { | |
19501 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
19502 | } | |
19503 | arg4 = static_cast< double >(val4); | |
19504 | { | |
19505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19506 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
19507 | wxPyEndAllowThreads(__tstate); | |
19508 | if (PyErr_Occurred()) SWIG_fail; | |
19509 | } | |
19510 | resultobj = SWIG_Py_Void(); | |
19511 | return resultobj; | |
19512 | fail: | |
19513 | return NULL; | |
19514 | } | |
19515 | ||
19516 | ||
19517 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19518 | PyObject *resultobj = 0; | |
19519 | wxDC *arg1 = (wxDC *) 0 ; | |
19520 | int arg2 ; | |
19521 | int arg3 ; | |
19522 | int arg4 ; | |
19523 | void *argp1 = 0 ; | |
19524 | int res1 = 0 ; | |
19525 | int val2 ; | |
19526 | int ecode2 = 0 ; | |
19527 | int val3 ; | |
19528 | int ecode3 = 0 ; | |
19529 | int val4 ; | |
19530 | int ecode4 = 0 ; | |
19531 | PyObject * obj0 = 0 ; | |
19532 | PyObject * obj1 = 0 ; | |
19533 | PyObject * obj2 = 0 ; | |
19534 | PyObject * obj3 = 0 ; | |
19535 | char * kwnames[] = { | |
19536 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
19537 | }; | |
19538 | ||
19539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19541 | if (!SWIG_IsOK(res1)) { | |
19542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19543 | } | |
19544 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19545 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19546 | if (!SWIG_IsOK(ecode2)) { | |
19547 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
19548 | } | |
19549 | arg2 = static_cast< int >(val2); | |
19550 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19551 | if (!SWIG_IsOK(ecode3)) { | |
19552 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
19553 | } | |
19554 | arg3 = static_cast< int >(val3); | |
19555 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19556 | if (!SWIG_IsOK(ecode4)) { | |
19557 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
19558 | } | |
19559 | arg4 = static_cast< int >(val4); | |
19560 | { | |
19561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19562 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
19563 | wxPyEndAllowThreads(__tstate); | |
19564 | if (PyErr_Occurred()) SWIG_fail; | |
19565 | } | |
19566 | resultobj = SWIG_Py_Void(); | |
19567 | return resultobj; | |
19568 | fail: | |
19569 | return NULL; | |
19570 | } | |
19571 | ||
19572 | ||
19573 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19574 | PyObject *resultobj = 0; | |
19575 | wxDC *arg1 = (wxDC *) 0 ; | |
19576 | wxPoint *arg2 = 0 ; | |
19577 | int arg3 ; | |
19578 | void *argp1 = 0 ; | |
19579 | int res1 = 0 ; | |
19580 | wxPoint temp2 ; | |
19581 | int val3 ; | |
19582 | int ecode3 = 0 ; | |
19583 | PyObject * obj0 = 0 ; | |
19584 | PyObject * obj1 = 0 ; | |
19585 | PyObject * obj2 = 0 ; | |
19586 | char * kwnames[] = { | |
19587 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
19588 | }; | |
19589 | ||
19590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19592 | if (!SWIG_IsOK(res1)) { | |
19593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19594 | } | |
19595 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19596 | { | |
19597 | arg2 = &temp2; | |
19598 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19599 | } | |
19600 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19601 | if (!SWIG_IsOK(ecode3)) { | |
19602 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
19603 | } | |
19604 | arg3 = static_cast< int >(val3); | |
19605 | { | |
19606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19607 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
19608 | wxPyEndAllowThreads(__tstate); | |
19609 | if (PyErr_Occurred()) SWIG_fail; | |
19610 | } | |
19611 | resultobj = SWIG_Py_Void(); | |
19612 | return resultobj; | |
19613 | fail: | |
19614 | return NULL; | |
19615 | } | |
19616 | ||
19617 | ||
19618 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19619 | PyObject *resultobj = 0; | |
19620 | wxDC *arg1 = (wxDC *) 0 ; | |
19621 | int arg2 ; | |
19622 | int arg3 ; | |
19623 | int arg4 ; | |
19624 | int arg5 ; | |
19625 | void *argp1 = 0 ; | |
19626 | int res1 = 0 ; | |
19627 | int val2 ; | |
19628 | int ecode2 = 0 ; | |
19629 | int val3 ; | |
19630 | int ecode3 = 0 ; | |
19631 | int val4 ; | |
19632 | int ecode4 = 0 ; | |
19633 | int val5 ; | |
19634 | int ecode5 = 0 ; | |
19635 | PyObject * obj0 = 0 ; | |
19636 | PyObject * obj1 = 0 ; | |
19637 | PyObject * obj2 = 0 ; | |
19638 | PyObject * obj3 = 0 ; | |
19639 | PyObject * obj4 = 0 ; | |
19640 | char * kwnames[] = { | |
19641 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19642 | }; | |
19643 | ||
19644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19646 | if (!SWIG_IsOK(res1)) { | |
19647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19648 | } | |
19649 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19650 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19651 | if (!SWIG_IsOK(ecode2)) { | |
19652 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
19653 | } | |
19654 | arg2 = static_cast< int >(val2); | |
19655 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19656 | if (!SWIG_IsOK(ecode3)) { | |
19657 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
19658 | } | |
19659 | arg3 = static_cast< int >(val3); | |
19660 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19661 | if (!SWIG_IsOK(ecode4)) { | |
19662 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
19663 | } | |
19664 | arg4 = static_cast< int >(val4); | |
19665 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19666 | if (!SWIG_IsOK(ecode5)) { | |
19667 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
19668 | } | |
19669 | arg5 = static_cast< int >(val5); | |
19670 | { | |
19671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19672 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
19673 | wxPyEndAllowThreads(__tstate); | |
19674 | if (PyErr_Occurred()) SWIG_fail; | |
19675 | } | |
19676 | resultobj = SWIG_Py_Void(); | |
19677 | return resultobj; | |
19678 | fail: | |
19679 | return NULL; | |
19680 | } | |
19681 | ||
19682 | ||
19683 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19684 | PyObject *resultobj = 0; | |
19685 | wxDC *arg1 = (wxDC *) 0 ; | |
19686 | wxRect *arg2 = 0 ; | |
19687 | void *argp1 = 0 ; | |
19688 | int res1 = 0 ; | |
19689 | wxRect temp2 ; | |
19690 | PyObject * obj0 = 0 ; | |
19691 | PyObject * obj1 = 0 ; | |
19692 | char * kwnames[] = { | |
19693 | (char *) "self",(char *) "rect", NULL | |
19694 | }; | |
19695 | ||
19696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19698 | if (!SWIG_IsOK(res1)) { | |
19699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19700 | } | |
19701 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19702 | { | |
19703 | arg2 = &temp2; | |
19704 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19705 | } | |
19706 | { | |
19707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19708 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
19709 | wxPyEndAllowThreads(__tstate); | |
19710 | if (PyErr_Occurred()) SWIG_fail; | |
19711 | } | |
19712 | resultobj = SWIG_Py_Void(); | |
19713 | return resultobj; | |
19714 | fail: | |
19715 | return NULL; | |
19716 | } | |
19717 | ||
19718 | ||
19719 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19720 | PyObject *resultobj = 0; | |
19721 | wxDC *arg1 = (wxDC *) 0 ; | |
19722 | wxPoint *arg2 = 0 ; | |
19723 | wxSize *arg3 = 0 ; | |
19724 | void *argp1 = 0 ; | |
19725 | int res1 = 0 ; | |
19726 | wxPoint temp2 ; | |
19727 | wxSize temp3 ; | |
19728 | PyObject * obj0 = 0 ; | |
19729 | PyObject * obj1 = 0 ; | |
19730 | PyObject * obj2 = 0 ; | |
19731 | char * kwnames[] = { | |
19732 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19733 | }; | |
19734 | ||
19735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19737 | if (!SWIG_IsOK(res1)) { | |
19738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19739 | } | |
19740 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19741 | { | |
19742 | arg2 = &temp2; | |
19743 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19744 | } | |
19745 | { | |
19746 | arg3 = &temp3; | |
19747 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19748 | } | |
19749 | { | |
19750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19751 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19752 | wxPyEndAllowThreads(__tstate); | |
19753 | if (PyErr_Occurred()) SWIG_fail; | |
19754 | } | |
19755 | resultobj = SWIG_Py_Void(); | |
19756 | return resultobj; | |
19757 | fail: | |
19758 | return NULL; | |
19759 | } | |
19760 | ||
19761 | ||
19762 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19763 | PyObject *resultobj = 0; | |
19764 | wxDC *arg1 = (wxDC *) 0 ; | |
19765 | wxIcon *arg2 = 0 ; | |
19766 | int arg3 ; | |
19767 | int arg4 ; | |
19768 | void *argp1 = 0 ; | |
19769 | int res1 = 0 ; | |
19770 | void *argp2 = 0 ; | |
19771 | int res2 = 0 ; | |
19772 | int val3 ; | |
19773 | int ecode3 = 0 ; | |
19774 | int val4 ; | |
19775 | int ecode4 = 0 ; | |
19776 | PyObject * obj0 = 0 ; | |
19777 | PyObject * obj1 = 0 ; | |
19778 | PyObject * obj2 = 0 ; | |
19779 | PyObject * obj3 = 0 ; | |
19780 | char * kwnames[] = { | |
19781 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
19782 | }; | |
19783 | ||
19784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19785 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19786 | if (!SWIG_IsOK(res1)) { | |
19787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19788 | } | |
19789 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19790 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19791 | if (!SWIG_IsOK(res2)) { | |
19792 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19793 | } | |
19794 | if (!argp2) { | |
19795 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19796 | } | |
19797 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19798 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19799 | if (!SWIG_IsOK(ecode3)) { | |
19800 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19801 | } | |
19802 | arg3 = static_cast< int >(val3); | |
19803 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19804 | if (!SWIG_IsOK(ecode4)) { | |
19805 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19806 | } | |
19807 | arg4 = static_cast< int >(val4); | |
19808 | { | |
19809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19810 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19811 | wxPyEndAllowThreads(__tstate); | |
19812 | if (PyErr_Occurred()) SWIG_fail; | |
19813 | } | |
19814 | resultobj = SWIG_Py_Void(); | |
19815 | return resultobj; | |
19816 | fail: | |
19817 | return NULL; | |
19818 | } | |
19819 | ||
19820 | ||
19821 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19822 | PyObject *resultobj = 0; | |
19823 | wxDC *arg1 = (wxDC *) 0 ; | |
19824 | wxIcon *arg2 = 0 ; | |
19825 | wxPoint *arg3 = 0 ; | |
19826 | void *argp1 = 0 ; | |
19827 | int res1 = 0 ; | |
19828 | void *argp2 = 0 ; | |
19829 | int res2 = 0 ; | |
19830 | wxPoint temp3 ; | |
19831 | PyObject * obj0 = 0 ; | |
19832 | PyObject * obj1 = 0 ; | |
19833 | PyObject * obj2 = 0 ; | |
19834 | char * kwnames[] = { | |
19835 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19836 | }; | |
19837 | ||
19838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19840 | if (!SWIG_IsOK(res1)) { | |
19841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19842 | } | |
19843 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19844 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19845 | if (!SWIG_IsOK(res2)) { | |
19846 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19847 | } | |
19848 | if (!argp2) { | |
19849 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19850 | } | |
19851 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19852 | { | |
19853 | arg3 = &temp3; | |
19854 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19855 | } | |
19856 | { | |
19857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19858 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
19859 | wxPyEndAllowThreads(__tstate); | |
19860 | if (PyErr_Occurred()) SWIG_fail; | |
19861 | } | |
19862 | resultobj = SWIG_Py_Void(); | |
19863 | return resultobj; | |
19864 | fail: | |
19865 | return NULL; | |
19866 | } | |
19867 | ||
19868 | ||
19869 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19870 | PyObject *resultobj = 0; | |
19871 | wxDC *arg1 = (wxDC *) 0 ; | |
19872 | wxBitmap *arg2 = 0 ; | |
19873 | int arg3 ; | |
19874 | int arg4 ; | |
19875 | bool arg5 = (bool) false ; | |
19876 | void *argp1 = 0 ; | |
19877 | int res1 = 0 ; | |
19878 | void *argp2 = 0 ; | |
19879 | int res2 = 0 ; | |
19880 | int val3 ; | |
19881 | int ecode3 = 0 ; | |
19882 | int val4 ; | |
19883 | int ecode4 = 0 ; | |
19884 | bool val5 ; | |
19885 | int ecode5 = 0 ; | |
19886 | PyObject * obj0 = 0 ; | |
19887 | PyObject * obj1 = 0 ; | |
19888 | PyObject * obj2 = 0 ; | |
19889 | PyObject * obj3 = 0 ; | |
19890 | PyObject * obj4 = 0 ; | |
19891 | char * kwnames[] = { | |
19892 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19893 | }; | |
19894 | ||
19895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19897 | if (!SWIG_IsOK(res1)) { | |
19898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19899 | } | |
19900 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19901 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19902 | if (!SWIG_IsOK(res2)) { | |
19903 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19904 | } | |
19905 | if (!argp2) { | |
19906 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19907 | } | |
19908 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19909 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19910 | if (!SWIG_IsOK(ecode3)) { | |
19911 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19912 | } | |
19913 | arg3 = static_cast< int >(val3); | |
19914 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19915 | if (!SWIG_IsOK(ecode4)) { | |
19916 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19917 | } | |
19918 | arg4 = static_cast< int >(val4); | |
19919 | if (obj4) { | |
19920 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19921 | if (!SWIG_IsOK(ecode5)) { | |
19922 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19923 | } | |
19924 | arg5 = static_cast< bool >(val5); | |
19925 | } | |
19926 | { | |
19927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19928 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19929 | wxPyEndAllowThreads(__tstate); | |
19930 | if (PyErr_Occurred()) SWIG_fail; | |
19931 | } | |
19932 | resultobj = SWIG_Py_Void(); | |
19933 | return resultobj; | |
19934 | fail: | |
19935 | return NULL; | |
19936 | } | |
19937 | ||
19938 | ||
19939 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19940 | PyObject *resultobj = 0; | |
19941 | wxDC *arg1 = (wxDC *) 0 ; | |
19942 | wxBitmap *arg2 = 0 ; | |
19943 | wxPoint *arg3 = 0 ; | |
19944 | bool arg4 = (bool) false ; | |
19945 | void *argp1 = 0 ; | |
19946 | int res1 = 0 ; | |
19947 | void *argp2 = 0 ; | |
19948 | int res2 = 0 ; | |
19949 | wxPoint temp3 ; | |
19950 | bool val4 ; | |
19951 | int ecode4 = 0 ; | |
19952 | PyObject * obj0 = 0 ; | |
19953 | PyObject * obj1 = 0 ; | |
19954 | PyObject * obj2 = 0 ; | |
19955 | PyObject * obj3 = 0 ; | |
19956 | char * kwnames[] = { | |
19957 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19958 | }; | |
19959 | ||
19960 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19962 | if (!SWIG_IsOK(res1)) { | |
19963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19964 | } | |
19965 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19966 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19967 | if (!SWIG_IsOK(res2)) { | |
19968 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19969 | } | |
19970 | if (!argp2) { | |
19971 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19972 | } | |
19973 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19974 | { | |
19975 | arg3 = &temp3; | |
19976 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19977 | } | |
19978 | if (obj3) { | |
19979 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19980 | if (!SWIG_IsOK(ecode4)) { | |
19981 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
19982 | } | |
19983 | arg4 = static_cast< bool >(val4); | |
19984 | } | |
19985 | { | |
19986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19987 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19988 | wxPyEndAllowThreads(__tstate); | |
19989 | if (PyErr_Occurred()) SWIG_fail; | |
19990 | } | |
19991 | resultobj = SWIG_Py_Void(); | |
19992 | return resultobj; | |
19993 | fail: | |
19994 | return NULL; | |
19995 | } | |
19996 | ||
19997 | ||
19998 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19999 | PyObject *resultobj = 0; | |
20000 | wxDC *arg1 = (wxDC *) 0 ; | |
20001 | wxString *arg2 = 0 ; | |
20002 | int arg3 ; | |
20003 | int arg4 ; | |
20004 | void *argp1 = 0 ; | |
20005 | int res1 = 0 ; | |
20006 | bool temp2 = false ; | |
20007 | int val3 ; | |
20008 | int ecode3 = 0 ; | |
20009 | int val4 ; | |
20010 | int ecode4 = 0 ; | |
20011 | PyObject * obj0 = 0 ; | |
20012 | PyObject * obj1 = 0 ; | |
20013 | PyObject * obj2 = 0 ; | |
20014 | PyObject * obj3 = 0 ; | |
20015 | char * kwnames[] = { | |
20016 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
20017 | }; | |
20018 | ||
20019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20021 | if (!SWIG_IsOK(res1)) { | |
20022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20023 | } | |
20024 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20025 | { | |
20026 | arg2 = wxString_in_helper(obj1); | |
20027 | if (arg2 == NULL) SWIG_fail; | |
20028 | temp2 = true; | |
20029 | } | |
20030 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20031 | if (!SWIG_IsOK(ecode3)) { | |
20032 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
20033 | } | |
20034 | arg3 = static_cast< int >(val3); | |
20035 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20036 | if (!SWIG_IsOK(ecode4)) { | |
20037 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
20038 | } | |
20039 | arg4 = static_cast< int >(val4); | |
20040 | { | |
20041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20042 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
20043 | wxPyEndAllowThreads(__tstate); | |
20044 | if (PyErr_Occurred()) SWIG_fail; | |
20045 | } | |
20046 | resultobj = SWIG_Py_Void(); | |
20047 | { | |
20048 | if (temp2) | |
20049 | delete arg2; | |
20050 | } | |
20051 | return resultobj; | |
20052 | fail: | |
20053 | { | |
20054 | if (temp2) | |
20055 | delete arg2; | |
20056 | } | |
20057 | return NULL; | |
20058 | } | |
20059 | ||
20060 | ||
20061 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20062 | PyObject *resultobj = 0; | |
20063 | wxDC *arg1 = (wxDC *) 0 ; | |
20064 | wxString *arg2 = 0 ; | |
20065 | wxPoint *arg3 = 0 ; | |
20066 | void *argp1 = 0 ; | |
20067 | int res1 = 0 ; | |
20068 | bool temp2 = false ; | |
20069 | wxPoint temp3 ; | |
20070 | PyObject * obj0 = 0 ; | |
20071 | PyObject * obj1 = 0 ; | |
20072 | PyObject * obj2 = 0 ; | |
20073 | char * kwnames[] = { | |
20074 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
20075 | }; | |
20076 | ||
20077 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20078 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20079 | if (!SWIG_IsOK(res1)) { | |
20080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20081 | } | |
20082 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20083 | { | |
20084 | arg2 = wxString_in_helper(obj1); | |
20085 | if (arg2 == NULL) SWIG_fail; | |
20086 | temp2 = true; | |
20087 | } | |
20088 | { | |
20089 | arg3 = &temp3; | |
20090 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20091 | } | |
20092 | { | |
20093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20094 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
20095 | wxPyEndAllowThreads(__tstate); | |
20096 | if (PyErr_Occurred()) SWIG_fail; | |
20097 | } | |
20098 | resultobj = SWIG_Py_Void(); | |
20099 | { | |
20100 | if (temp2) | |
20101 | delete arg2; | |
20102 | } | |
20103 | return resultobj; | |
20104 | fail: | |
20105 | { | |
20106 | if (temp2) | |
20107 | delete arg2; | |
20108 | } | |
20109 | return NULL; | |
20110 | } | |
20111 | ||
20112 | ||
20113 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20114 | PyObject *resultobj = 0; | |
20115 | wxDC *arg1 = (wxDC *) 0 ; | |
20116 | wxString *arg2 = 0 ; | |
20117 | int arg3 ; | |
20118 | int arg4 ; | |
20119 | double arg5 ; | |
20120 | void *argp1 = 0 ; | |
20121 | int res1 = 0 ; | |
20122 | bool temp2 = false ; | |
20123 | int val3 ; | |
20124 | int ecode3 = 0 ; | |
20125 | int val4 ; | |
20126 | int ecode4 = 0 ; | |
20127 | double val5 ; | |
20128 | int ecode5 = 0 ; | |
20129 | PyObject * obj0 = 0 ; | |
20130 | PyObject * obj1 = 0 ; | |
20131 | PyObject * obj2 = 0 ; | |
20132 | PyObject * obj3 = 0 ; | |
20133 | PyObject * obj4 = 0 ; | |
20134 | char * kwnames[] = { | |
20135 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
20136 | }; | |
20137 | ||
20138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20140 | if (!SWIG_IsOK(res1)) { | |
20141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20142 | } | |
20143 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20144 | { | |
20145 | arg2 = wxString_in_helper(obj1); | |
20146 | if (arg2 == NULL) SWIG_fail; | |
20147 | temp2 = true; | |
20148 | } | |
20149 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20150 | if (!SWIG_IsOK(ecode3)) { | |
20151 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
20152 | } | |
20153 | arg3 = static_cast< int >(val3); | |
20154 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20155 | if (!SWIG_IsOK(ecode4)) { | |
20156 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
20157 | } | |
20158 | arg4 = static_cast< int >(val4); | |
20159 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
20160 | if (!SWIG_IsOK(ecode5)) { | |
20161 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
20162 | } | |
20163 | arg5 = static_cast< double >(val5); | |
20164 | { | |
20165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20166 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
20167 | wxPyEndAllowThreads(__tstate); | |
20168 | if (PyErr_Occurred()) SWIG_fail; | |
20169 | } | |
20170 | resultobj = SWIG_Py_Void(); | |
20171 | { | |
20172 | if (temp2) | |
20173 | delete arg2; | |
20174 | } | |
20175 | return resultobj; | |
20176 | fail: | |
20177 | { | |
20178 | if (temp2) | |
20179 | delete arg2; | |
20180 | } | |
20181 | return NULL; | |
20182 | } | |
20183 | ||
20184 | ||
20185 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20186 | PyObject *resultobj = 0; | |
20187 | wxDC *arg1 = (wxDC *) 0 ; | |
20188 | wxString *arg2 = 0 ; | |
20189 | wxPoint *arg3 = 0 ; | |
20190 | double arg4 ; | |
20191 | void *argp1 = 0 ; | |
20192 | int res1 = 0 ; | |
20193 | bool temp2 = false ; | |
20194 | wxPoint temp3 ; | |
20195 | double val4 ; | |
20196 | int ecode4 = 0 ; | |
20197 | PyObject * obj0 = 0 ; | |
20198 | PyObject * obj1 = 0 ; | |
20199 | PyObject * obj2 = 0 ; | |
20200 | PyObject * obj3 = 0 ; | |
20201 | char * kwnames[] = { | |
20202 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
20203 | }; | |
20204 | ||
20205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20207 | if (!SWIG_IsOK(res1)) { | |
20208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20209 | } | |
20210 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20211 | { | |
20212 | arg2 = wxString_in_helper(obj1); | |
20213 | if (arg2 == NULL) SWIG_fail; | |
20214 | temp2 = true; | |
20215 | } | |
20216 | { | |
20217 | arg3 = &temp3; | |
20218 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20219 | } | |
20220 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
20221 | if (!SWIG_IsOK(ecode4)) { | |
20222 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
20223 | } | |
20224 | arg4 = static_cast< double >(val4); | |
20225 | { | |
20226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20227 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
20228 | wxPyEndAllowThreads(__tstate); | |
20229 | if (PyErr_Occurred()) SWIG_fail; | |
20230 | } | |
20231 | resultobj = SWIG_Py_Void(); | |
20232 | { | |
20233 | if (temp2) | |
20234 | delete arg2; | |
20235 | } | |
20236 | return resultobj; | |
20237 | fail: | |
20238 | { | |
20239 | if (temp2) | |
20240 | delete arg2; | |
20241 | } | |
20242 | return NULL; | |
20243 | } | |
20244 | ||
20245 | ||
20246 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20247 | PyObject *resultobj = 0; | |
20248 | wxDC *arg1 = (wxDC *) 0 ; | |
20249 | int arg2 ; | |
20250 | int arg3 ; | |
20251 | int arg4 ; | |
20252 | int arg5 ; | |
20253 | wxDC *arg6 = (wxDC *) 0 ; | |
20254 | int arg7 ; | |
20255 | int arg8 ; | |
20256 | int arg9 = (int) wxCOPY ; | |
20257 | bool arg10 = (bool) false ; | |
20258 | int arg11 = (int) -1 ; | |
20259 | int arg12 = (int) -1 ; | |
20260 | bool result; | |
20261 | void *argp1 = 0 ; | |
20262 | int res1 = 0 ; | |
20263 | int val2 ; | |
20264 | int ecode2 = 0 ; | |
20265 | int val3 ; | |
20266 | int ecode3 = 0 ; | |
20267 | int val4 ; | |
20268 | int ecode4 = 0 ; | |
20269 | int val5 ; | |
20270 | int ecode5 = 0 ; | |
20271 | void *argp6 = 0 ; | |
20272 | int res6 = 0 ; | |
20273 | int val7 ; | |
20274 | int ecode7 = 0 ; | |
20275 | int val8 ; | |
20276 | int ecode8 = 0 ; | |
20277 | int val9 ; | |
20278 | int ecode9 = 0 ; | |
20279 | bool val10 ; | |
20280 | int ecode10 = 0 ; | |
20281 | int val11 ; | |
20282 | int ecode11 = 0 ; | |
20283 | int val12 ; | |
20284 | int ecode12 = 0 ; | |
20285 | PyObject * obj0 = 0 ; | |
20286 | PyObject * obj1 = 0 ; | |
20287 | PyObject * obj2 = 0 ; | |
20288 | PyObject * obj3 = 0 ; | |
20289 | PyObject * obj4 = 0 ; | |
20290 | PyObject * obj5 = 0 ; | |
20291 | PyObject * obj6 = 0 ; | |
20292 | PyObject * obj7 = 0 ; | |
20293 | PyObject * obj8 = 0 ; | |
20294 | PyObject * obj9 = 0 ; | |
20295 | PyObject * obj10 = 0 ; | |
20296 | PyObject * obj11 = 0 ; | |
20297 | char * kwnames[] = { | |
20298 | (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 | |
20299 | }; | |
20300 | ||
20301 | 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; | |
20302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20303 | if (!SWIG_IsOK(res1)) { | |
20304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20305 | } | |
20306 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20307 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20308 | if (!SWIG_IsOK(ecode2)) { | |
20309 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
20310 | } | |
20311 | arg2 = static_cast< int >(val2); | |
20312 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20313 | if (!SWIG_IsOK(ecode3)) { | |
20314 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
20315 | } | |
20316 | arg3 = static_cast< int >(val3); | |
20317 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20318 | if (!SWIG_IsOK(ecode4)) { | |
20319 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
20320 | } | |
20321 | arg4 = static_cast< int >(val4); | |
20322 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20323 | if (!SWIG_IsOK(ecode5)) { | |
20324 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
20325 | } | |
20326 | arg5 = static_cast< int >(val5); | |
20327 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20328 | if (!SWIG_IsOK(res6)) { | |
20329 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
20330 | } | |
20331 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
20332 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
20333 | if (!SWIG_IsOK(ecode7)) { | |
20334 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
20335 | } | |
20336 | arg7 = static_cast< int >(val7); | |
20337 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
20338 | if (!SWIG_IsOK(ecode8)) { | |
20339 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
20340 | } | |
20341 | arg8 = static_cast< int >(val8); | |
20342 | if (obj8) { | |
20343 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
20344 | if (!SWIG_IsOK(ecode9)) { | |
20345 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
20346 | } | |
20347 | arg9 = static_cast< int >(val9); | |
20348 | } | |
20349 | if (obj9) { | |
20350 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
20351 | if (!SWIG_IsOK(ecode10)) { | |
20352 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
20353 | } | |
20354 | arg10 = static_cast< bool >(val10); | |
20355 | } | |
20356 | if (obj10) { | |
20357 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
20358 | if (!SWIG_IsOK(ecode11)) { | |
20359 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
20360 | } | |
20361 | arg11 = static_cast< int >(val11); | |
20362 | } | |
20363 | if (obj11) { | |
20364 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
20365 | if (!SWIG_IsOK(ecode12)) { | |
20366 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
20367 | } | |
20368 | arg12 = static_cast< int >(val12); | |
20369 | } | |
20370 | { | |
20371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20372 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
20373 | wxPyEndAllowThreads(__tstate); | |
20374 | if (PyErr_Occurred()) SWIG_fail; | |
20375 | } | |
20376 | { | |
20377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20378 | } | |
20379 | return resultobj; | |
20380 | fail: | |
20381 | return NULL; | |
20382 | } | |
20383 | ||
20384 | ||
20385 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20386 | PyObject *resultobj = 0; | |
20387 | wxDC *arg1 = (wxDC *) 0 ; | |
20388 | wxPoint *arg2 = 0 ; | |
20389 | wxSize *arg3 = 0 ; | |
20390 | wxDC *arg4 = (wxDC *) 0 ; | |
20391 | wxPoint *arg5 = 0 ; | |
20392 | int arg6 = (int) wxCOPY ; | |
20393 | bool arg7 = (bool) false ; | |
20394 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
20395 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
20396 | bool result; | |
20397 | void *argp1 = 0 ; | |
20398 | int res1 = 0 ; | |
20399 | wxPoint temp2 ; | |
20400 | wxSize temp3 ; | |
20401 | void *argp4 = 0 ; | |
20402 | int res4 = 0 ; | |
20403 | wxPoint temp5 ; | |
20404 | int val6 ; | |
20405 | int ecode6 = 0 ; | |
20406 | bool val7 ; | |
20407 | int ecode7 = 0 ; | |
20408 | wxPoint temp8 ; | |
20409 | PyObject * obj0 = 0 ; | |
20410 | PyObject * obj1 = 0 ; | |
20411 | PyObject * obj2 = 0 ; | |
20412 | PyObject * obj3 = 0 ; | |
20413 | PyObject * obj4 = 0 ; | |
20414 | PyObject * obj5 = 0 ; | |
20415 | PyObject * obj6 = 0 ; | |
20416 | PyObject * obj7 = 0 ; | |
20417 | char * kwnames[] = { | |
20418 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
20419 | }; | |
20420 | ||
20421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20423 | if (!SWIG_IsOK(res1)) { | |
20424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20425 | } | |
20426 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20427 | { | |
20428 | arg2 = &temp2; | |
20429 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20430 | } | |
20431 | { | |
20432 | arg3 = &temp3; | |
20433 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20434 | } | |
20435 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20436 | if (!SWIG_IsOK(res4)) { | |
20437 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
20438 | } | |
20439 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
20440 | { | |
20441 | arg5 = &temp5; | |
20442 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
20443 | } | |
20444 | if (obj5) { | |
20445 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20446 | if (!SWIG_IsOK(ecode6)) { | |
20447 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
20448 | } | |
20449 | arg6 = static_cast< int >(val6); | |
20450 | } | |
20451 | if (obj6) { | |
20452 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
20453 | if (!SWIG_IsOK(ecode7)) { | |
20454 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
20455 | } | |
20456 | arg7 = static_cast< bool >(val7); | |
20457 | } | |
20458 | if (obj7) { | |
093d3ff1 | 20459 | { |
554f62e9 RD |
20460 | arg8 = &temp8; |
20461 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 20462 | } |
554f62e9 RD |
20463 | } |
20464 | { | |
20465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20466 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
20467 | wxPyEndAllowThreads(__tstate); | |
20468 | if (PyErr_Occurred()) SWIG_fail; | |
20469 | } | |
20470 | { | |
20471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20472 | } | |
20473 | return resultobj; | |
20474 | fail: | |
20475 | return NULL; | |
20476 | } | |
20477 | ||
20478 | ||
8f514ab4 RD |
20479 | SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20480 | PyObject *resultobj = 0; | |
20481 | wxDC *arg1 = (wxDC *) 0 ; | |
20482 | wxRect *arg2 = (wxRect *) NULL ; | |
20483 | SwigValueWrapper<wxBitmap > result; | |
20484 | void *argp1 = 0 ; | |
20485 | int res1 = 0 ; | |
20486 | void *argp2 = 0 ; | |
20487 | int res2 = 0 ; | |
20488 | PyObject * obj0 = 0 ; | |
20489 | PyObject * obj1 = 0 ; | |
20490 | char * kwnames[] = { | |
20491 | (char *) "self",(char *) "subrect", NULL | |
20492 | }; | |
20493 | ||
20494 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
20495 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20496 | if (!SWIG_IsOK(res1)) { | |
20497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20498 | } | |
20499 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20500 | if (obj1) { | |
20501 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
20502 | if (!SWIG_IsOK(res2)) { | |
20503 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'"); | |
20504 | } | |
20505 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
20506 | } | |
20507 | { | |
20508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20509 | result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2); | |
20510 | wxPyEndAllowThreads(__tstate); | |
20511 | if (PyErr_Occurred()) SWIG_fail; | |
20512 | } | |
20513 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
20514 | return resultobj; | |
20515 | fail: | |
20516 | return NULL; | |
20517 | } | |
20518 | ||
20519 | ||
554f62e9 RD |
20520 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20521 | PyObject *resultobj = 0; | |
20522 | wxDC *arg1 = (wxDC *) 0 ; | |
20523 | int arg2 ; | |
20524 | int arg3 ; | |
20525 | int arg4 ; | |
20526 | int arg5 ; | |
20527 | void *argp1 = 0 ; | |
20528 | int res1 = 0 ; | |
20529 | int val2 ; | |
20530 | int ecode2 = 0 ; | |
20531 | int val3 ; | |
20532 | int ecode3 = 0 ; | |
20533 | int val4 ; | |
20534 | int ecode4 = 0 ; | |
20535 | int val5 ; | |
20536 | int ecode5 = 0 ; | |
20537 | PyObject * obj0 = 0 ; | |
20538 | PyObject * obj1 = 0 ; | |
20539 | PyObject * obj2 = 0 ; | |
20540 | PyObject * obj3 = 0 ; | |
20541 | PyObject * obj4 = 0 ; | |
20542 | char * kwnames[] = { | |
20543 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
20544 | }; | |
20545 | ||
20546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20548 | if (!SWIG_IsOK(res1)) { | |
20549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20550 | } | |
20551 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20552 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20553 | if (!SWIG_IsOK(ecode2)) { | |
20554 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
20555 | } | |
20556 | arg2 = static_cast< int >(val2); | |
20557 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20558 | if (!SWIG_IsOK(ecode3)) { | |
20559 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
20560 | } | |
20561 | arg3 = static_cast< int >(val3); | |
20562 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20563 | if (!SWIG_IsOK(ecode4)) { | |
20564 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
20565 | } | |
20566 | arg4 = static_cast< int >(val4); | |
20567 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20568 | if (!SWIG_IsOK(ecode5)) { | |
20569 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
20570 | } | |
20571 | arg5 = static_cast< int >(val5); | |
20572 | { | |
20573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20574 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
20575 | wxPyEndAllowThreads(__tstate); | |
20576 | if (PyErr_Occurred()) SWIG_fail; | |
20577 | } | |
20578 | resultobj = SWIG_Py_Void(); | |
20579 | return resultobj; | |
20580 | fail: | |
20581 | return NULL; | |
20582 | } | |
20583 | ||
20584 | ||
20585 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20586 | PyObject *resultobj = 0; | |
20587 | wxDC *arg1 = (wxDC *) 0 ; | |
20588 | wxPoint *arg2 = 0 ; | |
20589 | wxSize *arg3 = 0 ; | |
20590 | void *argp1 = 0 ; | |
20591 | int res1 = 0 ; | |
20592 | wxPoint temp2 ; | |
20593 | wxSize temp3 ; | |
20594 | PyObject * obj0 = 0 ; | |
20595 | PyObject * obj1 = 0 ; | |
20596 | PyObject * obj2 = 0 ; | |
20597 | char * kwnames[] = { | |
20598 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
20599 | }; | |
20600 | ||
20601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20603 | if (!SWIG_IsOK(res1)) { | |
20604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20605 | } | |
20606 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20607 | { | |
20608 | arg2 = &temp2; | |
20609 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20610 | } | |
20611 | { | |
20612 | arg3 = &temp3; | |
20613 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20614 | } | |
20615 | { | |
20616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20617 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
20618 | wxPyEndAllowThreads(__tstate); | |
20619 | if (PyErr_Occurred()) SWIG_fail; | |
20620 | } | |
20621 | resultobj = SWIG_Py_Void(); | |
20622 | return resultobj; | |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
20628 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20629 | PyObject *resultobj = 0; | |
20630 | wxDC *arg1 = (wxDC *) 0 ; | |
20631 | wxRegion *arg2 = 0 ; | |
20632 | void *argp1 = 0 ; | |
20633 | int res1 = 0 ; | |
20634 | void *argp2 = 0 ; | |
20635 | int res2 = 0 ; | |
20636 | PyObject * obj0 = 0 ; | |
20637 | PyObject * obj1 = 0 ; | |
20638 | char * kwnames[] = { | |
20639 | (char *) "self",(char *) "region", NULL | |
20640 | }; | |
20641 | ||
20642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
20643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20644 | if (!SWIG_IsOK(res1)) { | |
20645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20646 | } | |
20647 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20648 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
20649 | if (!SWIG_IsOK(res2)) { | |
20650 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20651 | } | |
20652 | if (!argp2) { | |
20653 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20654 | } | |
20655 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
20656 | { | |
20657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20658 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
20659 | wxPyEndAllowThreads(__tstate); | |
20660 | if (PyErr_Occurred()) SWIG_fail; | |
20661 | } | |
20662 | resultobj = SWIG_Py_Void(); | |
20663 | return resultobj; | |
20664 | fail: | |
20665 | return NULL; | |
20666 | } | |
20667 | ||
20668 | ||
20669 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20670 | PyObject *resultobj = 0; | |
20671 | wxDC *arg1 = (wxDC *) 0 ; | |
20672 | wxRect *arg2 = 0 ; | |
20673 | void *argp1 = 0 ; | |
20674 | int res1 = 0 ; | |
20675 | wxRect temp2 ; | |
20676 | PyObject * obj0 = 0 ; | |
20677 | PyObject * obj1 = 0 ; | |
20678 | char * kwnames[] = { | |
20679 | (char *) "self",(char *) "rect", NULL | |
20680 | }; | |
20681 | ||
20682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
20683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20684 | if (!SWIG_IsOK(res1)) { | |
20685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20686 | } | |
20687 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20688 | { | |
20689 | arg2 = &temp2; | |
20690 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20691 | } | |
20692 | { | |
20693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20694 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
20695 | wxPyEndAllowThreads(__tstate); | |
20696 | if (PyErr_Occurred()) SWIG_fail; | |
20697 | } | |
20698 | resultobj = SWIG_Py_Void(); | |
20699 | return resultobj; | |
20700 | fail: | |
20701 | return NULL; | |
20702 | } | |
20703 | ||
20704 | ||
20705 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20706 | PyObject *resultobj = 0; | |
20707 | wxDC *arg1 = (wxDC *) 0 ; | |
20708 | int arg2 ; | |
20709 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20710 | int arg4 = (int) 0 ; | |
20711 | int arg5 = (int) 0 ; | |
20712 | void *argp1 = 0 ; | |
20713 | int res1 = 0 ; | |
20714 | int val4 ; | |
20715 | int ecode4 = 0 ; | |
20716 | int val5 ; | |
20717 | int ecode5 = 0 ; | |
20718 | PyObject * obj0 = 0 ; | |
20719 | PyObject * obj1 = 0 ; | |
20720 | PyObject * obj2 = 0 ; | |
20721 | PyObject * obj3 = 0 ; | |
20722 | char * kwnames[] = { | |
20723 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
20724 | }; | |
20725 | ||
20726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20728 | if (!SWIG_IsOK(res1)) { | |
20729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20730 | } | |
20731 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20732 | { | |
20733 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20734 | if (arg3 == NULL) SWIG_fail; | |
20735 | } | |
20736 | if (obj2) { | |
20737 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20738 | if (!SWIG_IsOK(ecode4)) { | |
20739 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
20740 | } | |
20741 | arg4 = static_cast< int >(val4); | |
20742 | } | |
20743 | if (obj3) { | |
20744 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20745 | if (!SWIG_IsOK(ecode5)) { | |
20746 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
20747 | } | |
20748 | arg5 = static_cast< int >(val5); | |
20749 | } | |
20750 | { | |
20751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20752 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
20753 | wxPyEndAllowThreads(__tstate); | |
20754 | if (PyErr_Occurred()) SWIG_fail; | |
20755 | } | |
20756 | resultobj = SWIG_Py_Void(); | |
20757 | { | |
20758 | if (arg3) delete [] arg3; | |
20759 | } | |
20760 | return resultobj; | |
20761 | fail: | |
20762 | { | |
20763 | if (arg3) delete [] arg3; | |
20764 | } | |
20765 | return NULL; | |
20766 | } | |
20767 | ||
20768 | ||
20769 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20770 | PyObject *resultobj = 0; | |
20771 | wxDC *arg1 = (wxDC *) 0 ; | |
20772 | int arg2 ; | |
20773 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20774 | int arg4 = (int) 0 ; | |
20775 | int arg5 = (int) 0 ; | |
20776 | int arg6 = (int) wxODDEVEN_RULE ; | |
20777 | void *argp1 = 0 ; | |
20778 | int res1 = 0 ; | |
20779 | int val4 ; | |
20780 | int ecode4 = 0 ; | |
20781 | int val5 ; | |
20782 | int ecode5 = 0 ; | |
20783 | int val6 ; | |
20784 | int ecode6 = 0 ; | |
20785 | PyObject * obj0 = 0 ; | |
20786 | PyObject * obj1 = 0 ; | |
20787 | PyObject * obj2 = 0 ; | |
20788 | PyObject * obj3 = 0 ; | |
20789 | PyObject * obj4 = 0 ; | |
20790 | char * kwnames[] = { | |
20791 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
20792 | }; | |
20793 | ||
20794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20796 | if (!SWIG_IsOK(res1)) { | |
20797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20798 | } | |
20799 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20800 | { | |
20801 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20802 | if (arg3 == NULL) SWIG_fail; | |
20803 | } | |
20804 | if (obj2) { | |
20805 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20806 | if (!SWIG_IsOK(ecode4)) { | |
20807 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
20808 | } | |
20809 | arg4 = static_cast< int >(val4); | |
20810 | } | |
20811 | if (obj3) { | |
20812 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20813 | if (!SWIG_IsOK(ecode5)) { | |
20814 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
20815 | } | |
20816 | arg5 = static_cast< int >(val5); | |
20817 | } | |
20818 | if (obj4) { | |
20819 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
20820 | if (!SWIG_IsOK(ecode6)) { | |
20821 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
20822 | } | |
20823 | arg6 = static_cast< int >(val6); | |
20824 | } | |
20825 | { | |
20826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20827 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
20828 | wxPyEndAllowThreads(__tstate); | |
20829 | if (PyErr_Occurred()) SWIG_fail; | |
20830 | } | |
20831 | resultobj = SWIG_Py_Void(); | |
20832 | { | |
20833 | if (arg3) delete [] arg3; | |
20834 | } | |
20835 | return resultobj; | |
20836 | fail: | |
20837 | { | |
20838 | if (arg3) delete [] arg3; | |
20839 | } | |
20840 | return NULL; | |
20841 | } | |
20842 | ||
20843 | ||
20844 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20845 | PyObject *resultobj = 0; | |
20846 | wxDC *arg1 = (wxDC *) 0 ; | |
20847 | wxString *arg2 = 0 ; | |
20848 | wxRect *arg3 = 0 ; | |
20849 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20850 | int arg5 = (int) -1 ; | |
20851 | void *argp1 = 0 ; | |
20852 | int res1 = 0 ; | |
20853 | bool temp2 = false ; | |
20854 | wxRect temp3 ; | |
20855 | int val4 ; | |
20856 | int ecode4 = 0 ; | |
20857 | int val5 ; | |
20858 | int ecode5 = 0 ; | |
20859 | PyObject * obj0 = 0 ; | |
20860 | PyObject * obj1 = 0 ; | |
20861 | PyObject * obj2 = 0 ; | |
20862 | PyObject * obj3 = 0 ; | |
20863 | PyObject * obj4 = 0 ; | |
20864 | char * kwnames[] = { | |
20865 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20866 | }; | |
20867 | ||
20868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20870 | if (!SWIG_IsOK(res1)) { | |
20871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20872 | } | |
20873 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20874 | { | |
20875 | arg2 = wxString_in_helper(obj1); | |
20876 | if (arg2 == NULL) SWIG_fail; | |
20877 | temp2 = true; | |
20878 | } | |
20879 | { | |
20880 | arg3 = &temp3; | |
20881 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20882 | } | |
20883 | if (obj3) { | |
20884 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20885 | if (!SWIG_IsOK(ecode4)) { | |
20886 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20887 | } | |
20888 | arg4 = static_cast< int >(val4); | |
20889 | } | |
20890 | if (obj4) { | |
20891 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20892 | if (!SWIG_IsOK(ecode5)) { | |
20893 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20894 | } | |
20895 | arg5 = static_cast< int >(val5); | |
20896 | } | |
20897 | { | |
20898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20899 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
20903 | resultobj = SWIG_Py_Void(); | |
20904 | { | |
20905 | if (temp2) | |
20906 | delete arg2; | |
20907 | } | |
20908 | return resultobj; | |
20909 | fail: | |
20910 | { | |
20911 | if (temp2) | |
20912 | delete arg2; | |
20913 | } | |
20914 | return NULL; | |
20915 | } | |
20916 | ||
20917 | ||
20918 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20919 | PyObject *resultobj = 0; | |
20920 | wxDC *arg1 = (wxDC *) 0 ; | |
20921 | wxString *arg2 = 0 ; | |
20922 | wxBitmap *arg3 = 0 ; | |
20923 | wxRect *arg4 = 0 ; | |
20924 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20925 | int arg6 = (int) -1 ; | |
20926 | wxRect result; | |
20927 | void *argp1 = 0 ; | |
20928 | int res1 = 0 ; | |
20929 | bool temp2 = false ; | |
20930 | void *argp3 = 0 ; | |
20931 | int res3 = 0 ; | |
20932 | wxRect temp4 ; | |
20933 | int val5 ; | |
20934 | int ecode5 = 0 ; | |
20935 | int val6 ; | |
20936 | int ecode6 = 0 ; | |
20937 | PyObject * obj0 = 0 ; | |
20938 | PyObject * obj1 = 0 ; | |
20939 | PyObject * obj2 = 0 ; | |
20940 | PyObject * obj3 = 0 ; | |
20941 | PyObject * obj4 = 0 ; | |
20942 | PyObject * obj5 = 0 ; | |
20943 | char * kwnames[] = { | |
20944 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20945 | }; | |
20946 | ||
20947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20949 | if (!SWIG_IsOK(res1)) { | |
20950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20951 | } | |
20952 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20953 | { | |
20954 | arg2 = wxString_in_helper(obj1); | |
20955 | if (arg2 == NULL) SWIG_fail; | |
20956 | temp2 = true; | |
20957 | } | |
20958 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20959 | if (!SWIG_IsOK(res3)) { | |
20960 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20961 | } | |
20962 | if (!argp3) { | |
20963 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20964 | } | |
20965 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20966 | { | |
20967 | arg4 = &temp4; | |
20968 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20969 | } | |
20970 | if (obj4) { | |
20971 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20972 | if (!SWIG_IsOK(ecode5)) { | |
20973 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
20974 | } | |
20975 | arg5 = static_cast< int >(val5); | |
20976 | } | |
20977 | if (obj5) { | |
20978 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20979 | if (!SWIG_IsOK(ecode6)) { | |
20980 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
20981 | } | |
20982 | arg6 = static_cast< int >(val6); | |
20983 | } | |
20984 | { | |
20985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20986 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
20987 | wxPyEndAllowThreads(__tstate); | |
20988 | if (PyErr_Occurred()) SWIG_fail; | |
20989 | } | |
20990 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20991 | { | |
20992 | if (temp2) | |
20993 | delete arg2; | |
20994 | } | |
20995 | return resultobj; | |
20996 | fail: | |
20997 | { | |
20998 | if (temp2) | |
20999 | delete arg2; | |
21000 | } | |
21001 | return NULL; | |
21002 | } | |
21003 | ||
21004 | ||
21005 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21006 | PyObject *resultobj = 0; | |
21007 | wxDC *arg1 = (wxDC *) 0 ; | |
21008 | int arg2 ; | |
21009 | wxPoint *arg3 = (wxPoint *) 0 ; | |
21010 | void *argp1 = 0 ; | |
21011 | int res1 = 0 ; | |
21012 | PyObject * obj0 = 0 ; | |
21013 | PyObject * obj1 = 0 ; | |
21014 | char * kwnames[] = { | |
21015 | (char *) "self",(char *) "points", NULL | |
21016 | }; | |
21017 | ||
21018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
21019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21020 | if (!SWIG_IsOK(res1)) { | |
21021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21022 | } | |
21023 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21024 | { | |
21025 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
21026 | if (arg3 == NULL) SWIG_fail; | |
21027 | } | |
21028 | { | |
21029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21030 | (arg1)->DrawSpline(arg2,arg3); | |
21031 | wxPyEndAllowThreads(__tstate); | |
21032 | if (PyErr_Occurred()) SWIG_fail; | |
21033 | } | |
21034 | resultobj = SWIG_Py_Void(); | |
21035 | { | |
21036 | if (arg3) delete [] arg3; | |
21037 | } | |
21038 | return resultobj; | |
21039 | fail: | |
21040 | { | |
21041 | if (arg3) delete [] arg3; | |
21042 | } | |
21043 | return NULL; | |
21044 | } | |
21045 | ||
21046 | ||
21047 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21048 | PyObject *resultobj = 0; | |
21049 | wxDC *arg1 = (wxDC *) 0 ; | |
21050 | void *argp1 = 0 ; | |
21051 | int res1 = 0 ; | |
21052 | PyObject *swig_obj[1] ; | |
21053 | ||
21054 | if (!args) SWIG_fail; | |
21055 | swig_obj[0] = args; | |
21056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21057 | if (!SWIG_IsOK(res1)) { | |
21058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21059 | } | |
21060 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21061 | { | |
21062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21063 | (arg1)->Clear(); | |
21064 | wxPyEndAllowThreads(__tstate); | |
21065 | if (PyErr_Occurred()) SWIG_fail; | |
21066 | } | |
21067 | resultobj = SWIG_Py_Void(); | |
21068 | return resultobj; | |
21069 | fail: | |
21070 | return NULL; | |
21071 | } | |
21072 | ||
21073 | ||
21074 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21075 | PyObject *resultobj = 0; | |
21076 | wxDC *arg1 = (wxDC *) 0 ; | |
21077 | wxString *arg2 = 0 ; | |
21078 | bool result; | |
21079 | void *argp1 = 0 ; | |
21080 | int res1 = 0 ; | |
21081 | bool temp2 = false ; | |
21082 | PyObject * obj0 = 0 ; | |
21083 | PyObject * obj1 = 0 ; | |
21084 | char * kwnames[] = { | |
21085 | (char *) "self",(char *) "message", NULL | |
21086 | }; | |
21087 | ||
21088 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
21089 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21090 | if (!SWIG_IsOK(res1)) { | |
21091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21092 | } | |
21093 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21094 | { | |
21095 | arg2 = wxString_in_helper(obj1); | |
21096 | if (arg2 == NULL) SWIG_fail; | |
21097 | temp2 = true; | |
21098 | } | |
21099 | { | |
21100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21101 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
21102 | wxPyEndAllowThreads(__tstate); | |
21103 | if (PyErr_Occurred()) SWIG_fail; | |
21104 | } | |
21105 | { | |
21106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21107 | } | |
21108 | { | |
21109 | if (temp2) | |
21110 | delete arg2; | |
21111 | } | |
21112 | return resultobj; | |
21113 | fail: | |
21114 | { | |
21115 | if (temp2) | |
21116 | delete arg2; | |
21117 | } | |
21118 | return NULL; | |
21119 | } | |
21120 | ||
21121 | ||
21122 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21123 | PyObject *resultobj = 0; | |
21124 | wxDC *arg1 = (wxDC *) 0 ; | |
21125 | void *argp1 = 0 ; | |
21126 | int res1 = 0 ; | |
21127 | PyObject *swig_obj[1] ; | |
21128 | ||
21129 | if (!args) SWIG_fail; | |
21130 | swig_obj[0] = args; | |
21131 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21132 | if (!SWIG_IsOK(res1)) { | |
21133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21134 | } | |
21135 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21136 | { | |
21137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21138 | (arg1)->EndDoc(); | |
21139 | wxPyEndAllowThreads(__tstate); | |
21140 | if (PyErr_Occurred()) SWIG_fail; | |
21141 | } | |
21142 | resultobj = SWIG_Py_Void(); | |
21143 | return resultobj; | |
21144 | fail: | |
21145 | return NULL; | |
21146 | } | |
21147 | ||
21148 | ||
21149 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21150 | PyObject *resultobj = 0; | |
21151 | wxDC *arg1 = (wxDC *) 0 ; | |
21152 | void *argp1 = 0 ; | |
21153 | int res1 = 0 ; | |
21154 | PyObject *swig_obj[1] ; | |
21155 | ||
21156 | if (!args) SWIG_fail; | |
21157 | swig_obj[0] = args; | |
21158 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21159 | if (!SWIG_IsOK(res1)) { | |
21160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21161 | } | |
21162 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21163 | { | |
21164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21165 | (arg1)->StartPage(); | |
21166 | wxPyEndAllowThreads(__tstate); | |
21167 | if (PyErr_Occurred()) SWIG_fail; | |
21168 | } | |
21169 | resultobj = SWIG_Py_Void(); | |
21170 | return resultobj; | |
21171 | fail: | |
21172 | return NULL; | |
21173 | } | |
21174 | ||
21175 | ||
21176 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21177 | PyObject *resultobj = 0; | |
21178 | wxDC *arg1 = (wxDC *) 0 ; | |
21179 | void *argp1 = 0 ; | |
21180 | int res1 = 0 ; | |
21181 | PyObject *swig_obj[1] ; | |
21182 | ||
21183 | if (!args) SWIG_fail; | |
21184 | swig_obj[0] = args; | |
21185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21186 | if (!SWIG_IsOK(res1)) { | |
21187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21188 | } | |
21189 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21190 | { | |
21191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21192 | (arg1)->EndPage(); | |
21193 | wxPyEndAllowThreads(__tstate); | |
21194 | if (PyErr_Occurred()) SWIG_fail; | |
21195 | } | |
21196 | resultobj = SWIG_Py_Void(); | |
21197 | return resultobj; | |
21198 | fail: | |
21199 | return NULL; | |
21200 | } | |
21201 | ||
21202 | ||
21203 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21204 | PyObject *resultobj = 0; | |
21205 | wxDC *arg1 = (wxDC *) 0 ; | |
21206 | wxFont *arg2 = 0 ; | |
21207 | void *argp1 = 0 ; | |
21208 | int res1 = 0 ; | |
21209 | void *argp2 = 0 ; | |
21210 | int res2 = 0 ; | |
21211 | PyObject * obj0 = 0 ; | |
21212 | PyObject * obj1 = 0 ; | |
21213 | char * kwnames[] = { | |
21214 | (char *) "self",(char *) "font", NULL | |
21215 | }; | |
21216 | ||
21217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
21218 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21219 | if (!SWIG_IsOK(res1)) { | |
21220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21221 | } | |
21222 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21223 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
21224 | if (!SWIG_IsOK(res2)) { | |
21225 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
21226 | } | |
21227 | if (!argp2) { | |
21228 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
21229 | } | |
21230 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
21231 | { | |
21232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21233 | (arg1)->SetFont((wxFont const &)*arg2); | |
21234 | wxPyEndAllowThreads(__tstate); | |
21235 | if (PyErr_Occurred()) SWIG_fail; | |
21236 | } | |
21237 | resultobj = SWIG_Py_Void(); | |
21238 | return resultobj; | |
21239 | fail: | |
21240 | return NULL; | |
21241 | } | |
21242 | ||
21243 | ||
21244 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21245 | PyObject *resultobj = 0; | |
21246 | wxDC *arg1 = (wxDC *) 0 ; | |
21247 | wxPen *arg2 = 0 ; | |
21248 | void *argp1 = 0 ; | |
21249 | int res1 = 0 ; | |
21250 | void *argp2 = 0 ; | |
21251 | int res2 = 0 ; | |
21252 | PyObject * obj0 = 0 ; | |
21253 | PyObject * obj1 = 0 ; | |
21254 | char * kwnames[] = { | |
21255 | (char *) "self",(char *) "pen", NULL | |
21256 | }; | |
21257 | ||
21258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
21259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21260 | if (!SWIG_IsOK(res1)) { | |
21261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21262 | } | |
21263 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21264 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
21265 | if (!SWIG_IsOK(res2)) { | |
21266 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
21267 | } | |
21268 | if (!argp2) { | |
21269 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
21270 | } | |
21271 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
21272 | { | |
21273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21274 | (arg1)->SetPen((wxPen const &)*arg2); | |
21275 | wxPyEndAllowThreads(__tstate); | |
21276 | if (PyErr_Occurred()) SWIG_fail; | |
21277 | } | |
21278 | resultobj = SWIG_Py_Void(); | |
21279 | return resultobj; | |
21280 | fail: | |
21281 | return NULL; | |
21282 | } | |
21283 | ||
21284 | ||
21285 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21286 | PyObject *resultobj = 0; | |
21287 | wxDC *arg1 = (wxDC *) 0 ; | |
21288 | wxBrush *arg2 = 0 ; | |
21289 | void *argp1 = 0 ; | |
21290 | int res1 = 0 ; | |
21291 | void *argp2 = 0 ; | |
21292 | int res2 = 0 ; | |
21293 | PyObject * obj0 = 0 ; | |
21294 | PyObject * obj1 = 0 ; | |
21295 | char * kwnames[] = { | |
21296 | (char *) "self",(char *) "brush", NULL | |
21297 | }; | |
21298 | ||
21299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
21300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21301 | if (!SWIG_IsOK(res1)) { | |
21302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21303 | } | |
21304 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21305 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
21306 | if (!SWIG_IsOK(res2)) { | |
21307 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21308 | } | |
21309 | if (!argp2) { | |
21310 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21311 | } | |
21312 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
21313 | { | |
21314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21315 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
21316 | wxPyEndAllowThreads(__tstate); | |
21317 | if (PyErr_Occurred()) SWIG_fail; | |
21318 | } | |
21319 | resultobj = SWIG_Py_Void(); | |
21320 | return resultobj; | |
21321 | fail: | |
21322 | return NULL; | |
21323 | } | |
21324 | ||
21325 | ||
21326 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21327 | PyObject *resultobj = 0; | |
21328 | wxDC *arg1 = (wxDC *) 0 ; | |
21329 | wxBrush *arg2 = 0 ; | |
21330 | void *argp1 = 0 ; | |
21331 | int res1 = 0 ; | |
21332 | void *argp2 = 0 ; | |
21333 | int res2 = 0 ; | |
21334 | PyObject * obj0 = 0 ; | |
21335 | PyObject * obj1 = 0 ; | |
21336 | char * kwnames[] = { | |
21337 | (char *) "self",(char *) "brush", NULL | |
21338 | }; | |
21339 | ||
21340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21342 | if (!SWIG_IsOK(res1)) { | |
21343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21344 | } | |
21345 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21346 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
21347 | if (!SWIG_IsOK(res2)) { | |
21348 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21349 | } | |
21350 | if (!argp2) { | |
21351 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21352 | } | |
21353 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
21354 | { | |
21355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21356 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
21357 | wxPyEndAllowThreads(__tstate); | |
21358 | if (PyErr_Occurred()) SWIG_fail; | |
21359 | } | |
21360 | resultobj = SWIG_Py_Void(); | |
21361 | return resultobj; | |
21362 | fail: | |
21363 | return NULL; | |
21364 | } | |
21365 | ||
21366 | ||
21367 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21368 | PyObject *resultobj = 0; | |
21369 | wxDC *arg1 = (wxDC *) 0 ; | |
21370 | int arg2 ; | |
21371 | void *argp1 = 0 ; | |
21372 | int res1 = 0 ; | |
21373 | int val2 ; | |
21374 | int ecode2 = 0 ; | |
21375 | PyObject * obj0 = 0 ; | |
21376 | PyObject * obj1 = 0 ; | |
21377 | char * kwnames[] = { | |
21378 | (char *) "self",(char *) "mode", NULL | |
21379 | }; | |
21380 | ||
21381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
21382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21383 | if (!SWIG_IsOK(res1)) { | |
21384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21385 | } | |
21386 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21387 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21388 | if (!SWIG_IsOK(ecode2)) { | |
21389 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
21390 | } | |
21391 | arg2 = static_cast< int >(val2); | |
21392 | { | |
21393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21394 | (arg1)->SetBackgroundMode(arg2); | |
21395 | wxPyEndAllowThreads(__tstate); | |
21396 | if (PyErr_Occurred()) SWIG_fail; | |
21397 | } | |
21398 | resultobj = SWIG_Py_Void(); | |
21399 | return resultobj; | |
21400 | fail: | |
21401 | return NULL; | |
21402 | } | |
21403 | ||
21404 | ||
21405 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21406 | PyObject *resultobj = 0; | |
21407 | wxDC *arg1 = (wxDC *) 0 ; | |
21408 | wxPalette *arg2 = 0 ; | |
21409 | void *argp1 = 0 ; | |
21410 | int res1 = 0 ; | |
21411 | void *argp2 = 0 ; | |
21412 | int res2 = 0 ; | |
21413 | PyObject * obj0 = 0 ; | |
21414 | PyObject * obj1 = 0 ; | |
21415 | char * kwnames[] = { | |
21416 | (char *) "self",(char *) "palette", NULL | |
21417 | }; | |
21418 | ||
21419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
21420 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21421 | if (!SWIG_IsOK(res1)) { | |
21422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21423 | } | |
21424 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21425 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
21426 | if (!SWIG_IsOK(res2)) { | |
21427 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21428 | } | |
21429 | if (!argp2) { | |
21430 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21431 | } | |
21432 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
21433 | { | |
21434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21435 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
21436 | wxPyEndAllowThreads(__tstate); | |
21437 | if (PyErr_Occurred()) SWIG_fail; | |
21438 | } | |
21439 | resultobj = SWIG_Py_Void(); | |
21440 | return resultobj; | |
21441 | fail: | |
21442 | return NULL; | |
21443 | } | |
21444 | ||
21445 | ||
21446 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21447 | PyObject *resultobj = 0; | |
21448 | wxDC *arg1 = (wxDC *) 0 ; | |
21449 | void *argp1 = 0 ; | |
21450 | int res1 = 0 ; | |
21451 | PyObject *swig_obj[1] ; | |
21452 | ||
21453 | if (!args) SWIG_fail; | |
21454 | swig_obj[0] = args; | |
21455 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21456 | if (!SWIG_IsOK(res1)) { | |
21457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21458 | } | |
21459 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21460 | { | |
21461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21462 | (arg1)->DestroyClippingRegion(); | |
21463 | wxPyEndAllowThreads(__tstate); | |
21464 | if (PyErr_Occurred()) SWIG_fail; | |
21465 | } | |
21466 | resultobj = SWIG_Py_Void(); | |
21467 | return resultobj; | |
21468 | fail: | |
21469 | return NULL; | |
21470 | } | |
21471 | ||
21472 | ||
21473 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21474 | PyObject *resultobj = 0; | |
21475 | wxDC *arg1 = (wxDC *) 0 ; | |
21476 | int *arg2 = (int *) 0 ; | |
21477 | int *arg3 = (int *) 0 ; | |
21478 | int *arg4 = (int *) 0 ; | |
21479 | int *arg5 = (int *) 0 ; | |
21480 | void *argp1 = 0 ; | |
21481 | int res1 = 0 ; | |
21482 | int temp2 ; | |
21483 | int res2 = SWIG_TMPOBJ ; | |
21484 | int temp3 ; | |
21485 | int res3 = SWIG_TMPOBJ ; | |
21486 | int temp4 ; | |
21487 | int res4 = SWIG_TMPOBJ ; | |
21488 | int temp5 ; | |
21489 | int res5 = SWIG_TMPOBJ ; | |
21490 | PyObject *swig_obj[1] ; | |
21491 | ||
21492 | arg2 = &temp2; | |
21493 | arg3 = &temp3; | |
21494 | arg4 = &temp4; | |
21495 | arg5 = &temp5; | |
21496 | if (!args) SWIG_fail; | |
21497 | swig_obj[0] = args; | |
21498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21499 | if (!SWIG_IsOK(res1)) { | |
21500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21501 | } | |
21502 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21503 | { | |
21504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21505 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
21506 | wxPyEndAllowThreads(__tstate); | |
21507 | if (PyErr_Occurred()) SWIG_fail; | |
21508 | } | |
21509 | resultobj = SWIG_Py_Void(); | |
21510 | if (SWIG_IsTmpObj(res2)) { | |
21511 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21512 | } else { | |
21513 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21514 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21515 | } | |
21516 | if (SWIG_IsTmpObj(res3)) { | |
21517 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21518 | } else { | |
21519 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21520 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21521 | } | |
21522 | if (SWIG_IsTmpObj(res4)) { | |
21523 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21524 | } else { | |
21525 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21526 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21527 | } | |
21528 | if (SWIG_IsTmpObj(res5)) { | |
21529 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21530 | } else { | |
21531 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21532 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21533 | } | |
21534 | return resultobj; | |
21535 | fail: | |
21536 | return NULL; | |
21537 | } | |
21538 | ||
21539 | ||
21540 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21541 | PyObject *resultobj = 0; | |
21542 | wxDC *arg1 = (wxDC *) 0 ; | |
21543 | wxRect result; | |
21544 | void *argp1 = 0 ; | |
21545 | int res1 = 0 ; | |
21546 | PyObject *swig_obj[1] ; | |
21547 | ||
21548 | if (!args) SWIG_fail; | |
21549 | swig_obj[0] = args; | |
21550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21551 | if (!SWIG_IsOK(res1)) { | |
21552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21553 | } | |
21554 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21555 | { | |
21556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21557 | result = wxDC_GetClippingRect(arg1); | |
21558 | wxPyEndAllowThreads(__tstate); | |
21559 | if (PyErr_Occurred()) SWIG_fail; | |
21560 | } | |
21561 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
21562 | return resultobj; | |
21563 | fail: | |
21564 | return NULL; | |
21565 | } | |
21566 | ||
21567 | ||
21568 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21569 | PyObject *resultobj = 0; | |
21570 | wxDC *arg1 = (wxDC *) 0 ; | |
21571 | int result; | |
21572 | void *argp1 = 0 ; | |
21573 | int res1 = 0 ; | |
21574 | PyObject *swig_obj[1] ; | |
21575 | ||
21576 | if (!args) SWIG_fail; | |
21577 | swig_obj[0] = args; | |
21578 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21579 | if (!SWIG_IsOK(res1)) { | |
21580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21581 | } | |
21582 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21583 | { | |
21584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21585 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
21586 | wxPyEndAllowThreads(__tstate); | |
21587 | if (PyErr_Occurred()) SWIG_fail; | |
21588 | } | |
21589 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21590 | return resultobj; | |
21591 | fail: | |
21592 | return NULL; | |
21593 | } | |
21594 | ||
21595 | ||
21596 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21597 | PyObject *resultobj = 0; | |
21598 | wxDC *arg1 = (wxDC *) 0 ; | |
21599 | int result; | |
21600 | void *argp1 = 0 ; | |
21601 | int res1 = 0 ; | |
21602 | PyObject *swig_obj[1] ; | |
21603 | ||
21604 | if (!args) SWIG_fail; | |
21605 | swig_obj[0] = args; | |
21606 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21607 | if (!SWIG_IsOK(res1)) { | |
21608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21609 | } | |
21610 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21611 | { | |
21612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21613 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
21614 | wxPyEndAllowThreads(__tstate); | |
21615 | if (PyErr_Occurred()) SWIG_fail; | |
21616 | } | |
21617 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21618 | return resultobj; | |
21619 | fail: | |
21620 | return NULL; | |
21621 | } | |
21622 | ||
21623 | ||
21624 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21625 | PyObject *resultobj = 0; | |
21626 | wxDC *arg1 = (wxDC *) 0 ; | |
21627 | wxString *arg2 = 0 ; | |
21628 | int *arg3 = (int *) 0 ; | |
21629 | int *arg4 = (int *) 0 ; | |
21630 | void *argp1 = 0 ; | |
21631 | int res1 = 0 ; | |
21632 | bool temp2 = false ; | |
21633 | int temp3 ; | |
21634 | int res3 = SWIG_TMPOBJ ; | |
21635 | int temp4 ; | |
21636 | int res4 = SWIG_TMPOBJ ; | |
21637 | PyObject * obj0 = 0 ; | |
21638 | PyObject * obj1 = 0 ; | |
21639 | char * kwnames[] = { | |
21640 | (char *) "self",(char *) "string", NULL | |
21641 | }; | |
21642 | ||
21643 | arg3 = &temp3; | |
21644 | arg4 = &temp4; | |
21645 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21646 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21647 | if (!SWIG_IsOK(res1)) { | |
21648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21649 | } | |
21650 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21651 | { | |
21652 | arg2 = wxString_in_helper(obj1); | |
21653 | if (arg2 == NULL) SWIG_fail; | |
21654 | temp2 = true; | |
21655 | } | |
21656 | { | |
21657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21658 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
21659 | wxPyEndAllowThreads(__tstate); | |
21660 | if (PyErr_Occurred()) SWIG_fail; | |
21661 | } | |
21662 | resultobj = SWIG_Py_Void(); | |
21663 | if (SWIG_IsTmpObj(res3)) { | |
21664 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21665 | } else { | |
21666 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21667 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21668 | } | |
21669 | if (SWIG_IsTmpObj(res4)) { | |
21670 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21671 | } else { | |
21672 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21673 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21674 | } | |
21675 | { | |
21676 | if (temp2) | |
21677 | delete arg2; | |
21678 | } | |
21679 | return resultobj; | |
21680 | fail: | |
21681 | { | |
21682 | if (temp2) | |
21683 | delete arg2; | |
21684 | } | |
21685 | return NULL; | |
21686 | } | |
21687 | ||
21688 | ||
21689 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21690 | PyObject *resultobj = 0; | |
21691 | wxDC *arg1 = (wxDC *) 0 ; | |
21692 | wxString *arg2 = 0 ; | |
21693 | int *arg3 = (int *) 0 ; | |
21694 | int *arg4 = (int *) 0 ; | |
21695 | int *arg5 = (int *) 0 ; | |
21696 | int *arg6 = (int *) 0 ; | |
21697 | wxFont *arg7 = (wxFont *) NULL ; | |
21698 | void *argp1 = 0 ; | |
21699 | int res1 = 0 ; | |
21700 | bool temp2 = false ; | |
21701 | int temp3 ; | |
21702 | int res3 = SWIG_TMPOBJ ; | |
21703 | int temp4 ; | |
21704 | int res4 = SWIG_TMPOBJ ; | |
21705 | int temp5 ; | |
21706 | int res5 = SWIG_TMPOBJ ; | |
21707 | int temp6 ; | |
21708 | int res6 = SWIG_TMPOBJ ; | |
21709 | void *argp7 = 0 ; | |
21710 | int res7 = 0 ; | |
21711 | PyObject * obj0 = 0 ; | |
21712 | PyObject * obj1 = 0 ; | |
21713 | PyObject * obj2 = 0 ; | |
21714 | char * kwnames[] = { | |
21715 | (char *) "self",(char *) "string",(char *) "font", NULL | |
21716 | }; | |
21717 | ||
21718 | arg3 = &temp3; | |
21719 | arg4 = &temp4; | |
21720 | arg5 = &temp5; | |
21721 | arg6 = &temp6; | |
21722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21724 | if (!SWIG_IsOK(res1)) { | |
21725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21726 | } | |
21727 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21728 | { | |
21729 | arg2 = wxString_in_helper(obj1); | |
21730 | if (arg2 == NULL) SWIG_fail; | |
21731 | temp2 = true; | |
21732 | } | |
21733 | if (obj2) { | |
21734 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21735 | if (!SWIG_IsOK(res7)) { | |
21736 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 21737 | } |
554f62e9 RD |
21738 | arg7 = reinterpret_cast< wxFont * >(argp7); |
21739 | } | |
21740 | { | |
21741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21742 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
21743 | wxPyEndAllowThreads(__tstate); | |
21744 | if (PyErr_Occurred()) SWIG_fail; | |
21745 | } | |
21746 | resultobj = SWIG_Py_Void(); | |
21747 | if (SWIG_IsTmpObj(res3)) { | |
21748 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21749 | } else { | |
21750 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21751 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21752 | } | |
21753 | if (SWIG_IsTmpObj(res4)) { | |
21754 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21755 | } else { | |
21756 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21757 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21758 | } | |
21759 | if (SWIG_IsTmpObj(res5)) { | |
21760 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21761 | } else { | |
21762 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21763 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21764 | } | |
21765 | if (SWIG_IsTmpObj(res6)) { | |
21766 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
21767 | } else { | |
21768 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21769 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
21770 | } | |
21771 | { | |
21772 | if (temp2) | |
21773 | delete arg2; | |
21774 | } | |
21775 | return resultobj; | |
21776 | fail: | |
21777 | { | |
21778 | if (temp2) | |
21779 | delete arg2; | |
21780 | } | |
21781 | return NULL; | |
21782 | } | |
21783 | ||
21784 | ||
21785 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21786 | PyObject *resultobj = 0; | |
21787 | wxDC *arg1 = (wxDC *) 0 ; | |
21788 | wxString *arg2 = 0 ; | |
21789 | int *arg3 = (int *) 0 ; | |
21790 | int *arg4 = (int *) 0 ; | |
21791 | int *arg5 = (int *) 0 ; | |
21792 | wxFont *arg6 = (wxFont *) NULL ; | |
21793 | void *argp1 = 0 ; | |
21794 | int res1 = 0 ; | |
21795 | bool temp2 = false ; | |
21796 | int temp3 ; | |
21797 | int res3 = SWIG_TMPOBJ ; | |
21798 | int temp4 ; | |
21799 | int res4 = SWIG_TMPOBJ ; | |
21800 | int temp5 ; | |
21801 | int res5 = SWIG_TMPOBJ ; | |
21802 | void *argp6 = 0 ; | |
21803 | int res6 = 0 ; | |
21804 | PyObject * obj0 = 0 ; | |
21805 | PyObject * obj1 = 0 ; | |
21806 | PyObject * obj2 = 0 ; | |
21807 | char * kwnames[] = { | |
21808 | (char *) "self",(char *) "text",(char *) "font", NULL | |
21809 | }; | |
21810 | ||
21811 | arg3 = &temp3; | |
21812 | arg4 = &temp4; | |
21813 | arg5 = &temp5; | |
21814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21816 | if (!SWIG_IsOK(res1)) { | |
21817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21818 | } | |
21819 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21820 | { | |
21821 | arg2 = wxString_in_helper(obj1); | |
21822 | if (arg2 == NULL) SWIG_fail; | |
21823 | temp2 = true; | |
21824 | } | |
21825 | if (obj2) { | |
21826 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21827 | if (!SWIG_IsOK(res6)) { | |
21828 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 21829 | } |
554f62e9 RD |
21830 | arg6 = reinterpret_cast< wxFont * >(argp6); |
21831 | } | |
21832 | { | |
21833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21834 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
21835 | wxPyEndAllowThreads(__tstate); | |
21836 | if (PyErr_Occurred()) SWIG_fail; | |
21837 | } | |
21838 | resultobj = SWIG_Py_Void(); | |
21839 | if (SWIG_IsTmpObj(res3)) { | |
21840 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21841 | } else { | |
21842 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21843 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21844 | } | |
21845 | if (SWIG_IsTmpObj(res4)) { | |
21846 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21847 | } else { | |
21848 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21849 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21850 | } | |
21851 | if (SWIG_IsTmpObj(res5)) { | |
21852 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21853 | } else { | |
21854 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21855 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21856 | } | |
21857 | { | |
21858 | if (temp2) | |
21859 | delete arg2; | |
21860 | } | |
21861 | return resultobj; | |
21862 | fail: | |
21863 | { | |
21864 | if (temp2) | |
21865 | delete arg2; | |
21866 | } | |
21867 | return NULL; | |
21868 | } | |
21869 | ||
21870 | ||
21871 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21872 | PyObject *resultobj = 0; | |
21873 | wxDC *arg1 = (wxDC *) 0 ; | |
21874 | wxString *arg2 = 0 ; | |
21875 | wxArrayInt result; | |
21876 | void *argp1 = 0 ; | |
21877 | int res1 = 0 ; | |
21878 | bool temp2 = false ; | |
21879 | PyObject * obj0 = 0 ; | |
21880 | PyObject * obj1 = 0 ; | |
21881 | char * kwnames[] = { | |
21882 | (char *) "self",(char *) "text", NULL | |
21883 | }; | |
21884 | ||
21885 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21886 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21887 | if (!SWIG_IsOK(res1)) { | |
21888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21889 | } | |
21890 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21891 | { | |
21892 | arg2 = wxString_in_helper(obj1); | |
21893 | if (arg2 == NULL) SWIG_fail; | |
21894 | temp2 = true; | |
21895 | } | |
21896 | { | |
21897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21898 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21899 | wxPyEndAllowThreads(__tstate); | |
21900 | if (PyErr_Occurred()) SWIG_fail; | |
21901 | } | |
21902 | { | |
b39fe951 | 21903 | resultobj = wxArrayInt2PyList_helper(result); |
554f62e9 RD |
21904 | } |
21905 | { | |
21906 | if (temp2) | |
21907 | delete arg2; | |
21908 | } | |
21909 | return resultobj; | |
21910 | fail: | |
21911 | { | |
21912 | if (temp2) | |
21913 | delete arg2; | |
21914 | } | |
21915 | return NULL; | |
21916 | } | |
21917 | ||
21918 | ||
21919 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21920 | PyObject *resultobj = 0; | |
21921 | wxDC *arg1 = (wxDC *) 0 ; | |
21922 | wxSize result; | |
21923 | void *argp1 = 0 ; | |
21924 | int res1 = 0 ; | |
21925 | PyObject *swig_obj[1] ; | |
21926 | ||
21927 | if (!args) SWIG_fail; | |
21928 | swig_obj[0] = args; | |
21929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21930 | if (!SWIG_IsOK(res1)) { | |
21931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21932 | } | |
21933 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21934 | { | |
21935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21936 | result = (arg1)->GetSize(); | |
21937 | wxPyEndAllowThreads(__tstate); | |
21938 | if (PyErr_Occurred()) SWIG_fail; | |
21939 | } | |
21940 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21941 | return resultobj; | |
21942 | fail: | |
21943 | return NULL; | |
21944 | } | |
21945 | ||
21946 | ||
21947 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21948 | PyObject *resultobj = 0; | |
21949 | wxDC *arg1 = (wxDC *) 0 ; | |
21950 | int *arg2 = (int *) 0 ; | |
21951 | int *arg3 = (int *) 0 ; | |
21952 | void *argp1 = 0 ; | |
21953 | int res1 = 0 ; | |
21954 | int temp2 ; | |
21955 | int res2 = SWIG_TMPOBJ ; | |
21956 | int temp3 ; | |
21957 | int res3 = SWIG_TMPOBJ ; | |
21958 | PyObject *swig_obj[1] ; | |
21959 | ||
21960 | arg2 = &temp2; | |
21961 | arg3 = &temp3; | |
21962 | if (!args) SWIG_fail; | |
21963 | swig_obj[0] = args; | |
21964 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21965 | if (!SWIG_IsOK(res1)) { | |
21966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21967 | } | |
21968 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21969 | { | |
21970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21971 | (arg1)->GetSize(arg2,arg3); | |
21972 | wxPyEndAllowThreads(__tstate); | |
21973 | if (PyErr_Occurred()) SWIG_fail; | |
21974 | } | |
21975 | resultobj = SWIG_Py_Void(); | |
21976 | if (SWIG_IsTmpObj(res2)) { | |
21977 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21978 | } else { | |
21979 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21980 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21981 | } | |
21982 | if (SWIG_IsTmpObj(res3)) { | |
21983 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21984 | } else { | |
21985 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21986 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21987 | } | |
21988 | return resultobj; | |
21989 | fail: | |
21990 | return NULL; | |
21991 | } | |
21992 | ||
21993 | ||
21994 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21995 | PyObject *resultobj = 0; | |
21996 | wxDC *arg1 = (wxDC *) 0 ; | |
21997 | wxSize result; | |
21998 | void *argp1 = 0 ; | |
21999 | int res1 = 0 ; | |
22000 | PyObject *swig_obj[1] ; | |
22001 | ||
22002 | if (!args) SWIG_fail; | |
22003 | swig_obj[0] = args; | |
22004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22005 | if (!SWIG_IsOK(res1)) { | |
22006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22007 | } | |
22008 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22009 | { | |
22010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22011 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
22012 | wxPyEndAllowThreads(__tstate); | |
22013 | if (PyErr_Occurred()) SWIG_fail; | |
22014 | } | |
22015 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22016 | return resultobj; | |
22017 | fail: | |
22018 | return NULL; | |
22019 | } | |
22020 | ||
22021 | ||
22022 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22023 | PyObject *resultobj = 0; | |
22024 | wxDC *arg1 = (wxDC *) 0 ; | |
22025 | int *arg2 = (int *) 0 ; | |
22026 | int *arg3 = (int *) 0 ; | |
22027 | void *argp1 = 0 ; | |
22028 | int res1 = 0 ; | |
22029 | int temp2 ; | |
22030 | int res2 = SWIG_TMPOBJ ; | |
22031 | int temp3 ; | |
22032 | int res3 = SWIG_TMPOBJ ; | |
22033 | PyObject *swig_obj[1] ; | |
22034 | ||
22035 | arg2 = &temp2; | |
22036 | arg3 = &temp3; | |
22037 | if (!args) SWIG_fail; | |
22038 | swig_obj[0] = args; | |
22039 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22040 | if (!SWIG_IsOK(res1)) { | |
22041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22042 | } | |
22043 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22044 | { | |
22045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22046 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
22047 | wxPyEndAllowThreads(__tstate); | |
22048 | if (PyErr_Occurred()) SWIG_fail; | |
22049 | } | |
22050 | resultobj = SWIG_Py_Void(); | |
22051 | if (SWIG_IsTmpObj(res2)) { | |
22052 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22053 | } else { | |
22054 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22055 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22056 | } | |
22057 | if (SWIG_IsTmpObj(res3)) { | |
22058 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22059 | } else { | |
22060 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22061 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22062 | } | |
22063 | return resultobj; | |
22064 | fail: | |
22065 | return NULL; | |
22066 | } | |
22067 | ||
22068 | ||
22069 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22070 | PyObject *resultobj = 0; | |
22071 | wxDC *arg1 = (wxDC *) 0 ; | |
22072 | int arg2 ; | |
22073 | int result; | |
22074 | void *argp1 = 0 ; | |
22075 | int res1 = 0 ; | |
22076 | int val2 ; | |
22077 | int ecode2 = 0 ; | |
22078 | PyObject * obj0 = 0 ; | |
22079 | PyObject * obj1 = 0 ; | |
22080 | char * kwnames[] = { | |
22081 | (char *) "self",(char *) "x", NULL | |
22082 | }; | |
22083 | ||
22084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
22085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22086 | if (!SWIG_IsOK(res1)) { | |
22087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22088 | } | |
22089 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22090 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22091 | if (!SWIG_IsOK(ecode2)) { | |
22092 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
22093 | } | |
22094 | arg2 = static_cast< int >(val2); | |
22095 | { | |
22096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22097 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
22098 | wxPyEndAllowThreads(__tstate); | |
22099 | if (PyErr_Occurred()) SWIG_fail; | |
22100 | } | |
22101 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22102 | return resultobj; | |
22103 | fail: | |
22104 | return NULL; | |
22105 | } | |
22106 | ||
22107 | ||
22108 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22109 | PyObject *resultobj = 0; | |
22110 | wxDC *arg1 = (wxDC *) 0 ; | |
22111 | int arg2 ; | |
22112 | int result; | |
22113 | void *argp1 = 0 ; | |
22114 | int res1 = 0 ; | |
22115 | int val2 ; | |
22116 | int ecode2 = 0 ; | |
22117 | PyObject * obj0 = 0 ; | |
22118 | PyObject * obj1 = 0 ; | |
22119 | char * kwnames[] = { | |
22120 | (char *) "self",(char *) "y", NULL | |
22121 | }; | |
22122 | ||
22123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
22124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22125 | if (!SWIG_IsOK(res1)) { | |
22126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22127 | } | |
22128 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22129 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22130 | if (!SWIG_IsOK(ecode2)) { | |
22131 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
22132 | } | |
22133 | arg2 = static_cast< int >(val2); | |
22134 | { | |
22135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22136 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
22137 | wxPyEndAllowThreads(__tstate); | |
22138 | if (PyErr_Occurred()) SWIG_fail; | |
22139 | } | |
22140 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22141 | return resultobj; | |
22142 | fail: | |
22143 | return NULL; | |
22144 | } | |
22145 | ||
22146 | ||
22147 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22148 | PyObject *resultobj = 0; | |
22149 | wxDC *arg1 = (wxDC *) 0 ; | |
22150 | int arg2 ; | |
22151 | int result; | |
22152 | void *argp1 = 0 ; | |
22153 | int res1 = 0 ; | |
22154 | int val2 ; | |
22155 | int ecode2 = 0 ; | |
22156 | PyObject * obj0 = 0 ; | |
22157 | PyObject * obj1 = 0 ; | |
22158 | char * kwnames[] = { | |
22159 | (char *) "self",(char *) "x", NULL | |
22160 | }; | |
22161 | ||
22162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22164 | if (!SWIG_IsOK(res1)) { | |
22165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22166 | } | |
22167 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22168 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22169 | if (!SWIG_IsOK(ecode2)) { | |
22170 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
22171 | } | |
22172 | arg2 = static_cast< int >(val2); | |
22173 | { | |
22174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22175 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
22176 | wxPyEndAllowThreads(__tstate); | |
22177 | if (PyErr_Occurred()) SWIG_fail; | |
22178 | } | |
22179 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22180 | return resultobj; | |
22181 | fail: | |
22182 | return NULL; | |
22183 | } | |
22184 | ||
22185 | ||
22186 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22187 | PyObject *resultobj = 0; | |
22188 | wxDC *arg1 = (wxDC *) 0 ; | |
22189 | int arg2 ; | |
22190 | int result; | |
22191 | void *argp1 = 0 ; | |
22192 | int res1 = 0 ; | |
22193 | int val2 ; | |
22194 | int ecode2 = 0 ; | |
22195 | PyObject * obj0 = 0 ; | |
22196 | PyObject * obj1 = 0 ; | |
22197 | char * kwnames[] = { | |
22198 | (char *) "self",(char *) "y", NULL | |
22199 | }; | |
22200 | ||
22201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22203 | if (!SWIG_IsOK(res1)) { | |
22204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22205 | } | |
22206 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22207 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22208 | if (!SWIG_IsOK(ecode2)) { | |
22209 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
22210 | } | |
22211 | arg2 = static_cast< int >(val2); | |
22212 | { | |
22213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22214 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
22215 | wxPyEndAllowThreads(__tstate); | |
22216 | if (PyErr_Occurred()) SWIG_fail; | |
22217 | } | |
22218 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22219 | return resultobj; | |
22220 | fail: | |
22221 | return NULL; | |
22222 | } | |
22223 | ||
22224 | ||
22225 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22226 | PyObject *resultobj = 0; | |
22227 | wxDC *arg1 = (wxDC *) 0 ; | |
22228 | int arg2 ; | |
22229 | int result; | |
22230 | void *argp1 = 0 ; | |
22231 | int res1 = 0 ; | |
22232 | int val2 ; | |
22233 | int ecode2 = 0 ; | |
22234 | PyObject * obj0 = 0 ; | |
22235 | PyObject * obj1 = 0 ; | |
22236 | char * kwnames[] = { | |
22237 | (char *) "self",(char *) "x", NULL | |
22238 | }; | |
22239 | ||
22240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
22241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22242 | if (!SWIG_IsOK(res1)) { | |
22243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22244 | } | |
22245 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22246 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22247 | if (!SWIG_IsOK(ecode2)) { | |
22248 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
22249 | } | |
22250 | arg2 = static_cast< int >(val2); | |
22251 | { | |
22252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22253 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
22254 | wxPyEndAllowThreads(__tstate); | |
22255 | if (PyErr_Occurred()) SWIG_fail; | |
22256 | } | |
22257 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22258 | return resultobj; | |
22259 | fail: | |
22260 | return NULL; | |
22261 | } | |
22262 | ||
22263 | ||
22264 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22265 | PyObject *resultobj = 0; | |
22266 | wxDC *arg1 = (wxDC *) 0 ; | |
22267 | int arg2 ; | |
22268 | int result; | |
22269 | void *argp1 = 0 ; | |
22270 | int res1 = 0 ; | |
22271 | int val2 ; | |
22272 | int ecode2 = 0 ; | |
22273 | PyObject * obj0 = 0 ; | |
22274 | PyObject * obj1 = 0 ; | |
22275 | char * kwnames[] = { | |
22276 | (char *) "self",(char *) "y", NULL | |
22277 | }; | |
22278 | ||
22279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
22280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22281 | if (!SWIG_IsOK(res1)) { | |
22282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22283 | } | |
22284 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22285 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22286 | if (!SWIG_IsOK(ecode2)) { | |
22287 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
22288 | } | |
22289 | arg2 = static_cast< int >(val2); | |
22290 | { | |
22291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22292 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
22293 | wxPyEndAllowThreads(__tstate); | |
22294 | if (PyErr_Occurred()) SWIG_fail; | |
22295 | } | |
22296 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22297 | return resultobj; | |
22298 | fail: | |
22299 | return NULL; | |
22300 | } | |
22301 | ||
22302 | ||
22303 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22304 | PyObject *resultobj = 0; | |
22305 | wxDC *arg1 = (wxDC *) 0 ; | |
22306 | int arg2 ; | |
22307 | int result; | |
22308 | void *argp1 = 0 ; | |
22309 | int res1 = 0 ; | |
22310 | int val2 ; | |
22311 | int ecode2 = 0 ; | |
22312 | PyObject * obj0 = 0 ; | |
22313 | PyObject * obj1 = 0 ; | |
22314 | char * kwnames[] = { | |
22315 | (char *) "self",(char *) "x", NULL | |
22316 | }; | |
22317 | ||
22318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22320 | if (!SWIG_IsOK(res1)) { | |
22321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22322 | } | |
22323 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22324 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22325 | if (!SWIG_IsOK(ecode2)) { | |
22326 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
22327 | } | |
22328 | arg2 = static_cast< int >(val2); | |
22329 | { | |
22330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22331 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
22332 | wxPyEndAllowThreads(__tstate); | |
22333 | if (PyErr_Occurred()) SWIG_fail; | |
22334 | } | |
22335 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22336 | return resultobj; | |
22337 | fail: | |
22338 | return NULL; | |
22339 | } | |
22340 | ||
22341 | ||
22342 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22343 | PyObject *resultobj = 0; | |
22344 | wxDC *arg1 = (wxDC *) 0 ; | |
22345 | int arg2 ; | |
22346 | int result; | |
22347 | void *argp1 = 0 ; | |
22348 | int res1 = 0 ; | |
22349 | int val2 ; | |
22350 | int ecode2 = 0 ; | |
22351 | PyObject * obj0 = 0 ; | |
22352 | PyObject * obj1 = 0 ; | |
22353 | char * kwnames[] = { | |
22354 | (char *) "self",(char *) "y", NULL | |
22355 | }; | |
22356 | ||
22357 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22358 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22359 | if (!SWIG_IsOK(res1)) { | |
22360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22361 | } | |
22362 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22363 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22364 | if (!SWIG_IsOK(ecode2)) { | |
22365 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
22366 | } | |
22367 | arg2 = static_cast< int >(val2); | |
22368 | { | |
22369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22370 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
22371 | wxPyEndAllowThreads(__tstate); | |
22372 | if (PyErr_Occurred()) SWIG_fail; | |
22373 | } | |
22374 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22375 | return resultobj; | |
22376 | fail: | |
22377 | return NULL; | |
22378 | } | |
22379 | ||
22380 | ||
22381 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22382 | PyObject *resultobj = 0; | |
22383 | wxDC *arg1 = (wxDC *) 0 ; | |
22384 | bool result; | |
22385 | void *argp1 = 0 ; | |
22386 | int res1 = 0 ; | |
22387 | PyObject *swig_obj[1] ; | |
22388 | ||
22389 | if (!args) SWIG_fail; | |
22390 | swig_obj[0] = args; | |
22391 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22392 | if (!SWIG_IsOK(res1)) { | |
22393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22394 | } | |
22395 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22396 | { | |
22397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22398 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
22399 | wxPyEndAllowThreads(__tstate); | |
22400 | if (PyErr_Occurred()) SWIG_fail; | |
22401 | } | |
22402 | { | |
22403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22404 | } | |
22405 | return resultobj; | |
22406 | fail: | |
22407 | return NULL; | |
22408 | } | |
22409 | ||
22410 | ||
22411 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22412 | PyObject *resultobj = 0; | |
22413 | wxDC *arg1 = (wxDC *) 0 ; | |
22414 | bool result; | |
22415 | void *argp1 = 0 ; | |
22416 | int res1 = 0 ; | |
22417 | PyObject *swig_obj[1] ; | |
22418 | ||
22419 | if (!args) SWIG_fail; | |
22420 | swig_obj[0] = args; | |
22421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22422 | if (!SWIG_IsOK(res1)) { | |
22423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22424 | } | |
22425 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22426 | { | |
22427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22428 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
22429 | wxPyEndAllowThreads(__tstate); | |
22430 | if (PyErr_Occurred()) SWIG_fail; | |
22431 | } | |
22432 | { | |
22433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22434 | } | |
22435 | return resultobj; | |
22436 | fail: | |
22437 | return NULL; | |
22438 | } | |
22439 | ||
22440 | ||
22441 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22442 | PyObject *resultobj = 0; | |
22443 | wxDC *arg1 = (wxDC *) 0 ; | |
22444 | int result; | |
22445 | void *argp1 = 0 ; | |
22446 | int res1 = 0 ; | |
22447 | PyObject *swig_obj[1] ; | |
22448 | ||
22449 | if (!args) SWIG_fail; | |
22450 | swig_obj[0] = args; | |
22451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22452 | if (!SWIG_IsOK(res1)) { | |
22453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22454 | } | |
22455 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22456 | { | |
22457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22458 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
22459 | wxPyEndAllowThreads(__tstate); | |
22460 | if (PyErr_Occurred()) SWIG_fail; | |
22461 | } | |
22462 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22463 | return resultobj; | |
22464 | fail: | |
22465 | return NULL; | |
22466 | } | |
22467 | ||
22468 | ||
22469 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22470 | PyObject *resultobj = 0; | |
22471 | wxDC *arg1 = (wxDC *) 0 ; | |
22472 | wxSize result; | |
22473 | void *argp1 = 0 ; | |
22474 | int res1 = 0 ; | |
22475 | PyObject *swig_obj[1] ; | |
22476 | ||
22477 | if (!args) SWIG_fail; | |
22478 | swig_obj[0] = args; | |
22479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22480 | if (!SWIG_IsOK(res1)) { | |
22481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22482 | } | |
22483 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22484 | { | |
22485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22486 | result = ((wxDC const *)arg1)->GetPPI(); | |
22487 | wxPyEndAllowThreads(__tstate); | |
22488 | if (PyErr_Occurred()) SWIG_fail; | |
22489 | } | |
22490 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22491 | return resultobj; | |
22492 | fail: | |
22493 | return NULL; | |
22494 | } | |
22495 | ||
22496 | ||
b39fe951 | 22497 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
22498 | PyObject *resultobj = 0; |
22499 | wxDC *arg1 = (wxDC *) 0 ; | |
22500 | bool result; | |
22501 | void *argp1 = 0 ; | |
22502 | int res1 = 0 ; | |
22503 | PyObject *swig_obj[1] ; | |
22504 | ||
22505 | if (!args) SWIG_fail; | |
22506 | swig_obj[0] = args; | |
22507 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22508 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 22509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
554f62e9 RD |
22510 | } |
22511 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22512 | { | |
22513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 22514 | result = (bool)((wxDC const *)arg1)->IsOk(); |
554f62e9 RD |
22515 | wxPyEndAllowThreads(__tstate); |
22516 | if (PyErr_Occurred()) SWIG_fail; | |
22517 | } | |
22518 | { | |
22519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22520 | } | |
22521 | return resultobj; | |
22522 | fail: | |
22523 | return NULL; | |
22524 | } | |
22525 | ||
22526 | ||
22527 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22528 | PyObject *resultobj = 0; | |
22529 | wxDC *arg1 = (wxDC *) 0 ; | |
22530 | int result; | |
22531 | void *argp1 = 0 ; | |
22532 | int res1 = 0 ; | |
22533 | PyObject *swig_obj[1] ; | |
22534 | ||
22535 | if (!args) SWIG_fail; | |
22536 | swig_obj[0] = args; | |
22537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22538 | if (!SWIG_IsOK(res1)) { | |
22539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22540 | } | |
22541 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22542 | { | |
22543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22544 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
22545 | wxPyEndAllowThreads(__tstate); | |
22546 | if (PyErr_Occurred()) SWIG_fail; | |
22547 | } | |
22548 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22549 | return resultobj; | |
22550 | fail: | |
22551 | return NULL; | |
22552 | } | |
22553 | ||
22554 | ||
22555 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22556 | PyObject *resultobj = 0; | |
22557 | wxDC *arg1 = (wxDC *) 0 ; | |
22558 | wxBrush *result = 0 ; | |
22559 | void *argp1 = 0 ; | |
22560 | int res1 = 0 ; | |
22561 | PyObject *swig_obj[1] ; | |
22562 | ||
22563 | if (!args) SWIG_fail; | |
22564 | swig_obj[0] = args; | |
22565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22566 | if (!SWIG_IsOK(res1)) { | |
22567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22568 | } | |
22569 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22570 | { | |
22571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22572 | { |
554f62e9 RD |
22573 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
22574 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22575 | } |
554f62e9 RD |
22576 | wxPyEndAllowThreads(__tstate); |
22577 | if (PyErr_Occurred()) SWIG_fail; | |
22578 | } | |
22579 | { | |
22580 | wxBrush* resultptr = new wxBrush(*result); | |
22581 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22582 | } | |
22583 | return resultobj; | |
22584 | fail: | |
22585 | return NULL; | |
22586 | } | |
22587 | ||
22588 | ||
22589 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22590 | PyObject *resultobj = 0; | |
22591 | wxDC *arg1 = (wxDC *) 0 ; | |
22592 | wxBrush *result = 0 ; | |
22593 | void *argp1 = 0 ; | |
22594 | int res1 = 0 ; | |
22595 | PyObject *swig_obj[1] ; | |
22596 | ||
22597 | if (!args) SWIG_fail; | |
22598 | swig_obj[0] = args; | |
22599 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22600 | if (!SWIG_IsOK(res1)) { | |
22601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22602 | } | |
22603 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22604 | { | |
22605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22606 | { |
554f62e9 RD |
22607 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
22608 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22609 | } |
554f62e9 RD |
22610 | wxPyEndAllowThreads(__tstate); |
22611 | if (PyErr_Occurred()) SWIG_fail; | |
22612 | } | |
22613 | { | |
22614 | wxBrush* resultptr = new wxBrush(*result); | |
22615 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22616 | } | |
22617 | return resultobj; | |
22618 | fail: | |
22619 | return NULL; | |
22620 | } | |
22621 | ||
22622 | ||
22623 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22624 | PyObject *resultobj = 0; | |
22625 | wxDC *arg1 = (wxDC *) 0 ; | |
22626 | wxFont *result = 0 ; | |
22627 | void *argp1 = 0 ; | |
22628 | int res1 = 0 ; | |
22629 | PyObject *swig_obj[1] ; | |
22630 | ||
22631 | if (!args) SWIG_fail; | |
22632 | swig_obj[0] = args; | |
22633 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22634 | if (!SWIG_IsOK(res1)) { | |
22635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22636 | } | |
22637 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22638 | { | |
22639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22640 | { |
554f62e9 RD |
22641 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
22642 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 22643 | } |
554f62e9 RD |
22644 | wxPyEndAllowThreads(__tstate); |
22645 | if (PyErr_Occurred()) SWIG_fail; | |
22646 | } | |
22647 | { | |
22648 | wxFont* resultptr = new wxFont(*result); | |
22649 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
22650 | } | |
22651 | return resultobj; | |
22652 | fail: | |
22653 | return NULL; | |
22654 | } | |
22655 | ||
22656 | ||
22657 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22658 | PyObject *resultobj = 0; | |
22659 | wxDC *arg1 = (wxDC *) 0 ; | |
22660 | wxPen *result = 0 ; | |
22661 | void *argp1 = 0 ; | |
22662 | int res1 = 0 ; | |
22663 | PyObject *swig_obj[1] ; | |
22664 | ||
22665 | if (!args) SWIG_fail; | |
22666 | swig_obj[0] = args; | |
22667 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22668 | if (!SWIG_IsOK(res1)) { | |
22669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22670 | } | |
22671 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22672 | { | |
22673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22674 | { |
554f62e9 RD |
22675 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
22676 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 22677 | } |
554f62e9 RD |
22678 | wxPyEndAllowThreads(__tstate); |
22679 | if (PyErr_Occurred()) SWIG_fail; | |
22680 | } | |
22681 | { | |
22682 | wxPen* resultptr = new wxPen(*result); | |
22683 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
22684 | } | |
22685 | return resultobj; | |
22686 | fail: | |
22687 | return NULL; | |
22688 | } | |
22689 | ||
22690 | ||
22691 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22692 | PyObject *resultobj = 0; | |
22693 | wxDC *arg1 = (wxDC *) 0 ; | |
22694 | wxColour *result = 0 ; | |
22695 | void *argp1 = 0 ; | |
22696 | int res1 = 0 ; | |
22697 | PyObject *swig_obj[1] ; | |
22698 | ||
22699 | if (!args) SWIG_fail; | |
22700 | swig_obj[0] = args; | |
22701 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22702 | if (!SWIG_IsOK(res1)) { | |
22703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22704 | } | |
22705 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22706 | { | |
22707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22708 | { |
554f62e9 RD |
22709 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
22710 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22711 | } |
554f62e9 RD |
22712 | wxPyEndAllowThreads(__tstate); |
22713 | if (PyErr_Occurred()) SWIG_fail; | |
22714 | } | |
22715 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22716 | return resultobj; | |
22717 | fail: | |
22718 | return NULL; | |
22719 | } | |
22720 | ||
22721 | ||
22722 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22723 | PyObject *resultobj = 0; | |
22724 | wxDC *arg1 = (wxDC *) 0 ; | |
22725 | wxColour *result = 0 ; | |
22726 | void *argp1 = 0 ; | |
22727 | int res1 = 0 ; | |
22728 | PyObject *swig_obj[1] ; | |
22729 | ||
22730 | if (!args) SWIG_fail; | |
22731 | swig_obj[0] = args; | |
22732 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22733 | if (!SWIG_IsOK(res1)) { | |
22734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22735 | } | |
22736 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22737 | { | |
22738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22739 | { |
554f62e9 RD |
22740 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
22741 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22742 | } |
554f62e9 RD |
22743 | wxPyEndAllowThreads(__tstate); |
22744 | if (PyErr_Occurred()) SWIG_fail; | |
22745 | } | |
22746 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22747 | return resultobj; | |
22748 | fail: | |
22749 | return NULL; | |
22750 | } | |
22751 | ||
22752 | ||
22753 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22754 | PyObject *resultobj = 0; | |
22755 | wxDC *arg1 = (wxDC *) 0 ; | |
22756 | wxColour *arg2 = 0 ; | |
22757 | void *argp1 = 0 ; | |
22758 | int res1 = 0 ; | |
22759 | wxColour temp2 ; | |
22760 | PyObject * obj0 = 0 ; | |
22761 | PyObject * obj1 = 0 ; | |
22762 | char * kwnames[] = { | |
22763 | (char *) "self",(char *) "colour", NULL | |
22764 | }; | |
22765 | ||
22766 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22767 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22768 | if (!SWIG_IsOK(res1)) { | |
22769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22770 | } | |
22771 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22772 | { | |
22773 | arg2 = &temp2; | |
22774 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22775 | } | |
22776 | { | |
22777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22778 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
22779 | wxPyEndAllowThreads(__tstate); | |
22780 | if (PyErr_Occurred()) SWIG_fail; | |
22781 | } | |
22782 | resultobj = SWIG_Py_Void(); | |
22783 | return resultobj; | |
22784 | fail: | |
22785 | return NULL; | |
22786 | } | |
22787 | ||
22788 | ||
22789 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22790 | PyObject *resultobj = 0; | |
22791 | wxDC *arg1 = (wxDC *) 0 ; | |
22792 | wxColour *arg2 = 0 ; | |
22793 | void *argp1 = 0 ; | |
22794 | int res1 = 0 ; | |
22795 | wxColour temp2 ; | |
22796 | PyObject * obj0 = 0 ; | |
22797 | PyObject * obj1 = 0 ; | |
22798 | char * kwnames[] = { | |
22799 | (char *) "self",(char *) "colour", NULL | |
22800 | }; | |
22801 | ||
22802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22804 | if (!SWIG_IsOK(res1)) { | |
22805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22806 | } | |
22807 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22808 | { | |
22809 | arg2 = &temp2; | |
22810 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22811 | } | |
22812 | { | |
22813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22814 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
22815 | wxPyEndAllowThreads(__tstate); | |
22816 | if (PyErr_Occurred()) SWIG_fail; | |
22817 | } | |
22818 | resultobj = SWIG_Py_Void(); | |
22819 | return resultobj; | |
22820 | fail: | |
22821 | return NULL; | |
22822 | } | |
22823 | ||
22824 | ||
22825 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22826 | PyObject *resultobj = 0; | |
22827 | wxDC *arg1 = (wxDC *) 0 ; | |
22828 | int result; | |
22829 | void *argp1 = 0 ; | |
22830 | int res1 = 0 ; | |
22831 | PyObject *swig_obj[1] ; | |
22832 | ||
22833 | if (!args) SWIG_fail; | |
22834 | swig_obj[0] = args; | |
22835 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22836 | if (!SWIG_IsOK(res1)) { | |
22837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22838 | } | |
22839 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22840 | { | |
22841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22842 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22843 | wxPyEndAllowThreads(__tstate); | |
22844 | if (PyErr_Occurred()) SWIG_fail; | |
22845 | } | |
22846 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22847 | return resultobj; | |
22848 | fail: | |
22849 | return NULL; | |
22850 | } | |
22851 | ||
22852 | ||
22853 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22854 | PyObject *resultobj = 0; | |
22855 | wxDC *arg1 = (wxDC *) 0 ; | |
22856 | int arg2 ; | |
22857 | void *argp1 = 0 ; | |
22858 | int res1 = 0 ; | |
22859 | int val2 ; | |
22860 | int ecode2 = 0 ; | |
22861 | PyObject * obj0 = 0 ; | |
22862 | PyObject * obj1 = 0 ; | |
22863 | char * kwnames[] = { | |
22864 | (char *) "self",(char *) "mode", NULL | |
22865 | }; | |
22866 | ||
22867 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22869 | if (!SWIG_IsOK(res1)) { | |
22870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22871 | } | |
22872 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22873 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22874 | if (!SWIG_IsOK(ecode2)) { | |
22875 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22876 | } | |
22877 | arg2 = static_cast< int >(val2); | |
22878 | { | |
22879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22880 | (arg1)->SetMapMode(arg2); | |
22881 | wxPyEndAllowThreads(__tstate); | |
22882 | if (PyErr_Occurred()) SWIG_fail; | |
22883 | } | |
22884 | resultobj = SWIG_Py_Void(); | |
22885 | return resultobj; | |
22886 | fail: | |
22887 | return NULL; | |
22888 | } | |
22889 | ||
22890 | ||
22891 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22892 | PyObject *resultobj = 0; | |
22893 | wxDC *arg1 = (wxDC *) 0 ; | |
22894 | double *arg2 = (double *) 0 ; | |
22895 | double *arg3 = (double *) 0 ; | |
22896 | void *argp1 = 0 ; | |
22897 | int res1 = 0 ; | |
22898 | double temp2 ; | |
22899 | int res2 = SWIG_TMPOBJ ; | |
22900 | double temp3 ; | |
22901 | int res3 = SWIG_TMPOBJ ; | |
22902 | PyObject *swig_obj[1] ; | |
22903 | ||
22904 | arg2 = &temp2; | |
22905 | arg3 = &temp3; | |
22906 | if (!args) SWIG_fail; | |
22907 | swig_obj[0] = args; | |
22908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22909 | if (!SWIG_IsOK(res1)) { | |
22910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22911 | } | |
22912 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22913 | { | |
22914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22915 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22916 | wxPyEndAllowThreads(__tstate); | |
22917 | if (PyErr_Occurred()) SWIG_fail; | |
22918 | } | |
22919 | resultobj = SWIG_Py_Void(); | |
22920 | if (SWIG_IsTmpObj(res2)) { | |
22921 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22922 | } else { | |
22923 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22924 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22925 | } | |
22926 | if (SWIG_IsTmpObj(res3)) { | |
22927 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22928 | } else { | |
22929 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22930 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22931 | } | |
22932 | return resultobj; | |
22933 | fail: | |
22934 | return NULL; | |
22935 | } | |
22936 | ||
22937 | ||
22938 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22939 | PyObject *resultobj = 0; | |
22940 | wxDC *arg1 = (wxDC *) 0 ; | |
22941 | double arg2 ; | |
22942 | double arg3 ; | |
22943 | void *argp1 = 0 ; | |
22944 | int res1 = 0 ; | |
22945 | double val2 ; | |
22946 | int ecode2 = 0 ; | |
22947 | double val3 ; | |
22948 | int ecode3 = 0 ; | |
22949 | PyObject * obj0 = 0 ; | |
22950 | PyObject * obj1 = 0 ; | |
22951 | PyObject * obj2 = 0 ; | |
22952 | char * kwnames[] = { | |
22953 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22954 | }; | |
22955 | ||
22956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22958 | if (!SWIG_IsOK(res1)) { | |
22959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22960 | } | |
22961 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22962 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22963 | if (!SWIG_IsOK(ecode2)) { | |
22964 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22965 | } | |
22966 | arg2 = static_cast< double >(val2); | |
22967 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22968 | if (!SWIG_IsOK(ecode3)) { | |
22969 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
22970 | } | |
22971 | arg3 = static_cast< double >(val3); | |
22972 | { | |
22973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22974 | (arg1)->SetUserScale(arg2,arg3); | |
22975 | wxPyEndAllowThreads(__tstate); | |
22976 | if (PyErr_Occurred()) SWIG_fail; | |
22977 | } | |
22978 | resultobj = SWIG_Py_Void(); | |
22979 | return resultobj; | |
22980 | fail: | |
22981 | return NULL; | |
22982 | } | |
22983 | ||
22984 | ||
22985 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22986 | PyObject *resultobj = 0; | |
22987 | wxDC *arg1 = (wxDC *) 0 ; | |
22988 | double *arg2 = (double *) 0 ; | |
22989 | double *arg3 = (double *) 0 ; | |
22990 | void *argp1 = 0 ; | |
22991 | int res1 = 0 ; | |
22992 | double temp2 ; | |
22993 | int res2 = SWIG_TMPOBJ ; | |
22994 | double temp3 ; | |
22995 | int res3 = SWIG_TMPOBJ ; | |
22996 | PyObject *swig_obj[1] ; | |
22997 | ||
22998 | arg2 = &temp2; | |
22999 | arg3 = &temp3; | |
23000 | if (!args) SWIG_fail; | |
23001 | swig_obj[0] = args; | |
23002 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23003 | if (!SWIG_IsOK(res1)) { | |
23004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23005 | } | |
23006 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23007 | { | |
23008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23009 | (arg1)->GetLogicalScale(arg2,arg3); | |
23010 | wxPyEndAllowThreads(__tstate); | |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
23012 | } | |
23013 | resultobj = SWIG_Py_Void(); | |
23014 | if (SWIG_IsTmpObj(res2)) { | |
23015 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
23016 | } else { | |
23017 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23018 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
23019 | } | |
23020 | if (SWIG_IsTmpObj(res3)) { | |
23021 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
23022 | } else { | |
23023 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23024 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
23025 | } | |
23026 | return resultobj; | |
23027 | fail: | |
23028 | return NULL; | |
23029 | } | |
23030 | ||
23031 | ||
23032 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23033 | PyObject *resultobj = 0; | |
23034 | wxDC *arg1 = (wxDC *) 0 ; | |
23035 | double arg2 ; | |
23036 | double arg3 ; | |
23037 | void *argp1 = 0 ; | |
23038 | int res1 = 0 ; | |
23039 | double val2 ; | |
23040 | int ecode2 = 0 ; | |
23041 | double val3 ; | |
23042 | int ecode3 = 0 ; | |
23043 | PyObject * obj0 = 0 ; | |
23044 | PyObject * obj1 = 0 ; | |
23045 | PyObject * obj2 = 0 ; | |
23046 | char * kwnames[] = { | |
23047 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23048 | }; | |
23049 | ||
23050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23052 | if (!SWIG_IsOK(res1)) { | |
23053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23054 | } | |
23055 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23056 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
23057 | if (!SWIG_IsOK(ecode2)) { | |
23058 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
23059 | } | |
23060 | arg2 = static_cast< double >(val2); | |
23061 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
23062 | if (!SWIG_IsOK(ecode3)) { | |
23063 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
23064 | } | |
23065 | arg3 = static_cast< double >(val3); | |
23066 | { | |
23067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23068 | (arg1)->SetLogicalScale(arg2,arg3); | |
23069 | wxPyEndAllowThreads(__tstate); | |
23070 | if (PyErr_Occurred()) SWIG_fail; | |
23071 | } | |
23072 | resultobj = SWIG_Py_Void(); | |
23073 | return resultobj; | |
23074 | fail: | |
23075 | return NULL; | |
23076 | } | |
23077 | ||
23078 | ||
23079 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23080 | PyObject *resultobj = 0; | |
23081 | wxDC *arg1 = (wxDC *) 0 ; | |
23082 | wxPoint result; | |
23083 | void *argp1 = 0 ; | |
23084 | int res1 = 0 ; | |
23085 | PyObject *swig_obj[1] ; | |
23086 | ||
23087 | if (!args) SWIG_fail; | |
23088 | swig_obj[0] = args; | |
23089 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23090 | if (!SWIG_IsOK(res1)) { | |
23091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23092 | } | |
23093 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23094 | { | |
23095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23096 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
23097 | wxPyEndAllowThreads(__tstate); | |
23098 | if (PyErr_Occurred()) SWIG_fail; | |
23099 | } | |
23100 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
23101 | return resultobj; | |
23102 | fail: | |
23103 | return NULL; | |
23104 | } | |
23105 | ||
23106 | ||
23107 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23108 | PyObject *resultobj = 0; | |
23109 | wxDC *arg1 = (wxDC *) 0 ; | |
23110 | int *arg2 = (int *) 0 ; | |
23111 | int *arg3 = (int *) 0 ; | |
23112 | void *argp1 = 0 ; | |
23113 | int res1 = 0 ; | |
23114 | int temp2 ; | |
23115 | int res2 = SWIG_TMPOBJ ; | |
23116 | int temp3 ; | |
23117 | int res3 = SWIG_TMPOBJ ; | |
23118 | PyObject *swig_obj[1] ; | |
23119 | ||
23120 | arg2 = &temp2; | |
23121 | arg3 = &temp3; | |
23122 | if (!args) SWIG_fail; | |
23123 | swig_obj[0] = args; | |
23124 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23125 | if (!SWIG_IsOK(res1)) { | |
23126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23127 | } | |
23128 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23129 | { | |
23130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23131 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
23132 | wxPyEndAllowThreads(__tstate); | |
23133 | if (PyErr_Occurred()) SWIG_fail; | |
23134 | } | |
23135 | resultobj = SWIG_Py_Void(); | |
23136 | if (SWIG_IsTmpObj(res2)) { | |
23137 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23138 | } else { | |
23139 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23140 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23141 | } | |
23142 | if (SWIG_IsTmpObj(res3)) { | |
23143 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23144 | } else { | |
23145 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23146 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23147 | } | |
23148 | return resultobj; | |
23149 | fail: | |
23150 | return NULL; | |
23151 | } | |
23152 | ||
23153 | ||
23154 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23155 | PyObject *resultobj = 0; | |
23156 | wxDC *arg1 = (wxDC *) 0 ; | |
23157 | int arg2 ; | |
23158 | int arg3 ; | |
23159 | void *argp1 = 0 ; | |
23160 | int res1 = 0 ; | |
23161 | int val2 ; | |
23162 | int ecode2 = 0 ; | |
23163 | int val3 ; | |
23164 | int ecode3 = 0 ; | |
23165 | PyObject * obj0 = 0 ; | |
23166 | PyObject * obj1 = 0 ; | |
23167 | PyObject * obj2 = 0 ; | |
23168 | char * kwnames[] = { | |
23169 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23170 | }; | |
23171 | ||
23172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23174 | if (!SWIG_IsOK(res1)) { | |
23175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23176 | } | |
23177 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23178 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23179 | if (!SWIG_IsOK(ecode2)) { | |
23180 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
23181 | } | |
23182 | arg2 = static_cast< int >(val2); | |
23183 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23184 | if (!SWIG_IsOK(ecode3)) { | |
23185 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
23186 | } | |
23187 | arg3 = static_cast< int >(val3); | |
23188 | { | |
23189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23190 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
23191 | wxPyEndAllowThreads(__tstate); | |
23192 | if (PyErr_Occurred()) SWIG_fail; | |
23193 | } | |
23194 | resultobj = SWIG_Py_Void(); | |
23195 | return resultobj; | |
23196 | fail: | |
23197 | return NULL; | |
23198 | } | |
23199 | ||
23200 | ||
23201 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23202 | PyObject *resultobj = 0; | |
23203 | wxDC *arg1 = (wxDC *) 0 ; | |
23204 | wxPoint *arg2 = 0 ; | |
23205 | void *argp1 = 0 ; | |
23206 | int res1 = 0 ; | |
23207 | wxPoint temp2 ; | |
23208 | PyObject * obj0 = 0 ; | |
23209 | PyObject * obj1 = 0 ; | |
23210 | char * kwnames[] = { | |
23211 | (char *) "self",(char *) "point", NULL | |
23212 | }; | |
23213 | ||
23214 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23216 | if (!SWIG_IsOK(res1)) { | |
23217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23218 | } | |
23219 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23220 | { | |
23221 | arg2 = &temp2; | |
23222 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23223 | } | |
23224 | { | |
23225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23226 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
23227 | wxPyEndAllowThreads(__tstate); | |
23228 | if (PyErr_Occurred()) SWIG_fail; | |
23229 | } | |
23230 | resultobj = SWIG_Py_Void(); | |
23231 | return resultobj; | |
23232 | fail: | |
23233 | return NULL; | |
23234 | } | |
23235 | ||
23236 | ||
23237 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23238 | PyObject *resultobj = 0; | |
23239 | wxDC *arg1 = (wxDC *) 0 ; | |
23240 | wxPoint result; | |
23241 | void *argp1 = 0 ; | |
23242 | int res1 = 0 ; | |
23243 | PyObject *swig_obj[1] ; | |
23244 | ||
23245 | if (!args) SWIG_fail; | |
23246 | swig_obj[0] = args; | |
23247 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23248 | if (!SWIG_IsOK(res1)) { | |
23249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23250 | } | |
23251 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23252 | { | |
23253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23254 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
23255 | wxPyEndAllowThreads(__tstate); | |
23256 | if (PyErr_Occurred()) SWIG_fail; | |
23257 | } | |
23258 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
23259 | return resultobj; | |
23260 | fail: | |
23261 | return NULL; | |
23262 | } | |
23263 | ||
23264 | ||
23265 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23266 | PyObject *resultobj = 0; | |
23267 | wxDC *arg1 = (wxDC *) 0 ; | |
23268 | int *arg2 = (int *) 0 ; | |
23269 | int *arg3 = (int *) 0 ; | |
23270 | void *argp1 = 0 ; | |
23271 | int res1 = 0 ; | |
23272 | int temp2 ; | |
23273 | int res2 = SWIG_TMPOBJ ; | |
23274 | int temp3 ; | |
23275 | int res3 = SWIG_TMPOBJ ; | |
23276 | PyObject *swig_obj[1] ; | |
23277 | ||
23278 | arg2 = &temp2; | |
23279 | arg3 = &temp3; | |
23280 | if (!args) SWIG_fail; | |
23281 | swig_obj[0] = args; | |
23282 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23283 | if (!SWIG_IsOK(res1)) { | |
23284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23285 | } | |
23286 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23287 | { | |
23288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23289 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
23290 | wxPyEndAllowThreads(__tstate); | |
23291 | if (PyErr_Occurred()) SWIG_fail; | |
23292 | } | |
23293 | resultobj = SWIG_Py_Void(); | |
23294 | if (SWIG_IsTmpObj(res2)) { | |
23295 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23296 | } else { | |
23297 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23298 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23299 | } | |
23300 | if (SWIG_IsTmpObj(res3)) { | |
23301 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23302 | } else { | |
23303 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23304 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23305 | } | |
23306 | return resultobj; | |
23307 | fail: | |
23308 | return NULL; | |
23309 | } | |
23310 | ||
23311 | ||
23312 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23313 | PyObject *resultobj = 0; | |
23314 | wxDC *arg1 = (wxDC *) 0 ; | |
23315 | int arg2 ; | |
23316 | int arg3 ; | |
23317 | void *argp1 = 0 ; | |
23318 | int res1 = 0 ; | |
23319 | int val2 ; | |
23320 | int ecode2 = 0 ; | |
23321 | int val3 ; | |
23322 | int ecode3 = 0 ; | |
23323 | PyObject * obj0 = 0 ; | |
23324 | PyObject * obj1 = 0 ; | |
23325 | PyObject * obj2 = 0 ; | |
23326 | char * kwnames[] = { | |
23327 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23328 | }; | |
23329 | ||
23330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23332 | if (!SWIG_IsOK(res1)) { | |
23333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23334 | } | |
23335 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23336 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23337 | if (!SWIG_IsOK(ecode2)) { | |
23338 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
23339 | } | |
23340 | arg2 = static_cast< int >(val2); | |
23341 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23342 | if (!SWIG_IsOK(ecode3)) { | |
23343 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
23344 | } | |
23345 | arg3 = static_cast< int >(val3); | |
23346 | { | |
23347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23348 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
23349 | wxPyEndAllowThreads(__tstate); | |
23350 | if (PyErr_Occurred()) SWIG_fail; | |
23351 | } | |
23352 | resultobj = SWIG_Py_Void(); | |
23353 | return resultobj; | |
23354 | fail: | |
23355 | return NULL; | |
23356 | } | |
23357 | ||
23358 | ||
23359 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23360 | PyObject *resultobj = 0; | |
23361 | wxDC *arg1 = (wxDC *) 0 ; | |
23362 | wxPoint *arg2 = 0 ; | |
23363 | void *argp1 = 0 ; | |
23364 | int res1 = 0 ; | |
23365 | wxPoint temp2 ; | |
23366 | PyObject * obj0 = 0 ; | |
23367 | PyObject * obj1 = 0 ; | |
23368 | char * kwnames[] = { | |
23369 | (char *) "self",(char *) "point", NULL | |
23370 | }; | |
23371 | ||
23372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23374 | if (!SWIG_IsOK(res1)) { | |
23375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23376 | } | |
23377 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23378 | { | |
23379 | arg2 = &temp2; | |
23380 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23381 | } | |
23382 | { | |
23383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23384 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
23385 | wxPyEndAllowThreads(__tstate); | |
23386 | if (PyErr_Occurred()) SWIG_fail; | |
23387 | } | |
23388 | resultobj = SWIG_Py_Void(); | |
23389 | return resultobj; | |
23390 | fail: | |
23391 | return NULL; | |
23392 | } | |
23393 | ||
23394 | ||
23395 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23396 | PyObject *resultobj = 0; | |
23397 | wxDC *arg1 = (wxDC *) 0 ; | |
23398 | bool arg2 ; | |
23399 | bool arg3 ; | |
23400 | void *argp1 = 0 ; | |
23401 | int res1 = 0 ; | |
23402 | bool val2 ; | |
23403 | int ecode2 = 0 ; | |
23404 | bool val3 ; | |
23405 | int ecode3 = 0 ; | |
23406 | PyObject * obj0 = 0 ; | |
23407 | PyObject * obj1 = 0 ; | |
23408 | PyObject * obj2 = 0 ; | |
23409 | char * kwnames[] = { | |
23410 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
23411 | }; | |
23412 | ||
23413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23415 | if (!SWIG_IsOK(res1)) { | |
23416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23417 | } | |
23418 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23419 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23420 | if (!SWIG_IsOK(ecode2)) { | |
23421 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
23422 | } | |
23423 | arg2 = static_cast< bool >(val2); | |
23424 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
23425 | if (!SWIG_IsOK(ecode3)) { | |
23426 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
23427 | } | |
23428 | arg3 = static_cast< bool >(val3); | |
23429 | { | |
23430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23431 | (arg1)->SetAxisOrientation(arg2,arg3); | |
23432 | wxPyEndAllowThreads(__tstate); | |
23433 | if (PyErr_Occurred()) SWIG_fail; | |
23434 | } | |
23435 | resultobj = SWIG_Py_Void(); | |
23436 | return resultobj; | |
23437 | fail: | |
23438 | return NULL; | |
23439 | } | |
23440 | ||
23441 | ||
23442 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23443 | PyObject *resultobj = 0; | |
23444 | wxDC *arg1 = (wxDC *) 0 ; | |
23445 | int result; | |
23446 | void *argp1 = 0 ; | |
23447 | int res1 = 0 ; | |
23448 | PyObject *swig_obj[1] ; | |
23449 | ||
23450 | if (!args) SWIG_fail; | |
23451 | swig_obj[0] = args; | |
23452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23453 | if (!SWIG_IsOK(res1)) { | |
23454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23455 | } | |
23456 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23457 | { | |
23458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23459 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
23460 | wxPyEndAllowThreads(__tstate); | |
23461 | if (PyErr_Occurred()) SWIG_fail; | |
23462 | } | |
23463 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23464 | return resultobj; | |
23465 | fail: | |
23466 | return NULL; | |
23467 | } | |
23468 | ||
23469 | ||
23470 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23471 | PyObject *resultobj = 0; | |
23472 | wxDC *arg1 = (wxDC *) 0 ; | |
23473 | int arg2 ; | |
23474 | void *argp1 = 0 ; | |
23475 | int res1 = 0 ; | |
23476 | int val2 ; | |
23477 | int ecode2 = 0 ; | |
23478 | PyObject * obj0 = 0 ; | |
23479 | PyObject * obj1 = 0 ; | |
23480 | char * kwnames[] = { | |
23481 | (char *) "self",(char *) "function", NULL | |
23482 | }; | |
23483 | ||
23484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
23485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23486 | if (!SWIG_IsOK(res1)) { | |
23487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23488 | } | |
23489 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23490 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23491 | if (!SWIG_IsOK(ecode2)) { | |
23492 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
23493 | } | |
23494 | arg2 = static_cast< int >(val2); | |
23495 | { | |
23496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23497 | (arg1)->SetLogicalFunction(arg2); | |
23498 | wxPyEndAllowThreads(__tstate); | |
23499 | if (PyErr_Occurred()) SWIG_fail; | |
23500 | } | |
23501 | resultobj = SWIG_Py_Void(); | |
23502 | return resultobj; | |
23503 | fail: | |
23504 | return NULL; | |
23505 | } | |
23506 | ||
23507 | ||
23508 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23509 | PyObject *resultobj = 0; | |
23510 | wxDC *arg1 = (wxDC *) 0 ; | |
23511 | void *argp1 = 0 ; | |
23512 | int res1 = 0 ; | |
23513 | PyObject *swig_obj[1] ; | |
23514 | ||
23515 | if (!args) SWIG_fail; | |
23516 | swig_obj[0] = args; | |
23517 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23518 | if (!SWIG_IsOK(res1)) { | |
23519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23520 | } | |
23521 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23522 | { | |
23523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23524 | (arg1)->ComputeScaleAndOrigin(); | |
23525 | wxPyEndAllowThreads(__tstate); | |
23526 | if (PyErr_Occurred()) SWIG_fail; | |
23527 | } | |
23528 | resultobj = SWIG_Py_Void(); | |
23529 | return resultobj; | |
23530 | fail: | |
23531 | return NULL; | |
23532 | } | |
23533 | ||
23534 | ||
23535 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23536 | PyObject *resultobj = 0; | |
23537 | wxDC *arg1 = (wxDC *) 0 ; | |
23538 | int arg2 ; | |
23539 | int arg3 ; | |
23540 | void *argp1 = 0 ; | |
23541 | int res1 = 0 ; | |
23542 | int val2 ; | |
23543 | int ecode2 = 0 ; | |
23544 | int val3 ; | |
23545 | int ecode3 = 0 ; | |
23546 | PyObject * obj0 = 0 ; | |
23547 | PyObject * obj1 = 0 ; | |
23548 | PyObject * obj2 = 0 ; | |
23549 | char * kwnames[] = { | |
23550 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23551 | }; | |
23552 | ||
23553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23555 | if (!SWIG_IsOK(res1)) { | |
23556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23557 | } | |
23558 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23559 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23560 | if (!SWIG_IsOK(ecode2)) { | |
23561 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
23562 | } | |
23563 | arg2 = static_cast< int >(val2); | |
23564 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23565 | if (!SWIG_IsOK(ecode3)) { | |
23566 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
23567 | } | |
23568 | arg3 = static_cast< int >(val3); | |
23569 | { | |
23570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23571 | (arg1)->CalcBoundingBox(arg2,arg3); | |
23572 | wxPyEndAllowThreads(__tstate); | |
23573 | if (PyErr_Occurred()) SWIG_fail; | |
23574 | } | |
23575 | resultobj = SWIG_Py_Void(); | |
23576 | return resultobj; | |
23577 | fail: | |
23578 | return NULL; | |
23579 | } | |
23580 | ||
23581 | ||
23582 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23583 | PyObject *resultobj = 0; | |
23584 | wxDC *arg1 = (wxDC *) 0 ; | |
23585 | wxPoint *arg2 = 0 ; | |
23586 | void *argp1 = 0 ; | |
23587 | int res1 = 0 ; | |
23588 | wxPoint temp2 ; | |
23589 | PyObject * obj0 = 0 ; | |
23590 | PyObject * obj1 = 0 ; | |
23591 | char * kwnames[] = { | |
23592 | (char *) "self",(char *) "point", NULL | |
23593 | }; | |
23594 | ||
23595 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23596 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23597 | if (!SWIG_IsOK(res1)) { | |
23598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23599 | } | |
23600 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23601 | { | |
23602 | arg2 = &temp2; | |
23603 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23604 | } | |
23605 | { | |
23606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23607 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
23608 | wxPyEndAllowThreads(__tstate); | |
23609 | if (PyErr_Occurred()) SWIG_fail; | |
23610 | } | |
23611 | resultobj = SWIG_Py_Void(); | |
23612 | return resultobj; | |
23613 | fail: | |
23614 | return NULL; | |
23615 | } | |
23616 | ||
23617 | ||
23618 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23619 | PyObject *resultobj = 0; | |
23620 | wxDC *arg1 = (wxDC *) 0 ; | |
23621 | void *argp1 = 0 ; | |
23622 | int res1 = 0 ; | |
23623 | PyObject *swig_obj[1] ; | |
23624 | ||
23625 | if (!args) SWIG_fail; | |
23626 | swig_obj[0] = args; | |
23627 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23628 | if (!SWIG_IsOK(res1)) { | |
23629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23630 | } | |
23631 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23632 | { | |
23633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23634 | (arg1)->ResetBoundingBox(); | |
23635 | wxPyEndAllowThreads(__tstate); | |
23636 | if (PyErr_Occurred()) SWIG_fail; | |
23637 | } | |
23638 | resultobj = SWIG_Py_Void(); | |
23639 | return resultobj; | |
23640 | fail: | |
23641 | return NULL; | |
23642 | } | |
23643 | ||
23644 | ||
23645 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23646 | PyObject *resultobj = 0; | |
23647 | wxDC *arg1 = (wxDC *) 0 ; | |
23648 | int result; | |
23649 | void *argp1 = 0 ; | |
23650 | int res1 = 0 ; | |
23651 | PyObject *swig_obj[1] ; | |
23652 | ||
23653 | if (!args) SWIG_fail; | |
23654 | swig_obj[0] = args; | |
23655 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23656 | if (!SWIG_IsOK(res1)) { | |
23657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23658 | } | |
23659 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23660 | { | |
23661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23662 | result = (int)((wxDC const *)arg1)->MinX(); | |
23663 | wxPyEndAllowThreads(__tstate); | |
23664 | if (PyErr_Occurred()) SWIG_fail; | |
23665 | } | |
23666 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23667 | return resultobj; | |
23668 | fail: | |
23669 | return NULL; | |
23670 | } | |
23671 | ||
23672 | ||
23673 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23674 | PyObject *resultobj = 0; | |
23675 | wxDC *arg1 = (wxDC *) 0 ; | |
23676 | int result; | |
23677 | void *argp1 = 0 ; | |
23678 | int res1 = 0 ; | |
23679 | PyObject *swig_obj[1] ; | |
23680 | ||
23681 | if (!args) SWIG_fail; | |
23682 | swig_obj[0] = args; | |
23683 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23684 | if (!SWIG_IsOK(res1)) { | |
23685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23686 | } | |
23687 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23688 | { | |
23689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23690 | result = (int)((wxDC const *)arg1)->MaxX(); | |
23691 | wxPyEndAllowThreads(__tstate); | |
23692 | if (PyErr_Occurred()) SWIG_fail; | |
23693 | } | |
23694 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23695 | return resultobj; | |
23696 | fail: | |
23697 | return NULL; | |
23698 | } | |
23699 | ||
23700 | ||
23701 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23702 | PyObject *resultobj = 0; | |
23703 | wxDC *arg1 = (wxDC *) 0 ; | |
23704 | int result; | |
23705 | void *argp1 = 0 ; | |
23706 | int res1 = 0 ; | |
23707 | PyObject *swig_obj[1] ; | |
23708 | ||
23709 | if (!args) SWIG_fail; | |
23710 | swig_obj[0] = args; | |
23711 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23712 | if (!SWIG_IsOK(res1)) { | |
23713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23714 | } | |
23715 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23716 | { | |
23717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23718 | result = (int)((wxDC const *)arg1)->MinY(); | |
23719 | wxPyEndAllowThreads(__tstate); | |
23720 | if (PyErr_Occurred()) SWIG_fail; | |
23721 | } | |
23722 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23723 | return resultobj; | |
23724 | fail: | |
23725 | return NULL; | |
23726 | } | |
23727 | ||
23728 | ||
23729 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23730 | PyObject *resultobj = 0; | |
23731 | wxDC *arg1 = (wxDC *) 0 ; | |
23732 | int result; | |
23733 | void *argp1 = 0 ; | |
23734 | int res1 = 0 ; | |
23735 | PyObject *swig_obj[1] ; | |
23736 | ||
23737 | if (!args) SWIG_fail; | |
23738 | swig_obj[0] = args; | |
23739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23740 | if (!SWIG_IsOK(res1)) { | |
23741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23742 | } | |
23743 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23744 | { | |
23745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23746 | result = (int)((wxDC const *)arg1)->MaxY(); | |
23747 | wxPyEndAllowThreads(__tstate); | |
23748 | if (PyErr_Occurred()) SWIG_fail; | |
23749 | } | |
23750 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23751 | return resultobj; | |
23752 | fail: | |
23753 | return NULL; | |
23754 | } | |
23755 | ||
23756 | ||
23757 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23758 | PyObject *resultobj = 0; | |
23759 | wxDC *arg1 = (wxDC *) 0 ; | |
23760 | int *arg2 = (int *) 0 ; | |
23761 | int *arg3 = (int *) 0 ; | |
23762 | int *arg4 = (int *) 0 ; | |
23763 | int *arg5 = (int *) 0 ; | |
23764 | void *argp1 = 0 ; | |
23765 | int res1 = 0 ; | |
23766 | int temp2 ; | |
23767 | int res2 = SWIG_TMPOBJ ; | |
23768 | int temp3 ; | |
23769 | int res3 = SWIG_TMPOBJ ; | |
23770 | int temp4 ; | |
23771 | int res4 = SWIG_TMPOBJ ; | |
23772 | int temp5 ; | |
23773 | int res5 = SWIG_TMPOBJ ; | |
23774 | PyObject *swig_obj[1] ; | |
23775 | ||
23776 | arg2 = &temp2; | |
23777 | arg3 = &temp3; | |
23778 | arg4 = &temp4; | |
23779 | arg5 = &temp5; | |
23780 | if (!args) SWIG_fail; | |
23781 | swig_obj[0] = args; | |
23782 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23783 | if (!SWIG_IsOK(res1)) { | |
23784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23785 | } | |
23786 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23787 | { | |
23788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23789 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
23790 | wxPyEndAllowThreads(__tstate); | |
23791 | if (PyErr_Occurred()) SWIG_fail; | |
23792 | } | |
23793 | resultobj = SWIG_Py_Void(); | |
23794 | if (SWIG_IsTmpObj(res2)) { | |
23795 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23796 | } else { | |
23797 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23798 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23799 | } | |
23800 | if (SWIG_IsTmpObj(res3)) { | |
23801 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23802 | } else { | |
23803 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23804 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23805 | } | |
23806 | if (SWIG_IsTmpObj(res4)) { | |
23807 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
23808 | } else { | |
23809 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23810 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
23811 | } | |
23812 | if (SWIG_IsTmpObj(res5)) { | |
23813 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
23814 | } else { | |
23815 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23816 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
23817 | } | |
23818 | return resultobj; | |
23819 | fail: | |
23820 | return NULL; | |
23821 | } | |
23822 | ||
23823 | ||
b39fe951 RD |
23824 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23825 | PyObject *resultobj = 0; | |
23826 | wxDC *arg1 = (wxDC *) 0 ; | |
23827 | wxLayoutDirection result; | |
23828 | void *argp1 = 0 ; | |
23829 | int res1 = 0 ; | |
23830 | PyObject *swig_obj[1] ; | |
23831 | ||
23832 | if (!args) SWIG_fail; | |
23833 | swig_obj[0] = args; | |
23834 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23835 | if (!SWIG_IsOK(res1)) { | |
23836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23837 | } | |
23838 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23839 | { | |
23840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23841 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23842 | wxPyEndAllowThreads(__tstate); | |
23843 | if (PyErr_Occurred()) SWIG_fail; | |
23844 | } | |
23845 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23846 | return resultobj; | |
23847 | fail: | |
23848 | return NULL; | |
23849 | } | |
23850 | ||
23851 | ||
23852 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23853 | PyObject *resultobj = 0; | |
23854 | wxDC *arg1 = (wxDC *) 0 ; | |
23855 | wxLayoutDirection arg2 ; | |
23856 | void *argp1 = 0 ; | |
23857 | int res1 = 0 ; | |
23858 | int val2 ; | |
23859 | int ecode2 = 0 ; | |
23860 | PyObject * obj0 = 0 ; | |
23861 | PyObject * obj1 = 0 ; | |
23862 | char * kwnames[] = { | |
23863 | (char *) "self",(char *) "dir", NULL | |
23864 | }; | |
23865 | ||
23866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23868 | if (!SWIG_IsOK(res1)) { | |
23869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23870 | } | |
23871 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23872 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23873 | if (!SWIG_IsOK(ecode2)) { | |
23874 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23875 | } | |
23876 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23877 | { | |
23878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23879 | (arg1)->SetLayoutDirection(arg2); | |
23880 | wxPyEndAllowThreads(__tstate); | |
23881 | if (PyErr_Occurred()) SWIG_fail; | |
23882 | } | |
23883 | resultobj = SWIG_Py_Void(); | |
23884 | return resultobj; | |
23885 | fail: | |
23886 | return NULL; | |
23887 | } | |
23888 | ||
23889 | ||
554f62e9 RD |
23890 | SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23891 | PyObject *resultobj = 0; | |
23892 | wxDC *arg1 = (wxDC *) 0 ; | |
23893 | long result; | |
23894 | void *argp1 = 0 ; | |
23895 | int res1 = 0 ; | |
23896 | PyObject *swig_obj[1] ; | |
23897 | ||
23898 | if (!args) SWIG_fail; | |
23899 | swig_obj[0] = args; | |
23900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23901 | if (!SWIG_IsOK(res1)) { | |
23902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23903 | } | |
23904 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23905 | { | |
23906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23907 | result = (long)(arg1)->GetHDC(); | |
23908 | wxPyEndAllowThreads(__tstate); | |
23909 | if (PyErr_Occurred()) SWIG_fail; | |
23910 | } | |
23911 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
23912 | return resultobj; | |
23913 | fail: | |
23914 | return NULL; | |
23915 | } | |
23916 | ||
23917 | ||
23918 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23919 | PyObject *resultobj = 0; | |
23920 | wxDC *arg1 = (wxDC *) 0 ; | |
23921 | PyObject *arg2 = (PyObject *) 0 ; | |
23922 | PyObject *arg3 = (PyObject *) 0 ; | |
23923 | PyObject *arg4 = (PyObject *) 0 ; | |
23924 | PyObject *result = 0 ; | |
23925 | void *argp1 = 0 ; | |
23926 | int res1 = 0 ; | |
23927 | PyObject * obj0 = 0 ; | |
23928 | PyObject * obj1 = 0 ; | |
23929 | PyObject * obj2 = 0 ; | |
23930 | PyObject * obj3 = 0 ; | |
23931 | char * kwnames[] = { | |
23932 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23933 | }; | |
23934 | ||
23935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23936 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23937 | if (!SWIG_IsOK(res1)) { | |
23938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23939 | } | |
23940 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23941 | arg2 = obj1; | |
23942 | arg3 = obj2; | |
23943 | arg4 = obj3; | |
23944 | { | |
23945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23946 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23947 | wxPyEndAllowThreads(__tstate); | |
23948 | if (PyErr_Occurred()) SWIG_fail; | |
23949 | } | |
23950 | resultobj = result; | |
23951 | return resultobj; | |
23952 | fail: | |
23953 | return NULL; | |
23954 | } | |
23955 | ||
23956 | ||
23957 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23958 | PyObject *resultobj = 0; | |
23959 | wxDC *arg1 = (wxDC *) 0 ; | |
23960 | PyObject *arg2 = (PyObject *) 0 ; | |
23961 | PyObject *arg3 = (PyObject *) 0 ; | |
23962 | PyObject *arg4 = (PyObject *) 0 ; | |
23963 | PyObject *result = 0 ; | |
23964 | void *argp1 = 0 ; | |
23965 | int res1 = 0 ; | |
23966 | PyObject * obj0 = 0 ; | |
23967 | PyObject * obj1 = 0 ; | |
23968 | PyObject * obj2 = 0 ; | |
23969 | PyObject * obj3 = 0 ; | |
23970 | char * kwnames[] = { | |
23971 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23972 | }; | |
23973 | ||
23974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23976 | if (!SWIG_IsOK(res1)) { | |
23977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23978 | } | |
23979 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23980 | arg2 = obj1; | |
23981 | arg3 = obj2; | |
23982 | arg4 = obj3; | |
23983 | { | |
23984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23985 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
23986 | wxPyEndAllowThreads(__tstate); | |
23987 | if (PyErr_Occurred()) SWIG_fail; | |
23988 | } | |
23989 | resultobj = result; | |
23990 | return resultobj; | |
23991 | fail: | |
23992 | return NULL; | |
23993 | } | |
23994 | ||
23995 | ||
23996 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23997 | PyObject *resultobj = 0; | |
23998 | wxDC *arg1 = (wxDC *) 0 ; | |
23999 | PyObject *arg2 = (PyObject *) 0 ; | |
24000 | PyObject *arg3 = (PyObject *) 0 ; | |
24001 | PyObject *arg4 = (PyObject *) 0 ; | |
24002 | PyObject *result = 0 ; | |
24003 | void *argp1 = 0 ; | |
24004 | int res1 = 0 ; | |
24005 | PyObject * obj0 = 0 ; | |
24006 | PyObject * obj1 = 0 ; | |
24007 | PyObject * obj2 = 0 ; | |
24008 | PyObject * obj3 = 0 ; | |
24009 | char * kwnames[] = { | |
24010 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24011 | }; | |
24012 | ||
24013 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24014 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24015 | if (!SWIG_IsOK(res1)) { | |
24016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24017 | } | |
24018 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24019 | arg2 = obj1; | |
24020 | arg3 = obj2; | |
24021 | arg4 = obj3; | |
24022 | { | |
24023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24024 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
24025 | wxPyEndAllowThreads(__tstate); | |
24026 | if (PyErr_Occurred()) SWIG_fail; | |
24027 | } | |
24028 | resultobj = result; | |
24029 | return resultobj; | |
24030 | fail: | |
24031 | return NULL; | |
24032 | } | |
24033 | ||
24034 | ||
24035 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24036 | PyObject *resultobj = 0; | |
24037 | wxDC *arg1 = (wxDC *) 0 ; | |
24038 | PyObject *arg2 = (PyObject *) 0 ; | |
24039 | PyObject *arg3 = (PyObject *) 0 ; | |
24040 | PyObject *arg4 = (PyObject *) 0 ; | |
24041 | PyObject *result = 0 ; | |
24042 | void *argp1 = 0 ; | |
24043 | int res1 = 0 ; | |
24044 | PyObject * obj0 = 0 ; | |
24045 | PyObject * obj1 = 0 ; | |
24046 | PyObject * obj2 = 0 ; | |
24047 | PyObject * obj3 = 0 ; | |
24048 | char * kwnames[] = { | |
24049 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24050 | }; | |
24051 | ||
24052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24054 | if (!SWIG_IsOK(res1)) { | |
24055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24056 | } | |
24057 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24058 | arg2 = obj1; | |
24059 | arg3 = obj2; | |
24060 | arg4 = obj3; | |
24061 | { | |
24062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24063 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
24064 | wxPyEndAllowThreads(__tstate); | |
24065 | if (PyErr_Occurred()) SWIG_fail; | |
24066 | } | |
24067 | resultobj = result; | |
24068 | return resultobj; | |
24069 | fail: | |
24070 | return NULL; | |
24071 | } | |
24072 | ||
24073 | ||
24074 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24075 | PyObject *resultobj = 0; | |
24076 | wxDC *arg1 = (wxDC *) 0 ; | |
24077 | PyObject *arg2 = (PyObject *) 0 ; | |
24078 | PyObject *arg3 = (PyObject *) 0 ; | |
24079 | PyObject *arg4 = (PyObject *) 0 ; | |
24080 | PyObject *result = 0 ; | |
24081 | void *argp1 = 0 ; | |
24082 | int res1 = 0 ; | |
24083 | PyObject * obj0 = 0 ; | |
24084 | PyObject * obj1 = 0 ; | |
24085 | PyObject * obj2 = 0 ; | |
24086 | PyObject * obj3 = 0 ; | |
24087 | char * kwnames[] = { | |
24088 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24089 | }; | |
24090 | ||
24091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24093 | if (!SWIG_IsOK(res1)) { | |
24094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24095 | } | |
24096 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24097 | arg2 = obj1; | |
24098 | arg3 = obj2; | |
24099 | arg4 = obj3; | |
24100 | { | |
24101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24102 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
24103 | wxPyEndAllowThreads(__tstate); | |
24104 | if (PyErr_Occurred()) SWIG_fail; | |
24105 | } | |
24106 | resultobj = result; | |
24107 | return resultobj; | |
24108 | fail: | |
24109 | return NULL; | |
24110 | } | |
24111 | ||
24112 | ||
24113 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24114 | PyObject *resultobj = 0; | |
24115 | wxDC *arg1 = (wxDC *) 0 ; | |
24116 | PyObject *arg2 = (PyObject *) 0 ; | |
24117 | PyObject *arg3 = (PyObject *) 0 ; | |
24118 | PyObject *arg4 = (PyObject *) 0 ; | |
24119 | PyObject *arg5 = (PyObject *) 0 ; | |
24120 | PyObject *result = 0 ; | |
24121 | void *argp1 = 0 ; | |
24122 | int res1 = 0 ; | |
24123 | PyObject * obj0 = 0 ; | |
24124 | PyObject * obj1 = 0 ; | |
24125 | PyObject * obj2 = 0 ; | |
24126 | PyObject * obj3 = 0 ; | |
24127 | PyObject * obj4 = 0 ; | |
24128 | char * kwnames[] = { | |
24129 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
24130 | }; | |
24131 | ||
24132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24134 | if (!SWIG_IsOK(res1)) { | |
24135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24136 | } | |
24137 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24138 | arg2 = obj1; | |
24139 | arg3 = obj2; | |
24140 | arg4 = obj3; | |
24141 | arg5 = obj4; | |
24142 | { | |
24143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24144 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
24145 | wxPyEndAllowThreads(__tstate); | |
24146 | if (PyErr_Occurred()) SWIG_fail; | |
24147 | } | |
24148 | resultobj = result; | |
24149 | return resultobj; | |
24150 | fail: | |
24151 | return NULL; | |
24152 | } | |
24153 | ||
24154 | ||
24155 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24156 | PyObject *obj; | |
24157 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24158 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
24159 | return SWIG_Py_Void(); | |
24160 | } | |
24161 | ||
70d7cb34 RD |
24162 | SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24163 | PyObject *resultobj = 0; | |
24164 | wxDC *arg1 = 0 ; | |
24165 | wxColour *arg2 = 0 ; | |
24166 | wxDCTextColourChanger *result = 0 ; | |
24167 | void *argp1 = 0 ; | |
24168 | int res1 = 0 ; | |
24169 | wxColour temp2 ; | |
24170 | PyObject * obj0 = 0 ; | |
24171 | PyObject * obj1 = 0 ; | |
24172 | char * kwnames[] = { | |
24173 | (char *) "dc",(char *) "col", NULL | |
24174 | }; | |
24175 | ||
24176 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24177 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24178 | if (!SWIG_IsOK(res1)) { | |
24179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24180 | } | |
24181 | if (!argp1) { | |
24182 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24183 | } | |
24184 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24185 | { | |
24186 | arg2 = &temp2; | |
24187 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24188 | } | |
24189 | { | |
24190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24191 | result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2); | |
24192 | wxPyEndAllowThreads(__tstate); | |
24193 | if (PyErr_Occurred()) SWIG_fail; | |
24194 | } | |
24195 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 ); | |
24196 | return resultobj; | |
24197 | fail: | |
24198 | return NULL; | |
24199 | } | |
24200 | ||
24201 | ||
24202 | SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24203 | PyObject *resultobj = 0; | |
24204 | wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ; | |
24205 | void *argp1 = 0 ; | |
24206 | int res1 = 0 ; | |
24207 | PyObject *swig_obj[1] ; | |
24208 | ||
24209 | if (!args) SWIG_fail; | |
24210 | swig_obj[0] = args; | |
24211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 ); | |
24212 | if (!SWIG_IsOK(res1)) { | |
24213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'"); | |
24214 | } | |
24215 | arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1); | |
24216 | { | |
24217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24218 | delete arg1; | |
24219 | ||
24220 | wxPyEndAllowThreads(__tstate); | |
24221 | if (PyErr_Occurred()) SWIG_fail; | |
24222 | } | |
24223 | resultobj = SWIG_Py_Void(); | |
24224 | return resultobj; | |
24225 | fail: | |
24226 | return NULL; | |
24227 | } | |
24228 | ||
24229 | ||
24230 | SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24231 | PyObject *obj; | |
24232 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24233 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj)); | |
24234 | return SWIG_Py_Void(); | |
24235 | } | |
24236 | ||
24237 | SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24238 | return SWIG_Python_InitShadowInstance(args); | |
24239 | } | |
24240 | ||
24241 | SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24242 | PyObject *resultobj = 0; | |
24243 | wxDC *arg1 = 0 ; | |
24244 | wxPen *arg2 = 0 ; | |
24245 | wxDCPenChanger *result = 0 ; | |
24246 | void *argp1 = 0 ; | |
24247 | int res1 = 0 ; | |
24248 | void *argp2 = 0 ; | |
24249 | int res2 = 0 ; | |
24250 | PyObject * obj0 = 0 ; | |
24251 | PyObject * obj1 = 0 ; | |
24252 | char * kwnames[] = { | |
24253 | (char *) "dc",(char *) "pen", NULL | |
24254 | }; | |
24255 | ||
24256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24257 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24258 | if (!SWIG_IsOK(res1)) { | |
24259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24260 | } | |
24261 | if (!argp1) { | |
24262 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24263 | } | |
24264 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24265 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
24266 | if (!SWIG_IsOK(res2)) { | |
24267 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
24268 | } | |
24269 | if (!argp2) { | |
24270 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
24271 | } | |
24272 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
24273 | { | |
24274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24275 | result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2); | |
24276 | wxPyEndAllowThreads(__tstate); | |
24277 | if (PyErr_Occurred()) SWIG_fail; | |
24278 | } | |
24279 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 ); | |
24280 | return resultobj; | |
24281 | fail: | |
24282 | return NULL; | |
24283 | } | |
24284 | ||
24285 | ||
24286 | SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24287 | PyObject *resultobj = 0; | |
24288 | wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ; | |
24289 | void *argp1 = 0 ; | |
24290 | int res1 = 0 ; | |
24291 | PyObject *swig_obj[1] ; | |
24292 | ||
24293 | if (!args) SWIG_fail; | |
24294 | swig_obj[0] = args; | |
24295 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 ); | |
24296 | if (!SWIG_IsOK(res1)) { | |
24297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'"); | |
24298 | } | |
24299 | arg1 = reinterpret_cast< wxDCPenChanger * >(argp1); | |
24300 | { | |
24301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24302 | delete arg1; | |
24303 | ||
24304 | wxPyEndAllowThreads(__tstate); | |
24305 | if (PyErr_Occurred()) SWIG_fail; | |
24306 | } | |
24307 | resultobj = SWIG_Py_Void(); | |
24308 | return resultobj; | |
24309 | fail: | |
24310 | return NULL; | |
24311 | } | |
24312 | ||
24313 | ||
24314 | SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24315 | PyObject *obj; | |
24316 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24317 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj)); | |
24318 | return SWIG_Py_Void(); | |
24319 | } | |
24320 | ||
24321 | SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24322 | return SWIG_Python_InitShadowInstance(args); | |
24323 | } | |
24324 | ||
24325 | SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24326 | PyObject *resultobj = 0; | |
24327 | wxDC *arg1 = 0 ; | |
24328 | wxBrush *arg2 = 0 ; | |
24329 | wxDCBrushChanger *result = 0 ; | |
24330 | void *argp1 = 0 ; | |
24331 | int res1 = 0 ; | |
24332 | void *argp2 = 0 ; | |
24333 | int res2 = 0 ; | |
24334 | PyObject * obj0 = 0 ; | |
24335 | PyObject * obj1 = 0 ; | |
24336 | char * kwnames[] = { | |
24337 | (char *) "dc",(char *) "brush", NULL | |
24338 | }; | |
24339 | ||
24340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24341 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24342 | if (!SWIG_IsOK(res1)) { | |
24343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24344 | } | |
24345 | if (!argp1) { | |
24346 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24347 | } | |
24348 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24349 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
24350 | if (!SWIG_IsOK(res2)) { | |
24351 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
24352 | } | |
24353 | if (!argp2) { | |
24354 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
24355 | } | |
24356 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
24357 | { | |
24358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24359 | result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2); | |
24360 | wxPyEndAllowThreads(__tstate); | |
24361 | if (PyErr_Occurred()) SWIG_fail; | |
24362 | } | |
24363 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 ); | |
24364 | return resultobj; | |
24365 | fail: | |
24366 | return NULL; | |
24367 | } | |
24368 | ||
24369 | ||
24370 | SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24371 | PyObject *resultobj = 0; | |
24372 | wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ; | |
24373 | void *argp1 = 0 ; | |
24374 | int res1 = 0 ; | |
24375 | PyObject *swig_obj[1] ; | |
24376 | ||
24377 | if (!args) SWIG_fail; | |
24378 | swig_obj[0] = args; | |
24379 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 ); | |
24380 | if (!SWIG_IsOK(res1)) { | |
24381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'"); | |
24382 | } | |
24383 | arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1); | |
24384 | { | |
24385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24386 | delete arg1; | |
24387 | ||
24388 | wxPyEndAllowThreads(__tstate); | |
24389 | if (PyErr_Occurred()) SWIG_fail; | |
24390 | } | |
24391 | resultobj = SWIG_Py_Void(); | |
24392 | return resultobj; | |
24393 | fail: | |
24394 | return NULL; | |
24395 | } | |
24396 | ||
24397 | ||
24398 | SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24399 | PyObject *obj; | |
24400 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24401 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj)); | |
24402 | return SWIG_Py_Void(); | |
24403 | } | |
24404 | ||
24405 | SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24406 | return SWIG_Python_InitShadowInstance(args); | |
24407 | } | |
24408 | ||
24409 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24410 | PyObject *resultobj = 0; | |
24411 | wxDC *arg1 = 0 ; | |
24412 | wxRegion *arg2 = 0 ; | |
24413 | wxDCClipper *result = 0 ; | |
24414 | void *argp1 = 0 ; | |
24415 | int res1 = 0 ; | |
24416 | void *argp2 = 0 ; | |
24417 | int res2 = 0 ; | |
24418 | ||
24419 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
24420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24421 | if (!SWIG_IsOK(res1)) { | |
24422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24423 | } | |
24424 | if (!argp1) { | |
24425 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24426 | } | |
24427 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24428 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
24429 | if (!SWIG_IsOK(res2)) { | |
24430 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
24431 | } | |
24432 | if (!argp2) { | |
24433 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
24434 | } | |
24435 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
24436 | { | |
24437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24438 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2); | |
24439 | wxPyEndAllowThreads(__tstate); | |
24440 | if (PyErr_Occurred()) SWIG_fail; | |
24441 | } | |
24442 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24443 | return resultobj; | |
24444 | fail: | |
24445 | return NULL; | |
24446 | } | |
24447 | ||
24448 | ||
24449 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24450 | PyObject *resultobj = 0; | |
24451 | wxDC *arg1 = 0 ; | |
24452 | wxRect *arg2 = 0 ; | |
24453 | wxDCClipper *result = 0 ; | |
24454 | void *argp1 = 0 ; | |
24455 | int res1 = 0 ; | |
24456 | wxRect temp2 ; | |
24457 | ||
24458 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
24459 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24460 | if (!SWIG_IsOK(res1)) { | |
24461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24462 | } | |
24463 | if (!argp1) { | |
24464 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24465 | } | |
24466 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24467 | { | |
24468 | arg2 = &temp2; | |
24469 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24470 | } | |
24471 | { | |
24472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24473 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2); | |
24474 | wxPyEndAllowThreads(__tstate); | |
24475 | if (PyErr_Occurred()) SWIG_fail; | |
24476 | } | |
24477 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24478 | return resultobj; | |
24479 | fail: | |
24480 | return NULL; | |
24481 | } | |
24482 | ||
24483 | ||
24484 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24485 | PyObject *resultobj = 0; | |
24486 | wxDC *arg1 = 0 ; | |
24487 | int arg2 ; | |
24488 | int arg3 ; | |
24489 | int arg4 ; | |
24490 | int arg5 ; | |
24491 | wxDCClipper *result = 0 ; | |
24492 | void *argp1 = 0 ; | |
24493 | int res1 = 0 ; | |
24494 | int val2 ; | |
24495 | int ecode2 = 0 ; | |
24496 | int val3 ; | |
24497 | int ecode3 = 0 ; | |
24498 | int val4 ; | |
24499 | int ecode4 = 0 ; | |
24500 | int val5 ; | |
24501 | int ecode5 = 0 ; | |
24502 | ||
24503 | if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; | |
24504 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24505 | if (!SWIG_IsOK(res1)) { | |
24506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24507 | } | |
24508 | if (!argp1) { | |
24509 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24510 | } | |
24511 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24512 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
24513 | if (!SWIG_IsOK(ecode2)) { | |
24514 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'"); | |
24515 | } | |
24516 | arg2 = static_cast< int >(val2); | |
24517 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24518 | if (!SWIG_IsOK(ecode3)) { | |
24519 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'"); | |
24520 | } | |
24521 | arg3 = static_cast< int >(val3); | |
24522 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
24523 | if (!SWIG_IsOK(ecode4)) { | |
24524 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'"); | |
24525 | } | |
24526 | arg4 = static_cast< int >(val4); | |
24527 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
24528 | if (!SWIG_IsOK(ecode5)) { | |
24529 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'"); | |
24530 | } | |
24531 | arg5 = static_cast< int >(val5); | |
24532 | { | |
24533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24534 | result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5); | |
24535 | wxPyEndAllowThreads(__tstate); | |
24536 | if (PyErr_Occurred()) SWIG_fail; | |
24537 | } | |
24538 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24539 | return resultobj; | |
24540 | fail: | |
24541 | return NULL; | |
24542 | } | |
24543 | ||
24544 | ||
24545 | SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) { | |
24546 | int argc; | |
24547 | PyObject *argv[6]; | |
24548 | ||
24549 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail; | |
24550 | --argc; | |
24551 | if (argc == 2) { | |
24552 | int _v = 0; | |
24553 | { | |
24554 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0); | |
24555 | _v = SWIG_CheckState(res); | |
24556 | } | |
24557 | if (!_v) goto check_1; | |
24558 | return _wrap_new_DCClipper__SWIG_0(self, argc, argv); | |
24559 | } | |
24560 | check_1: | |
24561 | ||
24562 | if (argc == 2) { | |
24563 | return _wrap_new_DCClipper__SWIG_1(self, argc, argv); | |
24564 | } | |
24565 | if (argc == 5) { | |
24566 | return _wrap_new_DCClipper__SWIG_2(self, argc, argv); | |
24567 | } | |
24568 | ||
24569 | fail: | |
24570 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'"); | |
24571 | return NULL; | |
24572 | } | |
24573 | ||
24574 | ||
24575 | SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24576 | PyObject *resultobj = 0; | |
24577 | wxDCClipper *arg1 = (wxDCClipper *) 0 ; | |
24578 | void *argp1 = 0 ; | |
24579 | int res1 = 0 ; | |
24580 | PyObject *swig_obj[1] ; | |
24581 | ||
24582 | if (!args) SWIG_fail; | |
24583 | swig_obj[0] = args; | |
24584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 ); | |
24585 | if (!SWIG_IsOK(res1)) { | |
24586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'"); | |
24587 | } | |
24588 | arg1 = reinterpret_cast< wxDCClipper * >(argp1); | |
24589 | { | |
24590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24591 | delete arg1; | |
24592 | ||
24593 | wxPyEndAllowThreads(__tstate); | |
24594 | if (PyErr_Occurred()) SWIG_fail; | |
24595 | } | |
24596 | resultobj = SWIG_Py_Void(); | |
24597 | return resultobj; | |
24598 | fail: | |
24599 | return NULL; | |
24600 | } | |
24601 | ||
24602 | ||
24603 | SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24604 | PyObject *obj; | |
24605 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24606 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj)); | |
24607 | return SWIG_Py_Void(); | |
24608 | } | |
24609 | ||
24610 | SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24611 | return SWIG_Python_InitShadowInstance(args); | |
24612 | } | |
24613 | ||
24f6c4e8 RD |
24614 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24615 | PyObject *resultobj = 0; | |
24616 | wxScreenDC *result = 0 ; | |
24617 | ||
24618 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
24619 | { | |
24620 | if (!wxPyCheckForApp()) SWIG_fail; | |
24621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24622 | result = (wxScreenDC *)new wxScreenDC(); | |
24623 | wxPyEndAllowThreads(__tstate); | |
24624 | if (PyErr_Occurred()) SWIG_fail; | |
24625 | } | |
24626 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
24627 | return resultobj; | |
24628 | fail: | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
24633 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24634 | PyObject *resultobj = 0; | |
24635 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24636 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24637 | bool result; | |
24638 | void *argp1 = 0 ; | |
24639 | int res1 = 0 ; | |
24640 | void *argp2 = 0 ; | |
24641 | int res2 = 0 ; | |
24642 | PyObject * obj0 = 0 ; | |
24643 | PyObject * obj1 = 0 ; | |
24644 | char * kwnames[] = { | |
24645 | (char *) "self",(char *) "window", NULL | |
24646 | }; | |
24647 | ||
24648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24650 | if (!SWIG_IsOK(res1)) { | |
24651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24652 | } | |
24653 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24654 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24655 | if (!SWIG_IsOK(res2)) { | |
24656 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24657 | } | |
24658 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24659 | { | |
24660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24661 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24662 | wxPyEndAllowThreads(__tstate); | |
24663 | if (PyErr_Occurred()) SWIG_fail; | |
24664 | } | |
24665 | { | |
24666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24667 | } | |
24668 | return resultobj; | |
24669 | fail: | |
24670 | return NULL; | |
24671 | } | |
24672 | ||
24673 | ||
24674 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24675 | PyObject *resultobj = 0; | |
24676 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24677 | wxRect *arg2 = (wxRect *) NULL ; | |
24678 | bool result; | |
24679 | void *argp1 = 0 ; | |
24680 | int res1 = 0 ; | |
24681 | void *argp2 = 0 ; | |
24682 | int res2 = 0 ; | |
24683 | PyObject * obj0 = 0 ; | |
24684 | PyObject * obj1 = 0 ; | |
24685 | char * kwnames[] = { | |
24686 | (char *) "self",(char *) "rect", NULL | |
24687 | }; | |
24688 | ||
24689 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
24690 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24691 | if (!SWIG_IsOK(res1)) { | |
24692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24693 | } | |
24694 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24695 | if (obj1) { | |
24696 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
24697 | if (!SWIG_IsOK(res2)) { | |
24698 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
24699 | } | |
24700 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
24701 | } | |
24702 | { | |
24703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24704 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24705 | wxPyEndAllowThreads(__tstate); | |
24706 | if (PyErr_Occurred()) SWIG_fail; | |
24707 | } | |
24708 | { | |
24709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24710 | } | |
24711 | return resultobj; | |
24712 | fail: | |
24713 | return NULL; | |
24714 | } | |
24715 | ||
24716 | ||
24717 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24718 | PyObject *resultobj = 0; | |
24719 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24720 | bool result; | |
24721 | void *argp1 = 0 ; | |
24722 | int res1 = 0 ; | |
24723 | PyObject *swig_obj[1] ; | |
24724 | ||
24725 | if (!args) SWIG_fail; | |
24726 | swig_obj[0] = args; | |
24727 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24728 | if (!SWIG_IsOK(res1)) { | |
24729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24730 | } | |
24731 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24732 | { | |
24733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24734 | result = (bool)(arg1)->EndDrawingOnTop(); | |
24735 | wxPyEndAllowThreads(__tstate); | |
24736 | if (PyErr_Occurred()) SWIG_fail; | |
24737 | } | |
24738 | { | |
24739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24740 | } | |
24741 | return resultobj; | |
24742 | fail: | |
24743 | return NULL; | |
24744 | } | |
24745 | ||
24746 | ||
24747 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24748 | PyObject *obj; | |
24749 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24750 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24751 | return SWIG_Py_Void(); | |
24752 | } | |
24753 | ||
24754 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24755 | return SWIG_Python_InitShadowInstance(args); | |
24756 | } | |
24757 | ||
24758 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24759 | PyObject *resultobj = 0; | |
24760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24761 | wxWindowDC *result = 0 ; | |
24762 | void *argp1 = 0 ; | |
24763 | int res1 = 0 ; | |
24764 | PyObject * obj0 = 0 ; | |
24765 | char * kwnames[] = { | |
24766 | (char *) "win", NULL | |
24767 | }; | |
24768 | ||
24769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24770 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24771 | if (!SWIG_IsOK(res1)) { | |
24772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24773 | } | |
24774 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24775 | { | |
24776 | if (!wxPyCheckForApp()) SWIG_fail; | |
24777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24778 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24779 | wxPyEndAllowThreads(__tstate); | |
24780 | if (PyErr_Occurred()) SWIG_fail; | |
24781 | } | |
24782 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24783 | return resultobj; | |
24784 | fail: | |
24785 | return NULL; | |
24786 | } | |
24787 | ||
24788 | ||
24789 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24790 | PyObject *obj; | |
24791 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24792 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24793 | return SWIG_Py_Void(); | |
24794 | } | |
24795 | ||
24796 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24797 | return SWIG_Python_InitShadowInstance(args); | |
24798 | } | |
24799 | ||
24800 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24801 | PyObject *resultobj = 0; | |
24802 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24803 | wxClientDC *result = 0 ; | |
24804 | void *argp1 = 0 ; | |
24805 | int res1 = 0 ; | |
24806 | PyObject * obj0 = 0 ; | |
24807 | char * kwnames[] = { | |
24808 | (char *) "win", NULL | |
24809 | }; | |
24810 | ||
24811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24813 | if (!SWIG_IsOK(res1)) { | |
24814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24815 | } | |
24816 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24817 | { | |
24818 | if (!wxPyCheckForApp()) SWIG_fail; | |
24819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24820 | result = (wxClientDC *)new wxClientDC(arg1); | |
24821 | wxPyEndAllowThreads(__tstate); | |
24822 | if (PyErr_Occurred()) SWIG_fail; | |
24823 | } | |
24824 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24825 | return resultobj; | |
24826 | fail: | |
24827 | return NULL; | |
24828 | } | |
24829 | ||
24830 | ||
24831 | SWIGINTERN PyObject *ClientDC_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_wxClientDC, SWIG_NewClientData(obj)); | |
24835 | return SWIG_Py_Void(); | |
24836 | } | |
24837 | ||
24838 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24839 | return SWIG_Python_InitShadowInstance(args); | |
24840 | } | |
24841 | ||
24842 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24843 | PyObject *resultobj = 0; | |
24844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24845 | wxPaintDC *result = 0 ; | |
24846 | void *argp1 = 0 ; | |
24847 | int res1 = 0 ; | |
24848 | PyObject * obj0 = 0 ; | |
24849 | char * kwnames[] = { | |
24850 | (char *) "win", NULL | |
24851 | }; | |
24852 | ||
24853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24855 | if (!SWIG_IsOK(res1)) { | |
24856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24857 | } | |
24858 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24859 | { | |
24860 | if (!wxPyCheckForApp()) SWIG_fail; | |
24861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24862 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24863 | wxPyEndAllowThreads(__tstate); | |
24864 | if (PyErr_Occurred()) SWIG_fail; | |
24865 | } | |
24866 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24867 | return resultobj; | |
24868 | fail: | |
24869 | return NULL; | |
24870 | } | |
24871 | ||
24872 | ||
24873 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24874 | PyObject *obj; | |
24875 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24876 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24877 | return SWIG_Py_Void(); | |
24878 | } | |
24879 | ||
24880 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24881 | return SWIG_Python_InitShadowInstance(args); | |
24882 | } | |
24883 | ||
26c4d26f RD |
24884 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24885 | PyObject *resultobj = 0; | |
24886 | wxBitmap &arg1_defvalue = wxNullBitmap ; | |
24887 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24888 | wxMemoryDC *result = 0 ; | |
24889 | void *argp1 = 0 ; | |
24890 | int res1 = 0 ; | |
24891 | PyObject * obj0 = 0 ; | |
24892 | char * kwnames[] = { | |
24893 | (char *) "bitmap", NULL | |
24894 | }; | |
24895 | ||
24896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; | |
24897 | if (obj0) { | |
24898 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
24899 | if (!SWIG_IsOK(res1)) { | |
24900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24901 | } | |
24902 | if (!argp1) { | |
24903 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24904 | } | |
24905 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
24906 | } | |
24907 | { | |
24908 | if (!wxPyCheckForApp()) SWIG_fail; | |
24909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24910 | result = (wxMemoryDC *)new wxMemoryDC(*arg1); | |
24911 | wxPyEndAllowThreads(__tstate); | |
24912 | if (PyErr_Occurred()) SWIG_fail; | |
24913 | } | |
24914 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
24915 | return resultobj; | |
24916 | fail: | |
24917 | return NULL; | |
24918 | } | |
24919 | ||
24920 | ||
24921 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24922 | PyObject *resultobj = 0; | |
24923 | wxDC *arg1 = (wxDC *) 0 ; | |
24924 | wxMemoryDC *result = 0 ; | |
24925 | void *argp1 = 0 ; | |
24926 | int res1 = 0 ; | |
24927 | PyObject * obj0 = 0 ; | |
24928 | char * kwnames[] = { | |
24929 | (char *) "oldDC", NULL | |
24930 | }; | |
24931 | ||
24932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
24933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24934 | if (!SWIG_IsOK(res1)) { | |
24935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24936 | } | |
24937 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24938 | { | |
24939 | if (!wxPyCheckForApp()) SWIG_fail; | |
24940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24941 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
24942 | wxPyEndAllowThreads(__tstate); | |
24943 | if (PyErr_Occurred()) SWIG_fail; | |
24944 | } | |
24945 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
24946 | return resultobj; | |
24947 | fail: | |
24948 | return NULL; | |
24949 | } | |
24950 | ||
24951 | ||
24952 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24953 | PyObject *resultobj = 0; | |
24954 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24955 | wxBitmap *arg2 = 0 ; | |
24956 | void *argp1 = 0 ; | |
24957 | int res1 = 0 ; | |
24958 | void *argp2 = 0 ; | |
24959 | int res2 = 0 ; | |
24960 | PyObject * obj0 = 0 ; | |
24961 | PyObject * obj1 = 0 ; | |
24962 | char * kwnames[] = { | |
24963 | (char *) "self",(char *) "bitmap", NULL | |
24964 | }; | |
24965 | ||
24966 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
24967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24968 | if (!SWIG_IsOK(res1)) { | |
24969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24970 | } | |
24971 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
24972 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
24973 | if (!SWIG_IsOK(res2)) { | |
24974 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24975 | } | |
24976 | if (!argp2) { | |
24977 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24978 | } | |
24979 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24980 | { | |
24981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24982 | (arg1)->SelectObject(*arg2); | |
24983 | wxPyEndAllowThreads(__tstate); | |
24984 | if (PyErr_Occurred()) SWIG_fail; | |
24985 | } | |
24986 | resultobj = SWIG_Py_Void(); | |
24987 | return resultobj; | |
24988 | fail: | |
24989 | return NULL; | |
24990 | } | |
24991 | ||
24992 | ||
24993 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24994 | PyObject *resultobj = 0; | |
24995 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24996 | wxBitmap *arg2 = 0 ; | |
24997 | void *argp1 = 0 ; | |
24998 | int res1 = 0 ; | |
24999 | void *argp2 = 0 ; | |
25000 | int res2 = 0 ; | |
25001 | PyObject * obj0 = 0 ; | |
25002 | PyObject * obj1 = 0 ; | |
25003 | char * kwnames[] = { | |
25004 | (char *) "self",(char *) "bmp", NULL | |
25005 | }; | |
25006 | ||
25007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail; | |
25008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
25009 | if (!SWIG_IsOK(res1)) { | |
25010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
25011 | } | |
25012 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
25013 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
25014 | if (!SWIG_IsOK(res2)) { | |
25015 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
25016 | } | |
25017 | if (!argp2) { | |
25018 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
25019 | } | |
25020 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
25021 | { | |
25022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25023 | (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2); | |
25024 | wxPyEndAllowThreads(__tstate); | |
25025 | if (PyErr_Occurred()) SWIG_fail; | |
25026 | } | |
25027 | resultobj = SWIG_Py_Void(); | |
25028 | return resultobj; | |
25029 | fail: | |
25030 | return NULL; | |
25031 | } | |
25032 | ||
25033 | ||
25034 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25035 | PyObject *obj; | |
25036 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25037 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
25038 | return SWIG_Py_Void(); | |
25039 | } | |
25040 | ||
25041 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25042 | return SWIG_Python_InitShadowInstance(args); | |
25043 | } | |
25044 | ||
554f62e9 RD |
25045 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25046 | PyObject *resultobj = 0; | |
25047 | wxDC *arg1 = (wxDC *) 0 ; | |
b6df5cf9 | 25048 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
554f62e9 RD |
25049 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
25050 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25051 | wxBufferedDC *result = 0 ; | |
25052 | void *argp1 = 0 ; | |
25053 | int res1 = 0 ; | |
25054 | void *argp2 = 0 ; | |
25055 | int res2 = 0 ; | |
25056 | int val3 ; | |
25057 | int ecode3 = 0 ; | |
25058 | ||
25059 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
25060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
25061 | if (!SWIG_IsOK(res1)) { | |
25062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
25063 | } | |
25064 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25065 | if (swig_obj[1]) { | |
b6df5cf9 | 25066 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
554f62e9 | 25067 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 25068 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25069 | } |
554f62e9 | 25070 | if (!argp2) { |
b6df5cf9 | 25071 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25072 | } |
554f62e9 RD |
25073 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
25074 | } | |
25075 | if (swig_obj[2]) { | |
25076 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
25077 | if (!SWIG_IsOK(ecode3)) { | |
25078 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
25079 | } | |
25080 | arg3 = static_cast< int >(val3); | |
25081 | } | |
25082 | { | |
25083 | if (!wxPyCheckForApp()) SWIG_fail; | |
25084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 25085 | result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3); |
554f62e9 RD |
25086 | wxPyEndAllowThreads(__tstate); |
25087 | if (PyErr_Occurred()) SWIG_fail; | |
25088 | } | |
25089 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
25090 | return resultobj; | |
25091 | fail: | |
25092 | return NULL; | |
25093 | } | |
25094 | ||
25095 | ||
25096 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
25097 | PyObject *resultobj = 0; | |
25098 | wxDC *arg1 = (wxDC *) 0 ; | |
25099 | wxSize *arg2 = 0 ; | |
25100 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25101 | wxBufferedDC *result = 0 ; | |
25102 | void *argp1 = 0 ; | |
25103 | int res1 = 0 ; | |
25104 | wxSize temp2 ; | |
25105 | int val3 ; | |
25106 | int ecode3 = 0 ; | |
25107 | ||
25108 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
25109 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
25110 | if (!SWIG_IsOK(res1)) { | |
25111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
25112 | } | |
25113 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25114 | { | |
25115 | arg2 = &temp2; | |
25116 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
25117 | } | |
25118 | if (swig_obj[2]) { | |
25119 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
25120 | if (!SWIG_IsOK(ecode3)) { | |
25121 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
25122 | } | |
25123 | arg3 = static_cast< int >(val3); | |
25124 | } | |
25125 | { | |
25126 | if (!wxPyCheckForApp()) SWIG_fail; | |
25127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25128 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
25129 | wxPyEndAllowThreads(__tstate); | |
25130 | if (PyErr_Occurred()) SWIG_fail; | |
25131 | } | |
25132 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
25133 | return resultobj; | |
25134 | fail: | |
25135 | return NULL; | |
25136 | } | |
25137 | ||
25138 | ||
25139 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
25140 | int argc; | |
8e99bda9 | 25141 | PyObject *argv[4]; |
554f62e9 | 25142 | |
8e99bda9 | 25143 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
554f62e9 RD |
25144 | --argc; |
25145 | if ((argc >= 1) && (argc <= 3)) { | |
25146 | int _v = 0; | |
25147 | if (argc > 1) { | |
25148 | { | |
b6df5cf9 RD |
25149 | void *vptr = 0; |
25150 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0); | |
554f62e9 RD |
25151 | _v = SWIG_CheckState(res); |
25152 | } | |
25153 | if (!_v) goto check_1; | |
093d3ff1 | 25154 | } |
554f62e9 RD |
25155 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
25156 | } | |
25157 | check_1: | |
25158 | ||
25159 | if ((argc >= 2) && (argc <= 3)) { | |
25160 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
25161 | } | |
25162 | ||
25163 | fail: | |
25164 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
25165 | return NULL; | |
25166 | } | |
25167 | ||
25168 | ||
25169 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25170 | PyObject *resultobj = 0; | |
25171 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25172 | void *argp1 = 0 ; | |
25173 | int res1 = 0 ; | |
25174 | PyObject *swig_obj[1] ; | |
25175 | ||
25176 | if (!args) SWIG_fail; | |
25177 | swig_obj[0] = args; | |
25178 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
25179 | if (!SWIG_IsOK(res1)) { | |
25180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25181 | } | |
25182 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25183 | { | |
25184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25185 | delete arg1; | |
25186 | ||
25187 | wxPyEndAllowThreads(__tstate); | |
25188 | if (PyErr_Occurred()) SWIG_fail; | |
25189 | } | |
25190 | resultobj = SWIG_Py_Void(); | |
25191 | return resultobj; | |
25192 | fail: | |
25193 | return NULL; | |
25194 | } | |
25195 | ||
25196 | ||
25197 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25198 | PyObject *resultobj = 0; | |
25199 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25200 | void *argp1 = 0 ; | |
25201 | int res1 = 0 ; | |
25202 | PyObject *swig_obj[1] ; | |
25203 | ||
25204 | if (!args) SWIG_fail; | |
25205 | swig_obj[0] = args; | |
25206 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25207 | if (!SWIG_IsOK(res1)) { | |
25208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25209 | } | |
25210 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25211 | { | |
25212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25213 | (arg1)->UnMask(); | |
25214 | wxPyEndAllowThreads(__tstate); | |
25215 | if (PyErr_Occurred()) SWIG_fail; | |
25216 | } | |
25217 | resultobj = SWIG_Py_Void(); | |
25218 | return resultobj; | |
25219 | fail: | |
25220 | return NULL; | |
25221 | } | |
25222 | ||
25223 | ||
b6df5cf9 RD |
25224 | SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25225 | PyObject *resultobj = 0; | |
25226 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25227 | int arg2 ; | |
25228 | void *argp1 = 0 ; | |
25229 | int res1 = 0 ; | |
25230 | int val2 ; | |
25231 | int ecode2 = 0 ; | |
25232 | PyObject * obj0 = 0 ; | |
25233 | PyObject * obj1 = 0 ; | |
25234 | char * kwnames[] = { | |
25235 | (char *) "self",(char *) "style", NULL | |
25236 | }; | |
25237 | ||
25238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
25239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25240 | if (!SWIG_IsOK(res1)) { | |
25241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25242 | } | |
25243 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25244 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25245 | if (!SWIG_IsOK(ecode2)) { | |
25246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
25247 | } | |
25248 | arg2 = static_cast< int >(val2); | |
25249 | { | |
25250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25251 | (arg1)->SetStyle(arg2); | |
25252 | wxPyEndAllowThreads(__tstate); | |
25253 | if (PyErr_Occurred()) SWIG_fail; | |
25254 | } | |
25255 | resultobj = SWIG_Py_Void(); | |
25256 | return resultobj; | |
25257 | fail: | |
25258 | return NULL; | |
25259 | } | |
25260 | ||
25261 | ||
25262 | SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25263 | PyObject *resultobj = 0; | |
25264 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25265 | int result; | |
25266 | void *argp1 = 0 ; | |
25267 | int res1 = 0 ; | |
25268 | PyObject *swig_obj[1] ; | |
25269 | ||
25270 | if (!args) SWIG_fail; | |
25271 | swig_obj[0] = args; | |
25272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25273 | if (!SWIG_IsOK(res1)) { | |
25274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'"); | |
25275 | } | |
25276 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25277 | { | |
25278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25279 | result = (int)((wxBufferedDC const *)arg1)->GetStyle(); | |
25280 | wxPyEndAllowThreads(__tstate); | |
25281 | if (PyErr_Occurred()) SWIG_fail; | |
25282 | } | |
25283 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25284 | return resultobj; | |
25285 | fail: | |
25286 | return NULL; | |
25287 | } | |
25288 | ||
25289 | ||
554f62e9 RD |
25290 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25291 | PyObject *obj; | |
25292 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25293 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
25294 | return SWIG_Py_Void(); | |
25295 | } | |
25296 | ||
25297 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25298 | return SWIG_Python_InitShadowInstance(args); | |
25299 | } | |
25300 | ||
25301 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25302 | PyObject *resultobj = 0; | |
25303 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b6df5cf9 | 25304 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
554f62e9 RD |
25305 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
25306 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25307 | wxBufferedPaintDC *result = 0 ; | |
25308 | void *argp1 = 0 ; | |
25309 | int res1 = 0 ; | |
25310 | void *argp2 = 0 ; | |
25311 | int res2 = 0 ; | |
25312 | int val3 ; | |
25313 | int ecode3 = 0 ; | |
25314 | PyObject * obj0 = 0 ; | |
25315 | PyObject * obj1 = 0 ; | |
25316 | PyObject * obj2 = 0 ; | |
25317 | char * kwnames[] = { | |
25318 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
25319 | }; | |
25320 | ||
25321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25323 | if (!SWIG_IsOK(res1)) { | |
25324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25325 | } | |
25326 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25327 | if (obj1) { | |
b6df5cf9 | 25328 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
554f62e9 | 25329 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 25330 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25331 | } |
554f62e9 | 25332 | if (!argp2) { |
b6df5cf9 | 25333 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25334 | } |
554f62e9 RD |
25335 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
25336 | } | |
25337 | if (obj2) { | |
25338 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25339 | if (!SWIG_IsOK(ecode3)) { | |
25340 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
25341 | } | |
25342 | arg3 = static_cast< int >(val3); | |
25343 | } | |
25344 | { | |
25345 | if (!wxPyCheckForApp()) SWIG_fail; | |
25346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 25347 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3); |
554f62e9 RD |
25348 | wxPyEndAllowThreads(__tstate); |
25349 | if (PyErr_Occurred()) SWIG_fail; | |
25350 | } | |
25351 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
25352 | return resultobj; | |
25353 | fail: | |
25354 | return NULL; | |
25355 | } | |
25356 | ||
25357 | ||
25358 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25359 | PyObject *obj; | |
25360 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25361 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
25362 | return SWIG_Py_Void(); | |
25363 | } | |
25364 | ||
25365 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25366 | return SWIG_Python_InitShadowInstance(args); | |
25367 | } | |
25368 | ||
24f6c4e8 | 25369 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
25370 | PyObject *resultobj = 0; |
25371 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 25372 | wxAutoBufferedPaintDC *result = 0 ; |
554f62e9 RD |
25373 | void *argp1 = 0 ; |
25374 | int res1 = 0 ; | |
25375 | PyObject * obj0 = 0 ; | |
25376 | char * kwnames[] = { | |
25377 | (char *) "win", NULL | |
25378 | }; | |
25379 | ||
24f6c4e8 | 25380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
554f62e9 RD |
25381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
25382 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 25383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
554f62e9 RD |
25384 | } |
25385 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25386 | { | |
554f62e9 | 25387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 25388 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
554f62e9 RD |
25389 | wxPyEndAllowThreads(__tstate); |
25390 | if (PyErr_Occurred()) SWIG_fail; | |
25391 | } | |
24f6c4e8 | 25392 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
554f62e9 RD |
25393 | return resultobj; |
25394 | fail: | |
25395 | return NULL; | |
25396 | } | |
25397 | ||
25398 | ||
24f6c4e8 | 25399 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
25400 | PyObject *obj; |
25401 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 25402 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
554f62e9 RD |
25403 | return SWIG_Py_Void(); |
25404 | } | |
25405 | ||
24f6c4e8 | 25406 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
25407 | return SWIG_Python_InitShadowInstance(args); |
25408 | } | |
25409 | ||
8e99bda9 RD |
25410 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25411 | PyObject *resultobj = 0; | |
25412 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25413 | wxDC *result = 0 ; | |
25414 | void *argp1 = 0 ; | |
25415 | int res1 = 0 ; | |
25416 | PyObject * obj0 = 0 ; | |
25417 | char * kwnames[] = { | |
25418 | (char *) "window", NULL | |
25419 | }; | |
25420 | ||
25421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
25422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25423 | if (!SWIG_IsOK(res1)) { | |
25424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25425 | } | |
25426 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25427 | { | |
25428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25429 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
25430 | wxPyEndAllowThreads(__tstate); | |
25431 | if (PyErr_Occurred()) SWIG_fail; | |
25432 | } | |
25433 | { | |
25434 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
25435 | } | |
25436 | return resultobj; | |
25437 | fail: | |
25438 | return NULL; | |
25439 | } | |
25440 | ||
25441 | ||
554f62e9 RD |
25442 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25443 | PyObject *resultobj = 0; | |
25444 | wxDC *arg1 = 0 ; | |
25445 | bool arg2 ; | |
25446 | wxMirrorDC *result = 0 ; | |
25447 | void *argp1 = 0 ; | |
25448 | int res1 = 0 ; | |
25449 | bool val2 ; | |
25450 | int ecode2 = 0 ; | |
25451 | PyObject * obj0 = 0 ; | |
25452 | PyObject * obj1 = 0 ; | |
25453 | char * kwnames[] = { | |
25454 | (char *) "dc",(char *) "mirror", NULL | |
25455 | }; | |
25456 | ||
25457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
25458 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
25459 | if (!SWIG_IsOK(res1)) { | |
25460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
25461 | } | |
25462 | if (!argp1) { | |
25463 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
25464 | } | |
25465 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25466 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25467 | if (!SWIG_IsOK(ecode2)) { | |
25468 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
25469 | } | |
25470 | arg2 = static_cast< bool >(val2); | |
25471 | { | |
25472 | if (!wxPyCheckForApp()) SWIG_fail; | |
25473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25474 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
25475 | wxPyEndAllowThreads(__tstate); | |
25476 | if (PyErr_Occurred()) SWIG_fail; | |
25477 | } | |
25478 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
25479 | return resultobj; | |
25480 | fail: | |
25481 | return NULL; | |
25482 | } | |
25483 | ||
25484 | ||
25485 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25486 | PyObject *obj; | |
25487 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25488 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
25489 | return SWIG_Py_Void(); | |
25490 | } | |
25491 | ||
25492 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25493 | return SWIG_Python_InitShadowInstance(args); | |
25494 | } | |
25495 | ||
25496 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25497 | PyObject *resultobj = 0; | |
25498 | wxPrintData *arg1 = 0 ; | |
25499 | wxPostScriptDC *result = 0 ; | |
25500 | void *argp1 = 0 ; | |
25501 | int res1 = 0 ; | |
25502 | PyObject * obj0 = 0 ; | |
25503 | char * kwnames[] = { | |
25504 | (char *) "printData", NULL | |
25505 | }; | |
25506 | ||
25507 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
25508 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25509 | if (!SWIG_IsOK(res1)) { | |
25510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25511 | } | |
25512 | if (!argp1) { | |
25513 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25514 | } | |
25515 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25516 | { | |
25517 | if (!wxPyCheckForApp()) SWIG_fail; | |
25518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25519 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
25520 | wxPyEndAllowThreads(__tstate); | |
25521 | if (PyErr_Occurred()) SWIG_fail; | |
25522 | } | |
25523 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
25524 | return resultobj; | |
25525 | fail: | |
25526 | return NULL; | |
25527 | } | |
25528 | ||
25529 | ||
25530 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25531 | PyObject *resultobj = 0; | |
25532 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
25533 | wxPrintData *result = 0 ; | |
25534 | void *argp1 = 0 ; | |
25535 | int res1 = 0 ; | |
25536 | PyObject *swig_obj[1] ; | |
25537 | ||
25538 | if (!args) SWIG_fail; | |
25539 | swig_obj[0] = args; | |
25540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
25541 | if (!SWIG_IsOK(res1)) { | |
25542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
25543 | } | |
25544 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
25545 | { | |
25546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25547 | { |
554f62e9 RD |
25548 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
25549 | result = (wxPrintData *) &_result_ref; | |
093d3ff1 | 25550 | } |
554f62e9 RD |
25551 | wxPyEndAllowThreads(__tstate); |
25552 | if (PyErr_Occurred()) SWIG_fail; | |
25553 | } | |
25554 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
25555 | return resultobj; | |
25556 | fail: | |
25557 | return NULL; | |
25558 | } | |
25559 | ||
25560 | ||
25561 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25562 | PyObject *resultobj = 0; | |
25563 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
25564 | wxPrintData *arg2 = 0 ; | |
25565 | void *argp1 = 0 ; | |
25566 | int res1 = 0 ; | |
25567 | void *argp2 = 0 ; | |
25568 | int res2 = 0 ; | |
25569 | PyObject * obj0 = 0 ; | |
25570 | PyObject * obj1 = 0 ; | |
25571 | char * kwnames[] = { | |
25572 | (char *) "self",(char *) "data", NULL | |
25573 | }; | |
25574 | ||
25575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
25577 | if (!SWIG_IsOK(res1)) { | |
25578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
25579 | } | |
25580 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
25581 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25582 | if (!SWIG_IsOK(res2)) { | |
25583 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25584 | } | |
25585 | if (!argp2) { | |
25586 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25587 | } | |
25588 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25589 | { | |
25590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25591 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25592 | wxPyEndAllowThreads(__tstate); | |
25593 | if (PyErr_Occurred()) SWIG_fail; | |
25594 | } | |
25595 | resultobj = SWIG_Py_Void(); | |
25596 | return resultobj; | |
25597 | fail: | |
25598 | return NULL; | |
25599 | } | |
25600 | ||
25601 | ||
25602 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25603 | PyObject *resultobj = 0; | |
25604 | int arg1 ; | |
25605 | int val1 ; | |
25606 | int ecode1 = 0 ; | |
25607 | PyObject * obj0 = 0 ; | |
25608 | char * kwnames[] = { | |
25609 | (char *) "ppi", NULL | |
25610 | }; | |
25611 | ||
25612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
25613 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
25614 | if (!SWIG_IsOK(ecode1)) { | |
25615 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
25616 | } | |
25617 | arg1 = static_cast< int >(val1); | |
25618 | { | |
25619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25620 | wxPostScriptDC::SetResolution(arg1); | |
25621 | wxPyEndAllowThreads(__tstate); | |
25622 | if (PyErr_Occurred()) SWIG_fail; | |
25623 | } | |
25624 | resultobj = SWIG_Py_Void(); | |
25625 | return resultobj; | |
25626 | fail: | |
25627 | return NULL; | |
25628 | } | |
25629 | ||
25630 | ||
25631 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25632 | PyObject *resultobj = 0; | |
25633 | int result; | |
25634 | ||
25635 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
25636 | { | |
25637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25638 | result = (int)wxPostScriptDC::GetResolution(); | |
25639 | wxPyEndAllowThreads(__tstate); | |
25640 | if (PyErr_Occurred()) SWIG_fail; | |
25641 | } | |
25642 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25643 | return resultobj; | |
25644 | fail: | |
25645 | return NULL; | |
25646 | } | |
25647 | ||
25648 | ||
25649 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25650 | PyObject *obj; | |
25651 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25652 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
25653 | return SWIG_Py_Void(); | |
25654 | } | |
25655 | ||
25656 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25657 | return SWIG_Python_InitShadowInstance(args); | |
25658 | } | |
25659 | ||
25660 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25661 | PyObject *resultobj = 0; | |
25662 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25663 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25664 | wxMetaFile *result = 0 ; | |
25665 | bool temp1 = false ; | |
25666 | PyObject * obj0 = 0 ; | |
25667 | char * kwnames[] = { | |
25668 | (char *) "filename", NULL | |
25669 | }; | |
25670 | ||
25671 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
25672 | if (obj0) { | |
093d3ff1 | 25673 | { |
554f62e9 RD |
25674 | arg1 = wxString_in_helper(obj0); |
25675 | if (arg1 == NULL) SWIG_fail; | |
25676 | temp1 = true; | |
093d3ff1 | 25677 | } |
554f62e9 RD |
25678 | } |
25679 | { | |
25680 | if (!wxPyCheckForApp()) SWIG_fail; | |
25681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25682 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
25683 | wxPyEndAllowThreads(__tstate); | |
25684 | if (PyErr_Occurred()) SWIG_fail; | |
25685 | } | |
25686 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
25687 | { | |
25688 | if (temp1) | |
25689 | delete arg1; | |
25690 | } | |
25691 | return resultobj; | |
25692 | fail: | |
25693 | { | |
25694 | if (temp1) | |
25695 | delete arg1; | |
25696 | } | |
25697 | return NULL; | |
25698 | } | |
25699 | ||
25700 | ||
25701 | SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25702 | PyObject *resultobj = 0; | |
25703 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25704 | void *argp1 = 0 ; | |
25705 | int res1 = 0 ; | |
25706 | PyObject *swig_obj[1] ; | |
25707 | ||
25708 | if (!args) SWIG_fail; | |
25709 | swig_obj[0] = args; | |
25710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 ); | |
25711 | if (!SWIG_IsOK(res1)) { | |
25712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25713 | } | |
25714 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25715 | { | |
25716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25717 | delete arg1; | |
25718 | ||
25719 | wxPyEndAllowThreads(__tstate); | |
25720 | if (PyErr_Occurred()) SWIG_fail; | |
25721 | } | |
25722 | resultobj = SWIG_Py_Void(); | |
25723 | return resultobj; | |
25724 | fail: | |
25725 | return NULL; | |
25726 | } | |
25727 | ||
25728 | ||
b39fe951 | 25729 | SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
25730 | PyObject *resultobj = 0; |
25731 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25732 | bool result; | |
25733 | void *argp1 = 0 ; | |
25734 | int res1 = 0 ; | |
25735 | PyObject *swig_obj[1] ; | |
25736 | ||
25737 | if (!args) SWIG_fail; | |
25738 | swig_obj[0] = args; | |
25739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25740 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 25741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'"); |
554f62e9 RD |
25742 | } |
25743 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25744 | { | |
25745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 25746 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
25747 | wxPyEndAllowThreads(__tstate); |
25748 | if (PyErr_Occurred()) SWIG_fail; | |
25749 | } | |
25750 | { | |
25751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25752 | } | |
25753 | return resultobj; | |
25754 | fail: | |
25755 | return NULL; | |
25756 | } | |
25757 | ||
25758 | ||
25759 | SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25760 | PyObject *resultobj = 0; | |
25761 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25762 | int arg2 = (int) 0 ; | |
25763 | int arg3 = (int) 0 ; | |
25764 | bool result; | |
25765 | void *argp1 = 0 ; | |
25766 | int res1 = 0 ; | |
25767 | int val2 ; | |
25768 | int ecode2 = 0 ; | |
25769 | int val3 ; | |
25770 | int ecode3 = 0 ; | |
25771 | PyObject * obj0 = 0 ; | |
25772 | PyObject * obj1 = 0 ; | |
25773 | PyObject * obj2 = 0 ; | |
25774 | char * kwnames[] = { | |
25775 | (char *) "self",(char *) "width",(char *) "height", NULL | |
25776 | }; | |
25777 | ||
25778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25780 | if (!SWIG_IsOK(res1)) { | |
25781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25782 | } | |
25783 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25784 | if (obj1) { | |
25785 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25786 | if (!SWIG_IsOK(ecode2)) { | |
25787 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'"); | |
25788 | } | |
25789 | arg2 = static_cast< int >(val2); | |
25790 | } | |
25791 | if (obj2) { | |
25792 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25793 | if (!SWIG_IsOK(ecode3)) { | |
25794 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'"); | |
25795 | } | |
25796 | arg3 = static_cast< int >(val3); | |
25797 | } | |
25798 | { | |
25799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25800 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
25801 | wxPyEndAllowThreads(__tstate); | |
25802 | if (PyErr_Occurred()) SWIG_fail; | |
25803 | } | |
25804 | { | |
25805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25806 | } | |
25807 | return resultobj; | |
25808 | fail: | |
25809 | return NULL; | |
25810 | } | |
25811 | ||
25812 | ||
25813 | SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25814 | PyObject *resultobj = 0; | |
25815 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25816 | wxSize result; | |
25817 | void *argp1 = 0 ; | |
25818 | int res1 = 0 ; | |
25819 | PyObject *swig_obj[1] ; | |
25820 | ||
25821 | if (!args) SWIG_fail; | |
25822 | swig_obj[0] = args; | |
25823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25824 | if (!SWIG_IsOK(res1)) { | |
25825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25826 | } | |
25827 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25828 | { | |
25829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25830 | result = (arg1)->GetSize(); | |
25831 | wxPyEndAllowThreads(__tstate); | |
25832 | if (PyErr_Occurred()) SWIG_fail; | |
25833 | } | |
25834 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25835 | return resultobj; | |
25836 | fail: | |
25837 | return NULL; | |
25838 | } | |
25839 | ||
25840 | ||
25841 | SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25842 | PyObject *resultobj = 0; | |
25843 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25844 | int result; | |
25845 | void *argp1 = 0 ; | |
25846 | int res1 = 0 ; | |
25847 | PyObject *swig_obj[1] ; | |
25848 | ||
25849 | if (!args) SWIG_fail; | |
25850 | swig_obj[0] = args; | |
25851 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25852 | if (!SWIG_IsOK(res1)) { | |
25853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25854 | } | |
25855 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25856 | { | |
25857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25858 | result = (int)(arg1)->GetWidth(); | |
25859 | wxPyEndAllowThreads(__tstate); | |
25860 | if (PyErr_Occurred()) SWIG_fail; | |
25861 | } | |
25862 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25863 | return resultobj; | |
25864 | fail: | |
25865 | return NULL; | |
25866 | } | |
25867 | ||
25868 | ||
25869 | SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25870 | PyObject *resultobj = 0; | |
25871 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25872 | int result; | |
25873 | void *argp1 = 0 ; | |
25874 | int res1 = 0 ; | |
25875 | PyObject *swig_obj[1] ; | |
25876 | ||
25877 | if (!args) SWIG_fail; | |
25878 | swig_obj[0] = args; | |
25879 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25880 | if (!SWIG_IsOK(res1)) { | |
25881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25882 | } | |
25883 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25884 | { | |
25885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25886 | result = (int)(arg1)->GetHeight(); | |
25887 | wxPyEndAllowThreads(__tstate); | |
25888 | if (PyErr_Occurred()) SWIG_fail; | |
25889 | } | |
25890 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25891 | return resultobj; | |
25892 | fail: | |
25893 | return NULL; | |
25894 | } | |
25895 | ||
25896 | ||
25897 | SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25898 | PyObject *resultobj = 0; | |
25899 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25900 | wxString *result = 0 ; | |
25901 | void *argp1 = 0 ; | |
25902 | int res1 = 0 ; | |
25903 | PyObject *swig_obj[1] ; | |
25904 | ||
25905 | if (!args) SWIG_fail; | |
25906 | swig_obj[0] = args; | |
25907 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25908 | if (!SWIG_IsOK(res1)) { | |
25909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'"); | |
25910 | } | |
25911 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25912 | { | |
25913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 25914 | { |
554f62e9 RD |
25915 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); |
25916 | result = (wxString *) &_result_ref; | |
e2950dbb | 25917 | } |
554f62e9 RD |
25918 | wxPyEndAllowThreads(__tstate); |
25919 | if (PyErr_Occurred()) SWIG_fail; | |
25920 | } | |
25921 | { | |
25922 | #if wxUSE_UNICODE | |
25923 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25924 | #else | |
25925 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25926 | #endif | |
25927 | } | |
25928 | return resultobj; | |
25929 | fail: | |
25930 | return NULL; | |
25931 | } | |
25932 | ||
25933 | ||
25934 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25935 | PyObject *obj; | |
25936 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25937 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
25938 | return SWIG_Py_Void(); | |
25939 | } | |
25940 | ||
25941 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25942 | return SWIG_Python_InitShadowInstance(args); | |
25943 | } | |
25944 | ||
25945 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25946 | PyObject *resultobj = 0; | |
25947 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25948 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25949 | int arg2 = (int) 0 ; | |
25950 | int arg3 = (int) 0 ; | |
25951 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25952 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25953 | wxMetaFileDC *result = 0 ; | |
25954 | bool temp1 = false ; | |
25955 | int val2 ; | |
25956 | int ecode2 = 0 ; | |
25957 | int val3 ; | |
25958 | int ecode3 = 0 ; | |
25959 | bool temp4 = false ; | |
25960 | PyObject * obj0 = 0 ; | |
25961 | PyObject * obj1 = 0 ; | |
25962 | PyObject * obj2 = 0 ; | |
25963 | PyObject * obj3 = 0 ; | |
25964 | char * kwnames[] = { | |
25965 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
25966 | }; | |
25967 | ||
25968 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
25969 | if (obj0) { | |
e2950dbb | 25970 | { |
554f62e9 RD |
25971 | arg1 = wxString_in_helper(obj0); |
25972 | if (arg1 == NULL) SWIG_fail; | |
25973 | temp1 = true; | |
e2950dbb | 25974 | } |
554f62e9 RD |
25975 | } |
25976 | if (obj1) { | |
25977 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25978 | if (!SWIG_IsOK(ecode2)) { | |
25979 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
25980 | } | |
25981 | arg2 = static_cast< int >(val2); | |
25982 | } | |
25983 | if (obj2) { | |
25984 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25985 | if (!SWIG_IsOK(ecode3)) { | |
25986 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
25987 | } | |
25988 | arg3 = static_cast< int >(val3); | |
25989 | } | |
25990 | if (obj3) { | |
093d3ff1 | 25991 | { |
554f62e9 RD |
25992 | arg4 = wxString_in_helper(obj3); |
25993 | if (arg4 == NULL) SWIG_fail; | |
25994 | temp4 = true; | |
093d3ff1 | 25995 | } |
554f62e9 RD |
25996 | } |
25997 | { | |
25998 | if (!wxPyCheckForApp()) SWIG_fail; | |
25999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26000 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
26001 | wxPyEndAllowThreads(__tstate); | |
26002 | if (PyErr_Occurred()) SWIG_fail; | |
26003 | } | |
26004 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
26005 | { | |
26006 | if (temp1) | |
26007 | delete arg1; | |
26008 | } | |
26009 | { | |
26010 | if (temp4) | |
26011 | delete arg4; | |
26012 | } | |
26013 | return resultobj; | |
26014 | fail: | |
26015 | { | |
26016 | if (temp1) | |
26017 | delete arg1; | |
26018 | } | |
26019 | { | |
26020 | if (temp4) | |
26021 | delete arg4; | |
26022 | } | |
26023 | return NULL; | |
26024 | } | |
26025 | ||
26026 | ||
26027 | SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26028 | PyObject *resultobj = 0; | |
26029 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
26030 | wxMetaFile *result = 0 ; | |
26031 | void *argp1 = 0 ; | |
26032 | int res1 = 0 ; | |
26033 | PyObject *swig_obj[1] ; | |
26034 | ||
26035 | if (!args) SWIG_fail; | |
26036 | swig_obj[0] = args; | |
26037 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 ); | |
26038 | if (!SWIG_IsOK(res1)) { | |
26039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'"); | |
26040 | } | |
26041 | arg1 = reinterpret_cast< wxMetaFileDC * >(argp1); | |
26042 | { | |
26043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26044 | result = (wxMetaFile *)(arg1)->Close(); | |
26045 | wxPyEndAllowThreads(__tstate); | |
26046 | if (PyErr_Occurred()) SWIG_fail; | |
26047 | } | |
26048 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
26049 | return resultobj; | |
26050 | fail: | |
26051 | return NULL; | |
26052 | } | |
26053 | ||
26054 | ||
26055 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26056 | PyObject *obj; | |
26057 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26058 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
26059 | return SWIG_Py_Void(); | |
26060 | } | |
26061 | ||
26062 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26063 | return SWIG_Python_InitShadowInstance(args); | |
26064 | } | |
26065 | ||
26066 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26067 | PyObject *resultobj = 0; | |
26068 | wxPrintData *arg1 = 0 ; | |
26069 | wxPrinterDC *result = 0 ; | |
26070 | void *argp1 = 0 ; | |
26071 | int res1 = 0 ; | |
26072 | PyObject * obj0 = 0 ; | |
26073 | char * kwnames[] = { | |
26074 | (char *) "printData", NULL | |
26075 | }; | |
26076 | ||
26077 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
26078 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26079 | if (!SWIG_IsOK(res1)) { | |
26080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26081 | } | |
26082 | if (!argp1) { | |
26083 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26084 | } | |
26085 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
26086 | { | |
26087 | if (!wxPyCheckForApp()) SWIG_fail; | |
26088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26089 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
26093 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
26094 | return resultobj; | |
26095 | fail: | |
26096 | return NULL; | |
26097 | } | |
26098 | ||
26099 | ||
26100 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26101 | PyObject *obj; | |
26102 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26103 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
26104 | return SWIG_Py_Void(); | |
26105 | } | |
26106 | ||
26107 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26108 | return SWIG_Python_InitShadowInstance(args); | |
26109 | } | |
26110 | ||
70d7cb34 RD |
26111 | SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26112 | PyObject *resultobj = 0; | |
26113 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ; | |
26114 | wxGraphicsObject *result = 0 ; | |
26115 | void *argp1 = 0 ; | |
26116 | int res1 = 0 ; | |
26117 | PyObject * obj0 = 0 ; | |
26118 | char * kwnames[] = { | |
26119 | (char *) "renderer", NULL | |
26120 | }; | |
26121 | ||
26122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail; | |
26123 | if (obj0) { | |
26124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
26125 | if (!SWIG_IsOK(res1)) { | |
26126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
26127 | } | |
26128 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
26129 | } | |
26130 | { | |
26131 | result = (wxGraphicsObject *)new wxGraphicsObject(arg1); | |
26132 | if (PyErr_Occurred()) SWIG_fail; | |
26133 | } | |
26134 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 ); | |
26135 | return resultobj; | |
26136 | fail: | |
26137 | return NULL; | |
26138 | } | |
26139 | ||
26140 | ||
26141 | SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26142 | PyObject *resultobj = 0; | |
26143 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
26144 | void *argp1 = 0 ; | |
26145 | int res1 = 0 ; | |
26146 | PyObject *swig_obj[1] ; | |
26147 | ||
26148 | if (!args) SWIG_fail; | |
26149 | swig_obj[0] = args; | |
26150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 ); | |
26151 | if (!SWIG_IsOK(res1)) { | |
26152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'"); | |
26153 | } | |
26154 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
26155 | { | |
26156 | delete arg1; | |
26157 | ||
26158 | if (PyErr_Occurred()) SWIG_fail; | |
26159 | } | |
26160 | resultobj = SWIG_Py_Void(); | |
26161 | return resultobj; | |
26162 | fail: | |
26163 | return NULL; | |
26164 | } | |
26165 | ||
26166 | ||
26167 | SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26168 | PyObject *resultobj = 0; | |
26169 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
26170 | bool result; | |
26171 | void *argp1 = 0 ; | |
26172 | int res1 = 0 ; | |
26173 | PyObject *swig_obj[1] ; | |
26174 | ||
26175 | if (!args) SWIG_fail; | |
26176 | swig_obj[0] = args; | |
26177 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
26178 | if (!SWIG_IsOK(res1)) { | |
26179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
26180 | } | |
26181 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
26182 | { | |
26183 | result = (bool)((wxGraphicsObject const *)arg1)->IsNull(); | |
26184 | if (PyErr_Occurred()) SWIG_fail; | |
26185 | } | |
26186 | { | |
26187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26188 | } | |
26189 | return resultobj; | |
26190 | fail: | |
26191 | return NULL; | |
26192 | } | |
26193 | ||
26194 | ||
26195 | SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26196 | PyObject *resultobj = 0; | |
26197 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
26198 | wxGraphicsRenderer *result = 0 ; | |
26199 | void *argp1 = 0 ; | |
26200 | int res1 = 0 ; | |
26201 | PyObject *swig_obj[1] ; | |
26202 | ||
26203 | if (!args) SWIG_fail; | |
26204 | swig_obj[0] = args; | |
26205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
26206 | if (!SWIG_IsOK(res1)) { | |
26207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
26208 | } | |
26209 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
26210 | { | |
26211 | result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer(); | |
26212 | if (PyErr_Occurred()) SWIG_fail; | |
26213 | } | |
26214 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
26215 | return resultobj; | |
26216 | fail: | |
26217 | return NULL; | |
26218 | } | |
26219 | ||
26220 | ||
26221 | SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26222 | PyObject *obj; | |
26223 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26224 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj)); | |
26225 | return SWIG_Py_Void(); | |
26226 | } | |
26227 | ||
26228 | SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26229 | return SWIG_Python_InitShadowInstance(args); | |
26230 | } | |
26231 | ||
26232 | SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26233 | PyObject *resultobj = 0; | |
26234 | wxGraphicsPen *result = 0 ; | |
26235 | ||
26236 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail; | |
26237 | { | |
26238 | result = (wxGraphicsPen *)new wxGraphicsPen(); | |
26239 | if (PyErr_Occurred()) SWIG_fail; | |
26240 | } | |
26241 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 ); | |
26242 | return resultobj; | |
26243 | fail: | |
26244 | return NULL; | |
26245 | } | |
26246 | ||
26247 | ||
26248 | SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26249 | PyObject *resultobj = 0; | |
26250 | wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ; | |
26251 | void *argp1 = 0 ; | |
26252 | int res1 = 0 ; | |
26253 | PyObject *swig_obj[1] ; | |
26254 | ||
26255 | if (!args) SWIG_fail; | |
26256 | swig_obj[0] = args; | |
26257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 ); | |
26258 | if (!SWIG_IsOK(res1)) { | |
26259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'"); | |
26260 | } | |
26261 | arg1 = reinterpret_cast< wxGraphicsPen * >(argp1); | |
26262 | { | |
26263 | delete arg1; | |
26264 | ||
26265 | if (PyErr_Occurred()) SWIG_fail; | |
26266 | } | |
26267 | resultobj = SWIG_Py_Void(); | |
26268 | return resultobj; | |
26269 | fail: | |
26270 | return NULL; | |
26271 | } | |
26272 | ||
26273 | ||
26274 | SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26275 | PyObject *obj; | |
26276 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26277 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj)); | |
26278 | return SWIG_Py_Void(); | |
26279 | } | |
26280 | ||
26281 | SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26282 | return SWIG_Python_InitShadowInstance(args); | |
26283 | } | |
26284 | ||
26285 | SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26286 | PyObject *resultobj = 0; | |
26287 | wxGraphicsBrush *result = 0 ; | |
26288 | ||
26289 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail; | |
26290 | { | |
26291 | result = (wxGraphicsBrush *)new wxGraphicsBrush(); | |
26292 | if (PyErr_Occurred()) SWIG_fail; | |
26293 | } | |
26294 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 ); | |
26295 | return resultobj; | |
26296 | fail: | |
26297 | return NULL; | |
26298 | } | |
26299 | ||
26300 | ||
26301 | SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26302 | PyObject *resultobj = 0; | |
26303 | wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ; | |
26304 | void *argp1 = 0 ; | |
26305 | int res1 = 0 ; | |
26306 | PyObject *swig_obj[1] ; | |
26307 | ||
26308 | if (!args) SWIG_fail; | |
26309 | swig_obj[0] = args; | |
26310 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 ); | |
26311 | if (!SWIG_IsOK(res1)) { | |
26312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'"); | |
26313 | } | |
26314 | arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1); | |
26315 | { | |
26316 | delete arg1; | |
26317 | ||
26318 | if (PyErr_Occurred()) SWIG_fail; | |
26319 | } | |
26320 | resultobj = SWIG_Py_Void(); | |
26321 | return resultobj; | |
26322 | fail: | |
26323 | return NULL; | |
26324 | } | |
26325 | ||
26326 | ||
26327 | SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26328 | PyObject *obj; | |
26329 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26330 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj)); | |
26331 | return SWIG_Py_Void(); | |
26332 | } | |
26333 | ||
26334 | SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26335 | return SWIG_Python_InitShadowInstance(args); | |
26336 | } | |
26337 | ||
26338 | SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26339 | PyObject *resultobj = 0; | |
26340 | wxGraphicsFont *result = 0 ; | |
26341 | ||
26342 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail; | |
26343 | { | |
26344 | result = (wxGraphicsFont *)new wxGraphicsFont(); | |
26345 | if (PyErr_Occurred()) SWIG_fail; | |
26346 | } | |
26347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 ); | |
26348 | return resultobj; | |
26349 | fail: | |
26350 | return NULL; | |
26351 | } | |
26352 | ||
26353 | ||
26354 | SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26355 | PyObject *resultobj = 0; | |
26356 | wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ; | |
26357 | void *argp1 = 0 ; | |
26358 | int res1 = 0 ; | |
26359 | PyObject *swig_obj[1] ; | |
26360 | ||
26361 | if (!args) SWIG_fail; | |
26362 | swig_obj[0] = args; | |
26363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 ); | |
26364 | if (!SWIG_IsOK(res1)) { | |
26365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'"); | |
26366 | } | |
26367 | arg1 = reinterpret_cast< wxGraphicsFont * >(argp1); | |
26368 | { | |
26369 | delete arg1; | |
26370 | ||
26371 | if (PyErr_Occurred()) SWIG_fail; | |
26372 | } | |
26373 | resultobj = SWIG_Py_Void(); | |
26374 | return resultobj; | |
26375 | fail: | |
26376 | return NULL; | |
26377 | } | |
26378 | ||
26379 | ||
26380 | SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26381 | PyObject *obj; | |
26382 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26383 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj)); | |
26384 | return SWIG_Py_Void(); | |
26385 | } | |
26386 | ||
26387 | SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26388 | return SWIG_Python_InitShadowInstance(args); | |
26389 | } | |
26390 | ||
8f514ab4 RD |
26391 | SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26392 | PyObject *resultobj = 0; | |
26393 | wxGraphicsMatrix *result = 0 ; | |
26394 | ||
26395 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail; | |
26396 | { | |
26397 | result = (wxGraphicsMatrix *)new wxGraphicsMatrix(); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
26399 | } | |
26400 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 ); | |
26401 | return resultobj; | |
26402 | fail: | |
26403 | return NULL; | |
26404 | } | |
26405 | ||
26406 | ||
5c8c7dd3 | 26407 | SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 26408 | PyObject *resultobj = 0; |
5c8c7dd3 | 26409 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
554f62e9 RD |
26410 | void *argp1 = 0 ; |
26411 | int res1 = 0 ; | |
26412 | PyObject *swig_obj[1] ; | |
26413 | ||
26414 | if (!args) SWIG_fail; | |
26415 | swig_obj[0] = args; | |
5c8c7dd3 | 26416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 ); |
554f62e9 | 26417 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
554f62e9 | 26419 | } |
5c8c7dd3 | 26420 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
554f62e9 | 26421 | { |
554f62e9 RD |
26422 | delete arg1; |
26423 | ||
554f62e9 RD |
26424 | if (PyErr_Occurred()) SWIG_fail; |
26425 | } | |
26426 | resultobj = SWIG_Py_Void(); | |
26427 | return resultobj; | |
26428 | fail: | |
26429 | return NULL; | |
26430 | } | |
26431 | ||
26432 | ||
5c8c7dd3 | 26433 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26434 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26435 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26436 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
26437 | void *argp1 = 0 ; |
26438 | int res1 = 0 ; | |
5c8c7dd3 RD |
26439 | void *argp2 = 0 ; |
26440 | int res2 = 0 ; | |
26441 | PyObject * obj0 = 0 ; | |
26442 | PyObject * obj1 = 0 ; | |
26443 | char * kwnames[] = { | |
26444 | (char *) "self",(char *) "t", NULL | |
26445 | }; | |
70d7cb34 | 26446 | |
5c8c7dd3 RD |
26447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail; |
26448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26449 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26451 | } |
5c8c7dd3 RD |
26452 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26453 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
26454 | if (!SWIG_IsOK(res2)) { | |
26455 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26456 | } | |
26457 | if (!argp2) { | |
26458 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26459 | } | |
26460 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 26461 | { |
5c8c7dd3 | 26462 | (arg1)->Concat((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
26463 | if (PyErr_Occurred()) SWIG_fail; |
26464 | } | |
5c8c7dd3 | 26465 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26466 | return resultobj; |
26467 | fail: | |
26468 | return NULL; | |
26469 | } | |
26470 | ||
26471 | ||
5c8c7dd3 | 26472 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26473 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26474 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26475 | wxDouble arg2 = (wxDouble) 1.0 ; | |
26476 | wxDouble arg3 = (wxDouble) 0.0 ; | |
26477 | wxDouble arg4 = (wxDouble) 0.0 ; | |
26478 | wxDouble arg5 = (wxDouble) 1.0 ; | |
26479 | wxDouble arg6 = (wxDouble) 0.0 ; | |
26480 | wxDouble arg7 = (wxDouble) 0.0 ; | |
70d7cb34 RD |
26481 | void *argp1 = 0 ; |
26482 | int res1 = 0 ; | |
5c8c7dd3 RD |
26483 | double val2 ; |
26484 | int ecode2 = 0 ; | |
26485 | double val3 ; | |
26486 | int ecode3 = 0 ; | |
26487 | double val4 ; | |
26488 | int ecode4 = 0 ; | |
26489 | double val5 ; | |
26490 | int ecode5 = 0 ; | |
26491 | double val6 ; | |
26492 | int ecode6 = 0 ; | |
26493 | double val7 ; | |
26494 | int ecode7 = 0 ; | |
26495 | PyObject * obj0 = 0 ; | |
26496 | PyObject * obj1 = 0 ; | |
26497 | PyObject * obj2 = 0 ; | |
26498 | PyObject * obj3 = 0 ; | |
26499 | PyObject * obj4 = 0 ; | |
26500 | PyObject * obj5 = 0 ; | |
26501 | PyObject * obj6 = 0 ; | |
26502 | char * kwnames[] = { | |
26503 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
26504 | }; | |
70d7cb34 | 26505 | |
5c8c7dd3 RD |
26506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
26507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26508 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26510 | } |
5c8c7dd3 RD |
26511 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26512 | if (obj1) { | |
26513 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26514 | if (!SWIG_IsOK(ecode2)) { | |
26515 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26516 | } | |
26517 | arg2 = static_cast< wxDouble >(val2); | |
26518 | } | |
26519 | if (obj2) { | |
26520 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26521 | if (!SWIG_IsOK(ecode3)) { | |
26522 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26523 | } | |
26524 | arg3 = static_cast< wxDouble >(val3); | |
26525 | } | |
26526 | if (obj3) { | |
26527 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26528 | if (!SWIG_IsOK(ecode4)) { | |
26529 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26530 | } | |
26531 | arg4 = static_cast< wxDouble >(val4); | |
26532 | } | |
26533 | if (obj4) { | |
26534 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26535 | if (!SWIG_IsOK(ecode5)) { | |
26536 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26537 | } | |
26538 | arg5 = static_cast< wxDouble >(val5); | |
26539 | } | |
26540 | if (obj5) { | |
26541 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26542 | if (!SWIG_IsOK(ecode6)) { | |
26543 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26544 | } | |
26545 | arg6 = static_cast< wxDouble >(val6); | |
26546 | } | |
26547 | if (obj6) { | |
26548 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
26549 | if (!SWIG_IsOK(ecode7)) { | |
26550 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'"); | |
26551 | } | |
26552 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 RD |
26553 | } |
26554 | { | |
5c8c7dd3 | 26555 | (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26556 | if (PyErr_Occurred()) SWIG_fail; |
26557 | } | |
26558 | resultobj = SWIG_Py_Void(); | |
26559 | return resultobj; | |
26560 | fail: | |
26561 | return NULL; | |
26562 | } | |
26563 | ||
26564 | ||
5c8c7dd3 | 26565 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 26566 | PyObject *resultobj = 0; |
5c8c7dd3 | 26567 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
554f62e9 RD |
26568 | void *argp1 = 0 ; |
26569 | int res1 = 0 ; | |
5c8c7dd3 | 26570 | PyObject *swig_obj[1] ; |
554f62e9 | 26571 | |
5c8c7dd3 RD |
26572 | if (!args) SWIG_fail; |
26573 | swig_obj[0] = args; | |
26574 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
554f62e9 | 26575 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
554f62e9 | 26577 | } |
5c8c7dd3 | 26578 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
554f62e9 | 26579 | { |
5c8c7dd3 | 26580 | (arg1)->Invert(); |
554f62e9 RD |
26581 | if (PyErr_Occurred()) SWIG_fail; |
26582 | } | |
72ef6efb | 26583 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
26584 | return resultobj; |
26585 | fail: | |
26586 | return NULL; | |
26587 | } | |
26588 | ||
26589 | ||
5c8c7dd3 | 26590 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26591 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26592 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26593 | wxGraphicsMatrix *arg2 = 0 ; | |
26594 | bool result; | |
70d7cb34 RD |
26595 | void *argp1 = 0 ; |
26596 | int res1 = 0 ; | |
5c8c7dd3 RD |
26597 | void *argp2 = 0 ; |
26598 | int res2 = 0 ; | |
26599 | PyObject * obj0 = 0 ; | |
26600 | PyObject * obj1 = 0 ; | |
26601 | char * kwnames[] = { | |
26602 | (char *) "self",(char *) "t", NULL | |
26603 | }; | |
70d7cb34 | 26604 | |
5c8c7dd3 RD |
26605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; |
26606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26607 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 26609 | } |
5c8c7dd3 RD |
26610 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26611 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
26612 | if (!SWIG_IsOK(res2)) { | |
26613 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26614 | } | |
26615 | if (!argp2) { | |
26616 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
70d7cb34 | 26617 | } |
5c8c7dd3 | 26618 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); |
70d7cb34 | 26619 | { |
5c8c7dd3 | 26620 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
26621 | if (PyErr_Occurred()) SWIG_fail; |
26622 | } | |
5c8c7dd3 RD |
26623 | { |
26624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26625 | } | |
70d7cb34 RD |
26626 | return resultobj; |
26627 | fail: | |
26628 | return NULL; | |
26629 | } | |
26630 | ||
26631 | ||
5c8c7dd3 RD |
26632 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26633 | PyObject *resultobj = 0; | |
26634 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26635 | bool result; | |
26636 | void *argp1 = 0 ; | |
26637 | int res1 = 0 ; | |
26638 | PyObject *swig_obj[1] ; | |
70d7cb34 | 26639 | |
5c8c7dd3 RD |
26640 | if (!args) SWIG_fail; |
26641 | swig_obj[0] = args; | |
26642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26643 | if (!SWIG_IsOK(res1)) { | |
8f514ab4 | 26644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 26645 | } |
5c8c7dd3 RD |
26646 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26647 | { | |
8f514ab4 | 26648 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity(); |
5c8c7dd3 | 26649 | if (PyErr_Occurred()) SWIG_fail; |
70d7cb34 | 26650 | } |
5c8c7dd3 RD |
26651 | { |
26652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26653 | } | |
26654 | return resultobj; | |
70d7cb34 | 26655 | fail: |
70d7cb34 RD |
26656 | return NULL; |
26657 | } | |
26658 | ||
26659 | ||
5c8c7dd3 | 26660 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 26661 | PyObject *resultobj = 0; |
5c8c7dd3 | 26662 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
72ef6efb RD |
26663 | wxDouble arg2 ; |
26664 | wxDouble arg3 ; | |
554f62e9 RD |
26665 | void *argp1 = 0 ; |
26666 | int res1 = 0 ; | |
72ef6efb RD |
26667 | double val2 ; |
26668 | int ecode2 = 0 ; | |
26669 | double val3 ; | |
26670 | int ecode3 = 0 ; | |
5c8c7dd3 RD |
26671 | PyObject * obj0 = 0 ; |
26672 | PyObject * obj1 = 0 ; | |
26673 | PyObject * obj2 = 0 ; | |
26674 | char * kwnames[] = { | |
26675 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26676 | }; | |
72ef6efb | 26677 | |
5c8c7dd3 RD |
26678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 26680 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
72ef6efb | 26682 | } |
5c8c7dd3 RD |
26683 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26684 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
72ef6efb | 26685 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26686 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
26687 | } |
26688 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26689 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 26690 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26691 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
26692 | } |
26693 | arg3 = static_cast< wxDouble >(val3); | |
72ef6efb | 26694 | { |
5c8c7dd3 | 26695 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
26696 | if (PyErr_Occurred()) SWIG_fail; |
26697 | } | |
26698 | resultobj = SWIG_Py_Void(); | |
26699 | return resultobj; | |
26700 | fail: | |
26701 | return NULL; | |
26702 | } | |
26703 | ||
26704 | ||
5c8c7dd3 | 26705 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26706 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26707 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26708 | wxDouble arg2 ; | |
26709 | wxDouble arg3 ; | |
70d7cb34 RD |
26710 | void *argp1 = 0 ; |
26711 | int res1 = 0 ; | |
5c8c7dd3 RD |
26712 | double val2 ; |
26713 | int ecode2 = 0 ; | |
26714 | double val3 ; | |
26715 | int ecode3 = 0 ; | |
26716 | PyObject * obj0 = 0 ; | |
26717 | PyObject * obj1 = 0 ; | |
26718 | PyObject * obj2 = 0 ; | |
26719 | char * kwnames[] = { | |
26720 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
26721 | }; | |
70d7cb34 | 26722 | |
5c8c7dd3 RD |
26723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26725 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26727 | } |
5c8c7dd3 RD |
26728 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26729 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26730 | if (!SWIG_IsOK(ecode2)) { | |
26731 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26732 | } | |
26733 | arg2 = static_cast< wxDouble >(val2); | |
26734 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26735 | if (!SWIG_IsOK(ecode3)) { | |
26736 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26737 | } | |
26738 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26739 | { |
5c8c7dd3 | 26740 | (arg1)->Scale(arg2,arg3); |
70d7cb34 RD |
26741 | if (PyErr_Occurred()) SWIG_fail; |
26742 | } | |
26743 | resultobj = SWIG_Py_Void(); | |
26744 | return resultobj; | |
26745 | fail: | |
26746 | return NULL; | |
26747 | } | |
26748 | ||
26749 | ||
5c8c7dd3 | 26750 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26751 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26752 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26753 | wxDouble arg2 ; | |
70d7cb34 RD |
26754 | void *argp1 = 0 ; |
26755 | int res1 = 0 ; | |
5c8c7dd3 RD |
26756 | double val2 ; |
26757 | int ecode2 = 0 ; | |
70d7cb34 RD |
26758 | PyObject * obj0 = 0 ; |
26759 | PyObject * obj1 = 0 ; | |
26760 | char * kwnames[] = { | |
5c8c7dd3 | 26761 | (char *) "self",(char *) "angle", NULL |
70d7cb34 RD |
26762 | }; |
26763 | ||
5c8c7dd3 RD |
26764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; |
26765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26766 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26768 | } |
5c8c7dd3 RD |
26769 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26770 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26771 | if (!SWIG_IsOK(ecode2)) { | |
26772 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26773 | } | |
26774 | arg2 = static_cast< wxDouble >(val2); | |
70d7cb34 | 26775 | { |
5c8c7dd3 | 26776 | (arg1)->Rotate(arg2); |
70d7cb34 RD |
26777 | if (PyErr_Occurred()) SWIG_fail; |
26778 | } | |
26779 | resultobj = SWIG_Py_Void(); | |
26780 | return resultobj; | |
26781 | fail: | |
26782 | return NULL; | |
26783 | } | |
26784 | ||
26785 | ||
5c8c7dd3 | 26786 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 26787 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26788 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26789 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26790 | wxDouble *arg3 = (wxDouble *) 0 ; | |
72ef6efb RD |
26791 | void *argp1 = 0 ; |
26792 | int res1 = 0 ; | |
5c8c7dd3 RD |
26793 | wxDouble temp2 ; |
26794 | int res2 = 0 ; | |
26795 | wxDouble temp3 ; | |
26796 | int res3 = 0 ; | |
26797 | PyObject * obj0 = 0 ; | |
26798 | PyObject * obj1 = 0 ; | |
26799 | PyObject * obj2 = 0 ; | |
26800 | char * kwnames[] = { | |
26801 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26802 | }; | |
72ef6efb | 26803 | |
5c8c7dd3 RD |
26804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 26806 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 26807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
72ef6efb | 26808 | } |
5c8c7dd3 RD |
26809 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26810 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26811 | double val; | |
26812 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26813 | if (!SWIG_IsOK(ecode)) { | |
26814 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26815 | } | |
26816 | temp2 = static_cast< wxDouble >(val); | |
26817 | arg2 = &temp2; | |
26818 | res2 = SWIG_AddTmpMask(ecode); | |
26819 | } | |
26820 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
26821 | double val; | |
26822 | int ecode = SWIG_AsVal_double(obj2, &val); | |
26823 | if (!SWIG_IsOK(ecode)) { | |
26824 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26825 | } | |
26826 | temp3 = static_cast< wxDouble >(val); | |
26827 | arg3 = &temp3; | |
26828 | res3 = SWIG_AddTmpMask(ecode); | |
26829 | } | |
26830 | { | |
8f514ab4 | 26831 | ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3); |
72ef6efb RD |
26832 | if (PyErr_Occurred()) SWIG_fail; |
26833 | } | |
26834 | resultobj = SWIG_Py_Void(); | |
5c8c7dd3 RD |
26835 | if (SWIG_IsTmpObj(res2)) { |
26836 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26837 | } else { | |
26838 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26839 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26840 | } | |
26841 | if (SWIG_IsTmpObj(res3)) { | |
26842 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26843 | } else { | |
26844 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26845 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26846 | } | |
72ef6efb RD |
26847 | return resultobj; |
26848 | fail: | |
26849 | return NULL; | |
26850 | } | |
26851 | ||
26852 | ||
5c8c7dd3 RD |
26853 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26854 | PyObject *resultobj = 0; | |
26855 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26856 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26857 | wxDouble *arg3 = (wxDouble *) 0 ; | |
26858 | void *argp1 = 0 ; | |
26859 | int res1 = 0 ; | |
26860 | wxDouble temp2 ; | |
26861 | int res2 = 0 ; | |
26862 | wxDouble temp3 ; | |
26863 | int res3 = 0 ; | |
26864 | PyObject * obj0 = 0 ; | |
26865 | PyObject * obj1 = 0 ; | |
26866 | PyObject * obj2 = 0 ; | |
26867 | char * kwnames[] = { | |
26868 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26869 | }; | |
26870 | ||
26871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26873 | if (!SWIG_IsOK(res1)) { | |
8f514ab4 | 26874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
5c8c7dd3 RD |
26875 | } |
26876 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26877 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26878 | double val; | |
26879 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26880 | if (!SWIG_IsOK(ecode)) { | |
26881 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26882 | } | |
26883 | temp2 = static_cast< wxDouble >(val); | |
26884 | arg2 = &temp2; | |
26885 | res2 = SWIG_AddTmpMask(ecode); | |
26886 | } | |
26887 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
26888 | double val; | |
26889 | int ecode = SWIG_AsVal_double(obj2, &val); | |
26890 | if (!SWIG_IsOK(ecode)) { | |
26891 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26892 | } | |
26893 | temp3 = static_cast< wxDouble >(val); | |
26894 | arg3 = &temp3; | |
26895 | res3 = SWIG_AddTmpMask(ecode); | |
26896 | } | |
26897 | { | |
8f514ab4 | 26898 | ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3); |
5c8c7dd3 RD |
26899 | if (PyErr_Occurred()) SWIG_fail; |
26900 | } | |
26901 | resultobj = SWIG_Py_Void(); | |
26902 | if (SWIG_IsTmpObj(res2)) { | |
26903 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26904 | } else { | |
26905 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26906 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26907 | } | |
26908 | if (SWIG_IsTmpObj(res3)) { | |
26909 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26910 | } else { | |
26911 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26912 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26913 | } | |
26914 | return resultobj; | |
26915 | fail: | |
26916 | return NULL; | |
26917 | } | |
26918 | ||
26919 | ||
26920 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26921 | PyObject *resultobj = 0; | |
26922 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26923 | void *result = 0 ; | |
26924 | void *argp1 = 0 ; | |
26925 | int res1 = 0 ; | |
26926 | PyObject *swig_obj[1] ; | |
26927 | ||
26928 | if (!args) SWIG_fail; | |
26929 | swig_obj[0] = args; | |
26930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26931 | if (!SWIG_IsOK(res1)) { | |
26932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
26933 | } | |
26934 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26935 | { | |
26936 | result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix(); | |
26937 | if (PyErr_Occurred()) SWIG_fail; | |
26938 | } | |
26939 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
26940 | return resultobj; | |
26941 | fail: | |
26942 | return NULL; | |
26943 | } | |
26944 | ||
26945 | ||
26946 | SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26947 | PyObject *obj; | |
26948 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26949 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj)); | |
26950 | return SWIG_Py_Void(); | |
26951 | } | |
26952 | ||
8f514ab4 RD |
26953 | SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26954 | return SWIG_Python_InitShadowInstance(args); | |
26955 | } | |
26956 | ||
26957 | SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26958 | PyObject *resultobj = 0; | |
26959 | wxGraphicsPath *result = 0 ; | |
26960 | ||
26961 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail; | |
26962 | { | |
26963 | if (!wxPyCheckForApp()) SWIG_fail; | |
26964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26965 | result = (wxGraphicsPath *)new wxGraphicsPath(); | |
26966 | wxPyEndAllowThreads(__tstate); | |
26967 | if (PyErr_Occurred()) SWIG_fail; | |
26968 | } | |
26969 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 ); | |
26970 | return resultobj; | |
26971 | fail: | |
26972 | return NULL; | |
26973 | } | |
26974 | ||
26975 | ||
5c8c7dd3 | 26976 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
26977 | PyObject *resultobj = 0; |
26978 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
72ef6efb RD |
26979 | void *argp1 = 0 ; |
26980 | int res1 = 0 ; | |
26981 | PyObject *swig_obj[1] ; | |
26982 | ||
26983 | if (!args) SWIG_fail; | |
26984 | swig_obj[0] = args; | |
5c8c7dd3 | 26985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
72ef6efb | 26986 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
72ef6efb RD |
26988 | } |
26989 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26990 | { | |
5c8c7dd3 RD |
26991 | delete arg1; |
26992 | ||
72ef6efb RD |
26993 | if (PyErr_Occurred()) SWIG_fail; |
26994 | } | |
5c8c7dd3 | 26995 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26996 | return resultobj; |
26997 | fail: | |
26998 | return NULL; | |
26999 | } | |
27000 | ||
27001 | ||
5c8c7dd3 | 27002 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27003 | PyObject *resultobj = 0; |
27004 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27005 | wxDouble arg2 ; | |
27006 | wxDouble arg3 ; | |
70d7cb34 RD |
27007 | void *argp1 = 0 ; |
27008 | int res1 = 0 ; | |
27009 | double val2 ; | |
27010 | int ecode2 = 0 ; | |
27011 | double val3 ; | |
27012 | int ecode3 = 0 ; | |
70d7cb34 | 27013 | |
5c8c7dd3 | 27014 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
70d7cb34 RD |
27015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27016 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27018 | } |
27019 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27020 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27021 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 27022 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27023 | } |
27024 | arg2 = static_cast< wxDouble >(val2); | |
27025 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27026 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 27027 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27028 | } |
27029 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 27030 | { |
5c8c7dd3 | 27031 | (arg1)->MoveToPoint(arg2,arg3); |
70d7cb34 RD |
27032 | if (PyErr_Occurred()) SWIG_fail; |
27033 | } | |
27034 | resultobj = SWIG_Py_Void(); | |
27035 | return resultobj; | |
27036 | fail: | |
27037 | return NULL; | |
27038 | } | |
27039 | ||
27040 | ||
5c8c7dd3 | 27041 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27042 | PyObject *resultobj = 0; |
27043 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27044 | wxPoint2D *arg2 = 0 ; | |
70d7cb34 RD |
27045 | void *argp1 = 0 ; |
27046 | int res1 = 0 ; | |
27047 | wxPoint2D temp2 ; | |
70d7cb34 | 27048 | |
5c8c7dd3 | 27049 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
70d7cb34 RD |
27050 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27051 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27053 | } |
27054 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27055 | { | |
27056 | arg2 = &temp2; | |
27057 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
27058 | } | |
70d7cb34 | 27059 | { |
5c8c7dd3 | 27060 | (arg1)->MoveToPoint((wxPoint2D const &)*arg2); |
70d7cb34 RD |
27061 | if (PyErr_Occurred()) SWIG_fail; |
27062 | } | |
27063 | resultobj = SWIG_Py_Void(); | |
27064 | return resultobj; | |
27065 | fail: | |
27066 | return NULL; | |
27067 | } | |
27068 | ||
27069 | ||
5c8c7dd3 | 27070 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) { |
70d7cb34 | 27071 | int argc; |
5c8c7dd3 | 27072 | PyObject *argv[4]; |
70d7cb34 | 27073 | |
5c8c7dd3 | 27074 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail; |
70d7cb34 | 27075 | --argc; |
5c8c7dd3 RD |
27076 | if (argc == 2) { |
27077 | return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 27078 | } |
5c8c7dd3 RD |
27079 | if (argc == 3) { |
27080 | return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
27081 | } |
27082 | ||
27083 | fail: | |
5c8c7dd3 | 27084 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'"); |
70d7cb34 RD |
27085 | return NULL; |
27086 | } | |
27087 | ||
27088 | ||
5c8c7dd3 | 27089 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27090 | PyObject *resultobj = 0; |
27091 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27092 | wxDouble arg2 ; | |
27093 | wxDouble arg3 ; | |
70d7cb34 RD |
27094 | void *argp1 = 0 ; |
27095 | int res1 = 0 ; | |
27096 | double val2 ; | |
27097 | int ecode2 = 0 ; | |
27098 | double val3 ; | |
27099 | int ecode3 = 0 ; | |
70d7cb34 | 27100 | |
5c8c7dd3 RD |
27101 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
27102 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27103 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27105 | } |
27106 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 27107 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 27108 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 27109 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27110 | } |
27111 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 27112 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 27113 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 27114 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27115 | } |
27116 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 27117 | { |
5c8c7dd3 | 27118 | (arg1)->AddLineToPoint(arg2,arg3); |
70d7cb34 RD |
27119 | if (PyErr_Occurred()) SWIG_fail; |
27120 | } | |
27121 | resultobj = SWIG_Py_Void(); | |
27122 | return resultobj; | |
27123 | fail: | |
27124 | return NULL; | |
27125 | } | |
27126 | ||
27127 | ||
5c8c7dd3 | 27128 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27129 | PyObject *resultobj = 0; |
27130 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 27131 | wxPoint2D *arg2 = 0 ; |
70d7cb34 RD |
27132 | void *argp1 = 0 ; |
27133 | int res1 = 0 ; | |
5c8c7dd3 | 27134 | wxPoint2D temp2 ; |
70d7cb34 | 27135 | |
5c8c7dd3 RD |
27136 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
27137 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27138 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27140 | } |
27141 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27142 | { |
5c8c7dd3 RD |
27143 | arg2 = &temp2; |
27144 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
27145 | } | |
27146 | { | |
27147 | (arg1)->AddLineToPoint((wxPoint2D const &)*arg2); | |
70d7cb34 RD |
27148 | if (PyErr_Occurred()) SWIG_fail; |
27149 | } | |
27150 | resultobj = SWIG_Py_Void(); | |
27151 | return resultobj; | |
27152 | fail: | |
27153 | return NULL; | |
27154 | } | |
27155 | ||
27156 | ||
5c8c7dd3 RD |
27157 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) { |
27158 | int argc; | |
27159 | PyObject *argv[4]; | |
70d7cb34 | 27160 | |
5c8c7dd3 RD |
27161 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail; |
27162 | --argc; | |
27163 | if (argc == 2) { | |
27164 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 27165 | } |
5c8c7dd3 RD |
27166 | if (argc == 3) { |
27167 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 27168 | } |
5c8c7dd3 | 27169 | |
70d7cb34 | 27170 | fail: |
5c8c7dd3 | 27171 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'"); |
70d7cb34 RD |
27172 | return NULL; |
27173 | } | |
27174 | ||
27175 | ||
5c8c7dd3 | 27176 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27177 | PyObject *resultobj = 0; |
27178 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27179 | wxDouble arg2 ; | |
27180 | wxDouble arg3 ; | |
27181 | wxDouble arg4 ; | |
27182 | wxDouble arg5 ; | |
27183 | wxDouble arg6 ; | |
5c8c7dd3 | 27184 | wxDouble arg7 ; |
70d7cb34 RD |
27185 | void *argp1 = 0 ; |
27186 | int res1 = 0 ; | |
27187 | double val2 ; | |
27188 | int ecode2 = 0 ; | |
27189 | double val3 ; | |
27190 | int ecode3 = 0 ; | |
27191 | double val4 ; | |
27192 | int ecode4 = 0 ; | |
27193 | double val5 ; | |
27194 | int ecode5 = 0 ; | |
27195 | double val6 ; | |
27196 | int ecode6 = 0 ; | |
5c8c7dd3 RD |
27197 | double val7 ; |
27198 | int ecode7 = 0 ; | |
70d7cb34 | 27199 | |
5c8c7dd3 RD |
27200 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
27201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27202 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27204 | } |
27205 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 27206 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 27207 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 27208 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27209 | } |
27210 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 27211 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 27212 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 27213 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27214 | } |
27215 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 | 27216 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
70d7cb34 | 27217 | if (!SWIG_IsOK(ecode4)) { |
5c8c7dd3 | 27218 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27219 | } |
27220 | arg4 = static_cast< wxDouble >(val4); | |
5c8c7dd3 | 27221 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); |
70d7cb34 | 27222 | if (!SWIG_IsOK(ecode5)) { |
5c8c7dd3 | 27223 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27224 | } |
27225 | arg5 = static_cast< wxDouble >(val5); | |
5c8c7dd3 | 27226 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); |
70d7cb34 | 27227 | if (!SWIG_IsOK(ecode6)) { |
5c8c7dd3 | 27228 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27229 | } |
27230 | arg6 = static_cast< wxDouble >(val6); | |
5c8c7dd3 RD |
27231 | ecode7 = SWIG_AsVal_double(swig_obj[6], &val7); |
27232 | if (!SWIG_IsOK(ecode7)) { | |
27233 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
27234 | } | |
27235 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 | 27236 | { |
5c8c7dd3 | 27237 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
27238 | if (PyErr_Occurred()) SWIG_fail; |
27239 | } | |
27240 | resultobj = SWIG_Py_Void(); | |
27241 | return resultobj; | |
27242 | fail: | |
27243 | return NULL; | |
27244 | } | |
27245 | ||
27246 | ||
5c8c7dd3 | 27247 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27248 | PyObject *resultobj = 0; |
27249 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
27250 | wxPoint2D *arg2 = 0 ; |
27251 | wxPoint2D *arg3 = 0 ; | |
27252 | wxPoint2D *arg4 = 0 ; | |
70d7cb34 RD |
27253 | void *argp1 = 0 ; |
27254 | int res1 = 0 ; | |
5c8c7dd3 RD |
27255 | wxPoint2D temp2 ; |
27256 | wxPoint2D temp3 ; | |
27257 | wxPoint2D temp4 ; | |
70d7cb34 | 27258 | |
5c8c7dd3 RD |
27259 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; |
27260 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27261 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27263 | } |
27264 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27265 | { |
5c8c7dd3 RD |
27266 | arg2 = &temp2; |
27267 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 27268 | } |
5c8c7dd3 RD |
27269 | { |
27270 | arg3 = &temp3; | |
27271 | if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail; | |
70d7cb34 | 27272 | } |
70d7cb34 | 27273 | { |
5c8c7dd3 RD |
27274 | arg4 = &temp4; |
27275 | if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail; | |
27276 | } | |
27277 | { | |
27278 | (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4); | |
70d7cb34 RD |
27279 | if (PyErr_Occurred()) SWIG_fail; |
27280 | } | |
27281 | resultobj = SWIG_Py_Void(); | |
27282 | return resultobj; | |
27283 | fail: | |
27284 | return NULL; | |
27285 | } | |
27286 | ||
27287 | ||
5c8c7dd3 RD |
27288 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) { |
27289 | int argc; | |
27290 | PyObject *argv[8]; | |
70d7cb34 | 27291 | |
5c8c7dd3 RD |
27292 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail; |
27293 | --argc; | |
27294 | if (argc == 4) { | |
27295 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 27296 | } |
5c8c7dd3 RD |
27297 | if (argc == 7) { |
27298 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 27299 | } |
5c8c7dd3 | 27300 | |
70d7cb34 | 27301 | fail: |
5c8c7dd3 | 27302 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'"); |
70d7cb34 RD |
27303 | return NULL; |
27304 | } | |
27305 | ||
27306 | ||
5c8c7dd3 | 27307 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 RD |
27308 | PyObject *resultobj = 0; |
27309 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 27310 | wxGraphicsPath *arg2 = 0 ; |
70d7cb34 RD |
27311 | void *argp1 = 0 ; |
27312 | int res1 = 0 ; | |
5c8c7dd3 RD |
27313 | void *argp2 = 0 ; |
27314 | int res2 = 0 ; | |
70d7cb34 RD |
27315 | PyObject * obj0 = 0 ; |
27316 | PyObject * obj1 = 0 ; | |
27317 | char * kwnames[] = { | |
5c8c7dd3 | 27318 | (char *) "self",(char *) "path", NULL |
70d7cb34 RD |
27319 | }; |
27320 | ||
5c8c7dd3 | 27321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail; |
70d7cb34 RD |
27322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27323 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27325 | } |
27326 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 27327 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
70d7cb34 | 27328 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
27329 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
27330 | } | |
27331 | if (!argp2) { | |
27332 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
70d7cb34 | 27333 | } |
5c8c7dd3 | 27334 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); |
70d7cb34 | 27335 | { |
5c8c7dd3 | 27336 | (arg1)->AddPath((wxGraphicsPath const &)*arg2); |
70d7cb34 RD |
27337 | if (PyErr_Occurred()) SWIG_fail; |
27338 | } | |
27339 | resultobj = SWIG_Py_Void(); | |
27340 | return resultobj; | |
27341 | fail: | |
27342 | return NULL; | |
27343 | } | |
27344 | ||
27345 | ||
5c8c7dd3 | 27346 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27347 | PyObject *resultobj = 0; |
27348 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
70d7cb34 RD |
27349 | void *argp1 = 0 ; |
27350 | int res1 = 0 ; | |
5c8c7dd3 | 27351 | PyObject *swig_obj[1] ; |
70d7cb34 | 27352 | |
5c8c7dd3 RD |
27353 | if (!args) SWIG_fail; |
27354 | swig_obj[0] = args; | |
27355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27356 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27358 | } |
27359 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27360 | { |
5c8c7dd3 | 27361 | (arg1)->CloseSubpath(); |
70d7cb34 RD |
27362 | if (PyErr_Occurred()) SWIG_fail; |
27363 | } | |
27364 | resultobj = SWIG_Py_Void(); | |
27365 | return resultobj; | |
27366 | fail: | |
27367 | return NULL; | |
27368 | } | |
27369 | ||
27370 | ||
5c8c7dd3 | 27371 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27372 | PyObject *resultobj = 0; |
27373 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 27374 | wxPoint2D result; |
70d7cb34 RD |
27375 | void *argp1 = 0 ; |
27376 | int res1 = 0 ; | |
27377 | PyObject *swig_obj[1] ; | |
27378 | ||
27379 | if (!args) SWIG_fail; | |
27380 | swig_obj[0] = args; | |
27381 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
27382 | if (!SWIG_IsOK(res1)) { | |
8f514ab4 | 27383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 RD |
27384 | } |
27385 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27386 | { | |
8f514ab4 | 27387 | result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint(); |
70d7cb34 RD |
27388 | if (PyErr_Occurred()) SWIG_fail; |
27389 | } | |
5c8c7dd3 | 27390 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
27391 | return resultobj; |
27392 | fail: | |
27393 | return NULL; | |
27394 | } | |
27395 | ||
27396 | ||
5c8c7dd3 | 27397 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27398 | PyObject *resultobj = 0; |
27399 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27400 | wxDouble arg2 ; | |
27401 | wxDouble arg3 ; | |
5c8c7dd3 RD |
27402 | wxDouble arg4 ; |
27403 | wxDouble arg5 ; | |
27404 | wxDouble arg6 ; | |
27405 | bool arg7 ; | |
70d7cb34 RD |
27406 | void *argp1 = 0 ; |
27407 | int res1 = 0 ; | |
27408 | double val2 ; | |
27409 | int ecode2 = 0 ; | |
27410 | double val3 ; | |
27411 | int ecode3 = 0 ; | |
5c8c7dd3 | 27412 | double val4 ; |
70d7cb34 | 27413 | int ecode4 = 0 ; |
5c8c7dd3 RD |
27414 | double val5 ; |
27415 | int ecode5 = 0 ; | |
27416 | double val6 ; | |
27417 | int ecode6 = 0 ; | |
27418 | bool val7 ; | |
27419 | int ecode7 = 0 ; | |
70d7cb34 | 27420 | |
5c8c7dd3 | 27421 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
70d7cb34 RD |
27422 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27423 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27425 | } |
27426 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27427 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27428 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 27429 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27430 | } |
27431 | arg2 = static_cast< wxDouble >(val2); | |
27432 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27433 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 27434 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27435 | } |
27436 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 RD |
27437 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
27438 | if (!SWIG_IsOK(ecode4)) { | |
27439 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27440 | } | |
27441 | arg4 = static_cast< wxDouble >(val4); | |
27442 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
27443 | if (!SWIG_IsOK(ecode5)) { | |
27444 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27445 | } | |
27446 | arg5 = static_cast< wxDouble >(val5); | |
27447 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); | |
27448 | if (!SWIG_IsOK(ecode6)) { | |
27449 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27450 | } | |
27451 | arg6 = static_cast< wxDouble >(val6); | |
27452 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
27453 | if (!SWIG_IsOK(ecode7)) { | |
27454 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
27455 | } | |
27456 | arg7 = static_cast< bool >(val7); | |
70d7cb34 | 27457 | { |
5c8c7dd3 | 27458 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
27459 | if (PyErr_Occurred()) SWIG_fail; |
27460 | } | |
5c8c7dd3 | 27461 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27462 | return resultobj; |
27463 | fail: | |
27464 | return NULL; | |
27465 | } | |
27466 | ||
27467 | ||
5c8c7dd3 | 27468 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27469 | PyObject *resultobj = 0; |
27470 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
27471 | wxPoint2D *arg2 = 0 ; |
27472 | wxDouble arg3 ; | |
27473 | wxDouble arg4 ; | |
27474 | wxDouble arg5 ; | |
27475 | bool arg6 ; | |
70d7cb34 RD |
27476 | void *argp1 = 0 ; |
27477 | int res1 = 0 ; | |
5c8c7dd3 RD |
27478 | wxPoint2D temp2 ; |
27479 | double val3 ; | |
70d7cb34 | 27480 | int ecode3 = 0 ; |
5c8c7dd3 RD |
27481 | double val4 ; |
27482 | int ecode4 = 0 ; | |
27483 | double val5 ; | |
27484 | int ecode5 = 0 ; | |
27485 | bool val6 ; | |
27486 | int ecode6 = 0 ; | |
70d7cb34 | 27487 | |
5c8c7dd3 | 27488 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
27489 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27490 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27492 | } |
27493 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27494 | { |
5c8c7dd3 RD |
27495 | arg2 = &temp2; |
27496 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 27497 | } |
5c8c7dd3 RD |
27498 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
27499 | if (!SWIG_IsOK(ecode3)) { | |
27500 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27501 | } | |
27502 | arg3 = static_cast< wxDouble >(val3); | |
27503 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
27504 | if (!SWIG_IsOK(ecode4)) { | |
27505 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27506 | } | |
27507 | arg4 = static_cast< wxDouble >(val4); | |
27508 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
27509 | if (!SWIG_IsOK(ecode5)) { | |
27510 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27511 | } | |
27512 | arg5 = static_cast< wxDouble >(val5); | |
27513 | ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); | |
27514 | if (!SWIG_IsOK(ecode6)) { | |
27515 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'"); | |
27516 | } | |
27517 | arg6 = static_cast< bool >(val6); | |
70d7cb34 | 27518 | { |
5c8c7dd3 RD |
27519 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
27520 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 27521 | } |
5c8c7dd3 | 27522 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27523 | return resultobj; |
27524 | fail: | |
27525 | return NULL; | |
27526 | } | |
27527 | ||
27528 | ||
5c8c7dd3 | 27529 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 27530 | int argc; |
5c8c7dd3 | 27531 | PyObject *argv[8]; |
70d7cb34 | 27532 | |
5c8c7dd3 | 27533 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 27534 | --argc; |
5c8c7dd3 RD |
27535 | if (argc == 6) { |
27536 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); | |
70d7cb34 | 27537 | } |
5c8c7dd3 RD |
27538 | if (argc == 7) { |
27539 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
27540 | } |
27541 | ||
27542 | fail: | |
5c8c7dd3 | 27543 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
27544 | return NULL; |
27545 | } | |
27546 | ||
27547 | ||
5c8c7dd3 | 27548 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27549 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27550 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27551 | wxDouble arg2 ; | |
27552 | wxDouble arg3 ; | |
27553 | wxDouble arg4 ; | |
27554 | wxDouble arg5 ; | |
70d7cb34 RD |
27555 | void *argp1 = 0 ; |
27556 | int res1 = 0 ; | |
5c8c7dd3 RD |
27557 | double val2 ; |
27558 | int ecode2 = 0 ; | |
27559 | double val3 ; | |
27560 | int ecode3 = 0 ; | |
27561 | double val4 ; | |
27562 | int ecode4 = 0 ; | |
27563 | double val5 ; | |
27564 | int ecode5 = 0 ; | |
27565 | PyObject * obj0 = 0 ; | |
27566 | PyObject * obj1 = 0 ; | |
27567 | PyObject * obj2 = 0 ; | |
27568 | PyObject * obj3 = 0 ; | |
27569 | PyObject * obj4 = 0 ; | |
27570 | char * kwnames[] = { | |
27571 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
27572 | }; | |
70d7cb34 | 27573 | |
5c8c7dd3 RD |
27574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27576 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27578 | } |
5c8c7dd3 RD |
27579 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27580 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27581 | if (!SWIG_IsOK(ecode2)) { | |
27582 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27583 | } | |
27584 | arg2 = static_cast< wxDouble >(val2); | |
27585 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27586 | if (!SWIG_IsOK(ecode3)) { | |
27587 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27588 | } | |
27589 | arg3 = static_cast< wxDouble >(val3); | |
27590 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27591 | if (!SWIG_IsOK(ecode4)) { | |
27592 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27593 | } | |
27594 | arg4 = static_cast< wxDouble >(val4); | |
27595 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27596 | if (!SWIG_IsOK(ecode5)) { | |
27597 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27598 | } | |
27599 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27600 | { |
5c8c7dd3 | 27601 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27602 | if (PyErr_Occurred()) SWIG_fail; |
27603 | } | |
27604 | resultobj = SWIG_Py_Void(); | |
27605 | return resultobj; | |
27606 | fail: | |
27607 | return NULL; | |
27608 | } | |
27609 | ||
27610 | ||
5c8c7dd3 | 27611 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27612 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27613 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27614 | wxDouble arg2 ; | |
27615 | wxDouble arg3 ; | |
27616 | wxDouble arg4 ; | |
27617 | wxDouble arg5 ; | |
70d7cb34 RD |
27618 | void *argp1 = 0 ; |
27619 | int res1 = 0 ; | |
5c8c7dd3 RD |
27620 | double val2 ; |
27621 | int ecode2 = 0 ; | |
27622 | double val3 ; | |
27623 | int ecode3 = 0 ; | |
27624 | double val4 ; | |
27625 | int ecode4 = 0 ; | |
27626 | double val5 ; | |
27627 | int ecode5 = 0 ; | |
70d7cb34 RD |
27628 | PyObject * obj0 = 0 ; |
27629 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27630 | PyObject * obj2 = 0 ; |
27631 | PyObject * obj3 = 0 ; | |
27632 | PyObject * obj4 = 0 ; | |
70d7cb34 | 27633 | char * kwnames[] = { |
5c8c7dd3 | 27634 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
27635 | }; |
27636 | ||
5c8c7dd3 RD |
27637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27639 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27641 | } |
5c8c7dd3 RD |
27642 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27643 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27644 | if (!SWIG_IsOK(ecode2)) { | |
27645 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27646 | } | |
27647 | arg2 = static_cast< wxDouble >(val2); | |
27648 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27649 | if (!SWIG_IsOK(ecode3)) { | |
27650 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27651 | } | |
27652 | arg3 = static_cast< wxDouble >(val3); | |
27653 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27654 | if (!SWIG_IsOK(ecode4)) { | |
27655 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27656 | } | |
27657 | arg4 = static_cast< wxDouble >(val4); | |
27658 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27659 | if (!SWIG_IsOK(ecode5)) { | |
27660 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27661 | } | |
27662 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27663 | { |
5c8c7dd3 | 27664 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27665 | if (PyErr_Occurred()) SWIG_fail; |
27666 | } | |
27667 | resultobj = SWIG_Py_Void(); | |
27668 | return resultobj; | |
27669 | fail: | |
27670 | return NULL; | |
27671 | } | |
27672 | ||
27673 | ||
5c8c7dd3 | 27674 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27675 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27676 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27677 | wxDouble arg2 ; | |
27678 | wxDouble arg3 ; | |
27679 | wxDouble arg4 ; | |
70d7cb34 RD |
27680 | void *argp1 = 0 ; |
27681 | int res1 = 0 ; | |
5c8c7dd3 RD |
27682 | double val2 ; |
27683 | int ecode2 = 0 ; | |
27684 | double val3 ; | |
27685 | int ecode3 = 0 ; | |
27686 | double val4 ; | |
27687 | int ecode4 = 0 ; | |
70d7cb34 RD |
27688 | PyObject * obj0 = 0 ; |
27689 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27690 | PyObject * obj2 = 0 ; |
27691 | PyObject * obj3 = 0 ; | |
70d7cb34 | 27692 | char * kwnames[] = { |
5c8c7dd3 | 27693 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
27694 | }; |
27695 | ||
5c8c7dd3 RD |
27696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
27697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27698 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27700 | } |
5c8c7dd3 RD |
27701 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27702 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27703 | if (!SWIG_IsOK(ecode2)) { | |
27704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27705 | } | |
27706 | arg2 = static_cast< wxDouble >(val2); | |
27707 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27708 | if (!SWIG_IsOK(ecode3)) { | |
27709 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27710 | } | |
27711 | arg3 = static_cast< wxDouble >(val3); | |
27712 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27713 | if (!SWIG_IsOK(ecode4)) { | |
27714 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27715 | } | |
27716 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 27717 | { |
5c8c7dd3 | 27718 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
27719 | if (PyErr_Occurred()) SWIG_fail; |
27720 | } | |
27721 | resultobj = SWIG_Py_Void(); | |
27722 | return resultobj; | |
27723 | fail: | |
27724 | return NULL; | |
27725 | } | |
27726 | ||
27727 | ||
5c8c7dd3 | 27728 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27729 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27730 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27731 | wxDouble arg2 ; | |
27732 | wxDouble arg3 ; | |
27733 | wxDouble arg4 ; | |
27734 | wxDouble arg5 ; | |
27735 | wxDouble arg6 ; | |
70d7cb34 RD |
27736 | void *argp1 = 0 ; |
27737 | int res1 = 0 ; | |
27738 | double val2 ; | |
27739 | int ecode2 = 0 ; | |
27740 | double val3 ; | |
27741 | int ecode3 = 0 ; | |
27742 | double val4 ; | |
27743 | int ecode4 = 0 ; | |
27744 | double val5 ; | |
27745 | int ecode5 = 0 ; | |
27746 | double val6 ; | |
27747 | int ecode6 = 0 ; | |
70d7cb34 RD |
27748 | PyObject * obj0 = 0 ; |
27749 | PyObject * obj1 = 0 ; | |
27750 | PyObject * obj2 = 0 ; | |
27751 | PyObject * obj3 = 0 ; | |
27752 | PyObject * obj4 = 0 ; | |
27753 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27754 | char * kwnames[] = { |
5c8c7dd3 | 27755 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
27756 | }; |
27757 | ||
5c8c7dd3 RD |
27758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27759 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27760 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27762 | } |
5c8c7dd3 RD |
27763 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27764 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27765 | if (!SWIG_IsOK(ecode2)) { | |
27766 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27767 | } | |
27768 | arg2 = static_cast< wxDouble >(val2); | |
27769 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27770 | if (!SWIG_IsOK(ecode3)) { | |
27771 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27772 | } | |
27773 | arg3 = static_cast< wxDouble >(val3); | |
27774 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27775 | if (!SWIG_IsOK(ecode4)) { | |
27776 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27777 | } | |
27778 | arg4 = static_cast< wxDouble >(val4); | |
27779 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27780 | if (!SWIG_IsOK(ecode5)) { | |
27781 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27782 | } | |
27783 | arg5 = static_cast< wxDouble >(val5); | |
27784 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27785 | if (!SWIG_IsOK(ecode6)) { | |
27786 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27787 | } | |
27788 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27789 | { |
5c8c7dd3 | 27790 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27791 | if (PyErr_Occurred()) SWIG_fail; |
27792 | } | |
27793 | resultobj = SWIG_Py_Void(); | |
27794 | return resultobj; | |
27795 | fail: | |
27796 | return NULL; | |
27797 | } | |
27798 | ||
27799 | ||
5c8c7dd3 | 27800 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27801 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27802 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27803 | wxDouble arg2 ; | |
27804 | wxDouble arg3 ; | |
27805 | wxDouble arg4 ; | |
27806 | wxDouble arg5 ; | |
70d7cb34 RD |
27807 | void *argp1 = 0 ; |
27808 | int res1 = 0 ; | |
5c8c7dd3 RD |
27809 | double val2 ; |
27810 | int ecode2 = 0 ; | |
27811 | double val3 ; | |
27812 | int ecode3 = 0 ; | |
27813 | double val4 ; | |
27814 | int ecode4 = 0 ; | |
27815 | double val5 ; | |
27816 | int ecode5 = 0 ; | |
27817 | PyObject * obj0 = 0 ; | |
27818 | PyObject * obj1 = 0 ; | |
27819 | PyObject * obj2 = 0 ; | |
27820 | PyObject * obj3 = 0 ; | |
27821 | PyObject * obj4 = 0 ; | |
27822 | char * kwnames[] = { | |
27823 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27824 | }; | |
70d7cb34 | 27825 | |
5c8c7dd3 RD |
27826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27828 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27830 | } |
5c8c7dd3 RD |
27831 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27832 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27833 | if (!SWIG_IsOK(ecode2)) { | |
27834 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27835 | } | |
27836 | arg2 = static_cast< wxDouble >(val2); | |
27837 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27838 | if (!SWIG_IsOK(ecode3)) { | |
27839 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27840 | } | |
27841 | arg3 = static_cast< wxDouble >(val3); | |
27842 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27843 | if (!SWIG_IsOK(ecode4)) { | |
27844 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27845 | } | |
27846 | arg4 = static_cast< wxDouble >(val4); | |
27847 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27848 | if (!SWIG_IsOK(ecode5)) { | |
27849 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27850 | } | |
27851 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27852 | { |
5c8c7dd3 | 27853 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27854 | if (PyErr_Occurred()) SWIG_fail; |
27855 | } | |
27856 | resultobj = SWIG_Py_Void(); | |
27857 | return resultobj; | |
27858 | fail: | |
27859 | return NULL; | |
27860 | } | |
27861 | ||
27862 | ||
5c8c7dd3 | 27863 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27864 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27865 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27866 | wxDouble arg2 ; | |
27867 | wxDouble arg3 ; | |
27868 | wxDouble arg4 ; | |
27869 | wxDouble arg5 ; | |
27870 | wxDouble arg6 ; | |
70d7cb34 RD |
27871 | void *argp1 = 0 ; |
27872 | int res1 = 0 ; | |
5c8c7dd3 RD |
27873 | double val2 ; |
27874 | int ecode2 = 0 ; | |
27875 | double val3 ; | |
27876 | int ecode3 = 0 ; | |
27877 | double val4 ; | |
27878 | int ecode4 = 0 ; | |
27879 | double val5 ; | |
27880 | int ecode5 = 0 ; | |
27881 | double val6 ; | |
27882 | int ecode6 = 0 ; | |
70d7cb34 RD |
27883 | PyObject * obj0 = 0 ; |
27884 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27885 | PyObject * obj2 = 0 ; |
27886 | PyObject * obj3 = 0 ; | |
27887 | PyObject * obj4 = 0 ; | |
27888 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27889 | char * kwnames[] = { |
5c8c7dd3 | 27890 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
27891 | }; |
27892 | ||
5c8c7dd3 RD |
27893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27895 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27897 | } |
5c8c7dd3 RD |
27898 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27899 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27900 | if (!SWIG_IsOK(ecode2)) { | |
27901 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27902 | } | |
27903 | arg2 = static_cast< wxDouble >(val2); | |
27904 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27905 | if (!SWIG_IsOK(ecode3)) { | |
27906 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27907 | } | |
27908 | arg3 = static_cast< wxDouble >(val3); | |
27909 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27910 | if (!SWIG_IsOK(ecode4)) { | |
27911 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27912 | } | |
27913 | arg4 = static_cast< wxDouble >(val4); | |
27914 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27915 | if (!SWIG_IsOK(ecode5)) { | |
27916 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27917 | } | |
27918 | arg5 = static_cast< wxDouble >(val5); | |
27919 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27920 | if (!SWIG_IsOK(ecode6)) { | |
27921 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27922 | } | |
27923 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27924 | { |
5c8c7dd3 | 27925 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27926 | if (PyErr_Occurred()) SWIG_fail; |
27927 | } | |
5c8c7dd3 | 27928 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27929 | return resultobj; |
27930 | fail: | |
27931 | return NULL; | |
27932 | } | |
27933 | ||
27934 | ||
5c8c7dd3 | 27935 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27936 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27937 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27938 | void *result = 0 ; | |
70d7cb34 RD |
27939 | void *argp1 = 0 ; |
27940 | int res1 = 0 ; | |
27941 | PyObject *swig_obj[1] ; | |
27942 | ||
27943 | if (!args) SWIG_fail; | |
27944 | swig_obj[0] = args; | |
5c8c7dd3 | 27945 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 27946 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27948 | } |
5c8c7dd3 | 27949 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27950 | { |
5c8c7dd3 | 27951 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
27952 | if (PyErr_Occurred()) SWIG_fail; |
27953 | } | |
5c8c7dd3 | 27954 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
27955 | return resultobj; |
27956 | fail: | |
27957 | return NULL; | |
27958 | } | |
27959 | ||
27960 | ||
5c8c7dd3 | 27961 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27962 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27963 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27964 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
27965 | void *argp1 = 0 ; |
27966 | int res1 = 0 ; | |
5c8c7dd3 | 27967 | int res2 ; |
70d7cb34 RD |
27968 | PyObject * obj0 = 0 ; |
27969 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27970 | char * kwnames[] = { |
5c8c7dd3 | 27971 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
27972 | }; |
27973 | ||
5c8c7dd3 RD |
27974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
27975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27976 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 27977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
5c8c7dd3 RD |
27978 | } |
27979 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27980 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
27981 | if (!SWIG_IsOK(res2)) { | |
27982 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 27983 | } |
70d7cb34 | 27984 | { |
8f514ab4 | 27985 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
27986 | if (PyErr_Occurred()) SWIG_fail; |
27987 | } | |
27988 | resultobj = SWIG_Py_Void(); | |
27989 | return resultobj; | |
27990 | fail: | |
27991 | return NULL; | |
27992 | } | |
27993 | ||
27994 | ||
5c8c7dd3 | 27995 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27996 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27997 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27998 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
27999 | void *argp1 = 0 ; |
28000 | int res1 = 0 ; | |
5c8c7dd3 RD |
28001 | void *argp2 = 0 ; |
28002 | int res2 = 0 ; | |
70d7cb34 RD |
28003 | PyObject * obj0 = 0 ; |
28004 | PyObject * obj1 = 0 ; | |
70d7cb34 | 28005 | char * kwnames[] = { |
5c8c7dd3 | 28006 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
28007 | }; |
28008 | ||
5c8c7dd3 RD |
28009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
28010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28011 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 28012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 28013 | } |
5c8c7dd3 RD |
28014 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28015 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28016 | if (!SWIG_IsOK(res2)) { | |
28017 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28018 | } | |
28019 | if (!argp2) { | |
28020 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28021 | } | |
28022 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 28023 | { |
5c8c7dd3 | 28024 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
28025 | if (PyErr_Occurred()) SWIG_fail; |
28026 | } | |
28027 | resultobj = SWIG_Py_Void(); | |
28028 | return resultobj; | |
28029 | fail: | |
28030 | return NULL; | |
28031 | } | |
28032 | ||
28033 | ||
5c8c7dd3 | 28034 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 28035 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28036 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28037 | wxRect2DDouble result; | |
70d7cb34 RD |
28038 | void *argp1 = 0 ; |
28039 | int res1 = 0 ; | |
5c8c7dd3 | 28040 | PyObject *swig_obj[1] ; |
70d7cb34 | 28041 | |
5c8c7dd3 RD |
28042 | if (!args) SWIG_fail; |
28043 | swig_obj[0] = args; | |
28044 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28045 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28047 | } |
5c8c7dd3 | 28048 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 28049 | { |
8f514ab4 | 28050 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
28051 | if (PyErr_Occurred()) SWIG_fail; |
28052 | } | |
5c8c7dd3 | 28053 | resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
28054 | return resultobj; |
28055 | fail: | |
28056 | return NULL; | |
28057 | } | |
28058 | ||
28059 | ||
5c8c7dd3 | 28060 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 28061 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28062 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28063 | wxDouble arg2 ; | |
28064 | wxDouble arg3 ; | |
8f514ab4 | 28065 | int arg4 = (int) wxODDEVEN_RULE ; |
5c8c7dd3 | 28066 | bool result; |
70d7cb34 RD |
28067 | void *argp1 = 0 ; |
28068 | int res1 = 0 ; | |
5c8c7dd3 RD |
28069 | double val2 ; |
28070 | int ecode2 = 0 ; | |
28071 | double val3 ; | |
28072 | int ecode3 = 0 ; | |
28073 | int val4 ; | |
28074 | int ecode4 = 0 ; | |
70d7cb34 | 28075 | |
5c8c7dd3 RD |
28076 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
28077 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28078 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28080 | } |
5c8c7dd3 RD |
28081 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28082 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
28083 | if (!SWIG_IsOK(ecode2)) { | |
28084 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28085 | } | |
28086 | arg2 = static_cast< wxDouble >(val2); | |
28087 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
28088 | if (!SWIG_IsOK(ecode3)) { | |
28089 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28090 | } | |
28091 | arg3 = static_cast< wxDouble >(val3); | |
28092 | if (swig_obj[3]) { | |
28093 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
28094 | if (!SWIG_IsOK(ecode4)) { | |
28095 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
28096 | } | |
28097 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
28098 | } |
28099 | { | |
8f514ab4 | 28100 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
28101 | if (PyErr_Occurred()) SWIG_fail; |
28102 | } | |
5c8c7dd3 RD |
28103 | { |
28104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
28105 | } |
28106 | return resultobj; | |
28107 | fail: | |
28108 | return NULL; | |
28109 | } | |
28110 | ||
28111 | ||
5c8c7dd3 | 28112 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 28113 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28114 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28115 | wxPoint2DDouble *arg2 = 0 ; | |
8f514ab4 | 28116 | int arg3 = (int) wxODDEVEN_RULE ; |
5c8c7dd3 | 28117 | bool result; |
70d7cb34 RD |
28118 | void *argp1 = 0 ; |
28119 | int res1 = 0 ; | |
5c8c7dd3 | 28120 | void *argp2 = 0 ; |
70d7cb34 | 28121 | int res2 = 0 ; |
5c8c7dd3 RD |
28122 | int val3 ; |
28123 | int ecode3 = 0 ; | |
70d7cb34 | 28124 | |
5c8c7dd3 RD |
28125 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
28126 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28127 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28129 | } |
5c8c7dd3 RD |
28130 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28131 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0); | |
28132 | if (!SWIG_IsOK(res2)) { | |
28133 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
70d7cb34 | 28134 | } |
5c8c7dd3 RD |
28135 | if (!argp2) { |
28136 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
28137 | } | |
28138 | arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2); | |
28139 | if (swig_obj[2]) { | |
28140 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
28141 | if (!SWIG_IsOK(ecode3)) { | |
28142 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
28143 | } | |
28144 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
28145 | } |
28146 | { | |
8f514ab4 | 28147 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3); |
70d7cb34 RD |
28148 | if (PyErr_Occurred()) SWIG_fail; |
28149 | } | |
5c8c7dd3 RD |
28150 | { |
28151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
28152 | } |
28153 | return resultobj; | |
28154 | fail: | |
28155 | return NULL; | |
28156 | } | |
28157 | ||
28158 | ||
5c8c7dd3 RD |
28159 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
28160 | int argc; | |
28161 | PyObject *argv[5]; | |
70d7cb34 | 28162 | |
5c8c7dd3 RD |
28163 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
28164 | --argc; | |
28165 | if ((argc >= 2) && (argc <= 3)) { | |
28166 | int _v = 0; | |
28167 | { | |
28168 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0); | |
28169 | _v = SWIG_CheckState(res); | |
28170 | } | |
28171 | if (!_v) goto check_1; | |
28172 | if (argc > 2) { | |
28173 | { | |
28174 | { | |
28175 | int res = SWIG_AsVal_int(argv[2], NULL); | |
28176 | _v = SWIG_CheckState(res); | |
28177 | } | |
28178 | } | |
28179 | if (!_v) goto check_1; | |
28180 | } | |
28181 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 28182 | } |
5c8c7dd3 RD |
28183 | check_1: |
28184 | ||
28185 | if ((argc >= 3) && (argc <= 4)) { | |
28186 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 28187 | } |
5c8c7dd3 | 28188 | |
70d7cb34 | 28189 | fail: |
5c8c7dd3 | 28190 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
28191 | return NULL; |
28192 | } | |
28193 | ||
28194 | ||
5c8c7dd3 | 28195 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
28196 | PyObject *obj; |
28197 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 28198 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
28199 | return SWIG_Py_Void(); |
28200 | } | |
28201 | ||
8f514ab4 RD |
28202 | SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28203 | return SWIG_Python_InitShadowInstance(args); | |
28204 | } | |
28205 | ||
5c8c7dd3 RD |
28206 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
28207 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
28208 | return 1; | |
28209 | } | |
28210 | ||
28211 | ||
28212 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
28213 | PyObject *pyobj = 0; | |
28214 | ||
28215 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
28216 | return pyobj; | |
28217 | } | |
28218 | ||
28219 | ||
28220 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
28221 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
28222 | return 1; | |
28223 | } | |
28224 | ||
28225 | ||
28226 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
28227 | PyObject *pyobj = 0; | |
28228 | ||
28229 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
28230 | return pyobj; | |
28231 | } | |
28232 | ||
28233 | ||
28234 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
28235 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
28236 | return 1; | |
28237 | } | |
28238 | ||
28239 | ||
28240 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
28241 | PyObject *pyobj = 0; | |
28242 | ||
28243 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
28244 | return pyobj; | |
28245 | } | |
28246 | ||
28247 | ||
28248 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
28249 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
28250 | return 1; | |
28251 | } | |
28252 | ||
28253 | ||
28254 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
28255 | PyObject *pyobj = 0; | |
28256 | ||
28257 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
28258 | return pyobj; | |
28259 | } | |
28260 | ||
28261 | ||
28262 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
28263 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
28264 | return 1; | |
28265 | } | |
28266 | ||
28267 | ||
28268 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
28269 | PyObject *pyobj = 0; | |
28270 | ||
28271 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
28272 | return pyobj; | |
28273 | } | |
28274 | ||
28275 | ||
70d7cb34 RD |
28276 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28277 | PyObject *resultobj = 0; | |
28278 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28279 | void *argp1 = 0 ; | |
28280 | int res1 = 0 ; | |
28281 | PyObject *swig_obj[1] ; | |
28282 | ||
28283 | if (!args) SWIG_fail; | |
28284 | swig_obj[0] = args; | |
28285 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
28286 | if (!SWIG_IsOK(res1)) { | |
28287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28288 | } | |
28289 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28290 | { | |
28291 | delete arg1; | |
28292 | ||
28293 | if (PyErr_Occurred()) SWIG_fail; | |
28294 | } | |
28295 | resultobj = SWIG_Py_Void(); | |
28296 | return resultobj; | |
28297 | fail: | |
28298 | return NULL; | |
28299 | } | |
28300 | ||
28301 | ||
28302 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28303 | PyObject *resultobj = 0; | |
28304 | wxWindowDC *arg1 = 0 ; | |
28305 | wxGraphicsContext *result = 0 ; | |
28306 | void *argp1 = 0 ; | |
28307 | int res1 = 0 ; | |
28308 | ||
28309 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
28310 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
28311 | if (!SWIG_IsOK(res1)) { | |
28312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
28313 | } | |
28314 | if (!argp1) { | |
28315 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
28316 | } | |
28317 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
28318 | { | |
28319 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
28320 | if (PyErr_Occurred()) SWIG_fail; | |
28321 | } | |
28322 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28323 | return resultobj; | |
28324 | fail: | |
28325 | return NULL; | |
28326 | } | |
28327 | ||
28328 | ||
28329 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28330 | PyObject *resultobj = 0; | |
28331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28332 | wxGraphicsContext *result = 0 ; | |
28333 | void *argp1 = 0 ; | |
28334 | int res1 = 0 ; | |
28335 | ||
28336 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
28337 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28338 | if (!SWIG_IsOK(res1)) { | |
28339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
28340 | } | |
28341 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
28342 | { | |
28343 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
28344 | if (PyErr_Occurred()) SWIG_fail; | |
28345 | } | |
28346 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28347 | return resultobj; | |
28348 | fail: | |
28349 | return NULL; | |
28350 | } | |
28351 | ||
28352 | ||
28353 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
28354 | int argc; | |
28355 | PyObject *argv[2]; | |
28356 | ||
28357 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
28358 | --argc; | |
28359 | if (argc == 1) { | |
28360 | int _v = 0; | |
28361 | { | |
28362 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
28363 | _v = SWIG_CheckState(res); | |
28364 | } | |
28365 | if (!_v) goto check_1; | |
28366 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
28367 | } | |
28368 | check_1: | |
28369 | ||
28370 | if (argc == 1) { | |
28371 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
28372 | } | |
28373 | ||
28374 | fail: | |
28375 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
28376 | return NULL; | |
28377 | } | |
28378 | ||
28379 | ||
f89238b9 RD |
28380 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28381 | PyObject *resultobj = 0; | |
28382 | wxGraphicsContext *result = 0 ; | |
28383 | ||
28384 | if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail; | |
28385 | { | |
28386 | result = (wxGraphicsContext *)wxGraphicsContext::Create(); | |
28387 | if (PyErr_Occurred()) SWIG_fail; | |
28388 | } | |
28389 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28390 | return resultobj; | |
28391 | fail: | |
28392 | return NULL; | |
28393 | } | |
28394 | ||
28395 | ||
70d7cb34 RD |
28396 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28397 | PyObject *resultobj = 0; | |
28398 | void *arg1 = (void *) 0 ; | |
28399 | wxGraphicsContext *result = 0 ; | |
28400 | int res1 ; | |
28401 | PyObject * obj0 = 0 ; | |
28402 | char * kwnames[] = { | |
28403 | (char *) "context", NULL | |
28404 | }; | |
28405 | ||
28406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
28407 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28408 | if (!SWIG_IsOK(res1)) { | |
28409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
28410 | } | |
28411 | { | |
28412 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
28413 | if (PyErr_Occurred()) SWIG_fail; | |
28414 | } | |
28415 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28416 | return resultobj; | |
28417 | fail: | |
28418 | return NULL; | |
28419 | } | |
28420 | ||
28421 | ||
28422 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28423 | PyObject *resultobj = 0; | |
28424 | void *arg1 = (void *) 0 ; | |
28425 | wxGraphicsContext *result = 0 ; | |
28426 | int res1 ; | |
28427 | PyObject * obj0 = 0 ; | |
28428 | char * kwnames[] = { | |
28429 | (char *) "window", NULL | |
28430 | }; | |
28431 | ||
28432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
28433 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28434 | if (!SWIG_IsOK(res1)) { | |
28435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
28436 | } | |
28437 | { | |
28438 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
28439 | if (PyErr_Occurred()) SWIG_fail; | |
28440 | } | |
28441 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28442 | return resultobj; | |
28443 | fail: | |
28444 | return NULL; | |
28445 | } | |
28446 | ||
28447 | ||
28448 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28449 | PyObject *resultobj = 0; | |
28450 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28451 | wxGraphicsPath result; |
70d7cb34 RD |
28452 | void *argp1 = 0 ; |
28453 | int res1 = 0 ; | |
28454 | PyObject *swig_obj[1] ; | |
28455 | ||
28456 | if (!args) SWIG_fail; | |
28457 | swig_obj[0] = args; | |
28458 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28459 | if (!SWIG_IsOK(res1)) { | |
28460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28461 | } | |
28462 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28463 | { | |
5c8c7dd3 | 28464 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
28465 | if (PyErr_Occurred()) SWIG_fail; |
28466 | } | |
5c8c7dd3 | 28467 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28468 | return resultobj; |
28469 | fail: | |
28470 | return NULL; | |
28471 | } | |
28472 | ||
28473 | ||
70d7cb34 | 28474 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28475 | PyObject *resultobj = 0; |
70d7cb34 RD |
28476 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28477 | wxPen *arg2 = 0 ; | |
28478 | wxGraphicsPen result; | |
72ef6efb RD |
28479 | void *argp1 = 0 ; |
28480 | int res1 = 0 ; | |
70d7cb34 RD |
28481 | void *argp2 = 0 ; |
28482 | int res2 = 0 ; | |
72ef6efb RD |
28483 | PyObject * obj0 = 0 ; |
28484 | PyObject * obj1 = 0 ; | |
72ef6efb | 28485 | char * kwnames[] = { |
70d7cb34 | 28486 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
28487 | }; |
28488 | ||
70d7cb34 RD |
28489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
28490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28491 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28493 | } |
70d7cb34 RD |
28494 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28495 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
28496 | if (!SWIG_IsOK(res2)) { | |
28497 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28498 | } | |
28499 | if (!argp2) { | |
28500 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28501 | } | |
28502 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 28503 | { |
70d7cb34 | 28504 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
28505 | if (PyErr_Occurred()) SWIG_fail; |
28506 | } | |
70d7cb34 | 28507 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28508 | return resultobj; |
28509 | fail: | |
28510 | return NULL; | |
28511 | } | |
28512 | ||
28513 | ||
70d7cb34 | 28514 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28515 | PyObject *resultobj = 0; |
70d7cb34 RD |
28516 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28517 | wxBrush *arg2 = 0 ; | |
28518 | wxGraphicsBrush result; | |
72ef6efb RD |
28519 | void *argp1 = 0 ; |
28520 | int res1 = 0 ; | |
70d7cb34 RD |
28521 | void *argp2 = 0 ; |
28522 | int res2 = 0 ; | |
72ef6efb RD |
28523 | PyObject * obj0 = 0 ; |
28524 | PyObject * obj1 = 0 ; | |
72ef6efb | 28525 | char * kwnames[] = { |
70d7cb34 | 28526 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
28527 | }; |
28528 | ||
70d7cb34 RD |
28529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
28530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28531 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28533 | } |
70d7cb34 RD |
28534 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28535 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
28536 | if (!SWIG_IsOK(res2)) { | |
28537 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28538 | } | |
28539 | if (!argp2) { | |
28540 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28541 | } | |
28542 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 28543 | { |
70d7cb34 | 28544 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28545 | if (PyErr_Occurred()) SWIG_fail; |
28546 | } | |
70d7cb34 | 28547 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28548 | return resultobj; |
28549 | fail: | |
28550 | return NULL; | |
28551 | } | |
28552 | ||
28553 | ||
70d7cb34 | 28554 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28555 | PyObject *resultobj = 0; |
70d7cb34 | 28556 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28557 | wxDouble arg2 ; |
28558 | wxDouble arg3 ; | |
28559 | wxDouble arg4 ; | |
28560 | wxDouble arg5 ; | |
70d7cb34 RD |
28561 | wxColour *arg6 = 0 ; |
28562 | wxColour *arg7 = 0 ; | |
28563 | wxGraphicsBrush result; | |
72ef6efb RD |
28564 | void *argp1 = 0 ; |
28565 | int res1 = 0 ; | |
28566 | double val2 ; | |
28567 | int ecode2 = 0 ; | |
28568 | double val3 ; | |
28569 | int ecode3 = 0 ; | |
28570 | double val4 ; | |
28571 | int ecode4 = 0 ; | |
28572 | double val5 ; | |
28573 | int ecode5 = 0 ; | |
70d7cb34 RD |
28574 | wxColour temp6 ; |
28575 | wxColour temp7 ; | |
72ef6efb RD |
28576 | PyObject * obj0 = 0 ; |
28577 | PyObject * obj1 = 0 ; | |
28578 | PyObject * obj2 = 0 ; | |
28579 | PyObject * obj3 = 0 ; | |
28580 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
28581 | PyObject * obj5 = 0 ; |
28582 | PyObject * obj6 = 0 ; | |
72ef6efb | 28583 | char * kwnames[] = { |
70d7cb34 | 28584 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
28585 | }; |
28586 | ||
70d7cb34 RD |
28587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28589 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28591 | } |
70d7cb34 | 28592 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28593 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28594 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28595 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28596 | } |
28597 | arg2 = static_cast< wxDouble >(val2); | |
28598 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28599 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28600 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28601 | } |
28602 | arg3 = static_cast< wxDouble >(val3); | |
28603 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28604 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28605 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28606 | } |
28607 | arg4 = static_cast< wxDouble >(val4); | |
28608 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28609 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28610 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28611 | } |
28612 | arg5 = static_cast< wxDouble >(val5); | |
28613 | { | |
70d7cb34 RD |
28614 | arg6 = &temp6; |
28615 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 28616 | } |
70d7cb34 RD |
28617 | { |
28618 | arg7 = &temp7; | |
28619 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 28620 | } |
72ef6efb | 28621 | { |
70d7cb34 | 28622 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
28623 | if (PyErr_Occurred()) SWIG_fail; |
28624 | } | |
70d7cb34 | 28625 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28626 | return resultobj; |
28627 | fail: | |
28628 | return NULL; | |
28629 | } | |
28630 | ||
28631 | ||
70d7cb34 | 28632 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28633 | PyObject *resultobj = 0; |
70d7cb34 | 28634 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28635 | wxDouble arg2 ; |
28636 | wxDouble arg3 ; | |
28637 | wxDouble arg4 ; | |
28638 | wxDouble arg5 ; | |
28639 | wxDouble arg6 ; | |
70d7cb34 RD |
28640 | wxColour *arg7 = 0 ; |
28641 | wxColour *arg8 = 0 ; | |
28642 | wxGraphicsBrush result; | |
72ef6efb RD |
28643 | void *argp1 = 0 ; |
28644 | int res1 = 0 ; | |
28645 | double val2 ; | |
28646 | int ecode2 = 0 ; | |
28647 | double val3 ; | |
28648 | int ecode3 = 0 ; | |
28649 | double val4 ; | |
28650 | int ecode4 = 0 ; | |
28651 | double val5 ; | |
28652 | int ecode5 = 0 ; | |
28653 | double val6 ; | |
28654 | int ecode6 = 0 ; | |
70d7cb34 RD |
28655 | wxColour temp7 ; |
28656 | wxColour temp8 ; | |
72ef6efb RD |
28657 | PyObject * obj0 = 0 ; |
28658 | PyObject * obj1 = 0 ; | |
28659 | PyObject * obj2 = 0 ; | |
28660 | PyObject * obj3 = 0 ; | |
28661 | PyObject * obj4 = 0 ; | |
28662 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
28663 | PyObject * obj6 = 0 ; |
28664 | PyObject * obj7 = 0 ; | |
72ef6efb | 28665 | char * kwnames[] = { |
70d7cb34 | 28666 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
28667 | }; |
28668 | ||
70d7cb34 RD |
28669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
28670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28671 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28673 | } |
70d7cb34 | 28674 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28675 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28676 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28677 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28678 | } |
28679 | arg2 = static_cast< wxDouble >(val2); | |
28680 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28681 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28682 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28683 | } |
28684 | arg3 = static_cast< wxDouble >(val3); | |
28685 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28686 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28687 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28688 | } |
28689 | arg4 = static_cast< wxDouble >(val4); | |
28690 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28691 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28692 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28693 | } |
28694 | arg5 = static_cast< wxDouble >(val5); | |
28695 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28696 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 28697 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
28698 | } |
28699 | arg6 = static_cast< wxDouble >(val6); | |
28700 | { | |
70d7cb34 RD |
28701 | arg7 = &temp7; |
28702 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
28703 | } | |
28704 | { | |
28705 | arg8 = &temp8; | |
28706 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
28707 | } | |
28708 | { | |
28709 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
28710 | if (PyErr_Occurred()) SWIG_fail; |
28711 | } | |
70d7cb34 | 28712 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28713 | return resultobj; |
28714 | fail: | |
28715 | return NULL; | |
28716 | } | |
28717 | ||
28718 | ||
70d7cb34 | 28719 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28720 | PyObject *resultobj = 0; |
28721 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
28722 | wxFont *arg2 = 0 ; |
28723 | wxColour const &arg3_defvalue = *wxBLACK ; | |
28724 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
28725 | wxGraphicsFont result; | |
72ef6efb RD |
28726 | void *argp1 = 0 ; |
28727 | int res1 = 0 ; | |
70d7cb34 RD |
28728 | void *argp2 = 0 ; |
28729 | int res2 = 0 ; | |
28730 | wxColour temp3 ; | |
28731 | PyObject * obj0 = 0 ; | |
28732 | PyObject * obj1 = 0 ; | |
28733 | PyObject * obj2 = 0 ; | |
28734 | char * kwnames[] = { | |
28735 | (char *) "self",(char *) "font",(char *) "col", NULL | |
28736 | }; | |
72ef6efb | 28737 | |
70d7cb34 RD |
28738 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
28739 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28740 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28742 | } |
28743 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28744 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
28745 | if (!SWIG_IsOK(res2)) { | |
28746 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28747 | } |
70d7cb34 RD |
28748 | if (!argp2) { |
28749 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28750 | } |
70d7cb34 RD |
28751 | arg2 = reinterpret_cast< wxFont * >(argp2); |
28752 | if (obj2) { | |
28753 | { | |
28754 | arg3 = &temp3; | |
28755 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
28756 | } | |
72ef6efb | 28757 | } |
72ef6efb | 28758 | { |
70d7cb34 | 28759 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28760 | if (PyErr_Occurred()) SWIG_fail; |
28761 | } | |
70d7cb34 | 28762 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28763 | return resultobj; |
28764 | fail: | |
28765 | return NULL; | |
28766 | } | |
28767 | ||
28768 | ||
70d7cb34 | 28769 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 28770 | PyObject *resultobj = 0; |
70d7cb34 RD |
28771 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28772 | wxDouble arg2 = (wxDouble) 1.0 ; | |
28773 | wxDouble arg3 = (wxDouble) 0.0 ; | |
28774 | wxDouble arg4 = (wxDouble) 0.0 ; | |
28775 | wxDouble arg5 = (wxDouble) 1.0 ; | |
28776 | wxDouble arg6 = (wxDouble) 0.0 ; | |
28777 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 28778 | wxGraphicsMatrix result; |
0a27f394 RD |
28779 | void *argp1 = 0 ; |
28780 | int res1 = 0 ; | |
70d7cb34 RD |
28781 | double val2 ; |
28782 | int ecode2 = 0 ; | |
28783 | double val3 ; | |
28784 | int ecode3 = 0 ; | |
28785 | double val4 ; | |
28786 | int ecode4 = 0 ; | |
28787 | double val5 ; | |
28788 | int ecode5 = 0 ; | |
28789 | double val6 ; | |
28790 | int ecode6 = 0 ; | |
28791 | double val7 ; | |
28792 | int ecode7 = 0 ; | |
28793 | PyObject * obj0 = 0 ; | |
28794 | PyObject * obj1 = 0 ; | |
28795 | PyObject * obj2 = 0 ; | |
28796 | PyObject * obj3 = 0 ; | |
28797 | PyObject * obj4 = 0 ; | |
28798 | PyObject * obj5 = 0 ; | |
28799 | PyObject * obj6 = 0 ; | |
28800 | char * kwnames[] = { | |
28801 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
28802 | }; | |
0a27f394 | 28803 | |
70d7cb34 RD |
28804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 28806 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 28808 | } |
70d7cb34 RD |
28809 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28810 | if (obj1) { | |
28811 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28812 | if (!SWIG_IsOK(ecode2)) { | |
28813 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28814 | } | |
28815 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 28816 | } |
70d7cb34 RD |
28817 | if (obj2) { |
28818 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28819 | if (!SWIG_IsOK(ecode3)) { | |
28820 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28821 | } | |
28822 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 28823 | } |
70d7cb34 RD |
28824 | if (obj3) { |
28825 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28826 | if (!SWIG_IsOK(ecode4)) { | |
28827 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28828 | } | |
28829 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 28830 | } |
70d7cb34 RD |
28831 | if (obj4) { |
28832 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28833 | if (!SWIG_IsOK(ecode5)) { | |
28834 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28835 | } | |
28836 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 28837 | } |
70d7cb34 RD |
28838 | if (obj5) { |
28839 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28840 | if (!SWIG_IsOK(ecode6)) { | |
28841 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28842 | } | |
28843 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 28844 | } |
70d7cb34 RD |
28845 | if (obj6) { |
28846 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
28847 | if (!SWIG_IsOK(ecode7)) { | |
28848 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
28849 | } | |
28850 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 28851 | } |
72ef6efb | 28852 | { |
5c8c7dd3 | 28853 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
28854 | if (PyErr_Occurred()) SWIG_fail; |
28855 | } | |
5c8c7dd3 | 28856 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28857 | return resultobj; |
28858 | fail: | |
28859 | return NULL; | |
28860 | } | |
28861 | ||
28862 | ||
28863 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28864 | PyObject *resultobj = 0; | |
28865 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28866 | void *argp1 = 0 ; | |
28867 | int res1 = 0 ; | |
28868 | PyObject *swig_obj[1] ; | |
28869 | ||
28870 | if (!args) SWIG_fail; | |
28871 | swig_obj[0] = args; | |
28872 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28873 | if (!SWIG_IsOK(res1)) { | |
28874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28875 | } | |
28876 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28877 | { | |
72ef6efb | 28878 | (arg1)->PushState(); |
72ef6efb RD |
28879 | if (PyErr_Occurred()) SWIG_fail; |
28880 | } | |
28881 | resultobj = SWIG_Py_Void(); | |
28882 | return resultobj; | |
28883 | fail: | |
28884 | return NULL; | |
28885 | } | |
28886 | ||
28887 | ||
28888 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28889 | PyObject *resultobj = 0; | |
28890 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28891 | void *argp1 = 0 ; | |
28892 | int res1 = 0 ; | |
28893 | PyObject *swig_obj[1] ; | |
28894 | ||
28895 | if (!args) SWIG_fail; | |
28896 | swig_obj[0] = args; | |
28897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28898 | if (!SWIG_IsOK(res1)) { | |
28899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28900 | } | |
28901 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28902 | { | |
72ef6efb | 28903 | (arg1)->PopState(); |
72ef6efb RD |
28904 | if (PyErr_Occurred()) SWIG_fail; |
28905 | } | |
28906 | resultobj = SWIG_Py_Void(); | |
28907 | return resultobj; | |
28908 | fail: | |
28909 | return NULL; | |
28910 | } | |
28911 | ||
28912 | ||
0a27f394 | 28913 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28914 | PyObject *resultobj = 0; |
28915 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28916 | wxRegion *arg2 = 0 ; | |
28917 | void *argp1 = 0 ; | |
28918 | int res1 = 0 ; | |
28919 | void *argp2 = 0 ; | |
28920 | int res2 = 0 ; | |
28921 | PyObject * obj0 = 0 ; | |
28922 | PyObject * obj1 = 0 ; | |
28923 | char * kwnames[] = { | |
28924 | (char *) "self",(char *) "region", NULL | |
28925 | }; | |
28926 | ||
0a27f394 | 28927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
28929 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 28930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28931 | } |
28932 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28933 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
28934 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 28935 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28936 | } |
28937 | if (!argp2) { | |
0a27f394 | 28938 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28939 | } |
28940 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
28941 | { | |
72ef6efb | 28942 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
28943 | if (PyErr_Occurred()) SWIG_fail; |
28944 | } | |
28945 | resultobj = SWIG_Py_Void(); | |
28946 | return resultobj; | |
28947 | fail: | |
28948 | return NULL; | |
28949 | } | |
28950 | ||
28951 | ||
0a27f394 RD |
28952 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28953 | PyObject *resultobj = 0; | |
28954 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28955 | wxDouble arg2 ; | |
28956 | wxDouble arg3 ; | |
28957 | wxDouble arg4 ; | |
28958 | wxDouble arg5 ; | |
28959 | void *argp1 = 0 ; | |
28960 | int res1 = 0 ; | |
28961 | double val2 ; | |
28962 | int ecode2 = 0 ; | |
28963 | double val3 ; | |
28964 | int ecode3 = 0 ; | |
28965 | double val4 ; | |
28966 | int ecode4 = 0 ; | |
28967 | double val5 ; | |
28968 | int ecode5 = 0 ; | |
28969 | PyObject * obj0 = 0 ; | |
28970 | PyObject * obj1 = 0 ; | |
28971 | PyObject * obj2 = 0 ; | |
28972 | PyObject * obj3 = 0 ; | |
28973 | PyObject * obj4 = 0 ; | |
28974 | char * kwnames[] = { | |
28975 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
28976 | }; | |
28977 | ||
28978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28980 | if (!SWIG_IsOK(res1)) { | |
28981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28982 | } | |
28983 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28984 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28985 | if (!SWIG_IsOK(ecode2)) { | |
28986 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28987 | } | |
28988 | arg2 = static_cast< wxDouble >(val2); | |
28989 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28990 | if (!SWIG_IsOK(ecode3)) { | |
28991 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28992 | } | |
28993 | arg3 = static_cast< wxDouble >(val3); | |
28994 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28995 | if (!SWIG_IsOK(ecode4)) { | |
28996 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28997 | } | |
28998 | arg4 = static_cast< wxDouble >(val4); | |
28999 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29000 | if (!SWIG_IsOK(ecode5)) { | |
29001 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29002 | } | |
29003 | arg5 = static_cast< wxDouble >(val5); | |
29004 | { | |
29005 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
29006 | if (PyErr_Occurred()) SWIG_fail; | |
29007 | } | |
29008 | resultobj = SWIG_Py_Void(); | |
29009 | return resultobj; | |
29010 | fail: | |
29011 | return NULL; | |
29012 | } | |
29013 | ||
29014 | ||
29015 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29016 | PyObject *resultobj = 0; | |
29017 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29018 | void *argp1 = 0 ; | |
29019 | int res1 = 0 ; | |
29020 | PyObject *swig_obj[1] ; | |
29021 | ||
29022 | if (!args) SWIG_fail; | |
29023 | swig_obj[0] = args; | |
29024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29025 | if (!SWIG_IsOK(res1)) { | |
29026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29027 | } | |
29028 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29029 | { | |
29030 | (arg1)->ResetClip(); | |
29031 | if (PyErr_Occurred()) SWIG_fail; | |
29032 | } | |
29033 | resultobj = SWIG_Py_Void(); | |
29034 | return resultobj; | |
29035 | fail: | |
29036 | return NULL; | |
29037 | } | |
29038 | ||
29039 | ||
29040 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29041 | PyObject *resultobj = 0; | |
29042 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29043 | void *result = 0 ; | |
29044 | void *argp1 = 0 ; | |
29045 | int res1 = 0 ; | |
29046 | PyObject *swig_obj[1] ; | |
29047 | ||
29048 | if (!args) SWIG_fail; | |
29049 | swig_obj[0] = args; | |
29050 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29051 | if (!SWIG_IsOK(res1)) { | |
29052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29053 | } | |
29054 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29055 | { | |
29056 | result = (void *)(arg1)->GetNativeContext(); | |
29057 | if (PyErr_Occurred()) SWIG_fail; | |
29058 | } | |
29059 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
29060 | return resultobj; | |
29061 | fail: | |
29062 | return NULL; | |
29063 | } | |
29064 | ||
29065 | ||
72ef6efb RD |
29066 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29067 | PyObject *resultobj = 0; | |
29068 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29069 | wxDouble arg2 ; | |
29070 | wxDouble arg3 ; | |
29071 | void *argp1 = 0 ; | |
29072 | int res1 = 0 ; | |
29073 | double val2 ; | |
29074 | int ecode2 = 0 ; | |
29075 | double val3 ; | |
29076 | int ecode3 = 0 ; | |
29077 | PyObject * obj0 = 0 ; | |
29078 | PyObject * obj1 = 0 ; | |
29079 | PyObject * obj2 = 0 ; | |
29080 | char * kwnames[] = { | |
29081 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
29082 | }; | |
29083 | ||
29084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29086 | if (!SWIG_IsOK(res1)) { | |
29087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29088 | } | |
29089 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29090 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29091 | if (!SWIG_IsOK(ecode2)) { | |
29092 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29093 | } | |
29094 | arg2 = static_cast< wxDouble >(val2); | |
29095 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29096 | if (!SWIG_IsOK(ecode3)) { | |
29097 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29098 | } | |
29099 | arg3 = static_cast< wxDouble >(val3); | |
29100 | { | |
72ef6efb | 29101 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
29102 | if (PyErr_Occurred()) SWIG_fail; |
29103 | } | |
29104 | resultobj = SWIG_Py_Void(); | |
29105 | return resultobj; | |
29106 | fail: | |
29107 | return NULL; | |
29108 | } | |
29109 | ||
29110 | ||
29111 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29112 | PyObject *resultobj = 0; | |
29113 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29114 | wxDouble arg2 ; | |
29115 | wxDouble arg3 ; | |
29116 | void *argp1 = 0 ; | |
29117 | int res1 = 0 ; | |
29118 | double val2 ; | |
29119 | int ecode2 = 0 ; | |
29120 | double val3 ; | |
29121 | int ecode3 = 0 ; | |
29122 | PyObject * obj0 = 0 ; | |
29123 | PyObject * obj1 = 0 ; | |
29124 | PyObject * obj2 = 0 ; | |
29125 | char * kwnames[] = { | |
29126 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
29127 | }; | |
29128 | ||
29129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29131 | if (!SWIG_IsOK(res1)) { | |
29132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29133 | } | |
29134 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29135 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29136 | if (!SWIG_IsOK(ecode2)) { | |
29137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29138 | } | |
29139 | arg2 = static_cast< wxDouble >(val2); | |
29140 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29141 | if (!SWIG_IsOK(ecode3)) { | |
29142 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29143 | } | |
29144 | arg3 = static_cast< wxDouble >(val3); | |
29145 | { | |
72ef6efb | 29146 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
29147 | if (PyErr_Occurred()) SWIG_fail; |
29148 | } | |
29149 | resultobj = SWIG_Py_Void(); | |
29150 | return resultobj; | |
29151 | fail: | |
29152 | return NULL; | |
29153 | } | |
29154 | ||
29155 | ||
29156 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29157 | PyObject *resultobj = 0; | |
29158 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29159 | wxDouble arg2 ; | |
29160 | void *argp1 = 0 ; | |
29161 | int res1 = 0 ; | |
29162 | double val2 ; | |
29163 | int ecode2 = 0 ; | |
29164 | PyObject * obj0 = 0 ; | |
29165 | PyObject * obj1 = 0 ; | |
29166 | char * kwnames[] = { | |
29167 | (char *) "self",(char *) "angle", NULL | |
29168 | }; | |
29169 | ||
29170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
29171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29172 | if (!SWIG_IsOK(res1)) { | |
29173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29174 | } | |
29175 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29176 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29177 | if (!SWIG_IsOK(ecode2)) { | |
29178 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29179 | } | |
29180 | arg2 = static_cast< wxDouble >(val2); | |
29181 | { | |
72ef6efb | 29182 | (arg1)->Rotate(arg2); |
72ef6efb RD |
29183 | if (PyErr_Occurred()) SWIG_fail; |
29184 | } | |
29185 | resultobj = SWIG_Py_Void(); | |
29186 | return resultobj; | |
29187 | fail: | |
29188 | return NULL; | |
29189 | } | |
29190 | ||
29191 | ||
5c8c7dd3 RD |
29192 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29193 | PyObject *resultobj = 0; | |
29194 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29195 | wxGraphicsMatrix *arg2 = 0 ; | |
29196 | void *argp1 = 0 ; | |
29197 | int res1 = 0 ; | |
29198 | void *argp2 = 0 ; | |
29199 | int res2 = 0 ; | |
29200 | PyObject * obj0 = 0 ; | |
29201 | PyObject * obj1 = 0 ; | |
29202 | char * kwnames[] = { | |
29203 | (char *) "self",(char *) "matrix", NULL | |
29204 | }; | |
29205 | ||
29206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
29207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29208 | if (!SWIG_IsOK(res1)) { | |
29209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29210 | } | |
29211 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29212 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
29213 | if (!SWIG_IsOK(res2)) { | |
29214 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29215 | } | |
29216 | if (!argp2) { | |
29217 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29218 | } | |
29219 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
29220 | { | |
29221 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
29222 | if (PyErr_Occurred()) SWIG_fail; | |
29223 | } | |
29224 | resultobj = SWIG_Py_Void(); | |
29225 | return resultobj; | |
29226 | fail: | |
29227 | return NULL; | |
29228 | } | |
29229 | ||
29230 | ||
29231 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29232 | PyObject *resultobj = 0; | |
29233 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29234 | wxGraphicsMatrix *arg2 = 0 ; | |
29235 | void *argp1 = 0 ; | |
29236 | int res1 = 0 ; | |
29237 | void *argp2 = 0 ; | |
29238 | int res2 = 0 ; | |
29239 | PyObject * obj0 = 0 ; | |
29240 | PyObject * obj1 = 0 ; | |
29241 | char * kwnames[] = { | |
29242 | (char *) "self",(char *) "matrix", NULL | |
29243 | }; | |
29244 | ||
29245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
29246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29247 | if (!SWIG_IsOK(res1)) { | |
29248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29249 | } | |
29250 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29251 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
29252 | if (!SWIG_IsOK(res2)) { | |
29253 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29254 | } | |
29255 | if (!argp2) { | |
29256 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29257 | } | |
29258 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
29259 | { | |
29260 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
29261 | if (PyErr_Occurred()) SWIG_fail; | |
29262 | } | |
29263 | resultobj = SWIG_Py_Void(); | |
29264 | return resultobj; | |
29265 | fail: | |
29266 | return NULL; | |
29267 | } | |
29268 | ||
29269 | ||
29270 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29271 | PyObject *resultobj = 0; | |
29272 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29273 | wxGraphicsMatrix result; | |
29274 | void *argp1 = 0 ; | |
29275 | int res1 = 0 ; | |
29276 | PyObject *swig_obj[1] ; | |
29277 | ||
29278 | if (!args) SWIG_fail; | |
29279 | swig_obj[0] = args; | |
29280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29281 | if (!SWIG_IsOK(res1)) { | |
29282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
29283 | } | |
29284 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29285 | { | |
29286 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
29287 | if (PyErr_Occurred()) SWIG_fail; | |
29288 | } | |
29289 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
29290 | return resultobj; | |
29291 | fail: | |
29292 | return NULL; | |
29293 | } | |
29294 | ||
29295 | ||
70d7cb34 RD |
29296 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29297 | PyObject *resultobj = 0; | |
29298 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29299 | wxGraphicsPen *arg2 = 0 ; | |
29300 | void *argp1 = 0 ; | |
29301 | int res1 = 0 ; | |
29302 | void *argp2 = 0 ; | |
29303 | int res2 = 0 ; | |
29304 | ||
29305 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29307 | if (!SWIG_IsOK(res1)) { | |
29308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29309 | } | |
29310 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29311 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
29312 | if (!SWIG_IsOK(res2)) { | |
29313 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29314 | } | |
29315 | if (!argp2) { | |
29316 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29317 | } | |
29318 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
29319 | { | |
29320 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
29321 | if (PyErr_Occurred()) SWIG_fail; | |
29322 | } | |
29323 | resultobj = SWIG_Py_Void(); | |
29324 | return resultobj; | |
29325 | fail: | |
29326 | return NULL; | |
29327 | } | |
29328 | ||
29329 | ||
29330 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29331 | PyObject *resultobj = 0; |
29332 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29333 | wxPen *arg2 = 0 ; | |
29334 | void *argp1 = 0 ; | |
29335 | int res1 = 0 ; | |
29336 | void *argp2 = 0 ; | |
29337 | int res2 = 0 ; | |
72ef6efb | 29338 | |
70d7cb34 RD |
29339 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29341 | if (!SWIG_IsOK(res1)) { |
29342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29343 | } | |
29344 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29345 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
29346 | if (!SWIG_IsOK(res2)) { |
29347 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29348 | } | |
29349 | if (!argp2) { | |
29350 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29351 | } | |
29352 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
29353 | { | |
72ef6efb | 29354 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
29355 | if (PyErr_Occurred()) SWIG_fail; |
29356 | } | |
29357 | resultobj = SWIG_Py_Void(); | |
29358 | return resultobj; | |
29359 | fail: | |
29360 | return NULL; | |
29361 | } | |
29362 | ||
29363 | ||
70d7cb34 RD |
29364 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
29365 | int argc; | |
29366 | PyObject *argv[3]; | |
29367 | ||
29368 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
29369 | --argc; | |
29370 | if (argc == 2) { | |
29371 | int _v = 0; | |
29372 | { | |
29373 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
29374 | _v = SWIG_CheckState(res); | |
29375 | } | |
29376 | if (!_v) goto check_1; | |
29377 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
29378 | } | |
29379 | check_1: | |
29380 | ||
29381 | if (argc == 2) { | |
29382 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
29383 | } | |
29384 | ||
29385 | fail: | |
29386 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
29387 | return NULL; | |
29388 | } | |
29389 | ||
29390 | ||
29391 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29392 | PyObject *resultobj = 0; | |
29393 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29394 | wxGraphicsBrush *arg2 = 0 ; | |
29395 | void *argp1 = 0 ; | |
29396 | int res1 = 0 ; | |
29397 | void *argp2 = 0 ; | |
29398 | int res2 = 0 ; | |
29399 | ||
29400 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29402 | if (!SWIG_IsOK(res1)) { | |
29403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29404 | } | |
29405 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29406 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29407 | if (!SWIG_IsOK(res2)) { | |
29408 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29409 | } | |
29410 | if (!argp2) { | |
29411 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29412 | } | |
29413 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
29414 | { | |
29415 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
29416 | if (PyErr_Occurred()) SWIG_fail; | |
29417 | } | |
29418 | resultobj = SWIG_Py_Void(); | |
29419 | return resultobj; | |
29420 | fail: | |
29421 | return NULL; | |
29422 | } | |
29423 | ||
29424 | ||
29425 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29426 | PyObject *resultobj = 0; |
29427 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29428 | wxBrush *arg2 = 0 ; | |
29429 | void *argp1 = 0 ; | |
29430 | int res1 = 0 ; | |
29431 | void *argp2 = 0 ; | |
29432 | int res2 = 0 ; | |
72ef6efb | 29433 | |
70d7cb34 RD |
29434 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29436 | if (!SWIG_IsOK(res1)) { |
29437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29438 | } | |
29439 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29440 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
29441 | if (!SWIG_IsOK(res2)) { |
29442 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29443 | } | |
29444 | if (!argp2) { | |
29445 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29446 | } | |
29447 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
29448 | { | |
72ef6efb | 29449 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
29450 | if (PyErr_Occurred()) SWIG_fail; |
29451 | } | |
29452 | resultobj = SWIG_Py_Void(); | |
29453 | return resultobj; | |
29454 | fail: | |
29455 | return NULL; | |
29456 | } | |
29457 | ||
29458 | ||
70d7cb34 RD |
29459 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
29460 | int argc; | |
29461 | PyObject *argv[3]; | |
72ef6efb | 29462 | |
70d7cb34 RD |
29463 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
29464 | --argc; | |
29465 | if (argc == 2) { | |
29466 | int _v = 0; | |
29467 | { | |
29468 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
29469 | _v = SWIG_CheckState(res); | |
29470 | } | |
29471 | if (!_v) goto check_1; | |
29472 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 29473 | } |
70d7cb34 RD |
29474 | check_1: |
29475 | ||
29476 | if (argc == 2) { | |
29477 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 29478 | } |
70d7cb34 | 29479 | |
72ef6efb | 29480 | fail: |
70d7cb34 | 29481 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
29482 | return NULL; |
29483 | } | |
29484 | ||
29485 | ||
70d7cb34 | 29486 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29487 | PyObject *resultobj = 0; |
29488 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29489 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
29490 | void *argp1 = 0 ; |
29491 | int res1 = 0 ; | |
70d7cb34 RD |
29492 | void *argp2 = 0 ; |
29493 | int res2 = 0 ; | |
72ef6efb | 29494 | |
70d7cb34 RD |
29495 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29496 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29497 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29499 | } |
29500 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29501 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
29502 | if (!SWIG_IsOK(res2)) { | |
29503 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29504 | } |
70d7cb34 RD |
29505 | if (!argp2) { |
29506 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29507 | } |
70d7cb34 | 29508 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 29509 | { |
70d7cb34 | 29510 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
29511 | if (PyErr_Occurred()) SWIG_fail; |
29512 | } | |
29513 | resultobj = SWIG_Py_Void(); | |
29514 | return resultobj; | |
29515 | fail: | |
29516 | return NULL; | |
29517 | } | |
29518 | ||
29519 | ||
70d7cb34 | 29520 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29521 | PyObject *resultobj = 0; |
29522 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29523 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
29524 | wxColour const &arg3_defvalue = *wxBLACK ; |
29525 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
29526 | void *argp1 = 0 ; |
29527 | int res1 = 0 ; | |
29528 | void *argp2 = 0 ; | |
29529 | int res2 = 0 ; | |
70d7cb34 | 29530 | wxColour temp3 ; |
72ef6efb | 29531 | |
70d7cb34 RD |
29532 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
29533 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29534 | if (!SWIG_IsOK(res1)) { |
29535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29536 | } | |
29537 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29538 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
29539 | if (!SWIG_IsOK(res2)) { |
29540 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29541 | } | |
29542 | if (!argp2) { | |
29543 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29544 | } | |
29545 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
29546 | if (swig_obj[2]) { |
29547 | { | |
29548 | arg3 = &temp3; | |
29549 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
29550 | } | |
29551 | } | |
72ef6efb | 29552 | { |
70d7cb34 | 29553 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
29554 | if (PyErr_Occurred()) SWIG_fail; |
29555 | } | |
29556 | resultobj = SWIG_Py_Void(); | |
29557 | return resultobj; | |
29558 | fail: | |
29559 | return NULL; | |
29560 | } | |
29561 | ||
29562 | ||
70d7cb34 RD |
29563 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
29564 | int argc; | |
29565 | PyObject *argv[4]; | |
72ef6efb | 29566 | |
70d7cb34 RD |
29567 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
29568 | --argc; | |
29569 | if (argc == 2) { | |
29570 | int _v = 0; | |
29571 | { | |
29572 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
29573 | _v = SWIG_CheckState(res); | |
29574 | } | |
29575 | if (!_v) goto check_1; | |
29576 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 29577 | } |
70d7cb34 RD |
29578 | check_1: |
29579 | ||
29580 | if ((argc >= 2) && (argc <= 3)) { | |
29581 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 29582 | } |
70d7cb34 | 29583 | |
72ef6efb | 29584 | fail: |
70d7cb34 | 29585 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
29586 | return NULL; |
29587 | } | |
29588 | ||
29589 | ||
29590 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29591 | PyObject *resultobj = 0; | |
29592 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29593 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
29594 | void *argp1 = 0 ; |
29595 | int res1 = 0 ; | |
29596 | void *argp2 = 0 ; | |
29597 | int res2 = 0 ; | |
29598 | PyObject * obj0 = 0 ; | |
29599 | PyObject * obj1 = 0 ; | |
29600 | char * kwnames[] = { | |
29601 | (char *) "self",(char *) "path", NULL | |
29602 | }; | |
29603 | ||
29604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
29605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29606 | if (!SWIG_IsOK(res1)) { | |
29607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29608 | } | |
29609 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29610 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29611 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29612 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29613 | } | |
29614 | if (!argp2) { | |
29615 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29616 | } |
29617 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29618 | { | |
5c8c7dd3 | 29619 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
29620 | if (PyErr_Occurred()) SWIG_fail; |
29621 | } | |
29622 | resultobj = SWIG_Py_Void(); | |
29623 | return resultobj; | |
29624 | fail: | |
29625 | return NULL; | |
29626 | } | |
29627 | ||
29628 | ||
29629 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29630 | PyObject *resultobj = 0; | |
29631 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29632 | wxGraphicsPath *arg2 = 0 ; |
8f514ab4 | 29633 | int arg3 = (int) wxODDEVEN_RULE ; |
72ef6efb RD |
29634 | void *argp1 = 0 ; |
29635 | int res1 = 0 ; | |
29636 | void *argp2 = 0 ; | |
29637 | int res2 = 0 ; | |
29638 | int val3 ; | |
29639 | int ecode3 = 0 ; | |
29640 | PyObject * obj0 = 0 ; | |
29641 | PyObject * obj1 = 0 ; | |
29642 | PyObject * obj2 = 0 ; | |
29643 | char * kwnames[] = { | |
29644 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29645 | }; | |
29646 | ||
29647 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29648 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29649 | if (!SWIG_IsOK(res1)) { | |
29650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29651 | } | |
29652 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29653 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29654 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29655 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29656 | } | |
29657 | if (!argp2) { | |
29658 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29659 | } |
29660 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29661 | if (obj2) { | |
29662 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29663 | if (!SWIG_IsOK(ecode3)) { | |
29664 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
29665 | } | |
29666 | arg3 = static_cast< int >(val3); | |
29667 | } | |
29668 | { | |
5c8c7dd3 | 29669 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29670 | if (PyErr_Occurred()) SWIG_fail; |
29671 | } | |
29672 | resultobj = SWIG_Py_Void(); | |
29673 | return resultobj; | |
29674 | fail: | |
29675 | return NULL; | |
29676 | } | |
29677 | ||
29678 | ||
29679 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29680 | PyObject *resultobj = 0; | |
29681 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29682 | wxGraphicsPath *arg2 = 0 ; |
8f514ab4 | 29683 | int arg3 = (int) wxODDEVEN_RULE ; |
72ef6efb RD |
29684 | void *argp1 = 0 ; |
29685 | int res1 = 0 ; | |
29686 | void *argp2 = 0 ; | |
29687 | int res2 = 0 ; | |
29688 | int val3 ; | |
29689 | int ecode3 = 0 ; | |
29690 | PyObject * obj0 = 0 ; | |
29691 | PyObject * obj1 = 0 ; | |
29692 | PyObject * obj2 = 0 ; | |
29693 | char * kwnames[] = { | |
29694 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29695 | }; | |
29696 | ||
29697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29699 | if (!SWIG_IsOK(res1)) { | |
29700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29701 | } | |
29702 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29703 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29704 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29705 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29706 | } | |
29707 | if (!argp2) { | |
29708 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29709 | } |
29710 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29711 | if (obj2) { | |
29712 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29713 | if (!SWIG_IsOK(ecode3)) { | |
29714 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
29715 | } | |
29716 | arg3 = static_cast< int >(val3); | |
29717 | } | |
29718 | { | |
5c8c7dd3 | 29719 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29720 | if (PyErr_Occurred()) SWIG_fail; |
29721 | } | |
29722 | resultobj = SWIG_Py_Void(); | |
29723 | return resultobj; | |
29724 | fail: | |
29725 | return NULL; | |
29726 | } | |
29727 | ||
29728 | ||
b39fe951 | 29729 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29730 | PyObject *resultobj = 0; |
29731 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29732 | wxString *arg2 = 0 ; | |
29733 | wxDouble arg3 ; | |
29734 | wxDouble arg4 ; | |
f89238b9 RD |
29735 | wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ; |
29736 | wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ; | |
72ef6efb RD |
29737 | void *argp1 = 0 ; |
29738 | int res1 = 0 ; | |
29739 | bool temp2 = false ; | |
29740 | double val3 ; | |
29741 | int ecode3 = 0 ; | |
29742 | double val4 ; | |
29743 | int ecode4 = 0 ; | |
f89238b9 RD |
29744 | void *argp5 = 0 ; |
29745 | int res5 = 0 ; | |
b39fe951 RD |
29746 | PyObject * obj0 = 0 ; |
29747 | PyObject * obj1 = 0 ; | |
29748 | PyObject * obj2 = 0 ; | |
29749 | PyObject * obj3 = 0 ; | |
f89238b9 | 29750 | PyObject * obj4 = 0 ; |
b39fe951 | 29751 | char * kwnames[] = { |
f89238b9 | 29752 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL |
b39fe951 | 29753 | }; |
72ef6efb | 29754 | |
f89238b9 | 29755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
b39fe951 | 29756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb RD |
29757 | if (!SWIG_IsOK(res1)) { |
29758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29759 | } | |
29760 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29761 | { | |
b39fe951 | 29762 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29763 | if (arg2 == NULL) SWIG_fail; |
29764 | temp2 = true; | |
29765 | } | |
b39fe951 | 29766 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
29767 | if (!SWIG_IsOK(ecode3)) { |
29768 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29769 | } | |
29770 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29771 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
29772 | if (!SWIG_IsOK(ecode4)) { |
29773 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29774 | } | |
29775 | arg4 = static_cast< wxDouble >(val4); | |
f89238b9 RD |
29776 | if (obj4) { |
29777 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29778 | if (!SWIG_IsOK(res5)) { | |
29779 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29780 | } | |
29781 | if (!argp5) { | |
29782 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29783 | } | |
29784 | arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5); | |
29785 | } | |
72ef6efb | 29786 | { |
f89238b9 | 29787 | wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5); |
72ef6efb RD |
29788 | if (PyErr_Occurred()) SWIG_fail; |
29789 | } | |
29790 | resultobj = SWIG_Py_Void(); | |
29791 | { | |
29792 | if (temp2) | |
29793 | delete arg2; | |
29794 | } | |
29795 | return resultobj; | |
29796 | fail: | |
29797 | { | |
29798 | if (temp2) | |
29799 | delete arg2; | |
29800 | } | |
29801 | return NULL; | |
29802 | } | |
29803 | ||
29804 | ||
b39fe951 | 29805 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29806 | PyObject *resultobj = 0; |
29807 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29808 | wxString *arg2 = 0 ; | |
29809 | wxDouble arg3 ; | |
29810 | wxDouble arg4 ; | |
29811 | wxDouble arg5 ; | |
f89238b9 RD |
29812 | wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ; |
29813 | wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ; | |
72ef6efb RD |
29814 | void *argp1 = 0 ; |
29815 | int res1 = 0 ; | |
29816 | bool temp2 = false ; | |
29817 | double val3 ; | |
29818 | int ecode3 = 0 ; | |
29819 | double val4 ; | |
29820 | int ecode4 = 0 ; | |
29821 | double val5 ; | |
29822 | int ecode5 = 0 ; | |
f89238b9 RD |
29823 | void *argp6 = 0 ; |
29824 | int res6 = 0 ; | |
b39fe951 RD |
29825 | PyObject * obj0 = 0 ; |
29826 | PyObject * obj1 = 0 ; | |
29827 | PyObject * obj2 = 0 ; | |
29828 | PyObject * obj3 = 0 ; | |
29829 | PyObject * obj4 = 0 ; | |
f89238b9 | 29830 | PyObject * obj5 = 0 ; |
b39fe951 | 29831 | char * kwnames[] = { |
f89238b9 | 29832 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL |
b39fe951 | 29833 | }; |
72ef6efb | 29834 | |
f89238b9 | 29835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
b39fe951 | 29836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb | 29837 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 29838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29839 | } |
29840 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29841 | { | |
b39fe951 | 29842 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29843 | if (arg2 == NULL) SWIG_fail; |
29844 | temp2 = true; | |
29845 | } | |
b39fe951 | 29846 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 29847 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 29848 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29849 | } |
29850 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29851 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 29852 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 29853 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29854 | } |
29855 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 29856 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 29857 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 29858 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29859 | } |
29860 | arg5 = static_cast< wxDouble >(val5); | |
f89238b9 RD |
29861 | if (obj5) { |
29862 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29863 | if (!SWIG_IsOK(res6)) { | |
29864 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29865 | } | |
29866 | if (!argp6) { | |
29867 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29868 | } | |
29869 | arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6); | |
29870 | } | |
72ef6efb | 29871 | { |
f89238b9 | 29872 | wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6); |
72ef6efb RD |
29873 | if (PyErr_Occurred()) SWIG_fail; |
29874 | } | |
29875 | resultobj = SWIG_Py_Void(); | |
29876 | { | |
29877 | if (temp2) | |
29878 | delete arg2; | |
29879 | } | |
29880 | return resultobj; | |
29881 | fail: | |
29882 | { | |
29883 | if (temp2) | |
29884 | delete arg2; | |
29885 | } | |
29886 | return NULL; | |
29887 | } | |
29888 | ||
29889 | ||
be68621e | 29890 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29891 | PyObject *resultobj = 0; |
29892 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29893 | wxString *arg2 = 0 ; | |
29894 | wxDouble *arg3 = (wxDouble *) 0 ; | |
29895 | wxDouble *arg4 = (wxDouble *) 0 ; | |
29896 | wxDouble *arg5 = (wxDouble *) 0 ; | |
29897 | wxDouble *arg6 = (wxDouble *) 0 ; | |
29898 | void *argp1 = 0 ; | |
29899 | int res1 = 0 ; | |
29900 | bool temp2 = false ; | |
29901 | wxDouble temp3 ; | |
29902 | int res3 = SWIG_TMPOBJ ; | |
29903 | wxDouble temp4 ; | |
29904 | int res4 = SWIG_TMPOBJ ; | |
29905 | wxDouble temp5 ; | |
29906 | int res5 = SWIG_TMPOBJ ; | |
29907 | wxDouble temp6 ; | |
29908 | int res6 = SWIG_TMPOBJ ; | |
29909 | PyObject * obj0 = 0 ; | |
29910 | PyObject * obj1 = 0 ; | |
29911 | char * kwnames[] = { | |
29912 | (char *) "self",(char *) "text", NULL | |
29913 | }; | |
29914 | ||
29915 | arg3 = &temp3; | |
29916 | arg4 = &temp4; | |
29917 | arg5 = &temp5; | |
29918 | arg6 = &temp6; | |
be68621e | 29919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29921 | if (!SWIG_IsOK(res1)) { | |
be68621e | 29922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29923 | } |
29924 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29925 | { | |
29926 | arg2 = wxString_in_helper(obj1); | |
29927 | if (arg2 == NULL) SWIG_fail; | |
29928 | temp2 = true; | |
29929 | } | |
29930 | { | |
72ef6efb | 29931 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29932 | if (PyErr_Occurred()) SWIG_fail; |
29933 | } | |
29934 | resultobj = SWIG_Py_Void(); | |
29935 | if (SWIG_IsTmpObj(res3)) { | |
29936 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
29937 | } else { | |
29938 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29939 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
29940 | } | |
29941 | if (SWIG_IsTmpObj(res4)) { | |
29942 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
29943 | } else { | |
29944 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29945 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
29946 | } | |
29947 | if (SWIG_IsTmpObj(res5)) { | |
29948 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
29949 | } else { | |
29950 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29951 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
29952 | } | |
29953 | if (SWIG_IsTmpObj(res6)) { | |
29954 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
29955 | } else { | |
29956 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29957 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
29958 | } | |
29959 | { | |
29960 | if (temp2) | |
29961 | delete arg2; | |
29962 | } | |
29963 | return resultobj; | |
29964 | fail: | |
29965 | { | |
29966 | if (temp2) | |
29967 | delete arg2; | |
29968 | } | |
29969 | return NULL; | |
29970 | } | |
29971 | ||
29972 | ||
be68621e RD |
29973 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29974 | PyObject *resultobj = 0; | |
29975 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29976 | wxString *arg2 = 0 ; | |
29977 | PyObject *result = 0 ; | |
29978 | void *argp1 = 0 ; | |
29979 | int res1 = 0 ; | |
29980 | bool temp2 = false ; | |
29981 | PyObject * obj0 = 0 ; | |
29982 | PyObject * obj1 = 0 ; | |
29983 | char * kwnames[] = { | |
29984 | (char *) "self",(char *) "text", NULL | |
29985 | }; | |
29986 | ||
29987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
29988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29989 | if (!SWIG_IsOK(res1)) { | |
29990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29991 | } | |
29992 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29993 | { | |
29994 | arg2 = wxString_in_helper(obj1); | |
29995 | if (arg2 == NULL) SWIG_fail; | |
29996 | temp2 = true; | |
29997 | } | |
29998 | { | |
29999 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
30000 | if (PyErr_Occurred()) SWIG_fail; | |
30001 | } | |
30002 | resultobj = result; | |
30003 | { | |
30004 | if (temp2) | |
30005 | delete arg2; | |
30006 | } | |
30007 | return resultobj; | |
30008 | fail: | |
30009 | { | |
30010 | if (temp2) | |
30011 | delete arg2; | |
30012 | } | |
30013 | return NULL; | |
30014 | } | |
30015 | ||
30016 | ||
72ef6efb RD |
30017 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30018 | PyObject *resultobj = 0; | |
30019 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30020 | wxString *arg2 = 0 ; | |
b39fe951 | 30021 | wxArrayDouble result; |
72ef6efb RD |
30022 | void *argp1 = 0 ; |
30023 | int res1 = 0 ; | |
30024 | bool temp2 = false ; | |
72ef6efb RD |
30025 | PyObject * obj0 = 0 ; |
30026 | PyObject * obj1 = 0 ; | |
72ef6efb | 30027 | char * kwnames[] = { |
b39fe951 | 30028 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
30029 | }; |
30030 | ||
b39fe951 | 30031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
30032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30033 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 30034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30035 | } |
30036 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30037 | { | |
30038 | arg2 = wxString_in_helper(obj1); | |
30039 | if (arg2 == NULL) SWIG_fail; | |
30040 | temp2 = true; | |
30041 | } | |
72ef6efb | 30042 | { |
b39fe951 | 30043 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
30044 | if (PyErr_Occurred()) SWIG_fail; |
30045 | } | |
b39fe951 RD |
30046 | { |
30047 | resultobj = wxArrayDouble2PyList_helper(result); | |
30048 | } | |
72ef6efb RD |
30049 | { |
30050 | if (temp2) | |
30051 | delete arg2; | |
30052 | } | |
30053 | return resultobj; | |
30054 | fail: | |
30055 | { | |
30056 | if (temp2) | |
30057 | delete arg2; | |
30058 | } | |
30059 | return NULL; | |
30060 | } | |
30061 | ||
30062 | ||
30063 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30064 | PyObject *resultobj = 0; | |
30065 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30066 | wxBitmap *arg2 = 0 ; | |
30067 | wxDouble arg3 ; | |
30068 | wxDouble arg4 ; | |
30069 | wxDouble arg5 ; | |
30070 | wxDouble arg6 ; | |
30071 | void *argp1 = 0 ; | |
30072 | int res1 = 0 ; | |
30073 | void *argp2 = 0 ; | |
30074 | int res2 = 0 ; | |
30075 | double val3 ; | |
30076 | int ecode3 = 0 ; | |
30077 | double val4 ; | |
30078 | int ecode4 = 0 ; | |
30079 | double val5 ; | |
30080 | int ecode5 = 0 ; | |
30081 | double val6 ; | |
30082 | int ecode6 = 0 ; | |
30083 | PyObject * obj0 = 0 ; | |
30084 | PyObject * obj1 = 0 ; | |
30085 | PyObject * obj2 = 0 ; | |
30086 | PyObject * obj3 = 0 ; | |
30087 | PyObject * obj4 = 0 ; | |
30088 | PyObject * obj5 = 0 ; | |
30089 | char * kwnames[] = { | |
30090 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30091 | }; | |
30092 | ||
30093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30095 | if (!SWIG_IsOK(res1)) { | |
30096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30097 | } | |
30098 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30099 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30100 | if (!SWIG_IsOK(res2)) { | |
30101 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30102 | } | |
30103 | if (!argp2) { | |
30104 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30105 | } | |
30106 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30107 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30108 | if (!SWIG_IsOK(ecode3)) { | |
30109 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30110 | } | |
30111 | arg3 = static_cast< wxDouble >(val3); | |
30112 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30113 | if (!SWIG_IsOK(ecode4)) { | |
30114 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30115 | } | |
30116 | arg4 = static_cast< wxDouble >(val4); | |
30117 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30118 | if (!SWIG_IsOK(ecode5)) { | |
30119 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30120 | } | |
30121 | arg5 = static_cast< wxDouble >(val5); | |
30122 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30123 | if (!SWIG_IsOK(ecode6)) { | |
30124 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30125 | } | |
30126 | arg6 = static_cast< wxDouble >(val6); | |
30127 | { | |
72ef6efb | 30128 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30129 | if (PyErr_Occurred()) SWIG_fail; |
30130 | } | |
30131 | resultobj = SWIG_Py_Void(); | |
30132 | return resultobj; | |
30133 | fail: | |
30134 | return NULL; | |
30135 | } | |
30136 | ||
30137 | ||
30138 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30139 | PyObject *resultobj = 0; | |
30140 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30141 | wxIcon *arg2 = 0 ; | |
30142 | wxDouble arg3 ; | |
30143 | wxDouble arg4 ; | |
30144 | wxDouble arg5 ; | |
30145 | wxDouble arg6 ; | |
30146 | void *argp1 = 0 ; | |
30147 | int res1 = 0 ; | |
30148 | void *argp2 = 0 ; | |
30149 | int res2 = 0 ; | |
30150 | double val3 ; | |
30151 | int ecode3 = 0 ; | |
30152 | double val4 ; | |
30153 | int ecode4 = 0 ; | |
30154 | double val5 ; | |
30155 | int ecode5 = 0 ; | |
70d7cb34 RD |
30156 | double val6 ; |
30157 | int ecode6 = 0 ; | |
30158 | PyObject * obj0 = 0 ; | |
30159 | PyObject * obj1 = 0 ; | |
30160 | PyObject * obj2 = 0 ; | |
30161 | PyObject * obj3 = 0 ; | |
30162 | PyObject * obj4 = 0 ; | |
30163 | PyObject * obj5 = 0 ; | |
30164 | char * kwnames[] = { | |
30165 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30166 | }; | |
30167 | ||
30168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30170 | if (!SWIG_IsOK(res1)) { | |
30171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30172 | } | |
30173 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30174 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
30175 | if (!SWIG_IsOK(res2)) { | |
30176 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30177 | } | |
30178 | if (!argp2) { | |
30179 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30180 | } | |
30181 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
30182 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30183 | if (!SWIG_IsOK(ecode3)) { | |
30184 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30185 | } | |
30186 | arg3 = static_cast< wxDouble >(val3); | |
30187 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30188 | if (!SWIG_IsOK(ecode4)) { | |
30189 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30190 | } | |
30191 | arg4 = static_cast< wxDouble >(val4); | |
30192 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30193 | if (!SWIG_IsOK(ecode5)) { | |
30194 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30195 | } | |
30196 | arg5 = static_cast< wxDouble >(val5); | |
30197 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30198 | if (!SWIG_IsOK(ecode6)) { | |
30199 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30200 | } | |
30201 | arg6 = static_cast< wxDouble >(val6); | |
30202 | { | |
30203 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
30204 | if (PyErr_Occurred()) SWIG_fail; | |
30205 | } | |
30206 | resultobj = SWIG_Py_Void(); | |
30207 | return resultobj; | |
30208 | fail: | |
30209 | return NULL; | |
30210 | } | |
30211 | ||
30212 | ||
30213 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30214 | PyObject *resultobj = 0; | |
30215 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30216 | wxDouble arg2 ; | |
30217 | wxDouble arg3 ; | |
30218 | wxDouble arg4 ; | |
30219 | wxDouble arg5 ; | |
30220 | void *argp1 = 0 ; | |
30221 | int res1 = 0 ; | |
30222 | double val2 ; | |
30223 | int ecode2 = 0 ; | |
30224 | double val3 ; | |
30225 | int ecode3 = 0 ; | |
30226 | double val4 ; | |
30227 | int ecode4 = 0 ; | |
30228 | double val5 ; | |
30229 | int ecode5 = 0 ; | |
30230 | PyObject * obj0 = 0 ; | |
30231 | PyObject * obj1 = 0 ; | |
30232 | PyObject * obj2 = 0 ; | |
30233 | PyObject * obj3 = 0 ; | |
30234 | PyObject * obj4 = 0 ; | |
30235 | char * kwnames[] = { | |
30236 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
30237 | }; | |
30238 | ||
30239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30241 | if (!SWIG_IsOK(res1)) { | |
30242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30243 | } | |
30244 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30245 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30246 | if (!SWIG_IsOK(ecode2)) { | |
30247 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30248 | } | |
30249 | arg2 = static_cast< wxDouble >(val2); | |
30250 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30251 | if (!SWIG_IsOK(ecode3)) { | |
30252 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30253 | } | |
30254 | arg3 = static_cast< wxDouble >(val3); | |
30255 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30256 | if (!SWIG_IsOK(ecode4)) { | |
30257 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30258 | } | |
30259 | arg4 = static_cast< wxDouble >(val4); | |
30260 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30261 | if (!SWIG_IsOK(ecode5)) { | |
30262 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30263 | } | |
30264 | arg5 = static_cast< wxDouble >(val5); | |
30265 | { | |
30266 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
30267 | if (PyErr_Occurred()) SWIG_fail; | |
30268 | } | |
30269 | resultobj = SWIG_Py_Void(); | |
30270 | return resultobj; | |
30271 | fail: | |
30272 | return NULL; | |
30273 | } | |
30274 | ||
30275 | ||
30276 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30277 | PyObject *resultobj = 0; | |
30278 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30279 | size_t arg2 ; | |
30280 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
30281 | void *argp1 = 0 ; | |
30282 | int res1 = 0 ; | |
30283 | PyObject * obj0 = 0 ; | |
30284 | PyObject * obj1 = 0 ; | |
30285 | char * kwnames[] = { | |
30286 | (char *) "self",(char *) "points", NULL | |
30287 | }; | |
30288 | ||
30289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
30290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30291 | if (!SWIG_IsOK(res1)) { | |
30292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30293 | } | |
30294 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30295 | { | |
30296 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
30297 | if (arg3 == NULL) SWIG_fail; | |
30298 | } | |
30299 | { | |
30300 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
30301 | if (PyErr_Occurred()) SWIG_fail; | |
30302 | } | |
30303 | resultobj = SWIG_Py_Void(); | |
30304 | { | |
30305 | if (arg3) delete [] arg3; | |
30306 | } | |
30307 | return resultobj; | |
30308 | fail: | |
30309 | { | |
30310 | if (arg3) delete [] arg3; | |
30311 | } | |
30312 | return NULL; | |
30313 | } | |
30314 | ||
30315 | ||
30316 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30317 | PyObject *resultobj = 0; | |
30318 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30319 | PyObject *arg2 = (PyObject *) 0 ; | |
30320 | PyObject *arg3 = (PyObject *) 0 ; | |
30321 | void *argp1 = 0 ; | |
30322 | int res1 = 0 ; | |
30323 | PyObject * obj0 = 0 ; | |
30324 | PyObject * obj1 = 0 ; | |
30325 | PyObject * obj2 = 0 ; | |
30326 | char * kwnames[] = { | |
30327 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
30328 | }; | |
30329 | ||
30330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30332 | if (!SWIG_IsOK(res1)) { | |
30333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30334 | } | |
30335 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30336 | arg2 = obj1; | |
30337 | arg3 = obj2; | |
30338 | { | |
30339 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
30340 | if (PyErr_Occurred()) SWIG_fail; | |
30341 | } | |
30342 | resultobj = SWIG_Py_Void(); | |
30343 | return resultobj; | |
30344 | fail: | |
30345 | return NULL; | |
30346 | } | |
30347 | ||
30348 | ||
30349 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30350 | PyObject *resultobj = 0; | |
30351 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30352 | size_t arg2 ; | |
30353 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
8f514ab4 | 30354 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
30355 | void *argp1 = 0 ; |
30356 | int res1 = 0 ; | |
30357 | int val4 ; | |
30358 | int ecode4 = 0 ; | |
30359 | PyObject * obj0 = 0 ; | |
30360 | PyObject * obj1 = 0 ; | |
30361 | PyObject * obj2 = 0 ; | |
30362 | char * kwnames[] = { | |
30363 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
30364 | }; | |
30365 | ||
30366 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30367 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30368 | if (!SWIG_IsOK(res1)) { | |
30369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30370 | } | |
30371 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30372 | { | |
30373 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
30374 | if (arg3 == NULL) SWIG_fail; | |
30375 | } | |
30376 | if (obj2) { | |
30377 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
30378 | if (!SWIG_IsOK(ecode4)) { | |
30379 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
30380 | } | |
30381 | arg4 = static_cast< int >(val4); | |
30382 | } | |
30383 | { | |
30384 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
30385 | if (PyErr_Occurred()) SWIG_fail; | |
30386 | } | |
30387 | resultobj = SWIG_Py_Void(); | |
30388 | { | |
30389 | if (arg3) delete [] arg3; | |
30390 | } | |
30391 | return resultobj; | |
30392 | fail: | |
30393 | { | |
30394 | if (arg3) delete [] arg3; | |
30395 | } | |
30396 | return NULL; | |
30397 | } | |
30398 | ||
30399 | ||
30400 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30401 | PyObject *resultobj = 0; | |
30402 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30403 | wxDouble arg2 ; | |
30404 | wxDouble arg3 ; | |
30405 | wxDouble arg4 ; | |
30406 | wxDouble arg5 ; | |
30407 | void *argp1 = 0 ; | |
30408 | int res1 = 0 ; | |
30409 | double val2 ; | |
30410 | int ecode2 = 0 ; | |
30411 | double val3 ; | |
30412 | int ecode3 = 0 ; | |
30413 | double val4 ; | |
30414 | int ecode4 = 0 ; | |
30415 | double val5 ; | |
30416 | int ecode5 = 0 ; | |
30417 | PyObject * obj0 = 0 ; | |
30418 | PyObject * obj1 = 0 ; | |
30419 | PyObject * obj2 = 0 ; | |
30420 | PyObject * obj3 = 0 ; | |
30421 | PyObject * obj4 = 0 ; | |
30422 | char * kwnames[] = { | |
30423 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30424 | }; | |
30425 | ||
30426 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30427 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30428 | if (!SWIG_IsOK(res1)) { | |
30429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30430 | } | |
30431 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30432 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30433 | if (!SWIG_IsOK(ecode2)) { | |
30434 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30435 | } | |
30436 | arg2 = static_cast< wxDouble >(val2); | |
30437 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30438 | if (!SWIG_IsOK(ecode3)) { | |
30439 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30440 | } | |
30441 | arg3 = static_cast< wxDouble >(val3); | |
30442 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30443 | if (!SWIG_IsOK(ecode4)) { | |
30444 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30445 | } | |
30446 | arg4 = static_cast< wxDouble >(val4); | |
30447 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30448 | if (!SWIG_IsOK(ecode5)) { | |
30449 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30450 | } | |
30451 | arg5 = static_cast< wxDouble >(val5); | |
30452 | { | |
30453 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
30454 | if (PyErr_Occurred()) SWIG_fail; | |
30455 | } | |
30456 | resultobj = SWIG_Py_Void(); | |
30457 | return resultobj; | |
30458 | fail: | |
30459 | return NULL; | |
30460 | } | |
30461 | ||
30462 | ||
30463 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30464 | PyObject *resultobj = 0; | |
30465 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30466 | wxDouble arg2 ; | |
30467 | wxDouble arg3 ; | |
30468 | wxDouble arg4 ; | |
30469 | wxDouble arg5 ; | |
30470 | void *argp1 = 0 ; | |
30471 | int res1 = 0 ; | |
30472 | double val2 ; | |
30473 | int ecode2 = 0 ; | |
30474 | double val3 ; | |
30475 | int ecode3 = 0 ; | |
30476 | double val4 ; | |
30477 | int ecode4 = 0 ; | |
30478 | double val5 ; | |
30479 | int ecode5 = 0 ; | |
72ef6efb RD |
30480 | PyObject * obj0 = 0 ; |
30481 | PyObject * obj1 = 0 ; | |
30482 | PyObject * obj2 = 0 ; | |
30483 | PyObject * obj3 = 0 ; | |
30484 | PyObject * obj4 = 0 ; | |
72ef6efb | 30485 | char * kwnames[] = { |
70d7cb34 | 30486 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
30487 | }; |
30488 | ||
70d7cb34 | 30489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
30490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30491 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30493 | } |
30494 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
30495 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30496 | if (!SWIG_IsOK(ecode2)) { | |
30497 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30498 | } | |
30499 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
30500 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
30501 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30502 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30503 | } |
30504 | arg3 = static_cast< wxDouble >(val3); | |
30505 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30506 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30507 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30508 | } |
30509 | arg4 = static_cast< wxDouble >(val4); | |
30510 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30511 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30512 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30513 | } |
30514 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 30515 | { |
70d7cb34 | 30516 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
30517 | if (PyErr_Occurred()) SWIG_fail; |
30518 | } | |
30519 | resultobj = SWIG_Py_Void(); | |
30520 | return resultobj; | |
30521 | fail: | |
30522 | return NULL; | |
30523 | } | |
30524 | ||
30525 | ||
70d7cb34 | 30526 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
30527 | PyObject *resultobj = 0; |
30528 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30529 | wxDouble arg2 ; | |
30530 | wxDouble arg3 ; | |
30531 | wxDouble arg4 ; | |
30532 | wxDouble arg5 ; | |
70d7cb34 | 30533 | wxDouble arg6 ; |
72ef6efb RD |
30534 | void *argp1 = 0 ; |
30535 | int res1 = 0 ; | |
30536 | double val2 ; | |
30537 | int ecode2 = 0 ; | |
30538 | double val3 ; | |
30539 | int ecode3 = 0 ; | |
30540 | double val4 ; | |
30541 | int ecode4 = 0 ; | |
30542 | double val5 ; | |
30543 | int ecode5 = 0 ; | |
70d7cb34 RD |
30544 | double val6 ; |
30545 | int ecode6 = 0 ; | |
72ef6efb RD |
30546 | PyObject * obj0 = 0 ; |
30547 | PyObject * obj1 = 0 ; | |
30548 | PyObject * obj2 = 0 ; | |
30549 | PyObject * obj3 = 0 ; | |
30550 | PyObject * obj4 = 0 ; | |
70d7cb34 | 30551 | PyObject * obj5 = 0 ; |
72ef6efb | 30552 | char * kwnames[] = { |
70d7cb34 | 30553 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
30554 | }; |
30555 | ||
70d7cb34 | 30556 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
30557 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30558 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30560 | } |
30561 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30562 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30563 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30564 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30565 | } |
30566 | arg2 = static_cast< wxDouble >(val2); | |
30567 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30568 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30569 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30570 | } |
30571 | arg3 = static_cast< wxDouble >(val3); | |
30572 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30573 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30574 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30575 | } |
30576 | arg4 = static_cast< wxDouble >(val4); | |
30577 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30578 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30579 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30580 | } |
30581 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
30582 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
30583 | if (!SWIG_IsOK(ecode6)) { | |
30584 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30585 | } | |
30586 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 30587 | { |
70d7cb34 | 30588 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30589 | if (PyErr_Occurred()) SWIG_fail; |
30590 | } | |
30591 | resultobj = SWIG_Py_Void(); | |
30592 | return resultobj; | |
30593 | fail: | |
30594 | return NULL; | |
30595 | } | |
30596 | ||
30597 | ||
70d7cb34 | 30598 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30599 | PyObject *resultobj = 0; |
30600 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 30601 | bool result; |
72ef6efb RD |
30602 | void *argp1 = 0 ; |
30603 | int res1 = 0 ; | |
70d7cb34 | 30604 | PyObject *swig_obj[1] ; |
72ef6efb | 30605 | |
70d7cb34 RD |
30606 | if (!args) SWIG_fail; |
30607 | swig_obj[0] = args; | |
30608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 30609 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
30611 | } |
30612 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 30613 | { |
70d7cb34 RD |
30614 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
30615 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 30616 | } |
72ef6efb | 30617 | { |
70d7cb34 RD |
30618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
30619 | } | |
30620 | return resultobj; | |
30621 | fail: | |
30622 | return NULL; | |
30623 | } | |
30624 | ||
30625 | ||
30626 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30627 | PyObject *obj; | |
30628 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30629 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
30630 | return SWIG_Py_Void(); | |
30631 | } | |
30632 | ||
30633 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30634 | PyObject *resultobj = 0; | |
30635 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 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_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
30643 | if (!SWIG_IsOK(res1)) { | |
30644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30645 | } | |
30646 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30647 | { | |
30648 | delete arg1; | |
30649 | ||
72ef6efb RD |
30650 | if (PyErr_Occurred()) SWIG_fail; |
30651 | } | |
30652 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
30653 | return resultobj; |
30654 | fail: | |
30655 | return NULL; | |
30656 | } | |
30657 | ||
30658 | ||
30659 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30660 | PyObject *resultobj = 0; | |
30661 | wxGraphicsRenderer *result = 0 ; | |
30662 | ||
30663 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 30664 | { |
70d7cb34 RD |
30665 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
30666 | if (PyErr_Occurred()) SWIG_fail; | |
30667 | } | |
30668 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30669 | return resultobj; | |
30670 | fail: | |
30671 | return NULL; | |
30672 | } | |
30673 | ||
30674 | ||
30675 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30676 | PyObject *resultobj = 0; | |
30677 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30678 | wxWindowDC *arg2 = 0 ; | |
30679 | wxGraphicsContext *result = 0 ; | |
30680 | void *argp1 = 0 ; | |
30681 | int res1 = 0 ; | |
30682 | void *argp2 = 0 ; | |
30683 | int res2 = 0 ; | |
30684 | ||
30685 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30686 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30687 | if (!SWIG_IsOK(res1)) { | |
30688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30689 | } | |
30690 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30691 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
30692 | if (!SWIG_IsOK(res2)) { | |
30693 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30694 | } | |
30695 | if (!argp2) { | |
30696 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30697 | } | |
30698 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30699 | { | |
30700 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
30701 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30702 | } |
70d7cb34 | 30703 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30704 | return resultobj; |
30705 | fail: | |
70d7cb34 RD |
30706 | return NULL; |
30707 | } | |
30708 | ||
30709 | ||
30710 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30711 | PyObject *resultobj = 0; | |
30712 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30713 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30714 | wxGraphicsContext *result = 0 ; | |
30715 | void *argp1 = 0 ; | |
30716 | int res1 = 0 ; | |
30717 | void *argp2 = 0 ; | |
30718 | int res2 = 0 ; | |
30719 | ||
30720 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30722 | if (!SWIG_IsOK(res1)) { | |
30723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30724 | } | |
30725 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30726 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30727 | if (!SWIG_IsOK(res2)) { | |
30728 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
30729 | } | |
30730 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 30731 | { |
70d7cb34 RD |
30732 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
30733 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30734 | } |
70d7cb34 RD |
30735 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
30736 | return resultobj; | |
30737 | fail: | |
72ef6efb RD |
30738 | return NULL; |
30739 | } | |
30740 | ||
30741 | ||
70d7cb34 RD |
30742 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
30743 | int argc; | |
30744 | PyObject *argv[3]; | |
30745 | ||
30746 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
30747 | --argc; | |
30748 | if (argc == 2) { | |
30749 | int _v = 0; | |
30750 | { | |
30751 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
30752 | _v = SWIG_CheckState(res); | |
30753 | } | |
30754 | if (!_v) goto check_1; | |
30755 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
30756 | } | |
30757 | check_1: | |
30758 | ||
30759 | if (argc == 2) { | |
30760 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
30761 | } | |
30762 | ||
30763 | fail: | |
30764 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
30765 | return NULL; | |
30766 | } | |
30767 | ||
30768 | ||
f89238b9 RD |
30769 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30770 | PyObject *resultobj = 0; | |
30771 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30772 | wxGraphicsContext *result = 0 ; | |
30773 | void *argp1 = 0 ; | |
30774 | int res1 = 0 ; | |
30775 | PyObject *swig_obj[1] ; | |
30776 | ||
30777 | if (!args) SWIG_fail; | |
30778 | swig_obj[0] = args; | |
30779 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30780 | if (!SWIG_IsOK(res1)) { | |
30781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30782 | } | |
30783 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30784 | { | |
30785 | result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext(); | |
30786 | if (PyErr_Occurred()) SWIG_fail; | |
30787 | } | |
30788 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30789 | return resultobj; | |
30790 | fail: | |
30791 | return NULL; | |
30792 | } | |
30793 | ||
30794 | ||
70d7cb34 | 30795 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30796 | PyObject *resultobj = 0; |
70d7cb34 RD |
30797 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30798 | void *arg2 = (void *) 0 ; | |
30799 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30800 | void *argp1 = 0 ; |
30801 | int res1 = 0 ; | |
70d7cb34 | 30802 | int res2 ; |
b39fe951 RD |
30803 | PyObject * obj0 = 0 ; |
30804 | PyObject * obj1 = 0 ; | |
b39fe951 | 30805 | char * kwnames[] = { |
70d7cb34 | 30806 | (char *) "self",(char *) "context", NULL |
b39fe951 | 30807 | }; |
72ef6efb | 30808 | |
70d7cb34 RD |
30809 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
30810 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30811 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30813 | } | |
30814 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30815 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30816 | if (!SWIG_IsOK(res2)) { | |
30817 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 30818 | } |
72ef6efb | 30819 | { |
70d7cb34 | 30820 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
30821 | if (PyErr_Occurred()) SWIG_fail; |
30822 | } | |
70d7cb34 | 30823 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30824 | return resultobj; |
30825 | fail: | |
30826 | return NULL; | |
30827 | } | |
30828 | ||
30829 | ||
70d7cb34 | 30830 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30831 | PyObject *resultobj = 0; |
70d7cb34 RD |
30832 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30833 | void *arg2 = (void *) 0 ; | |
30834 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30835 | void *argp1 = 0 ; |
30836 | int res1 = 0 ; | |
70d7cb34 | 30837 | int res2 ; |
72ef6efb RD |
30838 | PyObject * obj0 = 0 ; |
30839 | PyObject * obj1 = 0 ; | |
72ef6efb | 30840 | char * kwnames[] = { |
70d7cb34 | 30841 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
30842 | }; |
30843 | ||
70d7cb34 RD |
30844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail; |
30845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30846 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30848 | } |
70d7cb34 RD |
30849 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
30850 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30851 | if (!SWIG_IsOK(res2)) { | |
30852 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
30853 | } |
30854 | { | |
70d7cb34 | 30855 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
30856 | if (PyErr_Occurred()) SWIG_fail; |
30857 | } | |
70d7cb34 | 30858 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30859 | return resultobj; |
30860 | fail: | |
70d7cb34 RD |
30861 | return NULL; |
30862 | } | |
30863 | ||
30864 | ||
30865 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30866 | PyObject *resultobj = 0; | |
30867 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 30868 | wxGraphicsPath result; |
70d7cb34 RD |
30869 | void *argp1 = 0 ; |
30870 | int res1 = 0 ; | |
30871 | PyObject *swig_obj[1] ; | |
30872 | ||
30873 | if (!args) SWIG_fail; | |
30874 | swig_obj[0] = args; | |
30875 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30876 | if (!SWIG_IsOK(res1)) { | |
30877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30878 | } | |
30879 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 30880 | { |
5c8c7dd3 | 30881 | result = (arg1)->CreatePath(); |
70d7cb34 | 30882 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 30883 | } |
5c8c7dd3 | 30884 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
30885 | return resultobj; |
30886 | fail: | |
72ef6efb RD |
30887 | return NULL; |
30888 | } | |
30889 | ||
30890 | ||
70d7cb34 | 30891 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30892 | PyObject *resultobj = 0; |
70d7cb34 RD |
30893 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30894 | wxDouble arg2 = (wxDouble) 1.0 ; | |
30895 | wxDouble arg3 = (wxDouble) 0.0 ; | |
30896 | wxDouble arg4 = (wxDouble) 0.0 ; | |
30897 | wxDouble arg5 = (wxDouble) 1.0 ; | |
30898 | wxDouble arg6 = (wxDouble) 0.0 ; | |
30899 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 30900 | wxGraphicsMatrix result; |
72ef6efb RD |
30901 | void *argp1 = 0 ; |
30902 | int res1 = 0 ; | |
30903 | double val2 ; | |
30904 | int ecode2 = 0 ; | |
30905 | double val3 ; | |
30906 | int ecode3 = 0 ; | |
30907 | double val4 ; | |
30908 | int ecode4 = 0 ; | |
30909 | double val5 ; | |
30910 | int ecode5 = 0 ; | |
70d7cb34 RD |
30911 | double val6 ; |
30912 | int ecode6 = 0 ; | |
30913 | double val7 ; | |
30914 | int ecode7 = 0 ; | |
72ef6efb RD |
30915 | PyObject * obj0 = 0 ; |
30916 | PyObject * obj1 = 0 ; | |
30917 | PyObject * obj2 = 0 ; | |
30918 | PyObject * obj3 = 0 ; | |
30919 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30920 | PyObject * obj5 = 0 ; |
30921 | PyObject * obj6 = 0 ; | |
72ef6efb | 30922 | char * kwnames[] = { |
70d7cb34 | 30923 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
30924 | }; |
30925 | ||
70d7cb34 RD |
30926 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30927 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30928 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30930 | } | |
30931 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30932 | if (obj1) { | |
30933 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30934 | if (!SWIG_IsOK(ecode2)) { | |
30935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30936 | } | |
30937 | arg2 = static_cast< wxDouble >(val2); | |
30938 | } | |
30939 | if (obj2) { | |
30940 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30941 | if (!SWIG_IsOK(ecode3)) { | |
30942 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30943 | } | |
30944 | arg3 = static_cast< wxDouble >(val3); | |
30945 | } | |
30946 | if (obj3) { | |
30947 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30948 | if (!SWIG_IsOK(ecode4)) { | |
30949 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30950 | } | |
30951 | arg4 = static_cast< wxDouble >(val4); | |
30952 | } | |
30953 | if (obj4) { | |
30954 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30955 | if (!SWIG_IsOK(ecode5)) { | |
30956 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30957 | } | |
30958 | arg5 = static_cast< wxDouble >(val5); | |
30959 | } | |
30960 | if (obj5) { | |
30961 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30962 | if (!SWIG_IsOK(ecode6)) { | |
30963 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30964 | } | |
30965 | arg6 = static_cast< wxDouble >(val6); | |
30966 | } | |
30967 | if (obj6) { | |
30968 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
30969 | if (!SWIG_IsOK(ecode7)) { | |
30970 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
30971 | } | |
30972 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 30973 | } |
72ef6efb | 30974 | { |
5c8c7dd3 | 30975 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
30976 | if (PyErr_Occurred()) SWIG_fail; |
30977 | } | |
5c8c7dd3 | 30978 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30979 | return resultobj; |
30980 | fail: | |
30981 | return NULL; | |
30982 | } | |
30983 | ||
30984 | ||
70d7cb34 | 30985 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30986 | PyObject *resultobj = 0; |
70d7cb34 RD |
30987 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30988 | wxPen *arg2 = 0 ; | |
30989 | wxGraphicsPen result; | |
30990 | void *argp1 = 0 ; | |
30991 | int res1 = 0 ; | |
30992 | void *argp2 = 0 ; | |
30993 | int res2 = 0 ; | |
30994 | PyObject * obj0 = 0 ; | |
30995 | PyObject * obj1 = 0 ; | |
30996 | char * kwnames[] = { | |
30997 | (char *) "self",(char *) "pen", NULL | |
30998 | }; | |
30999 | ||
31000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
31001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31002 | if (!SWIG_IsOK(res1)) { | |
31003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31004 | } | |
31005 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31006 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
31007 | if (!SWIG_IsOK(res2)) { | |
31008 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
31009 | } | |
31010 | if (!argp2) { | |
31011 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
31012 | } | |
31013 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
31014 | { | |
31015 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
31016 | if (PyErr_Occurred()) SWIG_fail; | |
31017 | } | |
31018 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
31019 | return resultobj; | |
31020 | fail: | |
31021 | return NULL; | |
31022 | } | |
31023 | ||
31024 | ||
31025 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31026 | PyObject *resultobj = 0; | |
31027 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
31028 | wxBrush *arg2 = 0 ; | |
31029 | wxGraphicsBrush result; | |
31030 | void *argp1 = 0 ; | |
31031 | int res1 = 0 ; | |
31032 | void *argp2 = 0 ; | |
31033 | int res2 = 0 ; | |
31034 | PyObject * obj0 = 0 ; | |
31035 | PyObject * obj1 = 0 ; | |
31036 | char * kwnames[] = { | |
31037 | (char *) "self",(char *) "brush", NULL | |
31038 | }; | |
31039 | ||
31040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
31041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31042 | if (!SWIG_IsOK(res1)) { | |
31043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31044 | } | |
31045 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31046 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
31047 | if (!SWIG_IsOK(res2)) { | |
31048 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
31049 | } | |
31050 | if (!argp2) { | |
31051 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
31052 | } | |
31053 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
31054 | { | |
31055 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
31056 | if (PyErr_Occurred()) SWIG_fail; | |
31057 | } | |
31058 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
31059 | return resultobj; | |
31060 | fail: | |
31061 | return NULL; | |
31062 | } | |
31063 | ||
31064 | ||
31065 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31066 | PyObject *resultobj = 0; | |
31067 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
31068 | wxDouble arg2 ; |
31069 | wxDouble arg3 ; | |
31070 | wxDouble arg4 ; | |
31071 | wxDouble arg5 ; | |
70d7cb34 RD |
31072 | wxColour *arg6 = 0 ; |
31073 | wxColour *arg7 = 0 ; | |
31074 | wxGraphicsBrush result; | |
72ef6efb RD |
31075 | void *argp1 = 0 ; |
31076 | int res1 = 0 ; | |
31077 | double val2 ; | |
31078 | int ecode2 = 0 ; | |
31079 | double val3 ; | |
31080 | int ecode3 = 0 ; | |
31081 | double val4 ; | |
31082 | int ecode4 = 0 ; | |
31083 | double val5 ; | |
31084 | int ecode5 = 0 ; | |
70d7cb34 RD |
31085 | wxColour temp6 ; |
31086 | wxColour temp7 ; | |
72ef6efb RD |
31087 | PyObject * obj0 = 0 ; |
31088 | PyObject * obj1 = 0 ; | |
31089 | PyObject * obj2 = 0 ; | |
31090 | PyObject * obj3 = 0 ; | |
31091 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
31092 | PyObject * obj5 = 0 ; |
31093 | PyObject * obj6 = 0 ; | |
72ef6efb | 31094 | char * kwnames[] = { |
70d7cb34 | 31095 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
31096 | }; |
31097 | ||
70d7cb34 RD |
31098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
31099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31100 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31102 | } |
70d7cb34 | 31103 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
31104 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
31105 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 31106 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
31107 | } |
31108 | arg2 = static_cast< wxDouble >(val2); | |
31109 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31110 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 31111 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
31112 | } |
31113 | arg3 = static_cast< wxDouble >(val3); | |
31114 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31115 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 31116 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
31117 | } |
31118 | arg4 = static_cast< wxDouble >(val4); | |
31119 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31120 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 31121 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
31122 | } |
31123 | arg5 = static_cast< wxDouble >(val5); | |
31124 | { | |
70d7cb34 RD |
31125 | arg6 = &temp6; |
31126 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
31127 | } | |
31128 | { | |
31129 | arg7 = &temp7; | |
31130 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
31131 | } | |
31132 | { | |
31133 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
31134 | if (PyErr_Occurred()) SWIG_fail; |
31135 | } | |
70d7cb34 | 31136 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31137 | return resultobj; |
31138 | fail: | |
31139 | return NULL; | |
31140 | } | |
31141 | ||
31142 | ||
70d7cb34 | 31143 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31144 | PyObject *resultobj = 0; |
70d7cb34 | 31145 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
31146 | wxDouble arg2 ; |
31147 | wxDouble arg3 ; | |
31148 | wxDouble arg4 ; | |
31149 | wxDouble arg5 ; | |
31150 | wxDouble arg6 ; | |
70d7cb34 RD |
31151 | wxColour *arg7 = 0 ; |
31152 | wxColour *arg8 = 0 ; | |
31153 | wxGraphicsBrush result; | |
72ef6efb RD |
31154 | void *argp1 = 0 ; |
31155 | int res1 = 0 ; | |
31156 | double val2 ; | |
31157 | int ecode2 = 0 ; | |
31158 | double val3 ; | |
31159 | int ecode3 = 0 ; | |
31160 | double val4 ; | |
31161 | int ecode4 = 0 ; | |
31162 | double val5 ; | |
31163 | int ecode5 = 0 ; | |
31164 | double val6 ; | |
31165 | int ecode6 = 0 ; | |
70d7cb34 RD |
31166 | wxColour temp7 ; |
31167 | wxColour temp8 ; | |
72ef6efb RD |
31168 | PyObject * obj0 = 0 ; |
31169 | PyObject * obj1 = 0 ; | |
31170 | PyObject * obj2 = 0 ; | |
31171 | PyObject * obj3 = 0 ; | |
31172 | PyObject * obj4 = 0 ; | |
31173 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
31174 | PyObject * obj6 = 0 ; |
31175 | PyObject * obj7 = 0 ; | |
72ef6efb | 31176 | char * kwnames[] = { |
70d7cb34 | 31177 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
31178 | }; |
31179 | ||
70d7cb34 RD |
31180 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
31181 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31182 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31184 | } |
70d7cb34 | 31185 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
31186 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
31187 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 31188 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
31189 | } |
31190 | arg2 = static_cast< wxDouble >(val2); | |
31191 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31192 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 31193 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
31194 | } |
31195 | arg3 = static_cast< wxDouble >(val3); | |
31196 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31197 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 31198 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
31199 | } |
31200 | arg4 = static_cast< wxDouble >(val4); | |
31201 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31202 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 31203 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
31204 | } |
31205 | arg5 = static_cast< wxDouble >(val5); | |
31206 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
31207 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 31208 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
31209 | } |
31210 | arg6 = static_cast< wxDouble >(val6); | |
31211 | { | |
70d7cb34 RD |
31212 | arg7 = &temp7; |
31213 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
31214 | } | |
31215 | { | |
31216 | arg8 = &temp8; | |
31217 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
31218 | } | |
31219 | { | |
31220 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
31221 | if (PyErr_Occurred()) SWIG_fail; |
31222 | } | |
70d7cb34 | 31223 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31224 | return resultobj; |
31225 | fail: | |
31226 | return NULL; | |
31227 | } | |
31228 | ||
31229 | ||
70d7cb34 RD |
31230 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31231 | PyObject *resultobj = 0; | |
31232 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
31233 | wxFont *arg2 = 0 ; | |
31234 | wxColour const &arg3_defvalue = *wxBLACK ; | |
31235 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
31236 | wxGraphicsFont result; | |
31237 | void *argp1 = 0 ; | |
31238 | int res1 = 0 ; | |
31239 | void *argp2 = 0 ; | |
31240 | int res2 = 0 ; | |
31241 | wxColour temp3 ; | |
31242 | PyObject * obj0 = 0 ; | |
31243 | PyObject * obj1 = 0 ; | |
31244 | PyObject * obj2 = 0 ; | |
31245 | char * kwnames[] = { | |
31246 | (char *) "self",(char *) "font",(char *) "col", NULL | |
31247 | }; | |
31248 | ||
31249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31251 | if (!SWIG_IsOK(res1)) { | |
31252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31253 | } | |
31254 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31255 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
31256 | if (!SWIG_IsOK(res2)) { | |
31257 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
31258 | } | |
31259 | if (!argp2) { | |
31260 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
31261 | } | |
31262 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
31263 | if (obj2) { | |
31264 | { | |
31265 | arg3 = &temp3; | |
31266 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31267 | } | |
31268 | } | |
31269 | { | |
31270 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
31271 | if (PyErr_Occurred()) SWIG_fail; | |
31272 | } | |
31273 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
31274 | return resultobj; | |
31275 | fail: | |
31276 | return NULL; | |
31277 | } | |
31278 | ||
31279 | ||
31280 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
31281 | PyObject *obj; |
31282 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 31283 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
31284 | return SWIG_Py_Void(); |
31285 | } | |
31286 | ||
31287 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31288 | PyObject *resultobj = 0; | |
31289 | wxWindowDC *arg1 = 0 ; | |
31290 | wxGCDC *result = 0 ; | |
31291 | void *argp1 = 0 ; | |
31292 | int res1 = 0 ; | |
31293 | PyObject * obj0 = 0 ; | |
31294 | char * kwnames[] = { | |
31295 | (char *) "dc", NULL | |
31296 | }; | |
31297 | ||
31298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail; | |
31299 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
31300 | if (!SWIG_IsOK(res1)) { | |
31301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
31302 | } | |
31303 | if (!argp1) { | |
31304 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
31305 | } | |
31306 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
31307 | { | |
31308 | if (!wxPyCheckForApp()) SWIG_fail; | |
31309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31310 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
31311 | wxPyEndAllowThreads(__tstate); | |
31312 | if (PyErr_Occurred()) SWIG_fail; | |
31313 | } | |
31314 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
31315 | return resultobj; | |
31316 | fail: | |
31317 | return NULL; | |
31318 | } | |
31319 | ||
31320 | ||
31321 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31322 | PyObject *resultobj = 0; | |
31323 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31324 | void *argp1 = 0 ; | |
31325 | int res1 = 0 ; | |
31326 | PyObject *swig_obj[1] ; | |
31327 | ||
31328 | if (!args) SWIG_fail; | |
31329 | swig_obj[0] = args; | |
31330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
31331 | if (!SWIG_IsOK(res1)) { | |
31332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31333 | } | |
31334 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31335 | { | |
72ef6efb RD |
31336 | delete arg1; |
31337 | ||
72ef6efb RD |
31338 | if (PyErr_Occurred()) SWIG_fail; |
31339 | } | |
31340 | resultobj = SWIG_Py_Void(); | |
31341 | return resultobj; | |
31342 | fail: | |
31343 | return NULL; | |
31344 | } | |
31345 | ||
31346 | ||
0a27f394 | 31347 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
31348 | PyObject *resultobj = 0; |
31349 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31350 | wxGraphicsContext *result = 0 ; | |
31351 | void *argp1 = 0 ; | |
31352 | int res1 = 0 ; | |
31353 | PyObject *swig_obj[1] ; | |
31354 | ||
31355 | if (!args) SWIG_fail; | |
31356 | swig_obj[0] = args; | |
31357 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31358 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 31359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
31360 | } |
31361 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31362 | { | |
0a27f394 | 31363 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
31364 | if (PyErr_Occurred()) SWIG_fail; |
31365 | } | |
31366 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31367 | return resultobj; | |
31368 | fail: | |
31369 | return NULL; | |
31370 | } | |
31371 | ||
31372 | ||
0a27f394 RD |
31373 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31374 | PyObject *resultobj = 0; | |
31375 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31376 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
31377 | void *argp1 = 0 ; | |
31378 | int res1 = 0 ; | |
31379 | void *argp2 = 0 ; | |
31380 | int res2 = 0 ; | |
31381 | PyObject * obj0 = 0 ; | |
31382 | PyObject * obj1 = 0 ; | |
31383 | char * kwnames[] = { | |
31384 | (char *) "self",(char *) "ctx", NULL | |
31385 | }; | |
31386 | ||
31387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
31388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31389 | if (!SWIG_IsOK(res1)) { | |
31390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31391 | } | |
31392 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31393 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31394 | if (!SWIG_IsOK(res2)) { | |
31395 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
31396 | } | |
31397 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
31398 | { | |
31399 | (arg1)->SetGraphicsContext(arg2); | |
31400 | if (PyErr_Occurred()) SWIG_fail; | |
31401 | } | |
31402 | resultobj = SWIG_Py_Void(); | |
31403 | return resultobj; | |
31404 | fail: | |
31405 | return NULL; | |
31406 | } | |
31407 | ||
31408 | ||
72ef6efb RD |
31409 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31410 | PyObject *obj; | |
31411 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31412 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
31413 | return SWIG_Py_Void(); | |
31414 | } | |
31415 | ||
31416 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31417 | return SWIG_Python_InitShadowInstance(args); | |
31418 | } | |
31419 | ||
b39fe951 RD |
31420 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31421 | PyObject *resultobj = 0; | |
31422 | wxOverlay *result = 0 ; | |
31423 | ||
31424 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
31425 | { | |
31426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31427 | result = (wxOverlay *)new wxOverlay(); | |
31428 | wxPyEndAllowThreads(__tstate); | |
31429 | if (PyErr_Occurred()) SWIG_fail; | |
31430 | } | |
31431 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
31432 | return resultobj; | |
31433 | fail: | |
31434 | return NULL; | |
31435 | } | |
31436 | ||
31437 | ||
31438 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31439 | PyObject *resultobj = 0; | |
31440 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31441 | void *argp1 = 0 ; | |
31442 | int res1 = 0 ; | |
31443 | PyObject *swig_obj[1] ; | |
31444 | ||
31445 | if (!args) SWIG_fail; | |
31446 | swig_obj[0] = args; | |
31447 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31448 | if (!SWIG_IsOK(res1)) { | |
31449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31450 | } | |
31451 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31452 | { | |
31453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31454 | delete arg1; | |
31455 | ||
31456 | wxPyEndAllowThreads(__tstate); | |
31457 | if (PyErr_Occurred()) SWIG_fail; | |
31458 | } | |
31459 | resultobj = SWIG_Py_Void(); | |
31460 | return resultobj; | |
31461 | fail: | |
31462 | return NULL; | |
31463 | } | |
31464 | ||
31465 | ||
31466 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31467 | PyObject *resultobj = 0; | |
31468 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31469 | void *argp1 = 0 ; | |
31470 | int res1 = 0 ; | |
31471 | PyObject *swig_obj[1] ; | |
31472 | ||
31473 | if (!args) SWIG_fail; | |
31474 | swig_obj[0] = args; | |
31475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
31476 | if (!SWIG_IsOK(res1)) { | |
31477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31478 | } | |
31479 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31480 | { | |
31481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31482 | (arg1)->Reset(); | |
31483 | wxPyEndAllowThreads(__tstate); | |
31484 | if (PyErr_Occurred()) SWIG_fail; | |
31485 | } | |
31486 | resultobj = SWIG_Py_Void(); | |
31487 | return resultobj; | |
31488 | fail: | |
31489 | return NULL; | |
31490 | } | |
31491 | ||
31492 | ||
31493 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31494 | PyObject *obj; | |
31495 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31496 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
31497 | return SWIG_Py_Void(); | |
31498 | } | |
31499 | ||
31500 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31501 | return SWIG_Python_InitShadowInstance(args); | |
31502 | } | |
31503 | ||
31504 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31505 | PyObject *resultobj = 0; | |
31506 | wxOverlay *arg1 = 0 ; | |
31507 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31508 | int arg3 ; | |
31509 | int arg4 ; | |
31510 | int arg5 ; | |
31511 | int arg6 ; | |
31512 | wxDCOverlay *result = 0 ; | |
31513 | void *argp1 = 0 ; | |
31514 | int res1 = 0 ; | |
31515 | void *argp2 = 0 ; | |
31516 | int res2 = 0 ; | |
31517 | int val3 ; | |
31518 | int ecode3 = 0 ; | |
31519 | int val4 ; | |
31520 | int ecode4 = 0 ; | |
31521 | int val5 ; | |
31522 | int ecode5 = 0 ; | |
31523 | int val6 ; | |
31524 | int ecode6 = 0 ; | |
31525 | ||
31526 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
31527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31528 | if (!SWIG_IsOK(res1)) { | |
31529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31530 | } | |
31531 | if (!argp1) { | |
31532 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31533 | } | |
31534 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31535 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31536 | if (!SWIG_IsOK(res2)) { | |
31537 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31538 | } | |
31539 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31540 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
31541 | if (!SWIG_IsOK(ecode3)) { | |
31542 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
31543 | } | |
31544 | arg3 = static_cast< int >(val3); | |
31545 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
31546 | if (!SWIG_IsOK(ecode4)) { | |
31547 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
31548 | } | |
31549 | arg4 = static_cast< int >(val4); | |
31550 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
31551 | if (!SWIG_IsOK(ecode5)) { | |
31552 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
31553 | } | |
31554 | arg5 = static_cast< int >(val5); | |
31555 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
31556 | if (!SWIG_IsOK(ecode6)) { | |
31557 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
31558 | } | |
31559 | arg6 = static_cast< int >(val6); | |
31560 | { | |
31561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31562 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
31563 | wxPyEndAllowThreads(__tstate); | |
31564 | if (PyErr_Occurred()) SWIG_fail; | |
31565 | } | |
31566 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31567 | return resultobj; | |
31568 | fail: | |
31569 | return NULL; | |
31570 | } | |
31571 | ||
31572 | ||
31573 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31574 | PyObject *resultobj = 0; | |
31575 | wxOverlay *arg1 = 0 ; | |
31576 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31577 | wxDCOverlay *result = 0 ; | |
31578 | void *argp1 = 0 ; | |
31579 | int res1 = 0 ; | |
31580 | void *argp2 = 0 ; | |
31581 | int res2 = 0 ; | |
31582 | ||
31583 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
31584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31585 | if (!SWIG_IsOK(res1)) { | |
31586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31587 | } | |
31588 | if (!argp1) { | |
31589 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31590 | } | |
31591 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31592 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31593 | if (!SWIG_IsOK(res2)) { | |
31594 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31595 | } | |
31596 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31597 | { | |
31598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31599 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
31600 | wxPyEndAllowThreads(__tstate); | |
31601 | if (PyErr_Occurred()) SWIG_fail; | |
31602 | } | |
31603 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31604 | return resultobj; | |
31605 | fail: | |
31606 | return NULL; | |
31607 | } | |
31608 | ||
31609 | ||
31610 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
31611 | int argc; | |
31612 | PyObject *argv[7]; | |
31613 | ||
31614 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
31615 | --argc; | |
31616 | if (argc == 2) { | |
31617 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
31618 | } | |
31619 | if (argc == 6) { | |
31620 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
31621 | } | |
31622 | ||
31623 | fail: | |
31624 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
31625 | return NULL; | |
31626 | } | |
31627 | ||
31628 | ||
31629 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31630 | PyObject *resultobj = 0; | |
31631 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31632 | void *argp1 = 0 ; | |
31633 | int res1 = 0 ; | |
31634 | PyObject *swig_obj[1] ; | |
31635 | ||
31636 | if (!args) SWIG_fail; | |
31637 | swig_obj[0] = args; | |
31638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31639 | if (!SWIG_IsOK(res1)) { | |
31640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31641 | } | |
31642 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31643 | { | |
31644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31645 | delete arg1; | |
31646 | ||
31647 | wxPyEndAllowThreads(__tstate); | |
31648 | if (PyErr_Occurred()) SWIG_fail; | |
31649 | } | |
31650 | resultobj = SWIG_Py_Void(); | |
31651 | return resultobj; | |
31652 | fail: | |
31653 | return NULL; | |
31654 | } | |
31655 | ||
31656 | ||
31657 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31658 | PyObject *resultobj = 0; | |
31659 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31660 | void *argp1 = 0 ; | |
31661 | int res1 = 0 ; | |
31662 | PyObject *swig_obj[1] ; | |
31663 | ||
31664 | if (!args) SWIG_fail; | |
31665 | swig_obj[0] = args; | |
31666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
31667 | if (!SWIG_IsOK(res1)) { | |
31668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31669 | } | |
31670 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31671 | { | |
31672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31673 | (arg1)->Clear(); | |
31674 | wxPyEndAllowThreads(__tstate); | |
31675 | if (PyErr_Occurred()) SWIG_fail; | |
31676 | } | |
31677 | resultobj = SWIG_Py_Void(); | |
31678 | return resultobj; | |
31679 | fail: | |
31680 | return NULL; | |
31681 | } | |
31682 | ||
31683 | ||
31684 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31685 | PyObject *obj; | |
31686 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31687 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
31688 | return SWIG_Py_Void(); | |
31689 | } | |
31690 | ||
31691 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31692 | return SWIG_Python_InitShadowInstance(args); | |
31693 | } | |
31694 | ||
72ef6efb RD |
31695 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31696 | PyObject *resultobj = 0; | |
31697 | int arg1 ; | |
31698 | int arg2 ; | |
31699 | int arg3 = (int) true ; | |
31700 | int arg4 = (int) 1 ; | |
31701 | wxImageList *result = 0 ; | |
31702 | int val1 ; | |
31703 | int ecode1 = 0 ; | |
31704 | int val2 ; | |
31705 | int ecode2 = 0 ; | |
31706 | int val3 ; | |
31707 | int ecode3 = 0 ; | |
31708 | int val4 ; | |
31709 | int ecode4 = 0 ; | |
31710 | PyObject * obj0 = 0 ; | |
31711 | PyObject * obj1 = 0 ; | |
31712 | PyObject * obj2 = 0 ; | |
31713 | PyObject * obj3 = 0 ; | |
31714 | char * kwnames[] = { | |
31715 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
31716 | }; | |
31717 | ||
31718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31719 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31720 | if (!SWIG_IsOK(ecode1)) { | |
31721 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
31722 | } | |
31723 | arg1 = static_cast< int >(val1); | |
31724 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31725 | if (!SWIG_IsOK(ecode2)) { | |
31726 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
31727 | } | |
31728 | arg2 = static_cast< int >(val2); | |
31729 | if (obj2) { | |
31730 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31731 | if (!SWIG_IsOK(ecode3)) { | |
31732 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
31733 | } | |
31734 | arg3 = static_cast< int >(val3); | |
31735 | } | |
31736 | if (obj3) { | |
31737 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31738 | if (!SWIG_IsOK(ecode4)) { | |
31739 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
31740 | } | |
31741 | arg4 = static_cast< int >(val4); | |
31742 | } | |
31743 | { | |
31744 | if (!wxPyCheckForApp()) SWIG_fail; | |
31745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31746 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
31747 | wxPyEndAllowThreads(__tstate); | |
31748 | if (PyErr_Occurred()) SWIG_fail; | |
31749 | } | |
e02c0a13 | 31750 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
31751 | return resultobj; |
31752 | fail: | |
31753 | return NULL; | |
31754 | } | |
31755 | ||
31756 | ||
31757 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31758 | PyObject *resultobj = 0; | |
31759 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31760 | void *argp1 = 0 ; | |
31761 | int res1 = 0 ; | |
31762 | PyObject *swig_obj[1] ; | |
31763 | ||
31764 | if (!args) SWIG_fail; | |
31765 | swig_obj[0] = args; | |
31766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
31767 | if (!SWIG_IsOK(res1)) { | |
31768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31769 | } | |
31770 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31771 | { | |
31772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31773 | delete arg1; | |
31774 | ||
31775 | wxPyEndAllowThreads(__tstate); | |
31776 | if (PyErr_Occurred()) SWIG_fail; | |
31777 | } | |
31778 | resultobj = SWIG_Py_Void(); | |
31779 | return resultobj; | |
31780 | fail: | |
31781 | return NULL; | |
31782 | } | |
31783 | ||
31784 | ||
31785 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31786 | PyObject *resultobj = 0; | |
31787 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31788 | wxBitmap *arg2 = 0 ; | |
31789 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31790 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31791 | int result; | |
31792 | void *argp1 = 0 ; | |
31793 | int res1 = 0 ; | |
31794 | void *argp2 = 0 ; | |
31795 | int res2 = 0 ; | |
31796 | void *argp3 = 0 ; | |
31797 | int res3 = 0 ; | |
31798 | PyObject * obj0 = 0 ; | |
31799 | PyObject * obj1 = 0 ; | |
31800 | PyObject * obj2 = 0 ; | |
31801 | char * kwnames[] = { | |
31802 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
31803 | }; | |
31804 | ||
31805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31807 | if (!SWIG_IsOK(res1)) { | |
31808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31809 | } | |
31810 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31811 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31812 | if (!SWIG_IsOK(res2)) { | |
31813 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31814 | } | |
31815 | if (!argp2) { | |
31816 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31817 | } | |
31818 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31819 | if (obj2) { | |
31820 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31821 | if (!SWIG_IsOK(res3)) { | |
31822 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31823 | } | |
31824 | if (!argp3) { | |
31825 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31826 | } | |
31827 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
31828 | } | |
31829 | { | |
31830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31831 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31832 | wxPyEndAllowThreads(__tstate); | |
31833 | if (PyErr_Occurred()) SWIG_fail; | |
31834 | } | |
31835 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31836 | return resultobj; | |
31837 | fail: | |
31838 | return NULL; | |
31839 | } | |
31840 | ||
31841 | ||
31842 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31843 | PyObject *resultobj = 0; | |
31844 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31845 | wxBitmap *arg2 = 0 ; | |
31846 | wxColour *arg3 = 0 ; | |
31847 | int result; | |
31848 | void *argp1 = 0 ; | |
31849 | int res1 = 0 ; | |
31850 | void *argp2 = 0 ; | |
31851 | int res2 = 0 ; | |
31852 | wxColour temp3 ; | |
31853 | PyObject * obj0 = 0 ; | |
31854 | PyObject * obj1 = 0 ; | |
31855 | PyObject * obj2 = 0 ; | |
31856 | char * kwnames[] = { | |
31857 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
31858 | }; | |
31859 | ||
31860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31862 | if (!SWIG_IsOK(res1)) { | |
31863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31864 | } | |
31865 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31866 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31867 | if (!SWIG_IsOK(res2)) { | |
31868 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31869 | } | |
31870 | if (!argp2) { | |
31871 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31872 | } | |
31873 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31874 | { | |
31875 | arg3 = &temp3; | |
31876 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31877 | } | |
31878 | { | |
31879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31880 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
31881 | wxPyEndAllowThreads(__tstate); | |
31882 | if (PyErr_Occurred()) SWIG_fail; | |
31883 | } | |
31884 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31885 | return resultobj; | |
31886 | fail: | |
31887 | return NULL; | |
31888 | } | |
31889 | ||
31890 | ||
31891 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31892 | PyObject *resultobj = 0; | |
31893 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31894 | wxIcon *arg2 = 0 ; | |
31895 | int result; | |
31896 | void *argp1 = 0 ; | |
31897 | int res1 = 0 ; | |
31898 | void *argp2 = 0 ; | |
31899 | int res2 = 0 ; | |
31900 | PyObject * obj0 = 0 ; | |
31901 | PyObject * obj1 = 0 ; | |
31902 | char * kwnames[] = { | |
31903 | (char *) "self",(char *) "icon", NULL | |
31904 | }; | |
31905 | ||
31906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31908 | if (!SWIG_IsOK(res1)) { | |
31909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31910 | } | |
554f62e9 RD |
31911 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
31912 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
31913 | if (!SWIG_IsOK(res2)) { | |
31914 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31915 | } | |
31916 | if (!argp2) { | |
31917 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31918 | } | |
31919 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
31920 | { | |
31921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31922 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
31923 | wxPyEndAllowThreads(__tstate); | |
31924 | if (PyErr_Occurred()) SWIG_fail; | |
31925 | } | |
31926 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31927 | return resultobj; | |
31928 | fail: | |
31929 | return NULL; | |
31930 | } | |
31931 | ||
31932 | ||
31933 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31934 | PyObject *resultobj = 0; | |
31935 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31936 | int arg2 ; | |
31937 | SwigValueWrapper<wxBitmap > result; | |
31938 | void *argp1 = 0 ; | |
31939 | int res1 = 0 ; | |
31940 | int val2 ; | |
31941 | int ecode2 = 0 ; | |
31942 | PyObject * obj0 = 0 ; | |
31943 | PyObject * obj1 = 0 ; | |
31944 | char * kwnames[] = { | |
31945 | (char *) "self",(char *) "index", NULL | |
31946 | }; | |
31947 | ||
31948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
31949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31950 | if (!SWIG_IsOK(res1)) { | |
31951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31952 | } | |
31953 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31954 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31955 | if (!SWIG_IsOK(ecode2)) { | |
31956 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
31957 | } | |
31958 | arg2 = static_cast< int >(val2); | |
31959 | { | |
31960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31961 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
31962 | wxPyEndAllowThreads(__tstate); | |
31963 | if (PyErr_Occurred()) SWIG_fail; | |
31964 | } | |
31965 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
31966 | return resultobj; | |
31967 | fail: | |
31968 | return NULL; | |
31969 | } | |
31970 | ||
31971 | ||
31972 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31973 | PyObject *resultobj = 0; | |
31974 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31975 | int arg2 ; | |
31976 | wxIcon result; | |
31977 | void *argp1 = 0 ; | |
31978 | int res1 = 0 ; | |
31979 | int val2 ; | |
31980 | int ecode2 = 0 ; | |
31981 | PyObject * obj0 = 0 ; | |
31982 | PyObject * obj1 = 0 ; | |
31983 | char * kwnames[] = { | |
31984 | (char *) "self",(char *) "index", NULL | |
31985 | }; | |
31986 | ||
31987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31989 | if (!SWIG_IsOK(res1)) { | |
31990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31991 | } | |
31992 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31993 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31994 | if (!SWIG_IsOK(ecode2)) { | |
31995 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
31996 | } | |
31997 | arg2 = static_cast< int >(val2); | |
31998 | { | |
31999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32000 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
32001 | wxPyEndAllowThreads(__tstate); | |
32002 | if (PyErr_Occurred()) SWIG_fail; | |
32003 | } | |
32004 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
32005 | return resultobj; | |
32006 | fail: | |
32007 | return NULL; | |
32008 | } | |
32009 | ||
32010 | ||
32011 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32012 | PyObject *resultobj = 0; | |
32013 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32014 | int arg2 ; | |
32015 | wxBitmap *arg3 = 0 ; | |
32016 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
32017 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
32018 | bool result; | |
32019 | void *argp1 = 0 ; | |
32020 | int res1 = 0 ; | |
32021 | int val2 ; | |
32022 | int ecode2 = 0 ; | |
32023 | void *argp3 = 0 ; | |
32024 | int res3 = 0 ; | |
32025 | void *argp4 = 0 ; | |
32026 | int res4 = 0 ; | |
32027 | PyObject * obj0 = 0 ; | |
32028 | PyObject * obj1 = 0 ; | |
32029 | PyObject * obj2 = 0 ; | |
32030 | PyObject * obj3 = 0 ; | |
32031 | char * kwnames[] = { | |
32032 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
32033 | }; | |
32034 | ||
32035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32037 | if (!SWIG_IsOK(res1)) { | |
32038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32039 | } | |
32040 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32041 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32042 | if (!SWIG_IsOK(ecode2)) { | |
32043 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
32044 | } | |
32045 | arg2 = static_cast< int >(val2); | |
32046 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32047 | if (!SWIG_IsOK(res3)) { | |
32048 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32049 | } | |
32050 | if (!argp3) { | |
32051 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32052 | } | |
32053 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
32054 | if (obj3) { | |
32055 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32056 | if (!SWIG_IsOK(res4)) { | |
32057 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 32058 | } |
554f62e9 RD |
32059 | if (!argp4) { |
32060 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 32061 | } |
554f62e9 RD |
32062 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
32063 | } | |
32064 | { | |
32065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32066 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
32067 | wxPyEndAllowThreads(__tstate); | |
32068 | if (PyErr_Occurred()) SWIG_fail; | |
32069 | } | |
32070 | { | |
32071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32072 | } | |
32073 | return resultobj; | |
32074 | fail: | |
32075 | return NULL; | |
32076 | } | |
32077 | ||
32078 | ||
32079 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32080 | PyObject *resultobj = 0; | |
32081 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32082 | int arg2 ; | |
32083 | wxDC *arg3 = 0 ; | |
32084 | int arg4 ; | |
32085 | int arg5 ; | |
32086 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
32087 | bool arg7 = (bool) (bool)false ; | |
32088 | bool result; | |
32089 | void *argp1 = 0 ; | |
32090 | int res1 = 0 ; | |
32091 | int val2 ; | |
32092 | int ecode2 = 0 ; | |
32093 | void *argp3 = 0 ; | |
32094 | int res3 = 0 ; | |
32095 | int val4 ; | |
32096 | int ecode4 = 0 ; | |
32097 | int val5 ; | |
32098 | int ecode5 = 0 ; | |
32099 | int val6 ; | |
32100 | int ecode6 = 0 ; | |
32101 | bool val7 ; | |
32102 | int ecode7 = 0 ; | |
32103 | PyObject * obj0 = 0 ; | |
32104 | PyObject * obj1 = 0 ; | |
32105 | PyObject * obj2 = 0 ; | |
32106 | PyObject * obj3 = 0 ; | |
32107 | PyObject * obj4 = 0 ; | |
32108 | PyObject * obj5 = 0 ; | |
32109 | PyObject * obj6 = 0 ; | |
32110 | char * kwnames[] = { | |
32111 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
32112 | }; | |
32113 | ||
32114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
32115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32116 | if (!SWIG_IsOK(res1)) { | |
32117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32118 | } | |
32119 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32120 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32121 | if (!SWIG_IsOK(ecode2)) { | |
32122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
32123 | } | |
32124 | arg2 = static_cast< int >(val2); | |
32125 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
32126 | if (!SWIG_IsOK(res3)) { | |
32127 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32128 | } | |
32129 | if (!argp3) { | |
32130 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32131 | } | |
32132 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
32133 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32134 | if (!SWIG_IsOK(ecode4)) { | |
32135 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
32136 | } | |
32137 | arg4 = static_cast< int >(val4); | |
32138 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32139 | if (!SWIG_IsOK(ecode5)) { | |
32140 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
32141 | } | |
32142 | arg5 = static_cast< int >(val5); | |
32143 | if (obj5) { | |
32144 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
32145 | if (!SWIG_IsOK(ecode6)) { | |
32146 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
32147 | } | |
32148 | arg6 = static_cast< int >(val6); | |
32149 | } | |
32150 | if (obj6) { | |
32151 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
32152 | if (!SWIG_IsOK(ecode7)) { | |
32153 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
32154 | } | |
32155 | arg7 = static_cast< bool >(val7); | |
32156 | } | |
32157 | { | |
32158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32159 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
32160 | wxPyEndAllowThreads(__tstate); | |
32161 | if (PyErr_Occurred()) SWIG_fail; | |
32162 | } | |
32163 | { | |
32164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32165 | } | |
32166 | return resultobj; | |
32167 | fail: | |
32168 | return NULL; | |
32169 | } | |
32170 | ||
32171 | ||
32172 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32173 | PyObject *resultobj = 0; | |
32174 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32175 | int result; | |
32176 | void *argp1 = 0 ; | |
32177 | int res1 = 0 ; | |
32178 | PyObject *swig_obj[1] ; | |
32179 | ||
32180 | if (!args) SWIG_fail; | |
32181 | swig_obj[0] = args; | |
32182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32183 | if (!SWIG_IsOK(res1)) { | |
32184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32185 | } | |
32186 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32187 | { | |
32188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32189 | result = (int)(arg1)->GetImageCount(); | |
32190 | wxPyEndAllowThreads(__tstate); | |
32191 | if (PyErr_Occurred()) SWIG_fail; | |
32192 | } | |
32193 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32194 | return resultobj; | |
32195 | fail: | |
32196 | return NULL; | |
32197 | } | |
32198 | ||
32199 | ||
32200 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32201 | PyObject *resultobj = 0; | |
32202 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32203 | int arg2 ; | |
32204 | bool result; | |
32205 | void *argp1 = 0 ; | |
32206 | int res1 = 0 ; | |
32207 | int val2 ; | |
32208 | int ecode2 = 0 ; | |
32209 | PyObject * obj0 = 0 ; | |
32210 | PyObject * obj1 = 0 ; | |
32211 | char * kwnames[] = { | |
32212 | (char *) "self",(char *) "index", NULL | |
32213 | }; | |
32214 | ||
32215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
32216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32217 | if (!SWIG_IsOK(res1)) { | |
32218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32219 | } | |
32220 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32221 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32222 | if (!SWIG_IsOK(ecode2)) { | |
32223 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
32224 | } | |
32225 | arg2 = static_cast< int >(val2); | |
32226 | { | |
32227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32228 | result = (bool)(arg1)->Remove(arg2); | |
32229 | wxPyEndAllowThreads(__tstate); | |
32230 | if (PyErr_Occurred()) SWIG_fail; | |
32231 | } | |
32232 | { | |
32233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32234 | } | |
32235 | return resultobj; | |
32236 | fail: | |
32237 | return NULL; | |
32238 | } | |
32239 | ||
32240 | ||
32241 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32242 | PyObject *resultobj = 0; | |
32243 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32244 | bool result; | |
32245 | void *argp1 = 0 ; | |
32246 | int res1 = 0 ; | |
32247 | PyObject *swig_obj[1] ; | |
32248 | ||
32249 | if (!args) SWIG_fail; | |
32250 | swig_obj[0] = args; | |
32251 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32252 | if (!SWIG_IsOK(res1)) { | |
32253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32254 | } | |
32255 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32256 | { | |
32257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32258 | result = (bool)(arg1)->RemoveAll(); | |
32259 | wxPyEndAllowThreads(__tstate); | |
32260 | if (PyErr_Occurred()) SWIG_fail; | |
32261 | } | |
32262 | { | |
32263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32264 | } | |
32265 | return resultobj; | |
32266 | fail: | |
32267 | return NULL; | |
32268 | } | |
32269 | ||
32270 | ||
32271 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32272 | PyObject *resultobj = 0; | |
32273 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32274 | int arg2 ; | |
32275 | int *arg3 = 0 ; | |
32276 | int *arg4 = 0 ; | |
32277 | void *argp1 = 0 ; | |
32278 | int res1 = 0 ; | |
32279 | int val2 ; | |
32280 | int ecode2 = 0 ; | |
32281 | int temp3 ; | |
32282 | int res3 = SWIG_TMPOBJ ; | |
32283 | int temp4 ; | |
32284 | int res4 = SWIG_TMPOBJ ; | |
32285 | PyObject * obj0 = 0 ; | |
32286 | PyObject * obj1 = 0 ; | |
32287 | char * kwnames[] = { | |
32288 | (char *) "self",(char *) "index", NULL | |
32289 | }; | |
32290 | ||
32291 | arg3 = &temp3; | |
32292 | arg4 = &temp4; | |
32293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
32294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32295 | if (!SWIG_IsOK(res1)) { | |
32296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32297 | } | |
32298 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32299 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32300 | if (!SWIG_IsOK(ecode2)) { | |
32301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
32302 | } | |
32303 | arg2 = static_cast< int >(val2); | |
32304 | { | |
32305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32306 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
32307 | wxPyEndAllowThreads(__tstate); | |
32308 | if (PyErr_Occurred()) SWIG_fail; | |
32309 | } | |
32310 | resultobj = SWIG_Py_Void(); | |
32311 | if (SWIG_IsTmpObj(res3)) { | |
32312 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
32313 | } else { | |
32314 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32315 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
32316 | } | |
32317 | if (SWIG_IsTmpObj(res4)) { | |
32318 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
32319 | } else { | |
32320 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32321 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
32322 | } | |
32323 | return resultobj; | |
32324 | fail: | |
32325 | return NULL; | |
32326 | } | |
32327 | ||
32328 | ||
32329 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32330 | PyObject *obj; | |
32331 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32332 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
32333 | return SWIG_Py_Void(); | |
32334 | } | |
32335 | ||
32336 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32337 | return SWIG_Python_InitShadowInstance(args); | |
32338 | } | |
32339 | ||
50efceee RD |
32340 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32341 | PyObject *resultobj = 0; | |
32342 | wxStockGDI *result = 0 ; | |
554f62e9 | 32343 | |
50efceee RD |
32344 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
32345 | { | |
32346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32347 | result = (wxStockGDI *)new wxStockGDI(); | |
32348 | wxPyEndAllowThreads(__tstate); | |
32349 | if (PyErr_Occurred()) SWIG_fail; | |
32350 | } | |
32351 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
32352 | return resultobj; | |
32353 | fail: | |
32354 | return NULL; | |
554f62e9 RD |
32355 | } |
32356 | ||
32357 | ||
50efceee RD |
32358 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32359 | PyObject *resultobj = 0; | |
32360 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32361 | void *argp1 = 0 ; | |
32362 | int res1 = 0 ; | |
32363 | PyObject *swig_obj[1] ; | |
554f62e9 | 32364 | |
50efceee RD |
32365 | if (!args) SWIG_fail; |
32366 | swig_obj[0] = args; | |
32367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
32368 | if (!SWIG_IsOK(res1)) { | |
32369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32370 | } | |
32371 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32372 | { | |
32373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32374 | delete arg1; | |
32375 | ||
32376 | wxPyEndAllowThreads(__tstate); | |
32377 | if (PyErr_Occurred()) SWIG_fail; | |
32378 | } | |
32379 | resultobj = SWIG_Py_Void(); | |
32380 | return resultobj; | |
32381 | fail: | |
32382 | return NULL; | |
554f62e9 RD |
32383 | } |
32384 | ||
32385 | ||
50efceee RD |
32386 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32387 | PyObject *resultobj = 0; | |
554f62e9 | 32388 | |
50efceee RD |
32389 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
32390 | { | |
32391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32392 | wxStockGDI::DeleteAll(); | |
32393 | wxPyEndAllowThreads(__tstate); | |
32394 | if (PyErr_Occurred()) SWIG_fail; | |
32395 | } | |
32396 | resultobj = SWIG_Py_Void(); | |
32397 | return resultobj; | |
32398 | fail: | |
32399 | return NULL; | |
554f62e9 RD |
32400 | } |
32401 | ||
32402 | ||
50efceee RD |
32403 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32404 | PyObject *resultobj = 0; | |
32405 | wxStockGDI *result = 0 ; | |
554f62e9 | 32406 | |
50efceee RD |
32407 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
32408 | { | |
32409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32410 | { | |
32411 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
32412 | result = (wxStockGDI *) &_result_ref; | |
32413 | } | |
32414 | wxPyEndAllowThreads(__tstate); | |
32415 | if (PyErr_Occurred()) SWIG_fail; | |
32416 | } | |
32417 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32418 | return resultobj; | |
32419 | fail: | |
32420 | return NULL; | |
554f62e9 RD |
32421 | } |
32422 | ||
32423 | ||
50efceee RD |
32424 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32425 | PyObject *resultobj = 0; | |
32426 | wxStockGDI::Item arg1 ; | |
32427 | wxBrush *result = 0 ; | |
32428 | int val1 ; | |
32429 | int ecode1 = 0 ; | |
32430 | PyObject * obj0 = 0 ; | |
32431 | char * kwnames[] = { | |
32432 | (char *) "item", NULL | |
32433 | }; | |
32434 | ||
32435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
32436 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32437 | if (!SWIG_IsOK(ecode1)) { | |
32438 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32439 | } | |
32440 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32441 | { | |
32442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32443 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
32444 | wxPyEndAllowThreads(__tstate); | |
32445 | if (PyErr_Occurred()) SWIG_fail; | |
32446 | } | |
32447 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32448 | return resultobj; | |
32449 | fail: | |
32450 | return NULL; | |
554f62e9 RD |
32451 | } |
32452 | ||
32453 | ||
50efceee RD |
32454 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32455 | PyObject *resultobj = 0; | |
32456 | wxStockGDI::Item arg1 ; | |
32457 | wxColour *result = 0 ; | |
32458 | int val1 ; | |
32459 | int ecode1 = 0 ; | |
32460 | PyObject * obj0 = 0 ; | |
32461 | char * kwnames[] = { | |
32462 | (char *) "item", NULL | |
32463 | }; | |
554f62e9 | 32464 | |
50efceee RD |
32465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
32466 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32467 | if (!SWIG_IsOK(ecode1)) { | |
32468 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32469 | } | |
32470 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32471 | { | |
32472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32473 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
32474 | wxPyEndAllowThreads(__tstate); | |
32475 | if (PyErr_Occurred()) SWIG_fail; | |
32476 | } | |
32477 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
32478 | return resultobj; | |
32479 | fail: | |
32480 | return NULL; | |
554f62e9 RD |
32481 | } |
32482 | ||
32483 | ||
50efceee RD |
32484 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32485 | PyObject *resultobj = 0; | |
32486 | wxStockGDI::Item arg1 ; | |
32487 | wxCursor *result = 0 ; | |
32488 | int val1 ; | |
32489 | int ecode1 = 0 ; | |
32490 | PyObject * obj0 = 0 ; | |
32491 | char * kwnames[] = { | |
32492 | (char *) "item", NULL | |
32493 | }; | |
32494 | ||
32495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
32496 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32497 | if (!SWIG_IsOK(ecode1)) { | |
32498 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32499 | } | |
32500 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32501 | { | |
32502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32503 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
32504 | wxPyEndAllowThreads(__tstate); | |
32505 | if (PyErr_Occurred()) SWIG_fail; | |
32506 | } | |
32507 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
32508 | return resultobj; | |
32509 | fail: | |
32510 | return NULL; | |
554f62e9 RD |
32511 | } |
32512 | ||
32513 | ||
50efceee RD |
32514 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32515 | PyObject *resultobj = 0; | |
32516 | wxStockGDI::Item arg1 ; | |
32517 | wxPen *result = 0 ; | |
32518 | int val1 ; | |
32519 | int ecode1 = 0 ; | |
32520 | PyObject * obj0 = 0 ; | |
32521 | char * kwnames[] = { | |
32522 | (char *) "item", NULL | |
32523 | }; | |
32524 | ||
32525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
32526 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32527 | if (!SWIG_IsOK(ecode1)) { | |
32528 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32529 | } | |
32530 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32531 | { | |
32532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32533 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
32534 | wxPyEndAllowThreads(__tstate); | |
32535 | if (PyErr_Occurred()) SWIG_fail; | |
32536 | } | |
32537 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32538 | return resultobj; | |
32539 | fail: | |
32540 | return NULL; | |
554f62e9 RD |
32541 | } |
32542 | ||
32543 | ||
50efceee RD |
32544 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32545 | PyObject *resultobj = 0; | |
32546 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32547 | wxStockGDI::Item arg2 ; | |
32548 | wxFont *result = 0 ; | |
32549 | void *argp1 = 0 ; | |
32550 | int res1 = 0 ; | |
32551 | int val2 ; | |
32552 | int ecode2 = 0 ; | |
32553 | PyObject * obj0 = 0 ; | |
32554 | PyObject * obj1 = 0 ; | |
32555 | char * kwnames[] = { | |
32556 | (char *) "self",(char *) "item", NULL | |
32557 | }; | |
554f62e9 | 32558 | |
50efceee RD |
32559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32561 | if (!SWIG_IsOK(res1)) { | |
32562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32563 | } | |
32564 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32565 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32566 | if (!SWIG_IsOK(ecode2)) { | |
32567 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
32568 | } | |
32569 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
32570 | { | |
32571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32572 | result = (wxFont *)(arg1)->GetFont(arg2); | |
32573 | wxPyEndAllowThreads(__tstate); | |
32574 | if (PyErr_Occurred()) SWIG_fail; | |
32575 | } | |
32576 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
32577 | return resultobj; | |
32578 | fail: | |
32579 | return NULL; | |
554f62e9 RD |
32580 | } |
32581 | ||
32582 | ||
50efceee RD |
32583 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32584 | PyObject *obj; | |
32585 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32586 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
32587 | return SWIG_Py_Void(); | |
554f62e9 RD |
32588 | } |
32589 | ||
50efceee RD |
32590 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32591 | return SWIG_Python_InitShadowInstance(args); | |
554f62e9 RD |
32592 | } |
32593 | ||
554f62e9 RD |
32594 | SWIGINTERN int NullBitmap_set(PyObject *) { |
32595 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
32596 | return 1; | |
32597 | } | |
32598 | ||
32599 | ||
32600 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
32601 | PyObject *pyobj = 0; | |
32602 | ||
32603 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
32604 | return pyobj; | |
32605 | } | |
32606 | ||
32607 | ||
32608 | SWIGINTERN int NullIcon_set(PyObject *) { | |
32609 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
32610 | return 1; | |
32611 | } | |
32612 | ||
32613 | ||
32614 | SWIGINTERN PyObject *NullIcon_get(void) { | |
32615 | PyObject *pyobj = 0; | |
32616 | ||
32617 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
32618 | return pyobj; | |
32619 | } | |
32620 | ||
32621 | ||
32622 | SWIGINTERN int NullCursor_set(PyObject *) { | |
32623 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
32624 | return 1; | |
32625 | } | |
32626 | ||
32627 | ||
32628 | SWIGINTERN PyObject *NullCursor_get(void) { | |
32629 | PyObject *pyobj = 0; | |
32630 | ||
32631 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
32632 | return pyobj; | |
32633 | } | |
32634 | ||
32635 | ||
32636 | SWIGINTERN int NullPen_set(PyObject *) { | |
32637 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
32638 | return 1; | |
32639 | } | |
32640 | ||
32641 | ||
32642 | SWIGINTERN PyObject *NullPen_get(void) { | |
32643 | PyObject *pyobj = 0; | |
32644 | ||
32645 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
32646 | return pyobj; | |
32647 | } | |
32648 | ||
32649 | ||
32650 | SWIGINTERN int NullBrush_set(PyObject *) { | |
32651 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
32652 | return 1; | |
32653 | } | |
32654 | ||
32655 | ||
32656 | SWIGINTERN PyObject *NullBrush_get(void) { | |
32657 | PyObject *pyobj = 0; | |
32658 | ||
32659 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
32660 | return pyobj; | |
32661 | } | |
32662 | ||
32663 | ||
32664 | SWIGINTERN int NullPalette_set(PyObject *) { | |
32665 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
32666 | return 1; | |
32667 | } | |
32668 | ||
32669 | ||
32670 | SWIGINTERN PyObject *NullPalette_get(void) { | |
32671 | PyObject *pyobj = 0; | |
32672 | ||
32673 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
32674 | return pyobj; | |
32675 | } | |
32676 | ||
32677 | ||
32678 | SWIGINTERN int NullFont_set(PyObject *) { | |
32679 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
32680 | return 1; | |
32681 | } | |
32682 | ||
32683 | ||
32684 | SWIGINTERN PyObject *NullFont_get(void) { | |
32685 | PyObject *pyobj = 0; | |
32686 | ||
32687 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
32688 | return pyobj; | |
32689 | } | |
32690 | ||
32691 | ||
32692 | SWIGINTERN int NullColour_set(PyObject *) { | |
32693 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
32694 | return 1; | |
32695 | } | |
32696 | ||
32697 | ||
32698 | SWIGINTERN PyObject *NullColour_get(void) { | |
32699 | PyObject *pyobj = 0; | |
32700 | ||
32701 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
32702 | return pyobj; | |
32703 | } | |
32704 | ||
32705 | ||
50efceee | 32706 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 32707 | PyObject *resultobj = 0; |
50efceee RD |
32708 | wxGDIObjListBase *result = 0 ; |
32709 | ||
32710 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
32711 | { | |
32712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32713 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
32714 | wxPyEndAllowThreads(__tstate); | |
32715 | if (PyErr_Occurred()) SWIG_fail; | |
32716 | } | |
32717 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
32718 | return resultobj; | |
32719 | fail: | |
32720 | return NULL; | |
32721 | } | |
32722 | ||
32723 | ||
32724 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32725 | PyObject *resultobj = 0; | |
32726 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
554f62e9 RD |
32727 | void *argp1 = 0 ; |
32728 | int res1 = 0 ; | |
50efceee | 32729 | PyObject *swig_obj[1] ; |
554f62e9 | 32730 | |
50efceee RD |
32731 | if (!args) SWIG_fail; |
32732 | swig_obj[0] = args; | |
32733 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
554f62e9 | 32734 | if (!SWIG_IsOK(res1)) { |
50efceee | 32735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
554f62e9 | 32736 | } |
50efceee | 32737 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
554f62e9 RD |
32738 | { |
32739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
32740 | delete arg1; |
32741 | ||
554f62e9 RD |
32742 | wxPyEndAllowThreads(__tstate); |
32743 | if (PyErr_Occurred()) SWIG_fail; | |
32744 | } | |
32745 | resultobj = SWIG_Py_Void(); | |
32746 | return resultobj; | |
32747 | fail: | |
32748 | return NULL; | |
32749 | } | |
32750 | ||
32751 | ||
50efceee RD |
32752 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32753 | PyObject *obj; | |
32754 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32755 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
32756 | return SWIG_Py_Void(); | |
32757 | } | |
32758 | ||
32759 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32760 | return SWIG_Python_InitShadowInstance(args); | |
32761 | } | |
32762 | ||
554f62e9 RD |
32763 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32764 | PyObject *resultobj = 0; | |
32765 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32766 | wxColour *arg2 = 0 ; | |
32767 | int arg3 ; | |
32768 | int arg4 ; | |
32769 | wxPen *result = 0 ; | |
32770 | void *argp1 = 0 ; | |
32771 | int res1 = 0 ; | |
32772 | wxColour temp2 ; | |
32773 | int val3 ; | |
32774 | int ecode3 = 0 ; | |
32775 | int val4 ; | |
32776 | int ecode4 = 0 ; | |
32777 | PyObject * obj0 = 0 ; | |
32778 | PyObject * obj1 = 0 ; | |
32779 | PyObject * obj2 = 0 ; | |
32780 | PyObject * obj3 = 0 ; | |
32781 | char * kwnames[] = { | |
32782 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
32783 | }; | |
32784 | ||
32785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
32787 | if (!SWIG_IsOK(res1)) { | |
32788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
32789 | } | |
32790 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32791 | { | |
32792 | arg2 = &temp2; | |
32793 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32794 | } | |
32795 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32796 | if (!SWIG_IsOK(ecode3)) { | |
32797 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
32798 | } | |
32799 | arg3 = static_cast< int >(val3); | |
32800 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32801 | if (!SWIG_IsOK(ecode4)) { | |
32802 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
32803 | } | |
32804 | arg4 = static_cast< int >(val4); | |
32805 | { | |
32806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32807 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
32808 | wxPyEndAllowThreads(__tstate); | |
32809 | if (PyErr_Occurred()) SWIG_fail; | |
32810 | } | |
32811 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32812 | return resultobj; | |
32813 | fail: | |
32814 | return NULL; | |
32815 | } | |
32816 | ||
32817 | ||
50efceee | 32818 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
32819 | PyObject *resultobj = 0; |
32820 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32821 | wxPen *arg2 = (wxPen *) 0 ; | |
32822 | void *argp1 = 0 ; | |
32823 | int res1 = 0 ; | |
32824 | void *argp2 = 0 ; | |
32825 | int res2 = 0 ; | |
32826 | PyObject * obj0 = 0 ; | |
32827 | PyObject * obj1 = 0 ; | |
32828 | char * kwnames[] = { | |
32829 | (char *) "self",(char *) "pen", NULL | |
32830 | }; | |
32831 | ||
50efceee | 32832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
554f62e9 RD |
32833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
32834 | if (!SWIG_IsOK(res1)) { | |
50efceee | 32835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
32836 | } |
32837 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32838 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
32839 | if (!SWIG_IsOK(res2)) { | |
50efceee | 32840 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
554f62e9 RD |
32841 | } |
32842 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
32843 | { | |
32844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32845 | (arg1)->AddPen(arg2); |
554f62e9 RD |
32846 | wxPyEndAllowThreads(__tstate); |
32847 | if (PyErr_Occurred()) SWIG_fail; | |
32848 | } | |
32849 | resultobj = SWIG_Py_Void(); | |
32850 | return resultobj; | |
32851 | fail: | |
32852 | return NULL; | |
32853 | } | |
32854 | ||
32855 | ||
50efceee | 32856 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
32857 | PyObject *resultobj = 0; |
32858 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 32859 | wxPen *arg2 = (wxPen *) 0 ; |
554f62e9 RD |
32860 | void *argp1 = 0 ; |
32861 | int res1 = 0 ; | |
50efceee RD |
32862 | void *argp2 = 0 ; |
32863 | int res2 = 0 ; | |
32864 | PyObject * obj0 = 0 ; | |
32865 | PyObject * obj1 = 0 ; | |
32866 | char * kwnames[] = { | |
32867 | (char *) "self",(char *) "pen", NULL | |
32868 | }; | |
554f62e9 | 32869 | |
50efceee RD |
32870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
32871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
554f62e9 | 32872 | if (!SWIG_IsOK(res1)) { |
50efceee | 32873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
32874 | } |
32875 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
32876 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
32877 | if (!SWIG_IsOK(res2)) { | |
32878 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
32879 | } | |
32880 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
554f62e9 RD |
32881 | { |
32882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32883 | (arg1)->RemovePen(arg2); |
554f62e9 RD |
32884 | wxPyEndAllowThreads(__tstate); |
32885 | if (PyErr_Occurred()) SWIG_fail; | |
32886 | } | |
50efceee | 32887 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
32888 | return resultobj; |
32889 | fail: | |
32890 | return NULL; | |
32891 | } | |
32892 | ||
32893 | ||
32894 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32895 | PyObject *obj; | |
32896 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32897 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
32898 | return SWIG_Py_Void(); | |
32899 | } | |
32900 | ||
50efceee RD |
32901 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32902 | PyObject *resultobj = 0; | |
32903 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32904 | wxColour *arg2 = 0 ; | |
32905 | int arg3 = (int) wxSOLID ; | |
32906 | wxBrush *result = 0 ; | |
32907 | void *argp1 = 0 ; | |
32908 | int res1 = 0 ; | |
32909 | wxColour temp2 ; | |
32910 | int val3 ; | |
32911 | int ecode3 = 0 ; | |
32912 | PyObject * obj0 = 0 ; | |
32913 | PyObject * obj1 = 0 ; | |
32914 | PyObject * obj2 = 0 ; | |
32915 | char * kwnames[] = { | |
32916 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
32917 | }; | |
32918 | ||
32919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32921 | if (!SWIG_IsOK(res1)) { | |
32922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32923 | } | |
32924 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32925 | { | |
32926 | arg2 = &temp2; | |
32927 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32928 | } | |
32929 | if (obj2) { | |
32930 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32931 | if (!SWIG_IsOK(ecode3)) { | |
32932 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
32933 | } | |
32934 | arg3 = static_cast< int >(val3); | |
32935 | } | |
32936 | { | |
32937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32938 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
32939 | wxPyEndAllowThreads(__tstate); | |
32940 | if (PyErr_Occurred()) SWIG_fail; | |
32941 | } | |
32942 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32943 | return resultobj; | |
32944 | fail: | |
32945 | return NULL; | |
32946 | } | |
32947 | ||
32948 | ||
554f62e9 RD |
32949 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32950 | PyObject *resultobj = 0; | |
32951 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32952 | wxBrush *arg2 = (wxBrush *) 0 ; | |
32953 | void *argp1 = 0 ; | |
32954 | int res1 = 0 ; | |
32955 | void *argp2 = 0 ; | |
32956 | int res2 = 0 ; | |
32957 | PyObject * obj0 = 0 ; | |
32958 | PyObject * obj1 = 0 ; | |
32959 | char * kwnames[] = { | |
32960 | (char *) "self",(char *) "brush", NULL | |
32961 | }; | |
32962 | ||
32963 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
32964 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32965 | if (!SWIG_IsOK(res1)) { | |
32966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32967 | } | |
32968 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32969 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32970 | if (!SWIG_IsOK(res2)) { | |
32971 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
32972 | } | |
32973 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
32974 | { | |
32975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32976 | (arg1)->AddBrush(arg2); | |
32977 | wxPyEndAllowThreads(__tstate); | |
32978 | if (PyErr_Occurred()) SWIG_fail; | |
32979 | } | |
32980 | resultobj = SWIG_Py_Void(); | |
32981 | return resultobj; | |
32982 | fail: | |
32983 | return NULL; | |
32984 | } | |
32985 | ||
32986 | ||
50efceee | 32987 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
32988 | PyObject *resultobj = 0; |
32989 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 32990 | wxBrush *arg2 = (wxBrush *) 0 ; |
554f62e9 RD |
32991 | void *argp1 = 0 ; |
32992 | int res1 = 0 ; | |
50efceee RD |
32993 | void *argp2 = 0 ; |
32994 | int res2 = 0 ; | |
32995 | PyObject * obj0 = 0 ; | |
32996 | PyObject * obj1 = 0 ; | |
32997 | char * kwnames[] = { | |
32998 | (char *) "self",(char *) "brush", NULL | |
32999 | }; | |
33000 | ||
33001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
33002 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33003 | if (!SWIG_IsOK(res1)) { | |
33004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33005 | } | |
33006 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33007 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33008 | if (!SWIG_IsOK(res2)) { | |
33009 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
33010 | } | |
33011 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
33012 | { | |
33013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33014 | (arg1)->RemoveBrush(arg2); | |
33015 | wxPyEndAllowThreads(__tstate); | |
33016 | if (PyErr_Occurred()) SWIG_fail; | |
33017 | } | |
33018 | resultobj = SWIG_Py_Void(); | |
33019 | return resultobj; | |
33020 | fail: | |
33021 | return NULL; | |
33022 | } | |
33023 | ||
33024 | ||
33025 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33026 | PyObject *obj; | |
33027 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33028 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
33029 | return SWIG_Py_Void(); | |
33030 | } | |
33031 | ||
33032 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33033 | PyObject *resultobj = 0; | |
33034 | wxFontList *arg1 = (wxFontList *) 0 ; | |
33035 | int arg2 ; | |
33036 | int arg3 ; | |
33037 | int arg4 ; | |
33038 | int arg5 ; | |
33039 | bool arg6 = (bool) false ; | |
33040 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
33041 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33042 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
33043 | wxFont *result = 0 ; | |
33044 | void *argp1 = 0 ; | |
33045 | int res1 = 0 ; | |
33046 | int val2 ; | |
33047 | int ecode2 = 0 ; | |
554f62e9 RD |
33048 | int val3 ; |
33049 | int ecode3 = 0 ; | |
50efceee RD |
33050 | int val4 ; |
33051 | int ecode4 = 0 ; | |
33052 | int val5 ; | |
33053 | int ecode5 = 0 ; | |
33054 | bool val6 ; | |
33055 | int ecode6 = 0 ; | |
33056 | bool temp7 = false ; | |
33057 | int val8 ; | |
33058 | int ecode8 = 0 ; | |
554f62e9 RD |
33059 | PyObject * obj0 = 0 ; |
33060 | PyObject * obj1 = 0 ; | |
33061 | PyObject * obj2 = 0 ; | |
50efceee RD |
33062 | PyObject * obj3 = 0 ; |
33063 | PyObject * obj4 = 0 ; | |
33064 | PyObject * obj5 = 0 ; | |
33065 | PyObject * obj6 = 0 ; | |
33066 | PyObject * obj7 = 0 ; | |
554f62e9 | 33067 | char * kwnames[] = { |
50efceee | 33068 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
554f62e9 RD |
33069 | }; |
33070 | ||
50efceee RD |
33071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
33072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33073 | if (!SWIG_IsOK(res1)) { |
50efceee | 33074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33075 | } |
50efceee RD |
33076 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33077 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33078 | if (!SWIG_IsOK(ecode2)) { | |
33079 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
33080 | } | |
33081 | arg2 = static_cast< int >(val2); | |
33082 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33083 | if (!SWIG_IsOK(ecode3)) { | |
33084 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
33085 | } | |
33086 | arg3 = static_cast< int >(val3); | |
33087 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33088 | if (!SWIG_IsOK(ecode4)) { | |
33089 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
33090 | } | |
33091 | arg4 = static_cast< int >(val4); | |
33092 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33093 | if (!SWIG_IsOK(ecode5)) { | |
33094 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
33095 | } | |
33096 | arg5 = static_cast< int >(val5); | |
33097 | if (obj5) { | |
33098 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
33099 | if (!SWIG_IsOK(ecode6)) { | |
33100 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
33101 | } | |
33102 | arg6 = static_cast< bool >(val6); | |
554f62e9 | 33103 | } |
50efceee RD |
33104 | if (obj6) { |
33105 | { | |
33106 | arg7 = wxString_in_helper(obj6); | |
33107 | if (arg7 == NULL) SWIG_fail; | |
33108 | temp7 = true; | |
33109 | } | |
33110 | } | |
33111 | if (obj7) { | |
33112 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
33113 | if (!SWIG_IsOK(ecode8)) { | |
33114 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
554f62e9 | 33115 | } |
50efceee | 33116 | arg8 = static_cast< wxFontEncoding >(val8); |
554f62e9 RD |
33117 | } |
33118 | { | |
33119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33120 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
554f62e9 RD |
33121 | wxPyEndAllowThreads(__tstate); |
33122 | if (PyErr_Occurred()) SWIG_fail; | |
33123 | } | |
50efceee RD |
33124 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
33125 | { | |
33126 | if (temp7) | |
33127 | delete arg7; | |
33128 | } | |
554f62e9 RD |
33129 | return resultobj; |
33130 | fail: | |
50efceee RD |
33131 | { |
33132 | if (temp7) | |
33133 | delete arg7; | |
33134 | } | |
554f62e9 RD |
33135 | return NULL; |
33136 | } | |
33137 | ||
33138 | ||
50efceee | 33139 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 33140 | PyObject *resultobj = 0; |
50efceee RD |
33141 | wxFontList *arg1 = (wxFontList *) 0 ; |
33142 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
33143 | void *argp1 = 0 ; |
33144 | int res1 = 0 ; | |
33145 | void *argp2 = 0 ; | |
33146 | int res2 = 0 ; | |
33147 | PyObject * obj0 = 0 ; | |
33148 | PyObject * obj1 = 0 ; | |
33149 | char * kwnames[] = { | |
50efceee | 33150 | (char *) "self",(char *) "font", NULL |
554f62e9 RD |
33151 | }; |
33152 | ||
50efceee RD |
33153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
33154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33155 | if (!SWIG_IsOK(res1)) { |
50efceee | 33156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33157 | } |
50efceee RD |
33158 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33159 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
554f62e9 | 33160 | if (!SWIG_IsOK(res2)) { |
50efceee | 33161 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
554f62e9 | 33162 | } |
50efceee | 33163 | arg2 = reinterpret_cast< wxFont * >(argp2); |
554f62e9 RD |
33164 | { |
33165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33166 | (arg1)->AddFont(arg2); |
554f62e9 RD |
33167 | wxPyEndAllowThreads(__tstate); |
33168 | if (PyErr_Occurred()) SWIG_fail; | |
33169 | } | |
33170 | resultobj = SWIG_Py_Void(); | |
33171 | return resultobj; | |
33172 | fail: | |
33173 | return NULL; | |
33174 | } | |
33175 | ||
33176 | ||
50efceee | 33177 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 33178 | PyObject *resultobj = 0; |
50efceee RD |
33179 | wxFontList *arg1 = (wxFontList *) 0 ; |
33180 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
33181 | void *argp1 = 0 ; |
33182 | int res1 = 0 ; | |
50efceee RD |
33183 | void *argp2 = 0 ; |
33184 | int res2 = 0 ; | |
33185 | PyObject * obj0 = 0 ; | |
33186 | PyObject * obj1 = 0 ; | |
33187 | char * kwnames[] = { | |
33188 | (char *) "self",(char *) "font", NULL | |
33189 | }; | |
554f62e9 | 33190 | |
50efceee RD |
33191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
33192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33193 | if (!SWIG_IsOK(res1)) { |
50efceee | 33194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33195 | } |
50efceee RD |
33196 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33197 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
33198 | if (!SWIG_IsOK(res2)) { | |
33199 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
33200 | } | |
33201 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
554f62e9 RD |
33202 | { |
33203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33204 | (arg1)->RemoveFont(arg2); |
554f62e9 RD |
33205 | wxPyEndAllowThreads(__tstate); |
33206 | if (PyErr_Occurred()) SWIG_fail; | |
33207 | } | |
50efceee | 33208 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
33209 | return resultobj; |
33210 | fail: | |
33211 | return NULL; | |
33212 | } | |
33213 | ||
33214 | ||
50efceee | 33215 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
33216 | PyObject *obj; |
33217 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 33218 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
554f62e9 RD |
33219 | return SWIG_Py_Void(); |
33220 | } | |
33221 | ||
33222 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33223 | PyObject *resultobj = 0; | |
33224 | wxColourDatabase *result = 0 ; | |
33225 | ||
33226 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
33227 | { | |
33228 | if (!wxPyCheckForApp()) SWIG_fail; | |
33229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33230 | result = (wxColourDatabase *)new wxColourDatabase(); | |
33231 | wxPyEndAllowThreads(__tstate); | |
33232 | if (PyErr_Occurred()) SWIG_fail; | |
33233 | } | |
33234 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
33235 | return resultobj; | |
33236 | fail: | |
33237 | return NULL; | |
33238 | } | |
33239 | ||
33240 | ||
33241 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33242 | PyObject *resultobj = 0; | |
33243 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33244 | void *argp1 = 0 ; | |
33245 | int res1 = 0 ; | |
33246 | PyObject *swig_obj[1] ; | |
33247 | ||
33248 | if (!args) SWIG_fail; | |
33249 | swig_obj[0] = args; | |
33250 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
33251 | if (!SWIG_IsOK(res1)) { | |
33252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
33253 | } | |
33254 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33255 | { | |
33256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33257 | delete arg1; | |
33258 | ||
33259 | wxPyEndAllowThreads(__tstate); | |
33260 | if (PyErr_Occurred()) SWIG_fail; | |
33261 | } | |
33262 | resultobj = SWIG_Py_Void(); | |
33263 | return resultobj; | |
33264 | fail: | |
33265 | return NULL; | |
33266 | } | |
33267 | ||
33268 | ||
33269 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33270 | PyObject *resultobj = 0; | |
33271 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33272 | wxString *arg2 = 0 ; | |
33273 | wxColour result; | |
33274 | void *argp1 = 0 ; | |
33275 | int res1 = 0 ; | |
33276 | bool temp2 = false ; | |
33277 | PyObject * obj0 = 0 ; | |
33278 | PyObject * obj1 = 0 ; | |
33279 | char * kwnames[] = { | |
33280 | (char *) "self",(char *) "name", NULL | |
33281 | }; | |
33282 | ||
33283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
33284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33285 | if (!SWIG_IsOK(res1)) { | |
33286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
33287 | } | |
33288 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33289 | { | |
33290 | arg2 = wxString_in_helper(obj1); | |
33291 | if (arg2 == NULL) SWIG_fail; | |
33292 | temp2 = true; | |
33293 | } | |
33294 | { | |
33295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33296 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
33297 | wxPyEndAllowThreads(__tstate); | |
33298 | if (PyErr_Occurred()) SWIG_fail; | |
33299 | } | |
33300 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33301 | { | |
33302 | if (temp2) | |
33303 | delete arg2; | |
33304 | } | |
33305 | return resultobj; | |
33306 | fail: | |
33307 | { | |
33308 | if (temp2) | |
33309 | delete arg2; | |
33310 | } | |
33311 | return NULL; | |
33312 | } | |
33313 | ||
33314 | ||
33315 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33316 | PyObject *resultobj = 0; | |
33317 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33318 | wxColour *arg2 = 0 ; | |
33319 | wxString result; | |
33320 | void *argp1 = 0 ; | |
33321 | int res1 = 0 ; | |
33322 | wxColour temp2 ; | |
33323 | PyObject * obj0 = 0 ; | |
33324 | PyObject * obj1 = 0 ; | |
33325 | char * kwnames[] = { | |
33326 | (char *) "self",(char *) "colour", NULL | |
33327 | }; | |
33328 | ||
33329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
33330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33331 | if (!SWIG_IsOK(res1)) { | |
33332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
33333 | } | |
33334 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33335 | { | |
33336 | arg2 = &temp2; | |
33337 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33338 | } | |
33339 | { | |
33340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33341 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
33342 | wxPyEndAllowThreads(__tstate); | |
33343 | if (PyErr_Occurred()) SWIG_fail; | |
33344 | } | |
33345 | { | |
33346 | #if wxUSE_UNICODE | |
33347 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33348 | #else | |
33349 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33350 | #endif | |
33351 | } | |
33352 | return resultobj; | |
33353 | fail: | |
33354 | return NULL; | |
33355 | } | |
33356 | ||
33357 | ||
33358 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33359 | PyObject *resultobj = 0; | |
33360 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33361 | wxString *arg2 = 0 ; | |
33362 | wxColour *arg3 = 0 ; | |
33363 | void *argp1 = 0 ; | |
33364 | int res1 = 0 ; | |
33365 | bool temp2 = false ; | |
33366 | wxColour temp3 ; | |
33367 | PyObject * obj0 = 0 ; | |
33368 | PyObject * obj1 = 0 ; | |
33369 | PyObject * obj2 = 0 ; | |
33370 | char * kwnames[] = { | |
33371 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
33372 | }; | |
33373 | ||
33374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33376 | if (!SWIG_IsOK(res1)) { | |
33377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
33378 | } | |
33379 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33380 | { | |
33381 | arg2 = wxString_in_helper(obj1); | |
33382 | if (arg2 == NULL) SWIG_fail; | |
33383 | temp2 = true; | |
33384 | } | |
33385 | { | |
33386 | arg3 = &temp3; | |
33387 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
33388 | } | |
33389 | { | |
33390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33391 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
33392 | wxPyEndAllowThreads(__tstate); | |
33393 | if (PyErr_Occurred()) SWIG_fail; | |
33394 | } | |
33395 | resultobj = SWIG_Py_Void(); | |
33396 | { | |
33397 | if (temp2) | |
33398 | delete arg2; | |
33399 | } | |
33400 | return resultobj; | |
33401 | fail: | |
33402 | { | |
33403 | if (temp2) | |
33404 | delete arg2; | |
33405 | } | |
33406 | return NULL; | |
33407 | } | |
33408 | ||
33409 | ||
33410 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33411 | PyObject *resultobj = 0; | |
33412 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33413 | wxString *arg2 = 0 ; | |
33414 | int arg3 ; | |
33415 | int arg4 ; | |
33416 | int arg5 ; | |
33417 | void *argp1 = 0 ; | |
33418 | int res1 = 0 ; | |
33419 | bool temp2 = false ; | |
33420 | int val3 ; | |
33421 | int ecode3 = 0 ; | |
33422 | int val4 ; | |
33423 | int ecode4 = 0 ; | |
50efceee RD |
33424 | int val5 ; |
33425 | int ecode5 = 0 ; | |
554f62e9 RD |
33426 | PyObject * obj0 = 0 ; |
33427 | PyObject * obj1 = 0 ; | |
33428 | PyObject * obj2 = 0 ; | |
33429 | PyObject * obj3 = 0 ; | |
33430 | PyObject * obj4 = 0 ; | |
554f62e9 | 33431 | char * kwnames[] = { |
50efceee | 33432 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
554f62e9 RD |
33433 | }; |
33434 | ||
50efceee RD |
33435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
33436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
554f62e9 | 33437 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
33438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
33439 | } | |
33440 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33441 | { | |
33442 | arg2 = wxString_in_helper(obj1); | |
33443 | if (arg2 == NULL) SWIG_fail; | |
33444 | temp2 = true; | |
554f62e9 | 33445 | } |
554f62e9 RD |
33446 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
33447 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 33448 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
554f62e9 RD |
33449 | } |
33450 | arg3 = static_cast< int >(val3); | |
33451 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33452 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 33453 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
554f62e9 RD |
33454 | } |
33455 | arg4 = static_cast< int >(val4); | |
33456 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33457 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 33458 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
554f62e9 RD |
33459 | } |
33460 | arg5 = static_cast< int >(val5); | |
554f62e9 RD |
33461 | { |
33462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33463 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
554f62e9 RD |
33464 | wxPyEndAllowThreads(__tstate); |
33465 | if (PyErr_Occurred()) SWIG_fail; | |
33466 | } | |
50efceee | 33467 | resultobj = SWIG_Py_Void(); |
554f62e9 | 33468 | { |
50efceee RD |
33469 | if (temp2) |
33470 | delete arg2; | |
554f62e9 RD |
33471 | } |
33472 | return resultobj; | |
33473 | fail: | |
33474 | { | |
50efceee RD |
33475 | if (temp2) |
33476 | delete arg2; | |
554f62e9 RD |
33477 | } |
33478 | return NULL; | |
33479 | } | |
33480 | ||
33481 | ||
50efceee RD |
33482 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33483 | PyObject *obj; | |
33484 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33485 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
33486 | return SWIG_Py_Void(); | |
33487 | } | |
33488 | ||
33489 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33490 | return SWIG_Python_InitShadowInstance(args); | |
33491 | } | |
33492 | ||
33493 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
554f62e9 | 33494 | PyObject *resultobj = 0; |
50efceee | 33495 | wxFontList *result = 0 ; |
554f62e9 | 33496 | |
50efceee | 33497 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
554f62e9 RD |
33498 | { |
33499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33500 | result = (wxFontList *)_wxPyInitTheFontList(); |
554f62e9 RD |
33501 | wxPyEndAllowThreads(__tstate); |
33502 | if (PyErr_Occurred()) SWIG_fail; | |
33503 | } | |
50efceee | 33504 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
554f62e9 RD |
33505 | return resultobj; |
33506 | fail: | |
33507 | return NULL; | |
33508 | } | |
33509 | ||
33510 | ||
50efceee | 33511 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 33512 | PyObject *resultobj = 0; |
50efceee | 33513 | wxPenList *result = 0 ; |
554f62e9 | 33514 | |
50efceee | 33515 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
554f62e9 RD |
33516 | { |
33517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33518 | result = (wxPenList *)_wxPyInitThePenList(); |
554f62e9 RD |
33519 | wxPyEndAllowThreads(__tstate); |
33520 | if (PyErr_Occurred()) SWIG_fail; | |
33521 | } | |
50efceee | 33522 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
554f62e9 RD |
33523 | return resultobj; |
33524 | fail: | |
33525 | return NULL; | |
33526 | } | |
33527 | ||
33528 | ||
50efceee RD |
33529 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33530 | PyObject *resultobj = 0; | |
33531 | wxBrushList *result = 0 ; | |
554f62e9 | 33532 | |
50efceee RD |
33533 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
33534 | { | |
33535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33536 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
33537 | wxPyEndAllowThreads(__tstate); | |
33538 | if (PyErr_Occurred()) SWIG_fail; | |
33539 | } | |
33540 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33541 | return resultobj; | |
33542 | fail: | |
33543 | return NULL; | |
554f62e9 RD |
33544 | } |
33545 | ||
33546 | ||
50efceee RD |
33547 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33548 | PyObject *resultobj = 0; | |
33549 | wxColourDatabase *result = 0 ; | |
554f62e9 | 33550 | |
50efceee RD |
33551 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
33552 | { | |
33553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33554 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
33555 | wxPyEndAllowThreads(__tstate); | |
33556 | if (PyErr_Occurred()) SWIG_fail; | |
33557 | } | |
33558 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33559 | return resultobj; | |
33560 | fail: | |
33561 | return NULL; | |
554f62e9 RD |
33562 | } |
33563 | ||
33564 | ||
33565 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33566 | PyObject *resultobj = 0; | |
33567 | wxEffects *result = 0 ; | |
33568 | ||
33569 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
33570 | { | |
33571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33572 | result = (wxEffects *)new wxEffects(); | |
33573 | wxPyEndAllowThreads(__tstate); | |
33574 | if (PyErr_Occurred()) SWIG_fail; | |
33575 | } | |
33576 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
33577 | return resultobj; | |
33578 | fail: | |
33579 | return NULL; | |
33580 | } | |
33581 | ||
33582 | ||
33583 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33584 | PyObject *resultobj = 0; | |
33585 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33586 | wxColour result; | |
33587 | void *argp1 = 0 ; | |
33588 | int res1 = 0 ; | |
33589 | PyObject *swig_obj[1] ; | |
33590 | ||
33591 | if (!args) SWIG_fail; | |
33592 | swig_obj[0] = args; | |
33593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33594 | if (!SWIG_IsOK(res1)) { | |
33595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33596 | } | |
33597 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33598 | { | |
33599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33600 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
33601 | wxPyEndAllowThreads(__tstate); | |
33602 | if (PyErr_Occurred()) SWIG_fail; | |
33603 | } | |
33604 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33605 | return resultobj; | |
33606 | fail: | |
33607 | return NULL; | |
33608 | } | |
33609 | ||
33610 | ||
33611 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33612 | PyObject *resultobj = 0; | |
33613 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33614 | wxColour result; | |
33615 | void *argp1 = 0 ; | |
33616 | int res1 = 0 ; | |
33617 | PyObject *swig_obj[1] ; | |
33618 | ||
33619 | if (!args) SWIG_fail; | |
33620 | swig_obj[0] = args; | |
33621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33622 | if (!SWIG_IsOK(res1)) { | |
33623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33624 | } | |
33625 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33626 | { | |
33627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33628 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
33629 | wxPyEndAllowThreads(__tstate); | |
33630 | if (PyErr_Occurred()) SWIG_fail; | |
33631 | } | |
33632 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33633 | return resultobj; | |
33634 | fail: | |
33635 | return NULL; | |
33636 | } | |
33637 | ||
33638 | ||
33639 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33640 | PyObject *resultobj = 0; | |
33641 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33642 | wxColour result; | |
33643 | void *argp1 = 0 ; | |
33644 | int res1 = 0 ; | |
33645 | PyObject *swig_obj[1] ; | |
33646 | ||
33647 | if (!args) SWIG_fail; | |
33648 | swig_obj[0] = args; | |
33649 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33650 | if (!SWIG_IsOK(res1)) { | |
33651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33652 | } | |
33653 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33654 | { | |
33655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33656 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
33657 | wxPyEndAllowThreads(__tstate); | |
33658 | if (PyErr_Occurred()) SWIG_fail; | |
33659 | } | |
33660 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33661 | return resultobj; | |
33662 | fail: | |
33663 | return NULL; | |
33664 | } | |
33665 | ||
33666 | ||
33667 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33668 | PyObject *resultobj = 0; | |
33669 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33670 | wxColour result; | |
33671 | void *argp1 = 0 ; | |
33672 | int res1 = 0 ; | |
33673 | PyObject *swig_obj[1] ; | |
33674 | ||
33675 | if (!args) SWIG_fail; | |
33676 | swig_obj[0] = args; | |
33677 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33678 | if (!SWIG_IsOK(res1)) { | |
33679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33680 | } | |
33681 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33682 | { | |
33683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33684 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
33685 | wxPyEndAllowThreads(__tstate); | |
33686 | if (PyErr_Occurred()) SWIG_fail; | |
33687 | } | |
33688 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33689 | return resultobj; | |
33690 | fail: | |
33691 | return NULL; | |
33692 | } | |
33693 | ||
33694 | ||
33695 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33696 | PyObject *resultobj = 0; | |
33697 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33698 | wxColour result; | |
33699 | void *argp1 = 0 ; | |
33700 | int res1 = 0 ; | |
33701 | PyObject *swig_obj[1] ; | |
33702 | ||
33703 | if (!args) SWIG_fail; | |
33704 | swig_obj[0] = args; | |
33705 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33706 | if (!SWIG_IsOK(res1)) { | |
33707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33708 | } | |
33709 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33710 | { | |
33711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33712 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
33713 | wxPyEndAllowThreads(__tstate); | |
33714 | if (PyErr_Occurred()) SWIG_fail; | |
33715 | } | |
33716 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33717 | return resultobj; | |
33718 | fail: | |
33719 | return NULL; | |
33720 | } | |
33721 | ||
33722 | ||
33723 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33724 | PyObject *resultobj = 0; | |
33725 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33726 | wxColour *arg2 = 0 ; | |
33727 | void *argp1 = 0 ; | |
33728 | int res1 = 0 ; | |
33729 | wxColour temp2 ; | |
33730 | PyObject * obj0 = 0 ; | |
33731 | PyObject * obj1 = 0 ; | |
33732 | char * kwnames[] = { | |
33733 | (char *) "self",(char *) "c", NULL | |
33734 | }; | |
33735 | ||
33736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33738 | if (!SWIG_IsOK(res1)) { | |
33739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33740 | } | |
33741 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33742 | { | |
33743 | arg2 = &temp2; | |
33744 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33745 | } | |
33746 | { | |
33747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33748 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
33749 | wxPyEndAllowThreads(__tstate); | |
33750 | if (PyErr_Occurred()) SWIG_fail; | |
33751 | } | |
33752 | resultobj = SWIG_Py_Void(); | |
33753 | return resultobj; | |
33754 | fail: | |
33755 | return NULL; | |
33756 | } | |
33757 | ||
33758 | ||
33759 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33760 | PyObject *resultobj = 0; | |
33761 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33762 | wxColour *arg2 = 0 ; | |
33763 | void *argp1 = 0 ; | |
33764 | int res1 = 0 ; | |
33765 | wxColour temp2 ; | |
33766 | PyObject * obj0 = 0 ; | |
33767 | PyObject * obj1 = 0 ; | |
33768 | char * kwnames[] = { | |
33769 | (char *) "self",(char *) "c", NULL | |
33770 | }; | |
33771 | ||
33772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33774 | if (!SWIG_IsOK(res1)) { | |
33775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33776 | } | |
33777 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33778 | { | |
33779 | arg2 = &temp2; | |
33780 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33781 | } | |
33782 | { | |
33783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33784 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
33785 | wxPyEndAllowThreads(__tstate); | |
33786 | if (PyErr_Occurred()) SWIG_fail; | |
33787 | } | |
33788 | resultobj = SWIG_Py_Void(); | |
33789 | return resultobj; | |
33790 | fail: | |
33791 | return NULL; | |
33792 | } | |
33793 | ||
33794 | ||
33795 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33796 | PyObject *resultobj = 0; | |
33797 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33798 | wxColour *arg2 = 0 ; | |
33799 | void *argp1 = 0 ; | |
33800 | int res1 = 0 ; | |
33801 | wxColour temp2 ; | |
33802 | PyObject * obj0 = 0 ; | |
33803 | PyObject * obj1 = 0 ; | |
33804 | char * kwnames[] = { | |
33805 | (char *) "self",(char *) "c", NULL | |
33806 | }; | |
33807 | ||
33808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33810 | if (!SWIG_IsOK(res1)) { | |
33811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33812 | } | |
33813 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33814 | { | |
33815 | arg2 = &temp2; | |
33816 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33817 | } | |
33818 | { | |
33819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33820 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
33821 | wxPyEndAllowThreads(__tstate); | |
33822 | if (PyErr_Occurred()) SWIG_fail; | |
33823 | } | |
33824 | resultobj = SWIG_Py_Void(); | |
33825 | return resultobj; | |
33826 | fail: | |
33827 | return NULL; | |
33828 | } | |
33829 | ||
33830 | ||
33831 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33832 | PyObject *resultobj = 0; | |
33833 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33834 | wxColour *arg2 = 0 ; | |
33835 | void *argp1 = 0 ; | |
33836 | int res1 = 0 ; | |
33837 | wxColour temp2 ; | |
33838 | PyObject * obj0 = 0 ; | |
33839 | PyObject * obj1 = 0 ; | |
33840 | char * kwnames[] = { | |
33841 | (char *) "self",(char *) "c", NULL | |
33842 | }; | |
33843 | ||
33844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33846 | if (!SWIG_IsOK(res1)) { | |
33847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33848 | } | |
33849 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33850 | { | |
33851 | arg2 = &temp2; | |
33852 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33853 | } | |
33854 | { | |
33855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33856 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
33857 | wxPyEndAllowThreads(__tstate); | |
33858 | if (PyErr_Occurred()) SWIG_fail; | |
33859 | } | |
33860 | resultobj = SWIG_Py_Void(); | |
33861 | return resultobj; | |
33862 | fail: | |
33863 | return NULL; | |
33864 | } | |
33865 | ||
33866 | ||
33867 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33868 | PyObject *resultobj = 0; | |
33869 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33870 | wxColour *arg2 = 0 ; | |
33871 | void *argp1 = 0 ; | |
33872 | int res1 = 0 ; | |
33873 | wxColour temp2 ; | |
33874 | PyObject * obj0 = 0 ; | |
33875 | PyObject * obj1 = 0 ; | |
33876 | char * kwnames[] = { | |
33877 | (char *) "self",(char *) "c", NULL | |
33878 | }; | |
33879 | ||
33880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33882 | if (!SWIG_IsOK(res1)) { | |
33883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33884 | } | |
33885 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33886 | { | |
33887 | arg2 = &temp2; | |
33888 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33889 | } | |
33890 | { | |
33891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33892 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
33893 | wxPyEndAllowThreads(__tstate); | |
33894 | if (PyErr_Occurred()) SWIG_fail; | |
33895 | } | |
33896 | resultobj = SWIG_Py_Void(); | |
33897 | return resultobj; | |
33898 | fail: | |
33899 | return NULL; | |
33900 | } | |
33901 | ||
33902 | ||
33903 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33904 | PyObject *resultobj = 0; | |
33905 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33906 | wxColour *arg2 = 0 ; | |
33907 | wxColour *arg3 = 0 ; | |
33908 | wxColour *arg4 = 0 ; | |
33909 | wxColour *arg5 = 0 ; | |
33910 | wxColour *arg6 = 0 ; | |
33911 | void *argp1 = 0 ; | |
33912 | int res1 = 0 ; | |
33913 | wxColour temp2 ; | |
33914 | wxColour temp3 ; | |
33915 | wxColour temp4 ; | |
33916 | wxColour temp5 ; | |
33917 | wxColour temp6 ; | |
33918 | PyObject * obj0 = 0 ; | |
33919 | PyObject * obj1 = 0 ; | |
33920 | PyObject * obj2 = 0 ; | |
33921 | PyObject * obj3 = 0 ; | |
33922 | PyObject * obj4 = 0 ; | |
33923 | PyObject * obj5 = 0 ; | |
33924 | char * kwnames[] = { | |
33925 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
33926 | }; | |
33927 | ||
33928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
33929 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33930 | if (!SWIG_IsOK(res1)) { | |
33931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33932 | } | |
33933 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33934 | { | |
33935 | arg2 = &temp2; | |
33936 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33937 | } | |
33938 | { | |
33939 | arg3 = &temp3; | |
33940 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
33941 | } | |
33942 | { | |
33943 | arg4 = &temp4; | |
33944 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
33945 | } | |
33946 | { | |
33947 | arg5 = &temp5; | |
33948 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
33949 | } | |
33950 | { | |
33951 | arg6 = &temp6; | |
33952 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
33953 | } | |
33954 | { | |
33955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33956 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
33957 | wxPyEndAllowThreads(__tstate); | |
33958 | if (PyErr_Occurred()) SWIG_fail; | |
33959 | } | |
33960 | resultobj = SWIG_Py_Void(); | |
33961 | return resultobj; | |
33962 | fail: | |
33963 | return NULL; | |
33964 | } | |
33965 | ||
33966 | ||
33967 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33968 | PyObject *resultobj = 0; | |
33969 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33970 | wxDC *arg2 = 0 ; | |
33971 | wxRect *arg3 = 0 ; | |
33972 | int arg4 = (int) 1 ; | |
33973 | void *argp1 = 0 ; | |
33974 | int res1 = 0 ; | |
33975 | void *argp2 = 0 ; | |
33976 | int res2 = 0 ; | |
33977 | wxRect temp3 ; | |
33978 | int val4 ; | |
33979 | int ecode4 = 0 ; | |
33980 | PyObject * obj0 = 0 ; | |
33981 | PyObject * obj1 = 0 ; | |
33982 | PyObject * obj2 = 0 ; | |
33983 | PyObject * obj3 = 0 ; | |
33984 | char * kwnames[] = { | |
33985 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
33986 | }; | |
33987 | ||
33988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33990 | if (!SWIG_IsOK(res1)) { | |
33991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33992 | } | |
33993 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33994 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
33995 | if (!SWIG_IsOK(res2)) { | |
33996 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
33997 | } | |
33998 | if (!argp2) { | |
33999 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
34000 | } | |
34001 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
34002 | { | |
34003 | arg3 = &temp3; | |
34004 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
34005 | } | |
34006 | if (obj3) { | |
34007 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34008 | if (!SWIG_IsOK(ecode4)) { | |
34009 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
34010 | } | |
34011 | arg4 = static_cast< int >(val4); | |
34012 | } | |
34013 | { | |
34014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34015 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
34016 | wxPyEndAllowThreads(__tstate); | |
34017 | if (PyErr_Occurred()) SWIG_fail; | |
34018 | } | |
34019 | resultobj = SWIG_Py_Void(); | |
34020 | return resultobj; | |
34021 | fail: | |
34022 | return NULL; | |
34023 | } | |
34024 | ||
34025 | ||
34026 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34027 | PyObject *resultobj = 0; | |
34028 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34029 | wxRect *arg2 = 0 ; | |
34030 | wxDC *arg3 = 0 ; | |
34031 | wxBitmap *arg4 = 0 ; | |
34032 | bool result; | |
34033 | void *argp1 = 0 ; | |
34034 | int res1 = 0 ; | |
34035 | wxRect temp2 ; | |
34036 | void *argp3 = 0 ; | |
34037 | int res3 = 0 ; | |
34038 | void *argp4 = 0 ; | |
34039 | int res4 = 0 ; | |
34040 | PyObject * obj0 = 0 ; | |
34041 | PyObject * obj1 = 0 ; | |
34042 | PyObject * obj2 = 0 ; | |
34043 | PyObject * obj3 = 0 ; | |
34044 | char * kwnames[] = { | |
34045 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
34046 | }; | |
34047 | ||
34048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34050 | if (!SWIG_IsOK(res1)) { | |
34051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34052 | } | |
34053 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34054 | { | |
34055 | arg2 = &temp2; | |
34056 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
34057 | } | |
34058 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34059 | if (!SWIG_IsOK(res3)) { | |
34060 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34061 | } | |
34062 | if (!argp3) { | |
34063 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34064 | } | |
34065 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34066 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
34067 | if (!SWIG_IsOK(res4)) { | |
34068 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
34069 | } | |
34070 | if (!argp4) { | |
34071 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
34072 | } | |
34073 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
34074 | { | |
34075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34076 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
34077 | wxPyEndAllowThreads(__tstate); | |
34078 | if (PyErr_Occurred()) SWIG_fail; | |
34079 | } | |
34080 | { | |
34081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34082 | } | |
34083 | return resultobj; | |
34084 | fail: | |
34085 | return NULL; | |
34086 | } | |
34087 | ||
34088 | ||
34089 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34090 | PyObject *obj; | |
34091 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34092 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
34093 | return SWIG_Py_Void(); | |
34094 | } | |
34095 | ||
34096 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34097 | return SWIG_Python_InitShadowInstance(args); | |
34098 | } | |
34099 | ||
34100 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34101 | PyObject *resultobj = 0; | |
34102 | int arg1 ; | |
34103 | int arg2 ; | |
34104 | bool arg3 ; | |
34105 | wxSplitterRenderParams *result = 0 ; | |
34106 | int val1 ; | |
34107 | int ecode1 = 0 ; | |
34108 | int val2 ; | |
34109 | int ecode2 = 0 ; | |
34110 | bool val3 ; | |
34111 | int ecode3 = 0 ; | |
34112 | PyObject * obj0 = 0 ; | |
34113 | PyObject * obj1 = 0 ; | |
34114 | PyObject * obj2 = 0 ; | |
34115 | char * kwnames[] = { | |
34116 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
34117 | }; | |
34118 | ||
34119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34120 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34121 | if (!SWIG_IsOK(ecode1)) { | |
34122 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
34123 | } | |
34124 | arg1 = static_cast< int >(val1); | |
34125 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34126 | if (!SWIG_IsOK(ecode2)) { | |
34127 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
34128 | } | |
34129 | arg2 = static_cast< int >(val2); | |
34130 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34131 | if (!SWIG_IsOK(ecode3)) { | |
34132 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
34133 | } | |
34134 | arg3 = static_cast< bool >(val3); | |
34135 | { | |
34136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34137 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
34138 | wxPyEndAllowThreads(__tstate); | |
34139 | if (PyErr_Occurred()) SWIG_fail; | |
34140 | } | |
34141 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
34142 | return resultobj; | |
34143 | fail: | |
34144 | return NULL; | |
34145 | } | |
34146 | ||
34147 | ||
34148 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34149 | PyObject *resultobj = 0; | |
34150 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34151 | void *argp1 = 0 ; | |
34152 | int res1 = 0 ; | |
34153 | PyObject *swig_obj[1] ; | |
34154 | ||
34155 | if (!args) SWIG_fail; | |
34156 | swig_obj[0] = args; | |
34157 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
34158 | if (!SWIG_IsOK(res1)) { | |
34159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34160 | } | |
34161 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34162 | { | |
34163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34164 | delete arg1; | |
34165 | ||
34166 | wxPyEndAllowThreads(__tstate); | |
34167 | if (PyErr_Occurred()) SWIG_fail; | |
34168 | } | |
34169 | resultobj = SWIG_Py_Void(); | |
34170 | return resultobj; | |
34171 | fail: | |
34172 | return NULL; | |
34173 | } | |
34174 | ||
34175 | ||
34176 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34177 | PyObject *resultobj = 0; | |
34178 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34179 | int result; | |
34180 | void *argp1 = 0 ; | |
34181 | int res1 = 0 ; | |
34182 | PyObject *swig_obj[1] ; | |
34183 | ||
34184 | if (!args) SWIG_fail; | |
34185 | swig_obj[0] = args; | |
34186 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34187 | if (!SWIG_IsOK(res1)) { | |
34188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34189 | } | |
34190 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34191 | result = (int)(int) ((arg1)->widthSash); | |
34192 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34193 | return resultobj; | |
34194 | fail: | |
34195 | return NULL; | |
34196 | } | |
34197 | ||
34198 | ||
34199 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34200 | PyObject *resultobj = 0; | |
34201 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34202 | int result; | |
34203 | void *argp1 = 0 ; | |
34204 | int res1 = 0 ; | |
34205 | PyObject *swig_obj[1] ; | |
34206 | ||
34207 | if (!args) SWIG_fail; | |
34208 | swig_obj[0] = args; | |
34209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34210 | if (!SWIG_IsOK(res1)) { | |
34211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34212 | } | |
34213 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34214 | result = (int)(int) ((arg1)->border); | |
34215 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34216 | return resultobj; | |
34217 | fail: | |
34218 | return NULL; | |
34219 | } | |
34220 | ||
34221 | ||
34222 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34223 | PyObject *resultobj = 0; | |
34224 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34225 | bool result; | |
34226 | void *argp1 = 0 ; | |
34227 | int res1 = 0 ; | |
34228 | PyObject *swig_obj[1] ; | |
34229 | ||
34230 | if (!args) SWIG_fail; | |
34231 | swig_obj[0] = args; | |
34232 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34233 | if (!SWIG_IsOK(res1)) { | |
34234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34235 | } | |
34236 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34237 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
34238 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
34239 | return resultobj; | |
34240 | fail: | |
34241 | return NULL; | |
34242 | } | |
34243 | ||
34244 | ||
34245 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34246 | PyObject *obj; | |
34247 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34248 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
34249 | return SWIG_Py_Void(); | |
34250 | } | |
34251 | ||
34252 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34253 | return SWIG_Python_InitShadowInstance(args); | |
34254 | } | |
34255 | ||
33d6fd3b RD |
34256 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34257 | PyObject *resultobj = 0; | |
34258 | wxHeaderButtonParams *result = 0 ; | |
34259 | ||
34260 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
34261 | { | |
34262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34263 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
34264 | wxPyEndAllowThreads(__tstate); | |
34265 | if (PyErr_Occurred()) SWIG_fail; | |
34266 | } | |
34267 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
34268 | return resultobj; | |
34269 | fail: | |
34270 | return NULL; | |
34271 | } | |
34272 | ||
34273 | ||
34274 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34275 | PyObject *resultobj = 0; | |
34276 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34277 | void *argp1 = 0 ; | |
34278 | int res1 = 0 ; | |
34279 | PyObject *swig_obj[1] ; | |
34280 | ||
34281 | if (!args) SWIG_fail; | |
34282 | swig_obj[0] = args; | |
34283 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
34284 | if (!SWIG_IsOK(res1)) { | |
34285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34286 | } | |
34287 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34288 | { | |
34289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34290 | delete arg1; | |
34291 | ||
34292 | wxPyEndAllowThreads(__tstate); | |
34293 | if (PyErr_Occurred()) SWIG_fail; | |
34294 | } | |
34295 | resultobj = SWIG_Py_Void(); | |
34296 | return resultobj; | |
34297 | fail: | |
34298 | return NULL; | |
34299 | } | |
34300 | ||
34301 | ||
34302 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34303 | PyObject *resultobj = 0; | |
34304 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34305 | wxColour *arg2 = (wxColour *) 0 ; | |
34306 | void *argp1 = 0 ; | |
34307 | int res1 = 0 ; | |
34308 | wxColour temp2 ; | |
34309 | PyObject *swig_obj[2] ; | |
34310 | ||
34311 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
34312 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34313 | if (!SWIG_IsOK(res1)) { | |
34314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34315 | } | |
34316 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34317 | { | |
34318 | arg2 = &temp2; | |
34319 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34320 | } | |
34321 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
34322 | ||
34323 | resultobj = SWIG_Py_Void(); | |
34324 | return resultobj; | |
34325 | fail: | |
34326 | return NULL; | |
34327 | } | |
34328 | ||
34329 | ||
34330 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34331 | PyObject *resultobj = 0; | |
34332 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34333 | wxColour *result = 0 ; | |
34334 | void *argp1 = 0 ; | |
34335 | int res1 = 0 ; | |
34336 | PyObject *swig_obj[1] ; | |
34337 | ||
34338 | if (!args) SWIG_fail; | |
34339 | swig_obj[0] = args; | |
34340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34341 | if (!SWIG_IsOK(res1)) { | |
34342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34343 | } | |
34344 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34345 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
34346 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34347 | return resultobj; | |
34348 | fail: | |
34349 | return NULL; | |
34350 | } | |
34351 | ||
34352 | ||
34353 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34354 | PyObject *resultobj = 0; | |
34355 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34356 | wxColour *arg2 = (wxColour *) 0 ; | |
34357 | void *argp1 = 0 ; | |
34358 | int res1 = 0 ; | |
34359 | wxColour temp2 ; | |
34360 | PyObject *swig_obj[2] ; | |
34361 | ||
34362 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
34363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34364 | if (!SWIG_IsOK(res1)) { | |
34365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34366 | } | |
34367 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34368 | { | |
34369 | arg2 = &temp2; | |
34370 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34371 | } | |
34372 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
34373 | ||
34374 | resultobj = SWIG_Py_Void(); | |
34375 | return resultobj; | |
34376 | fail: | |
34377 | return NULL; | |
34378 | } | |
34379 | ||
34380 | ||
34381 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34382 | PyObject *resultobj = 0; | |
34383 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34384 | wxColour *result = 0 ; | |
34385 | void *argp1 = 0 ; | |
34386 | int res1 = 0 ; | |
34387 | PyObject *swig_obj[1] ; | |
34388 | ||
34389 | if (!args) SWIG_fail; | |
34390 | swig_obj[0] = args; | |
34391 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34392 | if (!SWIG_IsOK(res1)) { | |
34393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34394 | } | |
34395 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34396 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
34397 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34398 | return resultobj; | |
34399 | fail: | |
34400 | return NULL; | |
34401 | } | |
34402 | ||
34403 | ||
34404 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34405 | PyObject *resultobj = 0; | |
34406 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34407 | wxString *arg2 = (wxString *) 0 ; | |
34408 | void *argp1 = 0 ; | |
34409 | int res1 = 0 ; | |
34410 | bool temp2 = false ; | |
34411 | PyObject *swig_obj[2] ; | |
34412 | ||
34413 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
34414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34415 | if (!SWIG_IsOK(res1)) { | |
34416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34417 | } | |
34418 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34419 | { | |
34420 | arg2 = wxString_in_helper(swig_obj[1]); | |
34421 | if (arg2 == NULL) SWIG_fail; | |
34422 | temp2 = true; | |
34423 | } | |
34424 | if (arg1) (arg1)->m_labelText = *arg2; | |
34425 | ||
34426 | resultobj = SWIG_Py_Void(); | |
34427 | { | |
34428 | if (temp2) | |
34429 | delete arg2; | |
34430 | } | |
34431 | return resultobj; | |
34432 | fail: | |
34433 | { | |
34434 | if (temp2) | |
34435 | delete arg2; | |
34436 | } | |
34437 | return NULL; | |
34438 | } | |
34439 | ||
34440 | ||
34441 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34442 | PyObject *resultobj = 0; | |
34443 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34444 | wxString *result = 0 ; | |
34445 | void *argp1 = 0 ; | |
34446 | int res1 = 0 ; | |
34447 | PyObject *swig_obj[1] ; | |
34448 | ||
34449 | if (!args) SWIG_fail; | |
34450 | swig_obj[0] = args; | |
34451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34452 | if (!SWIG_IsOK(res1)) { | |
34453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34454 | } | |
34455 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34456 | result = (wxString *)& ((arg1)->m_labelText); | |
34457 | { | |
34458 | #if wxUSE_UNICODE | |
34459 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
34460 | #else | |
34461 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
34462 | #endif | |
34463 | } | |
34464 | return resultobj; | |
34465 | fail: | |
34466 | return NULL; | |
34467 | } | |
34468 | ||
34469 | ||
34470 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34471 | PyObject *resultobj = 0; | |
34472 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34473 | wxFont *arg2 = (wxFont *) 0 ; | |
34474 | void *argp1 = 0 ; | |
34475 | int res1 = 0 ; | |
34476 | void *argp2 = 0 ; | |
34477 | int res2 = 0 ; | |
34478 | PyObject *swig_obj[2] ; | |
34479 | ||
34480 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
34481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34482 | if (!SWIG_IsOK(res1)) { | |
34483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34484 | } | |
34485 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34486 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
34487 | if (!SWIG_IsOK(res2)) { | |
34488 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
34489 | } | |
34490 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
34491 | if (arg1) (arg1)->m_labelFont = *arg2; | |
34492 | ||
34493 | resultobj = SWIG_Py_Void(); | |
34494 | return resultobj; | |
34495 | fail: | |
34496 | return NULL; | |
34497 | } | |
34498 | ||
34499 | ||
34500 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34501 | PyObject *resultobj = 0; | |
34502 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34503 | wxFont *result = 0 ; | |
34504 | void *argp1 = 0 ; | |
34505 | int res1 = 0 ; | |
34506 | PyObject *swig_obj[1] ; | |
34507 | ||
34508 | if (!args) SWIG_fail; | |
34509 | swig_obj[0] = args; | |
34510 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34511 | if (!SWIG_IsOK(res1)) { | |
34512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34513 | } | |
34514 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34515 | result = (wxFont *)& ((arg1)->m_labelFont); | |
34516 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
34517 | return resultobj; | |
34518 | fail: | |
34519 | return NULL; | |
34520 | } | |
34521 | ||
34522 | ||
34523 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34524 | PyObject *resultobj = 0; | |
34525 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34526 | wxColour *arg2 = (wxColour *) 0 ; | |
34527 | void *argp1 = 0 ; | |
34528 | int res1 = 0 ; | |
34529 | wxColour temp2 ; | |
34530 | PyObject *swig_obj[2] ; | |
34531 | ||
34532 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
34533 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34534 | if (!SWIG_IsOK(res1)) { | |
34535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34536 | } | |
34537 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34538 | { | |
34539 | arg2 = &temp2; | |
34540 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34541 | } | |
34542 | if (arg1) (arg1)->m_labelColour = *arg2; | |
34543 | ||
34544 | resultobj = SWIG_Py_Void(); | |
34545 | return resultobj; | |
34546 | fail: | |
34547 | return NULL; | |
34548 | } | |
34549 | ||
34550 | ||
34551 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34552 | PyObject *resultobj = 0; | |
34553 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34554 | wxColour *result = 0 ; | |
34555 | void *argp1 = 0 ; | |
34556 | int res1 = 0 ; | |
34557 | PyObject *swig_obj[1] ; | |
34558 | ||
34559 | if (!args) SWIG_fail; | |
34560 | swig_obj[0] = args; | |
34561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34562 | if (!SWIG_IsOK(res1)) { | |
34563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34564 | } | |
34565 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34566 | result = (wxColour *)& ((arg1)->m_labelColour); | |
34567 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34568 | return resultobj; | |
34569 | fail: | |
34570 | return NULL; | |
34571 | } | |
34572 | ||
34573 | ||
34574 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34575 | PyObject *resultobj = 0; | |
34576 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34577 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
34578 | void *argp1 = 0 ; | |
34579 | int res1 = 0 ; | |
34580 | void *argp2 = 0 ; | |
34581 | int res2 = 0 ; | |
34582 | PyObject *swig_obj[2] ; | |
34583 | ||
34584 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
34585 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34586 | if (!SWIG_IsOK(res1)) { | |
34587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34588 | } | |
34589 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34590 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34591 | if (!SWIG_IsOK(res2)) { | |
34592 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
34593 | } | |
34594 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
34595 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
34596 | ||
34597 | resultobj = SWIG_Py_Void(); | |
34598 | return resultobj; | |
34599 | fail: | |
34600 | return NULL; | |
34601 | } | |
34602 | ||
34603 | ||
34604 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34605 | PyObject *resultobj = 0; | |
34606 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34607 | wxBitmap *result = 0 ; | |
34608 | void *argp1 = 0 ; | |
34609 | int res1 = 0 ; | |
34610 | PyObject *swig_obj[1] ; | |
34611 | ||
34612 | if (!args) SWIG_fail; | |
34613 | swig_obj[0] = args; | |
34614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34615 | if (!SWIG_IsOK(res1)) { | |
34616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34617 | } | |
34618 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34619 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
34620 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34621 | return resultobj; | |
34622 | fail: | |
34623 | return NULL; | |
34624 | } | |
34625 | ||
34626 | ||
34627 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34628 | PyObject *resultobj = 0; | |
34629 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34630 | int arg2 ; | |
34631 | void *argp1 = 0 ; | |
34632 | int res1 = 0 ; | |
34633 | int val2 ; | |
34634 | int ecode2 = 0 ; | |
34635 | PyObject *swig_obj[2] ; | |
34636 | ||
34637 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
34638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34639 | if (!SWIG_IsOK(res1)) { | |
34640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34641 | } | |
34642 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34643 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
34644 | if (!SWIG_IsOK(ecode2)) { | |
34645 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
34646 | } | |
34647 | arg2 = static_cast< int >(val2); | |
34648 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
34649 | ||
34650 | resultobj = SWIG_Py_Void(); | |
34651 | return resultobj; | |
34652 | fail: | |
34653 | return NULL; | |
34654 | } | |
34655 | ||
34656 | ||
34657 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34658 | PyObject *resultobj = 0; | |
34659 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34660 | int result; | |
34661 | void *argp1 = 0 ; | |
34662 | int res1 = 0 ; | |
34663 | PyObject *swig_obj[1] ; | |
34664 | ||
34665 | if (!args) SWIG_fail; | |
34666 | swig_obj[0] = args; | |
34667 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34668 | if (!SWIG_IsOK(res1)) { | |
34669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34670 | } | |
34671 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34672 | result = (int) ((arg1)->m_labelAlignment); | |
34673 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34674 | return resultobj; | |
34675 | fail: | |
34676 | return NULL; | |
34677 | } | |
34678 | ||
34679 | ||
34680 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34681 | PyObject *obj; | |
34682 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34683 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
34684 | return SWIG_Py_Void(); | |
34685 | } | |
34686 | ||
34687 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34688 | return SWIG_Python_InitShadowInstance(args); | |
34689 | } | |
34690 | ||
554f62e9 RD |
34691 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34692 | PyObject *resultobj = 0; | |
34693 | int arg1 ; | |
34694 | int arg2 ; | |
34695 | wxRendererVersion *result = 0 ; | |
34696 | int val1 ; | |
34697 | int ecode1 = 0 ; | |
34698 | int val2 ; | |
34699 | int ecode2 = 0 ; | |
34700 | PyObject * obj0 = 0 ; | |
34701 | PyObject * obj1 = 0 ; | |
34702 | char * kwnames[] = { | |
34703 | (char *) "version_",(char *) "age_", NULL | |
34704 | }; | |
34705 | ||
34706 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
34707 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34708 | if (!SWIG_IsOK(ecode1)) { | |
34709 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
34710 | } | |
34711 | arg1 = static_cast< int >(val1); | |
34712 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34713 | if (!SWIG_IsOK(ecode2)) { | |
34714 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
34715 | } | |
34716 | arg2 = static_cast< int >(val2); | |
34717 | { | |
34718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34719 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
34720 | wxPyEndAllowThreads(__tstate); | |
34721 | if (PyErr_Occurred()) SWIG_fail; | |
34722 | } | |
34723 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
34724 | return resultobj; | |
34725 | fail: | |
34726 | return NULL; | |
34727 | } | |
34728 | ||
34729 | ||
34730 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34731 | PyObject *resultobj = 0; | |
34732 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34733 | void *argp1 = 0 ; | |
34734 | int res1 = 0 ; | |
34735 | PyObject *swig_obj[1] ; | |
34736 | ||
34737 | if (!args) SWIG_fail; | |
34738 | swig_obj[0] = args; | |
34739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
34740 | if (!SWIG_IsOK(res1)) { | |
34741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34742 | } | |
34743 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34744 | { | |
34745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34746 | delete arg1; | |
34747 | ||
34748 | wxPyEndAllowThreads(__tstate); | |
34749 | if (PyErr_Occurred()) SWIG_fail; | |
34750 | } | |
34751 | resultobj = SWIG_Py_Void(); | |
34752 | return resultobj; | |
34753 | fail: | |
34754 | return NULL; | |
34755 | } | |
34756 | ||
34757 | ||
34758 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34759 | PyObject *resultobj = 0; | |
34760 | wxRendererVersion *arg1 = 0 ; | |
34761 | bool result; | |
34762 | void *argp1 = 0 ; | |
34763 | int res1 = 0 ; | |
34764 | PyObject * obj0 = 0 ; | |
34765 | char * kwnames[] = { | |
34766 | (char *) "ver", NULL | |
34767 | }; | |
34768 | ||
34769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
34770 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
34771 | if (!SWIG_IsOK(res1)) { | |
34772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34773 | } | |
34774 | if (!argp1) { | |
34775 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34776 | } | |
34777 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34778 | { | |
34779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34780 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
34781 | wxPyEndAllowThreads(__tstate); | |
34782 | if (PyErr_Occurred()) SWIG_fail; | |
34783 | } | |
34784 | { | |
34785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34786 | } | |
34787 | return resultobj; | |
34788 | fail: | |
34789 | return NULL; | |
34790 | } | |
34791 | ||
34792 | ||
34793 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34794 | PyObject *resultobj = 0; | |
34795 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34796 | int result; | |
34797 | void *argp1 = 0 ; | |
34798 | int res1 = 0 ; | |
34799 | PyObject *swig_obj[1] ; | |
34800 | ||
34801 | if (!args) SWIG_fail; | |
34802 | swig_obj[0] = args; | |
34803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34804 | if (!SWIG_IsOK(res1)) { | |
34805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34806 | } | |
34807 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34808 | result = (int)(int) ((arg1)->version); | |
34809 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34810 | return resultobj; | |
34811 | fail: | |
34812 | return NULL; | |
34813 | } | |
34814 | ||
34815 | ||
34816 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34817 | PyObject *resultobj = 0; | |
34818 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34819 | int result; | |
34820 | void *argp1 = 0 ; | |
34821 | int res1 = 0 ; | |
34822 | PyObject *swig_obj[1] ; | |
34823 | ||
34824 | if (!args) SWIG_fail; | |
34825 | swig_obj[0] = args; | |
34826 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34827 | if (!SWIG_IsOK(res1)) { | |
34828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34829 | } | |
34830 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34831 | result = (int)(int) ((arg1)->age); | |
34832 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34833 | return resultobj; | |
34834 | fail: | |
34835 | return NULL; | |
34836 | } | |
34837 | ||
34838 | ||
34839 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34840 | PyObject *obj; | |
34841 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34842 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
34843 | return SWIG_Py_Void(); | |
34844 | } | |
34845 | ||
34846 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34847 | return SWIG_Python_InitShadowInstance(args); | |
34848 | } | |
34849 | ||
34850 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
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 ; | |
33d6fd3b RD |
34857 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
34858 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
554f62e9 RD |
34859 | void *argp1 = 0 ; |
34860 | int res1 = 0 ; | |
34861 | void *argp2 = 0 ; | |
34862 | int res2 = 0 ; | |
34863 | void *argp3 = 0 ; | |
34864 | int res3 = 0 ; | |
34865 | wxRect temp4 ; | |
34866 | int val5 ; | |
34867 | int ecode5 = 0 ; | |
33d6fd3b RD |
34868 | int val6 ; |
34869 | int ecode6 = 0 ; | |
34870 | void *argp7 = 0 ; | |
34871 | int res7 = 0 ; | |
554f62e9 RD |
34872 | PyObject * obj0 = 0 ; |
34873 | PyObject * obj1 = 0 ; | |
34874 | PyObject * obj2 = 0 ; | |
34875 | PyObject * obj3 = 0 ; | |
34876 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
34877 | PyObject * obj5 = 0 ; |
34878 | PyObject * obj6 = 0 ; | |
554f62e9 | 34879 | char * kwnames[] = { |
33d6fd3b | 34880 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
554f62e9 RD |
34881 | }; |
34882 | ||
33d6fd3b | 34883 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
554f62e9 RD |
34884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34885 | if (!SWIG_IsOK(res1)) { | |
34886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34887 | } | |
34888 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34889 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34890 | if (!SWIG_IsOK(res2)) { | |
34891 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34892 | } | |
34893 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34894 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34895 | if (!SWIG_IsOK(res3)) { | |
34896 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34897 | } | |
34898 | if (!argp3) { | |
34899 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34900 | } | |
34901 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34902 | { | |
34903 | arg4 = &temp4; | |
34904 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34905 | } | |
34906 | if (obj4) { | |
34907 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34908 | if (!SWIG_IsOK(ecode5)) { | |
34909 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
34910 | } | |
34911 | arg5 = static_cast< int >(val5); | |
34912 | } | |
33d6fd3b RD |
34913 | if (obj5) { |
34914 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34915 | if (!SWIG_IsOK(ecode6)) { | |
34916 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34917 | } | |
34918 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34919 | } | |
34920 | if (obj6) { | |
34921 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34922 | if (!SWIG_IsOK(res7)) { | |
34923 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
34924 | } | |
34925 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
34926 | } | |
34927 | { | |
34928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34929 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
34930 | wxPyEndAllowThreads(__tstate); | |
34931 | if (PyErr_Occurred()) SWIG_fail; | |
34932 | } | |
34933 | resultobj = SWIG_Py_Void(); | |
34934 | return resultobj; | |
34935 | fail: | |
34936 | return NULL; | |
34937 | } | |
34938 | ||
34939 | ||
34940 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34941 | PyObject *resultobj = 0; | |
34942 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34943 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34944 | wxDC *arg3 = 0 ; | |
34945 | wxRect *arg4 = 0 ; | |
34946 | int arg5 = (int) 0 ; | |
34947 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
34948 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
34949 | void *argp1 = 0 ; | |
34950 | int res1 = 0 ; | |
34951 | void *argp2 = 0 ; | |
34952 | int res2 = 0 ; | |
34953 | void *argp3 = 0 ; | |
34954 | int res3 = 0 ; | |
34955 | wxRect temp4 ; | |
34956 | int val5 ; | |
34957 | int ecode5 = 0 ; | |
34958 | int val6 ; | |
34959 | int ecode6 = 0 ; | |
34960 | void *argp7 = 0 ; | |
34961 | int res7 = 0 ; | |
34962 | PyObject * obj0 = 0 ; | |
34963 | PyObject * obj1 = 0 ; | |
34964 | PyObject * obj2 = 0 ; | |
34965 | PyObject * obj3 = 0 ; | |
34966 | PyObject * obj4 = 0 ; | |
34967 | PyObject * obj5 = 0 ; | |
34968 | PyObject * obj6 = 0 ; | |
34969 | char * kwnames[] = { | |
34970 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
34971 | }; | |
34972 | ||
34973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34975 | if (!SWIG_IsOK(res1)) { | |
34976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34977 | } | |
34978 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34979 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34980 | if (!SWIG_IsOK(res2)) { | |
34981 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34982 | } | |
34983 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34984 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34985 | if (!SWIG_IsOK(res3)) { | |
34986 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34987 | } | |
34988 | if (!argp3) { | |
34989 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34990 | } | |
34991 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34992 | { | |
34993 | arg4 = &temp4; | |
34994 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34995 | } | |
34996 | if (obj4) { | |
34997 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34998 | if (!SWIG_IsOK(ecode5)) { | |
34999 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
35000 | } | |
35001 | arg5 = static_cast< int >(val5); | |
35002 | } | |
35003 | if (obj5) { | |
35004 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35005 | if (!SWIG_IsOK(ecode6)) { | |
35006 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
35007 | } | |
35008 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
35009 | } | |
35010 | if (obj6) { | |
35011 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
35012 | if (!SWIG_IsOK(res7)) { | |
35013 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
35014 | } | |
35015 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
35016 | } | |
554f62e9 RD |
35017 | { |
35018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 35019 | (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
554f62e9 RD |
35020 | wxPyEndAllowThreads(__tstate); |
35021 | if (PyErr_Occurred()) SWIG_fail; | |
35022 | } | |
35023 | resultobj = SWIG_Py_Void(); | |
35024 | return resultobj; | |
35025 | fail: | |
35026 | return NULL; | |
35027 | } | |
35028 | ||
35029 | ||
33d6fd3b RD |
35030 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35031 | PyObject *resultobj = 0; | |
35032 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35033 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35034 | int result; | |
35035 | void *argp1 = 0 ; | |
35036 | int res1 = 0 ; | |
35037 | void *argp2 = 0 ; | |
35038 | int res2 = 0 ; | |
35039 | PyObject * obj0 = 0 ; | |
35040 | PyObject * obj1 = 0 ; | |
35041 | char * kwnames[] = { | |
35042 | (char *) "self",(char *) "win", NULL | |
35043 | }; | |
35044 | ||
35045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
35046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35047 | if (!SWIG_IsOK(res1)) { | |
35048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35049 | } | |
35050 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35051 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35052 | if (!SWIG_IsOK(res2)) { | |
35053 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35054 | } | |
35055 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35056 | { | |
35057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35058 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
35059 | wxPyEndAllowThreads(__tstate); | |
35060 | if (PyErr_Occurred()) SWIG_fail; | |
35061 | } | |
35062 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35063 | return resultobj; | |
35064 | fail: | |
35065 | return NULL; | |
35066 | } | |
35067 | ||
35068 | ||
554f62e9 RD |
35069 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35070 | PyObject *resultobj = 0; | |
35071 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35072 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35073 | wxDC *arg3 = 0 ; | |
35074 | wxRect *arg4 = 0 ; | |
35075 | int arg5 = (int) 0 ; | |
35076 | void *argp1 = 0 ; | |
35077 | int res1 = 0 ; | |
35078 | void *argp2 = 0 ; | |
35079 | int res2 = 0 ; | |
35080 | void *argp3 = 0 ; | |
35081 | int res3 = 0 ; | |
35082 | wxRect temp4 ; | |
35083 | int val5 ; | |
35084 | int ecode5 = 0 ; | |
35085 | PyObject * obj0 = 0 ; | |
35086 | PyObject * obj1 = 0 ; | |
35087 | PyObject * obj2 = 0 ; | |
35088 | PyObject * obj3 = 0 ; | |
35089 | PyObject * obj4 = 0 ; | |
35090 | char * kwnames[] = { | |
35091 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35092 | }; | |
35093 | ||
35094 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35096 | if (!SWIG_IsOK(res1)) { | |
35097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35098 | } | |
35099 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35100 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35101 | if (!SWIG_IsOK(res2)) { | |
35102 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35103 | } | |
35104 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35105 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35106 | if (!SWIG_IsOK(res3)) { | |
35107 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35108 | } | |
35109 | if (!argp3) { | |
35110 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35111 | } | |
35112 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35113 | { | |
35114 | arg4 = &temp4; | |
35115 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35116 | } | |
35117 | if (obj4) { | |
35118 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35119 | if (!SWIG_IsOK(ecode5)) { | |
35120 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
35121 | } | |
35122 | arg5 = static_cast< int >(val5); | |
35123 | } | |
35124 | { | |
35125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35126 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35127 | wxPyEndAllowThreads(__tstate); | |
35128 | if (PyErr_Occurred()) SWIG_fail; | |
35129 | } | |
35130 | resultobj = SWIG_Py_Void(); | |
35131 | return resultobj; | |
35132 | fail: | |
35133 | return NULL; | |
35134 | } | |
35135 | ||
35136 | ||
35137 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35138 | PyObject *resultobj = 0; | |
35139 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35140 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35141 | wxDC *arg3 = 0 ; | |
35142 | wxRect *arg4 = 0 ; | |
35143 | int arg5 = (int) 0 ; | |
35144 | void *argp1 = 0 ; | |
35145 | int res1 = 0 ; | |
35146 | void *argp2 = 0 ; | |
35147 | int res2 = 0 ; | |
35148 | void *argp3 = 0 ; | |
35149 | int res3 = 0 ; | |
35150 | wxRect temp4 ; | |
35151 | int val5 ; | |
35152 | int ecode5 = 0 ; | |
35153 | PyObject * obj0 = 0 ; | |
35154 | PyObject * obj1 = 0 ; | |
35155 | PyObject * obj2 = 0 ; | |
35156 | PyObject * obj3 = 0 ; | |
35157 | PyObject * obj4 = 0 ; | |
35158 | char * kwnames[] = { | |
35159 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35160 | }; | |
35161 | ||
35162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35164 | if (!SWIG_IsOK(res1)) { | |
35165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35166 | } | |
35167 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35168 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35169 | if (!SWIG_IsOK(res2)) { | |
35170 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35171 | } | |
35172 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35173 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35174 | if (!SWIG_IsOK(res3)) { | |
35175 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35176 | } | |
35177 | if (!argp3) { | |
35178 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35179 | } | |
35180 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35181 | { | |
35182 | arg4 = &temp4; | |
35183 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35184 | } | |
35185 | if (obj4) { | |
35186 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35187 | if (!SWIG_IsOK(ecode5)) { | |
35188 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
35189 | } | |
35190 | arg5 = static_cast< int >(val5); | |
35191 | } | |
35192 | { | |
35193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35194 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35195 | wxPyEndAllowThreads(__tstate); | |
35196 | if (PyErr_Occurred()) SWIG_fail; | |
35197 | } | |
35198 | resultobj = SWIG_Py_Void(); | |
35199 | return resultobj; | |
35200 | fail: | |
35201 | return NULL; | |
35202 | } | |
35203 | ||
35204 | ||
35205 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35206 | PyObject *resultobj = 0; | |
35207 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35208 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35209 | wxDC *arg3 = 0 ; | |
35210 | wxSize *arg4 = 0 ; | |
35211 | int arg5 ; | |
35212 | wxOrientation arg6 ; | |
35213 | int arg7 = (int) 0 ; | |
35214 | void *argp1 = 0 ; | |
35215 | int res1 = 0 ; | |
35216 | void *argp2 = 0 ; | |
35217 | int res2 = 0 ; | |
35218 | void *argp3 = 0 ; | |
35219 | int res3 = 0 ; | |
35220 | wxSize temp4 ; | |
35221 | int val5 ; | |
35222 | int ecode5 = 0 ; | |
35223 | int val6 ; | |
35224 | int ecode6 = 0 ; | |
35225 | int val7 ; | |
35226 | int ecode7 = 0 ; | |
35227 | PyObject * obj0 = 0 ; | |
35228 | PyObject * obj1 = 0 ; | |
35229 | PyObject * obj2 = 0 ; | |
35230 | PyObject * obj3 = 0 ; | |
35231 | PyObject * obj4 = 0 ; | |
35232 | PyObject * obj5 = 0 ; | |
35233 | PyObject * obj6 = 0 ; | |
35234 | char * kwnames[] = { | |
35235 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
35236 | }; | |
35237 | ||
35238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35240 | if (!SWIG_IsOK(res1)) { | |
35241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35242 | } | |
35243 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35244 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35245 | if (!SWIG_IsOK(res2)) { | |
35246 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35247 | } | |
35248 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35249 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35250 | if (!SWIG_IsOK(res3)) { | |
35251 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35252 | } | |
35253 | if (!argp3) { | |
35254 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35255 | } | |
35256 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35257 | { | |
35258 | arg4 = &temp4; | |
35259 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
35260 | } | |
35261 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35262 | if (!SWIG_IsOK(ecode5)) { | |
35263 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
35264 | } | |
35265 | arg5 = static_cast< int >(val5); | |
35266 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35267 | if (!SWIG_IsOK(ecode6)) { | |
35268 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
35269 | } | |
35270 | arg6 = static_cast< wxOrientation >(val6); | |
35271 | if (obj6) { | |
35272 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
35273 | if (!SWIG_IsOK(ecode7)) { | |
35274 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
35275 | } | |
35276 | arg7 = static_cast< int >(val7); | |
35277 | } | |
35278 | { | |
35279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35280 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
35281 | wxPyEndAllowThreads(__tstate); | |
35282 | if (PyErr_Occurred()) SWIG_fail; | |
35283 | } | |
35284 | resultobj = SWIG_Py_Void(); | |
35285 | return resultobj; | |
35286 | fail: | |
35287 | return NULL; | |
35288 | } | |
35289 | ||
35290 | ||
35291 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35292 | PyObject *resultobj = 0; | |
35293 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35294 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35295 | wxDC *arg3 = 0 ; | |
35296 | wxRect *arg4 = 0 ; | |
35297 | int arg5 = (int) 0 ; | |
35298 | void *argp1 = 0 ; | |
35299 | int res1 = 0 ; | |
35300 | void *argp2 = 0 ; | |
35301 | int res2 = 0 ; | |
35302 | void *argp3 = 0 ; | |
35303 | int res3 = 0 ; | |
35304 | wxRect temp4 ; | |
35305 | int val5 ; | |
35306 | int ecode5 = 0 ; | |
35307 | PyObject * obj0 = 0 ; | |
35308 | PyObject * obj1 = 0 ; | |
35309 | PyObject * obj2 = 0 ; | |
35310 | PyObject * obj3 = 0 ; | |
35311 | PyObject * obj4 = 0 ; | |
35312 | char * kwnames[] = { | |
35313 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35314 | }; | |
35315 | ||
35316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35318 | if (!SWIG_IsOK(res1)) { | |
35319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35320 | } | |
35321 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35322 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35323 | if (!SWIG_IsOK(res2)) { | |
35324 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35325 | } | |
35326 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35327 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35328 | if (!SWIG_IsOK(res3)) { | |
35329 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35330 | } | |
35331 | if (!argp3) { | |
35332 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35333 | } | |
35334 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35335 | { | |
35336 | arg4 = &temp4; | |
35337 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35338 | } | |
35339 | if (obj4) { | |
35340 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35341 | if (!SWIG_IsOK(ecode5)) { | |
35342 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
35343 | } | |
35344 | arg5 = static_cast< int >(val5); | |
35345 | } | |
35346 | { | |
35347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35348 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35349 | wxPyEndAllowThreads(__tstate); | |
35350 | if (PyErr_Occurred()) SWIG_fail; | |
35351 | } | |
35352 | resultobj = SWIG_Py_Void(); | |
35353 | return resultobj; | |
35354 | fail: | |
35355 | return NULL; | |
35356 | } | |
35357 | ||
35358 | ||
35359 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35360 | PyObject *resultobj = 0; | |
35361 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35362 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35363 | wxDC *arg3 = 0 ; | |
35364 | wxRect *arg4 = 0 ; | |
35365 | int arg5 = (int) 0 ; | |
35366 | void *argp1 = 0 ; | |
35367 | int res1 = 0 ; | |
35368 | void *argp2 = 0 ; | |
35369 | int res2 = 0 ; | |
35370 | void *argp3 = 0 ; | |
35371 | int res3 = 0 ; | |
35372 | wxRect temp4 ; | |
35373 | int val5 ; | |
35374 | int ecode5 = 0 ; | |
35375 | PyObject * obj0 = 0 ; | |
35376 | PyObject * obj1 = 0 ; | |
35377 | PyObject * obj2 = 0 ; | |
35378 | PyObject * obj3 = 0 ; | |
35379 | PyObject * obj4 = 0 ; | |
35380 | char * kwnames[] = { | |
35381 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35382 | }; | |
35383 | ||
35384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35386 | if (!SWIG_IsOK(res1)) { | |
35387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35388 | } | |
35389 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35390 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35391 | if (!SWIG_IsOK(res2)) { | |
35392 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35393 | } | |
35394 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35395 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35396 | if (!SWIG_IsOK(res3)) { | |
35397 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35398 | } | |
35399 | if (!argp3) { | |
35400 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35401 | } | |
35402 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35403 | { | |
35404 | arg4 = &temp4; | |
35405 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35406 | } | |
35407 | if (obj4) { | |
35408 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35409 | if (!SWIG_IsOK(ecode5)) { | |
35410 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
35411 | } | |
35412 | arg5 = static_cast< int >(val5); | |
35413 | } | |
35414 | { | |
35415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35416 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35417 | wxPyEndAllowThreads(__tstate); | |
35418 | if (PyErr_Occurred()) SWIG_fail; | |
35419 | } | |
35420 | resultobj = SWIG_Py_Void(); | |
35421 | return resultobj; | |
35422 | fail: | |
35423 | return NULL; | |
35424 | } | |
35425 | ||
35426 | ||
f460c29d RD |
35427 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35428 | PyObject *resultobj = 0; | |
35429 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35430 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35431 | wxDC *arg3 = 0 ; | |
35432 | wxRect *arg4 = 0 ; | |
35433 | int arg5 = (int) 0 ; | |
35434 | void *argp1 = 0 ; | |
35435 | int res1 = 0 ; | |
35436 | void *argp2 = 0 ; | |
35437 | int res2 = 0 ; | |
35438 | void *argp3 = 0 ; | |
35439 | int res3 = 0 ; | |
35440 | wxRect temp4 ; | |
35441 | int val5 ; | |
35442 | int ecode5 = 0 ; | |
35443 | PyObject * obj0 = 0 ; | |
35444 | PyObject * obj1 = 0 ; | |
35445 | PyObject * obj2 = 0 ; | |
35446 | PyObject * obj3 = 0 ; | |
35447 | PyObject * obj4 = 0 ; | |
35448 | char * kwnames[] = { | |
35449 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35450 | }; | |
35451 | ||
35452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35454 | if (!SWIG_IsOK(res1)) { | |
35455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35456 | } | |
35457 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35458 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35459 | if (!SWIG_IsOK(res2)) { | |
35460 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35461 | } | |
35462 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35463 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35464 | if (!SWIG_IsOK(res3)) { | |
35465 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35466 | } | |
35467 | if (!argp3) { | |
35468 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35469 | } | |
35470 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35471 | { | |
35472 | arg4 = &temp4; | |
35473 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35474 | } | |
35475 | if (obj4) { | |
35476 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35477 | if (!SWIG_IsOK(ecode5)) { | |
35478 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
35479 | } | |
35480 | arg5 = static_cast< int >(val5); | |
35481 | } | |
35482 | { | |
35483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35484 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35485 | wxPyEndAllowThreads(__tstate); | |
35486 | if (PyErr_Occurred()) SWIG_fail; | |
35487 | } | |
35488 | resultobj = SWIG_Py_Void(); | |
35489 | return resultobj; | |
35490 | fail: | |
35491 | return NULL; | |
35492 | } | |
35493 | ||
35494 | ||
35495 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35496 | PyObject *resultobj = 0; | |
35497 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35498 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35499 | wxDC *arg3 = 0 ; | |
35500 | wxRect *arg4 = 0 ; | |
35501 | int arg5 = (int) 0 ; | |
35502 | void *argp1 = 0 ; | |
35503 | int res1 = 0 ; | |
35504 | void *argp2 = 0 ; | |
35505 | int res2 = 0 ; | |
35506 | void *argp3 = 0 ; | |
35507 | int res3 = 0 ; | |
35508 | wxRect temp4 ; | |
35509 | int val5 ; | |
35510 | int ecode5 = 0 ; | |
35511 | PyObject * obj0 = 0 ; | |
35512 | PyObject * obj1 = 0 ; | |
35513 | PyObject * obj2 = 0 ; | |
35514 | PyObject * obj3 = 0 ; | |
35515 | PyObject * obj4 = 0 ; | |
35516 | char * kwnames[] = { | |
35517 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35518 | }; | |
35519 | ||
35520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35522 | if (!SWIG_IsOK(res1)) { | |
35523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35524 | } | |
35525 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35526 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35527 | if (!SWIG_IsOK(res2)) { | |
35528 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35529 | } | |
35530 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35531 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35532 | if (!SWIG_IsOK(res3)) { | |
35533 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35534 | } | |
35535 | if (!argp3) { | |
35536 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35537 | } | |
35538 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35539 | { | |
35540 | arg4 = &temp4; | |
35541 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35542 | } | |
35543 | if (obj4) { | |
35544 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35545 | if (!SWIG_IsOK(ecode5)) { | |
35546 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
35547 | } | |
35548 | arg5 = static_cast< int >(val5); | |
35549 | } | |
35550 | { | |
35551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35552 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35553 | wxPyEndAllowThreads(__tstate); | |
35554 | if (PyErr_Occurred()) SWIG_fail; | |
35555 | } | |
35556 | resultobj = SWIG_Py_Void(); | |
35557 | return resultobj; | |
35558 | fail: | |
35559 | return NULL; | |
35560 | } | |
35561 | ||
35562 | ||
35563 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
35564 | PyObject *resultobj = 0; |
35565 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35566 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35567 | wxDC *arg3 = 0 ; | |
35568 | wxRect *arg4 = 0 ; | |
35569 | int arg5 = (int) 0 ; | |
35570 | void *argp1 = 0 ; | |
35571 | int res1 = 0 ; | |
35572 | void *argp2 = 0 ; | |
35573 | int res2 = 0 ; | |
35574 | void *argp3 = 0 ; | |
35575 | int res3 = 0 ; | |
35576 | wxRect temp4 ; | |
35577 | int val5 ; | |
35578 | int ecode5 = 0 ; | |
35579 | PyObject * obj0 = 0 ; | |
35580 | PyObject * obj1 = 0 ; | |
35581 | PyObject * obj2 = 0 ; | |
35582 | PyObject * obj3 = 0 ; | |
35583 | PyObject * obj4 = 0 ; | |
35584 | char * kwnames[] = { | |
35585 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35586 | }; | |
35587 | ||
f460c29d | 35588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
35589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
35590 | if (!SWIG_IsOK(res1)) { | |
f460c29d | 35591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
35592 | } |
35593 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35594 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35595 | if (!SWIG_IsOK(res2)) { | |
f460c29d | 35596 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
35597 | } |
35598 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35599 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35600 | if (!SWIG_IsOK(res3)) { | |
f460c29d | 35601 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35602 | } |
35603 | if (!argp3) { | |
f460c29d | 35604 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35605 | } |
35606 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35607 | { | |
35608 | arg4 = &temp4; | |
35609 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35610 | } | |
35611 | if (obj4) { | |
35612 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35613 | if (!SWIG_IsOK(ecode5)) { | |
f460c29d | 35614 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
35615 | } |
35616 | arg5 = static_cast< int >(val5); | |
35617 | } | |
35618 | { | |
35619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f460c29d | 35620 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
35621 | wxPyEndAllowThreads(__tstate); |
35622 | if (PyErr_Occurred()) SWIG_fail; | |
35623 | } | |
35624 | resultobj = SWIG_Py_Void(); | |
35625 | return resultobj; | |
35626 | fail: | |
35627 | return NULL; | |
35628 | } | |
35629 | ||
35630 | ||
554f62e9 RD |
35631 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35632 | PyObject *resultobj = 0; | |
35633 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35634 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35635 | SwigValueWrapper<wxSplitterRenderParams > result; | |
35636 | void *argp1 = 0 ; | |
35637 | int res1 = 0 ; | |
35638 | void *argp2 = 0 ; | |
35639 | int res2 = 0 ; | |
35640 | PyObject * obj0 = 0 ; | |
35641 | PyObject * obj1 = 0 ; | |
35642 | char * kwnames[] = { | |
35643 | (char *) "self",(char *) "win", NULL | |
35644 | }; | |
35645 | ||
35646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
35647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35648 | if (!SWIG_IsOK(res1)) { | |
35649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35650 | } | |
35651 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35652 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35653 | if (!SWIG_IsOK(res2)) { | |
35654 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
35655 | } | |
35656 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35657 | { | |
35658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35659 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
35660 | wxPyEndAllowThreads(__tstate); | |
35661 | if (PyErr_Occurred()) SWIG_fail; | |
35662 | } | |
35663 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
35664 | return resultobj; | |
35665 | fail: | |
35666 | return NULL; | |
35667 | } | |
35668 | ||
35669 | ||
35670 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35671 | PyObject *resultobj = 0; | |
35672 | wxRendererNative *result = 0 ; | |
35673 | ||
35674 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
35675 | { | |
704eda0c | 35676 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 35678 | { |
554f62e9 RD |
35679 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
35680 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 35681 | } |
554f62e9 RD |
35682 | wxPyEndAllowThreads(__tstate); |
35683 | if (PyErr_Occurred()) SWIG_fail; | |
35684 | } | |
35685 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35686 | return resultobj; | |
35687 | fail: | |
35688 | return NULL; | |
35689 | } | |
35690 | ||
35691 | ||
35692 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35693 | PyObject *resultobj = 0; | |
35694 | wxRendererNative *result = 0 ; | |
35695 | ||
35696 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
35697 | { | |
704eda0c | 35698 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 35700 | { |
554f62e9 RD |
35701 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
35702 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 35703 | } |
554f62e9 RD |
35704 | wxPyEndAllowThreads(__tstate); |
35705 | if (PyErr_Occurred()) SWIG_fail; | |
35706 | } | |
35707 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35708 | return resultobj; | |
35709 | fail: | |
35710 | return NULL; | |
35711 | } | |
35712 | ||
35713 | ||
35714 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35715 | PyObject *resultobj = 0; | |
35716 | wxRendererNative *result = 0 ; | |
35717 | ||
35718 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
35719 | { | |
704eda0c | 35720 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 35722 | { |
554f62e9 RD |
35723 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
35724 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 35725 | } |
554f62e9 RD |
35726 | wxPyEndAllowThreads(__tstate); |
35727 | if (PyErr_Occurred()) SWIG_fail; | |
35728 | } | |
35729 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35730 | return resultobj; | |
35731 | fail: | |
35732 | return NULL; | |
35733 | } | |
35734 | ||
35735 | ||
35736 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35737 | PyObject *resultobj = 0; | |
35738 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35739 | wxRendererNative *result = 0 ; | |
35740 | void *argp1 = 0 ; | |
35741 | int res1 = 0 ; | |
35742 | PyObject * obj0 = 0 ; | |
35743 | char * kwnames[] = { | |
35744 | (char *) "renderer", NULL | |
35745 | }; | |
35746 | ||
35747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
35748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35749 | if (!SWIG_IsOK(res1)) { | |
35750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35751 | } | |
35752 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35753 | { | |
704eda0c | 35754 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 RD |
35755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35756 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
35757 | wxPyEndAllowThreads(__tstate); | |
35758 | if (PyErr_Occurred()) SWIG_fail; | |
35759 | } | |
35760 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35761 | return resultobj; | |
35762 | fail: | |
35763 | return NULL; | |
35764 | } | |
35765 | ||
35766 | ||
35767 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35768 | PyObject *resultobj = 0; | |
35769 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35770 | SwigValueWrapper<wxRendererVersion > result; | |
35771 | void *argp1 = 0 ; | |
35772 | int res1 = 0 ; | |
35773 | PyObject *swig_obj[1] ; | |
35774 | ||
35775 | if (!args) SWIG_fail; | |
35776 | swig_obj[0] = args; | |
35777 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35778 | if (!SWIG_IsOK(res1)) { | |
35779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
35780 | } | |
35781 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35782 | { | |
35783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35784 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
35785 | wxPyEndAllowThreads(__tstate); | |
35786 | if (PyErr_Occurred()) SWIG_fail; | |
35787 | } | |
35788 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
35789 | return resultobj; | |
35790 | fail: | |
35791 | return NULL; | |
35792 | } | |
35793 | ||
35794 | ||
35795 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35796 | PyObject *obj; | |
35797 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
35798 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
35799 | return SWIG_Py_Void(); | |
35800 | } | |
35801 | ||
27e45892 RD |
35802 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35803 | PyObject *resultobj = 0; | |
35804 | wxPseudoDC *result = 0 ; | |
35805 | ||
35806 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
35807 | { | |
35808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35809 | result = (wxPseudoDC *)new wxPseudoDC(); | |
35810 | wxPyEndAllowThreads(__tstate); | |
35811 | if (PyErr_Occurred()) SWIG_fail; | |
35812 | } | |
35813 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
35814 | return resultobj; | |
35815 | fail: | |
35816 | return NULL; | |
35817 | } | |
35818 | ||
35819 | ||
35820 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35821 | PyObject *resultobj = 0; | |
35822 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35823 | void *argp1 = 0 ; | |
35824 | int res1 = 0 ; | |
35825 | PyObject *swig_obj[1] ; | |
35826 | ||
35827 | if (!args) SWIG_fail; | |
35828 | swig_obj[0] = args; | |
35829 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35830 | if (!SWIG_IsOK(res1)) { | |
35831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35832 | } | |
35833 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35834 | { | |
35835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35836 | (arg1)->BeginDrawing(); | |
35837 | wxPyEndAllowThreads(__tstate); | |
35838 | if (PyErr_Occurred()) SWIG_fail; | |
35839 | } | |
35840 | resultobj = SWIG_Py_Void(); | |
35841 | return resultobj; | |
35842 | fail: | |
35843 | return NULL; | |
35844 | } | |
35845 | ||
35846 | ||
35847 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35848 | PyObject *resultobj = 0; | |
35849 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35850 | void *argp1 = 0 ; | |
35851 | int res1 = 0 ; | |
35852 | PyObject *swig_obj[1] ; | |
35853 | ||
35854 | if (!args) SWIG_fail; | |
35855 | swig_obj[0] = args; | |
35856 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35857 | if (!SWIG_IsOK(res1)) { | |
35858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35859 | } | |
35860 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35861 | { | |
35862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35863 | (arg1)->EndDrawing(); | |
35864 | wxPyEndAllowThreads(__tstate); | |
35865 | if (PyErr_Occurred()) SWIG_fail; | |
35866 | } | |
35867 | resultobj = SWIG_Py_Void(); | |
35868 | return resultobj; | |
35869 | fail: | |
35870 | return NULL; | |
35871 | } | |
35872 | ||
35873 | ||
35874 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35875 | PyObject *resultobj = 0; | |
35876 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35877 | void *argp1 = 0 ; | |
35878 | int res1 = 0 ; | |
35879 | PyObject *swig_obj[1] ; | |
35880 | ||
35881 | if (!args) SWIG_fail; | |
35882 | swig_obj[0] = args; | |
35883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
35884 | if (!SWIG_IsOK(res1)) { | |
35885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35886 | } | |
35887 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35888 | { | |
35889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35890 | delete arg1; | |
35891 | ||
35892 | wxPyEndAllowThreads(__tstate); | |
35893 | if (PyErr_Occurred()) SWIG_fail; | |
35894 | } | |
35895 | resultobj = SWIG_Py_Void(); | |
35896 | return resultobj; | |
35897 | fail: | |
35898 | return NULL; | |
35899 | } | |
35900 | ||
35901 | ||
35902 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35903 | PyObject *resultobj = 0; | |
35904 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35905 | void *argp1 = 0 ; | |
35906 | int res1 = 0 ; | |
35907 | PyObject *swig_obj[1] ; | |
35908 | ||
35909 | if (!args) SWIG_fail; | |
35910 | swig_obj[0] = args; | |
35911 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35912 | if (!SWIG_IsOK(res1)) { | |
35913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35914 | } | |
35915 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35916 | { | |
35917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35918 | (arg1)->RemoveAll(); | |
35919 | wxPyEndAllowThreads(__tstate); | |
35920 | if (PyErr_Occurred()) SWIG_fail; | |
35921 | } | |
35922 | resultobj = SWIG_Py_Void(); | |
35923 | return resultobj; | |
35924 | fail: | |
35925 | return NULL; | |
35926 | } | |
35927 | ||
35928 | ||
35929 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35930 | PyObject *resultobj = 0; | |
35931 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35932 | int result; | |
35933 | void *argp1 = 0 ; | |
35934 | int res1 = 0 ; | |
35935 | PyObject *swig_obj[1] ; | |
35936 | ||
35937 | if (!args) SWIG_fail; | |
35938 | swig_obj[0] = args; | |
35939 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35940 | if (!SWIG_IsOK(res1)) { | |
35941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35942 | } | |
35943 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35944 | { | |
35945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35946 | result = (int)(arg1)->GetLen(); | |
35947 | wxPyEndAllowThreads(__tstate); | |
35948 | if (PyErr_Occurred()) SWIG_fail; | |
35949 | } | |
35950 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35951 | return resultobj; | |
35952 | fail: | |
35953 | return NULL; | |
35954 | } | |
35955 | ||
35956 | ||
35957 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35958 | PyObject *resultobj = 0; | |
35959 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35960 | int arg2 ; | |
35961 | void *argp1 = 0 ; | |
35962 | int res1 = 0 ; | |
35963 | int val2 ; | |
35964 | int ecode2 = 0 ; | |
35965 | PyObject * obj0 = 0 ; | |
35966 | PyObject * obj1 = 0 ; | |
35967 | char * kwnames[] = { | |
35968 | (char *) "self",(char *) "id", NULL | |
35969 | }; | |
35970 | ||
35971 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) 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_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35975 | } | |
35976 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35977 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35978 | if (!SWIG_IsOK(ecode2)) { | |
35979 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
35980 | } | |
35981 | arg2 = static_cast< int >(val2); | |
35982 | { | |
35983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35984 | (arg1)->SetId(arg2); | |
35985 | wxPyEndAllowThreads(__tstate); | |
35986 | if (PyErr_Occurred()) SWIG_fail; | |
35987 | } | |
35988 | resultobj = SWIG_Py_Void(); | |
35989 | return resultobj; | |
35990 | fail: | |
35991 | return NULL; | |
35992 | } | |
35993 | ||
35994 | ||
35995 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35996 | PyObject *resultobj = 0; | |
35997 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35998 | int arg2 ; | |
35999 | void *argp1 = 0 ; | |
36000 | int res1 = 0 ; | |
36001 | int val2 ; | |
36002 | int ecode2 = 0 ; | |
36003 | PyObject * obj0 = 0 ; | |
36004 | PyObject * obj1 = 0 ; | |
36005 | char * kwnames[] = { | |
36006 | (char *) "self",(char *) "id", NULL | |
36007 | }; | |
36008 | ||
36009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36011 | if (!SWIG_IsOK(res1)) { | |
36012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36013 | } | |
36014 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36015 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36016 | if (!SWIG_IsOK(ecode2)) { | |
36017 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
36018 | } | |
36019 | arg2 = static_cast< int >(val2); | |
36020 | { | |
36021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36022 | (arg1)->ClearId(arg2); | |
36023 | wxPyEndAllowThreads(__tstate); | |
36024 | if (PyErr_Occurred()) SWIG_fail; | |
36025 | } | |
36026 | resultobj = SWIG_Py_Void(); | |
36027 | return resultobj; | |
36028 | fail: | |
36029 | return NULL; | |
36030 | } | |
36031 | ||
36032 | ||
36033 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36034 | PyObject *resultobj = 0; | |
36035 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36036 | int arg2 ; | |
36037 | void *argp1 = 0 ; | |
36038 | int res1 = 0 ; | |
36039 | int val2 ; | |
36040 | int ecode2 = 0 ; | |
36041 | PyObject * obj0 = 0 ; | |
36042 | PyObject * obj1 = 0 ; | |
36043 | char * kwnames[] = { | |
36044 | (char *) "self",(char *) "id", NULL | |
36045 | }; | |
36046 | ||
36047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36049 | if (!SWIG_IsOK(res1)) { | |
36050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36051 | } | |
36052 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36053 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36054 | if (!SWIG_IsOK(ecode2)) { | |
36055 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
36056 | } | |
36057 | arg2 = static_cast< int >(val2); | |
36058 | { | |
36059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36060 | (arg1)->RemoveId(arg2); | |
36061 | wxPyEndAllowThreads(__tstate); | |
36062 | if (PyErr_Occurred()) SWIG_fail; | |
36063 | } | |
36064 | resultobj = SWIG_Py_Void(); | |
36065 | return resultobj; | |
36066 | fail: | |
36067 | return NULL; | |
36068 | } | |
36069 | ||
36070 | ||
36071 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36072 | PyObject *resultobj = 0; | |
36073 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36074 | int arg2 ; | |
36075 | int arg3 ; | |
36076 | int arg4 ; | |
36077 | void *argp1 = 0 ; | |
36078 | int res1 = 0 ; | |
36079 | int val2 ; | |
36080 | int ecode2 = 0 ; | |
36081 | int val3 ; | |
36082 | int ecode3 = 0 ; | |
36083 | int val4 ; | |
36084 | int ecode4 = 0 ; | |
36085 | PyObject * obj0 = 0 ; | |
36086 | PyObject * obj1 = 0 ; | |
36087 | PyObject * obj2 = 0 ; | |
36088 | PyObject * obj3 = 0 ; | |
36089 | char * kwnames[] = { | |
36090 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
36091 | }; | |
36092 | ||
36093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36095 | if (!SWIG_IsOK(res1)) { | |
36096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36097 | } | |
36098 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36099 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36100 | if (!SWIG_IsOK(ecode2)) { | |
36101 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
36102 | } | |
36103 | arg2 = static_cast< int >(val2); | |
36104 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36105 | if (!SWIG_IsOK(ecode3)) { | |
36106 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
36107 | } | |
36108 | arg3 = static_cast< int >(val3); | |
36109 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36110 | if (!SWIG_IsOK(ecode4)) { | |
36111 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
36112 | } | |
36113 | arg4 = static_cast< int >(val4); | |
36114 | { | |
36115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36116 | (arg1)->TranslateId(arg2,arg3,arg4); | |
36117 | wxPyEndAllowThreads(__tstate); | |
36118 | if (PyErr_Occurred()) SWIG_fail; | |
36119 | } | |
36120 | resultobj = SWIG_Py_Void(); | |
36121 | return resultobj; | |
36122 | fail: | |
36123 | return NULL; | |
36124 | } | |
36125 | ||
36126 | ||
72ef6efb RD |
36127 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36128 | PyObject *resultobj = 0; | |
36129 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36130 | int arg2 ; | |
36131 | bool arg3 = (bool) true ; | |
36132 | void *argp1 = 0 ; | |
36133 | int res1 = 0 ; | |
36134 | int val2 ; | |
36135 | int ecode2 = 0 ; | |
36136 | bool val3 ; | |
36137 | int ecode3 = 0 ; | |
36138 | PyObject * obj0 = 0 ; | |
36139 | PyObject * obj1 = 0 ; | |
36140 | PyObject * obj2 = 0 ; | |
36141 | char * kwnames[] = { | |
36142 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
36143 | }; | |
36144 | ||
36145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36146 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36147 | if (!SWIG_IsOK(res1)) { | |
36148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36149 | } | |
36150 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36151 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36152 | if (!SWIG_IsOK(ecode2)) { | |
36153 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
36154 | } | |
36155 | arg2 = static_cast< int >(val2); | |
36156 | if (obj2) { | |
36157 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36158 | if (!SWIG_IsOK(ecode3)) { | |
36159 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
36160 | } | |
36161 | arg3 = static_cast< bool >(val3); | |
36162 | } | |
36163 | { | |
36164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36165 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
36166 | wxPyEndAllowThreads(__tstate); | |
36167 | if (PyErr_Occurred()) SWIG_fail; | |
36168 | } | |
36169 | resultobj = SWIG_Py_Void(); | |
36170 | return resultobj; | |
36171 | fail: | |
36172 | return NULL; | |
36173 | } | |
36174 | ||
36175 | ||
36176 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36177 | PyObject *resultobj = 0; | |
36178 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36179 | int arg2 ; | |
36180 | bool result; | |
36181 | void *argp1 = 0 ; | |
36182 | int res1 = 0 ; | |
36183 | int val2 ; | |
36184 | int ecode2 = 0 ; | |
36185 | PyObject * obj0 = 0 ; | |
36186 | PyObject * obj1 = 0 ; | |
36187 | char * kwnames[] = { | |
36188 | (char *) "self",(char *) "id", NULL | |
36189 | }; | |
36190 | ||
36191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
36192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36193 | if (!SWIG_IsOK(res1)) { | |
36194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36195 | } | |
36196 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36197 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36198 | if (!SWIG_IsOK(ecode2)) { | |
36199 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
36200 | } | |
36201 | arg2 = static_cast< int >(val2); | |
36202 | { | |
36203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36204 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
36205 | wxPyEndAllowThreads(__tstate); | |
36206 | if (PyErr_Occurred()) SWIG_fail; | |
36207 | } | |
36208 | { | |
36209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36210 | } | |
36211 | return resultobj; | |
36212 | fail: | |
36213 | return NULL; | |
36214 | } | |
36215 | ||
36216 | ||
36217 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36218 | PyObject *resultobj = 0; | |
36219 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36220 | int arg2 ; | |
36221 | int arg3 ; | |
36222 | int arg4 = (int) 1 ; | |
36223 | wxColor const &arg5_defvalue = *wxWHITE ; | |
36224 | wxColor *arg5 = (wxColor *) &arg5_defvalue ; | |
36225 | PyObject *result = 0 ; | |
36226 | void *argp1 = 0 ; | |
36227 | int res1 = 0 ; | |
36228 | int val2 ; | |
36229 | int ecode2 = 0 ; | |
36230 | int val3 ; | |
36231 | int ecode3 = 0 ; | |
36232 | int val4 ; | |
36233 | int ecode4 = 0 ; | |
36234 | void *argp5 = 0 ; | |
36235 | int res5 = 0 ; | |
36236 | PyObject * obj0 = 0 ; | |
36237 | PyObject * obj1 = 0 ; | |
36238 | PyObject * obj2 = 0 ; | |
36239 | PyObject * obj3 = 0 ; | |
36240 | PyObject * obj4 = 0 ; | |
36241 | char * kwnames[] = { | |
36242 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
36243 | }; | |
36244 | ||
36245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36247 | if (!SWIG_IsOK(res1)) { | |
36248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36249 | } | |
36250 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36251 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36252 | if (!SWIG_IsOK(ecode2)) { | |
36253 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
36254 | } | |
36255 | arg2 = static_cast< int >(val2); | |
36256 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36257 | if (!SWIG_IsOK(ecode3)) { | |
36258 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
36259 | } | |
36260 | arg3 = static_cast< int >(val3); | |
36261 | if (obj3) { | |
36262 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36263 | if (!SWIG_IsOK(ecode4)) { | |
36264 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
36265 | } | |
36266 | arg4 = static_cast< int >(val4); | |
36267 | } | |
36268 | if (obj4) { | |
36269 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0); | |
36270 | if (!SWIG_IsOK(res5)) { | |
36271 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
36272 | } | |
36273 | if (!argp5) { | |
36274 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
36275 | } | |
36276 | arg5 = reinterpret_cast< wxColor * >(argp5); | |
36277 | } | |
36278 | { | |
36279 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5); | |
36280 | if (PyErr_Occurred()) SWIG_fail; | |
36281 | } | |
36282 | resultobj = result; | |
36283 | return resultobj; | |
36284 | fail: | |
36285 | return NULL; | |
36286 | } | |
36287 | ||
36288 | ||
36289 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36290 | PyObject *resultobj = 0; | |
36291 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36292 | int arg2 ; | |
36293 | int arg3 ; | |
36294 | PyObject *result = 0 ; | |
36295 | void *argp1 = 0 ; | |
36296 | int res1 = 0 ; | |
36297 | int val2 ; | |
36298 | int ecode2 = 0 ; | |
36299 | int val3 ; | |
36300 | int ecode3 = 0 ; | |
36301 | PyObject * obj0 = 0 ; | |
36302 | PyObject * obj1 = 0 ; | |
36303 | PyObject * obj2 = 0 ; | |
36304 | char * kwnames[] = { | |
36305 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36306 | }; | |
36307 | ||
36308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36310 | if (!SWIG_IsOK(res1)) { | |
36311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36312 | } | |
36313 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36314 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36315 | if (!SWIG_IsOK(ecode2)) { | |
36316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
36317 | } | |
36318 | arg2 = static_cast< int >(val2); | |
36319 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36320 | if (!SWIG_IsOK(ecode3)) { | |
36321 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
36322 | } | |
36323 | arg3 = static_cast< int >(val3); | |
36324 | { | |
36325 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
36326 | if (PyErr_Occurred()) SWIG_fail; | |
36327 | } | |
36328 | resultobj = result; | |
36329 | return resultobj; | |
36330 | fail: | |
36331 | return NULL; | |
36332 | } | |
36333 | ||
36334 | ||
27e45892 RD |
36335 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36336 | PyObject *resultobj = 0; | |
36337 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36338 | int arg2 ; | |
36339 | wxDC *arg3 = (wxDC *) 0 ; | |
36340 | void *argp1 = 0 ; | |
36341 | int res1 = 0 ; | |
36342 | int val2 ; | |
36343 | int ecode2 = 0 ; | |
36344 | void *argp3 = 0 ; | |
36345 | int res3 = 0 ; | |
36346 | PyObject * obj0 = 0 ; | |
36347 | PyObject * obj1 = 0 ; | |
36348 | PyObject * obj2 = 0 ; | |
36349 | char * kwnames[] = { | |
36350 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
36351 | }; | |
36352 | ||
36353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36355 | if (!SWIG_IsOK(res1)) { | |
36356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36357 | } | |
36358 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36359 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36360 | if (!SWIG_IsOK(ecode2)) { | |
36361 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
36362 | } | |
36363 | arg2 = static_cast< int >(val2); | |
36364 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36365 | if (!SWIG_IsOK(res3)) { | |
36366 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
36367 | } | |
36368 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
36369 | { | |
36370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36371 | (arg1)->DrawIdToDC(arg2,arg3); | |
36372 | wxPyEndAllowThreads(__tstate); | |
36373 | if (PyErr_Occurred()) SWIG_fail; | |
36374 | } | |
36375 | resultobj = SWIG_Py_Void(); | |
36376 | return resultobj; | |
36377 | fail: | |
36378 | return NULL; | |
36379 | } | |
36380 | ||
36381 | ||
36382 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36383 | PyObject *resultobj = 0; | |
36384 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36385 | int arg2 ; | |
36386 | wxRect *arg3 = 0 ; | |
36387 | void *argp1 = 0 ; | |
36388 | int res1 = 0 ; | |
36389 | int val2 ; | |
36390 | int ecode2 = 0 ; | |
36391 | wxRect temp3 ; | |
36392 | PyObject * obj0 = 0 ; | |
36393 | PyObject * obj1 = 0 ; | |
36394 | PyObject * obj2 = 0 ; | |
36395 | char * kwnames[] = { | |
36396 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
36397 | }; | |
36398 | ||
36399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36401 | if (!SWIG_IsOK(res1)) { | |
36402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36403 | } | |
36404 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36405 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36406 | if (!SWIG_IsOK(ecode2)) { | |
36407 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
36408 | } | |
36409 | arg2 = static_cast< int >(val2); | |
36410 | { | |
36411 | arg3 = &temp3; | |
36412 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
36413 | } | |
36414 | { | |
36415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36416 | (arg1)->SetIdBounds(arg2,*arg3); | |
36417 | wxPyEndAllowThreads(__tstate); | |
36418 | if (PyErr_Occurred()) SWIG_fail; | |
36419 | } | |
36420 | resultobj = SWIG_Py_Void(); | |
36421 | return resultobj; | |
36422 | fail: | |
36423 | return NULL; | |
36424 | } | |
36425 | ||
36426 | ||
36427 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36428 | PyObject *resultobj = 0; | |
36429 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36430 | int arg2 ; | |
36431 | wxRect result; | |
36432 | void *argp1 = 0 ; | |
36433 | int res1 = 0 ; | |
36434 | int val2 ; | |
36435 | int ecode2 = 0 ; | |
36436 | PyObject * obj0 = 0 ; | |
36437 | PyObject * obj1 = 0 ; | |
36438 | char * kwnames[] = { | |
36439 | (char *) "self",(char *) "id", NULL | |
36440 | }; | |
36441 | ||
36442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
36443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36444 | if (!SWIG_IsOK(res1)) { | |
36445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36446 | } | |
36447 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36448 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36449 | if (!SWIG_IsOK(ecode2)) { | |
36450 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
36451 | } | |
36452 | arg2 = static_cast< int >(val2); | |
36453 | { | |
36454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36455 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
36456 | wxPyEndAllowThreads(__tstate); | |
36457 | if (PyErr_Occurred()) SWIG_fail; | |
36458 | } | |
36459 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
36460 | return resultobj; | |
36461 | fail: | |
36462 | return NULL; | |
36463 | } | |
36464 | ||
36465 | ||
36466 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36467 | PyObject *resultobj = 0; | |
36468 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36469 | wxDC *arg2 = (wxDC *) 0 ; | |
36470 | wxRect *arg3 = 0 ; | |
36471 | void *argp1 = 0 ; | |
36472 | int res1 = 0 ; | |
36473 | void *argp2 = 0 ; | |
36474 | int res2 = 0 ; | |
36475 | wxRect temp3 ; | |
36476 | PyObject * obj0 = 0 ; | |
36477 | PyObject * obj1 = 0 ; | |
36478 | PyObject * obj2 = 0 ; | |
36479 | char * kwnames[] = { | |
36480 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
36481 | }; | |
36482 | ||
36483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36485 | if (!SWIG_IsOK(res1)) { | |
36486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36487 | } | |
36488 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36489 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36490 | if (!SWIG_IsOK(res2)) { | |
36491 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36492 | } | |
36493 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36494 | { | |
36495 | arg3 = &temp3; | |
36496 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
36497 | } | |
36498 | { | |
36499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36500 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
36501 | wxPyEndAllowThreads(__tstate); | |
36502 | if (PyErr_Occurred()) SWIG_fail; | |
36503 | } | |
36504 | resultobj = SWIG_Py_Void(); | |
36505 | return resultobj; | |
36506 | fail: | |
36507 | return NULL; | |
36508 | } | |
36509 | ||
36510 | ||
36511 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36512 | PyObject *resultobj = 0; | |
36513 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36514 | wxDC *arg2 = (wxDC *) 0 ; | |
36515 | wxRegion *arg3 = 0 ; | |
36516 | void *argp1 = 0 ; | |
36517 | int res1 = 0 ; | |
36518 | void *argp2 = 0 ; | |
36519 | int res2 = 0 ; | |
36520 | void *argp3 = 0 ; | |
36521 | int res3 = 0 ; | |
36522 | PyObject * obj0 = 0 ; | |
36523 | PyObject * obj1 = 0 ; | |
36524 | PyObject * obj2 = 0 ; | |
36525 | char * kwnames[] = { | |
36526 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
36527 | }; | |
36528 | ||
36529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36531 | if (!SWIG_IsOK(res1)) { | |
36532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36533 | } | |
36534 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36535 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36536 | if (!SWIG_IsOK(res2)) { | |
36537 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36538 | } | |
36539 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36540 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
36541 | if (!SWIG_IsOK(res3)) { | |
36542 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36543 | } | |
36544 | if (!argp3) { | |
36545 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36546 | } | |
36547 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
36548 | { | |
36549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36550 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
36551 | wxPyEndAllowThreads(__tstate); | |
36552 | if (PyErr_Occurred()) SWIG_fail; | |
36553 | } | |
36554 | resultobj = SWIG_Py_Void(); | |
36555 | return resultobj; | |
36556 | fail: | |
36557 | return NULL; | |
36558 | } | |
36559 | ||
36560 | ||
36561 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36562 | PyObject *resultobj = 0; | |
36563 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36564 | wxDC *arg2 = (wxDC *) 0 ; | |
36565 | void *argp1 = 0 ; | |
36566 | int res1 = 0 ; | |
36567 | void *argp2 = 0 ; | |
36568 | int res2 = 0 ; | |
36569 | PyObject * obj0 = 0 ; | |
36570 | PyObject * obj1 = 0 ; | |
36571 | char * kwnames[] = { | |
36572 | (char *) "self",(char *) "dc", NULL | |
36573 | }; | |
36574 | ||
36575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
36576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36577 | if (!SWIG_IsOK(res1)) { | |
36578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36579 | } | |
36580 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36581 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36582 | if (!SWIG_IsOK(res2)) { | |
36583 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36584 | } | |
36585 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36586 | { | |
36587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36588 | (arg1)->DrawToDC(arg2); | |
36589 | wxPyEndAllowThreads(__tstate); | |
36590 | if (PyErr_Occurred()) SWIG_fail; | |
36591 | } | |
36592 | resultobj = SWIG_Py_Void(); | |
36593 | return resultobj; | |
36594 | fail: | |
36595 | return NULL; | |
36596 | } | |
36597 | ||
36598 | ||
36599 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36600 | PyObject *resultobj = 0; | |
36601 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36602 | int arg2 ; | |
36603 | int arg3 ; | |
36604 | wxColour *arg4 = 0 ; | |
36605 | int arg5 = (int) wxFLOOD_SURFACE ; | |
36606 | void *argp1 = 0 ; | |
36607 | int res1 = 0 ; | |
36608 | int val2 ; | |
36609 | int ecode2 = 0 ; | |
36610 | int val3 ; | |
36611 | int ecode3 = 0 ; | |
36612 | wxColour temp4 ; | |
36613 | int val5 ; | |
36614 | int ecode5 = 0 ; | |
36615 | PyObject * obj0 = 0 ; | |
36616 | PyObject * obj1 = 0 ; | |
36617 | PyObject * obj2 = 0 ; | |
36618 | PyObject * obj3 = 0 ; | |
36619 | PyObject * obj4 = 0 ; | |
36620 | char * kwnames[] = { | |
36621 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
36622 | }; | |
36623 | ||
36624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36626 | if (!SWIG_IsOK(res1)) { | |
36627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36628 | } | |
36629 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36630 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36631 | if (!SWIG_IsOK(ecode2)) { | |
36632 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
36633 | } | |
36634 | arg2 = static_cast< int >(val2); | |
36635 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36636 | if (!SWIG_IsOK(ecode3)) { | |
36637 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
36638 | } | |
36639 | arg3 = static_cast< int >(val3); | |
36640 | { | |
36641 | arg4 = &temp4; | |
36642 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
36643 | } | |
36644 | if (obj4) { | |
36645 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36646 | if (!SWIG_IsOK(ecode5)) { | |
36647 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
36648 | } | |
36649 | arg5 = static_cast< int >(val5); | |
36650 | } | |
36651 | { | |
36652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36653 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
36654 | wxPyEndAllowThreads(__tstate); | |
36655 | if (PyErr_Occurred()) SWIG_fail; | |
36656 | } | |
36657 | resultobj = SWIG_Py_Void(); | |
36658 | return resultobj; | |
36659 | fail: | |
36660 | return NULL; | |
36661 | } | |
36662 | ||
36663 | ||
36664 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36665 | PyObject *resultobj = 0; | |
36666 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36667 | wxPoint *arg2 = 0 ; | |
36668 | wxColour *arg3 = 0 ; | |
36669 | int arg4 = (int) wxFLOOD_SURFACE ; | |
36670 | void *argp1 = 0 ; | |
36671 | int res1 = 0 ; | |
36672 | wxPoint temp2 ; | |
36673 | wxColour temp3 ; | |
36674 | int val4 ; | |
36675 | int ecode4 = 0 ; | |
36676 | PyObject * obj0 = 0 ; | |
36677 | PyObject * obj1 = 0 ; | |
36678 | PyObject * obj2 = 0 ; | |
36679 | PyObject * obj3 = 0 ; | |
36680 | char * kwnames[] = { | |
36681 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
36682 | }; | |
36683 | ||
36684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36686 | if (!SWIG_IsOK(res1)) { | |
36687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36688 | } | |
36689 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36690 | { | |
36691 | arg2 = &temp2; | |
36692 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36693 | } | |
36694 | { | |
36695 | arg3 = &temp3; | |
36696 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
36697 | } | |
36698 | if (obj3) { | |
36699 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36700 | if (!SWIG_IsOK(ecode4)) { | |
36701 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
36702 | } | |
36703 | arg4 = static_cast< int >(val4); | |
36704 | } | |
36705 | { | |
36706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36707 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
36708 | wxPyEndAllowThreads(__tstate); | |
36709 | if (PyErr_Occurred()) SWIG_fail; | |
36710 | } | |
36711 | resultobj = SWIG_Py_Void(); | |
36712 | return resultobj; | |
36713 | fail: | |
36714 | return NULL; | |
36715 | } | |
36716 | ||
36717 | ||
36718 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36719 | PyObject *resultobj = 0; | |
36720 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36721 | int arg2 ; | |
36722 | int arg3 ; | |
36723 | int arg4 ; | |
36724 | int arg5 ; | |
36725 | void *argp1 = 0 ; | |
36726 | int res1 = 0 ; | |
36727 | int val2 ; | |
36728 | int ecode2 = 0 ; | |
36729 | int val3 ; | |
36730 | int ecode3 = 0 ; | |
36731 | int val4 ; | |
36732 | int ecode4 = 0 ; | |
36733 | int val5 ; | |
36734 | int ecode5 = 0 ; | |
36735 | PyObject * obj0 = 0 ; | |
36736 | PyObject * obj1 = 0 ; | |
36737 | PyObject * obj2 = 0 ; | |
36738 | PyObject * obj3 = 0 ; | |
36739 | PyObject * obj4 = 0 ; | |
36740 | char * kwnames[] = { | |
36741 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
36742 | }; | |
36743 | ||
36744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36746 | if (!SWIG_IsOK(res1)) { | |
36747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36748 | } | |
36749 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36750 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36751 | if (!SWIG_IsOK(ecode2)) { | |
36752 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
36753 | } | |
36754 | arg2 = static_cast< int >(val2); | |
36755 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36756 | if (!SWIG_IsOK(ecode3)) { | |
36757 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
36758 | } | |
36759 | arg3 = static_cast< int >(val3); | |
36760 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36761 | if (!SWIG_IsOK(ecode4)) { | |
36762 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
36763 | } | |
36764 | arg4 = static_cast< int >(val4); | |
36765 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36766 | if (!SWIG_IsOK(ecode5)) { | |
36767 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
36768 | } | |
36769 | arg5 = static_cast< int >(val5); | |
36770 | { | |
36771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36772 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
36773 | wxPyEndAllowThreads(__tstate); | |
36774 | if (PyErr_Occurred()) SWIG_fail; | |
36775 | } | |
36776 | resultobj = SWIG_Py_Void(); | |
36777 | return resultobj; | |
36778 | fail: | |
36779 | return NULL; | |
36780 | } | |
36781 | ||
36782 | ||
36783 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36784 | PyObject *resultobj = 0; | |
36785 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36786 | wxPoint *arg2 = 0 ; | |
36787 | wxPoint *arg3 = 0 ; | |
36788 | void *argp1 = 0 ; | |
36789 | int res1 = 0 ; | |
36790 | wxPoint temp2 ; | |
36791 | wxPoint temp3 ; | |
36792 | PyObject * obj0 = 0 ; | |
36793 | PyObject * obj1 = 0 ; | |
36794 | PyObject * obj2 = 0 ; | |
36795 | char * kwnames[] = { | |
36796 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
36797 | }; | |
36798 | ||
36799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36801 | if (!SWIG_IsOK(res1)) { | |
36802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36803 | } | |
36804 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36805 | { | |
36806 | arg2 = &temp2; | |
36807 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36808 | } | |
36809 | { | |
36810 | arg3 = &temp3; | |
36811 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36812 | } | |
36813 | { | |
36814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36815 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
36816 | wxPyEndAllowThreads(__tstate); | |
36817 | if (PyErr_Occurred()) SWIG_fail; | |
36818 | } | |
36819 | resultobj = SWIG_Py_Void(); | |
36820 | return resultobj; | |
36821 | fail: | |
36822 | return NULL; | |
36823 | } | |
36824 | ||
36825 | ||
36826 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36827 | PyObject *resultobj = 0; | |
36828 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36829 | int arg2 ; | |
36830 | int arg3 ; | |
36831 | void *argp1 = 0 ; | |
36832 | int res1 = 0 ; | |
36833 | int val2 ; | |
36834 | int ecode2 = 0 ; | |
36835 | int val3 ; | |
36836 | int ecode3 = 0 ; | |
36837 | PyObject * obj0 = 0 ; | |
36838 | PyObject * obj1 = 0 ; | |
36839 | PyObject * obj2 = 0 ; | |
36840 | char * kwnames[] = { | |
36841 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36842 | }; | |
36843 | ||
36844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36846 | if (!SWIG_IsOK(res1)) { | |
36847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36848 | } | |
36849 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36850 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36851 | if (!SWIG_IsOK(ecode2)) { | |
36852 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
36853 | } | |
36854 | arg2 = static_cast< int >(val2); | |
36855 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36856 | if (!SWIG_IsOK(ecode3)) { | |
36857 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
36858 | } | |
36859 | arg3 = static_cast< int >(val3); | |
36860 | { | |
36861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36862 | (arg1)->CrossHair(arg2,arg3); | |
36863 | wxPyEndAllowThreads(__tstate); | |
36864 | if (PyErr_Occurred()) SWIG_fail; | |
36865 | } | |
36866 | resultobj = SWIG_Py_Void(); | |
36867 | return resultobj; | |
36868 | fail: | |
36869 | return NULL; | |
36870 | } | |
36871 | ||
36872 | ||
36873 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36874 | PyObject *resultobj = 0; | |
36875 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36876 | wxPoint *arg2 = 0 ; | |
36877 | void *argp1 = 0 ; | |
36878 | int res1 = 0 ; | |
36879 | wxPoint temp2 ; | |
36880 | PyObject * obj0 = 0 ; | |
36881 | PyObject * obj1 = 0 ; | |
36882 | char * kwnames[] = { | |
36883 | (char *) "self",(char *) "pt", NULL | |
36884 | }; | |
36885 | ||
36886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36888 | if (!SWIG_IsOK(res1)) { | |
36889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36890 | } | |
36891 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36892 | { | |
36893 | arg2 = &temp2; | |
36894 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36895 | } | |
36896 | { | |
36897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36898 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
36899 | wxPyEndAllowThreads(__tstate); | |
36900 | if (PyErr_Occurred()) SWIG_fail; | |
36901 | } | |
36902 | resultobj = SWIG_Py_Void(); | |
36903 | return resultobj; | |
36904 | fail: | |
36905 | return NULL; | |
36906 | } | |
36907 | ||
36908 | ||
36909 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36910 | PyObject *resultobj = 0; | |
36911 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36912 | int arg2 ; | |
36913 | int arg3 ; | |
36914 | int arg4 ; | |
36915 | int arg5 ; | |
36916 | int arg6 ; | |
36917 | int arg7 ; | |
36918 | void *argp1 = 0 ; | |
36919 | int res1 = 0 ; | |
36920 | int val2 ; | |
36921 | int ecode2 = 0 ; | |
36922 | int val3 ; | |
36923 | int ecode3 = 0 ; | |
36924 | int val4 ; | |
36925 | int ecode4 = 0 ; | |
36926 | int val5 ; | |
36927 | int ecode5 = 0 ; | |
36928 | int val6 ; | |
36929 | int ecode6 = 0 ; | |
36930 | int val7 ; | |
36931 | int ecode7 = 0 ; | |
36932 | PyObject * obj0 = 0 ; | |
36933 | PyObject * obj1 = 0 ; | |
36934 | PyObject * obj2 = 0 ; | |
36935 | PyObject * obj3 = 0 ; | |
36936 | PyObject * obj4 = 0 ; | |
36937 | PyObject * obj5 = 0 ; | |
36938 | PyObject * obj6 = 0 ; | |
36939 | char * kwnames[] = { | |
36940 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
36941 | }; | |
36942 | ||
36943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36945 | if (!SWIG_IsOK(res1)) { | |
36946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36947 | } | |
36948 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36949 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36950 | if (!SWIG_IsOK(ecode2)) { | |
36951 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
36952 | } | |
36953 | arg2 = static_cast< int >(val2); | |
36954 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36955 | if (!SWIG_IsOK(ecode3)) { | |
36956 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
36957 | } | |
36958 | arg3 = static_cast< int >(val3); | |
36959 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36960 | if (!SWIG_IsOK(ecode4)) { | |
36961 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
36962 | } | |
36963 | arg4 = static_cast< int >(val4); | |
36964 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36965 | if (!SWIG_IsOK(ecode5)) { | |
36966 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
36967 | } | |
36968 | arg5 = static_cast< int >(val5); | |
36969 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36970 | if (!SWIG_IsOK(ecode6)) { | |
36971 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
36972 | } | |
36973 | arg6 = static_cast< int >(val6); | |
36974 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
36975 | if (!SWIG_IsOK(ecode7)) { | |
36976 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
36977 | } | |
36978 | arg7 = static_cast< int >(val7); | |
36979 | { | |
36980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36981 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36982 | wxPyEndAllowThreads(__tstate); | |
36983 | if (PyErr_Occurred()) SWIG_fail; | |
36984 | } | |
36985 | resultobj = SWIG_Py_Void(); | |
36986 | return resultobj; | |
36987 | fail: | |
36988 | return NULL; | |
36989 | } | |
36990 | ||
36991 | ||
36992 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36993 | PyObject *resultobj = 0; | |
36994 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36995 | wxPoint *arg2 = 0 ; | |
36996 | wxPoint *arg3 = 0 ; | |
36997 | wxPoint *arg4 = 0 ; | |
36998 | void *argp1 = 0 ; | |
36999 | int res1 = 0 ; | |
37000 | wxPoint temp2 ; | |
37001 | wxPoint temp3 ; | |
37002 | wxPoint temp4 ; | |
37003 | PyObject * obj0 = 0 ; | |
37004 | PyObject * obj1 = 0 ; | |
37005 | PyObject * obj2 = 0 ; | |
37006 | PyObject * obj3 = 0 ; | |
37007 | char * kwnames[] = { | |
37008 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
37009 | }; | |
37010 | ||
37011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37013 | if (!SWIG_IsOK(res1)) { | |
37014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37015 | } | |
37016 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37017 | { | |
37018 | arg2 = &temp2; | |
37019 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37020 | } | |
37021 | { | |
37022 | arg3 = &temp3; | |
37023 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37024 | } | |
37025 | { | |
37026 | arg4 = &temp4; | |
37027 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
37028 | } | |
37029 | { | |
37030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37031 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
37032 | wxPyEndAllowThreads(__tstate); | |
37033 | if (PyErr_Occurred()) SWIG_fail; | |
37034 | } | |
37035 | resultobj = SWIG_Py_Void(); | |
37036 | return resultobj; | |
37037 | fail: | |
37038 | return NULL; | |
37039 | } | |
37040 | ||
37041 | ||
37042 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37043 | PyObject *resultobj = 0; | |
37044 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37045 | int arg2 ; | |
37046 | int arg3 ; | |
37047 | int arg4 ; | |
37048 | int arg5 ; | |
37049 | void *argp1 = 0 ; | |
37050 | int res1 = 0 ; | |
37051 | int val2 ; | |
37052 | int ecode2 = 0 ; | |
37053 | int val3 ; | |
37054 | int ecode3 = 0 ; | |
37055 | int val4 ; | |
37056 | int ecode4 = 0 ; | |
37057 | int val5 ; | |
37058 | int ecode5 = 0 ; | |
37059 | PyObject * obj0 = 0 ; | |
37060 | PyObject * obj1 = 0 ; | |
37061 | PyObject * obj2 = 0 ; | |
37062 | PyObject * obj3 = 0 ; | |
37063 | PyObject * obj4 = 0 ; | |
37064 | char * kwnames[] = { | |
37065 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37066 | }; | |
37067 | ||
37068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37070 | if (!SWIG_IsOK(res1)) { | |
37071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37072 | } | |
37073 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37074 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37075 | if (!SWIG_IsOK(ecode2)) { | |
37076 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
37077 | } | |
37078 | arg2 = static_cast< int >(val2); | |
37079 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37080 | if (!SWIG_IsOK(ecode3)) { | |
37081 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
37082 | } | |
37083 | arg3 = static_cast< int >(val3); | |
37084 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37085 | if (!SWIG_IsOK(ecode4)) { | |
37086 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
37087 | } | |
37088 | arg4 = static_cast< int >(val4); | |
37089 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37090 | if (!SWIG_IsOK(ecode5)) { | |
37091 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
37092 | } | |
37093 | arg5 = static_cast< int >(val5); | |
37094 | { | |
37095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37096 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
37097 | wxPyEndAllowThreads(__tstate); | |
37098 | if (PyErr_Occurred()) SWIG_fail; | |
37099 | } | |
37100 | resultobj = SWIG_Py_Void(); | |
37101 | return resultobj; | |
37102 | fail: | |
37103 | return NULL; | |
37104 | } | |
37105 | ||
37106 | ||
37107 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37108 | PyObject *resultobj = 0; | |
37109 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37110 | wxRect *arg2 = 0 ; | |
37111 | void *argp1 = 0 ; | |
37112 | int res1 = 0 ; | |
37113 | wxRect temp2 ; | |
37114 | PyObject * obj0 = 0 ; | |
37115 | PyObject * obj1 = 0 ; | |
37116 | char * kwnames[] = { | |
37117 | (char *) "self",(char *) "rect", NULL | |
37118 | }; | |
37119 | ||
37120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37122 | if (!SWIG_IsOK(res1)) { | |
37123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37124 | } | |
37125 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37126 | { | |
37127 | arg2 = &temp2; | |
37128 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37129 | } | |
37130 | { | |
37131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37132 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
37133 | wxPyEndAllowThreads(__tstate); | |
37134 | if (PyErr_Occurred()) SWIG_fail; | |
37135 | } | |
37136 | resultobj = SWIG_Py_Void(); | |
37137 | return resultobj; | |
37138 | fail: | |
37139 | return NULL; | |
37140 | } | |
37141 | ||
37142 | ||
37143 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37144 | PyObject *resultobj = 0; | |
37145 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37146 | int arg2 ; | |
37147 | int arg3 ; | |
37148 | int arg4 ; | |
37149 | int arg5 ; | |
37150 | double arg6 ; | |
37151 | double arg7 ; | |
37152 | void *argp1 = 0 ; | |
37153 | int res1 = 0 ; | |
37154 | int val2 ; | |
37155 | int ecode2 = 0 ; | |
37156 | int val3 ; | |
37157 | int ecode3 = 0 ; | |
37158 | int val4 ; | |
37159 | int ecode4 = 0 ; | |
37160 | int val5 ; | |
37161 | int ecode5 = 0 ; | |
37162 | double val6 ; | |
37163 | int ecode6 = 0 ; | |
37164 | double val7 ; | |
37165 | int ecode7 = 0 ; | |
37166 | PyObject * obj0 = 0 ; | |
37167 | PyObject * obj1 = 0 ; | |
37168 | PyObject * obj2 = 0 ; | |
37169 | PyObject * obj3 = 0 ; | |
37170 | PyObject * obj4 = 0 ; | |
37171 | PyObject * obj5 = 0 ; | |
37172 | PyObject * obj6 = 0 ; | |
37173 | char * kwnames[] = { | |
37174 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
37175 | }; | |
37176 | ||
37177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
37178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37179 | if (!SWIG_IsOK(res1)) { | |
37180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37181 | } | |
37182 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37183 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37184 | if (!SWIG_IsOK(ecode2)) { | |
37185 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
37186 | } | |
37187 | arg2 = static_cast< int >(val2); | |
37188 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37189 | if (!SWIG_IsOK(ecode3)) { | |
37190 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
37191 | } | |
37192 | arg3 = static_cast< int >(val3); | |
37193 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37194 | if (!SWIG_IsOK(ecode4)) { | |
37195 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
37196 | } | |
37197 | arg4 = static_cast< int >(val4); | |
37198 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37199 | if (!SWIG_IsOK(ecode5)) { | |
37200 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
37201 | } | |
37202 | arg5 = static_cast< int >(val5); | |
37203 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
37204 | if (!SWIG_IsOK(ecode6)) { | |
37205 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
37206 | } | |
37207 | arg6 = static_cast< double >(val6); | |
37208 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
37209 | if (!SWIG_IsOK(ecode7)) { | |
37210 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
37211 | } | |
37212 | arg7 = static_cast< double >(val7); | |
37213 | { | |
37214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37215 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
37216 | wxPyEndAllowThreads(__tstate); | |
37217 | if (PyErr_Occurred()) SWIG_fail; | |
37218 | } | |
37219 | resultobj = SWIG_Py_Void(); | |
37220 | return resultobj; | |
37221 | fail: | |
37222 | return NULL; | |
37223 | } | |
37224 | ||
37225 | ||
37226 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37227 | PyObject *resultobj = 0; | |
37228 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37229 | wxPoint *arg2 = 0 ; | |
37230 | wxSize *arg3 = 0 ; | |
37231 | double arg4 ; | |
37232 | double arg5 ; | |
37233 | void *argp1 = 0 ; | |
37234 | int res1 = 0 ; | |
37235 | wxPoint temp2 ; | |
37236 | wxSize temp3 ; | |
37237 | double val4 ; | |
37238 | int ecode4 = 0 ; | |
37239 | double val5 ; | |
37240 | int ecode5 = 0 ; | |
37241 | PyObject * obj0 = 0 ; | |
37242 | PyObject * obj1 = 0 ; | |
37243 | PyObject * obj2 = 0 ; | |
37244 | PyObject * obj3 = 0 ; | |
37245 | PyObject * obj4 = 0 ; | |
37246 | char * kwnames[] = { | |
37247 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
37248 | }; | |
37249 | ||
37250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37252 | if (!SWIG_IsOK(res1)) { | |
37253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37254 | } | |
37255 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37256 | { | |
37257 | arg2 = &temp2; | |
37258 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37259 | } | |
37260 | { | |
37261 | arg3 = &temp3; | |
37262 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37263 | } | |
37264 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37265 | if (!SWIG_IsOK(ecode4)) { | |
37266 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
37267 | } | |
37268 | arg4 = static_cast< double >(val4); | |
37269 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37270 | if (!SWIG_IsOK(ecode5)) { | |
37271 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
37272 | } | |
37273 | arg5 = static_cast< double >(val5); | |
37274 | { | |
37275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37276 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
37277 | wxPyEndAllowThreads(__tstate); | |
37278 | if (PyErr_Occurred()) SWIG_fail; | |
37279 | } | |
37280 | resultobj = SWIG_Py_Void(); | |
37281 | return resultobj; | |
37282 | fail: | |
37283 | return NULL; | |
37284 | } | |
37285 | ||
37286 | ||
37287 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37288 | PyObject *resultobj = 0; | |
37289 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37290 | int arg2 ; | |
37291 | int arg3 ; | |
37292 | void *argp1 = 0 ; | |
37293 | int res1 = 0 ; | |
37294 | int val2 ; | |
37295 | int ecode2 = 0 ; | |
37296 | int val3 ; | |
37297 | int ecode3 = 0 ; | |
37298 | PyObject * obj0 = 0 ; | |
37299 | PyObject * obj1 = 0 ; | |
37300 | PyObject * obj2 = 0 ; | |
37301 | char * kwnames[] = { | |
37302 | (char *) "self",(char *) "x",(char *) "y", NULL | |
37303 | }; | |
37304 | ||
37305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37307 | if (!SWIG_IsOK(res1)) { | |
37308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37309 | } | |
37310 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37311 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37312 | if (!SWIG_IsOK(ecode2)) { | |
37313 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
37314 | } | |
37315 | arg2 = static_cast< int >(val2); | |
37316 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37317 | if (!SWIG_IsOK(ecode3)) { | |
37318 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
37319 | } | |
37320 | arg3 = static_cast< int >(val3); | |
37321 | { | |
37322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37323 | (arg1)->DrawPoint(arg2,arg3); | |
37324 | wxPyEndAllowThreads(__tstate); | |
37325 | if (PyErr_Occurred()) SWIG_fail; | |
37326 | } | |
37327 | resultobj = SWIG_Py_Void(); | |
37328 | return resultobj; | |
37329 | fail: | |
37330 | return NULL; | |
37331 | } | |
37332 | ||
37333 | ||
37334 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37335 | PyObject *resultobj = 0; | |
37336 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37337 | wxPoint *arg2 = 0 ; | |
37338 | void *argp1 = 0 ; | |
37339 | int res1 = 0 ; | |
37340 | wxPoint temp2 ; | |
37341 | PyObject * obj0 = 0 ; | |
37342 | PyObject * obj1 = 0 ; | |
37343 | char * kwnames[] = { | |
37344 | (char *) "self",(char *) "pt", NULL | |
37345 | }; | |
37346 | ||
37347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
37348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37349 | if (!SWIG_IsOK(res1)) { | |
37350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37351 | } | |
37352 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37353 | { | |
37354 | arg2 = &temp2; | |
37355 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37356 | } | |
37357 | { | |
37358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37359 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
37360 | wxPyEndAllowThreads(__tstate); | |
37361 | if (PyErr_Occurred()) SWIG_fail; | |
37362 | } | |
37363 | resultobj = SWIG_Py_Void(); | |
37364 | return resultobj; | |
37365 | fail: | |
37366 | return NULL; | |
37367 | } | |
37368 | ||
37369 | ||
37370 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37371 | PyObject *resultobj = 0; | |
37372 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37373 | int arg2 ; | |
37374 | int arg3 ; | |
37375 | int arg4 ; | |
37376 | int arg5 ; | |
37377 | void *argp1 = 0 ; | |
37378 | int res1 = 0 ; | |
37379 | int val2 ; | |
37380 | int ecode2 = 0 ; | |
37381 | int val3 ; | |
37382 | int ecode3 = 0 ; | |
37383 | int val4 ; | |
37384 | int ecode4 = 0 ; | |
37385 | int val5 ; | |
37386 | int ecode5 = 0 ; | |
37387 | PyObject * obj0 = 0 ; | |
37388 | PyObject * obj1 = 0 ; | |
37389 | PyObject * obj2 = 0 ; | |
37390 | PyObject * obj3 = 0 ; | |
37391 | PyObject * obj4 = 0 ; | |
37392 | char * kwnames[] = { | |
37393 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37394 | }; | |
37395 | ||
37396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37398 | if (!SWIG_IsOK(res1)) { | |
37399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37400 | } | |
37401 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37402 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37403 | if (!SWIG_IsOK(ecode2)) { | |
37404 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
37405 | } | |
37406 | arg2 = static_cast< int >(val2); | |
37407 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37408 | if (!SWIG_IsOK(ecode3)) { | |
37409 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
37410 | } | |
37411 | arg3 = static_cast< int >(val3); | |
37412 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37413 | if (!SWIG_IsOK(ecode4)) { | |
37414 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
37415 | } | |
37416 | arg4 = static_cast< int >(val4); | |
37417 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37418 | if (!SWIG_IsOK(ecode5)) { | |
37419 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
37420 | } | |
37421 | arg5 = static_cast< int >(val5); | |
37422 | { | |
37423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37424 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
37425 | wxPyEndAllowThreads(__tstate); | |
37426 | if (PyErr_Occurred()) SWIG_fail; | |
37427 | } | |
37428 | resultobj = SWIG_Py_Void(); | |
37429 | return resultobj; | |
37430 | fail: | |
37431 | return NULL; | |
37432 | } | |
37433 | ||
37434 | ||
37435 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37436 | PyObject *resultobj = 0; | |
37437 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37438 | wxRect *arg2 = 0 ; | |
37439 | void *argp1 = 0 ; | |
37440 | int res1 = 0 ; | |
37441 | wxRect temp2 ; | |
37442 | PyObject * obj0 = 0 ; | |
37443 | PyObject * obj1 = 0 ; | |
37444 | char * kwnames[] = { | |
37445 | (char *) "self",(char *) "rect", NULL | |
37446 | }; | |
37447 | ||
37448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37449 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37450 | if (!SWIG_IsOK(res1)) { | |
37451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37452 | } | |
37453 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37454 | { | |
37455 | arg2 = &temp2; | |
37456 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37457 | } | |
37458 | { | |
37459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37460 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
37461 | wxPyEndAllowThreads(__tstate); | |
37462 | if (PyErr_Occurred()) SWIG_fail; | |
37463 | } | |
37464 | resultobj = SWIG_Py_Void(); | |
37465 | return resultobj; | |
37466 | fail: | |
37467 | return NULL; | |
37468 | } | |
37469 | ||
37470 | ||
37471 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37472 | PyObject *resultobj = 0; | |
37473 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37474 | wxPoint *arg2 = 0 ; | |
37475 | wxSize *arg3 = 0 ; | |
37476 | void *argp1 = 0 ; | |
37477 | int res1 = 0 ; | |
37478 | wxPoint temp2 ; | |
37479 | wxSize temp3 ; | |
37480 | PyObject * obj0 = 0 ; | |
37481 | PyObject * obj1 = 0 ; | |
37482 | PyObject * obj2 = 0 ; | |
37483 | char * kwnames[] = { | |
37484 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37485 | }; | |
37486 | ||
37487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37489 | if (!SWIG_IsOK(res1)) { | |
37490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37491 | } | |
37492 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37493 | { | |
37494 | arg2 = &temp2; | |
37495 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37496 | } | |
37497 | { | |
37498 | arg3 = &temp3; | |
37499 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37500 | } | |
37501 | { | |
37502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37503 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37504 | wxPyEndAllowThreads(__tstate); | |
37505 | if (PyErr_Occurred()) SWIG_fail; | |
37506 | } | |
37507 | resultobj = SWIG_Py_Void(); | |
37508 | return resultobj; | |
37509 | fail: | |
37510 | return NULL; | |
37511 | } | |
37512 | ||
37513 | ||
37514 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37515 | PyObject *resultobj = 0; | |
37516 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37517 | int arg2 ; | |
37518 | int arg3 ; | |
37519 | int arg4 ; | |
37520 | int arg5 ; | |
37521 | double arg6 ; | |
37522 | void *argp1 = 0 ; | |
37523 | int res1 = 0 ; | |
37524 | int val2 ; | |
37525 | int ecode2 = 0 ; | |
37526 | int val3 ; | |
37527 | int ecode3 = 0 ; | |
37528 | int val4 ; | |
37529 | int ecode4 = 0 ; | |
37530 | int val5 ; | |
37531 | int ecode5 = 0 ; | |
37532 | double val6 ; | |
37533 | int ecode6 = 0 ; | |
37534 | PyObject * obj0 = 0 ; | |
37535 | PyObject * obj1 = 0 ; | |
37536 | PyObject * obj2 = 0 ; | |
37537 | PyObject * obj3 = 0 ; | |
37538 | PyObject * obj4 = 0 ; | |
37539 | PyObject * obj5 = 0 ; | |
37540 | char * kwnames[] = { | |
37541 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
37542 | }; | |
37543 | ||
37544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37546 | if (!SWIG_IsOK(res1)) { | |
37547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37548 | } | |
37549 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37550 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37551 | if (!SWIG_IsOK(ecode2)) { | |
37552 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
37553 | } | |
37554 | arg2 = static_cast< int >(val2); | |
37555 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37556 | if (!SWIG_IsOK(ecode3)) { | |
37557 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
37558 | } | |
37559 | arg3 = static_cast< int >(val3); | |
37560 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37561 | if (!SWIG_IsOK(ecode4)) { | |
37562 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
37563 | } | |
37564 | arg4 = static_cast< int >(val4); | |
37565 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37566 | if (!SWIG_IsOK(ecode5)) { | |
37567 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
37568 | } | |
37569 | arg5 = static_cast< int >(val5); | |
37570 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
37571 | if (!SWIG_IsOK(ecode6)) { | |
37572 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
37573 | } | |
37574 | arg6 = static_cast< double >(val6); | |
37575 | { | |
37576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37577 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
37578 | wxPyEndAllowThreads(__tstate); | |
37579 | if (PyErr_Occurred()) SWIG_fail; | |
37580 | } | |
37581 | resultobj = SWIG_Py_Void(); | |
37582 | return resultobj; | |
37583 | fail: | |
37584 | return NULL; | |
37585 | } | |
37586 | ||
37587 | ||
37588 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37589 | PyObject *resultobj = 0; | |
37590 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37591 | wxRect *arg2 = 0 ; | |
37592 | double arg3 ; | |
37593 | void *argp1 = 0 ; | |
37594 | int res1 = 0 ; | |
37595 | wxRect temp2 ; | |
37596 | double val3 ; | |
37597 | int ecode3 = 0 ; | |
37598 | PyObject * obj0 = 0 ; | |
37599 | PyObject * obj1 = 0 ; | |
37600 | PyObject * obj2 = 0 ; | |
37601 | char * kwnames[] = { | |
37602 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
37603 | }; | |
37604 | ||
37605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37607 | if (!SWIG_IsOK(res1)) { | |
37608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37609 | } | |
37610 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37611 | { | |
37612 | arg2 = &temp2; | |
37613 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37614 | } | |
37615 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
37616 | if (!SWIG_IsOK(ecode3)) { | |
37617 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
37618 | } | |
37619 | arg3 = static_cast< double >(val3); | |
37620 | { | |
37621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37622 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
37623 | wxPyEndAllowThreads(__tstate); | |
37624 | if (PyErr_Occurred()) SWIG_fail; | |
37625 | } | |
37626 | resultobj = SWIG_Py_Void(); | |
37627 | return resultobj; | |
37628 | fail: | |
37629 | return NULL; | |
37630 | } | |
37631 | ||
37632 | ||
37633 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37634 | PyObject *resultobj = 0; | |
37635 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37636 | wxPoint *arg2 = 0 ; | |
37637 | wxSize *arg3 = 0 ; | |
37638 | double arg4 ; | |
37639 | void *argp1 = 0 ; | |
37640 | int res1 = 0 ; | |
37641 | wxPoint temp2 ; | |
37642 | wxSize temp3 ; | |
37643 | double val4 ; | |
37644 | int ecode4 = 0 ; | |
37645 | PyObject * obj0 = 0 ; | |
37646 | PyObject * obj1 = 0 ; | |
37647 | PyObject * obj2 = 0 ; | |
37648 | PyObject * obj3 = 0 ; | |
37649 | char * kwnames[] = { | |
37650 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
37651 | }; | |
37652 | ||
37653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37654 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37655 | if (!SWIG_IsOK(res1)) { | |
37656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37657 | } | |
37658 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37659 | { | |
37660 | arg2 = &temp2; | |
37661 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37662 | } | |
37663 | { | |
37664 | arg3 = &temp3; | |
37665 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37666 | } | |
37667 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37668 | if (!SWIG_IsOK(ecode4)) { | |
37669 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
37670 | } | |
37671 | arg4 = static_cast< double >(val4); | |
37672 | { | |
37673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37674 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
37675 | wxPyEndAllowThreads(__tstate); | |
37676 | if (PyErr_Occurred()) SWIG_fail; | |
37677 | } | |
37678 | resultobj = SWIG_Py_Void(); | |
37679 | return resultobj; | |
37680 | fail: | |
37681 | return NULL; | |
37682 | } | |
37683 | ||
37684 | ||
37685 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37686 | PyObject *resultobj = 0; | |
37687 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37688 | int arg2 ; | |
37689 | int arg3 ; | |
37690 | int arg4 ; | |
37691 | void *argp1 = 0 ; | |
37692 | int res1 = 0 ; | |
37693 | int val2 ; | |
37694 | int ecode2 = 0 ; | |
37695 | int val3 ; | |
37696 | int ecode3 = 0 ; | |
37697 | int val4 ; | |
37698 | int ecode4 = 0 ; | |
37699 | PyObject * obj0 = 0 ; | |
37700 | PyObject * obj1 = 0 ; | |
37701 | PyObject * obj2 = 0 ; | |
37702 | PyObject * obj3 = 0 ; | |
37703 | char * kwnames[] = { | |
37704 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
37705 | }; | |
37706 | ||
37707 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37708 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37709 | if (!SWIG_IsOK(res1)) { | |
37710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37711 | } | |
37712 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37713 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37714 | if (!SWIG_IsOK(ecode2)) { | |
37715 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
37716 | } | |
37717 | arg2 = static_cast< int >(val2); | |
37718 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37719 | if (!SWIG_IsOK(ecode3)) { | |
37720 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
37721 | } | |
37722 | arg3 = static_cast< int >(val3); | |
37723 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37724 | if (!SWIG_IsOK(ecode4)) { | |
37725 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
37726 | } | |
37727 | arg4 = static_cast< int >(val4); | |
37728 | { | |
37729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37730 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
37731 | wxPyEndAllowThreads(__tstate); | |
37732 | if (PyErr_Occurred()) SWIG_fail; | |
37733 | } | |
37734 | resultobj = SWIG_Py_Void(); | |
37735 | return resultobj; | |
37736 | fail: | |
37737 | return NULL; | |
37738 | } | |
37739 | ||
37740 | ||
37741 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37742 | PyObject *resultobj = 0; | |
37743 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37744 | wxPoint *arg2 = 0 ; | |
37745 | int arg3 ; | |
37746 | void *argp1 = 0 ; | |
37747 | int res1 = 0 ; | |
37748 | wxPoint temp2 ; | |
37749 | int val3 ; | |
37750 | int ecode3 = 0 ; | |
37751 | PyObject * obj0 = 0 ; | |
37752 | PyObject * obj1 = 0 ; | |
37753 | PyObject * obj2 = 0 ; | |
37754 | char * kwnames[] = { | |
37755 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
37756 | }; | |
37757 | ||
37758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37759 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37760 | if (!SWIG_IsOK(res1)) { | |
37761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37762 | } | |
37763 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37764 | { | |
37765 | arg2 = &temp2; | |
37766 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37767 | } | |
37768 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37769 | if (!SWIG_IsOK(ecode3)) { | |
37770 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
37771 | } | |
37772 | arg3 = static_cast< int >(val3); | |
37773 | { | |
37774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37775 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
37776 | wxPyEndAllowThreads(__tstate); | |
37777 | if (PyErr_Occurred()) SWIG_fail; | |
37778 | } | |
37779 | resultobj = SWIG_Py_Void(); | |
37780 | return resultobj; | |
37781 | fail: | |
37782 | return NULL; | |
37783 | } | |
37784 | ||
37785 | ||
37786 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37787 | PyObject *resultobj = 0; | |
37788 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37789 | int arg2 ; | |
37790 | int arg3 ; | |
37791 | int arg4 ; | |
37792 | int arg5 ; | |
37793 | void *argp1 = 0 ; | |
37794 | int res1 = 0 ; | |
37795 | int val2 ; | |
37796 | int ecode2 = 0 ; | |
37797 | int val3 ; | |
37798 | int ecode3 = 0 ; | |
37799 | int val4 ; | |
37800 | int ecode4 = 0 ; | |
37801 | int val5 ; | |
37802 | int ecode5 = 0 ; | |
37803 | PyObject * obj0 = 0 ; | |
37804 | PyObject * obj1 = 0 ; | |
37805 | PyObject * obj2 = 0 ; | |
37806 | PyObject * obj3 = 0 ; | |
37807 | PyObject * obj4 = 0 ; | |
37808 | char * kwnames[] = { | |
37809 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37810 | }; | |
37811 | ||
37812 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37813 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37814 | if (!SWIG_IsOK(res1)) { | |
37815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37816 | } | |
37817 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37818 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37819 | if (!SWIG_IsOK(ecode2)) { | |
37820 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
37821 | } | |
37822 | arg2 = static_cast< int >(val2); | |
37823 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37824 | if (!SWIG_IsOK(ecode3)) { | |
37825 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
37826 | } | |
37827 | arg3 = static_cast< int >(val3); | |
37828 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37829 | if (!SWIG_IsOK(ecode4)) { | |
37830 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
37831 | } | |
37832 | arg4 = static_cast< int >(val4); | |
37833 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37834 | if (!SWIG_IsOK(ecode5)) { | |
37835 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
37836 | } | |
37837 | arg5 = static_cast< int >(val5); | |
37838 | { | |
37839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37840 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
37841 | wxPyEndAllowThreads(__tstate); | |
37842 | if (PyErr_Occurred()) SWIG_fail; | |
37843 | } | |
37844 | resultobj = SWIG_Py_Void(); | |
37845 | return resultobj; | |
37846 | fail: | |
37847 | return NULL; | |
37848 | } | |
37849 | ||
37850 | ||
37851 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37852 | PyObject *resultobj = 0; | |
37853 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37854 | wxRect *arg2 = 0 ; | |
37855 | void *argp1 = 0 ; | |
37856 | int res1 = 0 ; | |
37857 | wxRect temp2 ; | |
37858 | PyObject * obj0 = 0 ; | |
37859 | PyObject * obj1 = 0 ; | |
37860 | char * kwnames[] = { | |
37861 | (char *) "self",(char *) "rect", NULL | |
37862 | }; | |
37863 | ||
37864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) 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_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37868 | } | |
37869 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37870 | { | |
37871 | arg2 = &temp2; | |
37872 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37873 | } | |
37874 | { | |
37875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37876 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
37877 | wxPyEndAllowThreads(__tstate); | |
37878 | if (PyErr_Occurred()) SWIG_fail; | |
37879 | } | |
37880 | resultobj = SWIG_Py_Void(); | |
37881 | return resultobj; | |
37882 | fail: | |
37883 | return NULL; | |
37884 | } | |
37885 | ||
37886 | ||
37887 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37888 | PyObject *resultobj = 0; | |
37889 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37890 | wxPoint *arg2 = 0 ; | |
37891 | wxSize *arg3 = 0 ; | |
37892 | void *argp1 = 0 ; | |
37893 | int res1 = 0 ; | |
37894 | wxPoint temp2 ; | |
37895 | wxSize temp3 ; | |
37896 | PyObject * obj0 = 0 ; | |
37897 | PyObject * obj1 = 0 ; | |
37898 | PyObject * obj2 = 0 ; | |
37899 | char * kwnames[] = { | |
37900 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37901 | }; | |
37902 | ||
37903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37905 | if (!SWIG_IsOK(res1)) { | |
37906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37907 | } | |
37908 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37909 | { | |
37910 | arg2 = &temp2; | |
37911 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37912 | } | |
37913 | { | |
37914 | arg3 = &temp3; | |
37915 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37916 | } | |
37917 | { | |
37918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37919 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37920 | wxPyEndAllowThreads(__tstate); | |
37921 | if (PyErr_Occurred()) SWIG_fail; | |
37922 | } | |
37923 | resultobj = SWIG_Py_Void(); | |
37924 | return resultobj; | |
37925 | fail: | |
37926 | return NULL; | |
37927 | } | |
37928 | ||
37929 | ||
37930 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37931 | PyObject *resultobj = 0; | |
37932 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37933 | wxIcon *arg2 = 0 ; | |
37934 | int arg3 ; | |
37935 | int arg4 ; | |
37936 | void *argp1 = 0 ; | |
37937 | int res1 = 0 ; | |
37938 | void *argp2 = 0 ; | |
37939 | int res2 = 0 ; | |
37940 | int val3 ; | |
37941 | int ecode3 = 0 ; | |
37942 | int val4 ; | |
37943 | int ecode4 = 0 ; | |
37944 | PyObject * obj0 = 0 ; | |
37945 | PyObject * obj1 = 0 ; | |
37946 | PyObject * obj2 = 0 ; | |
37947 | PyObject * obj3 = 0 ; | |
37948 | char * kwnames[] = { | |
37949 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
37950 | }; | |
37951 | ||
37952 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37953 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37954 | if (!SWIG_IsOK(res1)) { | |
37955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37956 | } | |
37957 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37958 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
37959 | if (!SWIG_IsOK(res2)) { | |
37960 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37961 | } | |
37962 | if (!argp2) { | |
37963 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37964 | } | |
37965 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
37966 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37967 | if (!SWIG_IsOK(ecode3)) { | |
37968 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
37969 | } | |
37970 | arg3 = static_cast< int >(val3); | |
37971 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37972 | if (!SWIG_IsOK(ecode4)) { | |
37973 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
37974 | } | |
37975 | arg4 = static_cast< int >(val4); | |
37976 | { | |
37977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37978 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
37979 | wxPyEndAllowThreads(__tstate); | |
37980 | if (PyErr_Occurred()) SWIG_fail; | |
37981 | } | |
37982 | resultobj = SWIG_Py_Void(); | |
37983 | return resultobj; | |
37984 | fail: | |
37985 | return NULL; | |
37986 | } | |
37987 | ||
37988 | ||
37989 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37990 | PyObject *resultobj = 0; | |
37991 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37992 | wxIcon *arg2 = 0 ; | |
37993 | wxPoint *arg3 = 0 ; | |
37994 | void *argp1 = 0 ; | |
37995 | int res1 = 0 ; | |
37996 | void *argp2 = 0 ; | |
37997 | int res2 = 0 ; | |
37998 | wxPoint temp3 ; | |
37999 | PyObject * obj0 = 0 ; | |
38000 | PyObject * obj1 = 0 ; | |
38001 | PyObject * obj2 = 0 ; | |
38002 | char * kwnames[] = { | |
38003 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
38004 | }; | |
38005 | ||
38006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38008 | if (!SWIG_IsOK(res1)) { | |
38009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38010 | } | |
38011 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38012 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
38013 | if (!SWIG_IsOK(res2)) { | |
38014 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38015 | } | |
38016 | if (!argp2) { | |
38017 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38018 | } | |
38019 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
38020 | { | |
38021 | arg3 = &temp3; | |
38022 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38023 | } | |
38024 | { | |
38025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38026 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
38027 | wxPyEndAllowThreads(__tstate); | |
38028 | if (PyErr_Occurred()) SWIG_fail; | |
38029 | } | |
38030 | resultobj = SWIG_Py_Void(); | |
38031 | return resultobj; | |
38032 | fail: | |
38033 | return NULL; | |
38034 | } | |
38035 | ||
38036 | ||
38037 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38038 | PyObject *resultobj = 0; | |
38039 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38040 | wxBitmap *arg2 = 0 ; | |
38041 | int arg3 ; | |
38042 | int arg4 ; | |
38043 | bool arg5 = (bool) false ; | |
38044 | void *argp1 = 0 ; | |
38045 | int res1 = 0 ; | |
38046 | void *argp2 = 0 ; | |
38047 | int res2 = 0 ; | |
38048 | int val3 ; | |
38049 | int ecode3 = 0 ; | |
38050 | int val4 ; | |
38051 | int ecode4 = 0 ; | |
38052 | bool val5 ; | |
38053 | int ecode5 = 0 ; | |
38054 | PyObject * obj0 = 0 ; | |
38055 | PyObject * obj1 = 0 ; | |
38056 | PyObject * obj2 = 0 ; | |
38057 | PyObject * obj3 = 0 ; | |
38058 | PyObject * obj4 = 0 ; | |
38059 | char * kwnames[] = { | |
38060 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
38061 | }; | |
38062 | ||
38063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38065 | if (!SWIG_IsOK(res1)) { | |
38066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38067 | } | |
38068 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38069 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38070 | if (!SWIG_IsOK(res2)) { | |
38071 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38072 | } | |
38073 | if (!argp2) { | |
38074 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38075 | } | |
38076 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
38077 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38078 | if (!SWIG_IsOK(ecode3)) { | |
38079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
38080 | } | |
38081 | arg3 = static_cast< int >(val3); | |
38082 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38083 | if (!SWIG_IsOK(ecode4)) { | |
38084 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
38085 | } | |
38086 | arg4 = static_cast< int >(val4); | |
38087 | if (obj4) { | |
38088 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
38089 | if (!SWIG_IsOK(ecode5)) { | |
38090 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
38091 | } | |
38092 | arg5 = static_cast< bool >(val5); | |
38093 | } | |
38094 | { | |
38095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38096 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
38097 | wxPyEndAllowThreads(__tstate); | |
38098 | if (PyErr_Occurred()) SWIG_fail; | |
38099 | } | |
38100 | resultobj = SWIG_Py_Void(); | |
38101 | return resultobj; | |
38102 | fail: | |
38103 | return NULL; | |
38104 | } | |
38105 | ||
38106 | ||
38107 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38108 | PyObject *resultobj = 0; | |
38109 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38110 | wxBitmap *arg2 = 0 ; | |
38111 | wxPoint *arg3 = 0 ; | |
38112 | bool arg4 = (bool) false ; | |
38113 | void *argp1 = 0 ; | |
38114 | int res1 = 0 ; | |
38115 | void *argp2 = 0 ; | |
38116 | int res2 = 0 ; | |
38117 | wxPoint temp3 ; | |
38118 | bool val4 ; | |
38119 | int ecode4 = 0 ; | |
38120 | PyObject * obj0 = 0 ; | |
38121 | PyObject * obj1 = 0 ; | |
38122 | PyObject * obj2 = 0 ; | |
38123 | PyObject * obj3 = 0 ; | |
38124 | char * kwnames[] = { | |
38125 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
38126 | }; | |
38127 | ||
38128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38130 | if (!SWIG_IsOK(res1)) { | |
38131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38132 | } | |
38133 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38134 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38135 | if (!SWIG_IsOK(res2)) { | |
38136 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38137 | } | |
38138 | if (!argp2) { | |
38139 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38140 | } | |
38141 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
38142 | { | |
38143 | arg3 = &temp3; | |
38144 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38145 | } | |
38146 | if (obj3) { | |
38147 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
38148 | if (!SWIG_IsOK(ecode4)) { | |
38149 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
38150 | } | |
38151 | arg4 = static_cast< bool >(val4); | |
38152 | } | |
38153 | { | |
38154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38155 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
38156 | wxPyEndAllowThreads(__tstate); | |
38157 | if (PyErr_Occurred()) SWIG_fail; | |
38158 | } | |
38159 | resultobj = SWIG_Py_Void(); | |
38160 | return resultobj; | |
38161 | fail: | |
38162 | return NULL; | |
38163 | } | |
38164 | ||
38165 | ||
38166 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38167 | PyObject *resultobj = 0; | |
38168 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38169 | wxString *arg2 = 0 ; | |
38170 | int arg3 ; | |
38171 | int arg4 ; | |
38172 | void *argp1 = 0 ; | |
38173 | int res1 = 0 ; | |
38174 | bool temp2 = false ; | |
38175 | int val3 ; | |
38176 | int ecode3 = 0 ; | |
38177 | int val4 ; | |
38178 | int ecode4 = 0 ; | |
38179 | PyObject * obj0 = 0 ; | |
38180 | PyObject * obj1 = 0 ; | |
38181 | PyObject * obj2 = 0 ; | |
38182 | PyObject * obj3 = 0 ; | |
38183 | char * kwnames[] = { | |
38184 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
38185 | }; | |
38186 | ||
38187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38189 | if (!SWIG_IsOK(res1)) { | |
38190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38191 | } | |
38192 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38193 | { | |
38194 | arg2 = wxString_in_helper(obj1); | |
38195 | if (arg2 == NULL) SWIG_fail; | |
38196 | temp2 = true; | |
38197 | } | |
38198 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38199 | if (!SWIG_IsOK(ecode3)) { | |
38200 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
38201 | } | |
38202 | arg3 = static_cast< int >(val3); | |
38203 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38204 | if (!SWIG_IsOK(ecode4)) { | |
38205 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
38206 | } | |
38207 | arg4 = static_cast< int >(val4); | |
38208 | { | |
38209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38210 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
38211 | wxPyEndAllowThreads(__tstate); | |
38212 | if (PyErr_Occurred()) SWIG_fail; | |
38213 | } | |
38214 | resultobj = SWIG_Py_Void(); | |
38215 | { | |
38216 | if (temp2) | |
38217 | delete arg2; | |
38218 | } | |
38219 | return resultobj; | |
38220 | fail: | |
38221 | { | |
38222 | if (temp2) | |
38223 | delete arg2; | |
38224 | } | |
38225 | return NULL; | |
38226 | } | |
38227 | ||
38228 | ||
38229 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38230 | PyObject *resultobj = 0; | |
38231 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38232 | wxString *arg2 = 0 ; | |
38233 | wxPoint *arg3 = 0 ; | |
38234 | void *argp1 = 0 ; | |
38235 | int res1 = 0 ; | |
38236 | bool temp2 = false ; | |
38237 | wxPoint temp3 ; | |
38238 | PyObject * obj0 = 0 ; | |
38239 | PyObject * obj1 = 0 ; | |
38240 | PyObject * obj2 = 0 ; | |
38241 | char * kwnames[] = { | |
38242 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
38243 | }; | |
38244 | ||
38245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38247 | if (!SWIG_IsOK(res1)) { | |
38248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38249 | } | |
38250 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38251 | { | |
38252 | arg2 = wxString_in_helper(obj1); | |
38253 | if (arg2 == NULL) SWIG_fail; | |
38254 | temp2 = true; | |
38255 | } | |
38256 | { | |
38257 | arg3 = &temp3; | |
38258 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38259 | } | |
38260 | { | |
38261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38262 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
38263 | wxPyEndAllowThreads(__tstate); | |
38264 | if (PyErr_Occurred()) SWIG_fail; | |
38265 | } | |
38266 | resultobj = SWIG_Py_Void(); | |
38267 | { | |
38268 | if (temp2) | |
38269 | delete arg2; | |
38270 | } | |
38271 | return resultobj; | |
38272 | fail: | |
38273 | { | |
38274 | if (temp2) | |
38275 | delete arg2; | |
38276 | } | |
38277 | return NULL; | |
38278 | } | |
38279 | ||
38280 | ||
38281 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38282 | PyObject *resultobj = 0; | |
38283 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38284 | wxString *arg2 = 0 ; | |
38285 | int arg3 ; | |
38286 | int arg4 ; | |
38287 | double arg5 ; | |
38288 | void *argp1 = 0 ; | |
38289 | int res1 = 0 ; | |
38290 | bool temp2 = false ; | |
38291 | int val3 ; | |
38292 | int ecode3 = 0 ; | |
38293 | int val4 ; | |
38294 | int ecode4 = 0 ; | |
38295 | double val5 ; | |
38296 | int ecode5 = 0 ; | |
38297 | PyObject * obj0 = 0 ; | |
38298 | PyObject * obj1 = 0 ; | |
38299 | PyObject * obj2 = 0 ; | |
38300 | PyObject * obj3 = 0 ; | |
38301 | PyObject * obj4 = 0 ; | |
38302 | char * kwnames[] = { | |
38303 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
38304 | }; | |
38305 | ||
38306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38308 | if (!SWIG_IsOK(res1)) { | |
38309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38310 | } | |
38311 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38312 | { | |
38313 | arg2 = wxString_in_helper(obj1); | |
38314 | if (arg2 == NULL) SWIG_fail; | |
38315 | temp2 = true; | |
38316 | } | |
38317 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38318 | if (!SWIG_IsOK(ecode3)) { | |
38319 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
38320 | } | |
38321 | arg3 = static_cast< int >(val3); | |
38322 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38323 | if (!SWIG_IsOK(ecode4)) { | |
38324 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
38325 | } | |
38326 | arg4 = static_cast< int >(val4); | |
38327 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
38328 | if (!SWIG_IsOK(ecode5)) { | |
38329 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
38330 | } | |
38331 | arg5 = static_cast< double >(val5); | |
38332 | { | |
38333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38334 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
38335 | wxPyEndAllowThreads(__tstate); | |
38336 | if (PyErr_Occurred()) SWIG_fail; | |
38337 | } | |
38338 | resultobj = SWIG_Py_Void(); | |
38339 | { | |
38340 | if (temp2) | |
38341 | delete arg2; | |
38342 | } | |
38343 | return resultobj; | |
38344 | fail: | |
38345 | { | |
38346 | if (temp2) | |
38347 | delete arg2; | |
38348 | } | |
38349 | return NULL; | |
38350 | } | |
38351 | ||
38352 | ||
38353 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38354 | PyObject *resultobj = 0; | |
38355 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38356 | wxString *arg2 = 0 ; | |
38357 | wxPoint *arg3 = 0 ; | |
38358 | double arg4 ; | |
38359 | void *argp1 = 0 ; | |
38360 | int res1 = 0 ; | |
38361 | bool temp2 = false ; | |
38362 | wxPoint temp3 ; | |
38363 | double val4 ; | |
38364 | int ecode4 = 0 ; | |
38365 | PyObject * obj0 = 0 ; | |
38366 | PyObject * obj1 = 0 ; | |
38367 | PyObject * obj2 = 0 ; | |
38368 | PyObject * obj3 = 0 ; | |
38369 | char * kwnames[] = { | |
38370 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
38371 | }; | |
38372 | ||
38373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38375 | if (!SWIG_IsOK(res1)) { | |
38376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38377 | } | |
38378 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38379 | { | |
38380 | arg2 = wxString_in_helper(obj1); | |
38381 | if (arg2 == NULL) SWIG_fail; | |
38382 | temp2 = true; | |
38383 | } | |
38384 | { | |
38385 | arg3 = &temp3; | |
38386 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38387 | } | |
38388 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
38389 | if (!SWIG_IsOK(ecode4)) { | |
38390 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
38391 | } | |
38392 | arg4 = static_cast< double >(val4); | |
38393 | { | |
38394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38395 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
38396 | wxPyEndAllowThreads(__tstate); | |
38397 | if (PyErr_Occurred()) SWIG_fail; | |
38398 | } | |
38399 | resultobj = SWIG_Py_Void(); | |
38400 | { | |
38401 | if (temp2) | |
38402 | delete arg2; | |
38403 | } | |
38404 | return resultobj; | |
38405 | fail: | |
38406 | { | |
38407 | if (temp2) | |
38408 | delete arg2; | |
38409 | } | |
38410 | return NULL; | |
38411 | } | |
38412 | ||
38413 | ||
38414 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38415 | PyObject *resultobj = 0; | |
38416 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38417 | int arg2 ; | |
38418 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38419 | int arg4 = (int) 0 ; | |
38420 | int arg5 = (int) 0 ; | |
38421 | void *argp1 = 0 ; | |
38422 | int res1 = 0 ; | |
38423 | int val4 ; | |
38424 | int ecode4 = 0 ; | |
38425 | int val5 ; | |
38426 | int ecode5 = 0 ; | |
38427 | PyObject * obj0 = 0 ; | |
38428 | PyObject * obj1 = 0 ; | |
38429 | PyObject * obj2 = 0 ; | |
38430 | PyObject * obj3 = 0 ; | |
38431 | char * kwnames[] = { | |
38432 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
38433 | }; | |
38434 | ||
38435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38437 | if (!SWIG_IsOK(res1)) { | |
38438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38439 | } | |
38440 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38441 | { | |
38442 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38443 | if (arg3 == NULL) SWIG_fail; | |
38444 | } | |
38445 | if (obj2) { | |
38446 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
38447 | if (!SWIG_IsOK(ecode4)) { | |
38448 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
38449 | } | |
38450 | arg4 = static_cast< int >(val4); | |
38451 | } | |
38452 | if (obj3) { | |
38453 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
38454 | if (!SWIG_IsOK(ecode5)) { | |
38455 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
38456 | } | |
38457 | arg5 = static_cast< int >(val5); | |
38458 | } | |
38459 | { | |
38460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38461 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
38462 | wxPyEndAllowThreads(__tstate); | |
38463 | if (PyErr_Occurred()) SWIG_fail; | |
38464 | } | |
38465 | resultobj = SWIG_Py_Void(); | |
38466 | { | |
38467 | if (arg3) delete [] arg3; | |
38468 | } | |
38469 | return resultobj; | |
38470 | fail: | |
38471 | { | |
38472 | if (arg3) delete [] arg3; | |
38473 | } | |
38474 | return NULL; | |
38475 | } | |
38476 | ||
38477 | ||
38478 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38479 | PyObject *resultobj = 0; | |
38480 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38481 | int arg2 ; | |
38482 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38483 | int arg4 = (int) 0 ; | |
38484 | int arg5 = (int) 0 ; | |
38485 | int arg6 = (int) wxODDEVEN_RULE ; | |
38486 | void *argp1 = 0 ; | |
38487 | int res1 = 0 ; | |
38488 | int val4 ; | |
38489 | int ecode4 = 0 ; | |
38490 | int val5 ; | |
38491 | int ecode5 = 0 ; | |
38492 | int val6 ; | |
38493 | int ecode6 = 0 ; | |
38494 | PyObject * obj0 = 0 ; | |
38495 | PyObject * obj1 = 0 ; | |
38496 | PyObject * obj2 = 0 ; | |
38497 | PyObject * obj3 = 0 ; | |
38498 | PyObject * obj4 = 0 ; | |
38499 | char * kwnames[] = { | |
38500 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
38501 | }; | |
38502 | ||
38503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38505 | if (!SWIG_IsOK(res1)) { | |
38506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38507 | } | |
38508 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38509 | { | |
38510 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38511 | if (arg3 == NULL) SWIG_fail; | |
38512 | } | |
38513 | if (obj2) { | |
38514 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
38515 | if (!SWIG_IsOK(ecode4)) { | |
38516 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
38517 | } | |
38518 | arg4 = static_cast< int >(val4); | |
38519 | } | |
38520 | if (obj3) { | |
38521 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
38522 | if (!SWIG_IsOK(ecode5)) { | |
38523 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
38524 | } | |
38525 | arg5 = static_cast< int >(val5); | |
38526 | } | |
38527 | if (obj4) { | |
38528 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
38529 | if (!SWIG_IsOK(ecode6)) { | |
38530 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
38531 | } | |
38532 | arg6 = static_cast< int >(val6); | |
38533 | } | |
38534 | { | |
38535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38536 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
38537 | wxPyEndAllowThreads(__tstate); | |
38538 | if (PyErr_Occurred()) SWIG_fail; | |
38539 | } | |
38540 | resultobj = SWIG_Py_Void(); | |
38541 | { | |
38542 | if (arg3) delete [] arg3; | |
38543 | } | |
38544 | return resultobj; | |
38545 | fail: | |
38546 | { | |
38547 | if (arg3) delete [] arg3; | |
38548 | } | |
38549 | return NULL; | |
38550 | } | |
38551 | ||
38552 | ||
38553 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38554 | PyObject *resultobj = 0; | |
38555 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38556 | wxString *arg2 = 0 ; | |
38557 | wxRect *arg3 = 0 ; | |
38558 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38559 | int arg5 = (int) -1 ; | |
38560 | void *argp1 = 0 ; | |
38561 | int res1 = 0 ; | |
38562 | bool temp2 = false ; | |
38563 | wxRect temp3 ; | |
38564 | int val4 ; | |
38565 | int ecode4 = 0 ; | |
38566 | int val5 ; | |
38567 | int ecode5 = 0 ; | |
38568 | PyObject * obj0 = 0 ; | |
38569 | PyObject * obj1 = 0 ; | |
38570 | PyObject * obj2 = 0 ; | |
38571 | PyObject * obj3 = 0 ; | |
38572 | PyObject * obj4 = 0 ; | |
38573 | char * kwnames[] = { | |
38574 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38575 | }; | |
38576 | ||
38577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38579 | if (!SWIG_IsOK(res1)) { | |
38580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38581 | } | |
38582 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38583 | { | |
38584 | arg2 = wxString_in_helper(obj1); | |
38585 | if (arg2 == NULL) SWIG_fail; | |
38586 | temp2 = true; | |
38587 | } | |
38588 | { | |
38589 | arg3 = &temp3; | |
38590 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
38591 | } | |
38592 | if (obj3) { | |
38593 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38594 | if (!SWIG_IsOK(ecode4)) { | |
38595 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
38596 | } | |
38597 | arg4 = static_cast< int >(val4); | |
38598 | } | |
38599 | if (obj4) { | |
38600 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38601 | if (!SWIG_IsOK(ecode5)) { | |
38602 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
38603 | } | |
38604 | arg5 = static_cast< int >(val5); | |
38605 | } | |
38606 | { | |
38607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38608 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
38609 | wxPyEndAllowThreads(__tstate); | |
38610 | if (PyErr_Occurred()) SWIG_fail; | |
38611 | } | |
38612 | resultobj = SWIG_Py_Void(); | |
38613 | { | |
38614 | if (temp2) | |
38615 | delete arg2; | |
38616 | } | |
38617 | return resultobj; | |
38618 | fail: | |
38619 | { | |
38620 | if (temp2) | |
38621 | delete arg2; | |
38622 | } | |
38623 | return NULL; | |
38624 | } | |
38625 | ||
38626 | ||
38627 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38628 | PyObject *resultobj = 0; | |
38629 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38630 | wxString *arg2 = 0 ; | |
38631 | wxBitmap *arg3 = 0 ; | |
38632 | wxRect *arg4 = 0 ; | |
38633 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38634 | int arg6 = (int) -1 ; | |
38635 | void *argp1 = 0 ; | |
38636 | int res1 = 0 ; | |
38637 | bool temp2 = false ; | |
38638 | void *argp3 = 0 ; | |
38639 | int res3 = 0 ; | |
38640 | wxRect temp4 ; | |
38641 | int val5 ; | |
38642 | int ecode5 = 0 ; | |
38643 | int val6 ; | |
38644 | int ecode6 = 0 ; | |
38645 | PyObject * obj0 = 0 ; | |
38646 | PyObject * obj1 = 0 ; | |
38647 | PyObject * obj2 = 0 ; | |
38648 | PyObject * obj3 = 0 ; | |
38649 | PyObject * obj4 = 0 ; | |
38650 | PyObject * obj5 = 0 ; | |
38651 | char * kwnames[] = { | |
38652 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38653 | }; | |
38654 | ||
38655 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38656 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38657 | if (!SWIG_IsOK(res1)) { | |
38658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38659 | } | |
38660 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38661 | { | |
38662 | arg2 = wxString_in_helper(obj1); | |
38663 | if (arg2 == NULL) SWIG_fail; | |
38664 | temp2 = true; | |
38665 | } | |
38666 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38667 | if (!SWIG_IsOK(res3)) { | |
38668 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38669 | } | |
38670 | if (!argp3) { | |
38671 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38672 | } | |
38673 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
38674 | { | |
38675 | arg4 = &temp4; | |
38676 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
38677 | } | |
38678 | if (obj4) { | |
38679 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38680 | if (!SWIG_IsOK(ecode5)) { | |
38681 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
38682 | } | |
38683 | arg5 = static_cast< int >(val5); | |
38684 | } | |
38685 | if (obj5) { | |
38686 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
38687 | if (!SWIG_IsOK(ecode6)) { | |
38688 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
38689 | } | |
38690 | arg6 = static_cast< int >(val6); | |
38691 | } | |
38692 | { | |
38693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38694 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
38695 | wxPyEndAllowThreads(__tstate); | |
38696 | if (PyErr_Occurred()) SWIG_fail; | |
38697 | } | |
38698 | resultobj = SWIG_Py_Void(); | |
38699 | { | |
38700 | if (temp2) | |
38701 | delete arg2; | |
38702 | } | |
38703 | return resultobj; | |
38704 | fail: | |
38705 | { | |
38706 | if (temp2) | |
38707 | delete arg2; | |
38708 | } | |
38709 | return NULL; | |
38710 | } | |
38711 | ||
38712 | ||
38713 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38714 | PyObject *resultobj = 0; | |
38715 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38716 | int arg2 ; | |
38717 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38718 | void *argp1 = 0 ; | |
38719 | int res1 = 0 ; | |
38720 | PyObject * obj0 = 0 ; | |
38721 | PyObject * obj1 = 0 ; | |
38722 | char * kwnames[] = { | |
38723 | (char *) "self",(char *) "points", NULL | |
38724 | }; | |
38725 | ||
38726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
38727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38728 | if (!SWIG_IsOK(res1)) { | |
38729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38730 | } | |
38731 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38732 | { | |
38733 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38734 | if (arg3 == NULL) SWIG_fail; | |
38735 | } | |
38736 | { | |
38737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38738 | (arg1)->DrawSpline(arg2,arg3); | |
38739 | wxPyEndAllowThreads(__tstate); | |
38740 | if (PyErr_Occurred()) SWIG_fail; | |
38741 | } | |
38742 | resultobj = SWIG_Py_Void(); | |
38743 | { | |
38744 | if (arg3) delete [] arg3; | |
38745 | } | |
38746 | return resultobj; | |
38747 | fail: | |
38748 | { | |
38749 | if (arg3) delete [] arg3; | |
38750 | } | |
38751 | return NULL; | |
38752 | } | |
38753 | ||
38754 | ||
38755 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38756 | PyObject *resultobj = 0; | |
38757 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38758 | void *argp1 = 0 ; | |
38759 | int res1 = 0 ; | |
38760 | PyObject *swig_obj[1] ; | |
38761 | ||
38762 | if (!args) SWIG_fail; | |
38763 | swig_obj[0] = args; | |
38764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38765 | if (!SWIG_IsOK(res1)) { | |
38766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38767 | } | |
38768 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38769 | { | |
38770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38771 | (arg1)->Clear(); | |
38772 | wxPyEndAllowThreads(__tstate); | |
38773 | if (PyErr_Occurred()) SWIG_fail; | |
38774 | } | |
38775 | resultobj = SWIG_Py_Void(); | |
38776 | return resultobj; | |
38777 | fail: | |
38778 | return NULL; | |
38779 | } | |
38780 | ||
38781 | ||
38782 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38783 | PyObject *resultobj = 0; | |
38784 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38785 | wxFont *arg2 = 0 ; | |
38786 | void *argp1 = 0 ; | |
38787 | int res1 = 0 ; | |
38788 | void *argp2 = 0 ; | |
38789 | int res2 = 0 ; | |
38790 | PyObject * obj0 = 0 ; | |
38791 | PyObject * obj1 = 0 ; | |
38792 | char * kwnames[] = { | |
38793 | (char *) "self",(char *) "font", NULL | |
38794 | }; | |
38795 | ||
38796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
38797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38798 | if (!SWIG_IsOK(res1)) { | |
38799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38800 | } | |
38801 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38802 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
38803 | if (!SWIG_IsOK(res2)) { | |
38804 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38805 | } | |
38806 | if (!argp2) { | |
38807 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38808 | } | |
38809 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
38810 | { | |
38811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38812 | (arg1)->SetFont((wxFont const &)*arg2); | |
38813 | wxPyEndAllowThreads(__tstate); | |
38814 | if (PyErr_Occurred()) SWIG_fail; | |
38815 | } | |
38816 | resultobj = SWIG_Py_Void(); | |
38817 | return resultobj; | |
38818 | fail: | |
38819 | return NULL; | |
38820 | } | |
38821 | ||
38822 | ||
38823 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38824 | PyObject *resultobj = 0; | |
38825 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38826 | wxPen *arg2 = 0 ; | |
38827 | void *argp1 = 0 ; | |
38828 | int res1 = 0 ; | |
38829 | void *argp2 = 0 ; | |
38830 | int res2 = 0 ; | |
38831 | PyObject * obj0 = 0 ; | |
38832 | PyObject * obj1 = 0 ; | |
38833 | char * kwnames[] = { | |
38834 | (char *) "self",(char *) "pen", NULL | |
38835 | }; | |
38836 | ||
38837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
38838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38839 | if (!SWIG_IsOK(res1)) { | |
38840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38841 | } | |
38842 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38843 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
38844 | if (!SWIG_IsOK(res2)) { | |
38845 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38846 | } | |
38847 | if (!argp2) { | |
38848 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38849 | } | |
38850 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
38851 | { | |
38852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38853 | (arg1)->SetPen((wxPen const &)*arg2); | |
38854 | wxPyEndAllowThreads(__tstate); | |
38855 | if (PyErr_Occurred()) SWIG_fail; | |
38856 | } | |
38857 | resultobj = SWIG_Py_Void(); | |
38858 | return resultobj; | |
38859 | fail: | |
38860 | return NULL; | |
38861 | } | |
38862 | ||
38863 | ||
38864 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38865 | PyObject *resultobj = 0; | |
38866 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38867 | wxBrush *arg2 = 0 ; | |
38868 | void *argp1 = 0 ; | |
38869 | int res1 = 0 ; | |
38870 | void *argp2 = 0 ; | |
38871 | int res2 = 0 ; | |
38872 | PyObject * obj0 = 0 ; | |
38873 | PyObject * obj1 = 0 ; | |
38874 | char * kwnames[] = { | |
38875 | (char *) "self",(char *) "brush", NULL | |
38876 | }; | |
38877 | ||
38878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
38879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38880 | if (!SWIG_IsOK(res1)) { | |
38881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38882 | } | |
38883 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38884 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38885 | if (!SWIG_IsOK(res2)) { | |
38886 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38887 | } | |
38888 | if (!argp2) { | |
38889 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38890 | } | |
38891 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38892 | { | |
38893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38894 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
38895 | wxPyEndAllowThreads(__tstate); | |
38896 | if (PyErr_Occurred()) SWIG_fail; | |
38897 | } | |
38898 | resultobj = SWIG_Py_Void(); | |
38899 | return resultobj; | |
38900 | fail: | |
38901 | return NULL; | |
38902 | } | |
38903 | ||
38904 | ||
38905 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38906 | PyObject *resultobj = 0; | |
38907 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38908 | wxBrush *arg2 = 0 ; | |
38909 | void *argp1 = 0 ; | |
38910 | int res1 = 0 ; | |
38911 | void *argp2 = 0 ; | |
38912 | int res2 = 0 ; | |
38913 | PyObject * obj0 = 0 ; | |
38914 | PyObject * obj1 = 0 ; | |
38915 | char * kwnames[] = { | |
38916 | (char *) "self",(char *) "brush", NULL | |
38917 | }; | |
38918 | ||
38919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38921 | if (!SWIG_IsOK(res1)) { | |
38922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38923 | } | |
38924 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38925 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38926 | if (!SWIG_IsOK(res2)) { | |
38927 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38928 | } | |
38929 | if (!argp2) { | |
38930 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38931 | } | |
38932 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38933 | { | |
38934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38935 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
38936 | wxPyEndAllowThreads(__tstate); | |
38937 | if (PyErr_Occurred()) SWIG_fail; | |
38938 | } | |
38939 | resultobj = SWIG_Py_Void(); | |
38940 | return resultobj; | |
38941 | fail: | |
38942 | return NULL; | |
38943 | } | |
38944 | ||
38945 | ||
38946 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38947 | PyObject *resultobj = 0; | |
38948 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38949 | int arg2 ; | |
38950 | void *argp1 = 0 ; | |
38951 | int res1 = 0 ; | |
38952 | int val2 ; | |
38953 | int ecode2 = 0 ; | |
38954 | PyObject * obj0 = 0 ; | |
38955 | PyObject * obj1 = 0 ; | |
38956 | char * kwnames[] = { | |
38957 | (char *) "self",(char *) "mode", NULL | |
38958 | }; | |
38959 | ||
38960 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
38961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38962 | if (!SWIG_IsOK(res1)) { | |
38963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38964 | } | |
38965 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38966 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38967 | if (!SWIG_IsOK(ecode2)) { | |
38968 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
38969 | } | |
38970 | arg2 = static_cast< int >(val2); | |
38971 | { | |
38972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38973 | (arg1)->SetBackgroundMode(arg2); | |
38974 | wxPyEndAllowThreads(__tstate); | |
38975 | if (PyErr_Occurred()) SWIG_fail; | |
38976 | } | |
38977 | resultobj = SWIG_Py_Void(); | |
38978 | return resultobj; | |
38979 | fail: | |
38980 | return NULL; | |
38981 | } | |
38982 | ||
38983 | ||
38984 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38985 | PyObject *resultobj = 0; | |
38986 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38987 | wxPalette *arg2 = 0 ; | |
38988 | void *argp1 = 0 ; | |
38989 | int res1 = 0 ; | |
38990 | void *argp2 = 0 ; | |
38991 | int res2 = 0 ; | |
38992 | PyObject * obj0 = 0 ; | |
38993 | PyObject * obj1 = 0 ; | |
38994 | char * kwnames[] = { | |
38995 | (char *) "self",(char *) "palette", NULL | |
38996 | }; | |
38997 | ||
38998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
38999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39000 | if (!SWIG_IsOK(res1)) { | |
39001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39002 | } | |
39003 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39004 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
39005 | if (!SWIG_IsOK(res2)) { | |
39006 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
39007 | } | |
39008 | if (!argp2) { | |
39009 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
39010 | } | |
39011 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
39012 | { | |
39013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39014 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
39015 | wxPyEndAllowThreads(__tstate); | |
39016 | if (PyErr_Occurred()) SWIG_fail; | |
39017 | } | |
39018 | resultobj = SWIG_Py_Void(); | |
39019 | return resultobj; | |
39020 | fail: | |
39021 | return NULL; | |
39022 | } | |
39023 | ||
39024 | ||
39025 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39026 | PyObject *resultobj = 0; | |
39027 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39028 | wxColour *arg2 = 0 ; | |
39029 | void *argp1 = 0 ; | |
39030 | int res1 = 0 ; | |
39031 | wxColour temp2 ; | |
39032 | PyObject * obj0 = 0 ; | |
39033 | PyObject * obj1 = 0 ; | |
39034 | char * kwnames[] = { | |
39035 | (char *) "self",(char *) "colour", NULL | |
39036 | }; | |
39037 | ||
39038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39040 | if (!SWIG_IsOK(res1)) { | |
39041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39042 | } | |
39043 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39044 | { | |
39045 | arg2 = &temp2; | |
39046 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
39047 | } | |
39048 | { | |
39049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39050 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
39051 | wxPyEndAllowThreads(__tstate); | |
39052 | if (PyErr_Occurred()) SWIG_fail; | |
39053 | } | |
39054 | resultobj = SWIG_Py_Void(); | |
39055 | return resultobj; | |
39056 | fail: | |
39057 | return NULL; | |
39058 | } | |
39059 | ||
39060 | ||
39061 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39062 | PyObject *resultobj = 0; | |
39063 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39064 | wxColour *arg2 = 0 ; | |
39065 | void *argp1 = 0 ; | |
39066 | int res1 = 0 ; | |
39067 | wxColour temp2 ; | |
39068 | PyObject * obj0 = 0 ; | |
39069 | PyObject * obj1 = 0 ; | |
39070 | char * kwnames[] = { | |
39071 | (char *) "self",(char *) "colour", NULL | |
39072 | }; | |
39073 | ||
39074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39076 | if (!SWIG_IsOK(res1)) { | |
39077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39078 | } | |
39079 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39080 | { | |
39081 | arg2 = &temp2; | |
39082 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
39083 | } | |
39084 | { | |
39085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39086 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
39087 | wxPyEndAllowThreads(__tstate); | |
39088 | if (PyErr_Occurred()) SWIG_fail; | |
39089 | } | |
39090 | resultobj = SWIG_Py_Void(); | |
39091 | return resultobj; | |
39092 | fail: | |
39093 | return NULL; | |
39094 | } | |
39095 | ||
39096 | ||
39097 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39098 | PyObject *resultobj = 0; | |
39099 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39100 | int arg2 ; | |
39101 | void *argp1 = 0 ; | |
39102 | int res1 = 0 ; | |
39103 | int val2 ; | |
39104 | int ecode2 = 0 ; | |
39105 | PyObject * obj0 = 0 ; | |
39106 | PyObject * obj1 = 0 ; | |
39107 | char * kwnames[] = { | |
39108 | (char *) "self",(char *) "function", NULL | |
39109 | }; | |
39110 | ||
39111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
39112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39113 | if (!SWIG_IsOK(res1)) { | |
39114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39115 | } | |
39116 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39117 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39118 | if (!SWIG_IsOK(ecode2)) { | |
39119 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
39120 | } | |
39121 | arg2 = static_cast< int >(val2); | |
39122 | { | |
39123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39124 | (arg1)->SetLogicalFunction(arg2); | |
39125 | wxPyEndAllowThreads(__tstate); | |
39126 | if (PyErr_Occurred()) SWIG_fail; | |
39127 | } | |
39128 | resultobj = SWIG_Py_Void(); | |
39129 | return resultobj; | |
39130 | fail: | |
39131 | return NULL; | |
39132 | } | |
39133 | ||
39134 | ||
39135 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39136 | PyObject *obj; | |
39137 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39138 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
39139 | return SWIG_Py_Void(); | |
39140 | } | |
39141 | ||
39142 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39143 | return SWIG_Python_InitShadowInstance(args); | |
39144 | } | |
39145 | ||
39146 | static PyMethodDef SwigMethods[] = { | |
39147 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
39148 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
39149 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
39150 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
39151 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
39152 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39153 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39154 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39155 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
39156 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
39157 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
39158 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 39159 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 39160 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
39161 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
39162 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39163 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39164 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39165 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
39166 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39167 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 39168 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
39169 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
39170 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
39171 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
39172 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39173 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
39174 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39175 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39176 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 39177 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
39178 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
39179 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
39180 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39181 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
39182 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
39183 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
39184 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
39185 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
39186 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 39187 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
39188 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
39189 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39190 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39191 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39192 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39193 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39194 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
39195 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39196 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
39197 | { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL}, | |
39198 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39199 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39200 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39201 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
39202 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
39203 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39204 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39205 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
39206 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39207 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39208 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39209 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
39210 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
39211 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
39212 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 39213 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
39214 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
39215 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
39216 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39217 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
39218 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39219 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39220 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39221 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39222 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39223 | { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL}, | |
39224 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39225 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
39226 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
39227 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
39228 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
39229 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
39230 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
39231 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
39232 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39233 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39234 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39235 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39236 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39237 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
39238 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39239 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39240 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39241 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39242 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39243 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39244 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 RD |
39245 | { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
39246 | { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
39247 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
39248 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39249 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
39250 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
39251 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
39252 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39253 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39254 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
39255 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
39256 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
39257 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
39258 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
39259 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
39260 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
39261 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
39262 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
39263 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
39264 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
39265 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
39266 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
39267 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
39268 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
39269 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39270 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
39271 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
39272 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39273 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39274 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39275 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39276 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39277 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
39278 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
39279 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
39280 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
39281 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
39282 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
39283 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
39284 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
39285 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
39286 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
39287 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
39288 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
39289 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39290 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
39291 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
39292 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39293 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39294 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39295 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39296 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39297 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
39298 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
39299 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
39300 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
39301 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
39302 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
39303 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
39304 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39305 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
39306 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
39307 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39308 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39309 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39310 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39311 | { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL}, | |
39312 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39313 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
39314 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
39315 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
39316 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
39317 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39318 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39319 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39320 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39321 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39322 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
39323 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
39324 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39325 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
39326 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
39327 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39328 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
39329 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39330 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
39331 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
39332 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
39333 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
39334 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39335 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39336 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
39337 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39338 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39339 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39340 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
39341 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
39342 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39343 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
39344 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39345 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39346 | { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL}, | |
39347 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39348 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
39349 | { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL}, |
39350 | { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL}, | |
39351 | { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL}, | |
39352 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39353 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39354 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39355 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39356 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
39357 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
39358 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39359 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39360 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39361 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39362 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
39363 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
39364 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39365 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39366 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39367 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39368 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39369 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
39370 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39371 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39372 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39373 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 39374 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
39375 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
39376 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39377 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39378 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39379 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39380 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39381 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39382 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39383 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39384 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
39385 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39386 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39387 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
39388 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
39389 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39390 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
39391 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
39392 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
39393 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
39394 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
39395 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
39396 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
39397 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
39398 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
39399 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
39400 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
39401 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
39402 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
39403 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
39404 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
39405 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
39406 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
39407 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39408 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
39409 | { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL}, | |
39410 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
39411 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
39412 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
39413 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
39414 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
39415 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
39416 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39417 | { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39418 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39419 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39420 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39421 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39422 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39423 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39424 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39425 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
39426 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
39427 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39428 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
39429 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
39430 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
39431 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
39432 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
39433 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
39434 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
39435 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
39436 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
39437 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39438 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
39439 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
39440 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
39441 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39442 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39443 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
39444 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
39445 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
39446 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39447 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39448 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
39449 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39450 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, |
39451 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39452 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39453 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39454 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
39455 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39456 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39457 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39458 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39459 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
39460 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
39461 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39462 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
39463 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39464 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39465 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39466 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39467 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39468 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
554f62e9 RD |
39469 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
39470 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39471 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
39472 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
39473 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
39474 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
39475 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
39476 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
39477 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
39478 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
39479 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
39480 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
39481 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
39482 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
39483 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
39484 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39485 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39486 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39487 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39488 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39489 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39490 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39491 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39492 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39493 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39494 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39495 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
39496 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
39497 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
39498 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39499 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
39500 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
39501 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39502 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
39503 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
39504 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
39505 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
39506 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39507 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39508 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
39509 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
39510 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
39511 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39512 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
39513 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
39514 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
39515 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
39516 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
39517 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
39518 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
39519 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
39520 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
39521 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39522 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
39523 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39524 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39525 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
39526 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
39527 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
39528 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
39529 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
39530 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
39531 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
39532 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
39533 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39534 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 39535 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39536 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
39537 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39538 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39539 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39540 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39541 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39542 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
39543 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
39544 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
39545 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
39546 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
39547 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39548 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39549 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39550 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
39551 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39552 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
39553 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
39554 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
39555 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
39556 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39557 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39558 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39559 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39560 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39561 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
39562 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
39563 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
39564 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39565 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39566 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39567 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39568 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39569 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39570 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39571 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39572 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39573 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39574 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39575 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39576 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39577 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39578 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39579 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39580 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39581 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39582 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39583 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39584 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39585 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39586 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39587 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39588 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39589 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39590 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39591 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39592 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39593 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39594 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39595 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39596 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39597 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39598 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39599 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39600 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39601 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39602 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 39603 | { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39604 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
39605 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39606 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39607 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39608 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39609 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39610 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39611 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39612 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39613 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
39614 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39615 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
39616 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
39617 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
39618 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39619 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39620 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39621 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39622 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39623 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39624 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
39625 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
39626 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
39627 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
39628 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
39629 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39630 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39631 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39632 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39633 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
39634 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
39635 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
39636 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
39637 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39638 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39639 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39640 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39641 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39642 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39643 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39644 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39645 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
39646 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
39647 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
39648 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 39649 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
554f62e9 RD |
39650 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
39651 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
39652 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
39653 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
39654 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
39655 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
39656 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
39657 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39658 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39659 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
39660 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39661 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
39662 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39663 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
39664 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39665 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
39666 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
39667 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39668 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39669 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
39670 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
39671 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39672 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39673 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39674 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
39675 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39676 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
39677 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39678 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39679 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
39680 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
39681 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
39682 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
39683 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
39684 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
39685 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
39686 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39687 | { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL}, |
39688 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39689 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39690 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39691 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39692 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39693 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39694 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
39695 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
39696 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
39697 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
39698 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
39699 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39700 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
39701 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
39702 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
39703 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39704 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
39705 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
39706 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
39707 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
39708 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
39709 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
39710 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39711 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
39712 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39713 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39714 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
39715 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
39716 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
39717 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39718 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
39719 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39720 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39721 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
39722 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
39723 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39724 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
39725 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26c4d26f RD |
39726 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39727 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39728 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39729 | { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39730 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
39731 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
39732 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
39733 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
39734 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
b6df5cf9 RD |
39735 | { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
39736 | { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL}, | |
24f6c4e8 RD |
39737 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, |
39738 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
39739 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39740 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39741 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
39742 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39743 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39744 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 39745 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39746 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39747 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
39748 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
39749 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39750 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
39751 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39752 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39753 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
39754 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
39755 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
39756 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39757 | { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL}, | |
b39fe951 | 39758 | { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL}, |
554f62e9 RD |
39759 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, |
39760 | { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL}, | |
39761 | { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL}, | |
39762 | { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL}, | |
39763 | { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL}, | |
39764 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
39765 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
39766 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39767 | { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL}, | |
39768 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
39769 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
39770 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39771 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
39772 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
70d7cb34 RD |
39773 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
39774 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
39775 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
39776 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
39777 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
39778 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
39779 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
39780 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
39781 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
39782 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
39783 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
39784 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
39785 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
39786 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
39787 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
39788 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
39789 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
39790 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
8f514ab4 | 39791 | { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL}, |
5c8c7dd3 RD |
39792 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
39793 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
39794 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
39795 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, | |
39796 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39797 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
39798 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39799 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39800 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39801 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39802 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39803 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
39804 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
8f514ab4 RD |
39805 | { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL}, |
39806 | { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL}, | |
72ef6efb | 39807 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
39808 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
39809 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
39810 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
39811 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39812 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
39813 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 39814 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
39815 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
39816 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39817 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39818 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
39819 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
39820 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39821 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
39822 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39823 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39824 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
39825 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb | 39826 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
8f514ab4 | 39827 | { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL}, |
72ef6efb | 39828 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, |
0a27f394 | 39829 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
f89238b9 | 39830 | { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL}, |
0a27f394 | 39831 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 | 39832 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39833 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
39834 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
39835 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39836 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39837 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39838 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39839 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39840 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
39841 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 39842 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39843 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
39844 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
39845 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
72ef6efb RD |
39846 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
39847 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39848 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
39849 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
39850 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39851 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
39852 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
39853 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
39854 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
39855 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
39856 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39857 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
39858 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
39859 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 39860 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39861 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
39862 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39863 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39864 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39865 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39866 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 39867 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39868 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
39869 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39870 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39871 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 39872 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 39873 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
39874 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
39875 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
39876 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
f89238b9 | 39877 | { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL}, |
70d7cb34 RD |
39878 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, |
39879 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39880 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
39881 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39882 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39883 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39884 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39885 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39886 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39887 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
72ef6efb RD |
39888 | { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39889 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, | |
0a27f394 RD |
39890 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
39891 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39892 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
39893 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
39894 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
39895 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
39896 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
39897 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
39898 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
39899 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
39900 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
39901 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
39902 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
39903 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39904 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
39905 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
39906 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39907 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39908 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39909 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39910 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39911 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39912 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39913 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
39914 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39915 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
39916 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39917 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
39918 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39919 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
39920 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
39921 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
39922 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
39923 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39924 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39925 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39926 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39927 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39928 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
39929 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
39930 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
39931 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
39932 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
39933 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
554f62e9 | 39934 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 39935 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 39936 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 39937 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 39938 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 39939 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 39940 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 39941 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
39942 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
39943 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39944 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39945 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
39946 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
39947 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
39948 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39949 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39950 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39951 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39952 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
39953 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39954 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
39955 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
39956 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
39957 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
554f62e9 RD |
39958 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
39959 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
39960 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
39961 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
39962 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
39963 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
39964 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39965 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39966 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39967 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39968 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39969 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39970 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39971 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39972 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
39973 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
39974 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39975 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
39976 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
39977 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
39978 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
39979 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
39980 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
39981 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
39982 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
39983 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
39984 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
39985 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
39986 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
39987 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
39988 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
39989 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
39990 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
39991 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
39992 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
39993 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
39994 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
39995 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
39996 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
39997 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
39998 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39999 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
40000 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
40001 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40002 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
40003 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
40004 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
40005 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
40006 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
40007 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
40008 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
40009 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
40010 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40011 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40012 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40013 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
f460c29d RD |
40014 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
40015 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40016 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
40017 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
40018 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
40019 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
40020 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
40021 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40022 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
40023 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
40024 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
40025 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
40026 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
40027 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
40028 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
40029 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
40030 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40031 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40032 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40033 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40034 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
40035 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40036 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40037 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
40038 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
40039 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40040 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40041 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40042 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40043 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40044 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40045 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40046 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40047 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40048 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40049 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40050 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40051 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40052 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40053 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40054 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40055 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40056 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40057 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40058 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40059 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40060 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40061 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40062 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40063 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40064 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40065 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40066 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40067 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40068 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40069 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40070 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40071 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40072 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40073 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40074 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40075 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40076 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40077 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40078 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40079 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40080 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40081 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40082 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
40083 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40084 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40085 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40086 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40087 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40088 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40089 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40090 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40091 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40092 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
40093 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
40094 | { NULL, NULL, 0, NULL } |
40095 | }; | |
40096 | ||
40097 | ||
40098 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40099 | ||
72ef6efb RD |
40100 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
40101 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
40102 | } | |
8e99bda9 RD |
40103 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
40104 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
40105 | } | |
40106 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
40107 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40108 | } | |
26c4d26f RD |
40109 | static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) { |
40110 | return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
40111 | } | |
40112 | static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) { | |
40113 | return (void *)((wxWindowDC *) ((wxMemoryDC *) x)); | |
40114 | } | |
72ef6efb RD |
40115 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
40116 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
40117 | } | |
40118 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
40119 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
40120 | } | |
26c4d26f RD |
40121 | static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) { |
40122 | return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40123 | } | |
fc46b7f3 RD |
40124 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
40125 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
40126 | } | |
70d7cb34 RD |
40127 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
40128 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
40129 | } | |
40130 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
40131 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
40132 | } | |
40133 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
40134 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
40135 | } | |
40136 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
40137 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
40138 | } | |
40139 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
40140 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
40141 | } | |
40142 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
40143 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
40144 | } | |
554f62e9 RD |
40145 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
40146 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
40147 | } | |
40148 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
40149 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
40150 | } | |
40151 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
40152 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
40153 | } | |
40154 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
40155 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
40156 | } | |
40157 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
40158 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
40159 | } | |
40160 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
40161 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
40162 | } | |
40163 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
40164 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
40165 | } | |
40166 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
40167 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
40168 | } | |
72ef6efb RD |
40169 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
40170 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
40171 | } | |
554f62e9 RD |
40172 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
40173 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
40174 | } | |
24f6c4e8 | 40175 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
26c4d26f | 40176 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
24f6c4e8 | 40177 | } |
554f62e9 RD |
40178 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
40179 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
40180 | } | |
554f62e9 RD |
40181 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { |
40182 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
40183 | } | |
26c4d26f RD |
40184 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { |
40185 | return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x)); | |
40186 | } | |
554f62e9 RD |
40187 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { |
40188 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
40189 | } | |
554f62e9 | 40190 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 40191 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
40192 | } |
40193 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 40194 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
554f62e9 | 40195 | } |
24f6c4e8 | 40196 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
26c4d26f | 40197 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
24f6c4e8 RD |
40198 | } |
40199 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
40200 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
40201 | } | |
554f62e9 RD |
40202 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
40203 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
40204 | } | |
40205 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
40206 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
40207 | } | |
50efceee RD |
40208 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
40209 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
40210 | } | |
40211 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
40212 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
40213 | } | |
40214 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
40215 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
40216 | } | |
554f62e9 RD |
40217 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
40218 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40219 | } | |
40220 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
40221 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
40222 | } | |
40223 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
40224 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
40225 | } | |
40226 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
40227 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
40228 | } | |
554f62e9 RD |
40229 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
40230 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
40231 | } | |
0f83f5da RD |
40232 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
40233 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
40234 | } | |
554f62e9 RD |
40235 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
40236 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
40237 | } | |
40238 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
40239 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
40240 | } | |
40241 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
40242 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
40243 | } | |
40244 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
40245 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40246 | } | |
40247 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
40248 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
40249 | } | |
40250 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
40251 | return (void *)((wxObject *) ((wxSizer *) x)); | |
40252 | } | |
40253 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
40254 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40255 | } | |
40256 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
40257 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40258 | } | |
554f62e9 RD |
40259 | static void *_p_wxEventTo_p_wxObject(void *x) { |
40260 | return (void *)((wxObject *) ((wxEvent *) x)); | |
40261 | } | |
40262 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
40263 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40264 | } | |
40265 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
40266 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
40267 | } | |
40268 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
40269 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
40270 | } | |
27e45892 RD |
40271 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
40272 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
40273 | } | |
2131d850 RD |
40274 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
40275 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
40276 | } | |
554f62e9 RD |
40277 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
40278 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
40279 | } | |
40280 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
40281 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
40282 | } | |
40283 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
40284 | return (void *)((wxObject *) ((wxDC *) x)); | |
40285 | } | |
40286 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
40287 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40288 | } | |
40289 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
40290 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40291 | } | |
40292 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
40293 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40294 | } | |
40295 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
40296 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40297 | } | |
40298 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
40299 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
40300 | } | |
70d7cb34 RD |
40301 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
40302 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
40303 | } | |
554f62e9 RD |
40304 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
40305 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
40306 | } | |
40307 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 40308 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
40309 | } |
40310 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
40311 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
40312 | } | |
40313 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26c4d26f | 40314 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x)); |
554f62e9 RD |
40315 | } |
40316 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
40317 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
40318 | } | |
40319 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
40320 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
40321 | } | |
40322 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
40323 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
40324 | } | |
40325 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
40326 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
40327 | } | |
70d7cb34 RD |
40328 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
40329 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
40330 | } | |
40331 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
40332 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
40333 | } | |
554f62e9 RD |
40334 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
40335 | return (void *)((wxObject *) ((wxEffects *) x)); | |
40336 | } | |
40337 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
40338 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
40339 | } | |
40340 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
40341 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40342 | } | |
40343 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
40344 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
40345 | } | |
70d7cb34 RD |
40346 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
40347 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
40348 | } | |
554f62e9 RD |
40349 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
40350 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
40351 | } | |
40352 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
40353 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
40354 | } | |
40355 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
40356 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
40357 | } | |
40358 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
40359 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
40360 | } | |
40361 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
40362 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40363 | } | |
40364 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
40365 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40366 | } | |
40367 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
40368 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
40369 | } | |
40370 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
40371 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
40372 | } | |
40373 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
40374 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
40375 | } | |
40376 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
40377 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
40378 | } | |
40379 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
40380 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
40381 | } | |
40382 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
40383 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
40384 | } | |
40385 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
40386 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
40387 | } | |
40388 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
40389 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
40390 | } | |
40391 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
40392 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
40393 | } | |
40394 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
40395 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
40396 | } | |
40397 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
40398 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40399 | } | |
40400 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
40401 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40402 | } | |
40403 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
40404 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
40405 | } | |
40406 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
40407 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
40408 | } | |
40409 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
40410 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
40411 | } | |
40412 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
40413 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
40414 | } | |
40415 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
40416 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
40417 | } | |
40418 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
40419 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
40420 | } | |
580080c5 RD |
40421 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
40422 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
40423 | } | |
554f62e9 RD |
40424 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
40425 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
40426 | } | |
0f83f5da RD |
40427 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
40428 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
40429 | } | |
24f6c4e8 RD |
40430 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
40431 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
40432 | } | |
554f62e9 | 40433 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
26c4d26f | 40434 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
554f62e9 | 40435 | } |
24f6c4e8 RD |
40436 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
40437 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
554f62e9 RD |
40438 | } |
40439 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
40440 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
40441 | } | |
40442 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
40443 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
40444 | } | |
554f62e9 RD |
40445 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
40446 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
40447 | } | |
580080c5 RD |
40448 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
40449 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
40450 | } | |
554f62e9 RD |
40451 | static void *_p_wxImageTo_p_wxObject(void *x) { |
40452 | return (void *)((wxObject *) ((wxImage *) x)); | |
40453 | } | |
40454 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
40455 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
40456 | } | |
70d7cb34 RD |
40457 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
40458 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
40459 | } | |
40460 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
40461 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
40462 | } | |
554f62e9 RD |
40463 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
40464 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
40465 | } | |
40466 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26c4d26f | 40467 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
554f62e9 RD |
40468 | } |
40469 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
40470 | return (void *)((wxObject *) ((wxImageList *) x)); | |
40471 | } | |
72ef6efb RD |
40472 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
40473 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
40474 | } | |
554f62e9 RD |
40475 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
40476 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
40477 | } | |
40478 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
40479 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
40480 | } | |
40481 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
40482 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
40483 | } | |
70d7cb34 RD |
40484 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
40485 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
40486 | } | |
554f62e9 RD |
40487 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
40488 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40489 | } | |
40490 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40491 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40492 | } | |
40493 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40494 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40495 | } | |
40496 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
40497 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
40498 | } | |
40499 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
40500 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
40501 | } | |
40502 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
40503 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
40504 | } | |
40505 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
40506 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
40507 | } | |
554f62e9 RD |
40508 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
40509 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40510 | } | |
40511 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
40512 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
40513 | } | |
40514 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
40515 | return (void *)((wxObject *) ((wxMask *) x)); | |
40516 | } | |
70d7cb34 RD |
40517 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
40518 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
40519 | } | |
554f62e9 RD |
40520 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
40521 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40522 | } | |
40523 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
40524 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
40525 | } | |
40526 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
40527 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
40528 | } | |
40529 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
40530 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
40531 | } | |
40532 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
40533 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
40534 | } | |
40535 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
40536 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
40537 | } | |
40538 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40539 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40540 | } | |
40541 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40542 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40543 | } | |
40544 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40545 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40546 | } | |
40547 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40548 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40549 | } | |
40550 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40551 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40552 | } | |
40553 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
40554 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
40555 | } | |
40556 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
40557 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
40558 | } | |
40559 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
40560 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
40561 | } | |
40562 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
40563 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40564 | } | |
40565 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
40566 | return (void *)((wxObject *) ((wxColour *) x)); | |
40567 | } | |
554f62e9 RD |
40568 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
40569 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
40570 | } | |
40571 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
40572 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
40573 | } | |
40574 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40575 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40576 | } | |
40577 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40578 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40579 | } | |
40580 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40581 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40582 | } | |
fc46b7f3 RD |
40583 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
40584 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
40585 | } | |
40586 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
40587 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
40588 | } | |
40589 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
554f62e9 | 40590 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 40591 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40592 | 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}; |
40593 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
40594 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
40595 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
40596 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 40597 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
40598 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
40599 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 40600 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40601 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
40602 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
40603 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
40604 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
40605 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40606 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
554f62e9 | 40607 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
72ef6efb | 40608 | static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40609 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
40610 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
40611 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
40612 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
40613 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
40614 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 40615 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40616 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
40617 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
554f62e9 RD |
40618 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
40619 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
40620 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
40621 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
40622 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
40623 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
40624 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40625 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 40626 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 40627 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40628 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 40629 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40630 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
40631 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
40632 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40633 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40634 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
40635 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 40636 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40637 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
40638 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
40639 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
40640 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
40641 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
40642 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
40643 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
40644 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
40645 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
40646 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
40647 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
40648 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
40649 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
40650 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
40651 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
40652 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
554f62e9 RD |
40653 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
40654 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
554f62e9 | 40655 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
0f83f5da | 40656 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40657 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
40658 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
40659 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
40660 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
40661 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
40662 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
40663 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
40664 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
40665 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
40666 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
40667 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
40668 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 40669 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40670 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
40671 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
40672 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
40673 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
40674 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
40675 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
40676 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
40677 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
40678 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
40679 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
40680 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
40681 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
40682 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
40683 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
40684 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
40685 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
40686 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
40687 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
40688 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
40689 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
40690 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
40691 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
40692 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
554f62e9 | 40693 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
580080c5 | 40694 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
40695 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
40696 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
40697 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
40698 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
40699 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
40700 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 40701 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 40702 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 40703 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 40704 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40705 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
40706 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
40707 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
0f83f5da | 40708 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
554f62e9 | 40709 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 40710 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40711 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; |
40712 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
40713 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
40714 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
40715 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
40716 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
40717 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
40718 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
40719 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
40720 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
40721 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
40722 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
40723 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
40724 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
40725 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
40726 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
40727 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
40728 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
40729 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
40730 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 40731 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40732 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
40733 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
40734 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
40735 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
40736 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40737 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 40738 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 40739 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40740 | static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40741 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
40742 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
40743 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 40744 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
554f62e9 | 40745 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 40746 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
554f62e9 | 40747 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40748 | static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40749 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
40750 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
40751 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
40752 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
40753 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
40754 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
40755 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 40756 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40757 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
40758 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
40759 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
40760 | ||
40761 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 40762 | &_swigt__p_buffer, |
554f62e9 RD |
40763 | &_swigt__p_char, |
40764 | &_swigt__p_double, | |
40765 | &_swigt__p_form_ops_t, | |
40766 | &_swigt__p_int, | |
40767 | &_swigt__p_unsigned_char, | |
40768 | &_swigt__p_unsigned_int, | |
40769 | &_swigt__p_unsigned_long, | |
0a27f394 | 40770 | &_swigt__p_void, |
554f62e9 RD |
40771 | &_swigt__p_wxANIHandler, |
40772 | &_swigt__p_wxAcceleratorTable, | |
40773 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
40774 | &_swigt__p_wxAlphaPixelData, |
40775 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40776 | &_swigt__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
40777 | &_swigt__p_wxBMPHandler, |
40778 | &_swigt__p_wxBitmap, | |
40779 | &_swigt__p_wxBoxSizer, | |
40780 | &_swigt__p_wxBrush, | |
40781 | &_swigt__p_wxBrushList, | |
40782 | &_swigt__p_wxBufferedDC, | |
40783 | &_swigt__p_wxBufferedPaintDC, | |
40784 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 40785 | &_swigt__p_wxChar, |
554f62e9 RD |
40786 | &_swigt__p_wxChildFocusEvent, |
40787 | &_swigt__p_wxClientDC, | |
2131d850 | 40788 | &_swigt__p_wxClipboardTextEvent, |
554f62e9 | 40789 | &_swigt__p_wxCloseEvent, |
72ef6efb | 40790 | &_swigt__p_wxColor, |
554f62e9 RD |
40791 | &_swigt__p_wxColour, |
40792 | &_swigt__p_wxColourDatabase, | |
40793 | &_swigt__p_wxCommandEvent, | |
40794 | &_swigt__p_wxContextMenuEvent, | |
40795 | &_swigt__p_wxControl, | |
40796 | &_swigt__p_wxControlWithItems, | |
40797 | &_swigt__p_wxCursor, | |
40798 | &_swigt__p_wxDC, | |
70d7cb34 RD |
40799 | &_swigt__p_wxDCBrushChanger, |
40800 | &_swigt__p_wxDCClipper, | |
b39fe951 | 40801 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
40802 | &_swigt__p_wxDCPenChanger, |
40803 | &_swigt__p_wxDCTextColourChanger, | |
554f62e9 RD |
40804 | &_swigt__p_wxDash, |
40805 | &_swigt__p_wxDateEvent, | |
40806 | &_swigt__p_wxDisplayChangedEvent, | |
40807 | &_swigt__p_wxDropFilesEvent, | |
40808 | &_swigt__p_wxDuplexMode, | |
40809 | &_swigt__p_wxEffects, | |
40810 | &_swigt__p_wxEncodingConverter, | |
40811 | &_swigt__p_wxEraseEvent, | |
40812 | &_swigt__p_wxEvent, | |
40813 | &_swigt__p_wxEvtHandler, | |
40814 | &_swigt__p_wxFSFile, | |
40815 | &_swigt__p_wxFileSystem, | |
40816 | &_swigt__p_wxFlexGridSizer, | |
40817 | &_swigt__p_wxFocusEvent, | |
40818 | &_swigt__p_wxFont, | |
40819 | &_swigt__p_wxFontList, | |
40820 | &_swigt__p_wxFontMapper, | |
40821 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 40822 | &_swigt__p_wxGCDC, |
50efceee | 40823 | &_swigt__p_wxGDIObjListBase, |
554f62e9 RD |
40824 | &_swigt__p_wxGDIObject, |
40825 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 40826 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 40827 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
40828 | &_swigt__p_wxGraphicsFont, |
40829 | &_swigt__p_wxGraphicsMatrix, | |
40830 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 40831 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
40832 | &_swigt__p_wxGraphicsPen, |
40833 | &_swigt__p_wxGraphicsRenderer, | |
554f62e9 RD |
40834 | &_swigt__p_wxGridBagSizer, |
40835 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 40836 | &_swigt__p_wxHeaderButtonParams, |
554f62e9 RD |
40837 | &_swigt__p_wxICOHandler, |
40838 | &_swigt__p_wxIcon, | |
40839 | &_swigt__p_wxIconBundle, | |
40840 | &_swigt__p_wxIconLocation, | |
40841 | &_swigt__p_wxIconizeEvent, | |
40842 | &_swigt__p_wxIdleEvent, | |
40843 | &_swigt__p_wxImage, | |
40844 | &_swigt__p_wxImageHandler, | |
40845 | &_swigt__p_wxImageList, | |
40846 | &_swigt__p_wxIndividualLayoutConstraint, | |
40847 | &_swigt__p_wxInitDialogEvent, | |
40848 | &_swigt__p_wxJPEGHandler, | |
40849 | &_swigt__p_wxKeyEvent, | |
40850 | &_swigt__p_wxLanguageInfo, | |
40851 | &_swigt__p_wxLayoutConstraints, | |
40852 | &_swigt__p_wxLocale, | |
40853 | &_swigt__p_wxMask, | |
40854 | &_swigt__p_wxMaximizeEvent, | |
40855 | &_swigt__p_wxMemoryDC, | |
40856 | &_swigt__p_wxMenu, | |
40857 | &_swigt__p_wxMenuBar, | |
40858 | &_swigt__p_wxMenuEvent, | |
40859 | &_swigt__p_wxMenuItem, | |
40860 | &_swigt__p_wxMetaFile, | |
40861 | &_swigt__p_wxMetaFileDC, | |
40862 | &_swigt__p_wxMirrorDC, | |
40863 | &_swigt__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 40864 | &_swigt__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
40865 | &_swigt__p_wxMouseEvent, |
40866 | &_swigt__p_wxMoveEvent, | |
40867 | &_swigt__p_wxNativeEncodingInfo, | |
40868 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40869 | &_swigt__p_wxNativePixelData, |
40870 | &_swigt__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
40871 | &_swigt__p_wxNavigationKeyEvent, |
40872 | &_swigt__p_wxNcPaintEvent, | |
40873 | &_swigt__p_wxNotifyEvent, | |
40874 | &_swigt__p_wxObject, | |
b39fe951 | 40875 | &_swigt__p_wxOverlay, |
554f62e9 RD |
40876 | &_swigt__p_wxPCXHandler, |
40877 | &_swigt__p_wxPNGHandler, | |
40878 | &_swigt__p_wxPNMHandler, | |
40879 | &_swigt__p_wxPaintDC, | |
40880 | &_swigt__p_wxPaintEvent, | |
40881 | &_swigt__p_wxPalette, | |
40882 | &_swigt__p_wxPaletteChangedEvent, | |
40883 | &_swigt__p_wxPaperSize, | |
40884 | &_swigt__p_wxPen, | |
40885 | &_swigt__p_wxPenList, | |
fc46b7f3 | 40886 | &_swigt__p_wxPixelDataBase, |
554f62e9 | 40887 | &_swigt__p_wxPoint, |
72ef6efb | 40888 | &_swigt__p_wxPoint2D, |
70d7cb34 | 40889 | &_swigt__p_wxPoint2DDouble, |
554f62e9 RD |
40890 | &_swigt__p_wxPostScriptDC, |
40891 | &_swigt__p_wxPrintData, | |
40892 | &_swigt__p_wxPrinterDC, | |
27e45892 | 40893 | &_swigt__p_wxPseudoDC, |
554f62e9 RD |
40894 | &_swigt__p_wxPyApp, |
40895 | &_swigt__p_wxPyCommandEvent, | |
40896 | &_swigt__p_wxPyEvent, | |
40897 | &_swigt__p_wxPyFontEnumerator, | |
40898 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 40899 | &_swigt__p_wxPyLocale, |
554f62e9 RD |
40900 | &_swigt__p_wxPySizer, |
40901 | &_swigt__p_wxPyValidator, | |
40902 | &_swigt__p_wxQueryNewPaletteEvent, | |
40903 | &_swigt__p_wxRect, | |
70d7cb34 | 40904 | &_swigt__p_wxRect2DDouble, |
554f62e9 RD |
40905 | &_swigt__p_wxRegion, |
40906 | &_swigt__p_wxRegionIterator, | |
40907 | &_swigt__p_wxRendererNative, | |
40908 | &_swigt__p_wxRendererVersion, | |
40909 | &_swigt__p_wxScreenDC, | |
40910 | &_swigt__p_wxScrollEvent, | |
40911 | &_swigt__p_wxScrollWinEvent, | |
40912 | &_swigt__p_wxSetCursorEvent, | |
40913 | &_swigt__p_wxShowEvent, | |
40914 | &_swigt__p_wxSize, | |
40915 | &_swigt__p_wxSizeEvent, | |
40916 | &_swigt__p_wxSizer, | |
40917 | &_swigt__p_wxSizerItem, | |
40918 | &_swigt__p_wxSplitterRenderParams, | |
40919 | &_swigt__p_wxStaticBoxSizer, | |
40920 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 40921 | &_swigt__p_wxStockGDI, |
554f62e9 RD |
40922 | &_swigt__p_wxString, |
40923 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 40924 | &_swigt__p_wxTGAHandler, |
554f62e9 RD |
40925 | &_swigt__p_wxTIFFHandler, |
40926 | &_swigt__p_wxUpdateUIEvent, | |
40927 | &_swigt__p_wxValidator, | |
40928 | &_swigt__p_wxWindow, | |
40929 | &_swigt__p_wxWindowCreateEvent, | |
40930 | &_swigt__p_wxWindowDC, | |
40931 | &_swigt__p_wxWindowDestroyEvent, | |
40932 | &_swigt__p_wxXPMHandler, | |
40933 | }; | |
40934 | ||
fc46b7f3 | 40935 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
40936 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
40937 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
40938 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
40939 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40940 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
40941 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40942 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 40943 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
40944 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40945 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40946 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
40947 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
40948 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
40949 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
40950 | 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}}; | |
40951 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40952 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb RD |
40953 | 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}}; |
40954 | static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
40955 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
40956 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
40957 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40958 | 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 |
40959 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40960 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 40961 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40962 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40963 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
40964 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
40965 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
40966 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
40967 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
40968 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
40969 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
40970 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 40971 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 40972 | 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}}; |
554f62e9 | 40973 | 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 | 40974 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40975 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40976 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
40977 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
40978 | 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 | 40979 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40980 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
40981 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 40982 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
40983 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
40984 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
40985 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
40986 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
40987 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
40988 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40989 | 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}}; |
554f62e9 | 40990 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 40991 | 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}}; |
554f62e9 RD |
40992 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
40993 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40994 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40995 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
40996 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
40997 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40998 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 | 40999 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41000 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0f83f5da | 41001 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41002 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41003 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
41004 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41005 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41006 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41007 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41008 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41009 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
41010 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41011 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41012 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41013 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 41014 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41015 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41016 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41017 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41018 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41019 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41020 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41021 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
41022 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41023 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
41024 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41025 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41026 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41027 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41028 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
41029 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41030 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41031 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41032 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41033 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41034 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41035 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41036 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41037 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 | 41038 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 41039 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41040 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
41041 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41042 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41043 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41044 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41045 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41046 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41047 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 41048 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 41049 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41050 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
41051 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41052 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 41053 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41054 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 41055 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41056 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41057 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41058 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41059 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41060 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
41061 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
41062 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41063 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41064 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
41065 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41066 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41067 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41068 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41069 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41070 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41071 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41072 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41073 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
41074 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
41075 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 41076 | 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 | 41077 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41078 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
41079 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
41080 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
41081 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
41082 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41083 | 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}}; |
554f62e9 | 41084 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41085 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 41086 | static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41087 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
41088 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
41089 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 41090 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41091 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 41092 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41093 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 41094 | static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41095 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
41096 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
41097 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
41098 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
41099 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41100 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
41101 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 41102 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41103 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
41104 | 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 | 41105 | 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}}; |
554f62e9 RD |
41106 | |
41107 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 41108 | _swigc__p_buffer, |
554f62e9 RD |
41109 | _swigc__p_char, |
41110 | _swigc__p_double, | |
41111 | _swigc__p_form_ops_t, | |
41112 | _swigc__p_int, | |
41113 | _swigc__p_unsigned_char, | |
41114 | _swigc__p_unsigned_int, | |
41115 | _swigc__p_unsigned_long, | |
0a27f394 | 41116 | _swigc__p_void, |
554f62e9 RD |
41117 | _swigc__p_wxANIHandler, |
41118 | _swigc__p_wxAcceleratorTable, | |
41119 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
41120 | _swigc__p_wxAlphaPixelData, |
41121 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 41122 | _swigc__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
41123 | _swigc__p_wxBMPHandler, |
41124 | _swigc__p_wxBitmap, | |
41125 | _swigc__p_wxBoxSizer, | |
41126 | _swigc__p_wxBrush, | |
41127 | _swigc__p_wxBrushList, | |
41128 | _swigc__p_wxBufferedDC, | |
41129 | _swigc__p_wxBufferedPaintDC, | |
41130 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 41131 | _swigc__p_wxChar, |
554f62e9 RD |
41132 | _swigc__p_wxChildFocusEvent, |
41133 | _swigc__p_wxClientDC, | |
2131d850 | 41134 | _swigc__p_wxClipboardTextEvent, |
554f62e9 | 41135 | _swigc__p_wxCloseEvent, |
72ef6efb | 41136 | _swigc__p_wxColor, |
554f62e9 RD |
41137 | _swigc__p_wxColour, |
41138 | _swigc__p_wxColourDatabase, | |
41139 | _swigc__p_wxCommandEvent, | |
41140 | _swigc__p_wxContextMenuEvent, | |
41141 | _swigc__p_wxControl, | |
41142 | _swigc__p_wxControlWithItems, | |
41143 | _swigc__p_wxCursor, | |
41144 | _swigc__p_wxDC, | |
70d7cb34 RD |
41145 | _swigc__p_wxDCBrushChanger, |
41146 | _swigc__p_wxDCClipper, | |
b39fe951 | 41147 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
41148 | _swigc__p_wxDCPenChanger, |
41149 | _swigc__p_wxDCTextColourChanger, | |
554f62e9 RD |
41150 | _swigc__p_wxDash, |
41151 | _swigc__p_wxDateEvent, | |
41152 | _swigc__p_wxDisplayChangedEvent, | |
41153 | _swigc__p_wxDropFilesEvent, | |
41154 | _swigc__p_wxDuplexMode, | |
41155 | _swigc__p_wxEffects, | |
41156 | _swigc__p_wxEncodingConverter, | |
41157 | _swigc__p_wxEraseEvent, | |
41158 | _swigc__p_wxEvent, | |
41159 | _swigc__p_wxEvtHandler, | |
41160 | _swigc__p_wxFSFile, | |
41161 | _swigc__p_wxFileSystem, | |
41162 | _swigc__p_wxFlexGridSizer, | |
41163 | _swigc__p_wxFocusEvent, | |
41164 | _swigc__p_wxFont, | |
41165 | _swigc__p_wxFontList, | |
41166 | _swigc__p_wxFontMapper, | |
41167 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 41168 | _swigc__p_wxGCDC, |
50efceee | 41169 | _swigc__p_wxGDIObjListBase, |
554f62e9 RD |
41170 | _swigc__p_wxGDIObject, |
41171 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 41172 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 41173 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
41174 | _swigc__p_wxGraphicsFont, |
41175 | _swigc__p_wxGraphicsMatrix, | |
41176 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 41177 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
41178 | _swigc__p_wxGraphicsPen, |
41179 | _swigc__p_wxGraphicsRenderer, | |
554f62e9 RD |
41180 | _swigc__p_wxGridBagSizer, |
41181 | _swigc__p_wxGridSizer, | |
33d6fd3b | 41182 | _swigc__p_wxHeaderButtonParams, |
554f62e9 RD |
41183 | _swigc__p_wxICOHandler, |
41184 | _swigc__p_wxIcon, | |
41185 | _swigc__p_wxIconBundle, | |
41186 | _swigc__p_wxIconLocation, | |
41187 | _swigc__p_wxIconizeEvent, | |
41188 | _swigc__p_wxIdleEvent, | |
41189 | _swigc__p_wxImage, | |
41190 | _swigc__p_wxImageHandler, | |
41191 | _swigc__p_wxImageList, | |
41192 | _swigc__p_wxIndividualLayoutConstraint, | |
41193 | _swigc__p_wxInitDialogEvent, | |
41194 | _swigc__p_wxJPEGHandler, | |
41195 | _swigc__p_wxKeyEvent, | |
41196 | _swigc__p_wxLanguageInfo, | |
41197 | _swigc__p_wxLayoutConstraints, | |
41198 | _swigc__p_wxLocale, | |
41199 | _swigc__p_wxMask, | |
41200 | _swigc__p_wxMaximizeEvent, | |
41201 | _swigc__p_wxMemoryDC, | |
41202 | _swigc__p_wxMenu, | |
41203 | _swigc__p_wxMenuBar, | |
41204 | _swigc__p_wxMenuEvent, | |
41205 | _swigc__p_wxMenuItem, | |
41206 | _swigc__p_wxMetaFile, | |
41207 | _swigc__p_wxMetaFileDC, | |
41208 | _swigc__p_wxMirrorDC, | |
41209 | _swigc__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 41210 | _swigc__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
41211 | _swigc__p_wxMouseEvent, |
41212 | _swigc__p_wxMoveEvent, | |
41213 | _swigc__p_wxNativeEncodingInfo, | |
41214 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
41215 | _swigc__p_wxNativePixelData, |
41216 | _swigc__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
41217 | _swigc__p_wxNavigationKeyEvent, |
41218 | _swigc__p_wxNcPaintEvent, | |
41219 | _swigc__p_wxNotifyEvent, | |
41220 | _swigc__p_wxObject, | |
b39fe951 | 41221 | _swigc__p_wxOverlay, |
554f62e9 RD |
41222 | _swigc__p_wxPCXHandler, |
41223 | _swigc__p_wxPNGHandler, | |
41224 | _swigc__p_wxPNMHandler, | |
41225 | _swigc__p_wxPaintDC, | |
41226 | _swigc__p_wxPaintEvent, | |
41227 | _swigc__p_wxPalette, | |
41228 | _swigc__p_wxPaletteChangedEvent, | |
41229 | _swigc__p_wxPaperSize, | |
41230 | _swigc__p_wxPen, | |
41231 | _swigc__p_wxPenList, | |
fc46b7f3 | 41232 | _swigc__p_wxPixelDataBase, |
554f62e9 | 41233 | _swigc__p_wxPoint, |
72ef6efb | 41234 | _swigc__p_wxPoint2D, |
70d7cb34 | 41235 | _swigc__p_wxPoint2DDouble, |
554f62e9 RD |
41236 | _swigc__p_wxPostScriptDC, |
41237 | _swigc__p_wxPrintData, | |
41238 | _swigc__p_wxPrinterDC, | |
27e45892 | 41239 | _swigc__p_wxPseudoDC, |
554f62e9 RD |
41240 | _swigc__p_wxPyApp, |
41241 | _swigc__p_wxPyCommandEvent, | |
41242 | _swigc__p_wxPyEvent, | |
41243 | _swigc__p_wxPyFontEnumerator, | |
41244 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 41245 | _swigc__p_wxPyLocale, |
554f62e9 RD |
41246 | _swigc__p_wxPySizer, |
41247 | _swigc__p_wxPyValidator, | |
41248 | _swigc__p_wxQueryNewPaletteEvent, | |
41249 | _swigc__p_wxRect, | |
70d7cb34 | 41250 | _swigc__p_wxRect2DDouble, |
554f62e9 RD |
41251 | _swigc__p_wxRegion, |
41252 | _swigc__p_wxRegionIterator, | |
41253 | _swigc__p_wxRendererNative, | |
41254 | _swigc__p_wxRendererVersion, | |
41255 | _swigc__p_wxScreenDC, | |
41256 | _swigc__p_wxScrollEvent, | |
41257 | _swigc__p_wxScrollWinEvent, | |
41258 | _swigc__p_wxSetCursorEvent, | |
41259 | _swigc__p_wxShowEvent, | |
41260 | _swigc__p_wxSize, | |
41261 | _swigc__p_wxSizeEvent, | |
41262 | _swigc__p_wxSizer, | |
41263 | _swigc__p_wxSizerItem, | |
41264 | _swigc__p_wxSplitterRenderParams, | |
41265 | _swigc__p_wxStaticBoxSizer, | |
41266 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 41267 | _swigc__p_wxStockGDI, |
554f62e9 RD |
41268 | _swigc__p_wxString, |
41269 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 41270 | _swigc__p_wxTGAHandler, |
554f62e9 RD |
41271 | _swigc__p_wxTIFFHandler, |
41272 | _swigc__p_wxUpdateUIEvent, | |
41273 | _swigc__p_wxValidator, | |
41274 | _swigc__p_wxWindow, | |
41275 | _swigc__p_wxWindowCreateEvent, | |
41276 | _swigc__p_wxWindowDC, | |
41277 | _swigc__p_wxWindowDestroyEvent, | |
41278 | _swigc__p_wxXPMHandler, | |
41279 | }; | |
41280 | ||
41281 | ||
41282 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
41283 | ||
41284 | static swig_const_info swig_const_table[] = { | |
41285 | {0, 0, 0, 0.0, 0, 0}}; | |
41286 | ||
41287 | #ifdef __cplusplus | |
41288 | } | |
41289 | #endif | |
41290 | /* ----------------------------------------------------------------------------- | |
41291 | * Type initialization: | |
41292 | * This problem is tough by the requirement that no dynamic | |
41293 | * memory is used. Also, since swig_type_info structures store pointers to | |
41294 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
41295 | * to swig_type_info structures, we need some lookup code at initialization. | |
41296 | * The idea is that swig generates all the structures that are needed. | |
41297 | * The runtime then collects these partially filled structures. | |
41298 | * The SWIG_InitializeModule function takes these initial arrays out of | |
41299 | * swig_module, and does all the lookup, filling in the swig_module.types | |
41300 | * array with the correct data and linking the correct swig_cast_info | |
41301 | * structures together. | |
41302 | * | |
41303 | * The generated swig_type_info structures are assigned staticly to an initial | |
41304 | * array. We just loop though that array, and handle each type individually. | |
41305 | * First we lookup if this type has been already loaded, and if so, use the | |
41306 | * loaded structure instead of the generated one. Then we have to fill in the | |
41307 | * cast linked list. The cast data is initially stored in something like a | |
41308 | * two-dimensional array. Each row corresponds to a type (there are the same | |
41309 | * number of rows as there are in the swig_type_initial array). Each entry in | |
41310 | * a column is one of the swig_cast_info structures for that type. | |
41311 | * The cast_initial array is actually an array of arrays, because each row has | |
41312 | * a variable number of columns. So to actually build the cast linked list, | |
41313 | * we find the array of casts associated with the type, and loop through it | |
41314 | * adding the casts to the list. The one last trick we need to do is making | |
41315 | * sure the type pointer in the swig_cast_info struct is correct. | |
41316 | * | |
41317 | * First off, we lookup the cast->type name to see if it is already loaded. | |
41318 | * There are three cases to handle: | |
41319 | * 1) If the cast->type has already been loaded AND the type we are adding | |
41320 | * casting info to has not been loaded (it is in this module), THEN we | |
41321 | * replace the cast->type pointer with the type pointer that has already | |
41322 | * been loaded. | |
41323 | * 2) If BOTH types (the one we are adding casting info to, and the | |
41324 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
41325 | * the previous module so we just ignore it. | |
41326 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
41327 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
41328 | * be correct. | |
41329 | * ----------------------------------------------------------------------------- */ | |
41330 | ||
41331 | #ifdef __cplusplus | |
41332 | extern "C" { | |
41333 | #if 0 | |
41334 | } /* c-mode */ | |
41335 | #endif | |
41336 | #endif | |
41337 | ||
41338 | #if 0 | |
41339 | #define SWIGRUNTIME_DEBUG | |
41340 | #endif | |
41341 | ||
41342 | SWIGRUNTIME void | |
41343 | SWIG_InitializeModule(void *clientdata) { | |
41344 | size_t i; | |
41345 | swig_module_info *module_head; | |
41346 | static int init_run = 0; | |
41347 | ||
41348 | clientdata = clientdata; | |
41349 | ||
41350 | if (init_run) return; | |
41351 | init_run = 1; | |
41352 | ||
41353 | /* Initialize the swig_module */ | |
41354 | swig_module.type_initial = swig_type_initial; | |
41355 | swig_module.cast_initial = swig_cast_initial; | |
41356 | ||
41357 | /* Try and load any already created modules */ | |
41358 | module_head = SWIG_GetModule(clientdata); | |
41359 | if (module_head) { | |
41360 | swig_module.next = module_head->next; | |
41361 | module_head->next = &swig_module; | |
41362 | } else { | |
41363 | /* This is the first module loaded */ | |
41364 | swig_module.next = &swig_module; | |
41365 | SWIG_SetModule(clientdata, &swig_module); | |
41366 | } | |
41367 | ||
41368 | /* Now work on filling in swig_module.types */ | |
41369 | #ifdef SWIGRUNTIME_DEBUG | |
41370 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
41371 | #endif | |
41372 | for (i = 0; i < swig_module.size; ++i) { | |
41373 | swig_type_info *type = 0; | |
41374 | swig_type_info *ret; | |
41375 | swig_cast_info *cast; | |
41376 | ||
41377 | #ifdef SWIGRUNTIME_DEBUG | |
41378 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
41379 | #endif | |
41380 | ||
41381 | /* if there is another module already loaded */ | |
41382 | if (swig_module.next != &swig_module) { | |
41383 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
be9b1dca | 41384 | } |
554f62e9 RD |
41385 | if (type) { |
41386 | /* Overwrite clientdata field */ | |
41387 | #ifdef SWIGRUNTIME_DEBUG | |
41388 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
41389 | #endif | |
41390 | if (swig_module.type_initial[i]->clientdata) { | |
41391 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
41392 | #ifdef SWIGRUNTIME_DEBUG | |
41393 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
41394 | #endif | |
41395 | } | |
41396 | } else { | |
41397 | type = swig_module.type_initial[i]; | |
be9b1dca | 41398 | } |
554f62e9 RD |
41399 | |
41400 | /* Insert casting types */ | |
41401 | cast = swig_module.cast_initial[i]; | |
41402 | while (cast->type) { | |
41403 | /* Don't need to add information already in the list */ | |
41404 | ret = 0; | |
41405 | #ifdef SWIGRUNTIME_DEBUG | |
41406 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
41407 | #endif | |
41408 | if (swig_module.next != &swig_module) { | |
41409 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
41410 | #ifdef SWIGRUNTIME_DEBUG | |
41411 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
41412 | #endif | |
41413 | } | |
41414 | if (ret) { | |
41415 | if (type == swig_module.type_initial[i]) { | |
41416 | #ifdef SWIGRUNTIME_DEBUG | |
41417 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
41418 | #endif | |
41419 | cast->type = ret; | |
41420 | ret = 0; | |
41421 | } else { | |
41422 | /* Check for casting already in the list */ | |
41423 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
41424 | #ifdef SWIGRUNTIME_DEBUG | |
41425 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
41426 | #endif | |
41427 | if (!ocast) ret = 0; | |
41428 | } | |
41429 | } | |
41430 | ||
41431 | if (!ret) { | |
41432 | #ifdef SWIGRUNTIME_DEBUG | |
41433 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
41434 | #endif | |
41435 | if (type->cast) { | |
41436 | type->cast->prev = cast; | |
41437 | cast->next = type->cast; | |
41438 | } | |
41439 | type->cast = cast; | |
41440 | } | |
41441 | cast++; | |
be9b1dca | 41442 | } |
554f62e9 RD |
41443 | /* Set entry in modules->types array equal to the type */ |
41444 | swig_module.types[i] = type; | |
41445 | } | |
41446 | swig_module.types[i] = 0; | |
41447 | ||
41448 | #ifdef SWIGRUNTIME_DEBUG | |
41449 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
41450 | for (i = 0; i < swig_module.size; ++i) { | |
41451 | int j = 0; | |
41452 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
41453 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
41454 | while (cast->type) { | |
41455 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
41456 | cast++; | |
41457 | ++j; | |
41458 | } | |
41459 | printf("---- Total casts: %d\n",j); | |
41460 | } | |
41461 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
41462 | #endif | |
41463 | } | |
41464 | ||
41465 | /* This function will propagate the clientdata field of type to | |
41466 | * any new swig_type_info structures that have been added into the list | |
41467 | * of equivalent types. It is like calling | |
41468 | * SWIG_TypeClientData(type, clientdata) a second time. | |
41469 | */ | |
41470 | SWIGRUNTIME void | |
41471 | SWIG_PropagateClientData(void) { | |
41472 | size_t i; | |
41473 | swig_cast_info *equiv; | |
41474 | static int init_run = 0; | |
41475 | ||
41476 | if (init_run) return; | |
41477 | init_run = 1; | |
41478 | ||
41479 | for (i = 0; i < swig_module.size; i++) { | |
41480 | if (swig_module.types[i]->clientdata) { | |
41481 | equiv = swig_module.types[i]->cast; | |
41482 | while (equiv) { | |
41483 | if (!equiv->converter) { | |
41484 | if (equiv->type && !equiv->type->clientdata) | |
41485 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
41486 | } | |
41487 | equiv = equiv->next; | |
41488 | } | |
be9b1dca | 41489 | } |
554f62e9 RD |
41490 | } |
41491 | } | |
41492 | ||
41493 | #ifdef __cplusplus | |
41494 | #if 0 | |
41495 | { | |
41496 | /* c-mode */ | |
41497 | #endif | |
41498 | } | |
41499 | #endif | |
41500 | ||
41501 | ||
41502 | ||
41503 | #ifdef __cplusplus | |
41504 | extern "C" { | |
41505 | #endif | |
41506 | ||
41507 | /* Python-specific SWIG API */ | |
41508 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
41509 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
41510 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
41511 | ||
41512 | /* ----------------------------------------------------------------------------- | |
41513 | * global variable support code. | |
41514 | * ----------------------------------------------------------------------------- */ | |
41515 | ||
41516 | typedef struct swig_globalvar { | |
41517 | char *name; /* Name of global variable */ | |
41518 | PyObject *(*get_attr)(void); /* Return the current value */ | |
41519 | int (*set_attr)(PyObject *); /* Set the value */ | |
41520 | struct swig_globalvar *next; | |
41521 | } swig_globalvar; | |
41522 | ||
41523 | typedef struct swig_varlinkobject { | |
41524 | PyObject_HEAD | |
41525 | swig_globalvar *vars; | |
41526 | } swig_varlinkobject; | |
41527 | ||
41528 | SWIGINTERN PyObject * | |
41529 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
41530 | return PyString_FromString("<Swig global variables>"); | |
41531 | } | |
41532 | ||
41533 | SWIGINTERN PyObject * | |
41534 | swig_varlink_str(swig_varlinkobject *v) { | |
41535 | PyObject *str = PyString_FromString("("); | |
41536 | swig_globalvar *var; | |
41537 | for (var = v->vars; var; var=var->next) { | |
41538 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
41539 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
41540 | } | |
41541 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
41542 | return str; | |
41543 | } | |
41544 | ||
41545 | SWIGINTERN int | |
41546 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
41547 | PyObject *str = swig_varlink_str(v); | |
41548 | fprintf(fp,"Swig global variables "); | |
41549 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
41550 | Py_DECREF(str); | |
41551 | return 0; | |
41552 | } | |
41553 | ||
41554 | SWIGINTERN void | |
41555 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
41556 | swig_globalvar *var = v->vars; | |
41557 | while (var) { | |
41558 | swig_globalvar *n = var->next; | |
41559 | free(var->name); | |
41560 | free(var); | |
41561 | var = n; | |
be9b1dca | 41562 | } |
554f62e9 RD |
41563 | } |
41564 | ||
41565 | SWIGINTERN PyObject * | |
41566 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
41567 | PyObject *res = NULL; | |
41568 | swig_globalvar *var = v->vars; | |
41569 | while (var) { | |
41570 | if (strcmp(var->name,n) == 0) { | |
41571 | res = (*var->get_attr)(); | |
41572 | break; | |
41573 | } | |
41574 | var = var->next; | |
be9b1dca | 41575 | } |
554f62e9 RD |
41576 | if (res == NULL && !PyErr_Occurred()) { |
41577 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 41578 | } |
554f62e9 RD |
41579 | return res; |
41580 | } | |
41581 | ||
41582 | SWIGINTERN int | |
41583 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
41584 | int res = 1; | |
41585 | swig_globalvar *var = v->vars; | |
41586 | while (var) { | |
41587 | if (strcmp(var->name,n) == 0) { | |
41588 | res = (*var->set_attr)(p); | |
41589 | break; | |
41590 | } | |
41591 | var = var->next; | |
be9b1dca | 41592 | } |
554f62e9 RD |
41593 | if (res == 1 && !PyErr_Occurred()) { |
41594 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 41595 | } |
554f62e9 RD |
41596 | return res; |
41597 | } | |
41598 | ||
41599 | SWIGINTERN PyTypeObject* | |
41600 | swig_varlink_type(void) { | |
41601 | static char varlink__doc__[] = "Swig var link object"; | |
41602 | static PyTypeObject varlink_type; | |
41603 | static int type_init = 0; | |
41604 | if (!type_init) { | |
41605 | const PyTypeObject tmp | |
41606 | = { | |
41607 | PyObject_HEAD_INIT(NULL) | |
41608 | 0, /* Number of items in variable part (ob_size) */ | |
41609 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
41610 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
41611 | 0, /* Itemsize (tp_itemsize) */ | |
41612 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
41613 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
41614 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
41615 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
41616 | 0, /* tp_compare */ | |
41617 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
41618 | 0, /* tp_as_number */ | |
41619 | 0, /* tp_as_sequence */ | |
41620 | 0, /* tp_as_mapping */ | |
41621 | 0, /* tp_hash */ | |
41622 | 0, /* tp_call */ | |
41623 | (reprfunc)swig_varlink_str, /* tp_str */ | |
41624 | 0, /* tp_getattro */ | |
41625 | 0, /* tp_setattro */ | |
41626 | 0, /* tp_as_buffer */ | |
41627 | 0, /* tp_flags */ | |
41628 | varlink__doc__, /* tp_doc */ | |
41629 | 0, /* tp_traverse */ | |
41630 | 0, /* tp_clear */ | |
41631 | 0, /* tp_richcompare */ | |
41632 | 0, /* tp_weaklistoffset */ | |
41633 | #if PY_VERSION_HEX >= 0x02020000 | |
41634 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
41635 | #endif | |
41636 | #if PY_VERSION_HEX >= 0x02030000 | |
41637 | 0, /* tp_del */ | |
41638 | #endif | |
41639 | #ifdef COUNT_ALLOCS | |
41640 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
41641 | #endif | |
41642 | }; | |
41643 | varlink_type = tmp; | |
41644 | varlink_type.ob_type = &PyType_Type; | |
41645 | type_init = 1; | |
be9b1dca | 41646 | } |
554f62e9 RD |
41647 | return &varlink_type; |
41648 | } | |
41649 | ||
41650 | /* Create a variable linking object for use later */ | |
41651 | SWIGINTERN PyObject * | |
41652 | SWIG_Python_newvarlink(void) { | |
41653 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
41654 | if (result) { | |
41655 | result->vars = 0; | |
41656 | } | |
41657 | return ((PyObject*) result); | |
41658 | } | |
41659 | ||
41660 | SWIGINTERN void | |
41661 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
41662 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
41663 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
41664 | if (gv) { | |
41665 | size_t size = strlen(name)+1; | |
41666 | gv->name = (char *)malloc(size); | |
41667 | if (gv->name) { | |
41668 | strncpy(gv->name,name,size); | |
41669 | gv->get_attr = get_attr; | |
41670 | gv->set_attr = set_attr; | |
41671 | gv->next = v->vars; | |
41672 | } | |
be9b1dca | 41673 | } |
554f62e9 RD |
41674 | v->vars = gv; |
41675 | } | |
41676 | ||
41677 | SWIGINTERN PyObject * | |
41678 | SWIG_globals() { | |
41679 | static PyObject *_SWIG_globals = 0; | |
41680 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
41681 | return _SWIG_globals; | |
41682 | } | |
41683 | ||
41684 | /* ----------------------------------------------------------------------------- | |
41685 | * constants/methods manipulation | |
41686 | * ----------------------------------------------------------------------------- */ | |
41687 | ||
41688 | /* Install Constants */ | |
41689 | SWIGINTERN void | |
41690 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
41691 | PyObject *obj = 0; | |
41692 | size_t i; | |
41693 | for (i = 0; constants[i].type; ++i) { | |
41694 | switch(constants[i].type) { | |
41695 | case SWIG_PY_POINTER: | |
41696 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
41697 | break; | |
41698 | case SWIG_PY_BINARY: | |
41699 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
41700 | break; | |
41701 | default: | |
41702 | obj = 0; | |
41703 | break; | |
41704 | } | |
41705 | if (obj) { | |
41706 | PyDict_SetItemString(d, constants[i].name, obj); | |
41707 | Py_DECREF(obj); | |
41708 | } | |
be9b1dca | 41709 | } |
554f62e9 RD |
41710 | } |
41711 | ||
41712 | /* -----------------------------------------------------------------------------*/ | |
41713 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41714 | /* -----------------------------------------------------------------------------*/ | |
41715 | ||
41716 | SWIGINTERN void | |
41717 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
41718 | swig_const_info *const_table, | |
41719 | swig_type_info **types, | |
41720 | swig_type_info **types_initial) { | |
41721 | size_t i; | |
41722 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 41723 | const char *c = methods[i].ml_doc; |
554f62e9 RD |
41724 | if (c && (c = strstr(c, "swig_ptr: "))) { |
41725 | int j; | |
41726 | swig_const_info *ci = 0; | |
453fb36b | 41727 | const char *name = c + 10; |
554f62e9 RD |
41728 | for (j = 0; const_table[j].type; ++j) { |
41729 | if (strncmp(const_table[j].name, name, | |
41730 | strlen(const_table[j].name)) == 0) { | |
41731 | ci = &(const_table[j]); | |
41732 | break; | |
41733 | } | |
41734 | } | |
41735 | if (ci) { | |
41736 | size_t shift = (ci->ptype) - types; | |
41737 | swig_type_info *ty = types_initial[shift]; | |
41738 | size_t ldoc = (c - methods[i].ml_doc); | |
41739 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
41740 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
41741 | if (ndoc) { | |
41742 | char *buff = ndoc; | |
41743 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
41744 | if (ptr) { | |
41745 | strncpy(buff, methods[i].ml_doc, ldoc); | |
41746 | buff += ldoc; | |
41747 | strncpy(buff, "swig_ptr: ", 10); | |
41748 | buff += 10; | |
41749 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
41750 | methods[i].ml_doc = ndoc; | |
41751 | } | |
41752 | } | |
41753 | } | |
41754 | } | |
be9b1dca | 41755 | } |
554f62e9 RD |
41756 | } |
41757 | ||
41758 | #ifdef __cplusplus | |
41759 | } | |
41760 | #endif | |
41761 | ||
41762 | /* -----------------------------------------------------------------------------* | |
41763 | * Partial Init method | |
41764 | * -----------------------------------------------------------------------------*/ | |
41765 | ||
41766 | #ifdef __cplusplus | |
41767 | extern "C" | |
41768 | #endif | |
41769 | SWIGEXPORT void SWIG_init(void) { | |
41770 | PyObject *m, *d; | |
41771 | ||
41772 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41773 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
41774 | ||
41775 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41776 | d = PyModule_GetDict(m); | |
41777 | ||
41778 | SWIG_InitializeModule(0); | |
41779 | SWIG_InstallConstants(d,swig_const_table); | |
41780 | ||
41781 | ||
f460c29d RD |
41782 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
41783 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
41784 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
41785 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
41786 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
554f62e9 RD |
41787 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
41788 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
41789 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
41790 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
41791 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
41792 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
41793 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
41794 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
41795 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
41796 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
41797 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
41798 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
41799 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
41800 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
41801 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
41802 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
41803 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
41804 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
41805 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
41806 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
41807 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
41808 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
41809 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
41810 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
41811 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
41812 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
41813 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
41814 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
41815 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
41816 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
41817 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
41818 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
41819 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
41820 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
41821 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
41822 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
41823 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
41824 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
41825 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
41826 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
41827 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
41828 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
41829 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
41830 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
41831 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
41832 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
41833 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
41834 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
41835 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
41836 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
41837 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
41838 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
41839 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
41840 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
41841 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
41842 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
41843 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
41844 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
41845 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
41846 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
41847 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
41848 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
41849 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
41850 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
41851 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
41852 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
41853 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
41854 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
41855 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
41856 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
41857 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
41858 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
41859 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
41860 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
41861 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
41862 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
41863 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
41864 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
41865 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
41866 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
41867 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
41868 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
41869 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
41870 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
41871 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
41872 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
41873 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
41874 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
41875 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
41876 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
41877 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
41878 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
41879 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
41880 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
41881 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
41882 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
41883 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
41884 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
41885 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
41886 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
41887 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
41888 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
41889 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
41890 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
41891 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
41892 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
41893 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
41894 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
41895 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
41896 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
41897 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
41898 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
41899 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
41900 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
41901 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
41902 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
41903 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
41904 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
41905 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
41906 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
41907 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
41908 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
41909 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
41910 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
41911 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
41912 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
41913 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
41914 | ||
41915 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
41916 | ||
41917 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
41918 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
41919 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
41920 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
41921 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
41922 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
41923 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
41924 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
41925 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
41926 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
41927 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
41928 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
41929 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
41930 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
41931 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
41932 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
41933 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
41934 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
41935 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
41936 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
41937 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
41938 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
41939 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
41940 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
41941 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
41942 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
41943 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
41944 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
41945 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
41946 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
41947 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
41948 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
41949 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
41950 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
41951 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
41952 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
41953 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
41954 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
41955 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
41956 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
41957 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
41958 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
41959 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
41960 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
41961 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
41962 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
41963 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
41964 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
41965 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
41966 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
41967 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
41968 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
41969 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
41970 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
41971 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
41972 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
41973 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
41974 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
41975 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
41976 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
41977 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
41978 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
41979 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
41980 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
41981 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
41982 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
41983 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
41984 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
41985 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
41986 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
41987 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
41988 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
41989 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
41990 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
41991 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
41992 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
41993 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
41994 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
41995 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
41996 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
41997 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
41998 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
41999 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
42000 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
42001 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
42002 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
42003 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
42004 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
42005 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
42006 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
42007 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
42008 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
42009 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
42010 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
42011 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
42012 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
42013 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
42014 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
42015 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
42016 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
42017 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
42018 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
42019 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
42020 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
42021 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
42022 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
42023 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
42024 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
42025 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
42026 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
42027 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
42028 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
42029 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
42030 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
42031 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
42032 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
42033 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
42034 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
42035 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
42036 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
42037 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
42038 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
42039 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
42040 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
42041 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
42042 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
42043 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
42044 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
42045 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
42046 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
42047 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
42048 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
42049 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
42050 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
42051 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
42052 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
42053 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
42054 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
42055 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
42056 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
42057 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
42058 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
42059 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
42060 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
42061 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
42062 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
42063 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
42064 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
42065 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
42066 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
42067 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
42068 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
42069 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
42070 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
42071 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
42072 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
42073 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
42074 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
42075 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
42076 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
42077 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
42078 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
42079 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
42080 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
42081 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
42082 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
42083 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
42084 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
42085 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
42086 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
42087 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
42088 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
42089 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
42090 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
42091 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
42092 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
42093 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
42094 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
42095 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
42096 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
42097 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
42098 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
42099 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
42100 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
42101 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
42102 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
42103 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
42104 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
42105 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
42106 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
42107 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
42108 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
42109 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
42110 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
42111 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
42112 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
42113 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
42114 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
42115 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
42116 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
42117 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
42118 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
42119 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
42120 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
42121 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
42122 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
42123 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
42124 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
42125 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
42126 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
42127 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
42128 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
42129 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
42130 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
42131 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
42132 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
42133 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
42134 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
42135 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
42136 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
42137 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
42138 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
42139 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
42140 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
42141 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
42142 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
42143 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
42144 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
42145 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
42146 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
42147 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
42148 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
42149 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
42150 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
42151 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
42152 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
42153 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
42154 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
42155 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
42156 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
42157 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
42158 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
42159 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
42160 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
42161 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
42162 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
42163 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
42164 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
70d7cb34 RD |
42165 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
42166 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
42167 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
42168 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
42169 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
42170 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
554f62e9 RD |
42171 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
42172 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
42173 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
42174 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
42175 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
42176 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
42177 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
42178 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
42179 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
42180 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
42181 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
42182 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
42183 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
42184 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
42185 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
42186 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
42187 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
42188 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
42189 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
42190 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
42191 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
42192 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
42193 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
42194 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
42195 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
42196 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
42197 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
42198 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
42199 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
42200 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
42201 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
42202 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
42203 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
42204 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
42205 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
42206 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
42207 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
42208 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
42209 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
42210 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
42211 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
42212 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
554f62e9 RD |
42213 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
42214 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
42215 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
42216 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
42217 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
42218 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
42219 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
42220 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
554f62e9 RD |
42221 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
42222 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
42223 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 42224 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
554f62e9 RD |
42225 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
42226 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
42227 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 42228 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
554f62e9 RD |
42229 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
42230 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
42231 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
42232 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
42233 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
42234 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
42235 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
42236 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
42237 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
42238 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
554f62e9 RD |
42239 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
42240 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
42241 | ||
42242 | // Work around a chicken/egg problem in drawlist.cpp | |
42243 | wxPyDrawList_SetAPIPtr(); | |
42244 | ||
d55e5bfc RD |
42245 | } |
42246 |