]>
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 | |
8bd35413 RD |
3619 | class wxGraphicsRenderer; |
3620 | class wxGraphicsMatrix; | |
3621 | ||
70d7cb34 RD |
3622 | |
3623 | class wxGraphicsObject : public wxObject | |
72ef6efb RD |
3624 | { |
3625 | public : | |
8bd35413 | 3626 | wxGraphicsObject() {} |
70d7cb34 | 3627 | wxGraphicsObject( wxGraphicsRenderer* ) { |
72ef6efb | 3628 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3629 | "wx.GraphicsObject is not available on this platform."); |
3630 | } | |
3631 | wxGraphicsObject( const wxGraphicsObject& ) {} | |
3632 | virtual ~wxGraphicsObject() {} | |
3633 | bool IsNull() const { return false; } | |
3634 | wxGraphicsRenderer* GetRenderer() const { return NULL; } | |
3635 | } ; | |
3636 | ||
3637 | ||
3638 | ||
3639 | class wxGraphicsPen : public wxGraphicsObject | |
3640 | { | |
8bd35413 | 3641 | public: |
70d7cb34 RD |
3642 | wxGraphicsPen() {} |
3643 | virtual ~wxGraphicsPen() {} | |
3644 | } ; | |
3645 | wxGraphicsPen wxNullGraphicsPen; | |
3646 | ||
3647 | ||
3648 | ||
3649 | class wxGraphicsBrush : public wxGraphicsObject | |
3650 | { | |
3651 | public : | |
3652 | wxGraphicsBrush() {} | |
3653 | virtual ~wxGraphicsBrush() {} | |
3654 | } ; | |
3655 | wxGraphicsBrush wxNullGraphicsBrush; | |
3656 | ||
3657 | ||
3658 | ||
3659 | class wxGraphicsFont : public wxGraphicsObject | |
3660 | { | |
3661 | public : | |
3662 | wxGraphicsFont() {} | |
3663 | virtual ~wxGraphicsFont() {} | |
3664 | } ; | |
3665 | wxGraphicsFont wxNullGraphicsFont; | |
3666 | ||
3667 | ||
3668 | ||
3669 | class wxGraphicsPath : public wxGraphicsObject | |
3670 | { | |
3671 | public : | |
8bd35413 | 3672 | wxGraphicsPath() { } |
70d7cb34 RD |
3673 | wxGraphicsPath(wxGraphicsRenderer* ) { |
3674 | PyErr_SetString(PyExc_NotImplementedError, | |
3675 | "wx.GraphicsPath is not available on this platform."); | |
72ef6efb RD |
3676 | } |
3677 | virtual ~wxGraphicsPath() {} | |
70d7cb34 | 3678 | |
72ef6efb | 3679 | void MoveToPoint( wxDouble, wxDouble ) {} |
70d7cb34 RD |
3680 | void MoveToPoint( const wxPoint2DDouble& ) {} |
3681 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3682 | void AddLineToPoint( const wxPoint2DDouble& ) {} | |
72ef6efb | 3683 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} |
70d7cb34 | 3684 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} |
8bd35413 | 3685 | void AddPath( const wxGraphicsPath& ) {} |
72ef6efb | 3686 | void CloseSubpath() {} |
8bd35413 RD |
3687 | void GetCurrentPoint( wxDouble&, wxDouble&) const {} |
3688 | wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); } | |
72ef6efb | 3689 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} |
70d7cb34 | 3690 | void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {} |
72ef6efb RD |
3691 | |
3692 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3693 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3694 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3695 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3696 | ||
70d7cb34 RD |
3697 | void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3698 | void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3699 | void * GetNativePath() const { return NULL; } | |
8bd35413 RD |
3700 | void UnGetNativePath(void *) const {} |
3701 | void Transform( const wxGraphicsMatrix& ) {} | |
3702 | void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {} | |
3703 | wxRect2D GetBox() const { return wxRect2D(0,0,0,0); } | |
70d7cb34 | 3704 | |
8bd35413 RD |
3705 | bool Contains( wxDouble , wxDouble , int ) const { return false; } |
3706 | bool Contains( const wxPoint2DDouble& , int ) const { return false; } | |
70d7cb34 | 3707 | }; |
5c8c7dd3 | 3708 | wxGraphicsPath wxNullGraphicsPath; |
70d7cb34 RD |
3709 | |
3710 | ||
3711 | class wxGraphicsMatrix : public wxGraphicsObject | |
3712 | { | |
3713 | public : | |
8bd35413 | 3714 | wxGraphicsMatrix() { } |
70d7cb34 RD |
3715 | wxGraphicsMatrix(wxGraphicsRenderer* ) { |
3716 | PyErr_SetString(PyExc_NotImplementedError, | |
3717 | "wx.GraphicsMatrix is not available on this platform."); | |
3718 | } | |
3719 | virtual ~wxGraphicsMatrix() {} | |
8bd35413 RD |
3720 | virtual void Concat( const wxGraphicsMatrix & ) {} |
3721 | virtual void Copy( const wxGraphicsMatrix & ) {} | |
70d7cb34 RD |
3722 | virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble , |
3723 | wxDouble , wxDouble ) {} | |
3724 | virtual void Invert() {} | |
8bd35413 RD |
3725 | virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; } |
3726 | virtual bool IsIdentity() const { return false; } | |
70d7cb34 RD |
3727 | virtual void Translate( wxDouble , wxDouble ) {} |
3728 | virtual void Scale( wxDouble , wxDouble ) {} | |
3729 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3730 | virtual void TransformPoint( wxDouble *, wxDouble * ) const {} |
3731 | virtual void TransformDistance( wxDouble *, wxDouble * ) const {} | |
70d7cb34 | 3732 | virtual void * GetNativeMatrix() const { return NULL; } |
72ef6efb | 3733 | }; |
5c8c7dd3 | 3734 | wxGraphicsMatrix wxNullGraphicsMatrix; |
72ef6efb | 3735 | |
70d7cb34 RD |
3736 | |
3737 | class wxGraphicsContext : public wxGraphicsObject | |
72ef6efb RD |
3738 | { |
3739 | public: | |
70d7cb34 RD |
3740 | |
3741 | wxGraphicsContext(wxGraphicsRenderer* ) { | |
72ef6efb | 3742 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3743 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3744 | } |
70d7cb34 | 3745 | |
72ef6efb | 3746 | virtual ~wxGraphicsContext() {} |
70d7cb34 | 3747 | |
8bd35413 RD |
3748 | static wxGraphicsContext* Create() { |
3749 | PyErr_SetString(PyExc_NotImplementedError, | |
3750 | "wx.GraphicsContext is not available on this platform."); | |
3751 | return NULL; | |
3752 | } | |
70d7cb34 | 3753 | static wxGraphicsContext* Create( const wxWindowDC& ) { |
72ef6efb | 3754 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3755 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3756 | return NULL; |
72ef6efb | 3757 | } |
b876c1e4 | 3758 | |
70d7cb34 | 3759 | static wxGraphicsContext* CreateFromNative( void * ) { |
b876c1e4 | 3760 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3761 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3762 | return NULL; |
70d7cb34 | 3763 | } |
b876c1e4 | 3764 | |
70d7cb34 RD |
3765 | static wxGraphicsContext* CreateFromNativeWindow( void * ) { |
3766 | PyErr_SetString(PyExc_NotImplementedError, | |
3767 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3768 | return NULL; |
70d7cb34 RD |
3769 | } |
3770 | ||
3771 | static wxGraphicsContext* Create( wxWindow* ) { | |
3772 | PyErr_SetString(PyExc_NotImplementedError, | |
3773 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3774 | return NULL; |
70d7cb34 RD |
3775 | } |
3776 | ||
8bd35413 | 3777 | wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3778 | |
8bd35413 | 3779 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
70d7cb34 | 3780 | |
8bd35413 | 3781 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3782 | |
3783 | virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , | |
8bd35413 | 3784 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3785 | |
3786 | virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo, | |
3787 | wxDouble xc, wxDouble yc, wxDouble radius, | |
8bd35413 | 3788 | const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; } |
70d7cb34 | 3789 | |
8bd35413 | 3790 | virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; } |
70d7cb34 | 3791 | |
8bd35413 RD |
3792 | virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble, |
3793 | wxDouble, wxDouble) { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3794 | |
3795 | virtual void PushState() {} | |
3796 | virtual void PopState() {} | |
3797 | virtual void Clip( const wxRegion & ) {} | |
3798 | virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3799 | virtual void ResetClip() {} | |
3800 | virtual void * GetNativeContext() { return NULL; } | |
3801 | virtual void Translate( wxDouble , wxDouble ) {} | |
3802 | virtual void Scale( wxDouble , wxDouble ) {} | |
3803 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3804 | virtual void ConcatTransform( const wxGraphicsMatrix& ) {} |
3805 | virtual void SetTransform( const wxGraphicsMatrix& ) {} | |
3806 | virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3807 | |
3808 | virtual void SetPen( const wxGraphicsPen& ) {} | |
3809 | void SetPen( const wxPen& ) {} | |
3810 | ||
3811 | virtual void SetBrush( const wxGraphicsBrush& ) {} | |
3812 | void SetBrush( const wxBrush& ) {} | |
3813 | ||
3814 | virtual void SetFont( const wxGraphicsFont& ) {} | |
3815 | void SetFont( const wxFont&, const wxColour& ) {} | |
3816 | ||
8bd35413 RD |
3817 | virtual void StrokePath( const wxGraphicsPath & ) {} |
3818 | virtual void FillPath( const wxGraphicsPath &, int ) {} | |
3819 | virtual void DrawPath( const wxGraphicsPath &, int ) {} | |
70d7cb34 RD |
3820 | |
3821 | virtual void DrawText( const wxString &, wxDouble , wxDouble ) {} | |
3822 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {} | |
8bd35413 RD |
3823 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {} |
3824 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {} | |
70d7cb34 RD |
3825 | virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *, |
3826 | wxDouble *, wxDouble * ) const {} | |
3827 | virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {} | |
3828 | ||
3829 | virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3830 | virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3831 | ||
3832 | virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3833 | virtual void StrokeLines( size_t , const wxPoint2DDouble *) {} | |
3834 | virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {} | |
3835 | virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {} | |
3836 | virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
8bd35413 | 3837 | virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} |
70d7cb34 RD |
3838 | virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3839 | virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3840 | virtual bool ShouldOffset() const { return false; } | |
3841 | }; | |
3842 | ||
3843 | ||
3844 | class wxGraphicsRenderer : public wxObject | |
3845 | { | |
3846 | public : | |
3847 | wxGraphicsRenderer() { | |
3848 | PyErr_SetString(PyExc_NotImplementedError, | |
3849 | "wx.GraphicsRenderer is not available on this platform."); | |
3850 | } | |
3851 | ||
3852 | virtual ~wxGraphicsRenderer() {} | |
3853 | ||
8bd35413 | 3854 | static wxGraphicsRenderer* GetDefaultRenderer() { |
70d7cb34 RD |
3855 | PyErr_SetString(PyExc_NotImplementedError, |
3856 | "wx.GraphicsRenderer is not available on this platform."); | |
8bd35413 RD |
3857 | return NULL; |
3858 | } | |
70d7cb34 RD |
3859 | |
3860 | virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; } | |
3861 | virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; } | |
3862 | virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; } | |
3863 | virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; } | |
8bd35413 | 3864 | virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; } |
70d7cb34 | 3865 | |
8bd35413 | 3866 | virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3867 | |
8bd35413 RD |
3868 | virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble , |
3869 | wxDouble , wxDouble ) { return wxNullGraphicsMatrix; } | |
70d7cb34 | 3870 | |
8bd35413 RD |
3871 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
3872 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } | |
3873 | virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , | |
3874 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } | |
70d7cb34 | 3875 | virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , |
8bd35413 RD |
3876 | const wxColour &, const wxColour &) { return wxNullGraphicsBrush; } |
3877 | virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; } | |
72ef6efb RD |
3878 | }; |
3879 | ||
3880 | ||
70d7cb34 | 3881 | |
72ef6efb RD |
3882 | class wxGCDC: public wxWindowDC |
3883 | { | |
3884 | public: | |
3885 | wxGCDC(const wxWindowDC&) { | |
3886 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3887 | PyErr_SetString(PyExc_NotImplementedError, | |
3888 | "wxGCDC is not available on this platform."); | |
3889 | wxPyEndBlockThreads(blocked); | |
3890 | } | |
70d7cb34 | 3891 | |
48a0c021 RD |
3892 | wxGCDC(const wxWindow*) { |
3893 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3894 | PyErr_SetString(PyExc_NotImplementedError, | |
3895 | "wxGCDC is not available on this platform."); | |
3896 | wxPyEndBlockThreads(blocked); | |
3897 | } | |
3898 | ||
72ef6efb RD |
3899 | wxGCDC() { |
3900 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3901 | PyErr_SetString(PyExc_NotImplementedError, | |
3902 | "wxGCDC is not available on this platform."); | |
3903 | wxPyEndBlockThreads(blocked); | |
3904 | } | |
70d7cb34 | 3905 | |
72ef6efb RD |
3906 | virtual ~wxGCDC() {} |
3907 | ||
b876c1e4 RD |
3908 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3909 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3910 | }; |
3911 | ||
3912 | #endif | |
3913 | ||
f89238b9 RD |
3914 | SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ |
3915 | if ( !backgroundBrush.IsNull() ) | |
3916 | self->DrawText(str, x, y, backgroundBrush); | |
3917 | else | |
3918 | self->DrawText(str, x, y); | |
3919 | } | |
3920 | SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ | |
3921 | if ( !backgroundBrush.IsNull() ) | |
3922 | self->DrawText(str, x, y, angle, backgroundBrush); | |
3923 | else | |
3924 | self->DrawText(str, x, y, angle); | |
3925 | } | |
be68621e RD |
3926 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3927 | wxDouble width = 0.0, | |
3928 | height = 0.0; | |
3929 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3930 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3931 | PyObject* rv = PyTuple_New(2); | |
3932 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3933 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3934 | return rv; | |
3935 | } | |
b39fe951 RD |
3936 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3937 | wxArrayDouble widths; | |
3938 | self->GetPartialTextExtents(text, widths); | |
3939 | return widths; | |
3940 | } | |
f8eb59b9 | 3941 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3942 | size_t c1, c2, count; |
3943 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3944 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3945 | ||
3946 | if ( beginP != NULL && endP != NULL ) | |
3947 | { | |
3948 | count = wxMin(c1, c2); | |
3949 | self->StrokeLines(count, beginP, endP); | |
3950 | } | |
3951 | delete [] beginP; | |
3952 | delete [] endP; | |
3953 | } | |
72ef6efb | 3954 | |
0a27f394 RD |
3955 | #include "wx/dcgraph.h" |
3956 | ||
3957 | ||
66493fc7 RD |
3958 | #include <wx/overlay.h> |
3959 | ||
3960 | ||
093d3ff1 | 3961 | |
554f62e9 | 3962 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3963 | self->AddColour(name, wxColour(red, green, blue)); |
3964 | } | |
3965 | ||
50efceee RD |
3966 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3967 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3968 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3969 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3970 | ||
3971 | ||
093d3ff1 RD |
3972 | #include <wx/effects.h> |
3973 | ||
be9b1dca RD |
3974 | |
3975 | #include "wx/renderer.h" | |
3976 | ||
3977 | ||
7449af73 | 3978 | SWIGINTERNINLINE PyObject* |
554f62e9 | 3979 | SWIG_From_bool (bool value) |
be9b1dca | 3980 | { |
554f62e9 | 3981 | return PyBool_FromLong(value ? 1 : 0); |
be9b1dca RD |
3982 | } |
3983 | ||
27e45892 RD |
3984 | |
3985 | #include "wx/wxPython/pseudodc.h" | |
3986 | ||
3987 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
3988 | wxRect rect; | |
3989 | self->GetIdBounds(id, rect); | |
3990 | return rect; | |
3991 | } | |
093d3ff1 RD |
3992 | #ifdef __cplusplus |
3993 | extern "C" { | |
3994 | #endif | |
554f62e9 RD |
3995 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3996 | PyObject *resultobj = 0; | |
3997 | wxGDIObject *result = 0 ; | |
3998 | ||
3999 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
4000 | { | |
4001 | if (!wxPyCheckForApp()) SWIG_fail; | |
4002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4003 | result = (wxGDIObject *)new wxGDIObject(); | |
4004 | wxPyEndAllowThreads(__tstate); | |
4005 | if (PyErr_Occurred()) SWIG_fail; | |
4006 | } | |
4007 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
4008 | return resultobj; | |
4009 | fail: | |
4010 | return NULL; | |
d55e5bfc RD |
4011 | } |
4012 | ||
4013 | ||
554f62e9 RD |
4014 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4015 | PyObject *resultobj = 0; | |
4016 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4017 | void *argp1 = 0 ; | |
4018 | int res1 = 0 ; | |
4019 | PyObject *swig_obj[1] ; | |
4020 | ||
4021 | if (!args) SWIG_fail; | |
4022 | swig_obj[0] = args; | |
4023 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
4024 | if (!SWIG_IsOK(res1)) { | |
4025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4026 | } | |
4027 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4028 | { | |
4029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4030 | delete arg1; | |
d55e5bfc | 4031 | |
554f62e9 RD |
4032 | wxPyEndAllowThreads(__tstate); |
4033 | if (PyErr_Occurred()) SWIG_fail; | |
4034 | } | |
4035 | resultobj = SWIG_Py_Void(); | |
4036 | return resultobj; | |
4037 | fail: | |
4038 | return NULL; | |
d55e5bfc RD |
4039 | } |
4040 | ||
4041 | ||
554f62e9 RD |
4042 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4043 | PyObject *resultobj = 0; | |
4044 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4045 | bool result; | |
4046 | void *argp1 = 0 ; | |
4047 | int res1 = 0 ; | |
4048 | PyObject *swig_obj[1] ; | |
4049 | ||
4050 | if (!args) SWIG_fail; | |
4051 | swig_obj[0] = args; | |
4052 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
4053 | if (!SWIG_IsOK(res1)) { | |
4054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4055 | } | |
4056 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4057 | { | |
4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4059 | result = (bool)(arg1)->IsNull(); | |
4060 | wxPyEndAllowThreads(__tstate); | |
4061 | if (PyErr_Occurred()) SWIG_fail; | |
4062 | } | |
4063 | { | |
4064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4065 | } | |
4066 | return resultobj; | |
4067 | fail: | |
4068 | return NULL; | |
4069 | } | |
4070 | ||
4071 | ||
4072 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4073 | PyObject *obj; | |
4074 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4075 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
4076 | return SWIG_Py_Void(); | |
4077 | } | |
4078 | ||
4079 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4080 | return SWIG_Python_InitShadowInstance(args); | |
4081 | } | |
4082 | ||
4083 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4084 | PyObject *resultobj = 0; | |
4085 | byte arg1 = (byte) 0 ; | |
4086 | byte arg2 = (byte) 0 ; | |
4087 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 4088 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
554f62e9 RD |
4089 | wxColour *result = 0 ; |
4090 | unsigned char val1 ; | |
4091 | int ecode1 = 0 ; | |
4092 | unsigned char val2 ; | |
4093 | int ecode2 = 0 ; | |
4094 | unsigned char val3 ; | |
4095 | int ecode3 = 0 ; | |
fc46b7f3 RD |
4096 | unsigned char val4 ; |
4097 | int ecode4 = 0 ; | |
554f62e9 RD |
4098 | PyObject * obj0 = 0 ; |
4099 | PyObject * obj1 = 0 ; | |
4100 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 4101 | PyObject * obj3 = 0 ; |
554f62e9 | 4102 | char * kwnames[] = { |
fc46b7f3 | 4103 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
554f62e9 RD |
4104 | }; |
4105 | ||
fc46b7f3 | 4106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
554f62e9 RD |
4107 | if (obj0) { |
4108 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
4109 | if (!SWIG_IsOK(ecode1)) { | |
4110 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
4111 | } | |
4112 | arg1 = static_cast< byte >(val1); | |
4113 | } | |
4114 | if (obj1) { | |
4115 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4116 | if (!SWIG_IsOK(ecode2)) { | |
4117 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
4118 | } | |
4119 | arg2 = static_cast< byte >(val2); | |
4120 | } | |
4121 | if (obj2) { | |
4122 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4123 | if (!SWIG_IsOK(ecode3)) { | |
4124 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
4125 | } | |
4126 | arg3 = static_cast< byte >(val3); | |
4127 | } | |
fc46b7f3 RD |
4128 | if (obj3) { |
4129 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4130 | if (!SWIG_IsOK(ecode4)) { | |
4131 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
4132 | } | |
4133 | arg4 = static_cast< byte >(val4); | |
4134 | } | |
554f62e9 RD |
4135 | { |
4136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4137 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
554f62e9 RD |
4138 | wxPyEndAllowThreads(__tstate); |
4139 | if (PyErr_Occurred()) SWIG_fail; | |
4140 | } | |
4141 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
4142 | return resultobj; | |
4143 | fail: | |
4144 | return NULL; | |
d55e5bfc RD |
4145 | } |
4146 | ||
4147 | ||
554f62e9 RD |
4148 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4149 | PyObject *resultobj = 0; | |
4150 | wxString *arg1 = 0 ; | |
4151 | wxColour *result = 0 ; | |
4152 | bool temp1 = false ; | |
4153 | PyObject * obj0 = 0 ; | |
4154 | char * kwnames[] = { | |
4155 | (char *) "colorName", NULL | |
4156 | }; | |
4157 | ||
4158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
4159 | { | |
4160 | arg1 = wxString_in_helper(obj0); | |
4161 | if (arg1 == NULL) SWIG_fail; | |
4162 | temp1 = true; | |
4163 | } | |
4164 | { | |
4165 | if (!wxPyCheckForApp()) SWIG_fail; | |
4166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4167 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
4168 | wxPyEndAllowThreads(__tstate); | |
4169 | if (PyErr_Occurred()) SWIG_fail; | |
4170 | } | |
4171 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4172 | { | |
4173 | if (temp1) | |
4174 | delete arg1; | |
4175 | } | |
4176 | return resultobj; | |
4177 | fail: | |
4178 | { | |
4179 | if (temp1) | |
4180 | delete arg1; | |
4181 | } | |
4182 | return NULL; | |
b519803b RD |
4183 | } |
4184 | ||
4185 | ||
554f62e9 RD |
4186 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4187 | PyObject *resultobj = 0; | |
4188 | unsigned long arg1 ; | |
4189 | wxColour *result = 0 ; | |
4190 | unsigned long val1 ; | |
4191 | int ecode1 = 0 ; | |
4192 | PyObject * obj0 = 0 ; | |
4193 | char * kwnames[] = { | |
4194 | (char *) "colRGB", NULL | |
4195 | }; | |
4196 | ||
4197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
4198 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
4199 | if (!SWIG_IsOK(ecode1)) { | |
4200 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
4201 | } | |
4202 | arg1 = static_cast< unsigned long >(val1); | |
4203 | { | |
4204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4205 | result = (wxColour *)new wxColour(arg1); | |
4206 | wxPyEndAllowThreads(__tstate); | |
4207 | if (PyErr_Occurred()) SWIG_fail; | |
4208 | } | |
4209 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4210 | return resultobj; | |
4211 | fail: | |
4212 | return NULL; | |
d55e5bfc RD |
4213 | } |
4214 | ||
4215 | ||
554f62e9 RD |
4216 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4217 | PyObject *resultobj = 0; | |
4218 | wxColour *arg1 = (wxColour *) 0 ; | |
4219 | void *argp1 = 0 ; | |
4220 | int res1 = 0 ; | |
4221 | PyObject *swig_obj[1] ; | |
4222 | ||
4223 | if (!args) SWIG_fail; | |
4224 | swig_obj[0] = args; | |
4225 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
4226 | if (!SWIG_IsOK(res1)) { | |
4227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4228 | } | |
4229 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4230 | { | |
4231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4232 | delete arg1; | |
d55e5bfc | 4233 | |
554f62e9 RD |
4234 | wxPyEndAllowThreads(__tstate); |
4235 | if (PyErr_Occurred()) SWIG_fail; | |
4236 | } | |
4237 | resultobj = SWIG_Py_Void(); | |
4238 | return resultobj; | |
4239 | fail: | |
4240 | return NULL; | |
d55e5bfc RD |
4241 | } |
4242 | ||
4243 | ||
554f62e9 RD |
4244 | SWIGINTERN PyObject *_wrap_Colour_Red(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_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4257 | } | |
4258 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4259 | { | |
4260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4261 | result = (byte)(arg1)->Red(); | |
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_Green(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_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4285 | } | |
4286 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4287 | { | |
4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4289 | result = (byte)(arg1)->Green(); | |
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 | ||
554f62e9 RD |
4300 | SWIGINTERN PyObject *_wrap_Colour_Blue(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_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4313 | } | |
4314 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4315 | { | |
4316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4317 | result = (byte)(arg1)->Blue(); | |
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; | |
d55e5bfc RD |
4325 | } |
4326 | ||
4327 | ||
fc46b7f3 RD |
4328 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4329 | PyObject *resultobj = 0; | |
4330 | wxColour *arg1 = (wxColour *) 0 ; | |
4331 | byte 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)) { | |
4340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4341 | } | |
4342 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4343 | { | |
4344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4345 | result = (byte)(arg1)->Alpha(); | |
4346 | wxPyEndAllowThreads(__tstate); | |
4347 | if (PyErr_Occurred()) SWIG_fail; | |
4348 | } | |
4349 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4350 | return resultobj; | |
4351 | fail: | |
4352 | return NULL; | |
4353 | } | |
4354 | ||
4355 | ||
b39fe951 | 4356 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
4357 | PyObject *resultobj = 0; |
4358 | wxColour *arg1 = (wxColour *) 0 ; | |
4359 | bool result; | |
4360 | void *argp1 = 0 ; | |
4361 | int res1 = 0 ; | |
4362 | PyObject *swig_obj[1] ; | |
4363 | ||
4364 | if (!args) SWIG_fail; | |
4365 | swig_obj[0] = args; | |
4366 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4367 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4369 | } |
4370 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4371 | { | |
4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4373 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
4374 | wxPyEndAllowThreads(__tstate); |
4375 | if (PyErr_Occurred()) SWIG_fail; | |
4376 | } | |
4377 | { | |
4378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4379 | } | |
4380 | return resultobj; | |
4381 | fail: | |
4382 | return NULL; | |
4383 | } | |
4384 | ||
4385 | ||
4386 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4387 | PyObject *resultobj = 0; | |
4388 | wxColour *arg1 = (wxColour *) 0 ; | |
4389 | byte arg2 ; | |
4390 | byte arg3 ; | |
4391 | byte arg4 ; | |
fc46b7f3 | 4392 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
554f62e9 RD |
4393 | void *argp1 = 0 ; |
4394 | int res1 = 0 ; | |
4395 | unsigned char val2 ; | |
4396 | int ecode2 = 0 ; | |
4397 | unsigned char val3 ; | |
4398 | int ecode3 = 0 ; | |
4399 | unsigned char val4 ; | |
4400 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4401 | unsigned char val5 ; |
4402 | int ecode5 = 0 ; | |
554f62e9 RD |
4403 | PyObject * obj0 = 0 ; |
4404 | PyObject * obj1 = 0 ; | |
4405 | PyObject * obj2 = 0 ; | |
4406 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4407 | PyObject * obj4 = 0 ; |
554f62e9 | 4408 | char * kwnames[] = { |
fc46b7f3 | 4409 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
554f62e9 RD |
4410 | }; |
4411 | ||
fc46b7f3 | 4412 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
554f62e9 RD |
4413 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4414 | if (!SWIG_IsOK(res1)) { | |
4415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4416 | } | |
4417 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4418 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4419 | if (!SWIG_IsOK(ecode2)) { | |
4420 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4421 | } | |
4422 | arg2 = static_cast< byte >(val2); | |
4423 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4424 | if (!SWIG_IsOK(ecode3)) { | |
4425 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4426 | } | |
4427 | arg3 = static_cast< byte >(val3); | |
4428 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4429 | if (!SWIG_IsOK(ecode4)) { | |
4430 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4431 | } | |
4432 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4433 | if (obj4) { |
4434 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4435 | if (!SWIG_IsOK(ecode5)) { | |
4436 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4437 | } | |
4438 | arg5 = static_cast< byte >(val5); | |
4439 | } | |
554f62e9 RD |
4440 | { |
4441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4442 | (arg1)->Set(arg2,arg3,arg4,arg5); |
554f62e9 RD |
4443 | wxPyEndAllowThreads(__tstate); |
4444 | if (PyErr_Occurred()) SWIG_fail; | |
4445 | } | |
4446 | resultobj = SWIG_Py_Void(); | |
4447 | return resultobj; | |
4448 | fail: | |
4449 | return NULL; | |
4450 | } | |
4451 | ||
4452 | ||
4453 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4454 | PyObject *resultobj = 0; | |
4455 | wxColour *arg1 = (wxColour *) 0 ; | |
4456 | unsigned long arg2 ; | |
4457 | void *argp1 = 0 ; | |
4458 | int res1 = 0 ; | |
4459 | unsigned long val2 ; | |
4460 | int ecode2 = 0 ; | |
4461 | PyObject * obj0 = 0 ; | |
4462 | PyObject * obj1 = 0 ; | |
4463 | char * kwnames[] = { | |
4464 | (char *) "self",(char *) "colRGB", NULL | |
4465 | }; | |
4466 | ||
4467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4469 | if (!SWIG_IsOK(res1)) { | |
4470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4471 | } | |
4472 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4473 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4474 | if (!SWIG_IsOK(ecode2)) { | |
4475 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4476 | } | |
4477 | arg2 = static_cast< unsigned long >(val2); | |
4478 | { | |
4479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4480 | (arg1)->Set(arg2); | |
4481 | wxPyEndAllowThreads(__tstate); | |
4482 | if (PyErr_Occurred()) SWIG_fail; | |
4483 | } | |
4484 | resultobj = SWIG_Py_Void(); | |
4485 | return resultobj; | |
4486 | fail: | |
4487 | return NULL; | |
4488 | } | |
4489 | ||
4490 | ||
4491 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4492 | PyObject *resultobj = 0; | |
4493 | wxColour *arg1 = (wxColour *) 0 ; | |
4494 | wxString *arg2 = 0 ; | |
4495 | void *argp1 = 0 ; | |
4496 | int res1 = 0 ; | |
4497 | bool temp2 = false ; | |
4498 | PyObject * obj0 = 0 ; | |
4499 | PyObject * obj1 = 0 ; | |
4500 | char * kwnames[] = { | |
4501 | (char *) "self",(char *) "colourName", NULL | |
4502 | }; | |
4503 | ||
4504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4505 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4506 | if (!SWIG_IsOK(res1)) { | |
4507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4508 | } | |
4509 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4510 | { | |
4511 | arg2 = wxString_in_helper(obj1); | |
4512 | if (arg2 == NULL) SWIG_fail; | |
4513 | temp2 = true; | |
4514 | } | |
4515 | { | |
4516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4517 | (arg1)->Set((wxString const &)*arg2); |
554f62e9 RD |
4518 | wxPyEndAllowThreads(__tstate); |
4519 | if (PyErr_Occurred()) SWIG_fail; | |
4520 | } | |
4521 | resultobj = SWIG_Py_Void(); | |
4522 | { | |
4523 | if (temp2) | |
4524 | delete arg2; | |
4525 | } | |
4526 | return resultobj; | |
4527 | fail: | |
4528 | { | |
4529 | if (temp2) | |
4530 | delete arg2; | |
4531 | } | |
4532 | return NULL; | |
d55e5bfc RD |
4533 | } |
4534 | ||
4535 | ||
f460c29d RD |
4536 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4537 | PyObject *resultobj = 0; | |
4538 | wxColour *arg1 = (wxColour *) 0 ; | |
4539 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4540 | wxString result; | |
4541 | void *argp1 = 0 ; | |
4542 | int res1 = 0 ; | |
4543 | long val2 ; | |
4544 | int ecode2 = 0 ; | |
4545 | PyObject * obj0 = 0 ; | |
4546 | PyObject * obj1 = 0 ; | |
4547 | char * kwnames[] = { | |
4548 | (char *) "self",(char *) "flags", NULL | |
4549 | }; | |
4550 | ||
4551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4553 | if (!SWIG_IsOK(res1)) { | |
4554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4555 | } | |
4556 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4557 | if (obj1) { | |
4558 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4559 | if (!SWIG_IsOK(ecode2)) { | |
4560 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4561 | } | |
4562 | arg2 = static_cast< long >(val2); | |
4563 | } | |
4564 | { | |
4565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4566 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4567 | wxPyEndAllowThreads(__tstate); | |
4568 | if (PyErr_Occurred()) SWIG_fail; | |
4569 | } | |
4570 | { | |
4571 | #if wxUSE_UNICODE | |
4572 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4573 | #else | |
4574 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4575 | #endif | |
4576 | } | |
4577 | return resultobj; | |
4578 | fail: | |
4579 | return NULL; | |
4580 | } | |
4581 | ||
4582 | ||
554f62e9 RD |
4583 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4584 | PyObject *resultobj = 0; | |
4585 | wxColour *arg1 = (wxColour *) 0 ; | |
4586 | long result; | |
4587 | void *argp1 = 0 ; | |
4588 | int res1 = 0 ; | |
4589 | PyObject *swig_obj[1] ; | |
4590 | ||
4591 | if (!args) SWIG_fail; | |
4592 | swig_obj[0] = args; | |
4593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4594 | if (!SWIG_IsOK(res1)) { | |
4595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4596 | } | |
4597 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4598 | { | |
4599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4600 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4601 | wxPyEndAllowThreads(__tstate); | |
4602 | if (PyErr_Occurred()) SWIG_fail; | |
4603 | } | |
4604 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4605 | return resultobj; | |
4606 | fail: | |
4607 | return NULL; | |
4608 | } | |
4609 | ||
4610 | ||
4611 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4612 | PyObject *resultobj = 0; | |
4613 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4614 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
4615 | bool result; |
4616 | void *argp1 = 0 ; | |
4617 | int res1 = 0 ; | |
554f62e9 RD |
4618 | PyObject * obj0 = 0 ; |
4619 | PyObject * obj1 = 0 ; | |
4620 | char * kwnames[] = { | |
e9d6f3a4 | 4621 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
4622 | }; |
4623 | ||
4624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4626 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4628 | } |
4629 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4630 | arg2 = obj1; |
554f62e9 | 4631 | { |
e9d6f3a4 | 4632 | result = (bool)wxColour___eq__(arg1,arg2); |
554f62e9 RD |
4633 | if (PyErr_Occurred()) SWIG_fail; |
4634 | } | |
4635 | { | |
4636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4637 | } | |
4638 | return resultobj; | |
4639 | fail: | |
4640 | return NULL; | |
4641 | } | |
4642 | ||
4643 | ||
4644 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4645 | PyObject *resultobj = 0; | |
4646 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4647 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
4648 | bool result; |
4649 | void *argp1 = 0 ; | |
4650 | int res1 = 0 ; | |
554f62e9 RD |
4651 | PyObject * obj0 = 0 ; |
4652 | PyObject * obj1 = 0 ; | |
4653 | char * kwnames[] = { | |
e9d6f3a4 | 4654 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
4655 | }; |
4656 | ||
4657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4659 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4661 | } |
4662 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4663 | arg2 = obj1; |
554f62e9 | 4664 | { |
e9d6f3a4 | 4665 | result = (bool)wxColour___ne__(arg1,arg2); |
554f62e9 RD |
4666 | if (PyErr_Occurred()) SWIG_fail; |
4667 | } | |
4668 | { | |
4669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4670 | } | |
4671 | return resultobj; | |
4672 | fail: | |
4673 | return NULL; | |
d55e5bfc RD |
4674 | } |
4675 | ||
4676 | ||
fc46b7f3 | 4677 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
4678 | PyObject *resultobj = 0; |
4679 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4680 | bool arg2 = (bool) false ; |
554f62e9 RD |
4681 | PyObject *result = 0 ; |
4682 | void *argp1 = 0 ; | |
4683 | int res1 = 0 ; | |
fc46b7f3 RD |
4684 | bool val2 ; |
4685 | int ecode2 = 0 ; | |
4686 | PyObject * obj0 = 0 ; | |
4687 | PyObject * obj1 = 0 ; | |
4688 | char * kwnames[] = { | |
4689 | (char *) "self",(char *) "includeAlpha", NULL | |
4690 | }; | |
554f62e9 | 4691 | |
fc46b7f3 RD |
4692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
554f62e9 RD |
4694 | if (!SWIG_IsOK(res1)) { |
4695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4696 | } | |
4697 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4698 | if (obj1) { |
4699 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4700 | if (!SWIG_IsOK(ecode2)) { | |
4701 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4702 | } | |
4703 | arg2 = static_cast< bool >(val2); | |
4704 | } | |
554f62e9 | 4705 | { |
fc46b7f3 | 4706 | result = (PyObject *)wxColour_Get(arg1,arg2); |
554f62e9 RD |
4707 | if (PyErr_Occurred()) SWIG_fail; |
4708 | } | |
4709 | resultobj = result; | |
4710 | return resultobj; | |
4711 | fail: | |
4712 | return NULL; | |
d55e5bfc RD |
4713 | } |
4714 | ||
4715 | ||
554f62e9 RD |
4716 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4717 | PyObject *resultobj = 0; | |
4718 | wxColour *arg1 = (wxColour *) 0 ; | |
4719 | unsigned long result; | |
4720 | void *argp1 = 0 ; | |
4721 | int res1 = 0 ; | |
4722 | PyObject *swig_obj[1] ; | |
4723 | ||
4724 | if (!args) SWIG_fail; | |
4725 | swig_obj[0] = args; | |
4726 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4727 | if (!SWIG_IsOK(res1)) { | |
4728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4729 | } | |
4730 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4731 | { | |
554f62e9 | 4732 | result = (unsigned long)wxColour_GetRGB(arg1); |
554f62e9 RD |
4733 | if (PyErr_Occurred()) SWIG_fail; |
4734 | } | |
4735 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4736 | return resultobj; | |
4737 | fail: | |
4738 | return NULL; | |
4739 | } | |
4740 | ||
4741 | ||
4742 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4743 | PyObject *obj; | |
4744 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4745 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4746 | return SWIG_Py_Void(); | |
4747 | } | |
4748 | ||
4749 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4750 | return SWIG_Python_InitShadowInstance(args); | |
4751 | } | |
4752 | ||
4753 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4754 | PyObject *resultobj = 0; | |
4755 | int arg1 ; | |
4756 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4757 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4758 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4759 | wxPalette *result = 0 ; | |
4760 | int val1 ; | |
4761 | int ecode1 = 0 ; | |
4762 | void *argp2 = 0 ; | |
4763 | int res2 = 0 ; | |
4764 | void *argp3 = 0 ; | |
4765 | int res3 = 0 ; | |
4766 | void *argp4 = 0 ; | |
4767 | int res4 = 0 ; | |
4768 | PyObject * obj0 = 0 ; | |
4769 | PyObject * obj1 = 0 ; | |
4770 | PyObject * obj2 = 0 ; | |
4771 | PyObject * obj3 = 0 ; | |
4772 | char * kwnames[] = { | |
4773 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4774 | }; | |
4775 | ||
4776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4777 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4778 | if (!SWIG_IsOK(ecode1)) { | |
4779 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4780 | } | |
4781 | arg1 = static_cast< int >(val1); | |
4782 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4783 | if (!SWIG_IsOK(res2)) { | |
4784 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4785 | } | |
4786 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4787 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4788 | if (!SWIG_IsOK(res3)) { | |
4789 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4790 | } | |
4791 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4792 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4793 | if (!SWIG_IsOK(res4)) { | |
4794 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4795 | } | |
4796 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4797 | { | |
4798 | if (!wxPyCheckForApp()) SWIG_fail; | |
4799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4800 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4805 | return resultobj; | |
4806 | fail: | |
4807 | return NULL; | |
093d3ff1 RD |
4808 | } |
4809 | ||
4810 | ||
554f62e9 RD |
4811 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4812 | PyObject *resultobj = 0; | |
4813 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4814 | void *argp1 = 0 ; | |
4815 | int res1 = 0 ; | |
4816 | PyObject *swig_obj[1] ; | |
4817 | ||
4818 | if (!args) SWIG_fail; | |
4819 | swig_obj[0] = args; | |
4820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4821 | if (!SWIG_IsOK(res1)) { | |
4822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4823 | } | |
4824 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4825 | { | |
4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4827 | delete arg1; | |
093d3ff1 | 4828 | |
554f62e9 RD |
4829 | wxPyEndAllowThreads(__tstate); |
4830 | if (PyErr_Occurred()) SWIG_fail; | |
4831 | } | |
4832 | resultobj = SWIG_Py_Void(); | |
4833 | return resultobj; | |
4834 | fail: | |
4835 | return NULL; | |
4836 | } | |
4837 | ||
4838 | ||
4839 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4840 | PyObject *resultobj = 0; | |
4841 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4842 | byte arg2 ; | |
4843 | byte arg3 ; | |
4844 | byte arg4 ; | |
4845 | int result; | |
4846 | void *argp1 = 0 ; | |
4847 | int res1 = 0 ; | |
4848 | unsigned char val2 ; | |
4849 | int ecode2 = 0 ; | |
4850 | unsigned char val3 ; | |
4851 | int ecode3 = 0 ; | |
4852 | unsigned char val4 ; | |
4853 | int ecode4 = 0 ; | |
4854 | PyObject * obj0 = 0 ; | |
4855 | PyObject * obj1 = 0 ; | |
4856 | PyObject * obj2 = 0 ; | |
4857 | PyObject * obj3 = 0 ; | |
4858 | char * kwnames[] = { | |
4859 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4860 | }; | |
4861 | ||
4862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4864 | if (!SWIG_IsOK(res1)) { | |
4865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4866 | } | |
4867 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4868 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4869 | if (!SWIG_IsOK(ecode2)) { | |
4870 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4871 | } | |
4872 | arg2 = static_cast< byte >(val2); | |
4873 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4874 | if (!SWIG_IsOK(ecode3)) { | |
4875 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4876 | } | |
4877 | arg3 = static_cast< byte >(val3); | |
4878 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4879 | if (!SWIG_IsOK(ecode4)) { | |
4880 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4881 | } | |
4882 | arg4 = static_cast< byte >(val4); | |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4886 | wxPyEndAllowThreads(__tstate); | |
4887 | if (PyErr_Occurred()) SWIG_fail; | |
4888 | } | |
4889 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4890 | return resultobj; | |
4891 | fail: | |
4892 | return NULL; | |
4893 | } | |
4894 | ||
4895 | ||
4896 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4897 | PyObject *resultobj = 0; | |
4898 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4899 | int arg2 ; | |
4900 | byte *arg3 = (byte *) 0 ; | |
4901 | byte *arg4 = (byte *) 0 ; | |
4902 | byte *arg5 = (byte *) 0 ; | |
4903 | bool result; | |
4904 | void *argp1 = 0 ; | |
4905 | int res1 = 0 ; | |
4906 | int val2 ; | |
4907 | int ecode2 = 0 ; | |
4908 | byte temp3 ; | |
4909 | int res3 = SWIG_TMPOBJ ; | |
4910 | byte temp4 ; | |
4911 | int res4 = SWIG_TMPOBJ ; | |
4912 | byte temp5 ; | |
4913 | int res5 = SWIG_TMPOBJ ; | |
4914 | PyObject * obj0 = 0 ; | |
4915 | PyObject * obj1 = 0 ; | |
4916 | char * kwnames[] = { | |
4917 | (char *) "self",(char *) "pixel", NULL | |
4918 | }; | |
4919 | ||
4920 | arg3 = &temp3; | |
4921 | arg4 = &temp4; | |
4922 | arg5 = &temp5; | |
4923 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4925 | if (!SWIG_IsOK(res1)) { | |
4926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4927 | } | |
4928 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4929 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4930 | if (!SWIG_IsOK(ecode2)) { | |
4931 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4932 | } | |
4933 | arg2 = static_cast< int >(val2); | |
4934 | { | |
4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4936 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4937 | wxPyEndAllowThreads(__tstate); | |
4938 | if (PyErr_Occurred()) SWIG_fail; | |
4939 | } | |
4940 | { | |
4941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4942 | } | |
4943 | if (SWIG_IsTmpObj(res3)) { | |
4944 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4945 | } else { | |
4946 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4947 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4948 | } | |
4949 | if (SWIG_IsTmpObj(res4)) { | |
4950 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4951 | } else { | |
4952 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4953 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4954 | } | |
4955 | if (SWIG_IsTmpObj(res5)) { | |
4956 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4957 | } else { | |
4958 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4959 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4960 | } | |
4961 | return resultobj; | |
4962 | fail: | |
4963 | return NULL; | |
d55e5bfc RD |
4964 | } |
4965 | ||
4966 | ||
554f62e9 RD |
4967 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4968 | PyObject *resultobj = 0; | |
4969 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4970 | int 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)) { | |
4979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4980 | } | |
4981 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4989 | return resultobj; | |
4990 | fail: | |
4991 | return NULL; | |
d55e5bfc RD |
4992 | } |
4993 | ||
4994 | ||
b39fe951 | 4995 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
4996 | PyObject *resultobj = 0; |
4997 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4998 | bool result; | |
4999 | void *argp1 = 0 ; | |
5000 | int res1 = 0 ; | |
5001 | PyObject *swig_obj[1] ; | |
5002 | ||
5003 | if (!args) SWIG_fail; | |
5004 | swig_obj[0] = args; | |
5005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
5006 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
554f62e9 RD |
5008 | } |
5009 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5010 | { | |
5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5012 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
5013 | wxPyEndAllowThreads(__tstate); |
5014 | if (PyErr_Occurred()) SWIG_fail; | |
5015 | } | |
5016 | { | |
5017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5018 | } | |
5019 | return resultobj; | |
5020 | fail: | |
5021 | return NULL; | |
5022 | } | |
5023 | ||
5024 | ||
5025 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5026 | PyObject *obj; | |
5027 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5028 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
5029 | return SWIG_Py_Void(); | |
5030 | } | |
5031 | ||
5032 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5033 | return SWIG_Python_InitShadowInstance(args); | |
5034 | } | |
5035 | ||
5036 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5037 | PyObject *resultobj = 0; | |
5038 | wxColour *arg1 = 0 ; | |
5039 | int arg2 = (int) 1 ; | |
5040 | int arg3 = (int) wxSOLID ; | |
5041 | wxPen *result = 0 ; | |
5042 | wxColour temp1 ; | |
5043 | int val2 ; | |
5044 | int ecode2 = 0 ; | |
5045 | int val3 ; | |
5046 | int ecode3 = 0 ; | |
5047 | PyObject * obj0 = 0 ; | |
5048 | PyObject * obj1 = 0 ; | |
5049 | PyObject * obj2 = 0 ; | |
5050 | char * kwnames[] = { | |
5051 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
5052 | }; | |
5053 | ||
5054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5055 | { | |
5056 | arg1 = &temp1; | |
5057 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5058 | } | |
5059 | if (obj1) { | |
5060 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5061 | if (!SWIG_IsOK(ecode2)) { | |
5062 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
5063 | } | |
5064 | arg2 = static_cast< int >(val2); | |
5065 | } | |
5066 | if (obj2) { | |
5067 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5068 | if (!SWIG_IsOK(ecode3)) { | |
5069 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
5070 | } | |
5071 | arg3 = static_cast< int >(val3); | |
5072 | } | |
5073 | { | |
5074 | if (!wxPyCheckForApp()) SWIG_fail; | |
5075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5076 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
5077 | wxPyEndAllowThreads(__tstate); | |
5078 | if (PyErr_Occurred()) SWIG_fail; | |
5079 | } | |
5080 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
5081 | return resultobj; | |
5082 | fail: | |
5083 | return NULL; | |
d55e5bfc RD |
5084 | } |
5085 | ||
5086 | ||
554f62e9 RD |
5087 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5088 | PyObject *resultobj = 0; | |
5089 | wxPen *arg1 = (wxPen *) 0 ; | |
5090 | void *argp1 = 0 ; | |
5091 | int res1 = 0 ; | |
5092 | PyObject *swig_obj[1] ; | |
5093 | ||
5094 | if (!args) SWIG_fail; | |
5095 | swig_obj[0] = args; | |
5096 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
5097 | if (!SWIG_IsOK(res1)) { | |
5098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5099 | } | |
5100 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5101 | { | |
5102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5103 | delete arg1; | |
d55e5bfc | 5104 | |
554f62e9 RD |
5105 | wxPyEndAllowThreads(__tstate); |
5106 | if (PyErr_Occurred()) SWIG_fail; | |
5107 | } | |
5108 | resultobj = SWIG_Py_Void(); | |
5109 | return resultobj; | |
5110 | fail: | |
5111 | return NULL; | |
d55e5bfc RD |
5112 | } |
5113 | ||
5114 | ||
554f62e9 RD |
5115 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5116 | PyObject *resultobj = 0; | |
5117 | wxPen *arg1 = (wxPen *) 0 ; | |
5118 | int 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_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5128 | } | |
5129 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5130 | { | |
5131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5132 | result = (int)(arg1)->GetCap(); | |
5133 | wxPyEndAllowThreads(__tstate); | |
5134 | if (PyErr_Occurred()) SWIG_fail; | |
5135 | } | |
5136 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5137 | return resultobj; | |
5138 | fail: | |
5139 | return NULL; | |
d55e5bfc RD |
5140 | } |
5141 | ||
5142 | ||
554f62e9 RD |
5143 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5144 | PyObject *resultobj = 0; | |
5145 | wxPen *arg1 = (wxPen *) 0 ; | |
5146 | wxColour 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_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5156 | } | |
5157 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5158 | { | |
5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5160 | result = (arg1)->GetColour(); | |
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | } | |
5164 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5165 | return resultobj; | |
5166 | fail: | |
5167 | return NULL; | |
d55e5bfc RD |
5168 | } |
5169 | ||
5170 | ||
554f62e9 RD |
5171 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(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_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5184 | } | |
5185 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5186 | { | |
5187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5188 | result = (int)(arg1)->GetJoin(); | |
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_GetStyle(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_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5212 | } | |
5213 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5214 | { | |
5215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5216 | result = (int)(arg1)->GetStyle(); | |
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 | ||
554f62e9 RD |
5227 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5228 | PyObject *resultobj = 0; | |
5229 | wxPen *arg1 = (wxPen *) 0 ; | |
5230 | int 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)) { | |
5239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5240 | } | |
5241 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5242 | { | |
5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5244 | result = (int)(arg1)->GetWidth(); | |
5245 | wxPyEndAllowThreads(__tstate); | |
5246 | if (PyErr_Occurred()) SWIG_fail; | |
5247 | } | |
5248 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5249 | return resultobj; | |
5250 | fail: | |
5251 | return NULL; | |
d55e5bfc RD |
5252 | } |
5253 | ||
5254 | ||
b39fe951 | 5255 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
5256 | PyObject *resultobj = 0; |
5257 | wxPen *arg1 = (wxPen *) 0 ; | |
5258 | bool result; | |
5259 | void *argp1 = 0 ; | |
5260 | int res1 = 0 ; | |
5261 | PyObject *swig_obj[1] ; | |
5262 | ||
5263 | if (!args) SWIG_fail; | |
5264 | swig_obj[0] = args; | |
5265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5266 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
554f62e9 RD |
5268 | } |
5269 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5270 | { | |
5271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5272 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
5273 | wxPyEndAllowThreads(__tstate); |
5274 | if (PyErr_Occurred()) SWIG_fail; | |
5275 | } | |
5276 | { | |
5277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5278 | } | |
5279 | return resultobj; | |
5280 | fail: | |
5281 | return NULL; | |
5282 | } | |
5283 | ||
5284 | ||
5285 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5286 | PyObject *resultobj = 0; | |
5287 | wxPen *arg1 = (wxPen *) 0 ; | |
5288 | int arg2 ; | |
5289 | void *argp1 = 0 ; | |
5290 | int res1 = 0 ; | |
5291 | int val2 ; | |
5292 | int ecode2 = 0 ; | |
5293 | PyObject * obj0 = 0 ; | |
5294 | PyObject * obj1 = 0 ; | |
5295 | char * kwnames[] = { | |
5296 | (char *) "self",(char *) "cap_style", NULL | |
5297 | }; | |
5298 | ||
5299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5301 | if (!SWIG_IsOK(res1)) { | |
5302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5303 | } | |
5304 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5305 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5306 | if (!SWIG_IsOK(ecode2)) { | |
5307 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5308 | } | |
5309 | arg2 = static_cast< int >(val2); | |
5310 | { | |
5311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5312 | (arg1)->SetCap(arg2); | |
5313 | wxPyEndAllowThreads(__tstate); | |
5314 | if (PyErr_Occurred()) SWIG_fail; | |
5315 | } | |
5316 | resultobj = SWIG_Py_Void(); | |
5317 | return resultobj; | |
5318 | fail: | |
5319 | return NULL; | |
5320 | } | |
5321 | ||
5322 | ||
5323 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5324 | PyObject *resultobj = 0; | |
5325 | wxPen *arg1 = (wxPen *) 0 ; | |
5326 | wxColour *arg2 = 0 ; | |
5327 | void *argp1 = 0 ; | |
5328 | int res1 = 0 ; | |
5329 | wxColour temp2 ; | |
5330 | PyObject * obj0 = 0 ; | |
5331 | PyObject * obj1 = 0 ; | |
5332 | char * kwnames[] = { | |
5333 | (char *) "self",(char *) "colour", NULL | |
5334 | }; | |
5335 | ||
5336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5338 | if (!SWIG_IsOK(res1)) { | |
5339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5340 | } | |
5341 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5342 | { | |
5343 | arg2 = &temp2; | |
5344 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5345 | } | |
5346 | { | |
5347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5348 | (arg1)->SetColour(*arg2); | |
5349 | wxPyEndAllowThreads(__tstate); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
5352 | resultobj = SWIG_Py_Void(); | |
5353 | return resultobj; | |
5354 | fail: | |
5355 | return NULL; | |
5356 | } | |
5357 | ||
5358 | ||
5359 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5360 | PyObject *resultobj = 0; | |
5361 | wxPen *arg1 = (wxPen *) 0 ; | |
5362 | int arg2 ; | |
5363 | void *argp1 = 0 ; | |
5364 | int res1 = 0 ; | |
5365 | int val2 ; | |
5366 | int ecode2 = 0 ; | |
5367 | PyObject * obj0 = 0 ; | |
5368 | PyObject * obj1 = 0 ; | |
5369 | char * kwnames[] = { | |
5370 | (char *) "self",(char *) "join_style", NULL | |
5371 | }; | |
5372 | ||
5373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5375 | if (!SWIG_IsOK(res1)) { | |
5376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5377 | } | |
5378 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5379 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5380 | if (!SWIG_IsOK(ecode2)) { | |
5381 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5382 | } | |
5383 | arg2 = static_cast< int >(val2); | |
5384 | { | |
5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5386 | (arg1)->SetJoin(arg2); | |
5387 | wxPyEndAllowThreads(__tstate); | |
5388 | if (PyErr_Occurred()) SWIG_fail; | |
5389 | } | |
5390 | resultobj = SWIG_Py_Void(); | |
5391 | return resultobj; | |
5392 | fail: | |
5393 | return NULL; | |
5394 | } | |
5395 | ||
5396 | ||
5397 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5398 | PyObject *resultobj = 0; | |
5399 | wxPen *arg1 = (wxPen *) 0 ; | |
5400 | int arg2 ; | |
5401 | void *argp1 = 0 ; | |
5402 | int res1 = 0 ; | |
5403 | int val2 ; | |
5404 | int ecode2 = 0 ; | |
5405 | PyObject * obj0 = 0 ; | |
5406 | PyObject * obj1 = 0 ; | |
5407 | char * kwnames[] = { | |
5408 | (char *) "self",(char *) "style", NULL | |
5409 | }; | |
5410 | ||
5411 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5412 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5413 | if (!SWIG_IsOK(res1)) { | |
5414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5415 | } | |
5416 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5417 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5418 | if (!SWIG_IsOK(ecode2)) { | |
5419 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5420 | } | |
5421 | arg2 = static_cast< int >(val2); | |
5422 | { | |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5424 | (arg1)->SetStyle(arg2); | |
5425 | wxPyEndAllowThreads(__tstate); | |
5426 | if (PyErr_Occurred()) SWIG_fail; | |
5427 | } | |
5428 | resultobj = SWIG_Py_Void(); | |
5429 | return resultobj; | |
5430 | fail: | |
5431 | return NULL; | |
5432 | } | |
5433 | ||
5434 | ||
5435 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5436 | PyObject *resultobj = 0; | |
5437 | wxPen *arg1 = (wxPen *) 0 ; | |
5438 | int arg2 ; | |
5439 | void *argp1 = 0 ; | |
5440 | int res1 = 0 ; | |
5441 | int val2 ; | |
5442 | int ecode2 = 0 ; | |
5443 | PyObject * obj0 = 0 ; | |
5444 | PyObject * obj1 = 0 ; | |
5445 | char * kwnames[] = { | |
5446 | (char *) "self",(char *) "width", NULL | |
5447 | }; | |
5448 | ||
5449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5451 | if (!SWIG_IsOK(res1)) { | |
5452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5453 | } | |
5454 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5455 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5456 | if (!SWIG_IsOK(ecode2)) { | |
5457 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5458 | } | |
5459 | arg2 = static_cast< int >(val2); | |
5460 | { | |
5461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5462 | (arg1)->SetWidth(arg2); | |
5463 | wxPyEndAllowThreads(__tstate); | |
5464 | if (PyErr_Occurred()) SWIG_fail; | |
5465 | } | |
5466 | resultobj = SWIG_Py_Void(); | |
5467 | return resultobj; | |
5468 | fail: | |
5469 | return NULL; | |
5470 | } | |
5471 | ||
5472 | ||
5473 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5474 | PyObject *resultobj = 0; | |
5475 | wxPen *arg1 = (wxPen *) 0 ; | |
5476 | int arg2 ; | |
5477 | wxDash *arg3 = (wxDash *) 0 ; | |
5478 | void *argp1 = 0 ; | |
5479 | int res1 = 0 ; | |
5480 | PyObject * obj0 = 0 ; | |
5481 | PyObject * obj1 = 0 ; | |
5482 | char * kwnames[] = { | |
5483 | (char *) "self",(char *) "dashes", NULL | |
5484 | }; | |
5485 | ||
5486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5488 | if (!SWIG_IsOK(res1)) { | |
5489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5490 | } | |
5491 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5492 | { | |
5493 | arg2 = PyList_Size(obj1); | |
5494 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5495 | if (arg3 == NULL) SWIG_fail; | |
5496 | } | |
5497 | { | |
5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5499 | (arg1)->SetDashes(arg2,arg3); | |
5500 | wxPyEndAllowThreads(__tstate); | |
5501 | if (PyErr_Occurred()) SWIG_fail; | |
5502 | } | |
5503 | resultobj = SWIG_Py_Void(); | |
5504 | { | |
5505 | if (arg3) delete [] arg3; | |
5506 | } | |
5507 | return resultobj; | |
5508 | fail: | |
5509 | { | |
5510 | if (arg3) delete [] arg3; | |
5511 | } | |
5512 | return NULL; | |
d55e5bfc RD |
5513 | } |
5514 | ||
5515 | ||
554f62e9 RD |
5516 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5517 | PyObject *resultobj = 0; | |
5518 | wxPen *arg1 = (wxPen *) 0 ; | |
5519 | PyObject *result = 0 ; | |
5520 | void *argp1 = 0 ; | |
5521 | int res1 = 0 ; | |
5522 | PyObject *swig_obj[1] ; | |
5523 | ||
5524 | if (!args) SWIG_fail; | |
5525 | swig_obj[0] = args; | |
5526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5527 | if (!SWIG_IsOK(res1)) { | |
5528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5529 | } | |
5530 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5531 | { | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5533 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5534 | wxPyEndAllowThreads(__tstate); | |
5535 | if (PyErr_Occurred()) SWIG_fail; | |
5536 | } | |
5537 | resultobj = result; | |
5538 | return resultobj; | |
5539 | fail: | |
5540 | return NULL; | |
5541 | } | |
5542 | ||
5543 | ||
5544 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5545 | PyObject *resultobj = 0; | |
5546 | wxPen *arg1 = (wxPen *) 0 ; | |
5547 | PyObject *arg2 = (PyObject *) 0 ; | |
5548 | PyObject *arg3 = (PyObject *) 0 ; | |
5549 | void *argp1 = 0 ; | |
5550 | int res1 = 0 ; | |
5551 | PyObject * obj0 = 0 ; | |
5552 | PyObject * obj1 = 0 ; | |
5553 | PyObject * obj2 = 0 ; | |
5554 | char * kwnames[] = { | |
5555 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5556 | }; | |
5557 | ||
5558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5560 | if (!SWIG_IsOK(res1)) { | |
5561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5562 | } | |
5563 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5564 | arg2 = obj1; | |
5565 | arg3 = obj2; | |
5566 | { | |
5567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5568 | wxPen__SetDashes(arg1,arg2,arg3); | |
5569 | wxPyEndAllowThreads(__tstate); | |
5570 | if (PyErr_Occurred()) SWIG_fail; | |
5571 | } | |
5572 | resultobj = SWIG_Py_Void(); | |
5573 | return resultobj; | |
5574 | fail: | |
5575 | return NULL; | |
d55e5bfc RD |
5576 | } |
5577 | ||
5578 | ||
554f62e9 RD |
5579 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5580 | PyObject *resultobj = 0; | |
5581 | wxPen *arg1 = (wxPen *) 0 ; | |
5582 | int result; | |
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_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5592 | } | |
5593 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5594 | { | |
5595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5596 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
5600 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5601 | return resultobj; | |
5602 | fail: | |
5603 | return NULL; | |
d55e5bfc RD |
5604 | } |
5605 | ||
5606 | ||
554f62e9 RD |
5607 | SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5608 | PyObject *resultobj = 0; | |
5609 | wxPen *arg1 = (wxPen *) 0 ; | |
5610 | wxBitmap *result = 0 ; | |
5611 | void *argp1 = 0 ; | |
5612 | int res1 = 0 ; | |
5613 | PyObject *swig_obj[1] ; | |
5614 | ||
5615 | if (!args) SWIG_fail; | |
5616 | swig_obj[0] = args; | |
5617 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5618 | if (!SWIG_IsOK(res1)) { | |
5619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5620 | } | |
5621 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5622 | { | |
5623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5624 | result = (wxBitmap *)(arg1)->GetStipple(); | |
5625 | wxPyEndAllowThreads(__tstate); | |
5626 | if (PyErr_Occurred()) SWIG_fail; | |
5627 | } | |
5628 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5629 | return resultobj; | |
5630 | fail: | |
5631 | return NULL; | |
5632 | } | |
5633 | ||
5634 | ||
5635 | SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5636 | PyObject *resultobj = 0; | |
5637 | wxPen *arg1 = (wxPen *) 0 ; | |
5638 | wxBitmap *arg2 = 0 ; | |
5639 | void *argp1 = 0 ; | |
5640 | int res1 = 0 ; | |
5641 | void *argp2 = 0 ; | |
5642 | int res2 = 0 ; | |
5643 | PyObject * obj0 = 0 ; | |
5644 | PyObject * obj1 = 0 ; | |
5645 | char * kwnames[] = { | |
5646 | (char *) "self",(char *) "stipple", NULL | |
5647 | }; | |
5648 | ||
5649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5651 | if (!SWIG_IsOK(res1)) { | |
5652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5653 | } | |
5654 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5655 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
5656 | if (!SWIG_IsOK(res2)) { | |
5657 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
5658 | } | |
5659 | if (!argp2) { | |
5660 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
5661 | } | |
5662 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5663 | { | |
5664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5665 | (arg1)->SetStipple(*arg2); | |
5666 | wxPyEndAllowThreads(__tstate); | |
5667 | if (PyErr_Occurred()) SWIG_fail; | |
5668 | } | |
5669 | resultobj = SWIG_Py_Void(); | |
5670 | return resultobj; | |
5671 | fail: | |
5672 | return NULL; | |
5673 | } | |
5674 | ||
5675 | ||
5676 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5677 | PyObject *resultobj = 0; | |
5678 | wxPen *arg1 = (wxPen *) 0 ; | |
5679 | wxPen *arg2 = (wxPen *) 0 ; | |
5680 | bool result; | |
5681 | void *argp1 = 0 ; | |
5682 | int res1 = 0 ; | |
5683 | void *argp2 = 0 ; | |
5684 | int res2 = 0 ; | |
5685 | PyObject * obj0 = 0 ; | |
5686 | PyObject * obj1 = 0 ; | |
5687 | char * kwnames[] = { | |
5688 | (char *) "self",(char *) "other", NULL | |
5689 | }; | |
5690 | ||
5691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5693 | if (!SWIG_IsOK(res1)) { | |
5694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5695 | } | |
5696 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5697 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5698 | if (!SWIG_IsOK(res2)) { | |
5699 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5700 | } | |
5701 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5702 | { | |
5703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5704 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5705 | wxPyEndAllowThreads(__tstate); | |
5706 | if (PyErr_Occurred()) SWIG_fail; | |
5707 | } | |
5708 | { | |
5709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5710 | } | |
5711 | return resultobj; | |
5712 | fail: | |
5713 | return NULL; | |
5714 | } | |
5715 | ||
5716 | ||
5717 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5718 | PyObject *resultobj = 0; | |
5719 | wxPen *arg1 = (wxPen *) 0 ; | |
5720 | wxPen *arg2 = (wxPen *) 0 ; | |
5721 | bool result; | |
5722 | void *argp1 = 0 ; | |
5723 | int res1 = 0 ; | |
5724 | void *argp2 = 0 ; | |
5725 | int res2 = 0 ; | |
5726 | PyObject * obj0 = 0 ; | |
5727 | PyObject * obj1 = 0 ; | |
5728 | char * kwnames[] = { | |
5729 | (char *) "self",(char *) "other", NULL | |
5730 | }; | |
5731 | ||
5732 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5733 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5734 | if (!SWIG_IsOK(res1)) { | |
5735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5736 | } | |
5737 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5738 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5739 | if (!SWIG_IsOK(res2)) { | |
5740 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5741 | } | |
5742 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5743 | { | |
5744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5745 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5746 | wxPyEndAllowThreads(__tstate); | |
5747 | if (PyErr_Occurred()) SWIG_fail; | |
5748 | } | |
5749 | { | |
5750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5751 | } | |
5752 | return resultobj; | |
5753 | fail: | |
5754 | return NULL; | |
d55e5bfc RD |
5755 | } |
5756 | ||
5757 | ||
554f62e9 RD |
5758 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5759 | PyObject *obj; | |
5760 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5761 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5762 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5763 | } |
5764 | ||
554f62e9 RD |
5765 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5766 | return SWIG_Python_InitShadowInstance(args); | |
5767 | } | |
d55e5bfc | 5768 | |
554f62e9 RD |
5769 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5770 | PyObject *resultobj = 0; | |
5771 | wxColour *arg1 = 0 ; | |
5772 | int arg2 = (int) wxSOLID ; | |
5773 | wxBrush *result = 0 ; | |
5774 | wxColour temp1 ; | |
5775 | int val2 ; | |
5776 | int ecode2 = 0 ; | |
5777 | PyObject * obj0 = 0 ; | |
5778 | PyObject * obj1 = 0 ; | |
5779 | char * kwnames[] = { | |
5780 | (char *) "colour",(char *) "style", NULL | |
5781 | }; | |
5782 | ||
5783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5784 | { | |
5785 | arg1 = &temp1; | |
5786 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5787 | } | |
5788 | if (obj1) { | |
5789 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5790 | if (!SWIG_IsOK(ecode2)) { | |
5791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5792 | } | |
5793 | arg2 = static_cast< int >(val2); | |
5794 | } | |
5795 | { | |
5796 | if (!wxPyCheckForApp()) SWIG_fail; | |
5797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5798 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5799 | wxPyEndAllowThreads(__tstate); | |
5800 | if (PyErr_Occurred()) SWIG_fail; | |
5801 | } | |
5802 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5803 | return resultobj; | |
5804 | fail: | |
5805 | return NULL; | |
5806 | } | |
5807 | ||
5808 | ||
5809 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5810 | PyObject *resultobj = 0; | |
5811 | wxBitmap *arg1 = 0 ; | |
5812 | wxBrush *result = 0 ; | |
5813 | void *argp1 = 0 ; | |
5814 | int res1 = 0 ; | |
5815 | PyObject * obj0 = 0 ; | |
5816 | char * kwnames[] = { | |
5817 | (char *) "stippleBitmap", NULL | |
5818 | }; | |
5819 | ||
5820 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5821 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5822 | if (!SWIG_IsOK(res1)) { | |
5823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5824 | } | |
5825 | if (!argp1) { | |
5826 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5827 | } | |
5828 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5829 | { | |
5830 | if (!wxPyCheckForApp()) SWIG_fail; | |
5831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5832 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5833 | wxPyEndAllowThreads(__tstate); | |
5834 | if (PyErr_Occurred()) SWIG_fail; | |
5835 | } | |
5836 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5837 | return resultobj; | |
5838 | fail: | |
5839 | return NULL; | |
d55e5bfc RD |
5840 | } |
5841 | ||
5842 | ||
554f62e9 RD |
5843 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5844 | PyObject *resultobj = 0; | |
5845 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5846 | void *argp1 = 0 ; | |
5847 | int res1 = 0 ; | |
5848 | PyObject *swig_obj[1] ; | |
5849 | ||
5850 | if (!args) SWIG_fail; | |
5851 | swig_obj[0] = args; | |
5852 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5853 | if (!SWIG_IsOK(res1)) { | |
5854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5855 | } | |
5856 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5857 | { | |
5858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5859 | delete arg1; | |
d55e5bfc | 5860 | |
554f62e9 RD |
5861 | wxPyEndAllowThreads(__tstate); |
5862 | if (PyErr_Occurred()) SWIG_fail; | |
5863 | } | |
5864 | resultobj = SWIG_Py_Void(); | |
5865 | return resultobj; | |
5866 | fail: | |
5867 | return NULL; | |
5868 | } | |
5869 | ||
5870 | ||
5871 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5872 | PyObject *resultobj = 0; | |
5873 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5874 | wxColour *arg2 = 0 ; | |
5875 | void *argp1 = 0 ; | |
5876 | int res1 = 0 ; | |
5877 | wxColour temp2 ; | |
5878 | PyObject * obj0 = 0 ; | |
5879 | PyObject * obj1 = 0 ; | |
5880 | char * kwnames[] = { | |
5881 | (char *) "self",(char *) "col", NULL | |
5882 | }; | |
5883 | ||
5884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5886 | if (!SWIG_IsOK(res1)) { | |
5887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5888 | } | |
5889 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5890 | { | |
5891 | arg2 = &temp2; | |
5892 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5893 | } | |
5894 | { | |
5895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5896 | (arg1)->SetColour((wxColour const &)*arg2); | |
5897 | wxPyEndAllowThreads(__tstate); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | } | |
5900 | resultobj = SWIG_Py_Void(); | |
5901 | return resultobj; | |
5902 | fail: | |
5903 | return NULL; | |
5904 | } | |
5905 | ||
5906 | ||
5907 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5908 | PyObject *resultobj = 0; | |
5909 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5910 | int arg2 ; | |
5911 | void *argp1 = 0 ; | |
5912 | int res1 = 0 ; | |
5913 | int val2 ; | |
5914 | int ecode2 = 0 ; | |
5915 | PyObject * obj0 = 0 ; | |
5916 | PyObject * obj1 = 0 ; | |
5917 | char * kwnames[] = { | |
5918 | (char *) "self",(char *) "style", NULL | |
5919 | }; | |
5920 | ||
5921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5923 | if (!SWIG_IsOK(res1)) { | |
5924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5925 | } | |
5926 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5927 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5928 | if (!SWIG_IsOK(ecode2)) { | |
5929 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5930 | } | |
5931 | arg2 = static_cast< int >(val2); | |
5932 | { | |
5933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5934 | (arg1)->SetStyle(arg2); | |
5935 | wxPyEndAllowThreads(__tstate); | |
5936 | if (PyErr_Occurred()) SWIG_fail; | |
5937 | } | |
5938 | resultobj = SWIG_Py_Void(); | |
5939 | return resultobj; | |
5940 | fail: | |
5941 | return NULL; | |
5942 | } | |
5943 | ||
5944 | ||
5945 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5946 | PyObject *resultobj = 0; | |
5947 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5948 | wxBitmap *arg2 = 0 ; | |
5949 | void *argp1 = 0 ; | |
5950 | int res1 = 0 ; | |
5951 | void *argp2 = 0 ; | |
5952 | int res2 = 0 ; | |
5953 | PyObject * obj0 = 0 ; | |
5954 | PyObject * obj1 = 0 ; | |
5955 | char * kwnames[] = { | |
5956 | (char *) "self",(char *) "stipple", NULL | |
5957 | }; | |
5958 | ||
5959 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5961 | if (!SWIG_IsOK(res1)) { | |
5962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5963 | } | |
5964 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5965 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5966 | if (!SWIG_IsOK(res2)) { | |
5967 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5968 | } | |
5969 | if (!argp2) { | |
5970 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5971 | } | |
5972 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5973 | { | |
5974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5975 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5976 | wxPyEndAllowThreads(__tstate); | |
5977 | if (PyErr_Occurred()) SWIG_fail; | |
5978 | } | |
5979 | resultobj = SWIG_Py_Void(); | |
5980 | return resultobj; | |
5981 | fail: | |
5982 | return NULL; | |
d55e5bfc RD |
5983 | } |
5984 | ||
5985 | ||
554f62e9 RD |
5986 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5987 | PyObject *resultobj = 0; | |
5988 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5989 | wxColour 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_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5999 | } | |
6000 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6001 | { | |
6002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6003 | result = ((wxBrush const *)arg1)->GetColour(); | |
6004 | wxPyEndAllowThreads(__tstate); | |
6005 | if (PyErr_Occurred()) SWIG_fail; | |
6006 | } | |
6007 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
6008 | return resultobj; | |
6009 | fail: | |
6010 | return NULL; | |
d55e5bfc RD |
6011 | } |
6012 | ||
6013 | ||
554f62e9 RD |
6014 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6015 | PyObject *resultobj = 0; | |
6016 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6017 | int result; | |
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_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6027 | } | |
6028 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6029 | { | |
6030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6031 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
6032 | wxPyEndAllowThreads(__tstate); | |
6033 | if (PyErr_Occurred()) SWIG_fail; | |
6034 | } | |
6035 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6036 | return resultobj; | |
6037 | fail: | |
6038 | return NULL; | |
d55e5bfc RD |
6039 | } |
6040 | ||
6041 | ||
554f62e9 RD |
6042 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6043 | PyObject *resultobj = 0; | |
6044 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6045 | wxBitmap *result = 0 ; | |
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_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6055 | } | |
6056 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6057 | { | |
6058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6059 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
6060 | wxPyEndAllowThreads(__tstate); | |
6061 | if (PyErr_Occurred()) SWIG_fail; | |
6062 | } | |
6063 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6064 | return resultobj; | |
6065 | fail: | |
6066 | return NULL; | |
d55e5bfc RD |
6067 | } |
6068 | ||
6069 | ||
554f62e9 RD |
6070 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6071 | PyObject *resultobj = 0; | |
6072 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6073 | bool result; | |
6074 | void *argp1 = 0 ; | |
6075 | int res1 = 0 ; | |
6076 | PyObject *swig_obj[1] ; | |
6077 | ||
6078 | if (!args) SWIG_fail; | |
6079 | swig_obj[0] = args; | |
6080 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6081 | if (!SWIG_IsOK(res1)) { | |
6082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6083 | } | |
6084 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6085 | { | |
6086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6087 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
6088 | wxPyEndAllowThreads(__tstate); | |
6089 | if (PyErr_Occurred()) SWIG_fail; | |
6090 | } | |
6091 | { | |
6092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6093 | } | |
6094 | return resultobj; | |
6095 | fail: | |
6096 | return NULL; | |
f78cc896 RD |
6097 | } |
6098 | ||
6099 | ||
b39fe951 | 6100 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
6101 | PyObject *resultobj = 0; |
6102 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6103 | bool result; | |
6104 | void *argp1 = 0 ; | |
6105 | int res1 = 0 ; | |
6106 | PyObject *swig_obj[1] ; | |
6107 | ||
6108 | if (!args) SWIG_fail; | |
6109 | swig_obj[0] = args; | |
6110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6111 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
554f62e9 RD |
6113 | } |
6114 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6115 | { | |
6116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 6117 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
6118 | wxPyEndAllowThreads(__tstate); |
6119 | if (PyErr_Occurred()) SWIG_fail; | |
6120 | } | |
6121 | { | |
6122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6123 | } | |
6124 | return resultobj; | |
6125 | fail: | |
6126 | return NULL; | |
d55e5bfc RD |
6127 | } |
6128 | ||
6129 | ||
554f62e9 RD |
6130 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6131 | PyObject *obj; | |
6132 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6133 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
6134 | return SWIG_Py_Void(); | |
d55e5bfc RD |
6135 | } |
6136 | ||
554f62e9 RD |
6137 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6138 | return SWIG_Python_InitShadowInstance(args); | |
6139 | } | |
d55e5bfc | 6140 | |
554f62e9 RD |
6141 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6142 | PyObject *resultobj = 0; | |
6143 | wxString *arg1 = 0 ; | |
6144 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
6145 | wxBitmap *result = 0 ; | |
6146 | bool temp1 = false ; | |
6147 | int val2 ; | |
6148 | int ecode2 = 0 ; | |
6149 | PyObject * obj0 = 0 ; | |
6150 | PyObject * obj1 = 0 ; | |
6151 | char * kwnames[] = { | |
6152 | (char *) "name",(char *) "type", NULL | |
6153 | }; | |
6154 | ||
6155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6156 | { | |
6157 | arg1 = wxString_in_helper(obj0); | |
6158 | if (arg1 == NULL) SWIG_fail; | |
6159 | temp1 = true; | |
6160 | } | |
6161 | if (obj1) { | |
6162 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6163 | if (!SWIG_IsOK(ecode2)) { | |
6164 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6165 | } | |
6166 | arg2 = static_cast< wxBitmapType >(val2); | |
6167 | } | |
6168 | { | |
6169 | if (!wxPyCheckForApp()) SWIG_fail; | |
6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6171 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
6172 | wxPyEndAllowThreads(__tstate); | |
6173 | if (PyErr_Occurred()) SWIG_fail; | |
6174 | } | |
6175 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
6176 | { | |
6177 | if (temp1) | |
6178 | delete arg1; | |
6179 | } | |
6180 | return resultobj; | |
6181 | fail: | |
6182 | { | |
6183 | if (temp1) | |
6184 | delete arg1; | |
6185 | } | |
6186 | return NULL; | |
d55e5bfc RD |
6187 | } |
6188 | ||
6189 | ||
554f62e9 RD |
6190 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6191 | PyObject *resultobj = 0; | |
6192 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6193 | void *argp1 = 0 ; | |
6194 | int res1 = 0 ; | |
6195 | PyObject *swig_obj[1] ; | |
6196 | ||
6197 | if (!args) SWIG_fail; | |
6198 | swig_obj[0] = args; | |
6199 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
6200 | if (!SWIG_IsOK(res1)) { | |
6201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6202 | } | |
6203 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6204 | { | |
554f62e9 | 6205 | delete arg1; |
c24da6d6 | 6206 | |
554f62e9 RD |
6207 | if (PyErr_Occurred()) SWIG_fail; |
6208 | } | |
6209 | resultobj = SWIG_Py_Void(); | |
6210 | return resultobj; | |
6211 | fail: | |
6212 | return NULL; | |
6213 | } | |
6214 | ||
6215 | ||
6216 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6217 | PyObject *resultobj = 0; | |
6218 | int arg1 ; | |
6219 | int arg2 ; | |
6220 | int arg3 = (int) -1 ; | |
6221 | wxBitmap *result = 0 ; | |
6222 | int val1 ; | |
6223 | int ecode1 = 0 ; | |
6224 | int val2 ; | |
6225 | int ecode2 = 0 ; | |
6226 | int val3 ; | |
6227 | int ecode3 = 0 ; | |
6228 | PyObject * obj0 = 0 ; | |
6229 | PyObject * obj1 = 0 ; | |
6230 | PyObject * obj2 = 0 ; | |
6231 | char * kwnames[] = { | |
6232 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
6233 | }; | |
6234 | ||
6235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6236 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6237 | if (!SWIG_IsOK(ecode1)) { | |
6238 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
6239 | } | |
6240 | arg1 = static_cast< int >(val1); | |
6241 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6242 | if (!SWIG_IsOK(ecode2)) { | |
6243 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
6244 | } | |
6245 | arg2 = static_cast< int >(val2); | |
6246 | if (obj2) { | |
6247 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6248 | if (!SWIG_IsOK(ecode3)) { | |
6249 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
6250 | } | |
6251 | arg3 = static_cast< int >(val3); | |
6252 | } | |
6253 | { | |
6254 | if (!wxPyCheckForApp()) SWIG_fail; | |
6255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6256 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
6257 | wxPyEndAllowThreads(__tstate); | |
6258 | if (PyErr_Occurred()) SWIG_fail; | |
6259 | } | |
6260 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6261 | return resultobj; | |
6262 | fail: | |
6263 | return NULL; | |
6264 | } | |
6265 | ||
6266 | ||
6267 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6268 | PyObject *resultobj = 0; | |
6269 | wxIcon *arg1 = 0 ; | |
6270 | wxBitmap *result = 0 ; | |
6271 | void *argp1 = 0 ; | |
6272 | int res1 = 0 ; | |
6273 | PyObject * obj0 = 0 ; | |
6274 | char * kwnames[] = { | |
6275 | (char *) "icon", NULL | |
6276 | }; | |
6277 | ||
6278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6279 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6280 | if (!SWIG_IsOK(res1)) { | |
6281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6282 | } | |
6283 | if (!argp1) { | |
6284 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6285 | } | |
6286 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6287 | { | |
6288 | if (!wxPyCheckForApp()) SWIG_fail; | |
6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6290 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6291 | wxPyEndAllowThreads(__tstate); | |
6292 | if (PyErr_Occurred()) SWIG_fail; | |
6293 | } | |
6294 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6295 | return resultobj; | |
6296 | fail: | |
6297 | return NULL; | |
6298 | } | |
6299 | ||
6300 | ||
6301 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6302 | PyObject *resultobj = 0; | |
6303 | wxImage *arg1 = 0 ; | |
6304 | int arg2 = (int) -1 ; | |
6305 | wxBitmap *result = 0 ; | |
6306 | void *argp1 = 0 ; | |
6307 | int res1 = 0 ; | |
6308 | int val2 ; | |
6309 | int ecode2 = 0 ; | |
6310 | PyObject * obj0 = 0 ; | |
6311 | PyObject * obj1 = 0 ; | |
6312 | char * kwnames[] = { | |
6313 | (char *) "image",(char *) "depth", NULL | |
6314 | }; | |
6315 | ||
6316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6317 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6318 | if (!SWIG_IsOK(res1)) { | |
6319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6320 | } | |
6321 | if (!argp1) { | |
6322 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6323 | } | |
6324 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6325 | if (obj1) { | |
6326 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6327 | if (!SWIG_IsOK(ecode2)) { | |
6328 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6329 | } | |
6330 | arg2 = static_cast< int >(val2); | |
6331 | } | |
6332 | { | |
6333 | if (!wxPyCheckForApp()) SWIG_fail; | |
6334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6335 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6336 | wxPyEndAllowThreads(__tstate); | |
6337 | if (PyErr_Occurred()) SWIG_fail; | |
6338 | } | |
6339 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6340 | return resultobj; | |
6341 | fail: | |
6342 | return NULL; | |
c24da6d6 RD |
6343 | } |
6344 | ||
6345 | ||
554f62e9 RD |
6346 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6347 | PyObject *resultobj = 0; | |
6348 | PyObject *arg1 = (PyObject *) 0 ; | |
6349 | wxBitmap *result = 0 ; | |
6350 | PyObject * obj0 = 0 ; | |
6351 | char * kwnames[] = { | |
6352 | (char *) "listOfStrings", NULL | |
6353 | }; | |
6354 | ||
6355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6356 | arg1 = obj0; | |
6357 | { | |
6358 | if (!wxPyCheckForApp()) SWIG_fail; | |
6359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6360 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6361 | wxPyEndAllowThreads(__tstate); | |
6362 | if (PyErr_Occurred()) SWIG_fail; | |
6363 | } | |
6364 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6365 | return resultobj; | |
6366 | fail: | |
6367 | return NULL; | |
6368 | } | |
6369 | ||
6370 | ||
6371 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6372 | PyObject *resultobj = 0; | |
6373 | PyObject *arg1 = (PyObject *) 0 ; | |
6374 | int arg2 ; | |
6375 | int arg3 ; | |
6376 | int arg4 = (int) 1 ; | |
6377 | wxBitmap *result = 0 ; | |
6378 | int val2 ; | |
6379 | int ecode2 = 0 ; | |
6380 | int val3 ; | |
6381 | int ecode3 = 0 ; | |
6382 | int val4 ; | |
6383 | int ecode4 = 0 ; | |
6384 | PyObject * obj0 = 0 ; | |
6385 | PyObject * obj1 = 0 ; | |
6386 | PyObject * obj2 = 0 ; | |
6387 | PyObject * obj3 = 0 ; | |
6388 | char * kwnames[] = { | |
6389 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6390 | }; | |
6391 | ||
6392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6393 | arg1 = obj0; | |
6394 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6395 | if (!SWIG_IsOK(ecode2)) { | |
6396 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6397 | } | |
6398 | arg2 = static_cast< int >(val2); | |
6399 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6400 | if (!SWIG_IsOK(ecode3)) { | |
6401 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6402 | } | |
6403 | arg3 = static_cast< int >(val3); | |
6404 | if (obj3) { | |
6405 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6406 | if (!SWIG_IsOK(ecode4)) { | |
6407 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6408 | } | |
6409 | arg4 = static_cast< int >(val4); | |
6410 | } | |
6411 | { | |
6412 | if (!wxPyCheckForApp()) SWIG_fail; | |
6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6414 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6415 | wxPyEndAllowThreads(__tstate); | |
6416 | if (PyErr_Occurred()) SWIG_fail; | |
6417 | } | |
6418 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6419 | return resultobj; | |
6420 | fail: | |
6421 | return NULL; | |
d55e5bfc RD |
6422 | } |
6423 | ||
6424 | ||
554f62e9 RD |
6425 | SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6426 | PyObject *resultobj = 0; | |
6427 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6428 | long result; | |
6429 | void *argp1 = 0 ; | |
6430 | int res1 = 0 ; | |
6431 | PyObject *swig_obj[1] ; | |
6432 | ||
6433 | if (!args) SWIG_fail; | |
6434 | swig_obj[0] = args; | |
6435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6436 | if (!SWIG_IsOK(res1)) { | |
6437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6438 | } | |
6439 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6440 | { | |
554f62e9 | 6441 | result = (long)(arg1)->GetHandle(); |
554f62e9 RD |
6442 | if (PyErr_Occurred()) SWIG_fail; |
6443 | } | |
6444 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6445 | return resultobj; | |
6446 | fail: | |
6447 | return NULL; | |
6448 | } | |
6449 | ||
6450 | ||
6451 | SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6452 | PyObject *resultobj = 0; | |
6453 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6454 | long arg2 ; | |
6455 | void *argp1 = 0 ; | |
6456 | int res1 = 0 ; | |
6457 | long val2 ; | |
6458 | int ecode2 = 0 ; | |
6459 | PyObject * obj0 = 0 ; | |
6460 | PyObject * obj1 = 0 ; | |
6461 | char * kwnames[] = { | |
6462 | (char *) "self",(char *) "handle", NULL | |
6463 | }; | |
6464 | ||
6465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
6466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6467 | if (!SWIG_IsOK(res1)) { | |
6468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6469 | } | |
6470 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6471 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6472 | if (!SWIG_IsOK(ecode2)) { | |
6473 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
6474 | } | |
6475 | arg2 = static_cast< long >(val2); | |
6476 | { | |
554f62e9 | 6477 | wxBitmap_SetHandle(arg1,arg2); |
554f62e9 RD |
6478 | if (PyErr_Occurred()) SWIG_fail; |
6479 | } | |
6480 | resultobj = SWIG_Py_Void(); | |
6481 | return resultobj; | |
6482 | fail: | |
6483 | return NULL; | |
d55e5bfc RD |
6484 | } |
6485 | ||
6486 | ||
b39fe951 | 6487 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
6488 | PyObject *resultobj = 0; |
6489 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6490 | bool 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)) { | |
b39fe951 | 6499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
554f62e9 RD |
6500 | } |
6501 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6502 | { | |
b39fe951 | 6503 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
6504 | if (PyErr_Occurred()) SWIG_fail; |
6505 | } | |
6506 | { | |
6507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6508 | } | |
6509 | return resultobj; | |
6510 | fail: | |
6511 | return NULL; | |
d55e5bfc RD |
6512 | } |
6513 | ||
6514 | ||
554f62e9 RD |
6515 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6516 | PyObject *resultobj = 0; | |
6517 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6518 | int result; | |
6519 | void *argp1 = 0 ; | |
6520 | int res1 = 0 ; | |
6521 | PyObject *swig_obj[1] ; | |
6522 | ||
6523 | if (!args) SWIG_fail; | |
6524 | swig_obj[0] = args; | |
6525 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6526 | if (!SWIG_IsOK(res1)) { | |
6527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6528 | } | |
6529 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6530 | { | |
554f62e9 | 6531 | result = (int)(arg1)->GetWidth(); |
554f62e9 RD |
6532 | if (PyErr_Occurred()) SWIG_fail; |
6533 | } | |
6534 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6535 | return resultobj; | |
6536 | fail: | |
6537 | return NULL; | |
d55e5bfc RD |
6538 | } |
6539 | ||
6540 | ||
554f62e9 RD |
6541 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6542 | PyObject *resultobj = 0; | |
6543 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6544 | int result; | |
6545 | void *argp1 = 0 ; | |
6546 | int res1 = 0 ; | |
6547 | PyObject *swig_obj[1] ; | |
6548 | ||
6549 | if (!args) SWIG_fail; | |
6550 | swig_obj[0] = args; | |
6551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6552 | if (!SWIG_IsOK(res1)) { | |
6553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6554 | } | |
6555 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6556 | { | |
554f62e9 | 6557 | result = (int)(arg1)->GetHeight(); |
554f62e9 RD |
6558 | if (PyErr_Occurred()) SWIG_fail; |
6559 | } | |
6560 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6561 | return resultobj; | |
6562 | fail: | |
6563 | return NULL; | |
c24da6d6 RD |
6564 | } |
6565 | ||
6566 | ||
554f62e9 RD |
6567 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6568 | PyObject *resultobj = 0; | |
6569 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6570 | int result; | |
6571 | void *argp1 = 0 ; | |
6572 | int res1 = 0 ; | |
6573 | PyObject *swig_obj[1] ; | |
6574 | ||
6575 | if (!args) SWIG_fail; | |
6576 | swig_obj[0] = args; | |
6577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6578 | if (!SWIG_IsOK(res1)) { | |
6579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6580 | } | |
6581 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6582 | { | |
554f62e9 | 6583 | result = (int)(arg1)->GetDepth(); |
554f62e9 RD |
6584 | if (PyErr_Occurred()) SWIG_fail; |
6585 | } | |
6586 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6587 | return resultobj; | |
6588 | fail: | |
6589 | return NULL; | |
d55e5bfc RD |
6590 | } |
6591 | ||
6592 | ||
554f62e9 RD |
6593 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6594 | PyObject *resultobj = 0; | |
6595 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6596 | wxSize result; | |
6597 | void *argp1 = 0 ; | |
6598 | int res1 = 0 ; | |
6599 | PyObject *swig_obj[1] ; | |
6600 | ||
6601 | if (!args) SWIG_fail; | |
6602 | swig_obj[0] = args; | |
6603 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6604 | if (!SWIG_IsOK(res1)) { | |
6605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6606 | } | |
6607 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6608 | { | |
554f62e9 | 6609 | result = wxBitmap_GetSize(arg1); |
554f62e9 RD |
6610 | if (PyErr_Occurred()) SWIG_fail; |
6611 | } | |
6612 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6613 | return resultobj; | |
6614 | fail: | |
6615 | return NULL; | |
d55e5bfc RD |
6616 | } |
6617 | ||
6618 | ||
554f62e9 RD |
6619 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6620 | PyObject *resultobj = 0; | |
6621 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6622 | SwigValueWrapper<wxImage > result; | |
6623 | void *argp1 = 0 ; | |
6624 | int res1 = 0 ; | |
6625 | PyObject *swig_obj[1] ; | |
6626 | ||
6627 | if (!args) SWIG_fail; | |
6628 | swig_obj[0] = args; | |
6629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6630 | if (!SWIG_IsOK(res1)) { | |
6631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6632 | } | |
6633 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6634 | { | |
554f62e9 | 6635 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
554f62e9 RD |
6636 | if (PyErr_Occurred()) SWIG_fail; |
6637 | } | |
6638 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
d55e5bfc RD |
6642 | } |
6643 | ||
6644 | ||
554f62e9 RD |
6645 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6646 | PyObject *resultobj = 0; | |
6647 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6648 | wxMask *result = 0 ; | |
6649 | void *argp1 = 0 ; | |
6650 | int res1 = 0 ; | |
6651 | PyObject *swig_obj[1] ; | |
6652 | ||
6653 | if (!args) SWIG_fail; | |
6654 | swig_obj[0] = args; | |
6655 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6656 | if (!SWIG_IsOK(res1)) { | |
6657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6658 | } | |
6659 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6660 | { | |
554f62e9 | 6661 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
554f62e9 RD |
6662 | if (PyErr_Occurred()) SWIG_fail; |
6663 | } | |
6664 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6665 | return resultobj; | |
6666 | fail: | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
6671 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6672 | PyObject *resultobj = 0; | |
6673 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6674 | wxMask *arg2 = (wxMask *) 0 ; | |
6675 | void *argp1 = 0 ; | |
6676 | int res1 = 0 ; | |
6677 | int res2 = 0 ; | |
6678 | PyObject * obj0 = 0 ; | |
6679 | PyObject * obj1 = 0 ; | |
6680 | char * kwnames[] = { | |
6681 | (char *) "self",(char *) "mask", NULL | |
6682 | }; | |
6683 | ||
6684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6686 | if (!SWIG_IsOK(res1)) { | |
6687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6688 | } | |
6689 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6690 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6691 | if (!SWIG_IsOK(res2)) { | |
6692 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6693 | } | |
6694 | { | |
554f62e9 | 6695 | (arg1)->SetMask(arg2); |
554f62e9 RD |
6696 | if (PyErr_Occurred()) SWIG_fail; |
6697 | } | |
6698 | resultobj = SWIG_Py_Void(); | |
6699 | return resultobj; | |
6700 | fail: | |
6701 | return NULL; | |
6702 | } | |
6703 | ||
6704 | ||
6705 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6706 | PyObject *resultobj = 0; | |
6707 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6708 | wxColour *arg2 = 0 ; | |
6709 | void *argp1 = 0 ; | |
6710 | int res1 = 0 ; | |
6711 | wxColour temp2 ; | |
6712 | PyObject * obj0 = 0 ; | |
6713 | PyObject * obj1 = 0 ; | |
6714 | char * kwnames[] = { | |
6715 | (char *) "self",(char *) "colour", NULL | |
6716 | }; | |
6717 | ||
6718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6720 | if (!SWIG_IsOK(res1)) { | |
6721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6722 | } | |
6723 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6724 | { | |
6725 | arg2 = &temp2; | |
6726 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6727 | } | |
6728 | { | |
554f62e9 | 6729 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
554f62e9 RD |
6730 | if (PyErr_Occurred()) SWIG_fail; |
6731 | } | |
6732 | resultobj = SWIG_Py_Void(); | |
6733 | return resultobj; | |
6734 | fail: | |
6735 | return NULL; | |
6736 | } | |
6737 | ||
6738 | ||
6739 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6740 | PyObject *resultobj = 0; | |
6741 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6742 | wxRect *arg2 = 0 ; | |
6743 | SwigValueWrapper<wxBitmap > result; | |
6744 | void *argp1 = 0 ; | |
6745 | int res1 = 0 ; | |
6746 | wxRect temp2 ; | |
6747 | PyObject * obj0 = 0 ; | |
6748 | PyObject * obj1 = 0 ; | |
6749 | char * kwnames[] = { | |
6750 | (char *) "self",(char *) "rect", NULL | |
6751 | }; | |
6752 | ||
6753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6755 | if (!SWIG_IsOK(res1)) { | |
6756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6757 | } | |
6758 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6759 | { | |
6760 | arg2 = &temp2; | |
6761 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6762 | } | |
6763 | { | |
554f62e9 | 6764 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
554f62e9 RD |
6765 | if (PyErr_Occurred()) SWIG_fail; |
6766 | } | |
6767 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6768 | return resultobj; | |
6769 | fail: | |
6770 | return NULL; | |
6771 | } | |
6772 | ||
6773 | ||
6774 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6775 | PyObject *resultobj = 0; | |
6776 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6777 | wxString *arg2 = 0 ; | |
6778 | wxBitmapType arg3 ; | |
6779 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6780 | bool result; | |
6781 | void *argp1 = 0 ; | |
6782 | int res1 = 0 ; | |
6783 | bool temp2 = false ; | |
6784 | int val3 ; | |
6785 | int ecode3 = 0 ; | |
6786 | void *argp4 = 0 ; | |
6787 | int res4 = 0 ; | |
6788 | PyObject * obj0 = 0 ; | |
6789 | PyObject * obj1 = 0 ; | |
6790 | PyObject * obj2 = 0 ; | |
6791 | PyObject * obj3 = 0 ; | |
6792 | char * kwnames[] = { | |
6793 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6794 | }; | |
6795 | ||
6796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6798 | if (!SWIG_IsOK(res1)) { | |
6799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6800 | } | |
6801 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6802 | { | |
6803 | arg2 = wxString_in_helper(obj1); | |
6804 | if (arg2 == NULL) SWIG_fail; | |
6805 | temp2 = true; | |
6806 | } | |
6807 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6808 | if (!SWIG_IsOK(ecode3)) { | |
6809 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6810 | } | |
6811 | arg3 = static_cast< wxBitmapType >(val3); | |
6812 | if (obj3) { | |
6813 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6814 | if (!SWIG_IsOK(res4)) { | |
6815 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6816 | } |
554f62e9 RD |
6817 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6818 | } | |
6819 | { | |
554f62e9 | 6820 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
554f62e9 RD |
6821 | if (PyErr_Occurred()) SWIG_fail; |
6822 | } | |
6823 | { | |
6824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6825 | } | |
6826 | { | |
6827 | if (temp2) | |
6828 | delete arg2; | |
6829 | } | |
6830 | return resultobj; | |
6831 | fail: | |
6832 | { | |
6833 | if (temp2) | |
6834 | delete arg2; | |
6835 | } | |
6836 | return NULL; | |
6837 | } | |
6838 | ||
6839 | ||
6840 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6841 | PyObject *resultobj = 0; | |
6842 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6843 | wxString *arg2 = 0 ; | |
6844 | wxBitmapType arg3 ; | |
6845 | bool result; | |
6846 | void *argp1 = 0 ; | |
6847 | int res1 = 0 ; | |
6848 | bool temp2 = false ; | |
6849 | int val3 ; | |
6850 | int ecode3 = 0 ; | |
6851 | PyObject * obj0 = 0 ; | |
6852 | PyObject * obj1 = 0 ; | |
6853 | PyObject * obj2 = 0 ; | |
6854 | char * kwnames[] = { | |
6855 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6856 | }; | |
6857 | ||
6858 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6859 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6860 | if (!SWIG_IsOK(res1)) { | |
6861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6862 | } | |
6863 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6864 | { | |
6865 | arg2 = wxString_in_helper(obj1); | |
6866 | if (arg2 == NULL) SWIG_fail; | |
6867 | temp2 = true; | |
6868 | } | |
6869 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6870 | if (!SWIG_IsOK(ecode3)) { | |
6871 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6872 | } | |
6873 | arg3 = static_cast< wxBitmapType >(val3); | |
6874 | { | |
554f62e9 | 6875 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
554f62e9 RD |
6876 | if (PyErr_Occurred()) SWIG_fail; |
6877 | } | |
6878 | { | |
6879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6880 | } | |
6881 | { | |
6882 | if (temp2) | |
6883 | delete arg2; | |
6884 | } | |
6885 | return resultobj; | |
6886 | fail: | |
6887 | { | |
6888 | if (temp2) | |
6889 | delete arg2; | |
6890 | } | |
6891 | return NULL; | |
d04418a7 RD |
6892 | } |
6893 | ||
6894 | ||
554f62e9 RD |
6895 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6896 | PyObject *resultobj = 0; | |
6897 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6898 | wxPalette *result = 0 ; | |
6899 | void *argp1 = 0 ; | |
6900 | int res1 = 0 ; | |
6901 | PyObject *swig_obj[1] ; | |
6902 | ||
6903 | if (!args) SWIG_fail; | |
6904 | swig_obj[0] = args; | |
6905 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6906 | if (!SWIG_IsOK(res1)) { | |
6907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6908 | } | |
6909 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6910 | { | |
554f62e9 | 6911 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
554f62e9 RD |
6912 | if (PyErr_Occurred()) SWIG_fail; |
6913 | } | |
6914 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6915 | return resultobj; | |
6916 | fail: | |
6917 | return NULL; | |
6918 | } | |
6919 | ||
6920 | ||
6921 | SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6922 | PyObject *resultobj = 0; | |
6923 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6924 | wxPalette *arg2 = 0 ; | |
6925 | void *argp1 = 0 ; | |
6926 | int res1 = 0 ; | |
6927 | void *argp2 = 0 ; | |
6928 | int res2 = 0 ; | |
6929 | PyObject * obj0 = 0 ; | |
6930 | PyObject * obj1 = 0 ; | |
6931 | char * kwnames[] = { | |
6932 | (char *) "self",(char *) "palette", NULL | |
6933 | }; | |
6934 | ||
6935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
6936 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6937 | if (!SWIG_IsOK(res1)) { | |
6938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6939 | } | |
6940 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6941 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
6942 | if (!SWIG_IsOK(res2)) { | |
6943 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6944 | } | |
6945 | if (!argp2) { | |
6946 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6947 | } | |
6948 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
6949 | { | |
554f62e9 | 6950 | (arg1)->SetPalette((wxPalette const &)*arg2); |
554f62e9 RD |
6951 | if (PyErr_Occurred()) SWIG_fail; |
6952 | } | |
6953 | resultobj = SWIG_Py_Void(); | |
6954 | return resultobj; | |
6955 | fail: | |
6956 | return NULL; | |
6957 | } | |
6958 | ||
6959 | ||
6960 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6961 | PyObject *resultobj = 0; | |
6962 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6963 | wxIcon *arg2 = 0 ; | |
6964 | bool result; | |
6965 | void *argp1 = 0 ; | |
6966 | int res1 = 0 ; | |
6967 | void *argp2 = 0 ; | |
6968 | int res2 = 0 ; | |
6969 | PyObject * obj0 = 0 ; | |
6970 | PyObject * obj1 = 0 ; | |
6971 | char * kwnames[] = { | |
6972 | (char *) "self",(char *) "icon", NULL | |
6973 | }; | |
6974 | ||
6975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6977 | if (!SWIG_IsOK(res1)) { | |
6978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6979 | } | |
6980 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6981 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6982 | if (!SWIG_IsOK(res2)) { | |
6983 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6984 | } | |
6985 | if (!argp2) { | |
6986 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6987 | } | |
6988 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6989 | { | |
554f62e9 | 6990 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
554f62e9 RD |
6991 | if (PyErr_Occurred()) SWIG_fail; |
6992 | } | |
6993 | { | |
6994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6995 | } | |
6996 | return resultobj; | |
6997 | fail: | |
6998 | return NULL; | |
6999 | } | |
7000 | ||
7001 | ||
7002 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7003 | PyObject *resultobj = 0; | |
7004 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7005 | int arg2 ; | |
7006 | void *argp1 = 0 ; | |
7007 | int res1 = 0 ; | |
7008 | int val2 ; | |
7009 | int ecode2 = 0 ; | |
7010 | PyObject * obj0 = 0 ; | |
7011 | PyObject * obj1 = 0 ; | |
7012 | char * kwnames[] = { | |
7013 | (char *) "self",(char *) "height", NULL | |
7014 | }; | |
7015 | ||
7016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
7017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7018 | if (!SWIG_IsOK(res1)) { | |
7019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7020 | } | |
7021 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7022 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7023 | if (!SWIG_IsOK(ecode2)) { | |
7024 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
7025 | } | |
7026 | arg2 = static_cast< int >(val2); | |
7027 | { | |
554f62e9 | 7028 | (arg1)->SetHeight(arg2); |
554f62e9 RD |
7029 | if (PyErr_Occurred()) SWIG_fail; |
7030 | } | |
7031 | resultobj = SWIG_Py_Void(); | |
7032 | return resultobj; | |
7033 | fail: | |
7034 | return NULL; | |
7035 | } | |
7036 | ||
7037 | ||
7038 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7039 | PyObject *resultobj = 0; | |
7040 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7041 | int arg2 ; | |
7042 | void *argp1 = 0 ; | |
7043 | int res1 = 0 ; | |
7044 | int val2 ; | |
7045 | int ecode2 = 0 ; | |
7046 | PyObject * obj0 = 0 ; | |
7047 | PyObject * obj1 = 0 ; | |
7048 | char * kwnames[] = { | |
7049 | (char *) "self",(char *) "width", NULL | |
7050 | }; | |
7051 | ||
7052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7054 | if (!SWIG_IsOK(res1)) { | |
7055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7056 | } | |
7057 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7058 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7059 | if (!SWIG_IsOK(ecode2)) { | |
7060 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
7061 | } | |
7062 | arg2 = static_cast< int >(val2); | |
7063 | { | |
554f62e9 | 7064 | (arg1)->SetWidth(arg2); |
554f62e9 RD |
7065 | if (PyErr_Occurred()) SWIG_fail; |
7066 | } | |
7067 | resultobj = SWIG_Py_Void(); | |
7068 | return resultobj; | |
7069 | fail: | |
7070 | return NULL; | |
7071 | } | |
7072 | ||
7073 | ||
7074 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7075 | PyObject *resultobj = 0; | |
7076 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7077 | int arg2 ; | |
7078 | void *argp1 = 0 ; | |
7079 | int res1 = 0 ; | |
7080 | int val2 ; | |
7081 | int ecode2 = 0 ; | |
7082 | PyObject * obj0 = 0 ; | |
7083 | PyObject * obj1 = 0 ; | |
7084 | char * kwnames[] = { | |
7085 | (char *) "self",(char *) "depth", NULL | |
7086 | }; | |
7087 | ||
7088 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7089 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7090 | if (!SWIG_IsOK(res1)) { | |
7091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7092 | } | |
7093 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7094 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7095 | if (!SWIG_IsOK(ecode2)) { | |
7096 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
7097 | } | |
7098 | arg2 = static_cast< int >(val2); | |
7099 | { | |
554f62e9 | 7100 | (arg1)->SetDepth(arg2); |
554f62e9 RD |
7101 | if (PyErr_Occurred()) SWIG_fail; |
7102 | } | |
7103 | resultobj = SWIG_Py_Void(); | |
7104 | return resultobj; | |
7105 | fail: | |
7106 | return NULL; | |
7107 | } | |
7108 | ||
7109 | ||
7110 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7111 | PyObject *resultobj = 0; | |
7112 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7113 | wxSize *arg2 = 0 ; | |
7114 | void *argp1 = 0 ; | |
7115 | int res1 = 0 ; | |
7116 | wxSize temp2 ; | |
7117 | PyObject * obj0 = 0 ; | |
7118 | PyObject * obj1 = 0 ; | |
7119 | char * kwnames[] = { | |
7120 | (char *) "self",(char *) "size", NULL | |
7121 | }; | |
7122 | ||
7123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
7124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7125 | if (!SWIG_IsOK(res1)) { | |
7126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7127 | } | |
7128 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7129 | { | |
7130 | arg2 = &temp2; | |
7131 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7132 | } | |
7133 | { | |
554f62e9 | 7134 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
554f62e9 RD |
7135 | if (PyErr_Occurred()) SWIG_fail; |
7136 | } | |
7137 | resultobj = SWIG_Py_Void(); | |
7138 | return resultobj; | |
7139 | fail: | |
7140 | return NULL; | |
7141 | } | |
7142 | ||
7143 | ||
7144 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7145 | PyObject *resultobj = 0; | |
7146 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7147 | wxCursor *arg2 = 0 ; | |
7148 | bool result; | |
7149 | void *argp1 = 0 ; | |
7150 | int res1 = 0 ; | |
7151 | void *argp2 = 0 ; | |
7152 | int res2 = 0 ; | |
7153 | PyObject * obj0 = 0 ; | |
7154 | PyObject * obj1 = 0 ; | |
7155 | char * kwnames[] = { | |
7156 | (char *) "self",(char *) "cursor", NULL | |
7157 | }; | |
7158 | ||
7159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail; | |
7160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7161 | if (!SWIG_IsOK(res1)) { | |
7162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7163 | } | |
7164 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7165 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
7166 | if (!SWIG_IsOK(res2)) { | |
7167 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
7168 | } | |
7169 | if (!argp2) { | |
7170 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
7171 | } | |
7172 | arg2 = reinterpret_cast< wxCursor * >(argp2); | |
7173 | { | |
554f62e9 | 7174 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); |
554f62e9 RD |
7175 | if (PyErr_Occurred()) SWIG_fail; |
7176 | } | |
7177 | { | |
7178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7179 | } | |
7180 | return resultobj; | |
7181 | fail: | |
7182 | return NULL; | |
7183 | } | |
7184 | ||
7185 | ||
8f514ab4 RD |
7186 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7187 | PyObject *resultobj = 0; | |
7188 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7189 | buffer arg2 ; | |
7190 | int arg3 ; | |
7191 | void *argp1 = 0 ; | |
7192 | int res1 = 0 ; | |
7193 | Py_ssize_t temp2 ; | |
7194 | PyObject * obj0 = 0 ; | |
7195 | PyObject * obj1 = 0 ; | |
7196 | char * kwnames[] = { | |
7197 | (char *) "self",(char *) "data", NULL | |
7198 | }; | |
7199 | ||
7200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7202 | if (!SWIG_IsOK(res1)) { | |
7203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7204 | } | |
7205 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7206 | { | |
7207 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7208 | arg3 = (int)temp2; | |
7209 | } | |
7210 | { | |
7211 | wxBitmap_CopyFromBuffer(arg1,arg2,arg3); | |
7212 | if (PyErr_Occurred()) SWIG_fail; | |
7213 | } | |
7214 | resultobj = SWIG_Py_Void(); | |
7215 | return resultobj; | |
7216 | fail: | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
7221 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7222 | PyObject *resultobj = 0; | |
7223 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7224 | buffer arg2 ; | |
7225 | int arg3 ; | |
7226 | void *argp1 = 0 ; | |
7227 | int res1 = 0 ; | |
7228 | Py_ssize_t temp2 ; | |
7229 | PyObject * obj0 = 0 ; | |
7230 | PyObject * obj1 = 0 ; | |
7231 | char * kwnames[] = { | |
7232 | (char *) "self",(char *) "data", NULL | |
7233 | }; | |
7234 | ||
7235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail; | |
7236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7237 | if (!SWIG_IsOK(res1)) { | |
7238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7239 | } | |
7240 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7241 | { | |
7242 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7243 | arg3 = (int)temp2; | |
7244 | } | |
7245 | { | |
7246 | wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3); | |
7247 | if (PyErr_Occurred()) SWIG_fail; | |
7248 | } | |
7249 | resultobj = SWIG_Py_Void(); | |
7250 | return resultobj; | |
7251 | fail: | |
7252 | return NULL; | |
7253 | } | |
7254 | ||
7255 | ||
554f62e9 RD |
7256 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7257 | PyObject *resultobj = 0; | |
7258 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7259 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7260 | bool result; | |
7261 | void *argp1 = 0 ; | |
7262 | int res1 = 0 ; | |
7263 | void *argp2 = 0 ; | |
7264 | int res2 = 0 ; | |
7265 | PyObject * obj0 = 0 ; | |
7266 | PyObject * obj1 = 0 ; | |
7267 | char * kwnames[] = { | |
7268 | (char *) "self",(char *) "other", NULL | |
7269 | }; | |
7270 | ||
7271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7273 | if (!SWIG_IsOK(res1)) { | |
7274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7275 | } | |
7276 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7277 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7278 | if (!SWIG_IsOK(res2)) { | |
7279 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7280 | } | |
7281 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7282 | { | |
554f62e9 | 7283 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
554f62e9 RD |
7284 | if (PyErr_Occurred()) SWIG_fail; |
7285 | } | |
7286 | { | |
fc46b7f3 RD |
7287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7288 | } | |
7289 | return resultobj; | |
7290 | fail: | |
7291 | return NULL; | |
7292 | } | |
7293 | ||
7294 | ||
7295 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7296 | PyObject *resultobj = 0; | |
7297 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7298 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7299 | bool result; | |
7300 | void *argp1 = 0 ; | |
7301 | int res1 = 0 ; | |
7302 | void *argp2 = 0 ; | |
7303 | int res2 = 0 ; | |
7304 | PyObject * obj0 = 0 ; | |
7305 | PyObject * obj1 = 0 ; | |
7306 | char * kwnames[] = { | |
7307 | (char *) "self",(char *) "other", NULL | |
7308 | }; | |
7309 | ||
7310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7312 | if (!SWIG_IsOK(res1)) { | |
7313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7314 | } | |
7315 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7316 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7317 | if (!SWIG_IsOK(res2)) { | |
7318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7319 | } | |
7320 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7321 | { | |
7322 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
7323 | if (PyErr_Occurred()) SWIG_fail; | |
7324 | } | |
7325 | { | |
7326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7327 | } | |
7328 | return resultobj; | |
7329 | fail: | |
7330 | return NULL; | |
7331 | } | |
7332 | ||
7333 | ||
7334 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7335 | PyObject *obj; | |
7336 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7337 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
7338 | return SWIG_Py_Void(); | |
7339 | } | |
7340 | ||
7341 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7342 | return SWIG_Python_InitShadowInstance(args); | |
7343 | } | |
7344 | ||
7345 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7346 | PyObject *resultobj = 0; | |
7347 | int arg1 ; | |
7348 | int arg2 ; | |
7349 | buffer arg3 ; | |
7350 | int arg4 ; | |
7351 | buffer arg5 ; | |
7352 | int arg6 ; | |
7353 | wxBitmap *result = 0 ; | |
7354 | int val1 ; | |
7355 | int ecode1 = 0 ; | |
7356 | int val2 ; | |
7357 | int ecode2 = 0 ; | |
e46e7e0d RD |
7358 | Py_ssize_t temp3 ; |
7359 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
7360 | PyObject * obj0 = 0 ; |
7361 | PyObject * obj1 = 0 ; | |
7362 | PyObject * obj2 = 0 ; | |
7363 | PyObject * obj3 = 0 ; | |
7364 | char * kwnames[] = { | |
7365 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7366 | }; | |
7367 | ||
7368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7369 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7370 | if (!SWIG_IsOK(ecode1)) { | |
7371 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7372 | } | |
7373 | arg1 = static_cast< int >(val1); | |
7374 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7375 | if (!SWIG_IsOK(ecode2)) { | |
7376 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7377 | } | |
7378 | arg2 = static_cast< int >(val2); | |
7379 | { | |
e46e7e0d RD |
7380 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7381 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7382 | } |
7383 | { | |
7384 | if (obj3 != Py_None) { | |
e46e7e0d RD |
7385 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7386 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7387 | } |
7388 | } | |
7389 | { | |
7390 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7391 | if (PyErr_Occurred()) SWIG_fail; | |
7392 | } | |
7393 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7394 | return resultobj; | |
7395 | fail: | |
7396 | return NULL; | |
7397 | } | |
7398 | ||
7399 | ||
7400 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7401 | PyObject *resultobj = 0; | |
7402 | int arg1 ; | |
7403 | int arg2 ; | |
7404 | buffer arg3 ; | |
7405 | int arg4 ; | |
7406 | wxBitmap *result = 0 ; | |
7407 | int val1 ; | |
7408 | int ecode1 = 0 ; | |
7409 | int val2 ; | |
7410 | int ecode2 = 0 ; | |
e46e7e0d | 7411 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7412 | PyObject * obj0 = 0 ; |
7413 | PyObject * obj1 = 0 ; | |
7414 | PyObject * obj2 = 0 ; | |
7415 | char * kwnames[] = { | |
7416 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7417 | }; | |
7418 | ||
7419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7420 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7421 | if (!SWIG_IsOK(ecode1)) { | |
7422 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7423 | } | |
7424 | arg1 = static_cast< int >(val1); | |
7425 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7426 | if (!SWIG_IsOK(ecode2)) { | |
7427 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7428 | } | |
7429 | arg2 = static_cast< int >(val2); | |
7430 | { | |
e46e7e0d RD |
7431 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7432 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7433 | } |
7434 | { | |
7435 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7436 | if (PyErr_Occurred()) SWIG_fail; | |
7437 | } | |
7438 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7439 | return resultobj; | |
7440 | fail: | |
7441 | return NULL; | |
7442 | } | |
7443 | ||
7444 | ||
7445 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7446 | PyObject *resultobj = 0; | |
7447 | int arg1 ; | |
7448 | int arg2 ; | |
7449 | buffer arg3 ; | |
7450 | int arg4 ; | |
7451 | wxBitmap *result = 0 ; | |
7452 | int val1 ; | |
7453 | int ecode1 = 0 ; | |
7454 | int val2 ; | |
7455 | int ecode2 = 0 ; | |
e46e7e0d | 7456 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7457 | PyObject * obj0 = 0 ; |
7458 | PyObject * obj1 = 0 ; | |
7459 | PyObject * obj2 = 0 ; | |
7460 | char * kwnames[] = { | |
7461 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7462 | }; | |
7463 | ||
7464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7465 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7466 | if (!SWIG_IsOK(ecode1)) { | |
7467 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7468 | } | |
7469 | arg1 = static_cast< int >(val1); | |
7470 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7471 | if (!SWIG_IsOK(ecode2)) { | |
7472 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7473 | } | |
7474 | arg2 = static_cast< int >(val2); | |
7475 | { | |
e46e7e0d RD |
7476 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7477 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7478 | } |
7479 | { | |
7480 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7481 | if (PyErr_Occurred()) SWIG_fail; | |
7482 | } | |
7483 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7484 | return resultobj; | |
7485 | fail: | |
7486 | return NULL; | |
7487 | } | |
7488 | ||
7489 | ||
7490 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7491 | PyObject *resultobj = 0; | |
7492 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7493 | wxPoint result; | |
7494 | void *argp1 = 0 ; | |
7495 | int res1 = 0 ; | |
7496 | PyObject *swig_obj[1] ; | |
7497 | ||
7498 | if (!args) SWIG_fail; | |
7499 | swig_obj[0] = args; | |
7500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7501 | if (!SWIG_IsOK(res1)) { | |
7502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7503 | } | |
7504 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7505 | { | |
7506 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7507 | if (PyErr_Occurred()) SWIG_fail; | |
7508 | } | |
7509 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7510 | return resultobj; | |
7511 | fail: | |
7512 | return NULL; | |
7513 | } | |
7514 | ||
7515 | ||
7516 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7517 | PyObject *resultobj = 0; | |
7518 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7519 | int result; | |
7520 | void *argp1 = 0 ; | |
7521 | int res1 = 0 ; | |
7522 | PyObject *swig_obj[1] ; | |
7523 | ||
7524 | if (!args) SWIG_fail; | |
7525 | swig_obj[0] = args; | |
7526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7527 | if (!SWIG_IsOK(res1)) { | |
7528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7529 | } | |
7530 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7531 | { | |
7532 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7533 | if (PyErr_Occurred()) SWIG_fail; | |
7534 | } | |
7535 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7536 | return resultobj; | |
7537 | fail: | |
7538 | return NULL; | |
7539 | } | |
7540 | ||
7541 | ||
7542 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7543 | PyObject *resultobj = 0; | |
7544 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7545 | int result; | |
7546 | void *argp1 = 0 ; | |
7547 | int res1 = 0 ; | |
7548 | PyObject *swig_obj[1] ; | |
7549 | ||
7550 | if (!args) SWIG_fail; | |
7551 | swig_obj[0] = args; | |
7552 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7553 | if (!SWIG_IsOK(res1)) { | |
7554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7555 | } | |
7556 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7557 | { | |
7558 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7559 | if (PyErr_Occurred()) SWIG_fail; | |
7560 | } | |
7561 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7562 | return resultobj; | |
7563 | fail: | |
7564 | return NULL; | |
7565 | } | |
7566 | ||
7567 | ||
7568 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7569 | PyObject *resultobj = 0; | |
7570 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7571 | wxSize result; | |
7572 | void *argp1 = 0 ; | |
7573 | int res1 = 0 ; | |
7574 | PyObject *swig_obj[1] ; | |
7575 | ||
7576 | if (!args) SWIG_fail; | |
7577 | swig_obj[0] = args; | |
7578 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7579 | if (!SWIG_IsOK(res1)) { | |
7580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7581 | } | |
7582 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7583 | { | |
7584 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7585 | if (PyErr_Occurred()) SWIG_fail; | |
7586 | } | |
7587 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7588 | return resultobj; | |
7589 | fail: | |
7590 | return NULL; | |
7591 | } | |
7592 | ||
7593 | ||
7594 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7595 | PyObject *resultobj = 0; | |
7596 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7597 | int result; | |
7598 | void *argp1 = 0 ; | |
7599 | int res1 = 0 ; | |
7600 | PyObject *swig_obj[1] ; | |
7601 | ||
7602 | if (!args) SWIG_fail; | |
7603 | swig_obj[0] = args; | |
7604 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7605 | if (!SWIG_IsOK(res1)) { | |
7606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7607 | } | |
7608 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7609 | { | |
7610 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7611 | if (PyErr_Occurred()) SWIG_fail; | |
7612 | } | |
7613 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7614 | return resultobj; | |
7615 | fail: | |
7616 | return NULL; | |
7617 | } | |
7618 | ||
7619 | ||
7620 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7621 | PyObject *obj; | |
7622 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7623 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7624 | return SWIG_Py_Void(); | |
7625 | } | |
7626 | ||
7627 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7628 | PyObject *resultobj = 0; | |
7629 | wxBitmap *arg1 = 0 ; | |
7630 | wxNativePixelData *result = 0 ; | |
7631 | void *argp1 = 0 ; | |
7632 | int res1 = 0 ; | |
7633 | ||
7634 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7635 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7636 | if (!SWIG_IsOK(res1)) { | |
7637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7638 | } | |
7639 | if (!argp1) { | |
7640 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7641 | } | |
7642 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7643 | { | |
7644 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7645 | if (PyErr_Occurred()) SWIG_fail; | |
7646 | } | |
7647 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7648 | return resultobj; | |
7649 | fail: | |
7650 | return NULL; | |
7651 | } | |
7652 | ||
7653 | ||
7654 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7655 | PyObject *resultobj = 0; | |
7656 | wxBitmap *arg1 = 0 ; | |
7657 | wxRect *arg2 = 0 ; | |
7658 | wxNativePixelData *result = 0 ; | |
7659 | void *argp1 = 0 ; | |
7660 | int res1 = 0 ; | |
7661 | wxRect temp2 ; | |
7662 | ||
7663 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7664 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7665 | if (!SWIG_IsOK(res1)) { | |
7666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7667 | } | |
7668 | if (!argp1) { | |
7669 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7670 | } | |
7671 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7672 | { | |
7673 | arg2 = &temp2; | |
7674 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7675 | } | |
7676 | { | |
7677 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7678 | if (PyErr_Occurred()) SWIG_fail; | |
7679 | } | |
7680 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7681 | return resultobj; | |
7682 | fail: | |
7683 | return NULL; | |
7684 | } | |
7685 | ||
7686 | ||
7687 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7688 | PyObject *resultobj = 0; | |
7689 | wxBitmap *arg1 = 0 ; | |
7690 | wxPoint *arg2 = 0 ; | |
7691 | wxSize *arg3 = 0 ; | |
7692 | wxNativePixelData *result = 0 ; | |
7693 | void *argp1 = 0 ; | |
7694 | int res1 = 0 ; | |
7695 | wxPoint temp2 ; | |
7696 | wxSize temp3 ; | |
7697 | ||
7698 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7700 | if (!SWIG_IsOK(res1)) { | |
7701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7702 | } | |
7703 | if (!argp1) { | |
7704 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7705 | } | |
7706 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7707 | { | |
7708 | arg2 = &temp2; | |
7709 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7710 | } | |
7711 | { | |
7712 | arg3 = &temp3; | |
7713 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7714 | } | |
7715 | { | |
7716 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
7718 | } | |
7719 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7720 | return resultobj; | |
7721 | fail: | |
7722 | return NULL; | |
7723 | } | |
7724 | ||
7725 | ||
7726 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7727 | int argc; | |
7728 | PyObject *argv[4]; | |
7729 | ||
7730 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7731 | --argc; | |
7732 | if (argc == 1) { | |
7733 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7734 | } | |
7735 | if (argc == 2) { | |
7736 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7737 | } | |
7738 | if (argc == 3) { | |
7739 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7740 | } | |
7741 | ||
7742 | fail: | |
7743 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7744 | return NULL; | |
7745 | } | |
7746 | ||
7747 | ||
7748 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7749 | PyObject *resultobj = 0; | |
7750 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7751 | void *argp1 = 0 ; | |
7752 | int res1 = 0 ; | |
7753 | PyObject *swig_obj[1] ; | |
7754 | ||
7755 | if (!args) SWIG_fail; | |
7756 | swig_obj[0] = args; | |
7757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7758 | if (!SWIG_IsOK(res1)) { | |
7759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7760 | } | |
7761 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7762 | { | |
7763 | delete arg1; | |
7764 | ||
7765 | if (PyErr_Occurred()) SWIG_fail; | |
7766 | } | |
7767 | resultobj = SWIG_Py_Void(); | |
7768 | return resultobj; | |
7769 | fail: | |
7770 | return NULL; | |
7771 | } | |
7772 | ||
7773 | ||
7774 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7775 | PyObject *resultobj = 0; | |
7776 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7777 | wxNativePixelData_Accessor result; | |
7778 | void *argp1 = 0 ; | |
7779 | int res1 = 0 ; | |
7780 | PyObject *swig_obj[1] ; | |
7781 | ||
7782 | if (!args) SWIG_fail; | |
7783 | swig_obj[0] = args; | |
7784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7785 | if (!SWIG_IsOK(res1)) { | |
7786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7787 | } | |
7788 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7789 | { | |
7790 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7791 | if (PyErr_Occurred()) SWIG_fail; | |
7792 | } | |
7793 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7794 | return resultobj; | |
7795 | fail: | |
7796 | return NULL; | |
7797 | } | |
7798 | ||
7799 | ||
7800 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7801 | PyObject *resultobj = 0; | |
7802 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7803 | void *argp1 = 0 ; | |
7804 | int res1 = 0 ; | |
7805 | PyObject *swig_obj[1] ; | |
7806 | ||
7807 | if (!args) SWIG_fail; | |
7808 | swig_obj[0] = args; | |
7809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7810 | if (!SWIG_IsOK(res1)) { | |
7811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7812 | } | |
7813 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7814 | { | |
7815 | (arg1)->UseAlpha(); | |
7816 | if (PyErr_Occurred()) SWIG_fail; | |
7817 | } | |
7818 | resultobj = SWIG_Py_Void(); | |
7819 | return resultobj; | |
7820 | fail: | |
7821 | return NULL; | |
7822 | } | |
7823 | ||
7824 | ||
7825 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7826 | PyObject *resultobj = 0; | |
7827 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7828 | bool result; | |
7829 | void *argp1 = 0 ; | |
7830 | int res1 = 0 ; | |
7831 | PyObject *swig_obj[1] ; | |
7832 | ||
7833 | if (!args) SWIG_fail; | |
7834 | swig_obj[0] = args; | |
7835 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7836 | if (!SWIG_IsOK(res1)) { | |
7837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7838 | } | |
7839 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7840 | { | |
7841 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7842 | if (PyErr_Occurred()) SWIG_fail; | |
7843 | } | |
7844 | { | |
7845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7846 | } | |
7847 | return resultobj; | |
7848 | fail: | |
7849 | return NULL; | |
7850 | } | |
7851 | ||
7852 | ||
7853 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7854 | PyObject *obj; | |
7855 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7856 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7857 | return SWIG_Py_Void(); | |
7858 | } | |
7859 | ||
7860 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7861 | return SWIG_Python_InitShadowInstance(args); | |
7862 | } | |
7863 | ||
7864 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7865 | PyObject *resultobj = 0; | |
7866 | wxNativePixelData *arg1 = 0 ; | |
7867 | wxNativePixelData_Accessor *result = 0 ; | |
7868 | void *argp1 = 0 ; | |
7869 | int res1 = 0 ; | |
7870 | ||
7871 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7872 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7873 | if (!SWIG_IsOK(res1)) { | |
7874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7875 | } | |
7876 | if (!argp1) { | |
7877 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7878 | } | |
7879 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7880 | { | |
7881 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7882 | if (PyErr_Occurred()) SWIG_fail; | |
7883 | } | |
7884 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7885 | return resultobj; | |
7886 | fail: | |
7887 | return NULL; | |
7888 | } | |
7889 | ||
7890 | ||
7891 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7892 | PyObject *resultobj = 0; | |
7893 | wxBitmap *arg1 = 0 ; | |
7894 | wxNativePixelData *arg2 = 0 ; | |
7895 | wxNativePixelData_Accessor *result = 0 ; | |
7896 | void *argp1 = 0 ; | |
7897 | int res1 = 0 ; | |
7898 | void *argp2 = 0 ; | |
7899 | int res2 = 0 ; | |
7900 | ||
7901 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7903 | if (!SWIG_IsOK(res1)) { | |
7904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7905 | } | |
7906 | if (!argp1) { | |
7907 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7908 | } | |
7909 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7910 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7911 | if (!SWIG_IsOK(res2)) { | |
7912 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7913 | } | |
7914 | if (!argp2) { | |
7915 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7916 | } | |
7917 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7918 | { | |
7919 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
7922 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7923 | return resultobj; | |
7924 | fail: | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
7929 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7930 | PyObject *resultobj = 0; | |
7931 | wxNativePixelData_Accessor *result = 0 ; | |
7932 | ||
7933 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7934 | { | |
7935 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7936 | if (PyErr_Occurred()) SWIG_fail; | |
7937 | } | |
7938 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7939 | return resultobj; | |
7940 | fail: | |
7941 | return NULL; | |
7942 | } | |
7943 | ||
7944 | ||
7945 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7946 | int argc; | |
7947 | PyObject *argv[3]; | |
7948 | ||
7949 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7950 | --argc; | |
7951 | if (argc == 0) { | |
7952 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7953 | } | |
7954 | if (argc == 1) { | |
7955 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7956 | } | |
7957 | if (argc == 2) { | |
7958 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7959 | } | |
7960 | ||
7961 | fail: | |
7962 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7963 | return NULL; | |
7964 | } | |
7965 | ||
7966 | ||
7967 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7968 | PyObject *resultobj = 0; | |
7969 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7970 | void *argp1 = 0 ; | |
7971 | int res1 = 0 ; | |
7972 | PyObject *swig_obj[1] ; | |
7973 | ||
7974 | if (!args) SWIG_fail; | |
7975 | swig_obj[0] = args; | |
7976 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7977 | if (!SWIG_IsOK(res1)) { | |
7978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7979 | } | |
7980 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7981 | { | |
7982 | delete arg1; | |
7983 | ||
7984 | if (PyErr_Occurred()) SWIG_fail; | |
7985 | } | |
7986 | resultobj = SWIG_Py_Void(); | |
7987 | return resultobj; | |
7988 | fail: | |
7989 | return NULL; | |
7990 | } | |
7991 | ||
7992 | ||
7993 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7994 | PyObject *resultobj = 0; | |
7995 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7996 | wxNativePixelData *arg2 = 0 ; | |
7997 | void *argp1 = 0 ; | |
7998 | int res1 = 0 ; | |
7999 | void *argp2 = 0 ; | |
8000 | int res2 = 0 ; | |
8001 | PyObject * obj0 = 0 ; | |
8002 | PyObject * obj1 = 0 ; | |
8003 | char * kwnames[] = { | |
8004 | (char *) "self",(char *) "data", NULL | |
8005 | }; | |
8006 | ||
8007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8009 | if (!SWIG_IsOK(res1)) { | |
8010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8011 | } | |
8012 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8013 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8014 | if (!SWIG_IsOK(res2)) { | |
8015 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8016 | } | |
8017 | if (!argp2) { | |
8018 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8019 | } | |
8020 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8021 | { | |
8022 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
8023 | if (PyErr_Occurred()) SWIG_fail; | |
8024 | } | |
8025 | resultobj = SWIG_Py_Void(); | |
8026 | return resultobj; | |
8027 | fail: | |
8028 | return NULL; | |
8029 | } | |
8030 | ||
8031 | ||
8032 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8033 | PyObject *resultobj = 0; | |
8034 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8035 | bool result; | |
8036 | void *argp1 = 0 ; | |
8037 | int res1 = 0 ; | |
8038 | PyObject *swig_obj[1] ; | |
8039 | ||
8040 | if (!args) SWIG_fail; | |
8041 | swig_obj[0] = args; | |
8042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8043 | if (!SWIG_IsOK(res1)) { | |
8044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
8045 | } | |
8046 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8047 | { | |
8048 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
8049 | if (PyErr_Occurred()) SWIG_fail; | |
8050 | } | |
8051 | { | |
8052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8053 | } | |
8054 | return resultobj; | |
8055 | fail: | |
8056 | return NULL; | |
8057 | } | |
8058 | ||
8059 | ||
8060 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8061 | PyObject *resultobj = 0; | |
8062 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8063 | void *argp1 = 0 ; | |
8064 | int res1 = 0 ; | |
8065 | PyObject *swig_obj[1] ; | |
8066 | ||
8067 | if (!args) SWIG_fail; | |
8068 | swig_obj[0] = args; | |
8069 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8070 | if (!SWIG_IsOK(res1)) { | |
8071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8072 | } | |
8073 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8074 | { | |
8075 | wxNativePixelData_Accessor_nextPixel(arg1); | |
8076 | if (PyErr_Occurred()) SWIG_fail; | |
8077 | } | |
8078 | resultobj = SWIG_Py_Void(); | |
8079 | return resultobj; | |
8080 | fail: | |
8081 | return NULL; | |
8082 | } | |
8083 | ||
8084 | ||
8085 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8086 | PyObject *resultobj = 0; | |
8087 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8088 | wxNativePixelData *arg2 = 0 ; | |
8089 | int arg3 ; | |
8090 | int arg4 ; | |
8091 | void *argp1 = 0 ; | |
8092 | int res1 = 0 ; | |
8093 | void *argp2 = 0 ; | |
8094 | int res2 = 0 ; | |
8095 | int val3 ; | |
8096 | int ecode3 = 0 ; | |
8097 | int val4 ; | |
8098 | int ecode4 = 0 ; | |
8099 | PyObject * obj0 = 0 ; | |
8100 | PyObject * obj1 = 0 ; | |
8101 | PyObject * obj2 = 0 ; | |
8102 | PyObject * obj3 = 0 ; | |
8103 | char * kwnames[] = { | |
8104 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8105 | }; | |
8106 | ||
8107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8109 | if (!SWIG_IsOK(res1)) { | |
8110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8111 | } | |
8112 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8113 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8114 | if (!SWIG_IsOK(res2)) { | |
8115 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8116 | } | |
8117 | if (!argp2) { | |
8118 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8119 | } | |
8120 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8121 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8122 | if (!SWIG_IsOK(ecode3)) { | |
8123 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8124 | } | |
8125 | arg3 = static_cast< int >(val3); | |
8126 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8127 | if (!SWIG_IsOK(ecode4)) { | |
8128 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8129 | } | |
8130 | arg4 = static_cast< int >(val4); | |
8131 | { | |
8132 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
8133 | if (PyErr_Occurred()) SWIG_fail; | |
8134 | } | |
8135 | resultobj = SWIG_Py_Void(); | |
8136 | return resultobj; | |
8137 | fail: | |
8138 | return NULL; | |
8139 | } | |
8140 | ||
8141 | ||
8142 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8143 | PyObject *resultobj = 0; | |
8144 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8145 | wxNativePixelData *arg2 = 0 ; | |
8146 | int arg3 ; | |
8147 | void *argp1 = 0 ; | |
8148 | int res1 = 0 ; | |
8149 | void *argp2 = 0 ; | |
8150 | int res2 = 0 ; | |
8151 | int val3 ; | |
8152 | int ecode3 = 0 ; | |
8153 | PyObject * obj0 = 0 ; | |
8154 | PyObject * obj1 = 0 ; | |
8155 | PyObject * obj2 = 0 ; | |
8156 | char * kwnames[] = { | |
8157 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8158 | }; | |
8159 | ||
8160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8162 | if (!SWIG_IsOK(res1)) { | |
8163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8164 | } | |
8165 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8166 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8167 | if (!SWIG_IsOK(res2)) { | |
8168 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8169 | } | |
8170 | if (!argp2) { | |
8171 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8172 | } | |
8173 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8174 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8175 | if (!SWIG_IsOK(ecode3)) { | |
8176 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8177 | } | |
8178 | arg3 = static_cast< int >(val3); | |
8179 | { | |
8180 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
8181 | if (PyErr_Occurred()) SWIG_fail; | |
8182 | } | |
8183 | resultobj = SWIG_Py_Void(); | |
8184 | return resultobj; | |
8185 | fail: | |
8186 | return NULL; | |
8187 | } | |
8188 | ||
8189 | ||
8190 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8191 | PyObject *resultobj = 0; | |
8192 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8193 | wxNativePixelData *arg2 = 0 ; | |
8194 | int arg3 ; | |
8195 | void *argp1 = 0 ; | |
8196 | int res1 = 0 ; | |
8197 | void *argp2 = 0 ; | |
8198 | int res2 = 0 ; | |
8199 | int val3 ; | |
8200 | int ecode3 = 0 ; | |
8201 | PyObject * obj0 = 0 ; | |
8202 | PyObject * obj1 = 0 ; | |
8203 | PyObject * obj2 = 0 ; | |
8204 | char * kwnames[] = { | |
8205 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8206 | }; | |
8207 | ||
8208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8210 | if (!SWIG_IsOK(res1)) { | |
8211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8212 | } | |
8213 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8214 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8215 | if (!SWIG_IsOK(res2)) { | |
8216 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8217 | } | |
8218 | if (!argp2) { | |
8219 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8220 | } | |
8221 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8222 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8223 | if (!SWIG_IsOK(ecode3)) { | |
8224 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8225 | } | |
8226 | arg3 = static_cast< int >(val3); | |
8227 | { | |
8228 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
8229 | if (PyErr_Occurred()) SWIG_fail; | |
8230 | } | |
8231 | resultobj = SWIG_Py_Void(); | |
8232 | return resultobj; | |
8233 | fail: | |
8234 | return NULL; | |
8235 | } | |
8236 | ||
8237 | ||
8238 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8239 | PyObject *resultobj = 0; | |
8240 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8241 | wxNativePixelData *arg2 = 0 ; | |
8242 | int arg3 ; | |
8243 | int arg4 ; | |
8244 | void *argp1 = 0 ; | |
8245 | int res1 = 0 ; | |
8246 | void *argp2 = 0 ; | |
8247 | int res2 = 0 ; | |
8248 | int val3 ; | |
8249 | int ecode3 = 0 ; | |
8250 | int val4 ; | |
8251 | int ecode4 = 0 ; | |
8252 | PyObject * obj0 = 0 ; | |
8253 | PyObject * obj1 = 0 ; | |
8254 | PyObject * obj2 = 0 ; | |
8255 | PyObject * obj3 = 0 ; | |
8256 | char * kwnames[] = { | |
8257 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8258 | }; | |
8259 | ||
8260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8261 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8262 | if (!SWIG_IsOK(res1)) { | |
8263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8264 | } | |
8265 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8266 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8267 | if (!SWIG_IsOK(res2)) { | |
8268 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8269 | } | |
8270 | if (!argp2) { | |
8271 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8272 | } | |
8273 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8274 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8275 | if (!SWIG_IsOK(ecode3)) { | |
8276 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8277 | } | |
8278 | arg3 = static_cast< int >(val3); | |
8279 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8280 | if (!SWIG_IsOK(ecode4)) { | |
8281 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8282 | } | |
8283 | arg4 = static_cast< int >(val4); | |
8284 | { | |
8285 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
8286 | if (PyErr_Occurred()) SWIG_fail; | |
8287 | } | |
8288 | resultobj = SWIG_Py_Void(); | |
8289 | return resultobj; | |
8290 | fail: | |
8291 | return NULL; | |
8292 | } | |
8293 | ||
8294 | ||
8295 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8296 | PyObject *resultobj = 0; | |
8297 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8298 | byte arg2 ; | |
8299 | byte arg3 ; | |
8300 | byte arg4 ; | |
8301 | void *argp1 = 0 ; | |
8302 | int res1 = 0 ; | |
8303 | unsigned char val2 ; | |
8304 | int ecode2 = 0 ; | |
8305 | unsigned char val3 ; | |
8306 | int ecode3 = 0 ; | |
8307 | unsigned char val4 ; | |
8308 | int ecode4 = 0 ; | |
8309 | PyObject * obj0 = 0 ; | |
8310 | PyObject * obj1 = 0 ; | |
8311 | PyObject * obj2 = 0 ; | |
8312 | PyObject * obj3 = 0 ; | |
8313 | char * kwnames[] = { | |
8314 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
8315 | }; | |
8316 | ||
8317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8319 | if (!SWIG_IsOK(res1)) { | |
8320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8321 | } | |
8322 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8323 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8324 | if (!SWIG_IsOK(ecode2)) { | |
8325 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8326 | } | |
8327 | arg2 = static_cast< byte >(val2); | |
8328 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8329 | if (!SWIG_IsOK(ecode3)) { | |
8330 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8331 | } | |
8332 | arg3 = static_cast< byte >(val3); | |
8333 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8334 | if (!SWIG_IsOK(ecode4)) { | |
8335 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8336 | } | |
8337 | arg4 = static_cast< byte >(val4); | |
8338 | { | |
8339 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
8340 | if (PyErr_Occurred()) SWIG_fail; | |
8341 | } | |
8342 | resultobj = SWIG_Py_Void(); | |
8343 | return resultobj; | |
8344 | fail: | |
8345 | return NULL; | |
8346 | } | |
8347 | ||
8348 | ||
8349 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8350 | PyObject *resultobj = 0; | |
8351 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8352 | PyObject *result = 0 ; | |
8353 | void *argp1 = 0 ; | |
8354 | int res1 = 0 ; | |
8355 | PyObject *swig_obj[1] ; | |
8356 | ||
8357 | if (!args) SWIG_fail; | |
8358 | swig_obj[0] = args; | |
8359 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8360 | if (!SWIG_IsOK(res1)) { | |
8361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8362 | } | |
8363 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8364 | { | |
8365 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8366 | if (PyErr_Occurred()) SWIG_fail; | |
8367 | } | |
8368 | resultobj = result; | |
8369 | return resultobj; | |
8370 | fail: | |
8371 | return NULL; | |
8372 | } | |
8373 | ||
8374 | ||
8375 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8376 | PyObject *obj; | |
8377 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8378 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8379 | return SWIG_Py_Void(); | |
8380 | } | |
8381 | ||
8382 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8383 | return SWIG_Python_InitShadowInstance(args); | |
8384 | } | |
8385 | ||
8386 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8387 | PyObject *resultobj = 0; | |
8388 | wxBitmap *arg1 = 0 ; | |
8389 | wxAlphaPixelData *result = 0 ; | |
8390 | void *argp1 = 0 ; | |
8391 | int res1 = 0 ; | |
8392 | ||
8393 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8394 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8395 | if (!SWIG_IsOK(res1)) { | |
8396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8397 | } | |
8398 | if (!argp1) { | |
8399 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8400 | } | |
8401 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8402 | { | |
8403 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8404 | if (PyErr_Occurred()) SWIG_fail; | |
8405 | } | |
8406 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8407 | return resultobj; | |
8408 | fail: | |
8409 | return NULL; | |
8410 | } | |
8411 | ||
8412 | ||
8413 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8414 | PyObject *resultobj = 0; | |
8415 | wxBitmap *arg1 = 0 ; | |
8416 | wxRect *arg2 = 0 ; | |
8417 | wxAlphaPixelData *result = 0 ; | |
8418 | void *argp1 = 0 ; | |
8419 | int res1 = 0 ; | |
8420 | wxRect temp2 ; | |
8421 | ||
8422 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8423 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8424 | if (!SWIG_IsOK(res1)) { | |
8425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8426 | } | |
8427 | if (!argp1) { | |
8428 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8429 | } | |
8430 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8431 | { | |
8432 | arg2 = &temp2; | |
8433 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8434 | } | |
8435 | { | |
8436 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8437 | if (PyErr_Occurred()) SWIG_fail; | |
8438 | } | |
8439 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8440 | return resultobj; | |
8441 | fail: | |
8442 | return NULL; | |
8443 | } | |
8444 | ||
8445 | ||
8446 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8447 | PyObject *resultobj = 0; | |
8448 | wxBitmap *arg1 = 0 ; | |
8449 | wxPoint *arg2 = 0 ; | |
8450 | wxSize *arg3 = 0 ; | |
8451 | wxAlphaPixelData *result = 0 ; | |
8452 | void *argp1 = 0 ; | |
8453 | int res1 = 0 ; | |
8454 | wxPoint temp2 ; | |
8455 | wxSize temp3 ; | |
8456 | ||
8457 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8458 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8459 | if (!SWIG_IsOK(res1)) { | |
8460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8461 | } | |
8462 | if (!argp1) { | |
8463 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8464 | } | |
8465 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8466 | { | |
8467 | arg2 = &temp2; | |
8468 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8469 | } | |
8470 | { | |
8471 | arg3 = &temp3; | |
8472 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8473 | } | |
8474 | { | |
8475 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8476 | if (PyErr_Occurred()) SWIG_fail; | |
8477 | } | |
8478 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8479 | return resultobj; | |
8480 | fail: | |
8481 | return NULL; | |
8482 | } | |
8483 | ||
8484 | ||
8485 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8486 | int argc; | |
8487 | PyObject *argv[4]; | |
8488 | ||
8489 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8490 | --argc; | |
8491 | if (argc == 1) { | |
8492 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8493 | } | |
8494 | if (argc == 2) { | |
8495 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8496 | } | |
8497 | if (argc == 3) { | |
8498 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8499 | } | |
8500 | ||
8501 | fail: | |
8502 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8503 | return NULL; | |
8504 | } | |
8505 | ||
8506 | ||
8507 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8508 | PyObject *resultobj = 0; | |
8509 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8510 | void *argp1 = 0 ; | |
8511 | int res1 = 0 ; | |
8512 | PyObject *swig_obj[1] ; | |
8513 | ||
8514 | if (!args) SWIG_fail; | |
8515 | swig_obj[0] = args; | |
8516 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8517 | if (!SWIG_IsOK(res1)) { | |
8518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8519 | } | |
8520 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8521 | { | |
8522 | delete arg1; | |
8523 | ||
8524 | if (PyErr_Occurred()) SWIG_fail; | |
8525 | } | |
8526 | resultobj = SWIG_Py_Void(); | |
8527 | return resultobj; | |
8528 | fail: | |
8529 | return NULL; | |
8530 | } | |
8531 | ||
8532 | ||
8533 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8534 | PyObject *resultobj = 0; | |
8535 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8536 | wxAlphaPixelData_Accessor result; | |
8537 | void *argp1 = 0 ; | |
8538 | int res1 = 0 ; | |
8539 | PyObject *swig_obj[1] ; | |
8540 | ||
8541 | if (!args) SWIG_fail; | |
8542 | swig_obj[0] = args; | |
8543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8544 | if (!SWIG_IsOK(res1)) { | |
8545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8546 | } | |
8547 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8548 | { | |
8549 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8550 | if (PyErr_Occurred()) SWIG_fail; | |
8551 | } | |
8552 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8553 | return resultobj; | |
8554 | fail: | |
8555 | return NULL; | |
8556 | } | |
8557 | ||
8558 | ||
8559 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8560 | PyObject *resultobj = 0; | |
8561 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8562 | void *argp1 = 0 ; | |
8563 | int res1 = 0 ; | |
8564 | PyObject *swig_obj[1] ; | |
8565 | ||
8566 | if (!args) SWIG_fail; | |
8567 | swig_obj[0] = args; | |
8568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8569 | if (!SWIG_IsOK(res1)) { | |
8570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8571 | } | |
8572 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8573 | { | |
8574 | (arg1)->UseAlpha(); | |
8575 | if (PyErr_Occurred()) SWIG_fail; | |
8576 | } | |
8577 | resultobj = SWIG_Py_Void(); | |
8578 | return resultobj; | |
8579 | fail: | |
8580 | return NULL; | |
8581 | } | |
8582 | ||
8583 | ||
8584 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8585 | PyObject *resultobj = 0; | |
8586 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8587 | bool result; | |
8588 | void *argp1 = 0 ; | |
8589 | int res1 = 0 ; | |
8590 | PyObject *swig_obj[1] ; | |
8591 | ||
8592 | if (!args) SWIG_fail; | |
8593 | swig_obj[0] = args; | |
8594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8595 | if (!SWIG_IsOK(res1)) { | |
8596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8597 | } | |
8598 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8599 | { | |
8600 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8601 | if (PyErr_Occurred()) SWIG_fail; | |
8602 | } | |
8603 | { | |
8604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8605 | } | |
8606 | return resultobj; | |
8607 | fail: | |
8608 | return NULL; | |
8609 | } | |
8610 | ||
8611 | ||
8612 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8613 | PyObject *obj; | |
8614 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8615 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8616 | return SWIG_Py_Void(); | |
8617 | } | |
8618 | ||
8619 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8620 | return SWIG_Python_InitShadowInstance(args); | |
8621 | } | |
8622 | ||
8623 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8624 | PyObject *resultobj = 0; | |
8625 | wxAlphaPixelData *arg1 = 0 ; | |
8626 | wxAlphaPixelData_Accessor *result = 0 ; | |
8627 | void *argp1 = 0 ; | |
8628 | int res1 = 0 ; | |
8629 | ||
8630 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8631 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8632 | if (!SWIG_IsOK(res1)) { | |
8633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8634 | } | |
8635 | if (!argp1) { | |
8636 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8637 | } | |
8638 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8639 | { | |
8640 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8641 | if (PyErr_Occurred()) SWIG_fail; | |
8642 | } | |
8643 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8644 | return resultobj; | |
8645 | fail: | |
8646 | return NULL; | |
8647 | } | |
8648 | ||
8649 | ||
8650 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8651 | PyObject *resultobj = 0; | |
8652 | wxBitmap *arg1 = 0 ; | |
8653 | wxAlphaPixelData *arg2 = 0 ; | |
8654 | wxAlphaPixelData_Accessor *result = 0 ; | |
8655 | void *argp1 = 0 ; | |
8656 | int res1 = 0 ; | |
8657 | void *argp2 = 0 ; | |
8658 | int res2 = 0 ; | |
8659 | ||
8660 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8661 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8662 | if (!SWIG_IsOK(res1)) { | |
8663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8664 | } | |
8665 | if (!argp1) { | |
8666 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8667 | } | |
8668 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8669 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8670 | if (!SWIG_IsOK(res2)) { | |
8671 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8672 | } | |
8673 | if (!argp2) { | |
8674 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8675 | } | |
8676 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8677 | { | |
8678 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8679 | if (PyErr_Occurred()) SWIG_fail; | |
8680 | } | |
8681 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8682 | return resultobj; | |
8683 | fail: | |
8684 | return NULL; | |
8685 | } | |
8686 | ||
8687 | ||
8688 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8689 | PyObject *resultobj = 0; | |
8690 | wxAlphaPixelData_Accessor *result = 0 ; | |
8691 | ||
8692 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8693 | { | |
8694 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8695 | if (PyErr_Occurred()) SWIG_fail; | |
8696 | } | |
8697 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8698 | return resultobj; | |
8699 | fail: | |
8700 | return NULL; | |
8701 | } | |
8702 | ||
8703 | ||
8704 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8705 | int argc; | |
8706 | PyObject *argv[3]; | |
8707 | ||
8708 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8709 | --argc; | |
8710 | if (argc == 0) { | |
8711 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8712 | } | |
8713 | if (argc == 1) { | |
8714 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8715 | } | |
8716 | if (argc == 2) { | |
8717 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8718 | } | |
8719 | ||
8720 | fail: | |
8721 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8722 | return NULL; | |
8723 | } | |
8724 | ||
8725 | ||
8726 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8727 | PyObject *resultobj = 0; | |
8728 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8729 | void *argp1 = 0 ; | |
8730 | int res1 = 0 ; | |
8731 | PyObject *swig_obj[1] ; | |
8732 | ||
8733 | if (!args) SWIG_fail; | |
8734 | swig_obj[0] = args; | |
8735 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8736 | if (!SWIG_IsOK(res1)) { | |
8737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8738 | } | |
8739 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8740 | { | |
8741 | delete arg1; | |
8742 | ||
8743 | if (PyErr_Occurred()) SWIG_fail; | |
8744 | } | |
8745 | resultobj = SWIG_Py_Void(); | |
8746 | return resultobj; | |
8747 | fail: | |
8748 | return NULL; | |
8749 | } | |
8750 | ||
8751 | ||
8752 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8753 | PyObject *resultobj = 0; | |
8754 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8755 | wxAlphaPixelData *arg2 = 0 ; | |
8756 | void *argp1 = 0 ; | |
8757 | int res1 = 0 ; | |
8758 | void *argp2 = 0 ; | |
8759 | int res2 = 0 ; | |
8760 | PyObject * obj0 = 0 ; | |
8761 | PyObject * obj1 = 0 ; | |
8762 | char * kwnames[] = { | |
8763 | (char *) "self",(char *) "data", NULL | |
8764 | }; | |
8765 | ||
8766 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8767 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8768 | if (!SWIG_IsOK(res1)) { | |
8769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8770 | } | |
8771 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8772 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8773 | if (!SWIG_IsOK(res2)) { | |
8774 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8775 | } | |
8776 | if (!argp2) { | |
8777 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8778 | } | |
8779 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8780 | { | |
8781 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8782 | if (PyErr_Occurred()) SWIG_fail; | |
8783 | } | |
8784 | resultobj = SWIG_Py_Void(); | |
8785 | return resultobj; | |
8786 | fail: | |
8787 | return NULL; | |
8788 | } | |
8789 | ||
8790 | ||
8791 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8792 | PyObject *resultobj = 0; | |
8793 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8794 | bool result; | |
8795 | void *argp1 = 0 ; | |
8796 | int res1 = 0 ; | |
8797 | PyObject *swig_obj[1] ; | |
8798 | ||
8799 | if (!args) SWIG_fail; | |
8800 | swig_obj[0] = args; | |
8801 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8802 | if (!SWIG_IsOK(res1)) { | |
8803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8804 | } | |
8805 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8806 | { | |
8807 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8808 | if (PyErr_Occurred()) SWIG_fail; | |
8809 | } | |
8810 | { | |
8811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8812 | } | |
8813 | return resultobj; | |
8814 | fail: | |
8815 | return NULL; | |
8816 | } | |
8817 | ||
8818 | ||
8819 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8820 | PyObject *resultobj = 0; | |
8821 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8822 | void *argp1 = 0 ; | |
8823 | int res1 = 0 ; | |
8824 | PyObject *swig_obj[1] ; | |
8825 | ||
8826 | if (!args) SWIG_fail; | |
8827 | swig_obj[0] = args; | |
8828 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8829 | if (!SWIG_IsOK(res1)) { | |
8830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8831 | } | |
8832 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8833 | { | |
8834 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8835 | if (PyErr_Occurred()) SWIG_fail; | |
8836 | } | |
8837 | resultobj = SWIG_Py_Void(); | |
8838 | return resultobj; | |
8839 | fail: | |
8840 | return NULL; | |
8841 | } | |
8842 | ||
8843 | ||
8844 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8845 | PyObject *resultobj = 0; | |
8846 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8847 | wxAlphaPixelData *arg2 = 0 ; | |
8848 | int arg3 ; | |
8849 | int arg4 ; | |
8850 | void *argp1 = 0 ; | |
8851 | int res1 = 0 ; | |
8852 | void *argp2 = 0 ; | |
8853 | int res2 = 0 ; | |
8854 | int val3 ; | |
8855 | int ecode3 = 0 ; | |
8856 | int val4 ; | |
8857 | int ecode4 = 0 ; | |
8858 | PyObject * obj0 = 0 ; | |
8859 | PyObject * obj1 = 0 ; | |
8860 | PyObject * obj2 = 0 ; | |
8861 | PyObject * obj3 = 0 ; | |
8862 | char * kwnames[] = { | |
8863 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8864 | }; | |
8865 | ||
8866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8868 | if (!SWIG_IsOK(res1)) { | |
8869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8870 | } | |
8871 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8872 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8873 | if (!SWIG_IsOK(res2)) { | |
8874 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8875 | } | |
8876 | if (!argp2) { | |
8877 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8878 | } | |
8879 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8880 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8881 | if (!SWIG_IsOK(ecode3)) { | |
8882 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8883 | } | |
8884 | arg3 = static_cast< int >(val3); | |
8885 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8886 | if (!SWIG_IsOK(ecode4)) { | |
8887 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8888 | } | |
8889 | arg4 = static_cast< int >(val4); | |
8890 | { | |
8891 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8892 | if (PyErr_Occurred()) SWIG_fail; | |
8893 | } | |
8894 | resultobj = SWIG_Py_Void(); | |
8895 | return resultobj; | |
8896 | fail: | |
8897 | return NULL; | |
8898 | } | |
8899 | ||
8900 | ||
8901 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8902 | PyObject *resultobj = 0; | |
8903 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8904 | wxAlphaPixelData *arg2 = 0 ; | |
8905 | int arg3 ; | |
8906 | void *argp1 = 0 ; | |
8907 | int res1 = 0 ; | |
8908 | void *argp2 = 0 ; | |
8909 | int res2 = 0 ; | |
8910 | int val3 ; | |
8911 | int ecode3 = 0 ; | |
8912 | PyObject * obj0 = 0 ; | |
8913 | PyObject * obj1 = 0 ; | |
8914 | PyObject * obj2 = 0 ; | |
8915 | char * kwnames[] = { | |
8916 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8917 | }; | |
8918 | ||
8919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8921 | if (!SWIG_IsOK(res1)) { | |
8922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8923 | } | |
8924 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8925 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8926 | if (!SWIG_IsOK(res2)) { | |
8927 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8928 | } | |
8929 | if (!argp2) { | |
8930 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8931 | } | |
8932 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8933 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8934 | if (!SWIG_IsOK(ecode3)) { | |
8935 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8936 | } | |
8937 | arg3 = static_cast< int >(val3); | |
8938 | { | |
8939 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8940 | if (PyErr_Occurred()) SWIG_fail; | |
8941 | } | |
8942 | resultobj = SWIG_Py_Void(); | |
8943 | return resultobj; | |
8944 | fail: | |
8945 | return NULL; | |
8946 | } | |
8947 | ||
8948 | ||
8949 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8950 | PyObject *resultobj = 0; | |
8951 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8952 | wxAlphaPixelData *arg2 = 0 ; | |
8953 | int arg3 ; | |
8954 | void *argp1 = 0 ; | |
8955 | int res1 = 0 ; | |
8956 | void *argp2 = 0 ; | |
8957 | int res2 = 0 ; | |
8958 | int val3 ; | |
8959 | int ecode3 = 0 ; | |
8960 | PyObject * obj0 = 0 ; | |
8961 | PyObject * obj1 = 0 ; | |
8962 | PyObject * obj2 = 0 ; | |
8963 | char * kwnames[] = { | |
8964 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8965 | }; | |
8966 | ||
8967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8969 | if (!SWIG_IsOK(res1)) { | |
8970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8971 | } | |
8972 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8973 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8974 | if (!SWIG_IsOK(res2)) { | |
8975 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8976 | } | |
8977 | if (!argp2) { | |
8978 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8979 | } | |
8980 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8981 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8982 | if (!SWIG_IsOK(ecode3)) { | |
8983 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8984 | } | |
8985 | arg3 = static_cast< int >(val3); | |
8986 | { | |
8987 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8988 | if (PyErr_Occurred()) SWIG_fail; | |
8989 | } | |
8990 | resultobj = SWIG_Py_Void(); | |
8991 | return resultobj; | |
8992 | fail: | |
8993 | return NULL; | |
8994 | } | |
8995 | ||
8996 | ||
8997 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8998 | PyObject *resultobj = 0; | |
8999 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
9000 | wxAlphaPixelData *arg2 = 0 ; | |
9001 | int arg3 ; | |
9002 | int arg4 ; | |
9003 | void *argp1 = 0 ; | |
9004 | int res1 = 0 ; | |
9005 | void *argp2 = 0 ; | |
9006 | int res2 = 0 ; | |
9007 | int val3 ; | |
9008 | int ecode3 = 0 ; | |
9009 | int val4 ; | |
9010 | int ecode4 = 0 ; | |
9011 | PyObject * obj0 = 0 ; | |
9012 | PyObject * obj1 = 0 ; | |
9013 | PyObject * obj2 = 0 ; | |
9014 | PyObject * obj3 = 0 ; | |
9015 | char * kwnames[] = { | |
9016 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
9017 | }; | |
9018 | ||
9019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
9021 | if (!SWIG_IsOK(res1)) { | |
9022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
9023 | } | |
9024 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
9025 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
9026 | if (!SWIG_IsOK(res2)) { | |
9027 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
9028 | } | |
9029 | if (!argp2) { | |
9030 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
9031 | } | |
9032 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
9033 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9034 | if (!SWIG_IsOK(ecode3)) { | |
9035 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
9036 | } | |
9037 | arg3 = static_cast< int >(val3); | |
9038 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9039 | if (!SWIG_IsOK(ecode4)) { | |
9040 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
9041 | } | |
9042 | arg4 = static_cast< int >(val4); | |
9043 | { | |
9044 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
9045 | if (PyErr_Occurred()) SWIG_fail; | |
9046 | } | |
9047 | resultobj = SWIG_Py_Void(); | |
9048 | return resultobj; | |
9049 | fail: | |
9050 | return NULL; | |
9051 | } | |
9052 | ||
9053 | ||
9054 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9055 | PyObject *resultobj = 0; | |
9056 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
9057 | byte arg2 ; | |
9058 | byte arg3 ; | |
9059 | byte arg4 ; | |
9060 | byte arg5 ; | |
9061 | void *argp1 = 0 ; | |
9062 | int res1 = 0 ; | |
9063 | unsigned char val2 ; | |
9064 | int ecode2 = 0 ; | |
9065 | unsigned char val3 ; | |
9066 | int ecode3 = 0 ; | |
9067 | unsigned char val4 ; | |
9068 | int ecode4 = 0 ; | |
9069 | unsigned char val5 ; | |
9070 | int ecode5 = 0 ; | |
9071 | PyObject * obj0 = 0 ; | |
9072 | PyObject * obj1 = 0 ; | |
9073 | PyObject * obj2 = 0 ; | |
9074 | PyObject * obj3 = 0 ; | |
9075 | PyObject * obj4 = 0 ; | |
9076 | char * kwnames[] = { | |
9077 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
9078 | }; | |
9079 | ||
9080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
9082 | if (!SWIG_IsOK(res1)) { | |
9083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
9084 | } | |
9085 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
9086 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
9087 | if (!SWIG_IsOK(ecode2)) { | |
9088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
9089 | } | |
9090 | arg2 = static_cast< byte >(val2); | |
9091 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
9092 | if (!SWIG_IsOK(ecode3)) { | |
9093 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
9094 | } | |
9095 | arg3 = static_cast< byte >(val3); | |
9096 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
9097 | if (!SWIG_IsOK(ecode4)) { | |
9098 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
9099 | } | |
9100 | arg4 = static_cast< byte >(val4); | |
9101 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
9102 | if (!SWIG_IsOK(ecode5)) { | |
9103 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
9104 | } | |
9105 | arg5 = static_cast< byte >(val5); | |
9106 | { | |
9107 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
9108 | if (PyErr_Occurred()) SWIG_fail; | |
554f62e9 | 9109 | } |
fc46b7f3 | 9110 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
9111 | return resultobj; |
9112 | fail: | |
9113 | return NULL; | |
9114 | } | |
9115 | ||
9116 | ||
fc46b7f3 | 9117 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 9118 | PyObject *resultobj = 0; |
fc46b7f3 RD |
9119 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
9120 | PyObject *result = 0 ; | |
554f62e9 RD |
9121 | void *argp1 = 0 ; |
9122 | int res1 = 0 ; | |
fc46b7f3 | 9123 | PyObject *swig_obj[1] ; |
554f62e9 | 9124 | |
fc46b7f3 RD |
9125 | if (!args) SWIG_fail; |
9126 | swig_obj[0] = args; | |
9127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
554f62e9 | 9128 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 9129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
554f62e9 | 9130 | } |
fc46b7f3 | 9131 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
554f62e9 | 9132 | { |
fc46b7f3 | 9133 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
554f62e9 RD |
9134 | if (PyErr_Occurred()) SWIG_fail; |
9135 | } | |
fc46b7f3 | 9136 | resultobj = result; |
554f62e9 RD |
9137 | return resultobj; |
9138 | fail: | |
9139 | return NULL; | |
d55e5bfc RD |
9140 | } |
9141 | ||
9142 | ||
fc46b7f3 | 9143 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
9144 | PyObject *obj; |
9145 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 9146 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
554f62e9 | 9147 | return SWIG_Py_Void(); |
d55e5bfc RD |
9148 | } |
9149 | ||
fc46b7f3 | 9150 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 9151 | return SWIG_Python_InitShadowInstance(args); |
093d3ff1 RD |
9152 | } |
9153 | ||
554f62e9 RD |
9154 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9155 | PyObject *resultobj = 0; | |
9156 | wxBitmap *arg1 = 0 ; | |
9157 | wxColour const &arg2_defvalue = wxNullColour ; | |
9158 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
9159 | wxMask *result = 0 ; | |
9160 | void *argp1 = 0 ; | |
9161 | int res1 = 0 ; | |
9162 | wxColour temp2 ; | |
9163 | PyObject * obj0 = 0 ; | |
9164 | PyObject * obj1 = 0 ; | |
9165 | char * kwnames[] = { | |
9166 | (char *) "bitmap",(char *) "colour", NULL | |
9167 | }; | |
9168 | ||
9169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
9170 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9171 | if (!SWIG_IsOK(res1)) { | |
9172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9173 | } | |
9174 | if (!argp1) { | |
9175 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9176 | } | |
9177 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9178 | if (obj1) { | |
d55e5bfc | 9179 | { |
554f62e9 RD |
9180 | arg2 = &temp2; |
9181 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 9182 | } |
554f62e9 RD |
9183 | } |
9184 | { | |
9185 | if (!wxPyCheckForApp()) SWIG_fail; | |
9186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9187 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
9188 | wxPyEndAllowThreads(__tstate); | |
9189 | if (PyErr_Occurred()) SWIG_fail; | |
9190 | } | |
9191 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
9192 | return resultobj; | |
9193 | fail: | |
9194 | return NULL; | |
d55e5bfc RD |
9195 | } |
9196 | ||
9197 | ||
554f62e9 RD |
9198 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9199 | PyObject *resultobj = 0; | |
9200 | wxMask *arg1 = (wxMask *) 0 ; | |
9201 | void *argp1 = 0 ; | |
9202 | int res1 = 0 ; | |
9203 | PyObject *swig_obj[1] ; | |
9204 | ||
9205 | if (!args) SWIG_fail; | |
9206 | swig_obj[0] = args; | |
9207 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
9208 | if (!SWIG_IsOK(res1)) { | |
9209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
9210 | } | |
9211 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
9212 | { | |
554f62e9 | 9213 | delete arg1; |
d55e5bfc | 9214 | |
554f62e9 RD |
9215 | if (PyErr_Occurred()) SWIG_fail; |
9216 | } | |
9217 | resultobj = SWIG_Py_Void(); | |
9218 | return resultobj; | |
9219 | fail: | |
9220 | return NULL; | |
9221 | } | |
9222 | ||
9223 | ||
9224 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9225 | PyObject *obj; | |
9226 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9227 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
9228 | return SWIG_Py_Void(); | |
9229 | } | |
9230 | ||
9231 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9232 | return SWIG_Python_InitShadowInstance(args); | |
9233 | } | |
9234 | ||
9235 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9236 | PyObject *resultobj = 0; | |
9237 | wxString *arg1 = 0 ; | |
9238 | wxBitmapType arg2 ; | |
9239 | int arg3 = (int) -1 ; | |
9240 | int arg4 = (int) -1 ; | |
9241 | wxIcon *result = 0 ; | |
9242 | bool temp1 = false ; | |
9243 | int val2 ; | |
9244 | int ecode2 = 0 ; | |
9245 | int val3 ; | |
9246 | int ecode3 = 0 ; | |
9247 | int val4 ; | |
9248 | int ecode4 = 0 ; | |
9249 | PyObject * obj0 = 0 ; | |
9250 | PyObject * obj1 = 0 ; | |
9251 | PyObject * obj2 = 0 ; | |
9252 | PyObject * obj3 = 0 ; | |
9253 | char * kwnames[] = { | |
9254 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
9255 | }; | |
9256 | ||
9257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9258 | { | |
9259 | arg1 = wxString_in_helper(obj0); | |
9260 | if (arg1 == NULL) SWIG_fail; | |
9261 | temp1 = true; | |
9262 | } | |
9263 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9264 | if (!SWIG_IsOK(ecode2)) { | |
9265 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
9266 | } | |
9267 | arg2 = static_cast< wxBitmapType >(val2); | |
9268 | if (obj2) { | |
9269 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9270 | if (!SWIG_IsOK(ecode3)) { | |
9271 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
9272 | } | |
9273 | arg3 = static_cast< int >(val3); | |
9274 | } | |
9275 | if (obj3) { | |
9276 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9277 | if (!SWIG_IsOK(ecode4)) { | |
9278 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
9279 | } | |
9280 | arg4 = static_cast< int >(val4); | |
9281 | } | |
9282 | { | |
9283 | if (!wxPyCheckForApp()) SWIG_fail; | |
9284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9285 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
9286 | wxPyEndAllowThreads(__tstate); | |
9287 | if (PyErr_Occurred()) SWIG_fail; | |
9288 | } | |
9289 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
9290 | { | |
9291 | if (temp1) | |
9292 | delete arg1; | |
9293 | } | |
9294 | return resultobj; | |
9295 | fail: | |
9296 | { | |
9297 | if (temp1) | |
9298 | delete arg1; | |
9299 | } | |
9300 | return NULL; | |
d55e5bfc RD |
9301 | } |
9302 | ||
9303 | ||
554f62e9 RD |
9304 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9305 | PyObject *resultobj = 0; | |
9306 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9307 | void *argp1 = 0 ; | |
9308 | int res1 = 0 ; | |
9309 | PyObject *swig_obj[1] ; | |
9310 | ||
9311 | if (!args) SWIG_fail; | |
9312 | swig_obj[0] = args; | |
9313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
9314 | if (!SWIG_IsOK(res1)) { | |
9315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9316 | } | |
9317 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9318 | { | |
9319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9320 | delete arg1; | |
d55e5bfc | 9321 | |
554f62e9 RD |
9322 | wxPyEndAllowThreads(__tstate); |
9323 | if (PyErr_Occurred()) SWIG_fail; | |
9324 | } | |
9325 | resultobj = SWIG_Py_Void(); | |
9326 | return resultobj; | |
9327 | fail: | |
9328 | return NULL; | |
d55e5bfc RD |
9329 | } |
9330 | ||
9331 | ||
554f62e9 RD |
9332 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9333 | PyObject *resultobj = 0; | |
9334 | wxIcon *result = 0 ; | |
9335 | ||
9336 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
9337 | { | |
9338 | if (!wxPyCheckForApp()) SWIG_fail; | |
9339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9340 | result = (wxIcon *)new wxIcon(); | |
9341 | wxPyEndAllowThreads(__tstate); | |
9342 | if (PyErr_Occurred()) SWIG_fail; | |
9343 | } | |
9344 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9345 | return resultobj; | |
9346 | fail: | |
9347 | return NULL; | |
9348 | } | |
9349 | ||
9350 | ||
9351 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9352 | PyObject *resultobj = 0; | |
9353 | wxIconLocation *arg1 = 0 ; | |
9354 | wxIcon *result = 0 ; | |
9355 | void *argp1 = 0 ; | |
9356 | int res1 = 0 ; | |
9357 | PyObject * obj0 = 0 ; | |
9358 | char * kwnames[] = { | |
9359 | (char *) "loc", NULL | |
9360 | }; | |
9361 | ||
9362 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9363 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9364 | if (!SWIG_IsOK(res1)) { | |
9365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9366 | } | |
9367 | if (!argp1) { | |
9368 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9369 | } | |
9370 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9371 | { | |
9372 | if (!wxPyCheckForApp()) SWIG_fail; | |
9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9374 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9375 | wxPyEndAllowThreads(__tstate); | |
9376 | if (PyErr_Occurred()) SWIG_fail; | |
9377 | } | |
9378 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9379 | return resultobj; | |
9380 | fail: | |
9381 | return NULL; | |
9382 | } | |
9383 | ||
9384 | ||
9385 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9386 | PyObject *resultobj = 0; | |
9387 | wxBitmap *arg1 = 0 ; | |
9388 | wxIcon *result = 0 ; | |
9389 | void *argp1 = 0 ; | |
9390 | int res1 = 0 ; | |
9391 | PyObject * obj0 = 0 ; | |
9392 | char * kwnames[] = { | |
9393 | (char *) "bmp", NULL | |
9394 | }; | |
9395 | ||
9396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9397 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9398 | if (!SWIG_IsOK(res1)) { | |
9399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9400 | } | |
9401 | if (!argp1) { | |
9402 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9403 | } | |
9404 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9405 | { | |
9406 | if (!wxPyCheckForApp()) SWIG_fail; | |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9408 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9409 | wxPyEndAllowThreads(__tstate); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
9411 | } | |
9412 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9413 | return resultobj; | |
9414 | fail: | |
9415 | return NULL; | |
d55e5bfc RD |
9416 | } |
9417 | ||
9418 | ||
554f62e9 RD |
9419 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9420 | PyObject *resultobj = 0; | |
9421 | PyObject *arg1 = (PyObject *) 0 ; | |
9422 | wxIcon *result = 0 ; | |
9423 | PyObject * obj0 = 0 ; | |
9424 | char * kwnames[] = { | |
9425 | (char *) "listOfStrings", NULL | |
9426 | }; | |
9427 | ||
9428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9429 | arg1 = obj0; | |
9430 | { | |
9431 | if (!wxPyCheckForApp()) SWIG_fail; | |
9432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9433 | result = (wxIcon *)new_wxIcon(arg1); | |
9434 | wxPyEndAllowThreads(__tstate); | |
9435 | if (PyErr_Occurred()) SWIG_fail; | |
9436 | } | |
9437 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9438 | return resultobj; | |
9439 | fail: | |
9440 | return NULL; | |
9441 | } | |
9442 | ||
9443 | ||
9444 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9445 | PyObject *resultobj = 0; | |
9446 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9447 | wxString *arg2 = 0 ; | |
9448 | wxBitmapType arg3 ; | |
9449 | bool result; | |
9450 | void *argp1 = 0 ; | |
9451 | int res1 = 0 ; | |
9452 | bool temp2 = false ; | |
9453 | int val3 ; | |
9454 | int ecode3 = 0 ; | |
9455 | PyObject * obj0 = 0 ; | |
9456 | PyObject * obj1 = 0 ; | |
9457 | PyObject * obj2 = 0 ; | |
9458 | char * kwnames[] = { | |
9459 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9460 | }; | |
9461 | ||
9462 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9463 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9464 | if (!SWIG_IsOK(res1)) { | |
9465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9466 | } | |
9467 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9468 | { | |
9469 | arg2 = wxString_in_helper(obj1); | |
9470 | if (arg2 == NULL) SWIG_fail; | |
9471 | temp2 = true; | |
9472 | } | |
9473 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9474 | if (!SWIG_IsOK(ecode3)) { | |
9475 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9476 | } | |
9477 | arg3 = static_cast< wxBitmapType >(val3); | |
9478 | { | |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9481 | wxPyEndAllowThreads(__tstate); | |
9482 | if (PyErr_Occurred()) SWIG_fail; | |
9483 | } | |
9484 | { | |
9485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9486 | } | |
9487 | { | |
9488 | if (temp2) | |
9489 | delete arg2; | |
9490 | } | |
9491 | return resultobj; | |
9492 | fail: | |
9493 | { | |
9494 | if (temp2) | |
9495 | delete arg2; | |
9496 | } | |
9497 | return NULL; | |
d55e5bfc RD |
9498 | } |
9499 | ||
9500 | ||
554f62e9 RD |
9501 | SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9502 | PyObject *resultobj = 0; | |
9503 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9504 | long result; | |
9505 | void *argp1 = 0 ; | |
9506 | int res1 = 0 ; | |
9507 | PyObject *swig_obj[1] ; | |
9508 | ||
9509 | if (!args) SWIG_fail; | |
9510 | swig_obj[0] = args; | |
9511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9512 | if (!SWIG_IsOK(res1)) { | |
9513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9514 | } | |
9515 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9516 | { | |
9517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9518 | result = (long)(arg1)->GetHandle(); | |
9519 | wxPyEndAllowThreads(__tstate); | |
9520 | if (PyErr_Occurred()) SWIG_fail; | |
9521 | } | |
9522 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
9523 | return resultobj; | |
9524 | fail: | |
9525 | return NULL; | |
9526 | } | |
9527 | ||
9528 | ||
9529 | SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9530 | PyObject *resultobj = 0; | |
9531 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9532 | long arg2 ; | |
9533 | void *argp1 = 0 ; | |
9534 | int res1 = 0 ; | |
9535 | long val2 ; | |
9536 | int ecode2 = 0 ; | |
9537 | PyObject * obj0 = 0 ; | |
9538 | PyObject * obj1 = 0 ; | |
9539 | char * kwnames[] = { | |
9540 | (char *) "self",(char *) "handle", NULL | |
9541 | }; | |
9542 | ||
9543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9545 | if (!SWIG_IsOK(res1)) { | |
9546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9547 | } | |
9548 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9549 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9550 | if (!SWIG_IsOK(ecode2)) { | |
9551 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
9552 | } | |
9553 | arg2 = static_cast< long >(val2); | |
9554 | { | |
9555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9556 | wxIcon_SetHandle(arg1,arg2); | |
9557 | wxPyEndAllowThreads(__tstate); | |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
9559 | } | |
9560 | resultobj = SWIG_Py_Void(); | |
9561 | return resultobj; | |
9562 | fail: | |
9563 | return NULL; | |
d55e5bfc RD |
9564 | } |
9565 | ||
9566 | ||
b39fe951 | 9567 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
9568 | PyObject *resultobj = 0; |
9569 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9570 | bool result; | |
9571 | void *argp1 = 0 ; | |
9572 | int res1 = 0 ; | |
9573 | PyObject *swig_obj[1] ; | |
9574 | ||
9575 | if (!args) SWIG_fail; | |
9576 | swig_obj[0] = args; | |
9577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9578 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
554f62e9 RD |
9580 | } |
9581 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9582 | { | |
9583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9584 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
9585 | wxPyEndAllowThreads(__tstate); |
9586 | if (PyErr_Occurred()) SWIG_fail; | |
9587 | } | |
9588 | { | |
9589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9590 | } | |
9591 | return resultobj; | |
9592 | fail: | |
9593 | return NULL; | |
d55e5bfc RD |
9594 | } |
9595 | ||
9596 | ||
554f62e9 RD |
9597 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(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_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9610 | } | |
9611 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9612 | { | |
9613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9614 | result = (int)(arg1)->GetWidth(); | |
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_GetHeight(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_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9638 | } | |
9639 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9640 | { | |
9641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9642 | result = (int)(arg1)->GetHeight(); | |
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; | |
c1cb24a4 RD |
9650 | } |
9651 | ||
9652 | ||
554f62e9 RD |
9653 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9654 | PyObject *resultobj = 0; | |
9655 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9656 | int result; | |
9657 | void *argp1 = 0 ; | |
9658 | int res1 = 0 ; | |
9659 | PyObject *swig_obj[1] ; | |
9660 | ||
9661 | if (!args) SWIG_fail; | |
9662 | swig_obj[0] = args; | |
9663 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9664 | if (!SWIG_IsOK(res1)) { | |
9665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9666 | } | |
9667 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9668 | { | |
9669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9670 | result = (int)(arg1)->GetDepth(); | |
9671 | wxPyEndAllowThreads(__tstate); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
9674 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9675 | return resultobj; | |
9676 | fail: | |
9677 | return NULL; | |
9678 | } | |
9679 | ||
9680 | ||
9681 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9682 | PyObject *resultobj = 0; | |
9683 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9684 | int arg2 ; | |
9685 | void *argp1 = 0 ; | |
9686 | int res1 = 0 ; | |
9687 | int val2 ; | |
9688 | int ecode2 = 0 ; | |
9689 | PyObject * obj0 = 0 ; | |
9690 | PyObject * obj1 = 0 ; | |
9691 | char * kwnames[] = { | |
9692 | (char *) "self",(char *) "w", NULL | |
9693 | }; | |
9694 | ||
9695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9697 | if (!SWIG_IsOK(res1)) { | |
9698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9699 | } | |
9700 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9702 | if (!SWIG_IsOK(ecode2)) { | |
9703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9704 | } | |
9705 | arg2 = static_cast< int >(val2); | |
9706 | { | |
9707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9708 | (arg1)->SetWidth(arg2); | |
9709 | wxPyEndAllowThreads(__tstate); | |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
9711 | } | |
9712 | resultobj = SWIG_Py_Void(); | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | return NULL; | |
9716 | } | |
9717 | ||
9718 | ||
9719 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9720 | PyObject *resultobj = 0; | |
9721 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9722 | int arg2 ; | |
9723 | void *argp1 = 0 ; | |
9724 | int res1 = 0 ; | |
9725 | int val2 ; | |
9726 | int ecode2 = 0 ; | |
9727 | PyObject * obj0 = 0 ; | |
9728 | PyObject * obj1 = 0 ; | |
9729 | char * kwnames[] = { | |
9730 | (char *) "self",(char *) "h", NULL | |
9731 | }; | |
9732 | ||
9733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9735 | if (!SWIG_IsOK(res1)) { | |
9736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9737 | } | |
9738 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9739 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9740 | if (!SWIG_IsOK(ecode2)) { | |
9741 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9742 | } | |
9743 | arg2 = static_cast< int >(val2); | |
9744 | { | |
9745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9746 | (arg1)->SetHeight(arg2); | |
9747 | wxPyEndAllowThreads(__tstate); | |
9748 | if (PyErr_Occurred()) SWIG_fail; | |
9749 | } | |
9750 | resultobj = SWIG_Py_Void(); | |
9751 | return resultobj; | |
9752 | fail: | |
9753 | return NULL; | |
9754 | } | |
9755 | ||
9756 | ||
9757 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9758 | PyObject *resultobj = 0; | |
9759 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9760 | int arg2 ; | |
9761 | void *argp1 = 0 ; | |
9762 | int res1 = 0 ; | |
9763 | int val2 ; | |
9764 | int ecode2 = 0 ; | |
9765 | PyObject * obj0 = 0 ; | |
9766 | PyObject * obj1 = 0 ; | |
9767 | char * kwnames[] = { | |
9768 | (char *) "self",(char *) "d", NULL | |
9769 | }; | |
9770 | ||
9771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9773 | if (!SWIG_IsOK(res1)) { | |
9774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9775 | } | |
9776 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9777 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9778 | if (!SWIG_IsOK(ecode2)) { | |
9779 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9780 | } | |
9781 | arg2 = static_cast< int >(val2); | |
9782 | { | |
9783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9784 | (arg1)->SetDepth(arg2); | |
9785 | wxPyEndAllowThreads(__tstate); | |
9786 | if (PyErr_Occurred()) SWIG_fail; | |
9787 | } | |
9788 | resultobj = SWIG_Py_Void(); | |
9789 | return resultobj; | |
9790 | fail: | |
9791 | return NULL; | |
9792 | } | |
9793 | ||
9794 | ||
9795 | SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9796 | PyObject *resultobj = 0; | |
9797 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9798 | wxSize *arg2 = 0 ; | |
9799 | void *argp1 = 0 ; | |
9800 | int res1 = 0 ; | |
9801 | wxSize temp2 ; | |
9802 | PyObject * obj0 = 0 ; | |
9803 | PyObject * obj1 = 0 ; | |
9804 | char * kwnames[] = { | |
9805 | (char *) "self",(char *) "size", NULL | |
9806 | }; | |
9807 | ||
9808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9810 | if (!SWIG_IsOK(res1)) { | |
9811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9812 | } | |
9813 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9814 | { | |
9815 | arg2 = &temp2; | |
9816 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
9817 | } | |
9818 | { | |
9819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9820 | (arg1)->SetSize((wxSize const &)*arg2); | |
9821 | wxPyEndAllowThreads(__tstate); | |
9822 | if (PyErr_Occurred()) SWIG_fail; | |
9823 | } | |
9824 | resultobj = SWIG_Py_Void(); | |
9825 | return resultobj; | |
9826 | fail: | |
9827 | return NULL; | |
9828 | } | |
9829 | ||
9830 | ||
9831 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9832 | PyObject *resultobj = 0; | |
9833 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9834 | wxBitmap *arg2 = 0 ; | |
9835 | void *argp1 = 0 ; | |
9836 | int res1 = 0 ; | |
9837 | void *argp2 = 0 ; | |
9838 | int res2 = 0 ; | |
9839 | PyObject * obj0 = 0 ; | |
9840 | PyObject * obj1 = 0 ; | |
9841 | char * kwnames[] = { | |
9842 | (char *) "self",(char *) "bmp", NULL | |
9843 | }; | |
9844 | ||
9845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9847 | if (!SWIG_IsOK(res1)) { | |
9848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9849 | } | |
9850 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9851 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9852 | if (!SWIG_IsOK(res2)) { | |
9853 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9854 | } | |
9855 | if (!argp2) { | |
9856 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9857 | } | |
9858 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9859 | { | |
9860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9861 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9862 | wxPyEndAllowThreads(__tstate); | |
9863 | if (PyErr_Occurred()) SWIG_fail; | |
9864 | } | |
9865 | resultobj = SWIG_Py_Void(); | |
9866 | return resultobj; | |
9867 | fail: | |
9868 | return NULL; | |
d55e5bfc RD |
9869 | } |
9870 | ||
9871 | ||
554f62e9 RD |
9872 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9873 | PyObject *obj; | |
9874 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9875 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9876 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9877 | } |
9878 | ||
554f62e9 RD |
9879 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9880 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
9881 | } |
9882 | ||
554f62e9 RD |
9883 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9884 | PyObject *resultobj = 0; | |
9885 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9886 | int arg2 = (int) 0 ; | |
9887 | wxIconLocation *result = 0 ; | |
9888 | bool temp1 = false ; | |
9889 | int val2 ; | |
9890 | int ecode2 = 0 ; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | PyObject * obj1 = 0 ; | |
9893 | char * kwnames[] = { | |
9894 | (char *) "filename",(char *) "num", NULL | |
9895 | }; | |
9896 | ||
9897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9898 | if (obj0) { | |
d55e5bfc | 9899 | { |
554f62e9 RD |
9900 | arg1 = wxString_in_helper(obj0); |
9901 | if (arg1 == NULL) SWIG_fail; | |
9902 | temp1 = true; | |
d55e5bfc | 9903 | } |
554f62e9 RD |
9904 | } |
9905 | if (obj1) { | |
9906 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9907 | if (!SWIG_IsOK(ecode2)) { | |
9908 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9909 | } | |
9910 | arg2 = static_cast< int >(val2); | |
9911 | } | |
9912 | { | |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9915 | wxPyEndAllowThreads(__tstate); | |
9916 | if (PyErr_Occurred()) SWIG_fail; | |
9917 | } | |
9918 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9919 | { | |
9920 | if (temp1) | |
9921 | delete arg1; | |
9922 | } | |
9923 | return resultobj; | |
9924 | fail: | |
9925 | { | |
9926 | if (temp1) | |
9927 | delete arg1; | |
9928 | } | |
9929 | return NULL; | |
d55e5bfc RD |
9930 | } |
9931 | ||
9932 | ||
554f62e9 RD |
9933 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9934 | PyObject *resultobj = 0; | |
9935 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9936 | void *argp1 = 0 ; | |
9937 | int res1 = 0 ; | |
9938 | PyObject *swig_obj[1] ; | |
9939 | ||
9940 | if (!args) SWIG_fail; | |
9941 | swig_obj[0] = args; | |
9942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9943 | if (!SWIG_IsOK(res1)) { | |
9944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9945 | } | |
9946 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9947 | { | |
9948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9949 | delete arg1; | |
d55e5bfc | 9950 | |
554f62e9 RD |
9951 | wxPyEndAllowThreads(__tstate); |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
9954 | resultobj = SWIG_Py_Void(); | |
9955 | return resultobj; | |
9956 | fail: | |
9957 | return NULL; | |
d55e5bfc RD |
9958 | } |
9959 | ||
9960 | ||
554f62e9 RD |
9961 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9962 | PyObject *resultobj = 0; | |
9963 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9964 | bool result; | |
9965 | void *argp1 = 0 ; | |
9966 | int res1 = 0 ; | |
9967 | PyObject *swig_obj[1] ; | |
9968 | ||
9969 | if (!args) SWIG_fail; | |
9970 | swig_obj[0] = args; | |
9971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9972 | if (!SWIG_IsOK(res1)) { | |
9973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9974 | } | |
9975 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9976 | { | |
9977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9978 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | } | |
9982 | { | |
9983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9984 | } | |
9985 | return resultobj; | |
9986 | fail: | |
9987 | return NULL; | |
9988 | } | |
9989 | ||
9990 | ||
9991 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9992 | PyObject *resultobj = 0; | |
9993 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9994 | wxString *arg2 = 0 ; | |
9995 | void *argp1 = 0 ; | |
9996 | int res1 = 0 ; | |
9997 | bool temp2 = false ; | |
9998 | PyObject * obj0 = 0 ; | |
9999 | PyObject * obj1 = 0 ; | |
10000 | char * kwnames[] = { | |
10001 | (char *) "self",(char *) "filename", NULL | |
10002 | }; | |
10003 | ||
10004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
10005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10006 | if (!SWIG_IsOK(res1)) { | |
10007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
10008 | } | |
10009 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10010 | { | |
10011 | arg2 = wxString_in_helper(obj1); | |
10012 | if (arg2 == NULL) SWIG_fail; | |
10013 | temp2 = true; | |
10014 | } | |
10015 | { | |
10016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10017 | (arg1)->SetFileName((wxString const &)*arg2); | |
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
10021 | resultobj = SWIG_Py_Void(); | |
10022 | { | |
10023 | if (temp2) | |
10024 | delete arg2; | |
10025 | } | |
10026 | return resultobj; | |
10027 | fail: | |
10028 | { | |
10029 | if (temp2) | |
10030 | delete arg2; | |
10031 | } | |
10032 | return NULL; | |
d55e5bfc RD |
10033 | } |
10034 | ||
10035 | ||
554f62e9 RD |
10036 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10037 | PyObject *resultobj = 0; | |
10038 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
10039 | wxString *result = 0 ; | |
10040 | void *argp1 = 0 ; | |
10041 | int res1 = 0 ; | |
10042 | PyObject *swig_obj[1] ; | |
10043 | ||
10044 | if (!args) SWIG_fail; | |
10045 | swig_obj[0] = args; | |
10046 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10047 | if (!SWIG_IsOK(res1)) { | |
10048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
10049 | } | |
10050 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10051 | { | |
10052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10053 | { |
554f62e9 RD |
10054 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
10055 | result = (wxString *) &_result_ref; | |
093d3ff1 | 10056 | } |
554f62e9 RD |
10057 | wxPyEndAllowThreads(__tstate); |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | } | |
10060 | { | |
10061 | #if wxUSE_UNICODE | |
10062 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10063 | #else | |
10064 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10065 | #endif | |
10066 | } | |
10067 | return resultobj; | |
10068 | fail: | |
10069 | return NULL; | |
10070 | } | |
10071 | ||
10072 | ||
10073 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10074 | PyObject *resultobj = 0; | |
10075 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
10076 | int arg2 ; | |
10077 | void *argp1 = 0 ; | |
10078 | int res1 = 0 ; | |
10079 | int val2 ; | |
10080 | int ecode2 = 0 ; | |
10081 | PyObject * obj0 = 0 ; | |
10082 | PyObject * obj1 = 0 ; | |
10083 | char * kwnames[] = { | |
10084 | (char *) "self",(char *) "num", NULL | |
10085 | }; | |
10086 | ||
10087 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
10088 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10089 | if (!SWIG_IsOK(res1)) { | |
10090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
10091 | } | |
10092 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10093 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10094 | if (!SWIG_IsOK(ecode2)) { | |
10095 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
10096 | } | |
10097 | arg2 = static_cast< int >(val2); | |
10098 | { | |
10099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10100 | wxIconLocation_SetIndex(arg1,arg2); | |
10101 | wxPyEndAllowThreads(__tstate); | |
10102 | if (PyErr_Occurred()) SWIG_fail; | |
10103 | } | |
10104 | resultobj = SWIG_Py_Void(); | |
10105 | return resultobj; | |
10106 | fail: | |
10107 | return NULL; | |
d55e5bfc RD |
10108 | } |
10109 | ||
10110 | ||
554f62e9 RD |
10111 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10112 | PyObject *resultobj = 0; | |
10113 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
10114 | int result; | |
10115 | void *argp1 = 0 ; | |
10116 | int res1 = 0 ; | |
10117 | PyObject *swig_obj[1] ; | |
10118 | ||
10119 | if (!args) SWIG_fail; | |
10120 | swig_obj[0] = args; | |
10121 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10122 | if (!SWIG_IsOK(res1)) { | |
10123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
10124 | } | |
10125 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10126 | { | |
10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10128 | result = (int)wxIconLocation_GetIndex(arg1); | |
10129 | wxPyEndAllowThreads(__tstate); | |
10130 | if (PyErr_Occurred()) SWIG_fail; | |
10131 | } | |
10132 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10133 | return resultobj; | |
10134 | fail: | |
10135 | return NULL; | |
d55e5bfc RD |
10136 | } |
10137 | ||
10138 | ||
554f62e9 RD |
10139 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10140 | PyObject *obj; | |
10141 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10142 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
10143 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10144 | } |
10145 | ||
554f62e9 RD |
10146 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10147 | return SWIG_Python_InitShadowInstance(args); | |
10148 | } | |
d55e5bfc | 10149 | |
554f62e9 RD |
10150 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10151 | PyObject *resultobj = 0; | |
10152 | wxIconBundle *result = 0 ; | |
10153 | ||
10154 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
10155 | { | |
10156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10157 | result = (wxIconBundle *)new wxIconBundle(); | |
10158 | wxPyEndAllowThreads(__tstate); | |
10159 | if (PyErr_Occurred()) SWIG_fail; | |
10160 | } | |
10161 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
10162 | return resultobj; | |
10163 | fail: | |
10164 | return NULL; | |
10165 | } | |
10166 | ||
10167 | ||
10168 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10169 | PyObject *resultobj = 0; | |
10170 | wxString *arg1 = 0 ; | |
10171 | long arg2 ; | |
10172 | wxIconBundle *result = 0 ; | |
10173 | bool temp1 = false ; | |
10174 | long val2 ; | |
10175 | int ecode2 = 0 ; | |
10176 | PyObject * obj0 = 0 ; | |
10177 | PyObject * obj1 = 0 ; | |
10178 | char * kwnames[] = { | |
10179 | (char *) "file",(char *) "type", NULL | |
10180 | }; | |
10181 | ||
10182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
10183 | { | |
10184 | arg1 = wxString_in_helper(obj0); | |
10185 | if (arg1 == NULL) SWIG_fail; | |
10186 | temp1 = true; | |
10187 | } | |
10188 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10189 | if (!SWIG_IsOK(ecode2)) { | |
10190 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
10191 | } | |
10192 | arg2 = static_cast< long >(val2); | |
10193 | { | |
10194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10195 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
10196 | wxPyEndAllowThreads(__tstate); | |
10197 | if (PyErr_Occurred()) SWIG_fail; | |
10198 | } | |
10199 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
10200 | { | |
10201 | if (temp1) | |
10202 | delete arg1; | |
10203 | } | |
10204 | return resultobj; | |
10205 | fail: | |
10206 | { | |
10207 | if (temp1) | |
10208 | delete arg1; | |
10209 | } | |
10210 | return NULL; | |
d55e5bfc RD |
10211 | } |
10212 | ||
10213 | ||
554f62e9 RD |
10214 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10215 | PyObject *resultobj = 0; | |
10216 | wxIcon *arg1 = 0 ; | |
10217 | wxIconBundle *result = 0 ; | |
10218 | void *argp1 = 0 ; | |
10219 | int res1 = 0 ; | |
10220 | PyObject * obj0 = 0 ; | |
10221 | char * kwnames[] = { | |
10222 | (char *) "icon", NULL | |
10223 | }; | |
10224 | ||
10225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
10226 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
10227 | if (!SWIG_IsOK(res1)) { | |
10228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
10229 | } | |
10230 | if (!argp1) { | |
10231 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
10232 | } | |
10233 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
10234 | { | |
10235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10236 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
10237 | wxPyEndAllowThreads(__tstate); | |
10238 | if (PyErr_Occurred()) SWIG_fail; | |
10239 | } | |
10240 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
10241 | return resultobj; | |
10242 | fail: | |
10243 | return NULL; | |
d55e5bfc RD |
10244 | } |
10245 | ||
10246 | ||
554f62e9 RD |
10247 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10248 | PyObject *resultobj = 0; | |
10249 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10250 | void *argp1 = 0 ; | |
10251 | int res1 = 0 ; | |
10252 | PyObject *swig_obj[1] ; | |
10253 | ||
10254 | if (!args) SWIG_fail; | |
10255 | swig_obj[0] = args; | |
10256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
10257 | if (!SWIG_IsOK(res1)) { | |
10258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10259 | } | |
10260 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10261 | { | |
10262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10263 | delete arg1; | |
d55e5bfc | 10264 | |
554f62e9 RD |
10265 | wxPyEndAllowThreads(__tstate); |
10266 | if (PyErr_Occurred()) SWIG_fail; | |
10267 | } | |
10268 | resultobj = SWIG_Py_Void(); | |
10269 | return resultobj; | |
10270 | fail: | |
10271 | return NULL; | |
10272 | } | |
10273 | ||
10274 | ||
10275 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10276 | PyObject *resultobj = 0; | |
10277 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10278 | wxIcon *arg2 = 0 ; | |
10279 | void *argp1 = 0 ; | |
10280 | int res1 = 0 ; | |
10281 | void *argp2 = 0 ; | |
10282 | int res2 = 0 ; | |
10283 | PyObject * obj0 = 0 ; | |
10284 | PyObject * obj1 = 0 ; | |
10285 | char * kwnames[] = { | |
10286 | (char *) "self",(char *) "icon", NULL | |
10287 | }; | |
10288 | ||
10289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10291 | if (!SWIG_IsOK(res1)) { | |
10292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10293 | } | |
10294 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10295 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
10296 | if (!SWIG_IsOK(res2)) { | |
10297 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10298 | } | |
10299 | if (!argp2) { | |
10300 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10301 | } | |
10302 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
10303 | { | |
10304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10305 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) SWIG_fail; | |
10308 | } | |
10309 | resultobj = SWIG_Py_Void(); | |
10310 | return resultobj; | |
10311 | fail: | |
10312 | return NULL; | |
10313 | } | |
10314 | ||
10315 | ||
10316 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10317 | PyObject *resultobj = 0; | |
10318 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10319 | wxString *arg2 = 0 ; | |
10320 | long arg3 ; | |
10321 | void *argp1 = 0 ; | |
10322 | int res1 = 0 ; | |
10323 | bool temp2 = false ; | |
10324 | long val3 ; | |
10325 | int ecode3 = 0 ; | |
10326 | PyObject * obj0 = 0 ; | |
10327 | PyObject * obj1 = 0 ; | |
10328 | PyObject * obj2 = 0 ; | |
10329 | char * kwnames[] = { | |
10330 | (char *) "self",(char *) "file",(char *) "type", NULL | |
10331 | }; | |
10332 | ||
10333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10335 | if (!SWIG_IsOK(res1)) { | |
10336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10337 | } | |
10338 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10339 | { | |
10340 | arg2 = wxString_in_helper(obj1); | |
10341 | if (arg2 == NULL) SWIG_fail; | |
10342 | temp2 = true; | |
10343 | } | |
10344 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10345 | if (!SWIG_IsOK(ecode3)) { | |
10346 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
10347 | } | |
10348 | arg3 = static_cast< long >(val3); | |
10349 | { | |
10350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10351 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
10354 | } | |
10355 | resultobj = SWIG_Py_Void(); | |
10356 | { | |
10357 | if (temp2) | |
10358 | delete arg2; | |
10359 | } | |
10360 | return resultobj; | |
10361 | fail: | |
10362 | { | |
10363 | if (temp2) | |
10364 | delete arg2; | |
10365 | } | |
10366 | return NULL; | |
10367 | } | |
10368 | ||
10369 | ||
10370 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10371 | PyObject *resultobj = 0; | |
10372 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10373 | wxSize *arg2 = 0 ; | |
10374 | wxIcon *result = 0 ; | |
10375 | void *argp1 = 0 ; | |
10376 | int res1 = 0 ; | |
10377 | wxSize temp2 ; | |
10378 | PyObject * obj0 = 0 ; | |
10379 | PyObject * obj1 = 0 ; | |
10380 | char * kwnames[] = { | |
10381 | (char *) "self",(char *) "size", NULL | |
10382 | }; | |
10383 | ||
10384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10386 | if (!SWIG_IsOK(res1)) { | |
10387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10388 | } | |
10389 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10390 | { | |
10391 | arg2 = &temp2; | |
10392 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10393 | } | |
10394 | { | |
10395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 10396 | { |
554f62e9 RD |
10397 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
10398 | result = (wxIcon *) &_result_ref; | |
d55e5bfc | 10399 | } |
554f62e9 RD |
10400 | wxPyEndAllowThreads(__tstate); |
10401 | if (PyErr_Occurred()) SWIG_fail; | |
10402 | } | |
10403 | { | |
10404 | wxIcon* resultptr = new wxIcon(*result); | |
10405 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
10406 | } | |
10407 | return resultobj; | |
10408 | fail: | |
10409 | return NULL; | |
10410 | } | |
10411 | ||
10412 | ||
10413 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10414 | PyObject *obj; | |
10415 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10416 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
10417 | return SWIG_Py_Void(); | |
10418 | } | |
10419 | ||
10420 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10421 | return SWIG_Python_InitShadowInstance(args); | |
10422 | } | |
10423 | ||
10424 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10425 | PyObject *resultobj = 0; | |
10426 | wxString *arg1 = 0 ; | |
10427 | long arg2 ; | |
10428 | int arg3 = (int) 0 ; | |
10429 | int arg4 = (int) 0 ; | |
10430 | wxCursor *result = 0 ; | |
10431 | bool temp1 = false ; | |
10432 | long val2 ; | |
10433 | int ecode2 = 0 ; | |
10434 | int val3 ; | |
10435 | int ecode3 = 0 ; | |
10436 | int val4 ; | |
10437 | int ecode4 = 0 ; | |
10438 | PyObject * obj0 = 0 ; | |
10439 | PyObject * obj1 = 0 ; | |
10440 | PyObject * obj2 = 0 ; | |
10441 | PyObject * obj3 = 0 ; | |
10442 | char * kwnames[] = { | |
10443 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
10444 | }; | |
10445 | ||
10446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10447 | { | |
10448 | arg1 = wxString_in_helper(obj0); | |
10449 | if (arg1 == NULL) SWIG_fail; | |
10450 | temp1 = true; | |
10451 | } | |
10452 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10453 | if (!SWIG_IsOK(ecode2)) { | |
10454 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
10455 | } | |
10456 | arg2 = static_cast< long >(val2); | |
10457 | if (obj2) { | |
10458 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10459 | if (!SWIG_IsOK(ecode3)) { | |
10460 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
10461 | } | |
10462 | arg3 = static_cast< int >(val3); | |
10463 | } | |
10464 | if (obj3) { | |
10465 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10466 | if (!SWIG_IsOK(ecode4)) { | |
10467 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10468 | } | |
10469 | arg4 = static_cast< int >(val4); | |
10470 | } | |
10471 | { | |
10472 | if (!wxPyCheckForApp()) SWIG_fail; | |
10473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10474 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10475 | wxPyEndAllowThreads(__tstate); | |
10476 | if (PyErr_Occurred()) SWIG_fail; | |
10477 | } | |
10478 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10479 | { | |
10480 | if (temp1) | |
10481 | delete arg1; | |
10482 | } | |
10483 | return resultobj; | |
10484 | fail: | |
10485 | { | |
10486 | if (temp1) | |
10487 | delete arg1; | |
10488 | } | |
10489 | return NULL; | |
d55e5bfc RD |
10490 | } |
10491 | ||
10492 | ||
554f62e9 RD |
10493 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10494 | PyObject *resultobj = 0; | |
10495 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10496 | void *argp1 = 0 ; | |
10497 | int res1 = 0 ; | |
10498 | PyObject *swig_obj[1] ; | |
10499 | ||
10500 | if (!args) SWIG_fail; | |
10501 | swig_obj[0] = args; | |
10502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10503 | if (!SWIG_IsOK(res1)) { | |
10504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10505 | } | |
10506 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10507 | { | |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10509 | delete arg1; | |
d55e5bfc | 10510 | |
554f62e9 RD |
10511 | wxPyEndAllowThreads(__tstate); |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
10513 | } | |
10514 | resultobj = SWIG_Py_Void(); | |
10515 | return resultobj; | |
10516 | fail: | |
10517 | return NULL; | |
10518 | } | |
10519 | ||
10520 | ||
10521 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10522 | PyObject *resultobj = 0; | |
10523 | int arg1 ; | |
10524 | wxCursor *result = 0 ; | |
10525 | int val1 ; | |
10526 | int ecode1 = 0 ; | |
10527 | PyObject * obj0 = 0 ; | |
10528 | char * kwnames[] = { | |
10529 | (char *) "id", NULL | |
10530 | }; | |
10531 | ||
10532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10533 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10534 | if (!SWIG_IsOK(ecode1)) { | |
10535 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10536 | } | |
10537 | arg1 = static_cast< int >(val1); | |
10538 | { | |
10539 | if (!wxPyCheckForApp()) SWIG_fail; | |
10540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10541 | result = (wxCursor *)new wxCursor(arg1); | |
10542 | wxPyEndAllowThreads(__tstate); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | return NULL; | |
10549 | } | |
10550 | ||
10551 | ||
10552 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10553 | PyObject *resultobj = 0; | |
10554 | wxImage *arg1 = 0 ; | |
10555 | wxCursor *result = 0 ; | |
10556 | void *argp1 = 0 ; | |
10557 | int res1 = 0 ; | |
10558 | PyObject * obj0 = 0 ; | |
10559 | char * kwnames[] = { | |
10560 | (char *) "image", NULL | |
10561 | }; | |
10562 | ||
10563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10564 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10565 | if (!SWIG_IsOK(res1)) { | |
10566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10567 | } | |
10568 | if (!argp1) { | |
10569 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10570 | } | |
10571 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10572 | { | |
10573 | if (!wxPyCheckForApp()) SWIG_fail; | |
10574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10575 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10576 | wxPyEndAllowThreads(__tstate); | |
10577 | if (PyErr_Occurred()) SWIG_fail; | |
10578 | } | |
10579 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10580 | return resultobj; | |
10581 | fail: | |
10582 | return NULL; | |
d55e5bfc RD |
10583 | } |
10584 | ||
10585 | ||
554f62e9 RD |
10586 | SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10587 | PyObject *resultobj = 0; | |
10588 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10589 | long result; | |
10590 | void *argp1 = 0 ; | |
10591 | int res1 = 0 ; | |
10592 | PyObject *swig_obj[1] ; | |
10593 | ||
10594 | if (!args) SWIG_fail; | |
10595 | swig_obj[0] = args; | |
10596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10597 | if (!SWIG_IsOK(res1)) { | |
10598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10599 | } | |
10600 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10601 | { | |
10602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10603 | result = (long)(arg1)->GetHandle(); | |
10604 | wxPyEndAllowThreads(__tstate); | |
10605 | if (PyErr_Occurred()) SWIG_fail; | |
10606 | } | |
10607 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
10608 | return resultobj; | |
10609 | fail: | |
10610 | return NULL; | |
10611 | } | |
10612 | ||
10613 | ||
10614 | SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10615 | PyObject *resultobj = 0; | |
10616 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10617 | long arg2 ; | |
10618 | void *argp1 = 0 ; | |
10619 | int res1 = 0 ; | |
10620 | long val2 ; | |
10621 | int ecode2 = 0 ; | |
10622 | PyObject * obj0 = 0 ; | |
10623 | PyObject * obj1 = 0 ; | |
10624 | char * kwnames[] = { | |
10625 | (char *) "self",(char *) "handle", NULL | |
10626 | }; | |
10627 | ||
10628 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
10629 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10630 | if (!SWIG_IsOK(res1)) { | |
10631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10632 | } | |
10633 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10634 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10635 | if (!SWIG_IsOK(ecode2)) { | |
10636 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
10637 | } | |
10638 | arg2 = static_cast< long >(val2); | |
10639 | { | |
10640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10641 | wxCursor_SetHandle(arg1,arg2); | |
10642 | wxPyEndAllowThreads(__tstate); | |
10643 | if (PyErr_Occurred()) SWIG_fail; | |
10644 | } | |
10645 | resultobj = SWIG_Py_Void(); | |
10646 | return resultobj; | |
10647 | fail: | |
10648 | return NULL; | |
d55e5bfc RD |
10649 | } |
10650 | ||
10651 | ||
b39fe951 | 10652 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
10653 | PyObject *resultobj = 0; |
10654 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10655 | bool result; | |
10656 | void *argp1 = 0 ; | |
10657 | int res1 = 0 ; | |
10658 | PyObject *swig_obj[1] ; | |
10659 | ||
10660 | if (!args) SWIG_fail; | |
10661 | swig_obj[0] = args; | |
10662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10663 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
554f62e9 RD |
10665 | } |
10666 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10667 | { | |
10668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10669 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
10670 | wxPyEndAllowThreads(__tstate); |
10671 | if (PyErr_Occurred()) SWIG_fail; | |
10672 | } | |
10673 | { | |
10674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10675 | } | |
10676 | return resultobj; | |
10677 | fail: | |
10678 | return NULL; | |
d55e5bfc RD |
10679 | } |
10680 | ||
10681 | ||
554f62e9 RD |
10682 | SWIGINTERN PyObject *_wrap_Cursor_GetWidth(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_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10695 | } | |
10696 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10697 | { | |
10698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10699 | result = (int)(arg1)->GetWidth(); | |
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_GetHeight(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_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10723 | } | |
10724 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10725 | { | |
10726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10727 | result = (int)(arg1)->GetHeight(); | |
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; | |
d55e5bfc RD |
10735 | } |
10736 | ||
10737 | ||
554f62e9 RD |
10738 | SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10739 | PyObject *resultobj = 0; | |
10740 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10741 | int result; | |
10742 | void *argp1 = 0 ; | |
10743 | int res1 = 0 ; | |
10744 | PyObject *swig_obj[1] ; | |
10745 | ||
10746 | if (!args) SWIG_fail; | |
10747 | swig_obj[0] = args; | |
10748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10749 | if (!SWIG_IsOK(res1)) { | |
10750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10751 | } | |
10752 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10753 | { | |
10754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10755 | result = (int)(arg1)->GetDepth(); | |
10756 | wxPyEndAllowThreads(__tstate); | |
10757 | if (PyErr_Occurred()) SWIG_fail; | |
10758 | } | |
10759 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10760 | return resultobj; | |
10761 | fail: | |
10762 | return NULL; | |
10763 | } | |
10764 | ||
10765 | ||
10766 | SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10767 | PyObject *resultobj = 0; | |
10768 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10769 | int arg2 ; | |
10770 | void *argp1 = 0 ; | |
10771 | int res1 = 0 ; | |
10772 | int val2 ; | |
10773 | int ecode2 = 0 ; | |
10774 | PyObject * obj0 = 0 ; | |
10775 | PyObject * obj1 = 0 ; | |
10776 | char * kwnames[] = { | |
10777 | (char *) "self",(char *) "w", NULL | |
10778 | }; | |
10779 | ||
10780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
10781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10782 | if (!SWIG_IsOK(res1)) { | |
10783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10784 | } | |
10785 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10786 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10787 | if (!SWIG_IsOK(ecode2)) { | |
10788 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
10789 | } | |
10790 | arg2 = static_cast< int >(val2); | |
10791 | { | |
10792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10793 | (arg1)->SetWidth(arg2); | |
10794 | wxPyEndAllowThreads(__tstate); | |
10795 | if (PyErr_Occurred()) SWIG_fail; | |
10796 | } | |
10797 | resultobj = SWIG_Py_Void(); | |
10798 | return resultobj; | |
10799 | fail: | |
10800 | return NULL; | |
10801 | } | |
10802 | ||
10803 | ||
10804 | SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10805 | PyObject *resultobj = 0; | |
10806 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10807 | int arg2 ; | |
10808 | void *argp1 = 0 ; | |
10809 | int res1 = 0 ; | |
10810 | int val2 ; | |
10811 | int ecode2 = 0 ; | |
10812 | PyObject * obj0 = 0 ; | |
10813 | PyObject * obj1 = 0 ; | |
10814 | char * kwnames[] = { | |
10815 | (char *) "self",(char *) "h", NULL | |
10816 | }; | |
10817 | ||
10818 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
10819 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10820 | if (!SWIG_IsOK(res1)) { | |
10821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10822 | } | |
10823 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10824 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10825 | if (!SWIG_IsOK(ecode2)) { | |
10826 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
10827 | } | |
10828 | arg2 = static_cast< int >(val2); | |
10829 | { | |
10830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10831 | (arg1)->SetHeight(arg2); | |
10832 | wxPyEndAllowThreads(__tstate); | |
10833 | if (PyErr_Occurred()) SWIG_fail; | |
10834 | } | |
10835 | resultobj = SWIG_Py_Void(); | |
10836 | return resultobj; | |
10837 | fail: | |
10838 | return NULL; | |
10839 | } | |
10840 | ||
10841 | ||
10842 | SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10843 | PyObject *resultobj = 0; | |
10844 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10845 | int arg2 ; | |
10846 | void *argp1 = 0 ; | |
10847 | int res1 = 0 ; | |
10848 | int val2 ; | |
10849 | int ecode2 = 0 ; | |
10850 | PyObject * obj0 = 0 ; | |
10851 | PyObject * obj1 = 0 ; | |
10852 | char * kwnames[] = { | |
10853 | (char *) "self",(char *) "d", NULL | |
10854 | }; | |
10855 | ||
10856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
10857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10858 | if (!SWIG_IsOK(res1)) { | |
10859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10860 | } | |
10861 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10863 | if (!SWIG_IsOK(ecode2)) { | |
10864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
10865 | } | |
10866 | arg2 = static_cast< int >(val2); | |
10867 | { | |
10868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10869 | (arg1)->SetDepth(arg2); | |
10870 | wxPyEndAllowThreads(__tstate); | |
10871 | if (PyErr_Occurred()) SWIG_fail; | |
10872 | } | |
10873 | resultobj = SWIG_Py_Void(); | |
10874 | return resultobj; | |
10875 | fail: | |
10876 | return NULL; | |
10877 | } | |
10878 | ||
10879 | ||
10880 | SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10881 | PyObject *resultobj = 0; | |
10882 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10883 | wxSize *arg2 = 0 ; | |
10884 | void *argp1 = 0 ; | |
10885 | int res1 = 0 ; | |
10886 | wxSize temp2 ; | |
10887 | PyObject * obj0 = 0 ; | |
10888 | PyObject * obj1 = 0 ; | |
10889 | char * kwnames[] = { | |
10890 | (char *) "self",(char *) "size", NULL | |
10891 | }; | |
10892 | ||
10893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10895 | if (!SWIG_IsOK(res1)) { | |
10896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10897 | } | |
10898 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10899 | { | |
10900 | arg2 = &temp2; | |
10901 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10902 | } | |
10903 | { | |
10904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10905 | (arg1)->SetSize((wxSize const &)*arg2); | |
10906 | wxPyEndAllowThreads(__tstate); | |
10907 | if (PyErr_Occurred()) SWIG_fail; | |
10908 | } | |
10909 | resultobj = SWIG_Py_Void(); | |
10910 | return resultobj; | |
10911 | fail: | |
10912 | return NULL; | |
10913 | } | |
10914 | ||
10915 | ||
10916 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10917 | PyObject *obj; | |
10918 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10919 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10920 | return SWIG_Py_Void(); | |
10921 | } | |
10922 | ||
10923 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10924 | return SWIG_Python_InitShadowInstance(args); | |
10925 | } | |
10926 | ||
10927 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10928 | PyObject *resultobj = 0; | |
10929 | int arg1 = (int) 0 ; | |
10930 | int arg2 = (int) 0 ; | |
10931 | int arg3 = (int) 0 ; | |
10932 | int arg4 = (int) 0 ; | |
10933 | wxRegion *result = 0 ; | |
10934 | int val1 ; | |
10935 | int ecode1 = 0 ; | |
10936 | int val2 ; | |
10937 | int ecode2 = 0 ; | |
10938 | int val3 ; | |
10939 | int ecode3 = 0 ; | |
10940 | int val4 ; | |
10941 | int ecode4 = 0 ; | |
10942 | PyObject * obj0 = 0 ; | |
10943 | PyObject * obj1 = 0 ; | |
10944 | PyObject * obj2 = 0 ; | |
10945 | PyObject * obj3 = 0 ; | |
10946 | char * kwnames[] = { | |
10947 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10948 | }; | |
10949 | ||
10950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10951 | if (obj0) { | |
10952 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10953 | if (!SWIG_IsOK(ecode1)) { | |
10954 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10955 | } | |
10956 | arg1 = static_cast< int >(val1); | |
10957 | } | |
10958 | if (obj1) { | |
10959 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10960 | if (!SWIG_IsOK(ecode2)) { | |
10961 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10962 | } | |
10963 | arg2 = static_cast< int >(val2); | |
10964 | } | |
10965 | if (obj2) { | |
10966 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10967 | if (!SWIG_IsOK(ecode3)) { | |
10968 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10969 | } | |
10970 | arg3 = static_cast< int >(val3); | |
10971 | } | |
10972 | if (obj3) { | |
10973 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10974 | if (!SWIG_IsOK(ecode4)) { | |
10975 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10976 | } | |
10977 | arg4 = static_cast< int >(val4); | |
10978 | } | |
10979 | { | |
10980 | if (!wxPyCheckForApp()) SWIG_fail; | |
10981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10982 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10983 | wxPyEndAllowThreads(__tstate); | |
10984 | if (PyErr_Occurred()) SWIG_fail; | |
10985 | } | |
10986 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10987 | return resultobj; | |
10988 | fail: | |
10989 | return NULL; | |
10990 | } | |
10991 | ||
10992 | ||
10993 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10994 | PyObject *resultobj = 0; | |
10995 | wxBitmap *arg1 = 0 ; | |
10996 | wxRegion *result = 0 ; | |
10997 | void *argp1 = 0 ; | |
10998 | int res1 = 0 ; | |
10999 | PyObject * obj0 = 0 ; | |
11000 | char * kwnames[] = { | |
11001 | (char *) "bmp", NULL | |
11002 | }; | |
11003 | ||
11004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
11005 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11006 | if (!SWIG_IsOK(res1)) { | |
11007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11008 | } | |
11009 | if (!argp1) { | |
11010 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11011 | } | |
11012 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
11013 | { | |
11014 | if (!wxPyCheckForApp()) SWIG_fail; | |
11015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11016 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
11017 | wxPyEndAllowThreads(__tstate); | |
11018 | if (PyErr_Occurred()) SWIG_fail; | |
11019 | } | |
11020 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
11021 | return resultobj; | |
11022 | fail: | |
11023 | return NULL; | |
11024 | } | |
11025 | ||
11026 | ||
11027 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11028 | PyObject *resultobj = 0; | |
11029 | wxBitmap *arg1 = 0 ; | |
11030 | wxColour *arg2 = 0 ; | |
11031 | int arg3 = (int) 0 ; | |
11032 | wxRegion *result = 0 ; | |
11033 | void *argp1 = 0 ; | |
11034 | int res1 = 0 ; | |
11035 | wxColour temp2 ; | |
11036 | int val3 ; | |
11037 | int ecode3 = 0 ; | |
11038 | PyObject * obj0 = 0 ; | |
11039 | PyObject * obj1 = 0 ; | |
11040 | PyObject * obj2 = 0 ; | |
11041 | char * kwnames[] = { | |
11042 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11043 | }; | |
11044 | ||
11045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11046 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11047 | if (!SWIG_IsOK(res1)) { | |
11048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11049 | } | |
11050 | if (!argp1) { | |
11051 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11052 | } | |
11053 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
11054 | { | |
11055 | arg2 = &temp2; | |
11056 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11057 | } | |
11058 | if (obj2) { | |
11059 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11060 | if (!SWIG_IsOK(ecode3)) { | |
11061 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
11062 | } | |
11063 | arg3 = static_cast< int >(val3); | |
11064 | } | |
11065 | { | |
11066 | if (!wxPyCheckForApp()) SWIG_fail; | |
11067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11068 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
11069 | wxPyEndAllowThreads(__tstate); | |
11070 | if (PyErr_Occurred()) SWIG_fail; | |
11071 | } | |
11072 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
11073 | return resultobj; | |
11074 | fail: | |
11075 | return NULL; | |
11076 | } | |
11077 | ||
11078 | ||
11079 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11080 | PyObject *resultobj = 0; | |
11081 | int arg1 ; | |
11082 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11083 | int arg3 = (int) wxWINDING_RULE ; | |
11084 | wxRegion *result = 0 ; | |
11085 | int val3 ; | |
11086 | int ecode3 = 0 ; | |
11087 | PyObject * obj0 = 0 ; | |
11088 | PyObject * obj1 = 0 ; | |
11089 | char * kwnames[] = { | |
11090 | (char *) "points",(char *) "fillStyle", NULL | |
11091 | }; | |
11092 | ||
11093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
11094 | { | |
11095 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
11096 | if (arg2 == NULL) SWIG_fail; | |
11097 | } | |
11098 | if (obj1) { | |
11099 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
11100 | if (!SWIG_IsOK(ecode3)) { | |
11101 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
11102 | } | |
11103 | arg3 = static_cast< int >(val3); | |
11104 | } | |
11105 | { | |
11106 | if (!wxPyCheckForApp()) SWIG_fail; | |
11107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11108 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
11109 | wxPyEndAllowThreads(__tstate); | |
11110 | if (PyErr_Occurred()) SWIG_fail; | |
11111 | } | |
11112 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
11113 | { | |
11114 | if (arg2) delete [] arg2; | |
11115 | } | |
11116 | return resultobj; | |
11117 | fail: | |
11118 | { | |
11119 | if (arg2) delete [] arg2; | |
11120 | } | |
11121 | return NULL; | |
d55e5bfc RD |
11122 | } |
11123 | ||
11124 | ||
554f62e9 RD |
11125 | SWIGINTERN PyObject *_wrap_delete_Region(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, SWIG_POINTER_DISOWN | 0 ); | |
11135 | if (!SWIG_IsOK(res1)) { | |
11136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11137 | } | |
11138 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11139 | { | |
11140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11141 | delete arg1; | |
d55e5bfc | 11142 | |
554f62e9 RD |
11143 | wxPyEndAllowThreads(__tstate); |
11144 | if (PyErr_Occurred()) SWIG_fail; | |
11145 | } | |
11146 | resultobj = SWIG_Py_Void(); | |
11147 | return resultobj; | |
11148 | fail: | |
11149 | return NULL; | |
d55e5bfc RD |
11150 | } |
11151 | ||
11152 | ||
554f62e9 RD |
11153 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11154 | PyObject *resultobj = 0; | |
11155 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11156 | void *argp1 = 0 ; | |
11157 | int res1 = 0 ; | |
11158 | PyObject *swig_obj[1] ; | |
11159 | ||
11160 | if (!args) SWIG_fail; | |
11161 | swig_obj[0] = args; | |
11162 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11163 | if (!SWIG_IsOK(res1)) { | |
11164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11165 | } | |
11166 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11167 | { | |
11168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11169 | (arg1)->Clear(); | |
11170 | wxPyEndAllowThreads(__tstate); | |
11171 | if (PyErr_Occurred()) SWIG_fail; | |
11172 | } | |
11173 | resultobj = SWIG_Py_Void(); | |
11174 | return resultobj; | |
11175 | fail: | |
11176 | return NULL; | |
11177 | } | |
11178 | ||
11179 | ||
11180 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11181 | PyObject *resultobj = 0; | |
11182 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11183 | int arg2 ; | |
11184 | int arg3 ; | |
11185 | bool result; | |
11186 | void *argp1 = 0 ; | |
11187 | int res1 = 0 ; | |
11188 | int val2 ; | |
11189 | int ecode2 = 0 ; | |
11190 | int val3 ; | |
11191 | int ecode3 = 0 ; | |
11192 | PyObject * obj0 = 0 ; | |
11193 | PyObject * obj1 = 0 ; | |
11194 | PyObject * obj2 = 0 ; | |
11195 | char * kwnames[] = { | |
11196 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11197 | }; | |
11198 | ||
11199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11201 | if (!SWIG_IsOK(res1)) { | |
11202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11203 | } | |
11204 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11205 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11206 | if (!SWIG_IsOK(ecode2)) { | |
11207 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
11208 | } | |
11209 | arg2 = static_cast< int >(val2); | |
11210 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11211 | if (!SWIG_IsOK(ecode3)) { | |
11212 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
11213 | } | |
11214 | arg3 = static_cast< int >(val3); | |
11215 | { | |
11216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11217 | result = (bool)(arg1)->Offset(arg2,arg3); | |
11218 | wxPyEndAllowThreads(__tstate); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | } | |
11221 | { | |
11222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11223 | } | |
11224 | return resultobj; | |
11225 | fail: | |
11226 | return NULL; | |
11227 | } | |
11228 | ||
11229 | ||
11230 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11231 | PyObject *resultobj = 0; | |
11232 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11233 | int arg2 ; | |
11234 | int arg3 ; | |
11235 | wxRegionContain result; | |
11236 | void *argp1 = 0 ; | |
11237 | int res1 = 0 ; | |
11238 | int val2 ; | |
11239 | int ecode2 = 0 ; | |
11240 | int val3 ; | |
11241 | int ecode3 = 0 ; | |
11242 | PyObject * obj0 = 0 ; | |
11243 | PyObject * obj1 = 0 ; | |
11244 | PyObject * obj2 = 0 ; | |
11245 | char * kwnames[] = { | |
11246 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11247 | }; | |
11248 | ||
11249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11251 | if (!SWIG_IsOK(res1)) { | |
11252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11253 | } | |
11254 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11255 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11256 | if (!SWIG_IsOK(ecode2)) { | |
11257 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
11258 | } | |
11259 | arg2 = static_cast< int >(val2); | |
11260 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11261 | if (!SWIG_IsOK(ecode3)) { | |
11262 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
11263 | } | |
11264 | arg3 = static_cast< int >(val3); | |
11265 | { | |
11266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11267 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
11271 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11272 | return resultobj; | |
11273 | fail: | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
11278 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11279 | PyObject *resultobj = 0; | |
11280 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11281 | wxPoint *arg2 = 0 ; | |
11282 | wxRegionContain result; | |
11283 | void *argp1 = 0 ; | |
11284 | int res1 = 0 ; | |
11285 | wxPoint temp2 ; | |
11286 | PyObject * obj0 = 0 ; | |
11287 | PyObject * obj1 = 0 ; | |
11288 | char * kwnames[] = { | |
11289 | (char *) "self",(char *) "pt", NULL | |
11290 | }; | |
11291 | ||
11292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
11293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11294 | if (!SWIG_IsOK(res1)) { | |
11295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11296 | } | |
11297 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11298 | { | |
11299 | arg2 = &temp2; | |
11300 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11301 | } | |
11302 | { | |
11303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11304 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
11305 | wxPyEndAllowThreads(__tstate); | |
11306 | if (PyErr_Occurred()) SWIG_fail; | |
11307 | } | |
11308 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11309 | return resultobj; | |
11310 | fail: | |
11311 | return NULL; | |
11312 | } | |
11313 | ||
11314 | ||
11315 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11316 | PyObject *resultobj = 0; | |
11317 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11318 | wxRect *arg2 = 0 ; | |
11319 | wxRegionContain result; | |
11320 | void *argp1 = 0 ; | |
11321 | int res1 = 0 ; | |
11322 | wxRect temp2 ; | |
11323 | PyObject * obj0 = 0 ; | |
11324 | PyObject * obj1 = 0 ; | |
11325 | char * kwnames[] = { | |
11326 | (char *) "self",(char *) "rect", NULL | |
11327 | }; | |
11328 | ||
11329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11331 | if (!SWIG_IsOK(res1)) { | |
11332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11333 | } | |
11334 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11335 | { | |
11336 | arg2 = &temp2; | |
11337 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11338 | } | |
11339 | { | |
11340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11341 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
11342 | wxPyEndAllowThreads(__tstate); | |
11343 | if (PyErr_Occurred()) SWIG_fail; | |
11344 | } | |
11345 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11346 | return resultobj; | |
11347 | fail: | |
11348 | return NULL; | |
11349 | } | |
11350 | ||
11351 | ||
11352 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11353 | PyObject *resultobj = 0; | |
11354 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11355 | int arg2 ; | |
11356 | int arg3 ; | |
11357 | int arg4 ; | |
11358 | int arg5 ; | |
11359 | wxRegionContain result; | |
11360 | void *argp1 = 0 ; | |
11361 | int res1 = 0 ; | |
11362 | int val2 ; | |
11363 | int ecode2 = 0 ; | |
11364 | int val3 ; | |
11365 | int ecode3 = 0 ; | |
11366 | int val4 ; | |
11367 | int ecode4 = 0 ; | |
11368 | int val5 ; | |
11369 | int ecode5 = 0 ; | |
11370 | PyObject * obj0 = 0 ; | |
11371 | PyObject * obj1 = 0 ; | |
11372 | PyObject * obj2 = 0 ; | |
11373 | PyObject * obj3 = 0 ; | |
11374 | PyObject * obj4 = 0 ; | |
11375 | char * kwnames[] = { | |
11376 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
11377 | }; | |
11378 | ||
11379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11380 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11381 | if (!SWIG_IsOK(res1)) { | |
11382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11383 | } | |
11384 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11385 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11386 | if (!SWIG_IsOK(ecode2)) { | |
11387 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
11388 | } | |
11389 | arg2 = static_cast< int >(val2); | |
11390 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11391 | if (!SWIG_IsOK(ecode3)) { | |
11392 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
11393 | } | |
11394 | arg3 = static_cast< int >(val3); | |
11395 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11396 | if (!SWIG_IsOK(ecode4)) { | |
11397 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
11398 | } | |
11399 | arg4 = static_cast< int >(val4); | |
11400 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11401 | if (!SWIG_IsOK(ecode5)) { | |
11402 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
11403 | } | |
11404 | arg5 = static_cast< int >(val5); | |
11405 | { | |
11406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11407 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
11408 | wxPyEndAllowThreads(__tstate); | |
11409 | if (PyErr_Occurred()) SWIG_fail; | |
11410 | } | |
11411 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11412 | return resultobj; | |
11413 | fail: | |
11414 | return NULL; | |
d55e5bfc RD |
11415 | } |
11416 | ||
11417 | ||
554f62e9 RD |
11418 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11419 | PyObject *resultobj = 0; | |
11420 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11421 | wxRect result; | |
11422 | void *argp1 = 0 ; | |
11423 | int res1 = 0 ; | |
11424 | PyObject *swig_obj[1] ; | |
11425 | ||
11426 | if (!args) SWIG_fail; | |
11427 | swig_obj[0] = args; | |
11428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11429 | if (!SWIG_IsOK(res1)) { | |
11430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11431 | } | |
11432 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11433 | { | |
11434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11435 | result = (arg1)->GetBox(); | |
11436 | wxPyEndAllowThreads(__tstate); | |
11437 | if (PyErr_Occurred()) SWIG_fail; | |
11438 | } | |
11439 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11440 | return resultobj; | |
11441 | fail: | |
11442 | return NULL; | |
11443 | } | |
11444 | ||
11445 | ||
11446 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11447 | PyObject *resultobj = 0; | |
11448 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11449 | int arg2 ; | |
11450 | int arg3 ; | |
11451 | int arg4 ; | |
11452 | int arg5 ; | |
11453 | bool result; | |
11454 | void *argp1 = 0 ; | |
11455 | int res1 = 0 ; | |
11456 | int val2 ; | |
11457 | int ecode2 = 0 ; | |
11458 | int val3 ; | |
11459 | int ecode3 = 0 ; | |
11460 | int val4 ; | |
11461 | int ecode4 = 0 ; | |
11462 | int val5 ; | |
11463 | int ecode5 = 0 ; | |
11464 | PyObject * obj0 = 0 ; | |
11465 | PyObject * obj1 = 0 ; | |
11466 | PyObject * obj2 = 0 ; | |
11467 | PyObject * obj3 = 0 ; | |
11468 | PyObject * obj4 = 0 ; | |
11469 | char * kwnames[] = { | |
11470 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11471 | }; | |
11472 | ||
11473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11474 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11475 | if (!SWIG_IsOK(res1)) { | |
11476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11477 | } | |
11478 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11479 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11480 | if (!SWIG_IsOK(ecode2)) { | |
11481 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
11482 | } | |
11483 | arg2 = static_cast< int >(val2); | |
11484 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11485 | if (!SWIG_IsOK(ecode3)) { | |
11486 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
11487 | } | |
11488 | arg3 = static_cast< int >(val3); | |
11489 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11490 | if (!SWIG_IsOK(ecode4)) { | |
11491 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
11492 | } | |
11493 | arg4 = static_cast< int >(val4); | |
11494 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11495 | if (!SWIG_IsOK(ecode5)) { | |
11496 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
11497 | } | |
11498 | arg5 = static_cast< int >(val5); | |
11499 | { | |
11500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11501 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | { | |
11506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11507 | } | |
11508 | return resultobj; | |
11509 | fail: | |
11510 | return NULL; | |
11511 | } | |
11512 | ||
11513 | ||
11514 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11515 | PyObject *resultobj = 0; | |
11516 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11517 | wxRect *arg2 = 0 ; | |
11518 | bool result; | |
11519 | void *argp1 = 0 ; | |
11520 | int res1 = 0 ; | |
11521 | wxRect temp2 ; | |
11522 | PyObject * obj0 = 0 ; | |
11523 | PyObject * obj1 = 0 ; | |
11524 | char * kwnames[] = { | |
11525 | (char *) "self",(char *) "rect", NULL | |
11526 | }; | |
11527 | ||
11528 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11529 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11530 | if (!SWIG_IsOK(res1)) { | |
11531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11532 | } | |
11533 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11534 | { | |
11535 | arg2 = &temp2; | |
11536 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11537 | } | |
11538 | { | |
11539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11540 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
11541 | wxPyEndAllowThreads(__tstate); | |
11542 | if (PyErr_Occurred()) SWIG_fail; | |
11543 | } | |
11544 | { | |
11545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11546 | } | |
11547 | return resultobj; | |
11548 | fail: | |
11549 | return NULL; | |
11550 | } | |
11551 | ||
11552 | ||
11553 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11554 | PyObject *resultobj = 0; | |
11555 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11556 | wxRegion *arg2 = 0 ; | |
11557 | bool result; | |
11558 | void *argp1 = 0 ; | |
11559 | int res1 = 0 ; | |
11560 | void *argp2 = 0 ; | |
11561 | int res2 = 0 ; | |
11562 | PyObject * obj0 = 0 ; | |
11563 | PyObject * obj1 = 0 ; | |
11564 | char * kwnames[] = { | |
11565 | (char *) "self",(char *) "region", NULL | |
11566 | }; | |
11567 | ||
11568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11570 | if (!SWIG_IsOK(res1)) { | |
11571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11572 | } | |
11573 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11574 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11575 | if (!SWIG_IsOK(res2)) { | |
11576 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11577 | } | |
11578 | if (!argp2) { | |
11579 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11580 | } | |
11581 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11582 | { | |
11583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11584 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
11585 | wxPyEndAllowThreads(__tstate); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
11587 | } | |
11588 | { | |
11589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11590 | } | |
11591 | return resultobj; | |
11592 | fail: | |
11593 | return NULL; | |
d55e5bfc RD |
11594 | } |
11595 | ||
11596 | ||
554f62e9 RD |
11597 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11598 | PyObject *resultobj = 0; | |
11599 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11600 | bool result; | |
11601 | void *argp1 = 0 ; | |
11602 | int res1 = 0 ; | |
11603 | PyObject *swig_obj[1] ; | |
11604 | ||
11605 | if (!args) SWIG_fail; | |
11606 | swig_obj[0] = args; | |
11607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11608 | if (!SWIG_IsOK(res1)) { | |
11609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11610 | } | |
11611 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11612 | { | |
11613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11614 | result = (bool)(arg1)->IsEmpty(); | |
11615 | wxPyEndAllowThreads(__tstate); | |
11616 | if (PyErr_Occurred()) SWIG_fail; | |
11617 | } | |
11618 | { | |
11619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11620 | } | |
11621 | return resultobj; | |
11622 | fail: | |
11623 | return NULL; | |
11624 | } | |
11625 | ||
11626 | ||
f5263701 RD |
11627 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11628 | PyObject *resultobj = 0; | |
11629 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11630 | wxRegion *arg2 = 0 ; | |
11631 | bool result; | |
11632 | void *argp1 = 0 ; | |
11633 | int res1 = 0 ; | |
11634 | void *argp2 = 0 ; | |
11635 | int res2 = 0 ; | |
11636 | PyObject * obj0 = 0 ; | |
11637 | PyObject * obj1 = 0 ; | |
11638 | char * kwnames[] = { | |
11639 | (char *) "self",(char *) "region", NULL | |
11640 | }; | |
11641 | ||
11642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
11643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11644 | if (!SWIG_IsOK(res1)) { | |
11645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
11646 | } | |
11647 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11648 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11649 | if (!SWIG_IsOK(res2)) { | |
11650 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11651 | } | |
11652 | if (!argp2) { | |
11653 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11654 | } | |
11655 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11656 | { | |
11657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11658 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
11659 | wxPyEndAllowThreads(__tstate); | |
11660 | if (PyErr_Occurred()) SWIG_fail; | |
11661 | } | |
11662 | { | |
11663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11664 | } | |
11665 | return resultobj; | |
11666 | fail: | |
11667 | return NULL; | |
11668 | } | |
11669 | ||
11670 | ||
554f62e9 RD |
11671 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11672 | PyObject *resultobj = 0; | |
11673 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11674 | int arg2 ; | |
11675 | int arg3 ; | |
11676 | int arg4 ; | |
11677 | int arg5 ; | |
11678 | bool result; | |
11679 | void *argp1 = 0 ; | |
11680 | int res1 = 0 ; | |
11681 | int val2 ; | |
11682 | int ecode2 = 0 ; | |
11683 | int val3 ; | |
11684 | int ecode3 = 0 ; | |
11685 | int val4 ; | |
11686 | int ecode4 = 0 ; | |
11687 | int val5 ; | |
11688 | int ecode5 = 0 ; | |
11689 | PyObject * obj0 = 0 ; | |
11690 | PyObject * obj1 = 0 ; | |
11691 | PyObject * obj2 = 0 ; | |
11692 | PyObject * obj3 = 0 ; | |
11693 | PyObject * obj4 = 0 ; | |
11694 | char * kwnames[] = { | |
11695 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11696 | }; | |
11697 | ||
11698 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11699 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11700 | if (!SWIG_IsOK(res1)) { | |
11701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11702 | } | |
11703 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11704 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11705 | if (!SWIG_IsOK(ecode2)) { | |
11706 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
11707 | } | |
11708 | arg2 = static_cast< int >(val2); | |
11709 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11710 | if (!SWIG_IsOK(ecode3)) { | |
11711 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
11712 | } | |
11713 | arg3 = static_cast< int >(val3); | |
11714 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11715 | if (!SWIG_IsOK(ecode4)) { | |
11716 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
11717 | } | |
11718 | arg4 = static_cast< int >(val4); | |
11719 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11720 | if (!SWIG_IsOK(ecode5)) { | |
11721 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
11722 | } | |
11723 | arg5 = static_cast< int >(val5); | |
11724 | { | |
11725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11726 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
11727 | wxPyEndAllowThreads(__tstate); | |
11728 | if (PyErr_Occurred()) SWIG_fail; | |
11729 | } | |
11730 | { | |
11731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11732 | } | |
11733 | return resultobj; | |
11734 | fail: | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
11739 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11740 | PyObject *resultobj = 0; | |
11741 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11742 | wxRect *arg2 = 0 ; | |
11743 | bool result; | |
11744 | void *argp1 = 0 ; | |
11745 | int res1 = 0 ; | |
11746 | wxRect temp2 ; | |
11747 | PyObject * obj0 = 0 ; | |
11748 | PyObject * obj1 = 0 ; | |
11749 | char * kwnames[] = { | |
11750 | (char *) "self",(char *) "rect", NULL | |
11751 | }; | |
11752 | ||
11753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11755 | if (!SWIG_IsOK(res1)) { | |
11756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11757 | } | |
11758 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11759 | { | |
11760 | arg2 = &temp2; | |
11761 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11762 | } | |
11763 | { | |
11764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11765 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11766 | wxPyEndAllowThreads(__tstate); | |
11767 | if (PyErr_Occurred()) SWIG_fail; | |
11768 | } | |
11769 | { | |
11770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11771 | } | |
11772 | return resultobj; | |
11773 | fail: | |
11774 | return NULL; | |
11775 | } | |
11776 | ||
11777 | ||
11778 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11779 | PyObject *resultobj = 0; | |
11780 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11781 | wxRegion *arg2 = 0 ; | |
11782 | bool result; | |
11783 | void *argp1 = 0 ; | |
11784 | int res1 = 0 ; | |
11785 | void *argp2 = 0 ; | |
11786 | int res2 = 0 ; | |
11787 | PyObject * obj0 = 0 ; | |
11788 | PyObject * obj1 = 0 ; | |
11789 | char * kwnames[] = { | |
11790 | (char *) "self",(char *) "region", NULL | |
11791 | }; | |
11792 | ||
11793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11795 | if (!SWIG_IsOK(res1)) { | |
11796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11797 | } | |
11798 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11799 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11800 | if (!SWIG_IsOK(res2)) { | |
11801 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11802 | } | |
11803 | if (!argp2) { | |
11804 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11805 | } | |
11806 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11807 | { | |
11808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11809 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11810 | wxPyEndAllowThreads(__tstate); | |
11811 | if (PyErr_Occurred()) SWIG_fail; | |
11812 | } | |
11813 | { | |
11814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11815 | } | |
11816 | return resultobj; | |
11817 | fail: | |
11818 | return NULL; | |
11819 | } | |
11820 | ||
11821 | ||
11822 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11823 | PyObject *resultobj = 0; | |
11824 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11825 | int arg2 ; | |
11826 | int arg3 ; | |
11827 | int arg4 ; | |
11828 | int arg5 ; | |
11829 | bool result; | |
11830 | void *argp1 = 0 ; | |
11831 | int res1 = 0 ; | |
11832 | int val2 ; | |
11833 | int ecode2 = 0 ; | |
11834 | int val3 ; | |
11835 | int ecode3 = 0 ; | |
11836 | int val4 ; | |
11837 | int ecode4 = 0 ; | |
11838 | int val5 ; | |
11839 | int ecode5 = 0 ; | |
11840 | PyObject * obj0 = 0 ; | |
11841 | PyObject * obj1 = 0 ; | |
11842 | PyObject * obj2 = 0 ; | |
11843 | PyObject * obj3 = 0 ; | |
11844 | PyObject * obj4 = 0 ; | |
11845 | char * kwnames[] = { | |
11846 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11847 | }; | |
11848 | ||
11849 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11850 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11851 | if (!SWIG_IsOK(res1)) { | |
11852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11853 | } | |
11854 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11855 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11856 | if (!SWIG_IsOK(ecode2)) { | |
11857 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11858 | } | |
11859 | arg2 = static_cast< int >(val2); | |
11860 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11861 | if (!SWIG_IsOK(ecode3)) { | |
11862 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11863 | } | |
11864 | arg3 = static_cast< int >(val3); | |
11865 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11866 | if (!SWIG_IsOK(ecode4)) { | |
11867 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11868 | } | |
11869 | arg4 = static_cast< int >(val4); | |
11870 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11871 | if (!SWIG_IsOK(ecode5)) { | |
11872 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11873 | } | |
11874 | arg5 = static_cast< int >(val5); | |
11875 | { | |
11876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11877 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11878 | wxPyEndAllowThreads(__tstate); | |
11879 | if (PyErr_Occurred()) SWIG_fail; | |
11880 | } | |
11881 | { | |
11882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11883 | } | |
11884 | return resultobj; | |
11885 | fail: | |
11886 | return NULL; | |
11887 | } | |
11888 | ||
11889 | ||
11890 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11891 | PyObject *resultobj = 0; | |
11892 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11893 | wxRect *arg2 = 0 ; | |
11894 | bool result; | |
11895 | void *argp1 = 0 ; | |
11896 | int res1 = 0 ; | |
11897 | wxRect temp2 ; | |
11898 | PyObject * obj0 = 0 ; | |
11899 | PyObject * obj1 = 0 ; | |
11900 | char * kwnames[] = { | |
11901 | (char *) "self",(char *) "rect", NULL | |
11902 | }; | |
11903 | ||
11904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11906 | if (!SWIG_IsOK(res1)) { | |
11907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11908 | } | |
11909 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11910 | { | |
11911 | arg2 = &temp2; | |
11912 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11913 | } | |
11914 | { | |
11915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11916 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11917 | wxPyEndAllowThreads(__tstate); | |
11918 | if (PyErr_Occurred()) SWIG_fail; | |
11919 | } | |
11920 | { | |
11921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11922 | } | |
11923 | return resultobj; | |
11924 | fail: | |
11925 | return NULL; | |
11926 | } | |
11927 | ||
11928 | ||
11929 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11930 | PyObject *resultobj = 0; | |
11931 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11932 | wxRegion *arg2 = 0 ; | |
11933 | bool result; | |
11934 | void *argp1 = 0 ; | |
11935 | int res1 = 0 ; | |
11936 | void *argp2 = 0 ; | |
11937 | int res2 = 0 ; | |
11938 | PyObject * obj0 = 0 ; | |
11939 | PyObject * obj1 = 0 ; | |
11940 | char * kwnames[] = { | |
11941 | (char *) "self",(char *) "region", NULL | |
11942 | }; | |
11943 | ||
11944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11946 | if (!SWIG_IsOK(res1)) { | |
11947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11948 | } | |
11949 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11950 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11951 | if (!SWIG_IsOK(res2)) { | |
11952 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11953 | } | |
11954 | if (!argp2) { | |
11955 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11956 | } | |
11957 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11958 | { | |
11959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11960 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
11964 | { | |
11965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11966 | } | |
11967 | return resultobj; | |
11968 | fail: | |
11969 | return NULL; | |
11970 | } | |
11971 | ||
11972 | ||
11973 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11974 | PyObject *resultobj = 0; | |
11975 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11976 | int arg2 ; | |
11977 | int arg3 ; | |
11978 | int arg4 ; | |
11979 | int arg5 ; | |
11980 | bool result; | |
11981 | void *argp1 = 0 ; | |
11982 | int res1 = 0 ; | |
11983 | int val2 ; | |
11984 | int ecode2 = 0 ; | |
11985 | int val3 ; | |
11986 | int ecode3 = 0 ; | |
11987 | int val4 ; | |
11988 | int ecode4 = 0 ; | |
11989 | int val5 ; | |
11990 | int ecode5 = 0 ; | |
11991 | PyObject * obj0 = 0 ; | |
11992 | PyObject * obj1 = 0 ; | |
11993 | PyObject * obj2 = 0 ; | |
11994 | PyObject * obj3 = 0 ; | |
11995 | PyObject * obj4 = 0 ; | |
11996 | char * kwnames[] = { | |
11997 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11998 | }; | |
11999 | ||
12000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
12001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12002 | if (!SWIG_IsOK(res1)) { | |
12003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12004 | } | |
12005 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12006 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12007 | if (!SWIG_IsOK(ecode2)) { | |
12008 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
12009 | } | |
12010 | arg2 = static_cast< int >(val2); | |
12011 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12012 | if (!SWIG_IsOK(ecode3)) { | |
12013 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
12014 | } | |
12015 | arg3 = static_cast< int >(val3); | |
12016 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
12017 | if (!SWIG_IsOK(ecode4)) { | |
12018 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
12019 | } | |
12020 | arg4 = static_cast< int >(val4); | |
12021 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
12022 | if (!SWIG_IsOK(ecode5)) { | |
12023 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
12024 | } | |
12025 | arg5 = static_cast< int >(val5); | |
12026 | { | |
12027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12028 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
12029 | wxPyEndAllowThreads(__tstate); | |
12030 | if (PyErr_Occurred()) SWIG_fail; | |
12031 | } | |
12032 | { | |
12033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12034 | } | |
12035 | return resultobj; | |
12036 | fail: | |
12037 | return NULL; | |
12038 | } | |
12039 | ||
12040 | ||
12041 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12042 | PyObject *resultobj = 0; | |
12043 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12044 | wxRect *arg2 = 0 ; | |
12045 | bool result; | |
12046 | void *argp1 = 0 ; | |
12047 | int res1 = 0 ; | |
12048 | wxRect temp2 ; | |
12049 | PyObject * obj0 = 0 ; | |
12050 | PyObject * obj1 = 0 ; | |
12051 | char * kwnames[] = { | |
12052 | (char *) "self",(char *) "rect", NULL | |
12053 | }; | |
12054 | ||
12055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12057 | if (!SWIG_IsOK(res1)) { | |
12058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12059 | } | |
12060 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12061 | { | |
12062 | arg2 = &temp2; | |
12063 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12064 | } | |
12065 | { | |
12066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12067 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
12068 | wxPyEndAllowThreads(__tstate); | |
12069 | if (PyErr_Occurred()) SWIG_fail; | |
12070 | } | |
12071 | { | |
12072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12073 | } | |
12074 | return resultobj; | |
12075 | fail: | |
12076 | return NULL; | |
12077 | } | |
12078 | ||
12079 | ||
12080 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12081 | PyObject *resultobj = 0; | |
12082 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12083 | wxRegion *arg2 = 0 ; | |
12084 | bool result; | |
12085 | void *argp1 = 0 ; | |
12086 | int res1 = 0 ; | |
12087 | void *argp2 = 0 ; | |
12088 | int res2 = 0 ; | |
12089 | PyObject * obj0 = 0 ; | |
12090 | PyObject * obj1 = 0 ; | |
12091 | char * kwnames[] = { | |
12092 | (char *) "self",(char *) "region", NULL | |
12093 | }; | |
12094 | ||
12095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
12096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12097 | if (!SWIG_IsOK(res1)) { | |
12098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12099 | } | |
12100 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12101 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
12102 | if (!SWIG_IsOK(res2)) { | |
12103 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
12104 | } | |
12105 | if (!argp2) { | |
12106 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
12107 | } | |
12108 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
12109 | { | |
12110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12111 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
12112 | wxPyEndAllowThreads(__tstate); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
12114 | } | |
12115 | { | |
12116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12117 | } | |
12118 | return resultobj; | |
12119 | fail: | |
12120 | return NULL; | |
d55e5bfc RD |
12121 | } |
12122 | ||
12123 | ||
554f62e9 RD |
12124 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12125 | PyObject *resultobj = 0; | |
12126 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12127 | SwigValueWrapper<wxBitmap > result; | |
12128 | void *argp1 = 0 ; | |
12129 | int res1 = 0 ; | |
12130 | PyObject *swig_obj[1] ; | |
12131 | ||
12132 | if (!args) SWIG_fail; | |
12133 | swig_obj[0] = args; | |
12134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12135 | if (!SWIG_IsOK(res1)) { | |
12136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12137 | } | |
12138 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12139 | { | |
12140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12141 | result = (arg1)->ConvertToBitmap(); | |
12142 | wxPyEndAllowThreads(__tstate); | |
12143 | if (PyErr_Occurred()) SWIG_fail; | |
12144 | } | |
12145 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
12146 | return resultobj; | |
12147 | fail: | |
12148 | return NULL; | |
12149 | } | |
12150 | ||
12151 | ||
12152 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12153 | PyObject *resultobj = 0; | |
12154 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12155 | wxBitmap *arg2 = 0 ; | |
12156 | bool result; | |
12157 | void *argp1 = 0 ; | |
12158 | int res1 = 0 ; | |
12159 | void *argp2 = 0 ; | |
12160 | int res2 = 0 ; | |
12161 | PyObject * obj0 = 0 ; | |
12162 | PyObject * obj1 = 0 ; | |
12163 | char * kwnames[] = { | |
12164 | (char *) "self",(char *) "bmp", NULL | |
12165 | }; | |
12166 | ||
12167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
12168 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12169 | if (!SWIG_IsOK(res1)) { | |
12170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12171 | } | |
12172 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12173 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
12174 | if (!SWIG_IsOK(res2)) { | |
12175 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12176 | } | |
12177 | if (!argp2) { | |
12178 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12179 | } | |
12180 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
12181 | { | |
12182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12183 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
12184 | wxPyEndAllowThreads(__tstate); | |
12185 | if (PyErr_Occurred()) SWIG_fail; | |
12186 | } | |
12187 | { | |
12188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12189 | } | |
12190 | return resultobj; | |
12191 | fail: | |
12192 | return NULL; | |
12193 | } | |
12194 | ||
12195 | ||
12196 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12197 | PyObject *resultobj = 0; | |
12198 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12199 | wxBitmap *arg2 = 0 ; | |
12200 | wxColour *arg3 = 0 ; | |
12201 | int arg4 = (int) 0 ; | |
12202 | bool result; | |
12203 | void *argp1 = 0 ; | |
12204 | int res1 = 0 ; | |
12205 | void *argp2 = 0 ; | |
12206 | int res2 = 0 ; | |
12207 | wxColour temp3 ; | |
12208 | int val4 ; | |
12209 | int ecode4 = 0 ; | |
12210 | PyObject * obj0 = 0 ; | |
12211 | PyObject * obj1 = 0 ; | |
12212 | PyObject * obj2 = 0 ; | |
12213 | PyObject * obj3 = 0 ; | |
12214 | char * kwnames[] = { | |
12215 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
12216 | }; | |
12217 | ||
12218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12220 | if (!SWIG_IsOK(res1)) { | |
12221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12222 | } | |
12223 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12224 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
12225 | if (!SWIG_IsOK(res2)) { | |
12226 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12227 | } | |
12228 | if (!argp2) { | |
12229 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12230 | } | |
12231 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
12232 | { | |
12233 | arg3 = &temp3; | |
12234 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
12235 | } | |
12236 | if (obj3) { | |
12237 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
12238 | if (!SWIG_IsOK(ecode4)) { | |
12239 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
12240 | } | |
12241 | arg4 = static_cast< int >(val4); | |
12242 | } | |
12243 | { | |
12244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12245 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
12246 | wxPyEndAllowThreads(__tstate); | |
12247 | if (PyErr_Occurred()) SWIG_fail; | |
12248 | } | |
12249 | { | |
12250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12251 | } | |
12252 | return resultobj; | |
12253 | fail: | |
12254 | return NULL; | |
d55e5bfc RD |
12255 | } |
12256 | ||
12257 | ||
554f62e9 RD |
12258 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12259 | PyObject *obj; | |
12260 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12261 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
12262 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12263 | } |
12264 | ||
554f62e9 RD |
12265 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12266 | return SWIG_Python_InitShadowInstance(args); | |
12267 | } | |
d55e5bfc | 12268 | |
554f62e9 RD |
12269 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12270 | PyObject *resultobj = 0; | |
12271 | wxRegion *arg1 = 0 ; | |
12272 | wxRegionIterator *result = 0 ; | |
12273 | void *argp1 = 0 ; | |
12274 | int res1 = 0 ; | |
12275 | PyObject * obj0 = 0 ; | |
12276 | char * kwnames[] = { | |
12277 | (char *) "region", NULL | |
12278 | }; | |
12279 | ||
12280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
12281 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
12282 | if (!SWIG_IsOK(res1)) { | |
12283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
12284 | } | |
12285 | if (!argp1) { | |
12286 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
12287 | } | |
12288 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12289 | { | |
12290 | if (!wxPyCheckForApp()) SWIG_fail; | |
12291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12292 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
12293 | wxPyEndAllowThreads(__tstate); | |
12294 | if (PyErr_Occurred()) SWIG_fail; | |
12295 | } | |
12296 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
12297 | return resultobj; | |
12298 | fail: | |
12299 | return NULL; | |
d55e5bfc RD |
12300 | } |
12301 | ||
12302 | ||
554f62e9 RD |
12303 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12304 | PyObject *resultobj = 0; | |
12305 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12306 | void *argp1 = 0 ; | |
12307 | int res1 = 0 ; | |
12308 | PyObject *swig_obj[1] ; | |
12309 | ||
12310 | if (!args) SWIG_fail; | |
12311 | swig_obj[0] = args; | |
12312 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
12313 | if (!SWIG_IsOK(res1)) { | |
12314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12315 | } | |
12316 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12317 | { | |
12318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12319 | delete arg1; | |
d55e5bfc | 12320 | |
554f62e9 RD |
12321 | wxPyEndAllowThreads(__tstate); |
12322 | if (PyErr_Occurred()) SWIG_fail; | |
12323 | } | |
12324 | resultobj = SWIG_Py_Void(); | |
12325 | return resultobj; | |
12326 | fail: | |
12327 | return NULL; | |
d55e5bfc RD |
12328 | } |
12329 | ||
12330 | ||
554f62e9 RD |
12331 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(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_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12344 | } | |
12345 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12346 | { | |
12347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12348 | result = (int)(arg1)->GetX(); | |
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_GetY(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_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12372 | } | |
12373 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12374 | { | |
12375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12376 | result = (int)(arg1)->GetY(); | |
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_GetW(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_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12400 | } | |
12401 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12402 | { | |
12403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12404 | result = (int)(arg1)->GetW(); | |
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_GetWidth(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_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12428 | } | |
12429 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12430 | { | |
12431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12432 | result = (int)(arg1)->GetWidth(); | |
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_GetH(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_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12456 | } | |
12457 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12458 | { | |
12459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12460 | result = (int)(arg1)->GetH(); | |
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_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12472 | PyObject *resultobj = 0; | |
12473 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12474 | int 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_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12484 | } | |
12485 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12486 | { | |
12487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12488 | result = (int)(arg1)->GetHeight(); | |
12489 | wxPyEndAllowThreads(__tstate); | |
12490 | if (PyErr_Occurred()) SWIG_fail; | |
12491 | } | |
12492 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12493 | return resultobj; | |
12494 | fail: | |
12495 | return NULL; | |
d55e5bfc RD |
12496 | } |
12497 | ||
12498 | ||
554f62e9 RD |
12499 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12500 | PyObject *resultobj = 0; | |
12501 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12502 | wxRect 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_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12512 | } | |
12513 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12514 | { | |
12515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12516 | result = (arg1)->GetRect(); | |
12517 | wxPyEndAllowThreads(__tstate); | |
12518 | if (PyErr_Occurred()) SWIG_fail; | |
12519 | } | |
12520 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12521 | return resultobj; | |
12522 | fail: | |
12523 | return NULL; | |
d55e5bfc RD |
12524 | } |
12525 | ||
12526 | ||
554f62e9 RD |
12527 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12528 | PyObject *resultobj = 0; | |
12529 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12530 | bool result; | |
12531 | void *argp1 = 0 ; | |
12532 | int res1 = 0 ; | |
12533 | PyObject *swig_obj[1] ; | |
12534 | ||
12535 | if (!args) SWIG_fail; | |
12536 | swig_obj[0] = args; | |
12537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12538 | if (!SWIG_IsOK(res1)) { | |
12539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12540 | } | |
12541 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12542 | { | |
12543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12544 | result = (bool)(arg1)->HaveRects(); | |
12545 | wxPyEndAllowThreads(__tstate); | |
12546 | if (PyErr_Occurred()) SWIG_fail; | |
12547 | } | |
12548 | { | |
12549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12550 | } | |
12551 | return resultobj; | |
12552 | fail: | |
12553 | return NULL; | |
d55e5bfc RD |
12554 | } |
12555 | ||
12556 | ||
554f62e9 RD |
12557 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12558 | PyObject *resultobj = 0; | |
12559 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12560 | void *argp1 = 0 ; | |
12561 | int res1 = 0 ; | |
12562 | PyObject *swig_obj[1] ; | |
12563 | ||
12564 | if (!args) SWIG_fail; | |
12565 | swig_obj[0] = args; | |
12566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12567 | if (!SWIG_IsOK(res1)) { | |
12568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12569 | } | |
12570 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12571 | { | |
12572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12573 | (arg1)->Reset(); | |
12574 | wxPyEndAllowThreads(__tstate); | |
12575 | if (PyErr_Occurred()) SWIG_fail; | |
12576 | } | |
12577 | resultobj = SWIG_Py_Void(); | |
12578 | return resultobj; | |
12579 | fail: | |
12580 | return NULL; | |
d55e5bfc RD |
12581 | } |
12582 | ||
12583 | ||
554f62e9 RD |
12584 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12585 | PyObject *resultobj = 0; | |
12586 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
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_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12596 | } | |
12597 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12598 | { | |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12600 | wxRegionIterator_Next(arg1); | |
12601 | wxPyEndAllowThreads(__tstate); | |
12602 | if (PyErr_Occurred()) SWIG_fail; | |
12603 | } | |
12604 | resultobj = SWIG_Py_Void(); | |
12605 | return resultobj; | |
12606 | fail: | |
12607 | return NULL; | |
d55e5bfc RD |
12608 | } |
12609 | ||
12610 | ||
554f62e9 RD |
12611 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12612 | PyObject *resultobj = 0; | |
12613 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12614 | bool result; | |
12615 | void *argp1 = 0 ; | |
12616 | int res1 = 0 ; | |
12617 | PyObject *swig_obj[1] ; | |
12618 | ||
12619 | if (!args) SWIG_fail; | |
12620 | swig_obj[0] = args; | |
12621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12622 | if (!SWIG_IsOK(res1)) { | |
12623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12624 | } | |
12625 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12626 | { | |
12627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12628 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
12629 | wxPyEndAllowThreads(__tstate); | |
12630 | if (PyErr_Occurred()) SWIG_fail; | |
12631 | } | |
12632 | { | |
12633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12634 | } | |
12635 | return resultobj; | |
12636 | fail: | |
12637 | return NULL; | |
d55e5bfc RD |
12638 | } |
12639 | ||
12640 | ||
554f62e9 RD |
12641 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12642 | PyObject *obj; | |
12643 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12644 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
12645 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12646 | } |
12647 | ||
554f62e9 RD |
12648 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12649 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12650 | } |
12651 | ||
554f62e9 RD |
12652 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12653 | PyObject *resultobj = 0; | |
12654 | wxNativeFontInfo *result = 0 ; | |
12655 | ||
12656 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
12657 | { | |
12658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12659 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
12660 | wxPyEndAllowThreads(__tstate); | |
12661 | if (PyErr_Occurred()) SWIG_fail; | |
12662 | } | |
12663 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
12664 | return resultobj; | |
12665 | fail: | |
12666 | return NULL; | |
d55e5bfc RD |
12667 | } |
12668 | ||
12669 | ||
554f62e9 RD |
12670 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(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, SWIG_POINTER_DISOWN | 0 ); | |
12680 | if (!SWIG_IsOK(res1)) { | |
12681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12682 | } | |
12683 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12684 | { | |
12685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12686 | delete arg1; | |
d55e5bfc | 12687 | |
554f62e9 RD |
12688 | wxPyEndAllowThreads(__tstate); |
12689 | if (PyErr_Occurred()) SWIG_fail; | |
12690 | } | |
12691 | resultobj = SWIG_Py_Void(); | |
12692 | return resultobj; | |
12693 | fail: | |
12694 | return NULL; | |
d55e5bfc RD |
12695 | } |
12696 | ||
12697 | ||
554f62e9 RD |
12698 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12699 | PyObject *resultobj = 0; | |
12700 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12701 | void *argp1 = 0 ; | |
12702 | int res1 = 0 ; | |
12703 | PyObject *swig_obj[1] ; | |
12704 | ||
12705 | if (!args) SWIG_fail; | |
12706 | swig_obj[0] = args; | |
12707 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12708 | if (!SWIG_IsOK(res1)) { | |
12709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12710 | } | |
12711 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12712 | { | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | (arg1)->Init(); | |
12715 | wxPyEndAllowThreads(__tstate); | |
12716 | if (PyErr_Occurred()) SWIG_fail; | |
12717 | } | |
12718 | resultobj = SWIG_Py_Void(); | |
12719 | return resultobj; | |
12720 | fail: | |
12721 | return NULL; | |
12722 | } | |
12723 | ||
12724 | ||
12725 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12726 | PyObject *resultobj = 0; | |
12727 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12728 | wxFont *arg2 = 0 ; | |
12729 | void *argp1 = 0 ; | |
12730 | int res1 = 0 ; | |
12731 | void *argp2 = 0 ; | |
12732 | int res2 = 0 ; | |
12733 | PyObject * obj0 = 0 ; | |
12734 | PyObject * obj1 = 0 ; | |
12735 | char * kwnames[] = { | |
12736 | (char *) "self",(char *) "font", NULL | |
12737 | }; | |
12738 | ||
12739 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
12740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12741 | if (!SWIG_IsOK(res1)) { | |
12742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12743 | } | |
12744 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12745 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
12746 | if (!SWIG_IsOK(res2)) { | |
12747 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12748 | } | |
12749 | if (!argp2) { | |
12750 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12751 | } | |
12752 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12753 | { | |
12754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12755 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
12756 | wxPyEndAllowThreads(__tstate); | |
12757 | if (PyErr_Occurred()) SWIG_fail; | |
12758 | } | |
12759 | resultobj = SWIG_Py_Void(); | |
12760 | return resultobj; | |
12761 | fail: | |
12762 | return NULL; | |
d55e5bfc RD |
12763 | } |
12764 | ||
12765 | ||
554f62e9 RD |
12766 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12767 | PyObject *resultobj = 0; | |
12768 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12769 | int 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_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12779 | } | |
12780 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12781 | { | |
12782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12783 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12784 | wxPyEndAllowThreads(__tstate); | |
12785 | if (PyErr_Occurred()) SWIG_fail; | |
12786 | } | |
12787 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12788 | return resultobj; | |
12789 | fail: | |
12790 | return NULL; | |
d55e5bfc RD |
12791 | } |
12792 | ||
12793 | ||
554f62e9 RD |
12794 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12795 | PyObject *resultobj = 0; | |
12796 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12797 | wxSize 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_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12807 | } | |
12808 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12809 | { | |
12810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12811 | result = ((wxNativeFontInfo const *)arg1)->GetPixelSize(); | |
12812 | wxPyEndAllowThreads(__tstate); | |
12813 | if (PyErr_Occurred()) SWIG_fail; | |
12814 | } | |
12815 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12816 | return resultobj; | |
12817 | fail: | |
12818 | return NULL; | |
d55e5bfc RD |
12819 | } |
12820 | ||
12821 | ||
554f62e9 RD |
12822 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12823 | PyObject *resultobj = 0; | |
12824 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12825 | wxFontStyle 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_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12835 | } | |
12836 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12837 | { | |
12838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12839 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
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_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12851 | PyObject *resultobj = 0; | |
12852 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12853 | wxFontWeight 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_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12863 | } | |
12864 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12865 | { | |
12866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12867 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12868 | wxPyEndAllowThreads(__tstate); | |
12869 | if (PyErr_Occurred()) SWIG_fail; | |
12870 | } | |
12871 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12872 | return resultobj; | |
12873 | fail: | |
12874 | return NULL; | |
d55e5bfc RD |
12875 | } |
12876 | ||
12877 | ||
554f62e9 RD |
12878 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12879 | PyObject *resultobj = 0; | |
12880 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12881 | bool result; | |
12882 | void *argp1 = 0 ; | |
12883 | int res1 = 0 ; | |
12884 | PyObject *swig_obj[1] ; | |
12885 | ||
12886 | if (!args) SWIG_fail; | |
12887 | swig_obj[0] = args; | |
12888 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12889 | if (!SWIG_IsOK(res1)) { | |
12890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12891 | } | |
12892 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12893 | { | |
12894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12895 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12896 | wxPyEndAllowThreads(__tstate); | |
12897 | if (PyErr_Occurred()) SWIG_fail; | |
12898 | } | |
12899 | { | |
12900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12901 | } | |
12902 | return resultobj; | |
12903 | fail: | |
12904 | return NULL; | |
d55e5bfc RD |
12905 | } |
12906 | ||
12907 | ||
554f62e9 RD |
12908 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12909 | PyObject *resultobj = 0; | |
12910 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12911 | wxString result; | |
12912 | void *argp1 = 0 ; | |
12913 | int res1 = 0 ; | |
12914 | PyObject *swig_obj[1] ; | |
12915 | ||
12916 | if (!args) SWIG_fail; | |
12917 | swig_obj[0] = args; | |
12918 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12919 | if (!SWIG_IsOK(res1)) { | |
12920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12921 | } | |
12922 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12923 | { | |
12924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12925 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12926 | wxPyEndAllowThreads(__tstate); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | { | |
093d3ff1 | 12930 | #if wxUSE_UNICODE |
554f62e9 | 12931 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 12932 | #else |
554f62e9 | 12933 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 12934 | #endif |
554f62e9 RD |
12935 | } |
12936 | return resultobj; | |
12937 | fail: | |
12938 | return NULL; | |
d55e5bfc RD |
12939 | } |
12940 | ||
12941 | ||
554f62e9 RD |
12942 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12943 | PyObject *resultobj = 0; | |
12944 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12945 | wxFontFamily 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_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12955 | } | |
12956 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12957 | { | |
12958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12959 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
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; | |
d55e5bfc RD |
12967 | } |
12968 | ||
12969 | ||
554f62e9 RD |
12970 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12971 | PyObject *resultobj = 0; | |
12972 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12973 | wxFontEncoding result; | |
12974 | void *argp1 = 0 ; | |
12975 | int res1 = 0 ; | |
12976 | PyObject *swig_obj[1] ; | |
12977 | ||
12978 | if (!args) SWIG_fail; | |
12979 | swig_obj[0] = args; | |
12980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12981 | if (!SWIG_IsOK(res1)) { | |
12982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12983 | } | |
12984 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12985 | { | |
12986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12987 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12988 | wxPyEndAllowThreads(__tstate); | |
12989 | if (PyErr_Occurred()) SWIG_fail; | |
12990 | } | |
12991 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12992 | return resultobj; | |
12993 | fail: | |
12994 | return NULL; | |
12995 | } | |
12996 | ||
12997 | ||
12998 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12999 | PyObject *resultobj = 0; | |
13000 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13001 | int arg2 ; | |
13002 | void *argp1 = 0 ; | |
13003 | int res1 = 0 ; | |
13004 | int val2 ; | |
13005 | int ecode2 = 0 ; | |
13006 | PyObject * obj0 = 0 ; | |
13007 | PyObject * obj1 = 0 ; | |
13008 | char * kwnames[] = { | |
13009 | (char *) "self",(char *) "pointsize", NULL | |
13010 | }; | |
13011 | ||
13012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
13013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13014 | if (!SWIG_IsOK(res1)) { | |
13015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13016 | } | |
13017 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13018 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13019 | if (!SWIG_IsOK(ecode2)) { | |
13020 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
13021 | } | |
13022 | arg2 = static_cast< int >(val2); | |
13023 | { | |
13024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13025 | (arg1)->SetPointSize(arg2); | |
13026 | wxPyEndAllowThreads(__tstate); | |
13027 | if (PyErr_Occurred()) SWIG_fail; | |
13028 | } | |
13029 | resultobj = SWIG_Py_Void(); | |
13030 | return resultobj; | |
13031 | fail: | |
13032 | return NULL; | |
13033 | } | |
13034 | ||
13035 | ||
13036 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13037 | PyObject *resultobj = 0; | |
13038 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13039 | wxSize *arg2 = 0 ; | |
13040 | void *argp1 = 0 ; | |
13041 | int res1 = 0 ; | |
13042 | wxSize temp2 ; | |
13043 | PyObject * obj0 = 0 ; | |
13044 | PyObject * obj1 = 0 ; | |
13045 | char * kwnames[] = { | |
13046 | (char *) "self",(char *) "pixelSize", NULL | |
13047 | }; | |
13048 | ||
13049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
13050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13051 | if (!SWIG_IsOK(res1)) { | |
13052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13053 | } | |
13054 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13055 | { | |
13056 | arg2 = &temp2; | |
13057 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13058 | } | |
13059 | { | |
13060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13061 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
13062 | wxPyEndAllowThreads(__tstate); | |
13063 | if (PyErr_Occurred()) SWIG_fail; | |
13064 | } | |
13065 | resultobj = SWIG_Py_Void(); | |
13066 | return resultobj; | |
13067 | fail: | |
13068 | return NULL; | |
13069 | } | |
13070 | ||
13071 | ||
13072 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13073 | PyObject *resultobj = 0; | |
13074 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13075 | wxFontStyle arg2 ; | |
13076 | void *argp1 = 0 ; | |
13077 | int res1 = 0 ; | |
13078 | int val2 ; | |
13079 | int ecode2 = 0 ; | |
13080 | PyObject * obj0 = 0 ; | |
13081 | PyObject * obj1 = 0 ; | |
13082 | char * kwnames[] = { | |
13083 | (char *) "self",(char *) "style", NULL | |
13084 | }; | |
13085 | ||
13086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13088 | if (!SWIG_IsOK(res1)) { | |
13089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13090 | } | |
13091 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13092 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13093 | if (!SWIG_IsOK(ecode2)) { | |
13094 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
13095 | } | |
13096 | arg2 = static_cast< wxFontStyle >(val2); | |
13097 | { | |
13098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13099 | (arg1)->SetStyle(arg2); | |
13100 | wxPyEndAllowThreads(__tstate); | |
13101 | if (PyErr_Occurred()) SWIG_fail; | |
13102 | } | |
13103 | resultobj = SWIG_Py_Void(); | |
13104 | return resultobj; | |
13105 | fail: | |
13106 | return NULL; | |
13107 | } | |
13108 | ||
13109 | ||
13110 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13111 | PyObject *resultobj = 0; | |
13112 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13113 | wxFontWeight arg2 ; | |
13114 | void *argp1 = 0 ; | |
13115 | int res1 = 0 ; | |
13116 | int val2 ; | |
13117 | int ecode2 = 0 ; | |
13118 | PyObject * obj0 = 0 ; | |
13119 | PyObject * obj1 = 0 ; | |
13120 | char * kwnames[] = { | |
13121 | (char *) "self",(char *) "weight", NULL | |
13122 | }; | |
13123 | ||
13124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
13125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13126 | if (!SWIG_IsOK(res1)) { | |
13127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13128 | } | |
13129 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13130 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13131 | if (!SWIG_IsOK(ecode2)) { | |
13132 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
13133 | } | |
13134 | arg2 = static_cast< wxFontWeight >(val2); | |
13135 | { | |
13136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13137 | (arg1)->SetWeight(arg2); | |
13138 | wxPyEndAllowThreads(__tstate); | |
13139 | if (PyErr_Occurred()) SWIG_fail; | |
13140 | } | |
13141 | resultobj = SWIG_Py_Void(); | |
13142 | return resultobj; | |
13143 | fail: | |
13144 | return NULL; | |
13145 | } | |
13146 | ||
13147 | ||
13148 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13149 | PyObject *resultobj = 0; | |
13150 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13151 | bool arg2 ; | |
13152 | void *argp1 = 0 ; | |
13153 | int res1 = 0 ; | |
13154 | bool val2 ; | |
13155 | int ecode2 = 0 ; | |
13156 | PyObject * obj0 = 0 ; | |
13157 | PyObject * obj1 = 0 ; | |
13158 | char * kwnames[] = { | |
13159 | (char *) "self",(char *) "underlined", NULL | |
13160 | }; | |
13161 | ||
13162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
13163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13164 | if (!SWIG_IsOK(res1)) { | |
13165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13166 | } | |
13167 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13168 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13169 | if (!SWIG_IsOK(ecode2)) { | |
13170 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
13171 | } | |
13172 | arg2 = static_cast< bool >(val2); | |
13173 | { | |
13174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13175 | (arg1)->SetUnderlined(arg2); | |
13176 | wxPyEndAllowThreads(__tstate); | |
13177 | if (PyErr_Occurred()) SWIG_fail; | |
13178 | } | |
13179 | resultobj = SWIG_Py_Void(); | |
13180 | return resultobj; | |
13181 | fail: | |
13182 | return NULL; | |
13183 | } | |
13184 | ||
13185 | ||
13186 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13187 | PyObject *resultobj = 0; | |
13188 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13189 | wxString arg2 ; | |
704eda0c | 13190 | bool result; |
554f62e9 RD |
13191 | void *argp1 = 0 ; |
13192 | int res1 = 0 ; | |
13193 | PyObject * obj0 = 0 ; | |
13194 | PyObject * obj1 = 0 ; | |
13195 | char * kwnames[] = { | |
13196 | (char *) "self",(char *) "facename", NULL | |
13197 | }; | |
13198 | ||
13199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
13200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13201 | if (!SWIG_IsOK(res1)) { | |
13202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13203 | } | |
13204 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13205 | { | |
13206 | wxString* sptr = wxString_in_helper(obj1); | |
13207 | if (sptr == NULL) SWIG_fail; | |
13208 | arg2 = *sptr; | |
13209 | delete sptr; | |
13210 | } | |
13211 | { | |
13212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 13213 | result = (bool)(arg1)->SetFaceName(arg2); |
554f62e9 RD |
13214 | wxPyEndAllowThreads(__tstate); |
13215 | if (PyErr_Occurred()) SWIG_fail; | |
13216 | } | |
704eda0c RD |
13217 | { |
13218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13219 | } | |
554f62e9 RD |
13220 | return resultobj; |
13221 | fail: | |
13222 | return NULL; | |
13223 | } | |
13224 | ||
13225 | ||
13226 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13227 | PyObject *resultobj = 0; | |
13228 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13229 | wxFontFamily arg2 ; | |
13230 | void *argp1 = 0 ; | |
13231 | int res1 = 0 ; | |
13232 | int val2 ; | |
13233 | int ecode2 = 0 ; | |
13234 | PyObject * obj0 = 0 ; | |
13235 | PyObject * obj1 = 0 ; | |
13236 | char * kwnames[] = { | |
13237 | (char *) "self",(char *) "family", NULL | |
13238 | }; | |
13239 | ||
13240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
13241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13242 | if (!SWIG_IsOK(res1)) { | |
13243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13244 | } | |
13245 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13246 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13247 | if (!SWIG_IsOK(ecode2)) { | |
13248 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
13249 | } | |
13250 | arg2 = static_cast< wxFontFamily >(val2); | |
13251 | { | |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13253 | (arg1)->SetFamily(arg2); | |
13254 | wxPyEndAllowThreads(__tstate); | |
13255 | if (PyErr_Occurred()) SWIG_fail; | |
13256 | } | |
13257 | resultobj = SWIG_Py_Void(); | |
13258 | return resultobj; | |
13259 | fail: | |
13260 | return NULL; | |
13261 | } | |
13262 | ||
13263 | ||
13264 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13265 | PyObject *resultobj = 0; | |
13266 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13267 | wxFontEncoding arg2 ; | |
13268 | void *argp1 = 0 ; | |
13269 | int res1 = 0 ; | |
13270 | int val2 ; | |
13271 | int ecode2 = 0 ; | |
13272 | PyObject * obj0 = 0 ; | |
13273 | PyObject * obj1 = 0 ; | |
13274 | char * kwnames[] = { | |
13275 | (char *) "self",(char *) "encoding", NULL | |
13276 | }; | |
13277 | ||
13278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
13279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13280 | if (!SWIG_IsOK(res1)) { | |
13281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13282 | } | |
13283 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13284 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13285 | if (!SWIG_IsOK(ecode2)) { | |
13286 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13287 | } | |
13288 | arg2 = static_cast< wxFontEncoding >(val2); | |
13289 | { | |
13290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13291 | (arg1)->SetEncoding(arg2); | |
13292 | wxPyEndAllowThreads(__tstate); | |
13293 | if (PyErr_Occurred()) SWIG_fail; | |
13294 | } | |
13295 | resultobj = SWIG_Py_Void(); | |
13296 | return resultobj; | |
13297 | fail: | |
13298 | return NULL; | |
13299 | } | |
13300 | ||
13301 | ||
13302 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13303 | PyObject *resultobj = 0; | |
13304 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13305 | wxString *arg2 = 0 ; | |
13306 | bool result; | |
13307 | void *argp1 = 0 ; | |
13308 | int res1 = 0 ; | |
13309 | bool temp2 = false ; | |
13310 | PyObject * obj0 = 0 ; | |
13311 | PyObject * obj1 = 0 ; | |
13312 | char * kwnames[] = { | |
13313 | (char *) "self",(char *) "s", NULL | |
13314 | }; | |
13315 | ||
13316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13318 | if (!SWIG_IsOK(res1)) { | |
13319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13320 | } | |
13321 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13322 | { | |
13323 | arg2 = wxString_in_helper(obj1); | |
13324 | if (arg2 == NULL) SWIG_fail; | |
13325 | temp2 = true; | |
13326 | } | |
13327 | { | |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13330 | wxPyEndAllowThreads(__tstate); | |
13331 | if (PyErr_Occurred()) SWIG_fail; | |
13332 | } | |
13333 | { | |
13334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13335 | } | |
13336 | { | |
13337 | if (temp2) | |
13338 | delete arg2; | |
13339 | } | |
13340 | return resultobj; | |
13341 | fail: | |
13342 | { | |
13343 | if (temp2) | |
13344 | delete arg2; | |
13345 | } | |
13346 | return NULL; | |
d55e5bfc RD |
13347 | } |
13348 | ||
13349 | ||
554f62e9 RD |
13350 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13351 | PyObject *resultobj = 0; | |
13352 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13353 | wxString result; | |
13354 | void *argp1 = 0 ; | |
13355 | int res1 = 0 ; | |
13356 | PyObject *swig_obj[1] ; | |
13357 | ||
13358 | if (!args) SWIG_fail; | |
13359 | swig_obj[0] = args; | |
13360 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13361 | if (!SWIG_IsOK(res1)) { | |
13362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
13363 | } | |
13364 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13365 | { | |
13366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13367 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
13368 | wxPyEndAllowThreads(__tstate); | |
13369 | if (PyErr_Occurred()) SWIG_fail; | |
13370 | } | |
13371 | { | |
13372 | #if wxUSE_UNICODE | |
13373 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13374 | #else | |
13375 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13376 | #endif | |
13377 | } | |
13378 | return resultobj; | |
13379 | fail: | |
13380 | return NULL; | |
d55e5bfc RD |
13381 | } |
13382 | ||
13383 | ||
554f62e9 RD |
13384 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13385 | PyObject *resultobj = 0; | |
13386 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13387 | wxString result; | |
13388 | void *argp1 = 0 ; | |
13389 | int res1 = 0 ; | |
13390 | PyObject *swig_obj[1] ; | |
13391 | ||
13392 | if (!args) SWIG_fail; | |
13393 | swig_obj[0] = args; | |
13394 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13395 | if (!SWIG_IsOK(res1)) { | |
13396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13397 | } | |
13398 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13399 | { | |
13400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13401 | result = wxNativeFontInfo___str__(arg1); | |
13402 | wxPyEndAllowThreads(__tstate); | |
13403 | if (PyErr_Occurred()) SWIG_fail; | |
13404 | } | |
13405 | { | |
13406 | #if wxUSE_UNICODE | |
13407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13408 | #else | |
13409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13410 | #endif | |
13411 | } | |
13412 | return resultobj; | |
13413 | fail: | |
13414 | return NULL; | |
13415 | } | |
13416 | ||
13417 | ||
13418 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13419 | PyObject *resultobj = 0; | |
13420 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13421 | wxString *arg2 = 0 ; | |
13422 | bool result; | |
13423 | void *argp1 = 0 ; | |
13424 | int res1 = 0 ; | |
13425 | bool temp2 = false ; | |
13426 | PyObject * obj0 = 0 ; | |
13427 | PyObject * obj1 = 0 ; | |
13428 | char * kwnames[] = { | |
13429 | (char *) "self",(char *) "s", NULL | |
13430 | }; | |
13431 | ||
13432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13434 | if (!SWIG_IsOK(res1)) { | |
13435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13436 | } | |
13437 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13438 | { | |
13439 | arg2 = wxString_in_helper(obj1); | |
13440 | if (arg2 == NULL) SWIG_fail; | |
13441 | temp2 = true; | |
13442 | } | |
13443 | { | |
13444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13445 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
13446 | wxPyEndAllowThreads(__tstate); | |
13447 | if (PyErr_Occurred()) SWIG_fail; | |
13448 | } | |
13449 | { | |
13450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13451 | } | |
13452 | { | |
13453 | if (temp2) | |
13454 | delete arg2; | |
13455 | } | |
13456 | return resultobj; | |
13457 | fail: | |
13458 | { | |
13459 | if (temp2) | |
13460 | delete arg2; | |
13461 | } | |
13462 | return NULL; | |
a2569024 RD |
13463 | } |
13464 | ||
13465 | ||
554f62e9 RD |
13466 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13467 | PyObject *resultobj = 0; | |
13468 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13469 | wxString result; | |
13470 | void *argp1 = 0 ; | |
13471 | int res1 = 0 ; | |
13472 | PyObject *swig_obj[1] ; | |
13473 | ||
13474 | if (!args) SWIG_fail; | |
13475 | swig_obj[0] = args; | |
13476 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13477 | if (!SWIG_IsOK(res1)) { | |
13478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
13479 | } | |
13480 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13481 | { | |
13482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13483 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
13484 | wxPyEndAllowThreads(__tstate); | |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
13487 | { | |
13488 | #if wxUSE_UNICODE | |
13489 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13490 | #else | |
13491 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13492 | #endif | |
13493 | } | |
13494 | return resultobj; | |
13495 | fail: | |
13496 | return NULL; | |
d55e5bfc RD |
13497 | } |
13498 | ||
13499 | ||
554f62e9 RD |
13500 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13501 | PyObject *obj; | |
13502 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13503 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
13504 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13505 | } |
13506 | ||
554f62e9 RD |
13507 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13508 | return SWIG_Python_InitShadowInstance(args); | |
13509 | } | |
d55e5bfc | 13510 | |
554f62e9 RD |
13511 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13512 | PyObject *resultobj = 0; | |
13513 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13514 | wxString *arg2 = (wxString *) 0 ; | |
13515 | void *argp1 = 0 ; | |
13516 | int res1 = 0 ; | |
13517 | bool temp2 = false ; | |
13518 | PyObject *swig_obj[2] ; | |
13519 | ||
13520 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
13521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13522 | if (!SWIG_IsOK(res1)) { | |
13523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13524 | } | |
13525 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13526 | { | |
13527 | arg2 = wxString_in_helper(swig_obj[1]); | |
13528 | if (arg2 == NULL) SWIG_fail; | |
13529 | temp2 = true; | |
13530 | } | |
13531 | if (arg1) (arg1)->facename = *arg2; | |
13532 | ||
13533 | resultobj = SWIG_Py_Void(); | |
13534 | { | |
13535 | if (temp2) | |
13536 | delete arg2; | |
13537 | } | |
13538 | return resultobj; | |
13539 | fail: | |
13540 | { | |
13541 | if (temp2) | |
13542 | delete arg2; | |
13543 | } | |
13544 | return NULL; | |
d55e5bfc RD |
13545 | } |
13546 | ||
13547 | ||
554f62e9 RD |
13548 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13549 | PyObject *resultobj = 0; | |
13550 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13551 | wxString *result = 0 ; | |
13552 | void *argp1 = 0 ; | |
13553 | int res1 = 0 ; | |
13554 | PyObject *swig_obj[1] ; | |
13555 | ||
13556 | if (!args) SWIG_fail; | |
13557 | swig_obj[0] = args; | |
13558 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13559 | if (!SWIG_IsOK(res1)) { | |
13560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13561 | } | |
13562 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13563 | result = (wxString *)& ((arg1)->facename); | |
13564 | { | |
13565 | #if wxUSE_UNICODE | |
13566 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13567 | #else | |
13568 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13569 | #endif | |
13570 | } | |
13571 | return resultobj; | |
13572 | fail: | |
13573 | return NULL; | |
d55e5bfc RD |
13574 | } |
13575 | ||
13576 | ||
554f62e9 RD |
13577 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13578 | PyObject *resultobj = 0; | |
13579 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13580 | wxFontEncoding arg2 ; | |
13581 | void *argp1 = 0 ; | |
13582 | int res1 = 0 ; | |
13583 | int val2 ; | |
13584 | int ecode2 = 0 ; | |
13585 | PyObject *swig_obj[2] ; | |
13586 | ||
13587 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
13588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13589 | if (!SWIG_IsOK(res1)) { | |
13590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13591 | } | |
13592 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13593 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
13594 | if (!SWIG_IsOK(ecode2)) { | |
13595 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13596 | } | |
13597 | arg2 = static_cast< wxFontEncoding >(val2); | |
13598 | if (arg1) (arg1)->encoding = arg2; | |
13599 | ||
13600 | resultobj = SWIG_Py_Void(); | |
13601 | return resultobj; | |
13602 | fail: | |
13603 | return NULL; | |
d55e5bfc RD |
13604 | } |
13605 | ||
13606 | ||
554f62e9 RD |
13607 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13608 | PyObject *resultobj = 0; | |
13609 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13610 | wxFontEncoding result; | |
13611 | void *argp1 = 0 ; | |
13612 | int res1 = 0 ; | |
13613 | PyObject *swig_obj[1] ; | |
13614 | ||
13615 | if (!args) SWIG_fail; | |
13616 | swig_obj[0] = args; | |
13617 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13618 | if (!SWIG_IsOK(res1)) { | |
13619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13620 | } | |
13621 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13622 | result = (wxFontEncoding) ((arg1)->encoding); | |
13623 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13624 | return resultobj; | |
13625 | fail: | |
13626 | return NULL; | |
d55e5bfc RD |
13627 | } |
13628 | ||
13629 | ||
554f62e9 RD |
13630 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13631 | PyObject *resultobj = 0; | |
13632 | wxNativeEncodingInfo *result = 0 ; | |
13633 | ||
13634 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
13635 | { | |
13636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13637 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
13638 | wxPyEndAllowThreads(__tstate); | |
13639 | if (PyErr_Occurred()) SWIG_fail; | |
13640 | } | |
13641 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
13642 | return resultobj; | |
13643 | fail: | |
13644 | return NULL; | |
d55e5bfc RD |
13645 | } |
13646 | ||
13647 | ||
554f62e9 RD |
13648 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13649 | PyObject *resultobj = 0; | |
13650 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13651 | void *argp1 = 0 ; | |
13652 | int res1 = 0 ; | |
13653 | PyObject *swig_obj[1] ; | |
13654 | ||
13655 | if (!args) SWIG_fail; | |
13656 | swig_obj[0] = args; | |
13657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
13658 | if (!SWIG_IsOK(res1)) { | |
13659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13660 | } | |
13661 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13662 | { | |
13663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13664 | delete arg1; | |
d55e5bfc | 13665 | |
554f62e9 RD |
13666 | wxPyEndAllowThreads(__tstate); |
13667 | if (PyErr_Occurred()) SWIG_fail; | |
13668 | } | |
13669 | resultobj = SWIG_Py_Void(); | |
13670 | return resultobj; | |
13671 | fail: | |
13672 | return NULL; | |
13673 | } | |
13674 | ||
13675 | ||
13676 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13677 | PyObject *resultobj = 0; | |
13678 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13679 | wxString *arg2 = 0 ; | |
13680 | bool result; | |
13681 | void *argp1 = 0 ; | |
13682 | int res1 = 0 ; | |
13683 | bool temp2 = false ; | |
13684 | PyObject * obj0 = 0 ; | |
13685 | PyObject * obj1 = 0 ; | |
13686 | char * kwnames[] = { | |
13687 | (char *) "self",(char *) "s", NULL | |
13688 | }; | |
13689 | ||
13690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13692 | if (!SWIG_IsOK(res1)) { | |
13693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13694 | } | |
13695 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13696 | { | |
13697 | arg2 = wxString_in_helper(obj1); | |
13698 | if (arg2 == NULL) SWIG_fail; | |
13699 | temp2 = true; | |
13700 | } | |
13701 | { | |
13702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13703 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13704 | wxPyEndAllowThreads(__tstate); | |
13705 | if (PyErr_Occurred()) SWIG_fail; | |
13706 | } | |
13707 | { | |
13708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13709 | } | |
13710 | { | |
13711 | if (temp2) | |
13712 | delete arg2; | |
13713 | } | |
13714 | return resultobj; | |
13715 | fail: | |
13716 | { | |
13717 | if (temp2) | |
13718 | delete arg2; | |
13719 | } | |
13720 | return NULL; | |
d55e5bfc RD |
13721 | } |
13722 | ||
13723 | ||
554f62e9 RD |
13724 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13725 | PyObject *resultobj = 0; | |
13726 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13727 | wxString result; | |
13728 | void *argp1 = 0 ; | |
13729 | int res1 = 0 ; | |
13730 | PyObject *swig_obj[1] ; | |
13731 | ||
13732 | if (!args) SWIG_fail; | |
13733 | swig_obj[0] = args; | |
13734 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13735 | if (!SWIG_IsOK(res1)) { | |
13736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
13737 | } | |
13738 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13739 | { | |
13740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13741 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
13742 | wxPyEndAllowThreads(__tstate); | |
13743 | if (PyErr_Occurred()) SWIG_fail; | |
13744 | } | |
13745 | { | |
13746 | #if wxUSE_UNICODE | |
13747 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13748 | #else | |
13749 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13750 | #endif | |
13751 | } | |
13752 | return resultobj; | |
13753 | fail: | |
13754 | return NULL; | |
d55e5bfc RD |
13755 | } |
13756 | ||
13757 | ||
554f62e9 RD |
13758 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13759 | PyObject *obj; | |
13760 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13761 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
13762 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13763 | } |
13764 | ||
554f62e9 RD |
13765 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13766 | return SWIG_Python_InitShadowInstance(args); | |
13767 | } | |
d55e5bfc | 13768 | |
554f62e9 RD |
13769 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13770 | PyObject *resultobj = 0; | |
13771 | wxFontEncoding arg1 ; | |
13772 | wxNativeEncodingInfo *result = 0 ; | |
13773 | int val1 ; | |
13774 | int ecode1 = 0 ; | |
13775 | PyObject * obj0 = 0 ; | |
13776 | char * kwnames[] = { | |
13777 | (char *) "encoding", NULL | |
13778 | }; | |
13779 | ||
13780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13781 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13782 | if (!SWIG_IsOK(ecode1)) { | |
13783 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13784 | } | |
13785 | arg1 = static_cast< wxFontEncoding >(val1); | |
13786 | { | |
13787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13788 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
13789 | wxPyEndAllowThreads(__tstate); | |
13790 | if (PyErr_Occurred()) SWIG_fail; | |
13791 | } | |
13792 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13793 | return resultobj; | |
13794 | fail: | |
13795 | return NULL; | |
13796 | } | |
13797 | ||
13798 | ||
13799 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13800 | PyObject *resultobj = 0; | |
13801 | wxNativeEncodingInfo *arg1 = 0 ; | |
13802 | bool result; | |
13803 | void *argp1 = 0 ; | |
13804 | int res1 = 0 ; | |
13805 | PyObject * obj0 = 0 ; | |
13806 | char * kwnames[] = { | |
13807 | (char *) "info", NULL | |
13808 | }; | |
13809 | ||
13810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13811 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
13812 | if (!SWIG_IsOK(res1)) { | |
13813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13814 | } | |
13815 | if (!argp1) { | |
13816 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13817 | } | |
13818 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13819 | { | |
13820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13821 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
13822 | wxPyEndAllowThreads(__tstate); | |
13823 | if (PyErr_Occurred()) SWIG_fail; | |
13824 | } | |
13825 | { | |
13826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13827 | } | |
13828 | return resultobj; | |
13829 | fail: | |
13830 | return NULL; | |
d55e5bfc RD |
13831 | } |
13832 | ||
13833 | ||
554f62e9 RD |
13834 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13835 | PyObject *resultobj = 0; | |
13836 | wxFontMapper *result = 0 ; | |
13837 | ||
13838 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13839 | { | |
13840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13841 | result = (wxFontMapper *)new wxFontMapper(); | |
13842 | wxPyEndAllowThreads(__tstate); | |
13843 | if (PyErr_Occurred()) SWIG_fail; | |
13844 | } | |
13845 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13846 | return resultobj; | |
13847 | fail: | |
13848 | return NULL; | |
d55e5bfc RD |
13849 | } |
13850 | ||
13851 | ||
554f62e9 RD |
13852 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13853 | PyObject *resultobj = 0; | |
13854 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13855 | void *argp1 = 0 ; | |
13856 | int res1 = 0 ; | |
13857 | PyObject *swig_obj[1] ; | |
13858 | ||
13859 | if (!args) SWIG_fail; | |
13860 | swig_obj[0] = args; | |
13861 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13862 | if (!SWIG_IsOK(res1)) { | |
13863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13864 | } | |
13865 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13866 | { | |
13867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13868 | delete arg1; | |
d55e5bfc | 13869 | |
554f62e9 RD |
13870 | wxPyEndAllowThreads(__tstate); |
13871 | if (PyErr_Occurred()) SWIG_fail; | |
13872 | } | |
13873 | resultobj = SWIG_Py_Void(); | |
13874 | return resultobj; | |
13875 | fail: | |
13876 | return NULL; | |
d55e5bfc RD |
13877 | } |
13878 | ||
13879 | ||
554f62e9 RD |
13880 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13881 | PyObject *resultobj = 0; | |
13882 | wxFontMapper *result = 0 ; | |
13883 | ||
13884 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13885 | { | |
13886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13887 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13888 | wxPyEndAllowThreads(__tstate); | |
13889 | if (PyErr_Occurred()) SWIG_fail; | |
13890 | } | |
13891 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13892 | return resultobj; | |
13893 | fail: | |
13894 | return NULL; | |
13895 | } | |
13896 | ||
13897 | ||
13898 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13899 | PyObject *resultobj = 0; | |
13900 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13901 | wxFontMapper *result = 0 ; | |
13902 | void *argp1 = 0 ; | |
13903 | int res1 = 0 ; | |
13904 | PyObject * obj0 = 0 ; | |
13905 | char * kwnames[] = { | |
13906 | (char *) "mapper", NULL | |
13907 | }; | |
13908 | ||
13909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13911 | if (!SWIG_IsOK(res1)) { | |
13912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13913 | } | |
13914 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13915 | { | |
13916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13917 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13918 | wxPyEndAllowThreads(__tstate); | |
13919 | if (PyErr_Occurred()) SWIG_fail; | |
13920 | } | |
13921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13922 | return resultobj; | |
13923 | fail: | |
13924 | return NULL; | |
13925 | } | |
13926 | ||
13927 | ||
13928 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13929 | PyObject *resultobj = 0; | |
13930 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13931 | wxString *arg2 = 0 ; | |
13932 | bool arg3 = (bool) true ; | |
13933 | wxFontEncoding result; | |
13934 | void *argp1 = 0 ; | |
13935 | int res1 = 0 ; | |
13936 | bool temp2 = false ; | |
13937 | bool val3 ; | |
13938 | int ecode3 = 0 ; | |
13939 | PyObject * obj0 = 0 ; | |
13940 | PyObject * obj1 = 0 ; | |
13941 | PyObject * obj2 = 0 ; | |
13942 | char * kwnames[] = { | |
13943 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13944 | }; | |
13945 | ||
13946 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13947 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13948 | if (!SWIG_IsOK(res1)) { | |
13949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13950 | } | |
13951 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13952 | { | |
13953 | arg2 = wxString_in_helper(obj1); | |
13954 | if (arg2 == NULL) SWIG_fail; | |
13955 | temp2 = true; | |
13956 | } | |
13957 | if (obj2) { | |
13958 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13959 | if (!SWIG_IsOK(ecode3)) { | |
13960 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13961 | } | |
13962 | arg3 = static_cast< bool >(val3); | |
13963 | } | |
13964 | { | |
13965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13966 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13967 | wxPyEndAllowThreads(__tstate); | |
13968 | if (PyErr_Occurred()) SWIG_fail; | |
13969 | } | |
13970 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13971 | { | |
13972 | if (temp2) | |
13973 | delete arg2; | |
13974 | } | |
13975 | return resultobj; | |
13976 | fail: | |
13977 | { | |
13978 | if (temp2) | |
13979 | delete arg2; | |
13980 | } | |
13981 | return NULL; | |
d55e5bfc RD |
13982 | } |
13983 | ||
13984 | ||
554f62e9 RD |
13985 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13986 | PyObject *resultobj = 0; | |
13987 | size_t result; | |
13988 | ||
13989 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13990 | { | |
13991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13992 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13993 | wxPyEndAllowThreads(__tstate); | |
13994 | if (PyErr_Occurred()) SWIG_fail; | |
13995 | } | |
13996 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13997 | return resultobj; | |
13998 | fail: | |
13999 | return NULL; | |
14000 | } | |
14001 | ||
14002 | ||
14003 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14004 | PyObject *resultobj = 0; | |
14005 | size_t arg1 ; | |
14006 | wxFontEncoding result; | |
14007 | size_t val1 ; | |
14008 | int ecode1 = 0 ; | |
14009 | PyObject * obj0 = 0 ; | |
14010 | char * kwnames[] = { | |
14011 | (char *) "n", NULL | |
14012 | }; | |
14013 | ||
14014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
14015 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
14016 | if (!SWIG_IsOK(ecode1)) { | |
14017 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
14018 | } | |
14019 | arg1 = static_cast< size_t >(val1); | |
14020 | { | |
14021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14022 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
14023 | wxPyEndAllowThreads(__tstate); | |
14024 | if (PyErr_Occurred()) SWIG_fail; | |
14025 | } | |
14026 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14027 | return resultobj; | |
14028 | fail: | |
14029 | return NULL; | |
14030 | } | |
14031 | ||
14032 | ||
14033 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14034 | PyObject *resultobj = 0; | |
14035 | wxFontEncoding arg1 ; | |
14036 | wxString result; | |
14037 | int val1 ; | |
14038 | int ecode1 = 0 ; | |
14039 | PyObject * obj0 = 0 ; | |
14040 | char * kwnames[] = { | |
14041 | (char *) "encoding", NULL | |
14042 | }; | |
14043 | ||
14044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
14045 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14046 | if (!SWIG_IsOK(ecode1)) { | |
14047 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14048 | } | |
14049 | arg1 = static_cast< wxFontEncoding >(val1); | |
14050 | { | |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | result = wxFontMapper::GetEncodingName(arg1); | |
14053 | wxPyEndAllowThreads(__tstate); | |
14054 | if (PyErr_Occurred()) SWIG_fail; | |
14055 | } | |
14056 | { | |
14057 | #if wxUSE_UNICODE | |
14058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14059 | #else | |
14060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14061 | #endif | |
14062 | } | |
14063 | return resultobj; | |
14064 | fail: | |
14065 | return NULL; | |
d55e5bfc RD |
14066 | } |
14067 | ||
14068 | ||
554f62e9 RD |
14069 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14070 | PyObject *resultobj = 0; | |
14071 | wxFontEncoding arg1 ; | |
14072 | wxString result; | |
14073 | int val1 ; | |
14074 | int ecode1 = 0 ; | |
14075 | PyObject * obj0 = 0 ; | |
14076 | char * kwnames[] = { | |
14077 | (char *) "encoding", NULL | |
14078 | }; | |
14079 | ||
14080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
14081 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14082 | if (!SWIG_IsOK(ecode1)) { | |
14083 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14084 | } | |
14085 | arg1 = static_cast< wxFontEncoding >(val1); | |
14086 | { | |
14087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14088 | result = wxFontMapper::GetEncodingDescription(arg1); | |
14089 | wxPyEndAllowThreads(__tstate); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
14091 | } | |
14092 | { | |
14093 | #if wxUSE_UNICODE | |
14094 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14095 | #else | |
14096 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14097 | #endif | |
14098 | } | |
14099 | return resultobj; | |
14100 | fail: | |
14101 | return NULL; | |
d55e5bfc RD |
14102 | } |
14103 | ||
14104 | ||
554f62e9 RD |
14105 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14106 | PyObject *resultobj = 0; | |
14107 | wxString *arg1 = 0 ; | |
14108 | wxFontEncoding result; | |
14109 | bool temp1 = false ; | |
14110 | PyObject * obj0 = 0 ; | |
14111 | char * kwnames[] = { | |
14112 | (char *) "name", NULL | |
14113 | }; | |
14114 | ||
14115 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
14116 | { | |
14117 | arg1 = wxString_in_helper(obj0); | |
14118 | if (arg1 == NULL) SWIG_fail; | |
14119 | temp1 = true; | |
14120 | } | |
14121 | { | |
14122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14123 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
14124 | wxPyEndAllowThreads(__tstate); | |
14125 | if (PyErr_Occurred()) SWIG_fail; | |
14126 | } | |
14127 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14128 | { | |
14129 | if (temp1) | |
14130 | delete arg1; | |
14131 | } | |
14132 | return resultobj; | |
14133 | fail: | |
14134 | { | |
14135 | if (temp1) | |
14136 | delete arg1; | |
14137 | } | |
14138 | return NULL; | |
d55e5bfc RD |
14139 | } |
14140 | ||
14141 | ||
554f62e9 RD |
14142 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14143 | PyObject *resultobj = 0; | |
14144 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14145 | wxString *arg2 = 0 ; | |
14146 | void *argp1 = 0 ; | |
14147 | int res1 = 0 ; | |
14148 | bool temp2 = false ; | |
14149 | PyObject * obj0 = 0 ; | |
14150 | PyObject * obj1 = 0 ; | |
14151 | char * kwnames[] = { | |
14152 | (char *) "self",(char *) "prefix", NULL | |
14153 | }; | |
14154 | ||
14155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
14156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14157 | if (!SWIG_IsOK(res1)) { | |
14158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14159 | } | |
14160 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14161 | { | |
14162 | arg2 = wxString_in_helper(obj1); | |
14163 | if (arg2 == NULL) SWIG_fail; | |
14164 | temp2 = true; | |
14165 | } | |
14166 | { | |
14167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14168 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
14169 | wxPyEndAllowThreads(__tstate); | |
14170 | if (PyErr_Occurred()) SWIG_fail; | |
14171 | } | |
14172 | resultobj = SWIG_Py_Void(); | |
14173 | { | |
14174 | if (temp2) | |
14175 | delete arg2; | |
14176 | } | |
14177 | return resultobj; | |
14178 | fail: | |
14179 | { | |
14180 | if (temp2) | |
14181 | delete arg2; | |
14182 | } | |
14183 | return NULL; | |
d55e5bfc RD |
14184 | } |
14185 | ||
14186 | ||
554f62e9 RD |
14187 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14188 | PyObject *resultobj = 0; | |
14189 | wxString result; | |
14190 | ||
14191 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
14192 | { | |
14193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14194 | result = wxFontMapper::GetDefaultConfigPath(); | |
14195 | wxPyEndAllowThreads(__tstate); | |
14196 | if (PyErr_Occurred()) SWIG_fail; | |
14197 | } | |
14198 | { | |
14199 | #if wxUSE_UNICODE | |
14200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14201 | #else | |
14202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14203 | #endif | |
14204 | } | |
14205 | return resultobj; | |
14206 | fail: | |
14207 | return NULL; | |
14208 | } | |
14209 | ||
14210 | ||
14211 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14212 | PyObject *resultobj = 0; | |
14213 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14214 | wxFontEncoding arg2 ; | |
14215 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14216 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14217 | bool arg4 = (bool) true ; | |
14218 | PyObject *result = 0 ; | |
14219 | void *argp1 = 0 ; | |
14220 | int res1 = 0 ; | |
14221 | int val2 ; | |
14222 | int ecode2 = 0 ; | |
14223 | bool temp3 = false ; | |
14224 | bool val4 ; | |
14225 | int ecode4 = 0 ; | |
14226 | PyObject * obj0 = 0 ; | |
14227 | PyObject * obj1 = 0 ; | |
14228 | PyObject * obj2 = 0 ; | |
14229 | PyObject * obj3 = 0 ; | |
14230 | char * kwnames[] = { | |
14231 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
14232 | }; | |
14233 | ||
14234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14236 | if (!SWIG_IsOK(res1)) { | |
14237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14238 | } | |
14239 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14240 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14241 | if (!SWIG_IsOK(ecode2)) { | |
14242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14243 | } | |
14244 | arg2 = static_cast< wxFontEncoding >(val2); | |
14245 | if (obj2) { | |
d55e5bfc | 14246 | { |
554f62e9 RD |
14247 | arg3 = wxString_in_helper(obj2); |
14248 | if (arg3 == NULL) SWIG_fail; | |
14249 | temp3 = true; | |
d55e5bfc | 14250 | } |
554f62e9 RD |
14251 | } |
14252 | if (obj3) { | |
14253 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
14254 | if (!SWIG_IsOK(ecode4)) { | |
14255 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
14256 | } | |
14257 | arg4 = static_cast< bool >(val4); | |
14258 | } | |
14259 | { | |
14260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14261 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
14262 | wxPyEndAllowThreads(__tstate); | |
14263 | if (PyErr_Occurred()) SWIG_fail; | |
14264 | } | |
14265 | resultobj = result; | |
14266 | { | |
14267 | if (temp3) | |
14268 | delete arg3; | |
14269 | } | |
14270 | return resultobj; | |
14271 | fail: | |
14272 | { | |
14273 | if (temp3) | |
14274 | delete arg3; | |
14275 | } | |
14276 | return NULL; | |
14277 | } | |
14278 | ||
14279 | ||
14280 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14281 | PyObject *resultobj = 0; | |
14282 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14283 | wxFontEncoding arg2 ; | |
14284 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14285 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14286 | bool result; | |
14287 | void *argp1 = 0 ; | |
14288 | int res1 = 0 ; | |
14289 | int val2 ; | |
14290 | int ecode2 = 0 ; | |
14291 | bool temp3 = false ; | |
14292 | PyObject * obj0 = 0 ; | |
14293 | PyObject * obj1 = 0 ; | |
14294 | PyObject * obj2 = 0 ; | |
14295 | char * kwnames[] = { | |
14296 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
14297 | }; | |
14298 | ||
14299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14301 | if (!SWIG_IsOK(res1)) { | |
14302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14303 | } | |
14304 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14305 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14306 | if (!SWIG_IsOK(ecode2)) { | |
14307 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14308 | } | |
14309 | arg2 = static_cast< wxFontEncoding >(val2); | |
14310 | if (obj2) { | |
093d3ff1 | 14311 | { |
554f62e9 RD |
14312 | arg3 = wxString_in_helper(obj2); |
14313 | if (arg3 == NULL) SWIG_fail; | |
14314 | temp3 = true; | |
d55e5bfc | 14315 | } |
554f62e9 RD |
14316 | } |
14317 | { | |
14318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14319 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
14320 | wxPyEndAllowThreads(__tstate); | |
14321 | if (PyErr_Occurred()) SWIG_fail; | |
14322 | } | |
14323 | { | |
14324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14325 | } | |
14326 | { | |
14327 | if (temp3) | |
14328 | delete arg3; | |
14329 | } | |
14330 | return resultobj; | |
14331 | fail: | |
14332 | { | |
14333 | if (temp3) | |
14334 | delete arg3; | |
14335 | } | |
14336 | return NULL; | |
14337 | } | |
14338 | ||
14339 | ||
14340 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14341 | PyObject *resultobj = 0; | |
14342 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14343 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14344 | void *argp1 = 0 ; | |
14345 | int res1 = 0 ; | |
14346 | void *argp2 = 0 ; | |
14347 | int res2 = 0 ; | |
14348 | PyObject * obj0 = 0 ; | |
14349 | PyObject * obj1 = 0 ; | |
14350 | char * kwnames[] = { | |
14351 | (char *) "self",(char *) "parent", NULL | |
14352 | }; | |
14353 | ||
14354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14356 | if (!SWIG_IsOK(res1)) { | |
14357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14358 | } | |
14359 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14360 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14361 | if (!SWIG_IsOK(res2)) { | |
14362 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14363 | } | |
14364 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14365 | { | |
14366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14367 | (arg1)->SetDialogParent(arg2); | |
14368 | wxPyEndAllowThreads(__tstate); | |
14369 | if (PyErr_Occurred()) SWIG_fail; | |
14370 | } | |
14371 | resultobj = SWIG_Py_Void(); | |
14372 | return resultobj; | |
14373 | fail: | |
14374 | return NULL; | |
14375 | } | |
14376 | ||
14377 | ||
14378 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14379 | PyObject *resultobj = 0; | |
14380 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14381 | wxString *arg2 = 0 ; | |
14382 | void *argp1 = 0 ; | |
14383 | int res1 = 0 ; | |
14384 | bool temp2 = false ; | |
14385 | PyObject * obj0 = 0 ; | |
14386 | PyObject * obj1 = 0 ; | |
14387 | char * kwnames[] = { | |
14388 | (char *) "self",(char *) "title", NULL | |
14389 | }; | |
14390 | ||
14391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14393 | if (!SWIG_IsOK(res1)) { | |
14394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14395 | } | |
14396 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14397 | { | |
14398 | arg2 = wxString_in_helper(obj1); | |
14399 | if (arg2 == NULL) SWIG_fail; | |
14400 | temp2 = true; | |
14401 | } | |
14402 | { | |
14403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14404 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
14405 | wxPyEndAllowThreads(__tstate); | |
14406 | if (PyErr_Occurred()) SWIG_fail; | |
14407 | } | |
14408 | resultobj = SWIG_Py_Void(); | |
14409 | { | |
14410 | if (temp2) | |
14411 | delete arg2; | |
14412 | } | |
14413 | return resultobj; | |
14414 | fail: | |
14415 | { | |
14416 | if (temp2) | |
14417 | delete arg2; | |
14418 | } | |
14419 | return NULL; | |
14420 | } | |
14421 | ||
14422 | ||
14423 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14424 | PyObject *obj; | |
14425 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14426 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
14427 | return SWIG_Py_Void(); | |
14428 | } | |
14429 | ||
14430 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14431 | return SWIG_Python_InitShadowInstance(args); | |
14432 | } | |
14433 | ||
14434 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14435 | PyObject *resultobj = 0; | |
14436 | int arg1 ; | |
14437 | int arg2 ; | |
14438 | int arg3 ; | |
14439 | int arg4 ; | |
14440 | bool arg5 = (bool) false ; | |
14441 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14442 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14443 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14444 | wxFont *result = 0 ; | |
14445 | int val1 ; | |
14446 | int ecode1 = 0 ; | |
14447 | int val2 ; | |
14448 | int ecode2 = 0 ; | |
14449 | int val3 ; | |
14450 | int ecode3 = 0 ; | |
14451 | int val4 ; | |
14452 | int ecode4 = 0 ; | |
14453 | bool val5 ; | |
14454 | int ecode5 = 0 ; | |
14455 | bool temp6 = false ; | |
14456 | int val7 ; | |
14457 | int ecode7 = 0 ; | |
14458 | PyObject * obj0 = 0 ; | |
14459 | PyObject * obj1 = 0 ; | |
14460 | PyObject * obj2 = 0 ; | |
14461 | PyObject * obj3 = 0 ; | |
14462 | PyObject * obj4 = 0 ; | |
14463 | PyObject * obj5 = 0 ; | |
14464 | PyObject * obj6 = 0 ; | |
14465 | char * kwnames[] = { | |
14466 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
14467 | }; | |
14468 | ||
14469 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14470 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14471 | if (!SWIG_IsOK(ecode1)) { | |
14472 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
14473 | } | |
14474 | arg1 = static_cast< int >(val1); | |
14475 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14476 | if (!SWIG_IsOK(ecode2)) { | |
14477 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
14478 | } | |
14479 | arg2 = static_cast< int >(val2); | |
14480 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14481 | if (!SWIG_IsOK(ecode3)) { | |
14482 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
14483 | } | |
14484 | arg3 = static_cast< int >(val3); | |
14485 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14486 | if (!SWIG_IsOK(ecode4)) { | |
14487 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
14488 | } | |
14489 | arg4 = static_cast< int >(val4); | |
14490 | if (obj4) { | |
14491 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14492 | if (!SWIG_IsOK(ecode5)) { | |
14493 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
14494 | } | |
14495 | arg5 = static_cast< bool >(val5); | |
14496 | } | |
14497 | if (obj5) { | |
d55e5bfc | 14498 | { |
554f62e9 RD |
14499 | arg6 = wxString_in_helper(obj5); |
14500 | if (arg6 == NULL) SWIG_fail; | |
14501 | temp6 = true; | |
d55e5bfc | 14502 | } |
554f62e9 RD |
14503 | } |
14504 | if (obj6) { | |
14505 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14506 | if (!SWIG_IsOK(ecode7)) { | |
14507 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14508 | } | |
14509 | arg7 = static_cast< wxFontEncoding >(val7); | |
14510 | } | |
14511 | { | |
14512 | if (!wxPyCheckForApp()) SWIG_fail; | |
14513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14514 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14515 | wxPyEndAllowThreads(__tstate); | |
14516 | if (PyErr_Occurred()) SWIG_fail; | |
14517 | } | |
14518 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
14519 | { | |
14520 | if (temp6) | |
14521 | delete arg6; | |
14522 | } | |
14523 | return resultobj; | |
14524 | fail: | |
14525 | { | |
14526 | if (temp6) | |
14527 | delete arg6; | |
14528 | } | |
14529 | return NULL; | |
d55e5bfc RD |
14530 | } |
14531 | ||
14532 | ||
554f62e9 RD |
14533 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14534 | PyObject *resultobj = 0; | |
14535 | wxFont *arg1 = (wxFont *) 0 ; | |
14536 | void *argp1 = 0 ; | |
14537 | int res1 = 0 ; | |
14538 | PyObject *swig_obj[1] ; | |
14539 | ||
14540 | if (!args) SWIG_fail; | |
14541 | swig_obj[0] = args; | |
14542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
14543 | if (!SWIG_IsOK(res1)) { | |
14544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14545 | } | |
14546 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14547 | { | |
14548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14549 | delete arg1; | |
d55e5bfc | 14550 | |
554f62e9 RD |
14551 | wxPyEndAllowThreads(__tstate); |
14552 | if (PyErr_Occurred()) SWIG_fail; | |
14553 | } | |
14554 | resultobj = SWIG_Py_Void(); | |
14555 | return resultobj; | |
14556 | fail: | |
14557 | return NULL; | |
14558 | } | |
14559 | ||
14560 | ||
14561 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14562 | PyObject *resultobj = 0; | |
14563 | wxNativeFontInfo *arg1 = 0 ; | |
14564 | wxFont *result = 0 ; | |
14565 | void *argp1 = 0 ; | |
14566 | int res1 = 0 ; | |
14567 | PyObject * obj0 = 0 ; | |
14568 | char * kwnames[] = { | |
14569 | (char *) "info", NULL | |
14570 | }; | |
14571 | ||
14572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
14573 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
14574 | if (!SWIG_IsOK(res1)) { | |
14575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14576 | } | |
14577 | if (!argp1) { | |
14578 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14579 | } | |
14580 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
14581 | { | |
14582 | if (!wxPyCheckForApp()) SWIG_fail; | |
14583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14584 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
14585 | wxPyEndAllowThreads(__tstate); | |
14586 | if (PyErr_Occurred()) SWIG_fail; | |
14587 | } | |
14588 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14589 | return resultobj; | |
14590 | fail: | |
14591 | return NULL; | |
d55e5bfc RD |
14592 | } |
14593 | ||
14594 | ||
554f62e9 RD |
14595 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14596 | PyObject *resultobj = 0; | |
14597 | wxString *arg1 = 0 ; | |
14598 | wxFont *result = 0 ; | |
14599 | bool temp1 = false ; | |
14600 | PyObject * obj0 = 0 ; | |
14601 | char * kwnames[] = { | |
14602 | (char *) "info", NULL | |
14603 | }; | |
14604 | ||
14605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
14606 | { | |
14607 | arg1 = wxString_in_helper(obj0); | |
14608 | if (arg1 == NULL) SWIG_fail; | |
14609 | temp1 = true; | |
14610 | } | |
14611 | { | |
14612 | if (!wxPyCheckForApp()) SWIG_fail; | |
14613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14614 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
14615 | wxPyEndAllowThreads(__tstate); | |
14616 | if (PyErr_Occurred()) SWIG_fail; | |
14617 | } | |
14618 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14619 | { | |
14620 | if (temp1) | |
14621 | delete arg1; | |
14622 | } | |
14623 | return resultobj; | |
14624 | fail: | |
14625 | { | |
14626 | if (temp1) | |
14627 | delete arg1; | |
14628 | } | |
14629 | return NULL; | |
14630 | } | |
14631 | ||
14632 | ||
14633 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14634 | PyObject *resultobj = 0; | |
14635 | int arg1 ; | |
14636 | wxFontFamily arg2 ; | |
14637 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14638 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14639 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14640 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14641 | wxFont *result = 0 ; | |
14642 | int val1 ; | |
14643 | int ecode1 = 0 ; | |
14644 | int val2 ; | |
14645 | int ecode2 = 0 ; | |
14646 | int val3 ; | |
14647 | int ecode3 = 0 ; | |
14648 | bool temp4 = false ; | |
14649 | int val5 ; | |
14650 | int ecode5 = 0 ; | |
14651 | PyObject * obj0 = 0 ; | |
14652 | PyObject * obj1 = 0 ; | |
14653 | PyObject * obj2 = 0 ; | |
14654 | PyObject * obj3 = 0 ; | |
14655 | PyObject * obj4 = 0 ; | |
14656 | char * kwnames[] = { | |
14657 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14658 | }; | |
14659 | ||
14660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14661 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14662 | if (!SWIG_IsOK(ecode1)) { | |
14663 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
14664 | } | |
14665 | arg1 = static_cast< int >(val1); | |
14666 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14667 | if (!SWIG_IsOK(ecode2)) { | |
14668 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14669 | } | |
14670 | arg2 = static_cast< wxFontFamily >(val2); | |
14671 | if (obj2) { | |
14672 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14673 | if (!SWIG_IsOK(ecode3)) { | |
14674 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
14675 | } | |
14676 | arg3 = static_cast< int >(val3); | |
14677 | } | |
14678 | if (obj3) { | |
d55e5bfc | 14679 | { |
554f62e9 RD |
14680 | arg4 = wxString_in_helper(obj3); |
14681 | if (arg4 == NULL) SWIG_fail; | |
14682 | temp4 = true; | |
d55e5bfc | 14683 | } |
554f62e9 RD |
14684 | } |
14685 | if (obj4) { | |
14686 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14687 | if (!SWIG_IsOK(ecode5)) { | |
14688 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14689 | } | |
14690 | arg5 = static_cast< wxFontEncoding >(val5); | |
14691 | } | |
14692 | { | |
14693 | if (!wxPyCheckForApp()) SWIG_fail; | |
14694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14695 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14696 | wxPyEndAllowThreads(__tstate); | |
14697 | if (PyErr_Occurred()) SWIG_fail; | |
14698 | } | |
14699 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14700 | { | |
14701 | if (temp4) | |
14702 | delete arg4; | |
14703 | } | |
14704 | return resultobj; | |
14705 | fail: | |
14706 | { | |
14707 | if (temp4) | |
14708 | delete arg4; | |
14709 | } | |
14710 | return NULL; | |
14711 | } | |
14712 | ||
14713 | ||
14714 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14715 | PyObject *resultobj = 0; | |
14716 | wxSize *arg1 = 0 ; | |
14717 | int arg2 ; | |
14718 | int arg3 ; | |
14719 | int arg4 ; | |
14720 | bool arg5 = (bool) false ; | |
14721 | wxString const &arg6_defvalue = wxEmptyString ; | |
14722 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14723 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14724 | wxFont *result = 0 ; | |
14725 | wxSize temp1 ; | |
14726 | int val2 ; | |
14727 | int ecode2 = 0 ; | |
14728 | int val3 ; | |
14729 | int ecode3 = 0 ; | |
14730 | int val4 ; | |
14731 | int ecode4 = 0 ; | |
14732 | bool val5 ; | |
14733 | int ecode5 = 0 ; | |
14734 | bool temp6 = false ; | |
14735 | int val7 ; | |
14736 | int ecode7 = 0 ; | |
14737 | PyObject * obj0 = 0 ; | |
14738 | PyObject * obj1 = 0 ; | |
14739 | PyObject * obj2 = 0 ; | |
14740 | PyObject * obj3 = 0 ; | |
14741 | PyObject * obj4 = 0 ; | |
14742 | PyObject * obj5 = 0 ; | |
14743 | PyObject * obj6 = 0 ; | |
14744 | char * kwnames[] = { | |
14745 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
14746 | }; | |
14747 | ||
14748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14749 | { | |
14750 | arg1 = &temp1; | |
14751 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14752 | } | |
14753 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14754 | if (!SWIG_IsOK(ecode2)) { | |
14755 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
14756 | } | |
14757 | arg2 = static_cast< int >(val2); | |
14758 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14759 | if (!SWIG_IsOK(ecode3)) { | |
14760 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14761 | } | |
14762 | arg3 = static_cast< int >(val3); | |
14763 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14764 | if (!SWIG_IsOK(ecode4)) { | |
14765 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
14766 | } | |
14767 | arg4 = static_cast< int >(val4); | |
14768 | if (obj4) { | |
14769 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14770 | if (!SWIG_IsOK(ecode5)) { | |
14771 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
14772 | } | |
14773 | arg5 = static_cast< bool >(val5); | |
14774 | } | |
14775 | if (obj5) { | |
d55e5bfc | 14776 | { |
554f62e9 RD |
14777 | arg6 = wxString_in_helper(obj5); |
14778 | if (arg6 == NULL) SWIG_fail; | |
14779 | temp6 = true; | |
d55e5bfc | 14780 | } |
554f62e9 RD |
14781 | } |
14782 | if (obj6) { | |
14783 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14784 | if (!SWIG_IsOK(ecode7)) { | |
14785 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14786 | } | |
14787 | arg7 = static_cast< wxFontEncoding >(val7); | |
14788 | } | |
14789 | { | |
14790 | if (!wxPyCheckForApp()) SWIG_fail; | |
14791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14792 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14793 | wxPyEndAllowThreads(__tstate); | |
14794 | if (PyErr_Occurred()) SWIG_fail; | |
14795 | } | |
14796 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14797 | { | |
14798 | if (temp6) | |
14799 | delete arg6; | |
14800 | } | |
14801 | return resultobj; | |
14802 | fail: | |
14803 | { | |
14804 | if (temp6) | |
14805 | delete arg6; | |
14806 | } | |
14807 | return NULL; | |
14808 | } | |
14809 | ||
14810 | ||
14811 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14812 | PyObject *resultobj = 0; | |
14813 | wxSize *arg1 = 0 ; | |
14814 | wxFontFamily arg2 ; | |
14815 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14816 | wxString const &arg4_defvalue = wxEmptyString ; | |
14817 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14818 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14819 | wxFont *result = 0 ; | |
14820 | wxSize temp1 ; | |
14821 | int val2 ; | |
14822 | int ecode2 = 0 ; | |
14823 | int val3 ; | |
14824 | int ecode3 = 0 ; | |
14825 | bool temp4 = false ; | |
14826 | int val5 ; | |
14827 | int ecode5 = 0 ; | |
14828 | PyObject * obj0 = 0 ; | |
14829 | PyObject * obj1 = 0 ; | |
14830 | PyObject * obj2 = 0 ; | |
14831 | PyObject * obj3 = 0 ; | |
14832 | PyObject * obj4 = 0 ; | |
14833 | char * kwnames[] = { | |
14834 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14835 | }; | |
14836 | ||
14837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14838 | { | |
14839 | arg1 = &temp1; | |
14840 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14841 | } | |
14842 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14843 | if (!SWIG_IsOK(ecode2)) { | |
14844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14845 | } | |
14846 | arg2 = static_cast< wxFontFamily >(val2); | |
14847 | if (obj2) { | |
14848 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14849 | if (!SWIG_IsOK(ecode3)) { | |
14850 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14851 | } | |
14852 | arg3 = static_cast< int >(val3); | |
14853 | } | |
14854 | if (obj3) { | |
d55e5bfc | 14855 | { |
554f62e9 RD |
14856 | arg4 = wxString_in_helper(obj3); |
14857 | if (arg4 == NULL) SWIG_fail; | |
14858 | temp4 = true; | |
d55e5bfc | 14859 | } |
554f62e9 RD |
14860 | } |
14861 | if (obj4) { | |
14862 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14863 | if (!SWIG_IsOK(ecode5)) { | |
14864 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14865 | } | |
14866 | arg5 = static_cast< wxFontEncoding >(val5); | |
14867 | } | |
14868 | { | |
14869 | if (!wxPyCheckForApp()) SWIG_fail; | |
14870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14871 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14872 | wxPyEndAllowThreads(__tstate); | |
14873 | if (PyErr_Occurred()) SWIG_fail; | |
14874 | } | |
14875 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14876 | { | |
14877 | if (temp4) | |
14878 | delete arg4; | |
14879 | } | |
14880 | return resultobj; | |
14881 | fail: | |
14882 | { | |
14883 | if (temp4) | |
14884 | delete arg4; | |
14885 | } | |
14886 | return NULL; | |
d55e5bfc RD |
14887 | } |
14888 | ||
14889 | ||
b39fe951 | 14890 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
14891 | PyObject *resultobj = 0; |
14892 | wxFont *arg1 = (wxFont *) 0 ; | |
14893 | bool result; | |
14894 | void *argp1 = 0 ; | |
14895 | int res1 = 0 ; | |
14896 | PyObject *swig_obj[1] ; | |
14897 | ||
14898 | if (!args) SWIG_fail; | |
14899 | swig_obj[0] = args; | |
14900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14901 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
554f62e9 RD |
14903 | } |
14904 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14905 | { | |
14906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14907 | result = (bool)((wxFont const *)arg1)->IsOk(); |
554f62e9 RD |
14908 | wxPyEndAllowThreads(__tstate); |
14909 | if (PyErr_Occurred()) SWIG_fail; | |
14910 | } | |
14911 | { | |
14912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14913 | } | |
14914 | return resultobj; | |
14915 | fail: | |
14916 | return NULL; | |
14917 | } | |
14918 | ||
14919 | ||
14920 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14921 | PyObject *resultobj = 0; | |
14922 | wxFont *arg1 = (wxFont *) 0 ; | |
14923 | wxFont *arg2 = (wxFont *) 0 ; | |
14924 | bool result; | |
14925 | void *argp1 = 0 ; | |
14926 | int res1 = 0 ; | |
14927 | void *argp2 = 0 ; | |
14928 | int res2 = 0 ; | |
14929 | PyObject * obj0 = 0 ; | |
14930 | PyObject * obj1 = 0 ; | |
14931 | char * kwnames[] = { | |
14932 | (char *) "self",(char *) "other", NULL | |
14933 | }; | |
14934 | ||
14935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14936 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14937 | if (!SWIG_IsOK(res1)) { | |
14938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14939 | } | |
14940 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14941 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14942 | if (!SWIG_IsOK(res2)) { | |
14943 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14944 | } | |
14945 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14946 | { | |
14947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14948 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14949 | wxPyEndAllowThreads(__tstate); | |
14950 | if (PyErr_Occurred()) SWIG_fail; | |
14951 | } | |
14952 | { | |
14953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14954 | } | |
14955 | return resultobj; | |
14956 | fail: | |
14957 | return NULL; | |
14958 | } | |
14959 | ||
14960 | ||
14961 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14962 | PyObject *resultobj = 0; | |
14963 | wxFont *arg1 = (wxFont *) 0 ; | |
14964 | wxFont *arg2 = (wxFont *) 0 ; | |
14965 | bool result; | |
14966 | void *argp1 = 0 ; | |
14967 | int res1 = 0 ; | |
14968 | void *argp2 = 0 ; | |
14969 | int res2 = 0 ; | |
14970 | PyObject * obj0 = 0 ; | |
14971 | PyObject * obj1 = 0 ; | |
14972 | char * kwnames[] = { | |
14973 | (char *) "self",(char *) "other", NULL | |
14974 | }; | |
14975 | ||
14976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14978 | if (!SWIG_IsOK(res1)) { | |
14979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14980 | } | |
14981 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14982 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14983 | if (!SWIG_IsOK(res2)) { | |
14984 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14985 | } | |
14986 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14987 | { | |
14988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14989 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14990 | wxPyEndAllowThreads(__tstate); | |
14991 | if (PyErr_Occurred()) SWIG_fail; | |
14992 | } | |
14993 | { | |
14994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14995 | } | |
14996 | return resultobj; | |
14997 | fail: | |
14998 | return NULL; | |
a2569024 RD |
14999 | } |
15000 | ||
15001 | ||
554f62e9 RD |
15002 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15003 | PyObject *resultobj = 0; | |
15004 | wxFont *arg1 = (wxFont *) 0 ; | |
15005 | int 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_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15015 | } | |
15016 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15017 | { | |
15018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15019 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
15020 | wxPyEndAllowThreads(__tstate); | |
15021 | if (PyErr_Occurred()) SWIG_fail; | |
15022 | } | |
15023 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15024 | return resultobj; | |
15025 | fail: | |
15026 | return NULL; | |
d55e5bfc RD |
15027 | } |
15028 | ||
15029 | ||
554f62e9 RD |
15030 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15031 | PyObject *resultobj = 0; | |
15032 | wxFont *arg1 = (wxFont *) 0 ; | |
15033 | wxSize 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_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15043 | } | |
15044 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15045 | { | |
15046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15047 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
15048 | wxPyEndAllowThreads(__tstate); | |
15049 | if (PyErr_Occurred()) SWIG_fail; | |
15050 | } | |
15051 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
15052 | return resultobj; | |
15053 | fail: | |
15054 | return NULL; | |
d55e5bfc RD |
15055 | } |
15056 | ||
15057 | ||
554f62e9 RD |
15058 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15059 | PyObject *resultobj = 0; | |
15060 | wxFont *arg1 = (wxFont *) 0 ; | |
15061 | bool result; | |
15062 | void *argp1 = 0 ; | |
15063 | int res1 = 0 ; | |
15064 | PyObject *swig_obj[1] ; | |
15065 | ||
15066 | if (!args) SWIG_fail; | |
15067 | swig_obj[0] = args; | |
15068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15069 | if (!SWIG_IsOK(res1)) { | |
15070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15071 | } | |
15072 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15073 | { | |
15074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15075 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
15076 | wxPyEndAllowThreads(__tstate); | |
15077 | if (PyErr_Occurred()) SWIG_fail; | |
15078 | } | |
15079 | { | |
15080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15081 | } | |
15082 | return resultobj; | |
15083 | fail: | |
15084 | return NULL; | |
d55e5bfc RD |
15085 | } |
15086 | ||
15087 | ||
554f62e9 RD |
15088 | SWIGINTERN PyObject *_wrap_Font_GetFamily(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_GetFamily" "', 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)->GetFamily(); | |
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_GetStyle(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_GetStyle" "', 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)->GetStyle(); | |
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_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15145 | PyObject *resultobj = 0; | |
15146 | wxFont *arg1 = (wxFont *) 0 ; | |
15147 | int 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_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15157 | } | |
15158 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15159 | { | |
15160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15161 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
15162 | wxPyEndAllowThreads(__tstate); | |
15163 | if (PyErr_Occurred()) SWIG_fail; | |
15164 | } | |
15165 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15166 | return resultobj; | |
15167 | fail: | |
15168 | return NULL; | |
d55e5bfc RD |
15169 | } |
15170 | ||
15171 | ||
554f62e9 RD |
15172 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15173 | PyObject *resultobj = 0; | |
15174 | wxFont *arg1 = (wxFont *) 0 ; | |
15175 | bool result; | |
15176 | void *argp1 = 0 ; | |
15177 | int res1 = 0 ; | |
15178 | PyObject *swig_obj[1] ; | |
15179 | ||
15180 | if (!args) SWIG_fail; | |
15181 | swig_obj[0] = args; | |
15182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15183 | if (!SWIG_IsOK(res1)) { | |
15184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15185 | } | |
15186 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15187 | { | |
15188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15189 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
15190 | wxPyEndAllowThreads(__tstate); | |
15191 | if (PyErr_Occurred()) SWIG_fail; | |
15192 | } | |
15193 | { | |
15194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15195 | } | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | return NULL; | |
d55e5bfc RD |
15199 | } |
15200 | ||
15201 | ||
554f62e9 RD |
15202 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15203 | PyObject *resultobj = 0; | |
15204 | wxFont *arg1 = (wxFont *) 0 ; | |
15205 | wxString result; | |
15206 | void *argp1 = 0 ; | |
15207 | int res1 = 0 ; | |
15208 | PyObject *swig_obj[1] ; | |
15209 | ||
15210 | if (!args) SWIG_fail; | |
15211 | swig_obj[0] = args; | |
15212 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15213 | if (!SWIG_IsOK(res1)) { | |
15214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15215 | } | |
15216 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15217 | { | |
15218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15219 | result = ((wxFont const *)arg1)->GetFaceName(); | |
15220 | wxPyEndAllowThreads(__tstate); | |
15221 | if (PyErr_Occurred()) SWIG_fail; | |
15222 | } | |
15223 | { | |
15224 | #if wxUSE_UNICODE | |
15225 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15226 | #else | |
15227 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15228 | #endif | |
15229 | } | |
15230 | return resultobj; | |
15231 | fail: | |
15232 | return NULL; | |
d55e5bfc RD |
15233 | } |
15234 | ||
15235 | ||
554f62e9 RD |
15236 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15237 | PyObject *resultobj = 0; | |
15238 | wxFont *arg1 = (wxFont *) 0 ; | |
15239 | wxFontEncoding result; | |
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_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15249 | } | |
15250 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15251 | { | |
15252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15253 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
15254 | wxPyEndAllowThreads(__tstate); | |
15255 | if (PyErr_Occurred()) SWIG_fail; | |
15256 | } | |
15257 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15258 | return resultobj; | |
15259 | fail: | |
15260 | return NULL; | |
d55e5bfc RD |
15261 | } |
15262 | ||
15263 | ||
554f62e9 RD |
15264 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15265 | PyObject *resultobj = 0; | |
15266 | wxFont *arg1 = (wxFont *) 0 ; | |
15267 | wxNativeFontInfo *result = 0 ; | |
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_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15277 | } | |
15278 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15279 | { | |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
15282 | wxPyEndAllowThreads(__tstate); | |
15283 | if (PyErr_Occurred()) SWIG_fail; | |
15284 | } | |
15285 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
15286 | return resultobj; | |
15287 | fail: | |
15288 | return NULL; | |
d55e5bfc RD |
15289 | } |
15290 | ||
15291 | ||
554f62e9 RD |
15292 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15293 | PyObject *resultobj = 0; | |
15294 | wxFont *arg1 = (wxFont *) 0 ; | |
15295 | bool result; | |
15296 | void *argp1 = 0 ; | |
15297 | int res1 = 0 ; | |
15298 | PyObject *swig_obj[1] ; | |
15299 | ||
15300 | if (!args) SWIG_fail; | |
15301 | swig_obj[0] = args; | |
15302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15303 | if (!SWIG_IsOK(res1)) { | |
15304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15305 | } | |
15306 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15307 | { | |
15308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15309 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
15310 | wxPyEndAllowThreads(__tstate); | |
15311 | if (PyErr_Occurred()) SWIG_fail; | |
15312 | } | |
15313 | { | |
15314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15315 | } | |
15316 | return resultobj; | |
15317 | fail: | |
15318 | return NULL; | |
d55e5bfc RD |
15319 | } |
15320 | ||
15321 | ||
554f62e9 RD |
15322 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15323 | PyObject *resultobj = 0; | |
15324 | wxFont *arg1 = (wxFont *) 0 ; | |
15325 | wxString result; | |
15326 | void *argp1 = 0 ; | |
15327 | int res1 = 0 ; | |
15328 | PyObject *swig_obj[1] ; | |
15329 | ||
15330 | if (!args) SWIG_fail; | |
15331 | swig_obj[0] = args; | |
15332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15333 | if (!SWIG_IsOK(res1)) { | |
15334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15335 | } | |
15336 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15337 | { | |
15338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15339 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
15340 | wxPyEndAllowThreads(__tstate); | |
15341 | if (PyErr_Occurred()) SWIG_fail; | |
15342 | } | |
15343 | { | |
15344 | #if wxUSE_UNICODE | |
15345 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15346 | #else | |
15347 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15348 | #endif | |
15349 | } | |
15350 | return resultobj; | |
15351 | fail: | |
15352 | return NULL; | |
d55e5bfc RD |
15353 | } |
15354 | ||
15355 | ||
554f62e9 RD |
15356 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15357 | PyObject *resultobj = 0; | |
15358 | wxFont *arg1 = (wxFont *) 0 ; | |
15359 | wxString result; | |
15360 | void *argp1 = 0 ; | |
15361 | int res1 = 0 ; | |
15362 | PyObject *swig_obj[1] ; | |
15363 | ||
15364 | if (!args) SWIG_fail; | |
15365 | swig_obj[0] = args; | |
15366 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15367 | if (!SWIG_IsOK(res1)) { | |
15368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15369 | } | |
15370 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15371 | { | |
15372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15373 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
15374 | wxPyEndAllowThreads(__tstate); | |
15375 | if (PyErr_Occurred()) SWIG_fail; | |
15376 | } | |
15377 | { | |
15378 | #if wxUSE_UNICODE | |
15379 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15380 | #else | |
15381 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15382 | #endif | |
15383 | } | |
15384 | return resultobj; | |
15385 | fail: | |
15386 | return NULL; | |
15387 | } | |
15388 | ||
15389 | ||
15390 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15391 | PyObject *resultobj = 0; | |
15392 | wxFont *arg1 = (wxFont *) 0 ; | |
15393 | int arg2 ; | |
15394 | void *argp1 = 0 ; | |
15395 | int res1 = 0 ; | |
15396 | int val2 ; | |
15397 | int ecode2 = 0 ; | |
15398 | PyObject * obj0 = 0 ; | |
15399 | PyObject * obj1 = 0 ; | |
15400 | char * kwnames[] = { | |
15401 | (char *) "self",(char *) "pointSize", NULL | |
15402 | }; | |
15403 | ||
15404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
15405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15406 | if (!SWIG_IsOK(res1)) { | |
15407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15408 | } | |
15409 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15410 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15411 | if (!SWIG_IsOK(ecode2)) { | |
15412 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
15413 | } | |
15414 | arg2 = static_cast< int >(val2); | |
15415 | { | |
15416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15417 | (arg1)->SetPointSize(arg2); | |
15418 | wxPyEndAllowThreads(__tstate); | |
15419 | if (PyErr_Occurred()) SWIG_fail; | |
15420 | } | |
15421 | resultobj = SWIG_Py_Void(); | |
15422 | return resultobj; | |
15423 | fail: | |
15424 | return NULL; | |
15425 | } | |
15426 | ||
15427 | ||
15428 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15429 | PyObject *resultobj = 0; | |
15430 | wxFont *arg1 = (wxFont *) 0 ; | |
15431 | wxSize *arg2 = 0 ; | |
15432 | void *argp1 = 0 ; | |
15433 | int res1 = 0 ; | |
15434 | wxSize temp2 ; | |
15435 | PyObject * obj0 = 0 ; | |
15436 | PyObject * obj1 = 0 ; | |
15437 | char * kwnames[] = { | |
15438 | (char *) "self",(char *) "pixelSize", NULL | |
15439 | }; | |
15440 | ||
15441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
15442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15443 | if (!SWIG_IsOK(res1)) { | |
15444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15445 | } | |
15446 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15447 | { | |
15448 | arg2 = &temp2; | |
15449 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15450 | } | |
15451 | { | |
15452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15453 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
15454 | wxPyEndAllowThreads(__tstate); | |
15455 | if (PyErr_Occurred()) SWIG_fail; | |
15456 | } | |
15457 | resultobj = SWIG_Py_Void(); | |
15458 | return resultobj; | |
15459 | fail: | |
15460 | return NULL; | |
15461 | } | |
15462 | ||
15463 | ||
15464 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15465 | PyObject *resultobj = 0; | |
15466 | wxFont *arg1 = (wxFont *) 0 ; | |
15467 | int arg2 ; | |
15468 | void *argp1 = 0 ; | |
15469 | int res1 = 0 ; | |
15470 | int val2 ; | |
15471 | int ecode2 = 0 ; | |
15472 | PyObject * obj0 = 0 ; | |
15473 | PyObject * obj1 = 0 ; | |
15474 | char * kwnames[] = { | |
15475 | (char *) "self",(char *) "family", NULL | |
15476 | }; | |
15477 | ||
15478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
15479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15480 | if (!SWIG_IsOK(res1)) { | |
15481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15482 | } | |
15483 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15484 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15485 | if (!SWIG_IsOK(ecode2)) { | |
15486 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
15487 | } | |
15488 | arg2 = static_cast< int >(val2); | |
15489 | { | |
15490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15491 | (arg1)->SetFamily(arg2); | |
15492 | wxPyEndAllowThreads(__tstate); | |
15493 | if (PyErr_Occurred()) SWIG_fail; | |
15494 | } | |
15495 | resultobj = SWIG_Py_Void(); | |
15496 | return resultobj; | |
15497 | fail: | |
15498 | return NULL; | |
15499 | } | |
15500 | ||
15501 | ||
15502 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15503 | PyObject *resultobj = 0; | |
15504 | wxFont *arg1 = (wxFont *) 0 ; | |
15505 | int arg2 ; | |
15506 | void *argp1 = 0 ; | |
15507 | int res1 = 0 ; | |
15508 | int val2 ; | |
15509 | int ecode2 = 0 ; | |
15510 | PyObject * obj0 = 0 ; | |
15511 | PyObject * obj1 = 0 ; | |
15512 | char * kwnames[] = { | |
15513 | (char *) "self",(char *) "style", NULL | |
15514 | }; | |
15515 | ||
15516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15518 | if (!SWIG_IsOK(res1)) { | |
15519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15520 | } | |
15521 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15522 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15523 | if (!SWIG_IsOK(ecode2)) { | |
15524 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
15525 | } | |
15526 | arg2 = static_cast< int >(val2); | |
15527 | { | |
15528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15529 | (arg1)->SetStyle(arg2); | |
15530 | wxPyEndAllowThreads(__tstate); | |
15531 | if (PyErr_Occurred()) SWIG_fail; | |
15532 | } | |
15533 | resultobj = SWIG_Py_Void(); | |
15534 | return resultobj; | |
15535 | fail: | |
15536 | return NULL; | |
15537 | } | |
15538 | ||
15539 | ||
15540 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15541 | PyObject *resultobj = 0; | |
15542 | wxFont *arg1 = (wxFont *) 0 ; | |
15543 | int arg2 ; | |
15544 | void *argp1 = 0 ; | |
15545 | int res1 = 0 ; | |
15546 | int val2 ; | |
15547 | int ecode2 = 0 ; | |
15548 | PyObject * obj0 = 0 ; | |
15549 | PyObject * obj1 = 0 ; | |
15550 | char * kwnames[] = { | |
15551 | (char *) "self",(char *) "weight", NULL | |
15552 | }; | |
15553 | ||
15554 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
15555 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15556 | if (!SWIG_IsOK(res1)) { | |
15557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15558 | } | |
15559 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15560 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15561 | if (!SWIG_IsOK(ecode2)) { | |
15562 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
15563 | } | |
15564 | arg2 = static_cast< int >(val2); | |
15565 | { | |
15566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15567 | (arg1)->SetWeight(arg2); | |
15568 | wxPyEndAllowThreads(__tstate); | |
15569 | if (PyErr_Occurred()) SWIG_fail; | |
15570 | } | |
15571 | resultobj = SWIG_Py_Void(); | |
15572 | return resultobj; | |
15573 | fail: | |
15574 | return NULL; | |
15575 | } | |
15576 | ||
15577 | ||
15578 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15579 | PyObject *resultobj = 0; | |
15580 | wxFont *arg1 = (wxFont *) 0 ; | |
15581 | wxString *arg2 = 0 ; | |
704eda0c | 15582 | bool result; |
554f62e9 RD |
15583 | void *argp1 = 0 ; |
15584 | int res1 = 0 ; | |
15585 | bool temp2 = false ; | |
15586 | PyObject * obj0 = 0 ; | |
15587 | PyObject * obj1 = 0 ; | |
15588 | char * kwnames[] = { | |
15589 | (char *) "self",(char *) "faceName", NULL | |
15590 | }; | |
15591 | ||
15592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
15593 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15594 | if (!SWIG_IsOK(res1)) { | |
15595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15596 | } | |
15597 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15598 | { | |
15599 | arg2 = wxString_in_helper(obj1); | |
15600 | if (arg2 == NULL) SWIG_fail; | |
15601 | temp2 = true; | |
15602 | } | |
15603 | { | |
15604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15605 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
554f62e9 RD |
15606 | wxPyEndAllowThreads(__tstate); |
15607 | if (PyErr_Occurred()) SWIG_fail; | |
15608 | } | |
704eda0c RD |
15609 | { |
15610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15611 | } | |
554f62e9 RD |
15612 | { |
15613 | if (temp2) | |
15614 | delete arg2; | |
15615 | } | |
15616 | return resultobj; | |
15617 | fail: | |
15618 | { | |
15619 | if (temp2) | |
15620 | delete arg2; | |
15621 | } | |
15622 | return NULL; | |
15623 | } | |
15624 | ||
15625 | ||
15626 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15627 | PyObject *resultobj = 0; | |
15628 | wxFont *arg1 = (wxFont *) 0 ; | |
15629 | bool arg2 ; | |
15630 | void *argp1 = 0 ; | |
15631 | int res1 = 0 ; | |
15632 | bool val2 ; | |
15633 | int ecode2 = 0 ; | |
15634 | PyObject * obj0 = 0 ; | |
15635 | PyObject * obj1 = 0 ; | |
15636 | char * kwnames[] = { | |
15637 | (char *) "self",(char *) "underlined", NULL | |
15638 | }; | |
15639 | ||
15640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
15641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15642 | if (!SWIG_IsOK(res1)) { | |
15643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15644 | } | |
15645 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15646 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15647 | if (!SWIG_IsOK(ecode2)) { | |
15648 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
15649 | } | |
15650 | arg2 = static_cast< bool >(val2); | |
15651 | { | |
15652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15653 | (arg1)->SetUnderlined(arg2); | |
15654 | wxPyEndAllowThreads(__tstate); | |
15655 | if (PyErr_Occurred()) SWIG_fail; | |
15656 | } | |
15657 | resultobj = SWIG_Py_Void(); | |
15658 | return resultobj; | |
15659 | fail: | |
15660 | return NULL; | |
15661 | } | |
15662 | ||
15663 | ||
15664 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15665 | PyObject *resultobj = 0; | |
15666 | wxFont *arg1 = (wxFont *) 0 ; | |
15667 | wxFontEncoding arg2 ; | |
15668 | void *argp1 = 0 ; | |
15669 | int res1 = 0 ; | |
15670 | int val2 ; | |
15671 | int ecode2 = 0 ; | |
15672 | PyObject * obj0 = 0 ; | |
15673 | PyObject * obj1 = 0 ; | |
15674 | char * kwnames[] = { | |
15675 | (char *) "self",(char *) "encoding", NULL | |
15676 | }; | |
15677 | ||
15678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
15679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15680 | if (!SWIG_IsOK(res1)) { | |
15681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15682 | } | |
15683 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15684 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15685 | if (!SWIG_IsOK(ecode2)) { | |
15686 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15687 | } | |
15688 | arg2 = static_cast< wxFontEncoding >(val2); | |
15689 | { | |
15690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15691 | (arg1)->SetEncoding(arg2); | |
15692 | wxPyEndAllowThreads(__tstate); | |
15693 | if (PyErr_Occurred()) SWIG_fail; | |
15694 | } | |
15695 | resultobj = SWIG_Py_Void(); | |
15696 | return resultobj; | |
15697 | fail: | |
15698 | return NULL; | |
15699 | } | |
15700 | ||
15701 | ||
15702 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15703 | PyObject *resultobj = 0; | |
15704 | wxFont *arg1 = (wxFont *) 0 ; | |
15705 | wxNativeFontInfo *arg2 = 0 ; | |
15706 | void *argp1 = 0 ; | |
15707 | int res1 = 0 ; | |
15708 | void *argp2 = 0 ; | |
15709 | int res2 = 0 ; | |
15710 | PyObject * obj0 = 0 ; | |
15711 | PyObject * obj1 = 0 ; | |
15712 | char * kwnames[] = { | |
15713 | (char *) "self",(char *) "info", NULL | |
15714 | }; | |
15715 | ||
15716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
15717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15718 | if (!SWIG_IsOK(res1)) { | |
15719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15720 | } | |
15721 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15722 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
15723 | if (!SWIG_IsOK(res2)) { | |
15724 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15725 | } | |
15726 | if (!argp2) { | |
15727 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15728 | } | |
15729 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
15730 | { | |
15731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15732 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
15733 | wxPyEndAllowThreads(__tstate); | |
15734 | if (PyErr_Occurred()) SWIG_fail; | |
15735 | } | |
15736 | resultobj = SWIG_Py_Void(); | |
15737 | return resultobj; | |
15738 | fail: | |
15739 | return NULL; | |
15740 | } | |
15741 | ||
15742 | ||
15743 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15744 | PyObject *resultobj = 0; | |
15745 | wxFont *arg1 = (wxFont *) 0 ; | |
15746 | wxString *arg2 = 0 ; | |
704eda0c | 15747 | bool result; |
554f62e9 RD |
15748 | void *argp1 = 0 ; |
15749 | int res1 = 0 ; | |
15750 | bool temp2 = false ; | |
15751 | PyObject * obj0 = 0 ; | |
15752 | PyObject * obj1 = 0 ; | |
15753 | char * kwnames[] = { | |
15754 | (char *) "self",(char *) "info", NULL | |
15755 | }; | |
15756 | ||
15757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15759 | if (!SWIG_IsOK(res1)) { | |
15760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15761 | } | |
15762 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15763 | { | |
15764 | arg2 = wxString_in_helper(obj1); | |
15765 | if (arg2 == NULL) SWIG_fail; | |
15766 | temp2 = true; | |
15767 | } | |
15768 | { | |
15769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15770 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
554f62e9 RD |
15771 | wxPyEndAllowThreads(__tstate); |
15772 | if (PyErr_Occurred()) SWIG_fail; | |
15773 | } | |
704eda0c RD |
15774 | { |
15775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15776 | } | |
554f62e9 RD |
15777 | { |
15778 | if (temp2) | |
15779 | delete arg2; | |
15780 | } | |
15781 | return resultobj; | |
15782 | fail: | |
15783 | { | |
15784 | if (temp2) | |
15785 | delete arg2; | |
15786 | } | |
15787 | return NULL; | |
d55e5bfc RD |
15788 | } |
15789 | ||
15790 | ||
554f62e9 RD |
15791 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15792 | PyObject *resultobj = 0; | |
15793 | wxFont *arg1 = (wxFont *) 0 ; | |
15794 | wxString *arg2 = 0 ; | |
704eda0c | 15795 | bool result; |
554f62e9 RD |
15796 | void *argp1 = 0 ; |
15797 | int res1 = 0 ; | |
15798 | bool temp2 = false ; | |
15799 | PyObject * obj0 = 0 ; | |
15800 | PyObject * obj1 = 0 ; | |
15801 | char * kwnames[] = { | |
15802 | (char *) "self",(char *) "info", NULL | |
15803 | }; | |
15804 | ||
15805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
15806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15807 | if (!SWIG_IsOK(res1)) { | |
15808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15809 | } | |
15810 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15811 | { | |
15812 | arg2 = wxString_in_helper(obj1); | |
15813 | if (arg2 == NULL) SWIG_fail; | |
15814 | temp2 = true; | |
15815 | } | |
15816 | { | |
15817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15818 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
554f62e9 RD |
15819 | wxPyEndAllowThreads(__tstate); |
15820 | if (PyErr_Occurred()) SWIG_fail; | |
15821 | } | |
704eda0c RD |
15822 | { |
15823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15824 | } | |
554f62e9 RD |
15825 | { |
15826 | if (temp2) | |
15827 | delete arg2; | |
15828 | } | |
15829 | return resultobj; | |
15830 | fail: | |
15831 | { | |
15832 | if (temp2) | |
15833 | delete arg2; | |
15834 | } | |
15835 | return NULL; | |
d55e5bfc RD |
15836 | } |
15837 | ||
15838 | ||
554f62e9 RD |
15839 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15840 | PyObject *resultobj = 0; | |
15841 | wxFont *arg1 = (wxFont *) 0 ; | |
15842 | wxString result; | |
15843 | void *argp1 = 0 ; | |
15844 | int res1 = 0 ; | |
15845 | PyObject *swig_obj[1] ; | |
15846 | ||
15847 | if (!args) SWIG_fail; | |
15848 | swig_obj[0] = args; | |
15849 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15850 | if (!SWIG_IsOK(res1)) { | |
15851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15852 | } | |
15853 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15854 | { | |
15855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15856 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15857 | wxPyEndAllowThreads(__tstate); | |
15858 | if (PyErr_Occurred()) SWIG_fail; | |
15859 | } | |
15860 | { | |
15861 | #if wxUSE_UNICODE | |
15862 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15863 | #else | |
15864 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15865 | #endif | |
15866 | } | |
15867 | return resultobj; | |
15868 | fail: | |
15869 | return NULL; | |
d55e5bfc RD |
15870 | } |
15871 | ||
15872 | ||
554f62e9 RD |
15873 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15874 | PyObject *resultobj = 0; | |
15875 | wxFont *arg1 = (wxFont *) 0 ; | |
15876 | wxString result; | |
15877 | void *argp1 = 0 ; | |
15878 | int res1 = 0 ; | |
15879 | PyObject *swig_obj[1] ; | |
15880 | ||
15881 | if (!args) SWIG_fail; | |
15882 | swig_obj[0] = args; | |
15883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15884 | if (!SWIG_IsOK(res1)) { | |
15885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15886 | } | |
15887 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15888 | { | |
15889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15890 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15891 | wxPyEndAllowThreads(__tstate); | |
15892 | if (PyErr_Occurred()) SWIG_fail; | |
15893 | } | |
15894 | { | |
15895 | #if wxUSE_UNICODE | |
15896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15897 | #else | |
15898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15899 | #endif | |
15900 | } | |
15901 | return resultobj; | |
15902 | fail: | |
15903 | return NULL; | |
d55e5bfc RD |
15904 | } |
15905 | ||
15906 | ||
554f62e9 RD |
15907 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15908 | PyObject *resultobj = 0; | |
15909 | wxFont *arg1 = (wxFont *) 0 ; | |
15910 | wxString result; | |
15911 | void *argp1 = 0 ; | |
15912 | int res1 = 0 ; | |
15913 | PyObject *swig_obj[1] ; | |
15914 | ||
15915 | if (!args) SWIG_fail; | |
15916 | swig_obj[0] = args; | |
15917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15918 | if (!SWIG_IsOK(res1)) { | |
15919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15920 | } | |
15921 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15922 | { | |
15923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15924 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15925 | wxPyEndAllowThreads(__tstate); | |
15926 | if (PyErr_Occurred()) SWIG_fail; | |
15927 | } | |
15928 | { | |
15929 | #if wxUSE_UNICODE | |
15930 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15931 | #else | |
15932 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15933 | #endif | |
15934 | } | |
15935 | return resultobj; | |
15936 | fail: | |
15937 | return NULL; | |
15938 | } | |
15939 | ||
15940 | ||
15941 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15942 | PyObject *resultobj = 0; | |
15943 | wxFont *arg1 = (wxFont *) 0 ; | |
15944 | bool arg2 = (bool) true ; | |
15945 | void *argp1 = 0 ; | |
15946 | int res1 = 0 ; | |
15947 | bool val2 ; | |
15948 | int ecode2 = 0 ; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | PyObject * obj1 = 0 ; | |
15951 | char * kwnames[] = { | |
15952 | (char *) "self",(char *) "no", NULL | |
15953 | }; | |
15954 | ||
15955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15957 | if (!SWIG_IsOK(res1)) { | |
15958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15959 | } | |
15960 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15961 | if (obj1) { | |
15962 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15963 | if (!SWIG_IsOK(ecode2)) { | |
15964 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15965 | } | |
15966 | arg2 = static_cast< bool >(val2); | |
15967 | } | |
15968 | { | |
15969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15970 | (arg1)->SetNoAntiAliasing(arg2); | |
15971 | wxPyEndAllowThreads(__tstate); | |
15972 | if (PyErr_Occurred()) SWIG_fail; | |
15973 | } | |
15974 | resultobj = SWIG_Py_Void(); | |
15975 | return resultobj; | |
15976 | fail: | |
15977 | return NULL; | |
d55e5bfc RD |
15978 | } |
15979 | ||
15980 | ||
554f62e9 RD |
15981 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15982 | PyObject *resultobj = 0; | |
15983 | wxFont *arg1 = (wxFont *) 0 ; | |
15984 | bool result; | |
15985 | void *argp1 = 0 ; | |
15986 | int res1 = 0 ; | |
15987 | PyObject *swig_obj[1] ; | |
15988 | ||
15989 | if (!args) SWIG_fail; | |
15990 | swig_obj[0] = args; | |
15991 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15992 | if (!SWIG_IsOK(res1)) { | |
15993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15994 | } | |
15995 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15996 | { | |
15997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15998 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
15999 | wxPyEndAllowThreads(__tstate); | |
16000 | if (PyErr_Occurred()) SWIG_fail; | |
16001 | } | |
16002 | { | |
16003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16004 | } | |
16005 | return resultobj; | |
16006 | fail: | |
16007 | return NULL; | |
d55e5bfc RD |
16008 | } |
16009 | ||
16010 | ||
554f62e9 RD |
16011 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16012 | PyObject *resultobj = 0; | |
16013 | wxFontEncoding result; | |
16014 | ||
16015 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
16016 | { | |
16017 | if (!wxPyCheckForApp()) SWIG_fail; | |
16018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16019 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
16020 | wxPyEndAllowThreads(__tstate); | |
16021 | if (PyErr_Occurred()) SWIG_fail; | |
16022 | } | |
16023 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16024 | return resultobj; | |
16025 | fail: | |
16026 | return NULL; | |
d55e5bfc RD |
16027 | } |
16028 | ||
16029 | ||
554f62e9 RD |
16030 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16031 | PyObject *resultobj = 0; | |
16032 | wxFontEncoding arg1 ; | |
16033 | int val1 ; | |
16034 | int ecode1 = 0 ; | |
16035 | PyObject * obj0 = 0 ; | |
16036 | char * kwnames[] = { | |
16037 | (char *) "encoding", NULL | |
16038 | }; | |
16039 | ||
16040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
16041 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16042 | if (!SWIG_IsOK(ecode1)) { | |
16043 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
16044 | } | |
16045 | arg1 = static_cast< wxFontEncoding >(val1); | |
16046 | { | |
16047 | if (!wxPyCheckForApp()) SWIG_fail; | |
16048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16049 | wxFont::SetDefaultEncoding(arg1); | |
16050 | wxPyEndAllowThreads(__tstate); | |
16051 | if (PyErr_Occurred()) SWIG_fail; | |
16052 | } | |
16053 | resultobj = SWIG_Py_Void(); | |
16054 | return resultobj; | |
16055 | fail: | |
16056 | return NULL; | |
5e483524 RD |
16057 | } |
16058 | ||
16059 | ||
554f62e9 RD |
16060 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16061 | PyObject *obj; | |
16062 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16063 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
16064 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16065 | } |
16066 | ||
554f62e9 RD |
16067 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16068 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16069 | } |
16070 | ||
554f62e9 RD |
16071 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16072 | PyObject *resultobj = 0; | |
16073 | wxPyFontEnumerator *result = 0 ; | |
16074 | ||
16075 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
16076 | { | |
16077 | if (!wxPyCheckForApp()) SWIG_fail; | |
16078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16079 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
16080 | wxPyEndAllowThreads(__tstate); | |
16081 | if (PyErr_Occurred()) SWIG_fail; | |
16082 | } | |
16083 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
16084 | return resultobj; | |
16085 | fail: | |
16086 | return NULL; | |
d55e5bfc RD |
16087 | } |
16088 | ||
16089 | ||
554f62e9 RD |
16090 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16091 | PyObject *resultobj = 0; | |
16092 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16093 | void *argp1 = 0 ; | |
16094 | int res1 = 0 ; | |
16095 | PyObject *swig_obj[1] ; | |
16096 | ||
16097 | if (!args) SWIG_fail; | |
16098 | swig_obj[0] = args; | |
16099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
16100 | if (!SWIG_IsOK(res1)) { | |
16101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16102 | } | |
16103 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16104 | { | |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | delete arg1; | |
d55e5bfc | 16107 | |
554f62e9 RD |
16108 | wxPyEndAllowThreads(__tstate); |
16109 | if (PyErr_Occurred()) SWIG_fail; | |
16110 | } | |
16111 | resultobj = SWIG_Py_Void(); | |
16112 | return resultobj; | |
16113 | fail: | |
16114 | return NULL; | |
16115 | } | |
16116 | ||
16117 | ||
16118 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16119 | PyObject *resultobj = 0; | |
16120 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16121 | PyObject *arg2 = (PyObject *) 0 ; | |
16122 | PyObject *arg3 = (PyObject *) 0 ; | |
c25f90f6 | 16123 | int arg4 = (int) 0 ; |
554f62e9 RD |
16124 | void *argp1 = 0 ; |
16125 | int res1 = 0 ; | |
c25f90f6 | 16126 | int val4 ; |
554f62e9 RD |
16127 | int ecode4 = 0 ; |
16128 | PyObject * obj0 = 0 ; | |
16129 | PyObject * obj1 = 0 ; | |
16130 | PyObject * obj2 = 0 ; | |
16131 | PyObject * obj3 = 0 ; | |
16132 | char * kwnames[] = { | |
16133 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
16134 | }; | |
16135 | ||
c25f90f6 | 16136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
554f62e9 RD |
16137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); |
16138 | if (!SWIG_IsOK(res1)) { | |
16139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16140 | } | |
16141 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16142 | arg2 = obj1; | |
16143 | arg3 = obj2; | |
c25f90f6 RD |
16144 | if (obj3) { |
16145 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16146 | if (!SWIG_IsOK(ecode4)) { | |
16147 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
16148 | } | |
16149 | arg4 = static_cast< int >(val4); | |
16150 | } | |
554f62e9 RD |
16151 | { |
16152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16153 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
16154 | wxPyEndAllowThreads(__tstate); | |
16155 | if (PyErr_Occurred()) SWIG_fail; | |
16156 | } | |
16157 | resultobj = SWIG_Py_Void(); | |
16158 | return resultobj; | |
16159 | fail: | |
16160 | return NULL; | |
16161 | } | |
16162 | ||
16163 | ||
16164 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16165 | PyObject *resultobj = 0; | |
16166 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16167 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
16168 | bool arg3 = (bool) false ; | |
16169 | bool result; | |
16170 | void *argp1 = 0 ; | |
16171 | int res1 = 0 ; | |
16172 | int val2 ; | |
16173 | int ecode2 = 0 ; | |
16174 | bool val3 ; | |
16175 | int ecode3 = 0 ; | |
16176 | PyObject * obj0 = 0 ; | |
16177 | PyObject * obj1 = 0 ; | |
16178 | PyObject * obj2 = 0 ; | |
16179 | char * kwnames[] = { | |
16180 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
16181 | }; | |
16182 | ||
16183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
16185 | if (!SWIG_IsOK(res1)) { | |
16186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16187 | } | |
16188 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16189 | if (obj1) { | |
16190 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16191 | if (!SWIG_IsOK(ecode2)) { | |
16192 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
16193 | } | |
16194 | arg2 = static_cast< wxFontEncoding >(val2); | |
16195 | } | |
16196 | if (obj2) { | |
16197 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16198 | if (!SWIG_IsOK(ecode3)) { | |
16199 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
16200 | } | |
16201 | arg3 = static_cast< bool >(val3); | |
16202 | } | |
16203 | { | |
16204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16205 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
16206 | wxPyEndAllowThreads(__tstate); | |
16207 | if (PyErr_Occurred()) SWIG_fail; | |
16208 | } | |
16209 | { | |
16210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16211 | } | |
16212 | return resultobj; | |
16213 | fail: | |
16214 | return NULL; | |
16215 | } | |
16216 | ||
16217 | ||
16218 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16219 | PyObject *resultobj = 0; | |
16220 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16221 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16222 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16223 | bool result; | |
16224 | void *argp1 = 0 ; | |
16225 | int res1 = 0 ; | |
16226 | bool temp2 = false ; | |
16227 | PyObject * obj0 = 0 ; | |
16228 | PyObject * obj1 = 0 ; | |
16229 | char * kwnames[] = { | |
16230 | (char *) "self",(char *) "facename", NULL | |
16231 | }; | |
16232 | ||
16233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
16234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
16235 | if (!SWIG_IsOK(res1)) { | |
16236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16237 | } | |
16238 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16239 | if (obj1) { | |
093d3ff1 | 16240 | { |
554f62e9 RD |
16241 | arg2 = wxString_in_helper(obj1); |
16242 | if (arg2 == NULL) SWIG_fail; | |
16243 | temp2 = true; | |
093d3ff1 | 16244 | } |
554f62e9 RD |
16245 | } |
16246 | { | |
16247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16248 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
16249 | wxPyEndAllowThreads(__tstate); | |
16250 | if (PyErr_Occurred()) SWIG_fail; | |
16251 | } | |
16252 | { | |
16253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16254 | } | |
16255 | { | |
16256 | if (temp2) | |
16257 | delete arg2; | |
16258 | } | |
16259 | return resultobj; | |
16260 | fail: | |
16261 | { | |
16262 | if (temp2) | |
16263 | delete arg2; | |
16264 | } | |
16265 | return NULL; | |
d55e5bfc RD |
16266 | } |
16267 | ||
16268 | ||
554f62e9 RD |
16269 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16270 | PyObject *resultobj = 0; | |
554f62e9 | 16271 | PyObject *result = 0 ; |
554f62e9 | 16272 | |
704eda0c | 16273 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
554f62e9 RD |
16274 | { |
16275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 16276 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
554f62e9 RD |
16277 | wxPyEndAllowThreads(__tstate); |
16278 | if (PyErr_Occurred()) SWIG_fail; | |
16279 | } | |
16280 | resultobj = result; | |
16281 | return resultobj; | |
16282 | fail: | |
16283 | return NULL; | |
d55e5bfc RD |
16284 | } |
16285 | ||
16286 | ||
554f62e9 RD |
16287 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16288 | PyObject *resultobj = 0; | |
554f62e9 | 16289 | PyObject *result = 0 ; |
554f62e9 | 16290 | |
704eda0c | 16291 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
554f62e9 RD |
16292 | { |
16293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 16294 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
554f62e9 RD |
16295 | wxPyEndAllowThreads(__tstate); |
16296 | if (PyErr_Occurred()) SWIG_fail; | |
16297 | } | |
16298 | resultobj = result; | |
16299 | return resultobj; | |
16300 | fail: | |
16301 | return NULL; | |
d55e5bfc RD |
16302 | } |
16303 | ||
16304 | ||
704eda0c RD |
16305 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16306 | PyObject *resultobj = 0; | |
16307 | wxString *arg1 = 0 ; | |
16308 | bool result; | |
16309 | bool temp1 = false ; | |
16310 | PyObject * obj0 = 0 ; | |
16311 | char * kwnames[] = { | |
16312 | (char *) "str", NULL | |
16313 | }; | |
16314 | ||
16315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
16316 | { | |
16317 | arg1 = wxString_in_helper(obj0); | |
16318 | if (arg1 == NULL) SWIG_fail; | |
16319 | temp1 = true; | |
16320 | } | |
16321 | { | |
16322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16323 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
16324 | wxPyEndAllowThreads(__tstate); | |
16325 | if (PyErr_Occurred()) SWIG_fail; | |
16326 | } | |
16327 | { | |
16328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16329 | } | |
16330 | { | |
16331 | if (temp1) | |
16332 | delete arg1; | |
16333 | } | |
16334 | return resultobj; | |
16335 | fail: | |
16336 | { | |
16337 | if (temp1) | |
16338 | delete arg1; | |
16339 | } | |
16340 | return NULL; | |
16341 | } | |
16342 | ||
16343 | ||
554f62e9 RD |
16344 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16345 | PyObject *obj; | |
16346 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16347 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
16348 | return SWIG_Py_Void(); | |
5e483524 RD |
16349 | } |
16350 | ||
554f62e9 RD |
16351 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16352 | return SWIG_Python_InitShadowInstance(args); | |
16353 | } | |
5e483524 | 16354 | |
554f62e9 RD |
16355 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16356 | PyObject *resultobj = 0; | |
16357 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16358 | int arg2 ; | |
16359 | void *argp1 = 0 ; | |
16360 | int res1 = 0 ; | |
16361 | int val2 ; | |
16362 | int ecode2 = 0 ; | |
16363 | PyObject *swig_obj[2] ; | |
16364 | ||
16365 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
16366 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16367 | if (!SWIG_IsOK(res1)) { | |
16368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16369 | } | |
16370 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16371 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
16372 | if (!SWIG_IsOK(ecode2)) { | |
16373 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
16374 | } | |
16375 | arg2 = static_cast< int >(val2); | |
16376 | if (arg1) (arg1)->Language = arg2; | |
16377 | ||
16378 | resultobj = SWIG_Py_Void(); | |
16379 | return resultobj; | |
16380 | fail: | |
16381 | return NULL; | |
d55e5bfc RD |
16382 | } |
16383 | ||
16384 | ||
554f62e9 RD |
16385 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16386 | PyObject *resultobj = 0; | |
16387 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16388 | int result; | |
16389 | void *argp1 = 0 ; | |
16390 | int res1 = 0 ; | |
16391 | PyObject *swig_obj[1] ; | |
16392 | ||
16393 | if (!args) SWIG_fail; | |
16394 | swig_obj[0] = args; | |
16395 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16396 | if (!SWIG_IsOK(res1)) { | |
16397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16398 | } | |
16399 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16400 | result = (int) ((arg1)->Language); | |
16401 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16402 | return resultobj; | |
16403 | fail: | |
16404 | return NULL; | |
16405 | } | |
16406 | ||
16407 | ||
16408 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16409 | PyObject *resultobj = 0; | |
16410 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16411 | wxString *arg2 = (wxString *) 0 ; | |
16412 | void *argp1 = 0 ; | |
16413 | int res1 = 0 ; | |
16414 | bool temp2 = false ; | |
16415 | PyObject *swig_obj[2] ; | |
16416 | ||
16417 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
16418 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16419 | if (!SWIG_IsOK(res1)) { | |
16420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16421 | } | |
16422 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16423 | { | |
16424 | arg2 = wxString_in_helper(swig_obj[1]); | |
16425 | if (arg2 == NULL) SWIG_fail; | |
16426 | temp2 = true; | |
16427 | } | |
16428 | if (arg1) (arg1)->CanonicalName = *arg2; | |
16429 | ||
16430 | resultobj = SWIG_Py_Void(); | |
16431 | { | |
16432 | if (temp2) | |
16433 | delete arg2; | |
16434 | } | |
16435 | return resultobj; | |
16436 | fail: | |
16437 | { | |
16438 | if (temp2) | |
16439 | delete arg2; | |
16440 | } | |
16441 | return NULL; | |
d55e5bfc RD |
16442 | } |
16443 | ||
16444 | ||
554f62e9 RD |
16445 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16446 | PyObject *resultobj = 0; | |
16447 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16448 | wxString *result = 0 ; | |
16449 | void *argp1 = 0 ; | |
16450 | int res1 = 0 ; | |
16451 | PyObject *swig_obj[1] ; | |
16452 | ||
16453 | if (!args) SWIG_fail; | |
16454 | swig_obj[0] = args; | |
16455 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16456 | if (!SWIG_IsOK(res1)) { | |
16457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16458 | } | |
16459 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16460 | result = (wxString *)& ((arg1)->CanonicalName); | |
16461 | { | |
16462 | #if wxUSE_UNICODE | |
16463 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16464 | #else | |
16465 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16466 | #endif | |
16467 | } | |
16468 | return resultobj; | |
16469 | fail: | |
16470 | return NULL; | |
d55e5bfc RD |
16471 | } |
16472 | ||
16473 | ||
554f62e9 RD |
16474 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16475 | PyObject *resultobj = 0; | |
16476 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16477 | wxString *arg2 = (wxString *) 0 ; | |
16478 | void *argp1 = 0 ; | |
16479 | int res1 = 0 ; | |
16480 | bool temp2 = false ; | |
16481 | PyObject *swig_obj[2] ; | |
16482 | ||
16483 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
16484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16485 | if (!SWIG_IsOK(res1)) { | |
16486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16487 | } | |
16488 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16489 | { | |
16490 | arg2 = wxString_in_helper(swig_obj[1]); | |
16491 | if (arg2 == NULL) SWIG_fail; | |
16492 | temp2 = true; | |
16493 | } | |
16494 | if (arg1) (arg1)->Description = *arg2; | |
16495 | ||
16496 | resultobj = SWIG_Py_Void(); | |
16497 | { | |
16498 | if (temp2) | |
16499 | delete arg2; | |
16500 | } | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | { | |
16504 | if (temp2) | |
16505 | delete arg2; | |
16506 | } | |
16507 | return NULL; | |
d55e5bfc RD |
16508 | } |
16509 | ||
16510 | ||
554f62e9 RD |
16511 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16512 | PyObject *resultobj = 0; | |
16513 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16514 | wxString *result = 0 ; | |
16515 | void *argp1 = 0 ; | |
16516 | int res1 = 0 ; | |
16517 | PyObject *swig_obj[1] ; | |
16518 | ||
16519 | if (!args) SWIG_fail; | |
16520 | swig_obj[0] = args; | |
16521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16522 | if (!SWIG_IsOK(res1)) { | |
16523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16524 | } | |
16525 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16526 | result = (wxString *)& ((arg1)->Description); | |
16527 | { | |
16528 | #if wxUSE_UNICODE | |
16529 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16530 | #else | |
16531 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16532 | #endif | |
16533 | } | |
16534 | return resultobj; | |
16535 | fail: | |
16536 | return NULL; | |
16537 | } | |
16538 | ||
16539 | ||
16540 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16541 | PyObject *obj; | |
16542 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16543 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
16544 | return SWIG_Py_Void(); | |
16545 | } | |
16546 | ||
16547 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16548 | PyObject *resultobj = 0; | |
16549 | int arg1 = (int) -1 ; | |
16550 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16551 | wxLocale *result = 0 ; | |
16552 | int val1 ; | |
16553 | int ecode1 = 0 ; | |
16554 | int val2 ; | |
16555 | int ecode2 = 0 ; | |
16556 | PyObject * obj0 = 0 ; | |
16557 | PyObject * obj1 = 0 ; | |
16558 | char * kwnames[] = { | |
16559 | (char *) "language",(char *) "flags", NULL | |
16560 | }; | |
16561 | ||
16562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16563 | if (obj0) { | |
16564 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16565 | if (!SWIG_IsOK(ecode1)) { | |
16566 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
16567 | } | |
16568 | arg1 = static_cast< int >(val1); | |
16569 | } | |
16570 | if (obj1) { | |
16571 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16572 | if (!SWIG_IsOK(ecode2)) { | |
16573 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
16574 | } | |
16575 | arg2 = static_cast< int >(val2); | |
16576 | } | |
16577 | { | |
16578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16579 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
16580 | wxPyEndAllowThreads(__tstate); | |
16581 | if (PyErr_Occurred()) SWIG_fail; | |
16582 | } | |
16583 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
16584 | return resultobj; | |
16585 | fail: | |
16586 | return NULL; | |
d55e5bfc RD |
16587 | } |
16588 | ||
16589 | ||
554f62e9 RD |
16590 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16591 | PyObject *resultobj = 0; | |
16592 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16593 | void *argp1 = 0 ; | |
16594 | int res1 = 0 ; | |
16595 | PyObject *swig_obj[1] ; | |
16596 | ||
16597 | if (!args) SWIG_fail; | |
16598 | swig_obj[0] = args; | |
16599 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
16600 | if (!SWIG_IsOK(res1)) { | |
16601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16602 | } | |
16603 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16604 | { | |
16605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16606 | delete arg1; | |
d55e5bfc | 16607 | |
554f62e9 RD |
16608 | wxPyEndAllowThreads(__tstate); |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
16611 | resultobj = SWIG_Py_Void(); | |
16612 | return resultobj; | |
16613 | fail: | |
16614 | return NULL; | |
16615 | } | |
16616 | ||
16617 | ||
16618 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16619 | PyObject *resultobj = 0; | |
16620 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16621 | wxString *arg2 = 0 ; | |
16622 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16623 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16624 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16625 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16626 | bool arg5 = (bool) true ; | |
16627 | bool arg6 = (bool) false ; | |
16628 | bool result; | |
16629 | void *argp1 = 0 ; | |
16630 | int res1 = 0 ; | |
16631 | bool temp2 = false ; | |
16632 | bool temp3 = false ; | |
16633 | bool temp4 = false ; | |
16634 | bool val5 ; | |
16635 | int ecode5 = 0 ; | |
16636 | bool val6 ; | |
16637 | int ecode6 = 0 ; | |
16638 | PyObject * obj0 = 0 ; | |
16639 | PyObject * obj1 = 0 ; | |
16640 | PyObject * obj2 = 0 ; | |
16641 | PyObject * obj3 = 0 ; | |
16642 | PyObject * obj4 = 0 ; | |
16643 | PyObject * obj5 = 0 ; | |
16644 | char * kwnames[] = { | |
16645 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
16646 | }; | |
16647 | ||
16648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
16649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16650 | if (!SWIG_IsOK(res1)) { | |
16651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16652 | } | |
16653 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16654 | { | |
16655 | arg2 = wxString_in_helper(obj1); | |
16656 | if (arg2 == NULL) SWIG_fail; | |
16657 | temp2 = true; | |
16658 | } | |
16659 | if (obj2) { | |
093d3ff1 | 16660 | { |
554f62e9 RD |
16661 | arg3 = wxString_in_helper(obj2); |
16662 | if (arg3 == NULL) SWIG_fail; | |
16663 | temp3 = true; | |
093d3ff1 | 16664 | } |
554f62e9 RD |
16665 | } |
16666 | if (obj3) { | |
d55e5bfc | 16667 | { |
554f62e9 RD |
16668 | arg4 = wxString_in_helper(obj3); |
16669 | if (arg4 == NULL) SWIG_fail; | |
16670 | temp4 = true; | |
d55e5bfc | 16671 | } |
554f62e9 RD |
16672 | } |
16673 | if (obj4) { | |
16674 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16675 | if (!SWIG_IsOK(ecode5)) { | |
16676 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
16677 | } | |
16678 | arg5 = static_cast< bool >(val5); | |
16679 | } | |
16680 | if (obj5) { | |
16681 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
16682 | if (!SWIG_IsOK(ecode6)) { | |
16683 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
16684 | } | |
16685 | arg6 = static_cast< bool >(val6); | |
16686 | } | |
16687 | { | |
16688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16689 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
16690 | wxPyEndAllowThreads(__tstate); | |
16691 | if (PyErr_Occurred()) SWIG_fail; | |
16692 | } | |
16693 | { | |
16694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16695 | } | |
16696 | { | |
16697 | if (temp2) | |
16698 | delete arg2; | |
16699 | } | |
16700 | { | |
16701 | if (temp3) | |
16702 | delete arg3; | |
16703 | } | |
16704 | { | |
16705 | if (temp4) | |
16706 | delete arg4; | |
16707 | } | |
16708 | return resultobj; | |
16709 | fail: | |
16710 | { | |
16711 | if (temp2) | |
16712 | delete arg2; | |
16713 | } | |
16714 | { | |
16715 | if (temp3) | |
16716 | delete arg3; | |
16717 | } | |
16718 | { | |
16719 | if (temp4) | |
16720 | delete arg4; | |
16721 | } | |
16722 | return NULL; | |
16723 | } | |
16724 | ||
16725 | ||
16726 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16727 | PyObject *resultobj = 0; | |
16728 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16729 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
16730 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16731 | bool result; | |
16732 | void *argp1 = 0 ; | |
16733 | int res1 = 0 ; | |
16734 | int val2 ; | |
16735 | int ecode2 = 0 ; | |
16736 | int val3 ; | |
16737 | int ecode3 = 0 ; | |
16738 | PyObject * obj0 = 0 ; | |
16739 | PyObject * obj1 = 0 ; | |
16740 | PyObject * obj2 = 0 ; | |
16741 | char * kwnames[] = { | |
16742 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
16743 | }; | |
16744 | ||
16745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16747 | if (!SWIG_IsOK(res1)) { | |
16748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16749 | } | |
16750 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16751 | if (obj1) { | |
16752 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16753 | if (!SWIG_IsOK(ecode2)) { | |
16754 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
16755 | } | |
16756 | arg2 = static_cast< int >(val2); | |
16757 | } | |
16758 | if (obj2) { | |
16759 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16760 | if (!SWIG_IsOK(ecode3)) { | |
16761 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
16762 | } | |
16763 | arg3 = static_cast< int >(val3); | |
16764 | } | |
16765 | { | |
16766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16767 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
16768 | wxPyEndAllowThreads(__tstate); | |
16769 | if (PyErr_Occurred()) SWIG_fail; | |
16770 | } | |
16771 | { | |
16772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16773 | } | |
16774 | return resultobj; | |
16775 | fail: | |
16776 | return NULL; | |
d55e5bfc RD |
16777 | } |
16778 | ||
16779 | ||
554f62e9 RD |
16780 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16781 | PyObject *resultobj = 0; | |
16782 | int result; | |
16783 | ||
16784 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
16785 | { | |
16786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16787 | result = (int)wxLocale::GetSystemLanguage(); | |
16788 | wxPyEndAllowThreads(__tstate); | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | } | |
16791 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16792 | return resultobj; | |
16793 | fail: | |
16794 | return NULL; | |
d55e5bfc RD |
16795 | } |
16796 | ||
16797 | ||
554f62e9 RD |
16798 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16799 | PyObject *resultobj = 0; | |
16800 | wxFontEncoding result; | |
16801 | ||
16802 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
16803 | { | |
16804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16805 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
16806 | wxPyEndAllowThreads(__tstate); | |
16807 | if (PyErr_Occurred()) SWIG_fail; | |
16808 | } | |
16809 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16810 | return resultobj; | |
16811 | fail: | |
16812 | return NULL; | |
d55e5bfc RD |
16813 | } |
16814 | ||
16815 | ||
554f62e9 RD |
16816 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16817 | PyObject *resultobj = 0; | |
16818 | wxString result; | |
16819 | ||
16820 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
16821 | { | |
16822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16823 | result = wxLocale::GetSystemEncodingName(); | |
16824 | wxPyEndAllowThreads(__tstate); | |
16825 | if (PyErr_Occurred()) SWIG_fail; | |
16826 | } | |
16827 | { | |
16828 | #if wxUSE_UNICODE | |
16829 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16830 | #else | |
16831 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16832 | #endif | |
16833 | } | |
16834 | return resultobj; | |
16835 | fail: | |
16836 | return NULL; | |
d55e5bfc RD |
16837 | } |
16838 | ||
16839 | ||
554f62e9 RD |
16840 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16841 | PyObject *resultobj = 0; | |
16842 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16843 | bool 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_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16853 | } | |
16854 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16855 | { | |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16858 | wxPyEndAllowThreads(__tstate); | |
16859 | if (PyErr_Occurred()) SWIG_fail; | |
16860 | } | |
16861 | { | |
16862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16863 | } | |
16864 | return resultobj; | |
16865 | fail: | |
16866 | return NULL; | |
d55e5bfc RD |
16867 | } |
16868 | ||
16869 | ||
554f62e9 RD |
16870 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16871 | PyObject *resultobj = 0; | |
16872 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16873 | wxString result; | |
16874 | void *argp1 = 0 ; | |
16875 | int res1 = 0 ; | |
16876 | PyObject *swig_obj[1] ; | |
16877 | ||
16878 | if (!args) SWIG_fail; | |
16879 | swig_obj[0] = args; | |
16880 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16881 | if (!SWIG_IsOK(res1)) { | |
16882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16883 | } | |
16884 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16885 | { | |
16886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16887 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16888 | wxPyEndAllowThreads(__tstate); | |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
16890 | } | |
16891 | { | |
16892 | #if wxUSE_UNICODE | |
16893 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16894 | #else | |
16895 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16896 | #endif | |
16897 | } | |
16898 | return resultobj; | |
16899 | fail: | |
16900 | return NULL; | |
d55e5bfc RD |
16901 | } |
16902 | ||
16903 | ||
554f62e9 RD |
16904 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16905 | PyObject *resultobj = 0; | |
16906 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16907 | int result; | |
16908 | void *argp1 = 0 ; | |
16909 | int res1 = 0 ; | |
16910 | PyObject *swig_obj[1] ; | |
16911 | ||
16912 | if (!args) SWIG_fail; | |
16913 | swig_obj[0] = args; | |
16914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16915 | if (!SWIG_IsOK(res1)) { | |
16916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16917 | } | |
16918 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16919 | { | |
16920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16921 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16922 | wxPyEndAllowThreads(__tstate); | |
16923 | if (PyErr_Occurred()) SWIG_fail; | |
16924 | } | |
16925 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16926 | return resultobj; | |
16927 | fail: | |
16928 | return NULL; | |
d55e5bfc RD |
16929 | } |
16930 | ||
16931 | ||
554f62e9 RD |
16932 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16933 | PyObject *resultobj = 0; | |
16934 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16935 | wxString result; | |
16936 | void *argp1 = 0 ; | |
16937 | int res1 = 0 ; | |
16938 | PyObject *swig_obj[1] ; | |
16939 | ||
16940 | if (!args) SWIG_fail; | |
16941 | swig_obj[0] = args; | |
16942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16943 | if (!SWIG_IsOK(res1)) { | |
16944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16945 | } | |
16946 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16947 | { | |
16948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16949 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16950 | wxPyEndAllowThreads(__tstate); | |
16951 | if (PyErr_Occurred()) SWIG_fail; | |
16952 | } | |
16953 | { | |
16954 | #if wxUSE_UNICODE | |
16955 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16956 | #else | |
16957 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16958 | #endif | |
16959 | } | |
16960 | return resultobj; | |
16961 | fail: | |
16962 | return NULL; | |
d55e5bfc RD |
16963 | } |
16964 | ||
16965 | ||
554f62e9 RD |
16966 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16967 | PyObject *resultobj = 0; | |
16968 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16969 | wxString result; | |
16970 | void *argp1 = 0 ; | |
16971 | int res1 = 0 ; | |
16972 | PyObject *swig_obj[1] ; | |
16973 | ||
16974 | if (!args) SWIG_fail; | |
16975 | swig_obj[0] = args; | |
16976 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16977 | if (!SWIG_IsOK(res1)) { | |
16978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16979 | } | |
16980 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16981 | { | |
16982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16983 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16984 | wxPyEndAllowThreads(__tstate); | |
16985 | if (PyErr_Occurred()) SWIG_fail; | |
16986 | } | |
16987 | { | |
093d3ff1 | 16988 | #if wxUSE_UNICODE |
554f62e9 | 16989 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16990 | #else |
554f62e9 | 16991 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16992 | #endif |
554f62e9 RD |
16993 | } |
16994 | return resultobj; | |
16995 | fail: | |
16996 | return NULL; | |
d55e5bfc RD |
16997 | } |
16998 | ||
16999 | ||
554f62e9 RD |
17000 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17001 | PyObject *resultobj = 0; | |
17002 | wxString *arg1 = 0 ; | |
17003 | bool temp1 = false ; | |
17004 | PyObject * obj0 = 0 ; | |
17005 | char * kwnames[] = { | |
17006 | (char *) "prefix", NULL | |
17007 | }; | |
17008 | ||
17009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
17010 | { | |
17011 | arg1 = wxString_in_helper(obj0); | |
17012 | if (arg1 == NULL) SWIG_fail; | |
17013 | temp1 = true; | |
17014 | } | |
17015 | { | |
17016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17017 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
17018 | wxPyEndAllowThreads(__tstate); | |
17019 | if (PyErr_Occurred()) SWIG_fail; | |
17020 | } | |
17021 | resultobj = SWIG_Py_Void(); | |
17022 | { | |
17023 | if (temp1) | |
17024 | delete arg1; | |
17025 | } | |
17026 | return resultobj; | |
17027 | fail: | |
17028 | { | |
17029 | if (temp1) | |
17030 | delete arg1; | |
17031 | } | |
17032 | return NULL; | |
17033 | } | |
17034 | ||
17035 | ||
17036 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17037 | PyObject *resultobj = 0; | |
17038 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17039 | wxString *arg2 = 0 ; | |
17040 | bool result; | |
17041 | void *argp1 = 0 ; | |
17042 | int res1 = 0 ; | |
17043 | bool temp2 = false ; | |
17044 | PyObject * obj0 = 0 ; | |
17045 | PyObject * obj1 = 0 ; | |
17046 | char * kwnames[] = { | |
17047 | (char *) "self",(char *) "szDomain", NULL | |
17048 | }; | |
17049 | ||
17050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
17051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17052 | if (!SWIG_IsOK(res1)) { | |
17053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
17054 | } | |
17055 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17056 | { | |
17057 | arg2 = wxString_in_helper(obj1); | |
17058 | if (arg2 == NULL) SWIG_fail; | |
17059 | temp2 = true; | |
17060 | } | |
17061 | { | |
17062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17063 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
17064 | wxPyEndAllowThreads(__tstate); | |
17065 | if (PyErr_Occurred()) SWIG_fail; | |
17066 | } | |
17067 | { | |
17068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17069 | } | |
17070 | { | |
17071 | if (temp2) | |
17072 | delete arg2; | |
17073 | } | |
17074 | return resultobj; | |
17075 | fail: | |
17076 | { | |
17077 | if (temp2) | |
17078 | delete arg2; | |
17079 | } | |
17080 | return NULL; | |
17081 | } | |
17082 | ||
17083 | ||
33d6fd3b RD |
17084 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17085 | PyObject *resultobj = 0; | |
17086 | int arg1 ; | |
17087 | bool result; | |
17088 | int val1 ; | |
17089 | int ecode1 = 0 ; | |
17090 | PyObject * obj0 = 0 ; | |
17091 | char * kwnames[] = { | |
17092 | (char *) "lang", NULL | |
17093 | }; | |
17094 | ||
17095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
17096 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17097 | if (!SWIG_IsOK(ecode1)) { | |
17098 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
17099 | } | |
17100 | arg1 = static_cast< int >(val1); | |
17101 | { | |
17102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17103 | result = (bool)wxLocale::IsAvailable(arg1); | |
17104 | wxPyEndAllowThreads(__tstate); | |
17105 | if (PyErr_Occurred()) SWIG_fail; | |
17106 | } | |
17107 | { | |
17108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17109 | } | |
17110 | return resultobj; | |
17111 | fail: | |
17112 | return NULL; | |
17113 | } | |
17114 | ||
17115 | ||
554f62e9 RD |
17116 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17117 | PyObject *resultobj = 0; | |
17118 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17119 | wxString *arg2 = 0 ; | |
17120 | bool result; | |
17121 | void *argp1 = 0 ; | |
17122 | int res1 = 0 ; | |
17123 | bool temp2 = false ; | |
17124 | PyObject * obj0 = 0 ; | |
17125 | PyObject * obj1 = 0 ; | |
17126 | char * kwnames[] = { | |
17127 | (char *) "self",(char *) "szDomain", NULL | |
17128 | }; | |
17129 | ||
17130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
17131 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17132 | if (!SWIG_IsOK(res1)) { | |
17133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17134 | } | |
17135 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17136 | { | |
17137 | arg2 = wxString_in_helper(obj1); | |
17138 | if (arg2 == NULL) SWIG_fail; | |
17139 | temp2 = true; | |
17140 | } | |
17141 | { | |
17142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17143 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
17144 | wxPyEndAllowThreads(__tstate); | |
17145 | if (PyErr_Occurred()) SWIG_fail; | |
17146 | } | |
17147 | { | |
17148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17149 | } | |
17150 | { | |
17151 | if (temp2) | |
17152 | delete arg2; | |
17153 | } | |
17154 | return resultobj; | |
17155 | fail: | |
17156 | { | |
17157 | if (temp2) | |
17158 | delete arg2; | |
17159 | } | |
17160 | return NULL; | |
d55e5bfc RD |
17161 | } |
17162 | ||
17163 | ||
554f62e9 RD |
17164 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17165 | PyObject *resultobj = 0; | |
17166 | int arg1 ; | |
17167 | wxLanguageInfo *result = 0 ; | |
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_GetLanguageInfo",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_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
17179 | } | |
17180 | arg1 = static_cast< int >(val1); | |
17181 | { | |
17182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17183 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
17184 | wxPyEndAllowThreads(__tstate); | |
17185 | if (PyErr_Occurred()) SWIG_fail; | |
17186 | } | |
17187 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
17188 | return resultobj; | |
17189 | fail: | |
17190 | return NULL; | |
17191 | } | |
17192 | ||
17193 | ||
17194 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17195 | PyObject *resultobj = 0; | |
17196 | int arg1 ; | |
17197 | wxString result; | |
17198 | int val1 ; | |
17199 | int ecode1 = 0 ; | |
17200 | PyObject * obj0 = 0 ; | |
17201 | char * kwnames[] = { | |
17202 | (char *) "lang", NULL | |
17203 | }; | |
17204 | ||
17205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
17206 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17207 | if (!SWIG_IsOK(ecode1)) { | |
17208 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
17209 | } | |
17210 | arg1 = static_cast< int >(val1); | |
17211 | { | |
17212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17213 | result = wxLocale::GetLanguageName(arg1); | |
17214 | wxPyEndAllowThreads(__tstate); | |
17215 | if (PyErr_Occurred()) SWIG_fail; | |
17216 | } | |
17217 | { | |
17218 | #if wxUSE_UNICODE | |
17219 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17220 | #else | |
17221 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17222 | #endif | |
17223 | } | |
17224 | return resultobj; | |
17225 | fail: | |
17226 | return NULL; | |
093d3ff1 RD |
17227 | } |
17228 | ||
17229 | ||
554f62e9 RD |
17230 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17231 | PyObject *resultobj = 0; | |
17232 | wxString *arg1 = 0 ; | |
17233 | wxLanguageInfo *result = 0 ; | |
17234 | bool temp1 = false ; | |
17235 | PyObject * obj0 = 0 ; | |
17236 | char * kwnames[] = { | |
17237 | (char *) "locale", NULL | |
17238 | }; | |
17239 | ||
17240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
17241 | { | |
17242 | arg1 = wxString_in_helper(obj0); | |
17243 | if (arg1 == NULL) SWIG_fail; | |
17244 | temp1 = true; | |
17245 | } | |
17246 | { | |
17247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
17248 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
17249 | wxPyEndAllowThreads(__tstate); | |
17250 | if (PyErr_Occurred()) SWIG_fail; | |
17251 | } | |
17252 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
17253 | { | |
17254 | if (temp1) | |
17255 | delete arg1; | |
17256 | } | |
17257 | return resultobj; | |
17258 | fail: | |
17259 | { | |
17260 | if (temp1) | |
17261 | delete arg1; | |
17262 | } | |
17263 | return NULL; | |
17264 | } | |
17265 | ||
17266 | ||
17267 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17268 | PyObject *resultobj = 0; | |
17269 | wxLanguageInfo *arg1 = 0 ; | |
17270 | void *argp1 = 0 ; | |
17271 | int res1 = 0 ; | |
17272 | PyObject * obj0 = 0 ; | |
17273 | char * kwnames[] = { | |
17274 | (char *) "info", NULL | |
17275 | }; | |
17276 | ||
17277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
17278 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
17279 | if (!SWIG_IsOK(res1)) { | |
17280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
17281 | } | |
17282 | if (!argp1) { | |
17283 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
17284 | } | |
17285 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
17286 | { | |
17287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17288 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
17289 | wxPyEndAllowThreads(__tstate); | |
17290 | if (PyErr_Occurred()) SWIG_fail; | |
17291 | } | |
17292 | resultobj = SWIG_Py_Void(); | |
17293 | return resultobj; | |
17294 | fail: | |
17295 | return NULL; | |
17296 | } | |
17297 | ||
17298 | ||
17299 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17300 | PyObject *resultobj = 0; | |
17301 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17302 | wxString *arg2 = 0 ; | |
17303 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17304 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17305 | wxString result; | |
17306 | void *argp1 = 0 ; | |
17307 | int res1 = 0 ; | |
17308 | bool temp2 = false ; | |
17309 | bool temp3 = false ; | |
17310 | PyObject * obj0 = 0 ; | |
17311 | PyObject * obj1 = 0 ; | |
17312 | PyObject * obj2 = 0 ; | |
17313 | char * kwnames[] = { | |
17314 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
17315 | }; | |
17316 | ||
17317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17319 | if (!SWIG_IsOK(res1)) { | |
17320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17321 | } | |
17322 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17323 | { | |
17324 | arg2 = wxString_in_helper(obj1); | |
17325 | if (arg2 == NULL) SWIG_fail; | |
17326 | temp2 = true; | |
17327 | } | |
17328 | if (obj2) { | |
17329 | { | |
17330 | arg3 = wxString_in_helper(obj2); | |
17331 | if (arg3 == NULL) SWIG_fail; | |
17332 | temp3 = true; | |
17333 | } | |
17334 | } | |
17335 | { | |
17336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17337 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
17338 | wxPyEndAllowThreads(__tstate); | |
17339 | if (PyErr_Occurred()) SWIG_fail; | |
17340 | } | |
17341 | { | |
17342 | #if wxUSE_UNICODE | |
17343 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17344 | #else | |
17345 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17346 | #endif | |
17347 | } | |
17348 | { | |
17349 | if (temp2) | |
17350 | delete arg2; | |
17351 | } | |
17352 | { | |
17353 | if (temp3) | |
17354 | delete arg3; | |
17355 | } | |
17356 | return resultobj; | |
17357 | fail: | |
17358 | { | |
17359 | if (temp2) | |
17360 | delete arg2; | |
17361 | } | |
17362 | { | |
17363 | if (temp3) | |
17364 | delete arg3; | |
17365 | } | |
17366 | return NULL; | |
17367 | } | |
17368 | ||
17369 | ||
17370 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17371 | PyObject *resultobj = 0; | |
17372 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17373 | wxString *result = 0 ; | |
17374 | void *argp1 = 0 ; | |
17375 | int res1 = 0 ; | |
17376 | PyObject *swig_obj[1] ; | |
17377 | ||
17378 | if (!args) SWIG_fail; | |
17379 | swig_obj[0] = args; | |
17380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17381 | if (!SWIG_IsOK(res1)) { | |
17382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17383 | } | |
17384 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17385 | { | |
17386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17387 | { | |
17388 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
17389 | result = (wxString *) &_result_ref; | |
17390 | } | |
17391 | wxPyEndAllowThreads(__tstate); | |
17392 | if (PyErr_Occurred()) SWIG_fail; | |
17393 | } | |
17394 | { | |
17395 | #if wxUSE_UNICODE | |
17396 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17397 | #else | |
17398 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17399 | #endif | |
17400 | } | |
17401 | return resultobj; | |
17402 | fail: | |
17403 | return NULL; | |
17404 | } | |
17405 | ||
17406 | ||
17407 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17408 | PyObject *obj; | |
17409 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17410 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
17411 | return SWIG_Py_Void(); | |
17412 | } | |
17413 | ||
17414 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17415 | return SWIG_Python_InitShadowInstance(args); | |
17416 | } | |
17417 | ||
17418 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17419 | PyObject *resultobj = 0; | |
17420 | int arg1 = (int) -1 ; | |
17421 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
17422 | wxPyLocale *result = 0 ; | |
17423 | int val1 ; | |
17424 | int ecode1 = 0 ; | |
17425 | int val2 ; | |
17426 | int ecode2 = 0 ; | |
17427 | PyObject * obj0 = 0 ; | |
17428 | PyObject * obj1 = 0 ; | |
17429 | char * kwnames[] = { | |
17430 | (char *) "language",(char *) "flags", NULL | |
17431 | }; | |
17432 | ||
17433 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
17434 | if (obj0) { | |
17435 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17436 | if (!SWIG_IsOK(ecode1)) { | |
17437 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
17438 | } | |
17439 | arg1 = static_cast< int >(val1); | |
17440 | } | |
17441 | if (obj1) { | |
17442 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17443 | if (!SWIG_IsOK(ecode2)) { | |
17444 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
17445 | } | |
17446 | arg2 = static_cast< int >(val2); | |
17447 | } | |
17448 | { | |
17449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17450 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
17451 | wxPyEndAllowThreads(__tstate); | |
17452 | if (PyErr_Occurred()) SWIG_fail; | |
17453 | } | |
17454 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
17455 | return resultobj; | |
17456 | fail: | |
17457 | return NULL; | |
17458 | } | |
17459 | ||
17460 | ||
17461 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17462 | PyObject *resultobj = 0; | |
17463 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
17464 | void *argp1 = 0 ; | |
17465 | int res1 = 0 ; | |
17466 | PyObject *swig_obj[1] ; | |
17467 | ||
17468 | if (!args) SWIG_fail; | |
17469 | swig_obj[0] = args; | |
17470 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
17471 | if (!SWIG_IsOK(res1)) { | |
17472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
17473 | } | |
17474 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
17475 | { | |
17476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17477 | delete arg1; | |
17478 | ||
554f62e9 RD |
17479 | wxPyEndAllowThreads(__tstate); |
17480 | if (PyErr_Occurred()) SWIG_fail; | |
17481 | } | |
fc46b7f3 | 17482 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
17483 | return resultobj; |
17484 | fail: | |
554f62e9 | 17485 | return NULL; |
d55e5bfc RD |
17486 | } |
17487 | ||
17488 | ||
fc46b7f3 | 17489 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17490 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17491 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17492 | PyObject *arg2 = (PyObject *) 0 ; | |
17493 | PyObject *arg3 = (PyObject *) 0 ; | |
554f62e9 RD |
17494 | void *argp1 = 0 ; |
17495 | int res1 = 0 ; | |
17496 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
17497 | PyObject * obj1 = 0 ; |
17498 | PyObject * obj2 = 0 ; | |
554f62e9 | 17499 | char * kwnames[] = { |
fc46b7f3 | 17500 | (char *) "self",(char *) "self",(char *) "_class", NULL |
554f62e9 RD |
17501 | }; |
17502 | ||
fc46b7f3 RD |
17503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17505 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
554f62e9 | 17507 | } |
fc46b7f3 RD |
17508 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
17509 | arg2 = obj1; | |
17510 | arg3 = obj2; | |
554f62e9 RD |
17511 | { |
17512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17513 | (arg1)->_setCallbackInfo(arg2,arg3); |
554f62e9 RD |
17514 | wxPyEndAllowThreads(__tstate); |
17515 | if (PyErr_Occurred()) SWIG_fail; | |
17516 | } | |
17517 | resultobj = SWIG_Py_Void(); | |
17518 | return resultobj; | |
17519 | fail: | |
17520 | return NULL; | |
17521 | } | |
17522 | ||
17523 | ||
fc46b7f3 | 17524 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17525 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17526 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17527 | wxChar *arg2 = (wxChar *) 0 ; | |
17528 | wxChar *arg3 = (wxChar *) NULL ; | |
17529 | wxChar *result = 0 ; | |
554f62e9 RD |
17530 | void *argp1 = 0 ; |
17531 | int res1 = 0 ; | |
fc46b7f3 RD |
17532 | void *argp2 = 0 ; |
17533 | int res2 = 0 ; | |
17534 | void *argp3 = 0 ; | |
17535 | int res3 = 0 ; | |
554f62e9 RD |
17536 | PyObject * obj0 = 0 ; |
17537 | PyObject * obj1 = 0 ; | |
17538 | PyObject * obj2 = 0 ; | |
17539 | char * kwnames[] = { | |
17540 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
17541 | }; | |
17542 | ||
fc46b7f3 RD |
17543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17545 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
554f62e9 | 17547 | } |
fc46b7f3 RD |
17548 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
17549 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17550 | if (!SWIG_IsOK(res2)) { | |
17551 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
554f62e9 | 17552 | } |
fc46b7f3 | 17553 | arg2 = reinterpret_cast< wxChar * >(argp2); |
554f62e9 | 17554 | if (obj2) { |
fc46b7f3 RD |
17555 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
17556 | if (!SWIG_IsOK(res3)) { | |
17557 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
d55e5bfc | 17558 | } |
fc46b7f3 | 17559 | arg3 = reinterpret_cast< wxChar * >(argp3); |
554f62e9 RD |
17560 | } |
17561 | { | |
17562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17563 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
554f62e9 RD |
17564 | wxPyEndAllowThreads(__tstate); |
17565 | if (PyErr_Occurred()) SWIG_fail; | |
17566 | } | |
fc46b7f3 | 17567 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
554f62e9 RD |
17568 | return resultobj; |
17569 | fail: | |
554f62e9 | 17570 | return NULL; |
d55e5bfc RD |
17571 | } |
17572 | ||
17573 | ||
fc46b7f3 | 17574 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17575 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17576 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17577 | wxChar *arg2 = (wxChar *) 0 ; | |
17578 | wxChar *arg3 = (wxChar *) 0 ; | |
17579 | size_t arg4 ; | |
17580 | wxChar *arg5 = (wxChar *) NULL ; | |
17581 | wxChar *result = 0 ; | |
554f62e9 RD |
17582 | void *argp1 = 0 ; |
17583 | int res1 = 0 ; | |
fc46b7f3 RD |
17584 | void *argp2 = 0 ; |
17585 | int res2 = 0 ; | |
17586 | void *argp3 = 0 ; | |
17587 | int res3 = 0 ; | |
17588 | size_t val4 ; | |
17589 | int ecode4 = 0 ; | |
17590 | void *argp5 = 0 ; | |
17591 | int res5 = 0 ; | |
17592 | PyObject * obj0 = 0 ; | |
17593 | PyObject * obj1 = 0 ; | |
17594 | PyObject * obj2 = 0 ; | |
17595 | PyObject * obj3 = 0 ; | |
17596 | PyObject * obj4 = 0 ; | |
17597 | char * kwnames[] = { | |
17598 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
17599 | }; | |
554f62e9 | 17600 | |
fc46b7f3 RD |
17601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
17602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17603 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
17604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
17605 | } | |
17606 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
17607 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17608 | if (!SWIG_IsOK(res2)) { | |
17609 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
17610 | } | |
17611 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
17612 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17613 | if (!SWIG_IsOK(res3)) { | |
17614 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
17615 | } | |
17616 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
17617 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
17618 | if (!SWIG_IsOK(ecode4)) { | |
17619 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
17620 | } | |
17621 | arg4 = static_cast< size_t >(val4); | |
17622 | if (obj4) { | |
17623 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17624 | if (!SWIG_IsOK(res5)) { | |
17625 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
17626 | } | |
17627 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
554f62e9 | 17628 | } |
554f62e9 RD |
17629 | { |
17630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17631 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
554f62e9 RD |
17632 | wxPyEndAllowThreads(__tstate); |
17633 | if (PyErr_Occurred()) SWIG_fail; | |
17634 | } | |
fc46b7f3 | 17635 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
554f62e9 RD |
17636 | return resultobj; |
17637 | fail: | |
17638 | return NULL; | |
d55e5bfc RD |
17639 | } |
17640 | ||
17641 | ||
fc46b7f3 | 17642 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
17643 | PyObject *obj; |
17644 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 17645 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
554f62e9 | 17646 | return SWIG_Py_Void(); |
d55e5bfc RD |
17647 | } |
17648 | ||
fc46b7f3 | 17649 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 17650 | return SWIG_Python_InitShadowInstance(args); |
d55e5bfc RD |
17651 | } |
17652 | ||
554f62e9 RD |
17653 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17654 | PyObject *resultobj = 0; | |
17655 | wxLocale *result = 0 ; | |
17656 | ||
17657 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
17658 | { | |
17659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17660 | result = (wxLocale *)wxGetLocale(); | |
17661 | wxPyEndAllowThreads(__tstate); | |
17662 | if (PyErr_Occurred()) SWIG_fail; | |
17663 | } | |
17664 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17665 | return resultobj; | |
17666 | fail: | |
17667 | return NULL; | |
d55e5bfc RD |
17668 | } |
17669 | ||
17670 | ||
554f62e9 RD |
17671 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17672 | PyObject *resultobj = 0; | |
17673 | wxString *arg1 = 0 ; | |
17674 | wxString result; | |
17675 | bool temp1 = false ; | |
17676 | ||
17677 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
17678 | { | |
17679 | arg1 = wxString_in_helper(swig_obj[0]); | |
17680 | if (arg1 == NULL) SWIG_fail; | |
17681 | temp1 = true; | |
17682 | } | |
17683 | { | |
17684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17685 | result = wxGetTranslation((wxString const &)*arg1); | |
17686 | wxPyEndAllowThreads(__tstate); | |
17687 | if (PyErr_Occurred()) SWIG_fail; | |
17688 | } | |
17689 | { | |
093d3ff1 | 17690 | #if wxUSE_UNICODE |
554f62e9 | 17691 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17692 | #else |
554f62e9 | 17693 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17694 | #endif |
554f62e9 RD |
17695 | } |
17696 | { | |
17697 | if (temp1) | |
17698 | delete arg1; | |
17699 | } | |
17700 | return resultobj; | |
17701 | fail: | |
17702 | { | |
17703 | if (temp1) | |
17704 | delete arg1; | |
17705 | } | |
17706 | return NULL; | |
d55e5bfc RD |
17707 | } |
17708 | ||
17709 | ||
554f62e9 | 17710 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
17711 | PyObject *resultobj = 0; |
17712 | wxString *arg1 = 0 ; | |
17713 | wxString *arg2 = 0 ; | |
17714 | wxString result; | |
17715 | bool temp1 = false ; | |
17716 | bool temp2 = false ; | |
17717 | ||
17718 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
17719 | { | |
17720 | arg1 = wxString_in_helper(swig_obj[0]); | |
17721 | if (arg1 == NULL) SWIG_fail; | |
17722 | temp1 = true; | |
17723 | } | |
17724 | { | |
17725 | arg2 = wxString_in_helper(swig_obj[1]); | |
17726 | if (arg2 == NULL) SWIG_fail; | |
17727 | temp2 = true; | |
17728 | } | |
17729 | { | |
17730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17731 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
17732 | wxPyEndAllowThreads(__tstate); | |
17733 | if (PyErr_Occurred()) SWIG_fail; | |
17734 | } | |
17735 | { | |
17736 | #if wxUSE_UNICODE | |
17737 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17738 | #else | |
17739 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17740 | #endif | |
17741 | } | |
17742 | { | |
17743 | if (temp1) | |
17744 | delete arg1; | |
17745 | } | |
17746 | { | |
17747 | if (temp2) | |
17748 | delete arg2; | |
17749 | } | |
17750 | return resultobj; | |
17751 | fail: | |
17752 | { | |
17753 | if (temp1) | |
17754 | delete arg1; | |
17755 | } | |
17756 | { | |
17757 | if (temp2) | |
17758 | delete arg2; | |
17759 | } | |
17760 | return NULL; | |
17761 | } | |
17762 | ||
17763 | ||
17764 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
554f62e9 RD |
17765 | PyObject *resultobj = 0; |
17766 | wxString *arg1 = 0 ; | |
17767 | wxString *arg2 = 0 ; | |
17768 | size_t arg3 ; | |
17769 | wxString result; | |
17770 | bool temp1 = false ; | |
17771 | bool temp2 = false ; | |
17772 | size_t val3 ; | |
17773 | int ecode3 = 0 ; | |
17774 | ||
17775 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
17776 | { | |
17777 | arg1 = wxString_in_helper(swig_obj[0]); | |
17778 | if (arg1 == NULL) SWIG_fail; | |
17779 | temp1 = true; | |
17780 | } | |
17781 | { | |
17782 | arg2 = wxString_in_helper(swig_obj[1]); | |
17783 | if (arg2 == NULL) SWIG_fail; | |
17784 | temp2 = true; | |
17785 | } | |
17786 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17787 | if (!SWIG_IsOK(ecode3)) { | |
17788 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17789 | } | |
17790 | arg3 = static_cast< size_t >(val3); | |
17791 | { | |
17792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17793 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
17794 | wxPyEndAllowThreads(__tstate); | |
17795 | if (PyErr_Occurred()) SWIG_fail; | |
17796 | } | |
17797 | { | |
093d3ff1 | 17798 | #if wxUSE_UNICODE |
554f62e9 | 17799 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17800 | #else |
554f62e9 | 17801 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17802 | #endif |
554f62e9 RD |
17803 | } |
17804 | { | |
17805 | if (temp1) | |
17806 | delete arg1; | |
17807 | } | |
17808 | { | |
17809 | if (temp2) | |
17810 | delete arg2; | |
17811 | } | |
17812 | return resultobj; | |
17813 | fail: | |
17814 | { | |
17815 | if (temp1) | |
17816 | delete arg1; | |
17817 | } | |
17818 | { | |
17819 | if (temp2) | |
17820 | delete arg2; | |
17821 | } | |
17822 | return NULL; | |
d55e5bfc RD |
17823 | } |
17824 | ||
17825 | ||
fc46b7f3 RD |
17826 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17827 | PyObject *resultobj = 0; | |
17828 | wxString *arg1 = 0 ; | |
17829 | wxString *arg2 = 0 ; | |
17830 | size_t arg3 ; | |
17831 | wxString *arg4 = 0 ; | |
17832 | wxString result; | |
17833 | bool temp1 = false ; | |
17834 | bool temp2 = false ; | |
17835 | size_t val3 ; | |
17836 | int ecode3 = 0 ; | |
17837 | bool temp4 = false ; | |
17838 | ||
17839 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17840 | { | |
17841 | arg1 = wxString_in_helper(swig_obj[0]); | |
17842 | if (arg1 == NULL) SWIG_fail; | |
17843 | temp1 = true; | |
17844 | } | |
17845 | { | |
17846 | arg2 = wxString_in_helper(swig_obj[1]); | |
17847 | if (arg2 == NULL) SWIG_fail; | |
17848 | temp2 = true; | |
17849 | } | |
17850 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17851 | if (!SWIG_IsOK(ecode3)) { | |
17852 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17853 | } | |
17854 | arg3 = static_cast< size_t >(val3); | |
17855 | { | |
17856 | arg4 = wxString_in_helper(swig_obj[3]); | |
17857 | if (arg4 == NULL) SWIG_fail; | |
17858 | temp4 = true; | |
17859 | } | |
17860 | { | |
17861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17862 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17863 | wxPyEndAllowThreads(__tstate); | |
17864 | if (PyErr_Occurred()) SWIG_fail; | |
17865 | } | |
17866 | { | |
17867 | #if wxUSE_UNICODE | |
17868 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17869 | #else | |
17870 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17871 | #endif | |
17872 | } | |
17873 | { | |
17874 | if (temp1) | |
17875 | delete arg1; | |
17876 | } | |
17877 | { | |
17878 | if (temp2) | |
17879 | delete arg2; | |
17880 | } | |
17881 | { | |
17882 | if (temp4) | |
17883 | delete arg4; | |
17884 | } | |
17885 | return resultobj; | |
17886 | fail: | |
17887 | { | |
17888 | if (temp1) | |
17889 | delete arg1; | |
17890 | } | |
17891 | { | |
17892 | if (temp2) | |
17893 | delete arg2; | |
17894 | } | |
17895 | { | |
17896 | if (temp4) | |
17897 | delete arg4; | |
17898 | } | |
17899 | return NULL; | |
17900 | } | |
17901 | ||
17902 | ||
554f62e9 RD |
17903 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17904 | int argc; | |
fc46b7f3 | 17905 | PyObject *argv[5]; |
554f62e9 | 17906 | |
fc46b7f3 | 17907 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
554f62e9 RD |
17908 | --argc; |
17909 | if (argc == 1) { | |
17910 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17911 | } | |
fc46b7f3 | 17912 | if (argc == 2) { |
554f62e9 RD |
17913 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17914 | } | |
fc46b7f3 RD |
17915 | if (argc == 3) { |
17916 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17917 | } | |
17918 | if (argc == 4) { | |
17919 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17920 | } | |
554f62e9 RD |
17921 | |
17922 | fail: | |
17923 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17924 | return NULL; | |
d55e5bfc RD |
17925 | } |
17926 | ||
17927 | ||
554f62e9 RD |
17928 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17929 | PyObject *resultobj = 0; | |
17930 | wxEncodingConverter *result = 0 ; | |
17931 | ||
17932 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17933 | { | |
17934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17935 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17936 | wxPyEndAllowThreads(__tstate); | |
17937 | if (PyErr_Occurred()) SWIG_fail; | |
17938 | } | |
17939 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17940 | return resultobj; | |
17941 | fail: | |
17942 | return NULL; | |
d55e5bfc RD |
17943 | } |
17944 | ||
17945 | ||
554f62e9 RD |
17946 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17947 | PyObject *resultobj = 0; | |
17948 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17949 | void *argp1 = 0 ; | |
17950 | int res1 = 0 ; | |
17951 | PyObject *swig_obj[1] ; | |
17952 | ||
17953 | if (!args) SWIG_fail; | |
17954 | swig_obj[0] = args; | |
17955 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17956 | if (!SWIG_IsOK(res1)) { | |
17957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17958 | } | |
17959 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17960 | { | |
17961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17962 | delete arg1; | |
d55e5bfc | 17963 | |
554f62e9 RD |
17964 | wxPyEndAllowThreads(__tstate); |
17965 | if (PyErr_Occurred()) SWIG_fail; | |
17966 | } | |
17967 | resultobj = SWIG_Py_Void(); | |
17968 | return resultobj; | |
17969 | fail: | |
17970 | return NULL; | |
17971 | } | |
17972 | ||
17973 | ||
17974 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17975 | PyObject *resultobj = 0; | |
17976 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17977 | wxFontEncoding arg2 ; | |
17978 | wxFontEncoding arg3 ; | |
17979 | int arg4 = (int) wxCONVERT_STRICT ; | |
17980 | bool result; | |
17981 | void *argp1 = 0 ; | |
17982 | int res1 = 0 ; | |
17983 | int val2 ; | |
17984 | int ecode2 = 0 ; | |
17985 | int val3 ; | |
17986 | int ecode3 = 0 ; | |
17987 | int val4 ; | |
17988 | int ecode4 = 0 ; | |
17989 | PyObject * obj0 = 0 ; | |
17990 | PyObject * obj1 = 0 ; | |
17991 | PyObject * obj2 = 0 ; | |
17992 | PyObject * obj3 = 0 ; | |
17993 | char * kwnames[] = { | |
17994 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17995 | }; | |
17996 | ||
17997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17999 | if (!SWIG_IsOK(res1)) { | |
18000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
18001 | } | |
18002 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
18003 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18004 | if (!SWIG_IsOK(ecode2)) { | |
18005 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
18006 | } | |
18007 | arg2 = static_cast< wxFontEncoding >(val2); | |
18008 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18009 | if (!SWIG_IsOK(ecode3)) { | |
18010 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
18011 | } | |
18012 | arg3 = static_cast< wxFontEncoding >(val3); | |
18013 | if (obj3) { | |
18014 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18015 | if (!SWIG_IsOK(ecode4)) { | |
18016 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
18017 | } | |
18018 | arg4 = static_cast< int >(val4); | |
18019 | } | |
18020 | { | |
18021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18022 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
18023 | wxPyEndAllowThreads(__tstate); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | } | |
18026 | { | |
18027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18028 | } | |
18029 | return resultobj; | |
18030 | fail: | |
18031 | return NULL; | |
18032 | } | |
18033 | ||
18034 | ||
18035 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18036 | PyObject *resultobj = 0; | |
18037 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
18038 | wxString *arg2 = 0 ; | |
18039 | wxString result; | |
18040 | void *argp1 = 0 ; | |
18041 | int res1 = 0 ; | |
18042 | bool temp2 = false ; | |
18043 | PyObject * obj0 = 0 ; | |
18044 | PyObject * obj1 = 0 ; | |
18045 | char * kwnames[] = { | |
18046 | (char *) "self",(char *) "input", NULL | |
18047 | }; | |
18048 | ||
18049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
18050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
18051 | if (!SWIG_IsOK(res1)) { | |
18052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
18053 | } | |
18054 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
18055 | { | |
18056 | arg2 = wxString_in_helper(obj1); | |
18057 | if (arg2 == NULL) SWIG_fail; | |
18058 | temp2 = true; | |
18059 | } | |
18060 | { | |
18061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18062 | result = (arg1)->Convert((wxString const &)*arg2); | |
18063 | wxPyEndAllowThreads(__tstate); | |
18064 | if (PyErr_Occurred()) SWIG_fail; | |
18065 | } | |
18066 | { | |
d55e5bfc | 18067 | #if wxUSE_UNICODE |
554f62e9 | 18068 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 18069 | #else |
554f62e9 | 18070 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 18071 | #endif |
554f62e9 RD |
18072 | } |
18073 | { | |
18074 | if (temp2) | |
18075 | delete arg2; | |
18076 | } | |
18077 | return resultobj; | |
18078 | fail: | |
18079 | { | |
18080 | if (temp2) | |
18081 | delete arg2; | |
18082 | } | |
18083 | return NULL; | |
18084 | } | |
18085 | ||
18086 | ||
18087 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18088 | PyObject *resultobj = 0; | |
18089 | wxFontEncoding arg1 ; | |
18090 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
18091 | wxFontEncodingArray result; | |
18092 | int val1 ; | |
18093 | int ecode1 = 0 ; | |
18094 | int val2 ; | |
18095 | int ecode2 = 0 ; | |
18096 | PyObject * obj0 = 0 ; | |
18097 | PyObject * obj1 = 0 ; | |
18098 | char * kwnames[] = { | |
18099 | (char *) "enc",(char *) "platform", NULL | |
18100 | }; | |
18101 | ||
18102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
18103 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18104 | if (!SWIG_IsOK(ecode1)) { | |
18105 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
18106 | } | |
18107 | arg1 = static_cast< wxFontEncoding >(val1); | |
18108 | if (obj1) { | |
18109 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18110 | if (!SWIG_IsOK(ecode2)) { | |
18111 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
18112 | } | |
18113 | arg2 = static_cast< int >(val2); | |
18114 | } | |
18115 | { | |
18116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18117 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
18118 | wxPyEndAllowThreads(__tstate); | |
18119 | if (PyErr_Occurred()) SWIG_fail; | |
18120 | } | |
18121 | { | |
18122 | resultobj = PyList_New(0); | |
18123 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
18124 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
18125 | PyList_Append(resultobj, number); | |
18126 | Py_DECREF(number); | |
d55e5bfc | 18127 | } |
554f62e9 RD |
18128 | } |
18129 | return resultobj; | |
18130 | fail: | |
18131 | return NULL; | |
d55e5bfc RD |
18132 | } |
18133 | ||
18134 | ||
554f62e9 RD |
18135 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18136 | PyObject *resultobj = 0; | |
18137 | wxFontEncoding arg1 ; | |
18138 | wxFontEncodingArray result; | |
18139 | int val1 ; | |
18140 | int ecode1 = 0 ; | |
18141 | PyObject * obj0 = 0 ; | |
18142 | char * kwnames[] = { | |
18143 | (char *) "enc", NULL | |
18144 | }; | |
18145 | ||
18146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
18147 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18148 | if (!SWIG_IsOK(ecode1)) { | |
18149 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
18150 | } | |
18151 | arg1 = static_cast< wxFontEncoding >(val1); | |
18152 | { | |
18153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18154 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
18155 | wxPyEndAllowThreads(__tstate); | |
18156 | if (PyErr_Occurred()) SWIG_fail; | |
18157 | } | |
18158 | { | |
18159 | resultobj = PyList_New(0); | |
18160 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
18161 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
18162 | PyList_Append(resultobj, number); | |
18163 | Py_DECREF(number); | |
d55e5bfc | 18164 | } |
554f62e9 RD |
18165 | } |
18166 | return resultobj; | |
18167 | fail: | |
18168 | return NULL; | |
18169 | } | |
18170 | ||
18171 | ||
18172 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18173 | PyObject *resultobj = 0; | |
18174 | wxFontEncoding arg1 ; | |
18175 | wxFontEncoding arg2 ; | |
18176 | bool result; | |
18177 | int val1 ; | |
18178 | int ecode1 = 0 ; | |
18179 | int val2 ; | |
18180 | int ecode2 = 0 ; | |
18181 | PyObject * obj0 = 0 ; | |
18182 | PyObject * obj1 = 0 ; | |
18183 | char * kwnames[] = { | |
18184 | (char *) "encIn",(char *) "encOut", NULL | |
18185 | }; | |
18186 | ||
18187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
18188 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18189 | if (!SWIG_IsOK(ecode1)) { | |
18190 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
18191 | } | |
18192 | arg1 = static_cast< wxFontEncoding >(val1); | |
18193 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18194 | if (!SWIG_IsOK(ecode2)) { | |
18195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
18196 | } | |
18197 | arg2 = static_cast< wxFontEncoding >(val2); | |
18198 | { | |
18199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18200 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
18201 | wxPyEndAllowThreads(__tstate); | |
18202 | if (PyErr_Occurred()) SWIG_fail; | |
18203 | } | |
18204 | { | |
18205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18206 | } | |
18207 | return resultobj; | |
18208 | fail: | |
18209 | return NULL; | |
d55e5bfc RD |
18210 | } |
18211 | ||
18212 | ||
554f62e9 RD |
18213 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18214 | PyObject *obj; | |
18215 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18216 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
18217 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18218 | } |
18219 | ||
554f62e9 RD |
18220 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18221 | return SWIG_Python_InitShadowInstance(args); | |
5e483524 RD |
18222 | } |
18223 | ||
554f62e9 RD |
18224 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18225 | PyObject *resultobj = 0; | |
18226 | wxDC *arg1 = (wxDC *) 0 ; | |
18227 | void *argp1 = 0 ; | |
18228 | int res1 = 0 ; | |
18229 | PyObject *swig_obj[1] ; | |
18230 | ||
18231 | if (!args) SWIG_fail; | |
18232 | swig_obj[0] = args; | |
18233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
18234 | if (!SWIG_IsOK(res1)) { | |
18235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18236 | } | |
18237 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18238 | { | |
18239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18240 | delete arg1; | |
d55e5bfc | 18241 | |
554f62e9 RD |
18242 | wxPyEndAllowThreads(__tstate); |
18243 | if (PyErr_Occurred()) SWIG_fail; | |
18244 | } | |
18245 | resultobj = SWIG_Py_Void(); | |
18246 | return resultobj; | |
18247 | fail: | |
18248 | return NULL; | |
18249 | } | |
18250 | ||
18251 | ||
18252 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18253 | PyObject *resultobj = 0; | |
18254 | wxDC *arg1 = (wxDC *) 0 ; | |
18255 | int arg2 ; | |
18256 | int arg3 ; | |
18257 | wxColour *arg4 = 0 ; | |
18258 | int arg5 = (int) wxFLOOD_SURFACE ; | |
18259 | bool result; | |
18260 | void *argp1 = 0 ; | |
18261 | int res1 = 0 ; | |
18262 | int val2 ; | |
18263 | int ecode2 = 0 ; | |
18264 | int val3 ; | |
18265 | int ecode3 = 0 ; | |
18266 | wxColour temp4 ; | |
18267 | int val5 ; | |
18268 | int ecode5 = 0 ; | |
18269 | PyObject * obj0 = 0 ; | |
18270 | PyObject * obj1 = 0 ; | |
18271 | PyObject * obj2 = 0 ; | |
18272 | PyObject * obj3 = 0 ; | |
18273 | PyObject * obj4 = 0 ; | |
18274 | char * kwnames[] = { | |
18275 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
18276 | }; | |
18277 | ||
18278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18280 | if (!SWIG_IsOK(res1)) { | |
18281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18282 | } | |
18283 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18284 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18285 | if (!SWIG_IsOK(ecode2)) { | |
18286 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
18287 | } | |
18288 | arg2 = static_cast< int >(val2); | |
18289 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18290 | if (!SWIG_IsOK(ecode3)) { | |
18291 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
18292 | } | |
18293 | arg3 = static_cast< int >(val3); | |
18294 | { | |
18295 | arg4 = &temp4; | |
18296 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18297 | } | |
18298 | if (obj4) { | |
18299 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18300 | if (!SWIG_IsOK(ecode5)) { | |
18301 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
18302 | } | |
18303 | arg5 = static_cast< int >(val5); | |
18304 | } | |
18305 | { | |
18306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18307 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
18308 | wxPyEndAllowThreads(__tstate); | |
18309 | if (PyErr_Occurred()) SWIG_fail; | |
18310 | } | |
18311 | { | |
18312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18313 | } | |
18314 | return resultobj; | |
18315 | fail: | |
18316 | return NULL; | |
18317 | } | |
18318 | ||
18319 | ||
18320 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18321 | PyObject *resultobj = 0; | |
18322 | wxDC *arg1 = (wxDC *) 0 ; | |
18323 | wxPoint *arg2 = 0 ; | |
18324 | wxColour *arg3 = 0 ; | |
18325 | int arg4 = (int) wxFLOOD_SURFACE ; | |
18326 | bool result; | |
18327 | void *argp1 = 0 ; | |
18328 | int res1 = 0 ; | |
18329 | wxPoint temp2 ; | |
18330 | wxColour temp3 ; | |
18331 | int val4 ; | |
18332 | int ecode4 = 0 ; | |
18333 | PyObject * obj0 = 0 ; | |
18334 | PyObject * obj1 = 0 ; | |
18335 | PyObject * obj2 = 0 ; | |
18336 | PyObject * obj3 = 0 ; | |
18337 | char * kwnames[] = { | |
18338 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
18339 | }; | |
18340 | ||
18341 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18342 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18343 | if (!SWIG_IsOK(res1)) { | |
18344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18345 | } | |
18346 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18347 | { | |
18348 | arg2 = &temp2; | |
18349 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18350 | } | |
18351 | { | |
18352 | arg3 = &temp3; | |
18353 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18354 | } | |
18355 | if (obj3) { | |
18356 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18357 | if (!SWIG_IsOK(ecode4)) { | |
18358 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
18359 | } | |
18360 | arg4 = static_cast< int >(val4); | |
18361 | } | |
18362 | { | |
18363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18364 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
18365 | wxPyEndAllowThreads(__tstate); | |
18366 | if (PyErr_Occurred()) SWIG_fail; | |
18367 | } | |
18368 | { | |
18369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18370 | } | |
18371 | return resultobj; | |
18372 | fail: | |
18373 | return NULL; | |
18374 | } | |
18375 | ||
18376 | ||
18377 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18378 | PyObject *resultobj = 0; | |
18379 | wxDC *arg1 = (wxDC *) 0 ; | |
18380 | wxRect *arg2 = 0 ; | |
18381 | wxColour *arg3 = 0 ; | |
18382 | wxColour *arg4 = 0 ; | |
18383 | wxPoint *arg5 = 0 ; | |
18384 | void *argp1 = 0 ; | |
18385 | int res1 = 0 ; | |
18386 | wxRect temp2 ; | |
18387 | wxColour temp3 ; | |
18388 | wxColour temp4 ; | |
18389 | wxPoint temp5 ; | |
18390 | PyObject * obj0 = 0 ; | |
18391 | PyObject * obj1 = 0 ; | |
18392 | PyObject * obj2 = 0 ; | |
18393 | PyObject * obj3 = 0 ; | |
18394 | PyObject * obj4 = 0 ; | |
18395 | char * kwnames[] = { | |
18396 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
18397 | }; | |
18398 | ||
18399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18401 | if (!SWIG_IsOK(res1)) { | |
18402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18403 | } | |
18404 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18405 | { | |
18406 | arg2 = &temp2; | |
18407 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18408 | } | |
18409 | { | |
18410 | arg3 = &temp3; | |
18411 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18412 | } | |
18413 | { | |
18414 | arg4 = &temp4; | |
18415 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18416 | } | |
18417 | { | |
18418 | arg5 = &temp5; | |
18419 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
18420 | } | |
18421 | { | |
18422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18423 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
18424 | wxPyEndAllowThreads(__tstate); | |
18425 | if (PyErr_Occurred()) SWIG_fail; | |
18426 | } | |
18427 | resultobj = SWIG_Py_Void(); | |
18428 | return resultobj; | |
18429 | fail: | |
18430 | return NULL; | |
18431 | } | |
18432 | ||
18433 | ||
18434 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18435 | PyObject *resultobj = 0; | |
18436 | wxDC *arg1 = (wxDC *) 0 ; | |
18437 | wxRect *arg2 = 0 ; | |
18438 | wxColour *arg3 = 0 ; | |
18439 | wxColour *arg4 = 0 ; | |
18440 | wxDirection arg5 = (wxDirection) wxEAST ; | |
18441 | void *argp1 = 0 ; | |
18442 | int res1 = 0 ; | |
18443 | wxRect temp2 ; | |
18444 | wxColour temp3 ; | |
18445 | wxColour temp4 ; | |
18446 | int val5 ; | |
18447 | int ecode5 = 0 ; | |
18448 | PyObject * obj0 = 0 ; | |
18449 | PyObject * obj1 = 0 ; | |
18450 | PyObject * obj2 = 0 ; | |
18451 | PyObject * obj3 = 0 ; | |
18452 | PyObject * obj4 = 0 ; | |
18453 | char * kwnames[] = { | |
18454 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
18455 | }; | |
18456 | ||
18457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18459 | if (!SWIG_IsOK(res1)) { | |
18460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18461 | } | |
18462 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18463 | { | |
18464 | arg2 = &temp2; | |
18465 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18466 | } | |
18467 | { | |
18468 | arg3 = &temp3; | |
18469 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18470 | } | |
18471 | { | |
18472 | arg4 = &temp4; | |
18473 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18474 | } | |
18475 | if (obj4) { | |
18476 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18477 | if (!SWIG_IsOK(ecode5)) { | |
18478 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
18479 | } | |
18480 | arg5 = static_cast< wxDirection >(val5); | |
18481 | } | |
18482 | { | |
18483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18484 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
18485 | wxPyEndAllowThreads(__tstate); | |
18486 | if (PyErr_Occurred()) SWIG_fail; | |
18487 | } | |
18488 | resultobj = SWIG_Py_Void(); | |
18489 | return resultobj; | |
18490 | fail: | |
18491 | return NULL; | |
18492 | } | |
18493 | ||
18494 | ||
18495 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18496 | PyObject *resultobj = 0; | |
18497 | wxDC *arg1 = (wxDC *) 0 ; | |
18498 | int arg2 ; | |
18499 | int arg3 ; | |
18500 | wxColour result; | |
18501 | void *argp1 = 0 ; | |
18502 | int res1 = 0 ; | |
18503 | int val2 ; | |
18504 | int ecode2 = 0 ; | |
18505 | int val3 ; | |
18506 | int ecode3 = 0 ; | |
18507 | PyObject * obj0 = 0 ; | |
18508 | PyObject * obj1 = 0 ; | |
18509 | PyObject * obj2 = 0 ; | |
18510 | char * kwnames[] = { | |
18511 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18512 | }; | |
18513 | ||
18514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18516 | if (!SWIG_IsOK(res1)) { | |
18517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18518 | } | |
18519 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18520 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18521 | if (!SWIG_IsOK(ecode2)) { | |
18522 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
18523 | } | |
18524 | arg2 = static_cast< int >(val2); | |
18525 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18526 | if (!SWIG_IsOK(ecode3)) { | |
18527 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
18528 | } | |
18529 | arg3 = static_cast< int >(val3); | |
18530 | { | |
18531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18532 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
18533 | wxPyEndAllowThreads(__tstate); | |
18534 | if (PyErr_Occurred()) SWIG_fail; | |
18535 | } | |
18536 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18537 | return resultobj; | |
18538 | fail: | |
18539 | return NULL; | |
18540 | } | |
18541 | ||
18542 | ||
18543 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18544 | PyObject *resultobj = 0; | |
18545 | wxDC *arg1 = (wxDC *) 0 ; | |
18546 | wxPoint *arg2 = 0 ; | |
18547 | wxColour result; | |
18548 | void *argp1 = 0 ; | |
18549 | int res1 = 0 ; | |
18550 | wxPoint temp2 ; | |
18551 | PyObject * obj0 = 0 ; | |
18552 | PyObject * obj1 = 0 ; | |
18553 | char * kwnames[] = { | |
18554 | (char *) "self",(char *) "pt", NULL | |
18555 | }; | |
18556 | ||
18557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18559 | if (!SWIG_IsOK(res1)) { | |
18560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18561 | } | |
18562 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18563 | { | |
18564 | arg2 = &temp2; | |
18565 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18566 | } | |
18567 | { | |
18568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18569 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
18570 | wxPyEndAllowThreads(__tstate); | |
18571 | if (PyErr_Occurred()) SWIG_fail; | |
18572 | } | |
18573 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18574 | return resultobj; | |
18575 | fail: | |
18576 | return NULL; | |
18577 | } | |
18578 | ||
18579 | ||
18580 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18581 | PyObject *resultobj = 0; | |
18582 | wxDC *arg1 = (wxDC *) 0 ; | |
18583 | int arg2 ; | |
18584 | int arg3 ; | |
18585 | int arg4 ; | |
18586 | int arg5 ; | |
18587 | void *argp1 = 0 ; | |
18588 | int res1 = 0 ; | |
18589 | int val2 ; | |
18590 | int ecode2 = 0 ; | |
18591 | int val3 ; | |
18592 | int ecode3 = 0 ; | |
18593 | int val4 ; | |
18594 | int ecode4 = 0 ; | |
18595 | int val5 ; | |
18596 | int ecode5 = 0 ; | |
18597 | PyObject * obj0 = 0 ; | |
18598 | PyObject * obj1 = 0 ; | |
18599 | PyObject * obj2 = 0 ; | |
18600 | PyObject * obj3 = 0 ; | |
18601 | PyObject * obj4 = 0 ; | |
18602 | char * kwnames[] = { | |
18603 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
18604 | }; | |
18605 | ||
18606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18608 | if (!SWIG_IsOK(res1)) { | |
18609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18610 | } | |
18611 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18612 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18613 | if (!SWIG_IsOK(ecode2)) { | |
18614 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
18615 | } | |
18616 | arg2 = static_cast< int >(val2); | |
18617 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18618 | if (!SWIG_IsOK(ecode3)) { | |
18619 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
18620 | } | |
18621 | arg3 = static_cast< int >(val3); | |
18622 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18623 | if (!SWIG_IsOK(ecode4)) { | |
18624 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
18625 | } | |
18626 | arg4 = static_cast< int >(val4); | |
18627 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18628 | if (!SWIG_IsOK(ecode5)) { | |
18629 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
18630 | } | |
18631 | arg5 = static_cast< int >(val5); | |
18632 | { | |
18633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18634 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
18635 | wxPyEndAllowThreads(__tstate); | |
18636 | if (PyErr_Occurred()) SWIG_fail; | |
18637 | } | |
18638 | resultobj = SWIG_Py_Void(); | |
18639 | return resultobj; | |
18640 | fail: | |
18641 | return NULL; | |
18642 | } | |
18643 | ||
18644 | ||
18645 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18646 | PyObject *resultobj = 0; | |
18647 | wxDC *arg1 = (wxDC *) 0 ; | |
18648 | wxPoint *arg2 = 0 ; | |
18649 | wxPoint *arg3 = 0 ; | |
18650 | void *argp1 = 0 ; | |
18651 | int res1 = 0 ; | |
18652 | wxPoint temp2 ; | |
18653 | wxPoint temp3 ; | |
18654 | PyObject * obj0 = 0 ; | |
18655 | PyObject * obj1 = 0 ; | |
18656 | PyObject * obj2 = 0 ; | |
18657 | char * kwnames[] = { | |
18658 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
18659 | }; | |
18660 | ||
18661 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18662 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18663 | if (!SWIG_IsOK(res1)) { | |
18664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18665 | } | |
18666 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18667 | { | |
18668 | arg2 = &temp2; | |
18669 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18670 | } | |
18671 | { | |
18672 | arg3 = &temp3; | |
18673 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18674 | } | |
18675 | { | |
18676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18677 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
18678 | wxPyEndAllowThreads(__tstate); | |
18679 | if (PyErr_Occurred()) SWIG_fail; | |
18680 | } | |
18681 | resultobj = SWIG_Py_Void(); | |
18682 | return resultobj; | |
18683 | fail: | |
18684 | return NULL; | |
18685 | } | |
18686 | ||
18687 | ||
18688 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18689 | PyObject *resultobj = 0; | |
18690 | wxDC *arg1 = (wxDC *) 0 ; | |
18691 | int arg2 ; | |
18692 | int arg3 ; | |
18693 | void *argp1 = 0 ; | |
18694 | int res1 = 0 ; | |
18695 | int val2 ; | |
18696 | int ecode2 = 0 ; | |
18697 | int val3 ; | |
18698 | int ecode3 = 0 ; | |
18699 | PyObject * obj0 = 0 ; | |
18700 | PyObject * obj1 = 0 ; | |
18701 | PyObject * obj2 = 0 ; | |
18702 | char * kwnames[] = { | |
18703 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18704 | }; | |
18705 | ||
18706 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18707 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18708 | if (!SWIG_IsOK(res1)) { | |
18709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18710 | } | |
18711 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18712 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18713 | if (!SWIG_IsOK(ecode2)) { | |
18714 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
18715 | } | |
18716 | arg2 = static_cast< int >(val2); | |
18717 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18718 | if (!SWIG_IsOK(ecode3)) { | |
18719 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
18720 | } | |
18721 | arg3 = static_cast< int >(val3); | |
18722 | { | |
18723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18724 | (arg1)->CrossHair(arg2,arg3); | |
18725 | wxPyEndAllowThreads(__tstate); | |
18726 | if (PyErr_Occurred()) SWIG_fail; | |
18727 | } | |
18728 | resultobj = SWIG_Py_Void(); | |
18729 | return resultobj; | |
18730 | fail: | |
18731 | return NULL; | |
18732 | } | |
18733 | ||
18734 | ||
18735 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18736 | PyObject *resultobj = 0; | |
18737 | wxDC *arg1 = (wxDC *) 0 ; | |
18738 | wxPoint *arg2 = 0 ; | |
18739 | void *argp1 = 0 ; | |
18740 | int res1 = 0 ; | |
18741 | wxPoint temp2 ; | |
18742 | PyObject * obj0 = 0 ; | |
18743 | PyObject * obj1 = 0 ; | |
18744 | char * kwnames[] = { | |
18745 | (char *) "self",(char *) "pt", NULL | |
18746 | }; | |
18747 | ||
18748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18750 | if (!SWIG_IsOK(res1)) { | |
18751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18752 | } | |
18753 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18754 | { | |
18755 | arg2 = &temp2; | |
18756 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18757 | } | |
18758 | { | |
18759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18760 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
18761 | wxPyEndAllowThreads(__tstate); | |
18762 | if (PyErr_Occurred()) SWIG_fail; | |
18763 | } | |
18764 | resultobj = SWIG_Py_Void(); | |
18765 | return resultobj; | |
18766 | fail: | |
18767 | return NULL; | |
18768 | } | |
18769 | ||
18770 | ||
18771 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18772 | PyObject *resultobj = 0; | |
18773 | wxDC *arg1 = (wxDC *) 0 ; | |
18774 | int arg2 ; | |
18775 | int arg3 ; | |
18776 | int arg4 ; | |
18777 | int arg5 ; | |
18778 | int arg6 ; | |
18779 | int arg7 ; | |
18780 | void *argp1 = 0 ; | |
18781 | int res1 = 0 ; | |
18782 | int val2 ; | |
18783 | int ecode2 = 0 ; | |
18784 | int val3 ; | |
18785 | int ecode3 = 0 ; | |
18786 | int val4 ; | |
18787 | int ecode4 = 0 ; | |
18788 | int val5 ; | |
18789 | int ecode5 = 0 ; | |
18790 | int val6 ; | |
18791 | int ecode6 = 0 ; | |
18792 | int val7 ; | |
18793 | int ecode7 = 0 ; | |
18794 | PyObject * obj0 = 0 ; | |
18795 | PyObject * obj1 = 0 ; | |
18796 | PyObject * obj2 = 0 ; | |
18797 | PyObject * obj3 = 0 ; | |
18798 | PyObject * obj4 = 0 ; | |
18799 | PyObject * obj5 = 0 ; | |
18800 | PyObject * obj6 = 0 ; | |
18801 | char * kwnames[] = { | |
18802 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
18803 | }; | |
18804 | ||
18805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18807 | if (!SWIG_IsOK(res1)) { | |
18808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18809 | } | |
18810 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18811 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18812 | if (!SWIG_IsOK(ecode2)) { | |
18813 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
18814 | } | |
18815 | arg2 = static_cast< int >(val2); | |
18816 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18817 | if (!SWIG_IsOK(ecode3)) { | |
18818 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
18819 | } | |
18820 | arg3 = static_cast< int >(val3); | |
18821 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18822 | if (!SWIG_IsOK(ecode4)) { | |
18823 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
18824 | } | |
18825 | arg4 = static_cast< int >(val4); | |
18826 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18827 | if (!SWIG_IsOK(ecode5)) { | |
18828 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18829 | } | |
18830 | arg5 = static_cast< int >(val5); | |
18831 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18832 | if (!SWIG_IsOK(ecode6)) { | |
18833 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18834 | } | |
18835 | arg6 = static_cast< int >(val6); | |
18836 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18837 | if (!SWIG_IsOK(ecode7)) { | |
18838 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18839 | } | |
18840 | arg7 = static_cast< int >(val7); | |
18841 | { | |
18842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18843 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18844 | wxPyEndAllowThreads(__tstate); | |
18845 | if (PyErr_Occurred()) SWIG_fail; | |
18846 | } | |
18847 | resultobj = SWIG_Py_Void(); | |
18848 | return resultobj; | |
18849 | fail: | |
18850 | return NULL; | |
18851 | } | |
18852 | ||
18853 | ||
18854 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18855 | PyObject *resultobj = 0; | |
18856 | wxDC *arg1 = (wxDC *) 0 ; | |
18857 | wxPoint *arg2 = 0 ; | |
18858 | wxPoint *arg3 = 0 ; | |
18859 | wxPoint *arg4 = 0 ; | |
18860 | void *argp1 = 0 ; | |
18861 | int res1 = 0 ; | |
18862 | wxPoint temp2 ; | |
18863 | wxPoint temp3 ; | |
18864 | wxPoint temp4 ; | |
18865 | PyObject * obj0 = 0 ; | |
18866 | PyObject * obj1 = 0 ; | |
18867 | PyObject * obj2 = 0 ; | |
18868 | PyObject * obj3 = 0 ; | |
18869 | char * kwnames[] = { | |
18870 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18871 | }; | |
18872 | ||
18873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18875 | if (!SWIG_IsOK(res1)) { | |
18876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18877 | } | |
18878 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18879 | { | |
18880 | arg2 = &temp2; | |
18881 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18882 | } | |
18883 | { | |
18884 | arg3 = &temp3; | |
18885 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18886 | } | |
18887 | { | |
18888 | arg4 = &temp4; | |
18889 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18890 | } | |
18891 | { | |
18892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18893 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18894 | wxPyEndAllowThreads(__tstate); | |
18895 | if (PyErr_Occurred()) SWIG_fail; | |
18896 | } | |
18897 | resultobj = SWIG_Py_Void(); | |
18898 | return resultobj; | |
18899 | fail: | |
18900 | return NULL; | |
18901 | } | |
18902 | ||
18903 | ||
18904 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18905 | PyObject *resultobj = 0; | |
18906 | wxDC *arg1 = (wxDC *) 0 ; | |
18907 | int arg2 ; | |
18908 | int arg3 ; | |
18909 | int arg4 ; | |
18910 | int arg5 ; | |
18911 | void *argp1 = 0 ; | |
18912 | int res1 = 0 ; | |
18913 | int val2 ; | |
18914 | int ecode2 = 0 ; | |
18915 | int val3 ; | |
18916 | int ecode3 = 0 ; | |
18917 | int val4 ; | |
18918 | int ecode4 = 0 ; | |
18919 | int val5 ; | |
18920 | int ecode5 = 0 ; | |
18921 | PyObject * obj0 = 0 ; | |
18922 | PyObject * obj1 = 0 ; | |
18923 | PyObject * obj2 = 0 ; | |
18924 | PyObject * obj3 = 0 ; | |
18925 | PyObject * obj4 = 0 ; | |
18926 | char * kwnames[] = { | |
18927 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18928 | }; | |
18929 | ||
18930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18932 | if (!SWIG_IsOK(res1)) { | |
18933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18934 | } | |
18935 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18936 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18937 | if (!SWIG_IsOK(ecode2)) { | |
18938 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18939 | } | |
18940 | arg2 = static_cast< int >(val2); | |
18941 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18942 | if (!SWIG_IsOK(ecode3)) { | |
18943 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18944 | } | |
18945 | arg3 = static_cast< int >(val3); | |
18946 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18947 | if (!SWIG_IsOK(ecode4)) { | |
18948 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18949 | } | |
18950 | arg4 = static_cast< int >(val4); | |
18951 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18952 | if (!SWIG_IsOK(ecode5)) { | |
18953 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18954 | } | |
18955 | arg5 = static_cast< int >(val5); | |
18956 | { | |
18957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18958 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18959 | wxPyEndAllowThreads(__tstate); | |
18960 | if (PyErr_Occurred()) SWIG_fail; | |
18961 | } | |
18962 | resultobj = SWIG_Py_Void(); | |
18963 | return resultobj; | |
18964 | fail: | |
18965 | return NULL; | |
18966 | } | |
18967 | ||
18968 | ||
18969 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18970 | PyObject *resultobj = 0; | |
18971 | wxDC *arg1 = (wxDC *) 0 ; | |
18972 | wxRect *arg2 = 0 ; | |
18973 | void *argp1 = 0 ; | |
18974 | int res1 = 0 ; | |
18975 | wxRect temp2 ; | |
18976 | PyObject * obj0 = 0 ; | |
18977 | PyObject * obj1 = 0 ; | |
18978 | char * kwnames[] = { | |
18979 | (char *) "self",(char *) "rect", NULL | |
18980 | }; | |
18981 | ||
18982 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18983 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18984 | if (!SWIG_IsOK(res1)) { | |
18985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18986 | } | |
18987 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18988 | { | |
18989 | arg2 = &temp2; | |
18990 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18991 | } | |
18992 | { | |
18993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18994 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18995 | wxPyEndAllowThreads(__tstate); | |
18996 | if (PyErr_Occurred()) SWIG_fail; | |
18997 | } | |
18998 | resultobj = SWIG_Py_Void(); | |
18999 | return resultobj; | |
19000 | fail: | |
19001 | return NULL; | |
19002 | } | |
19003 | ||
19004 | ||
19005 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19006 | PyObject *resultobj = 0; | |
19007 | wxDC *arg1 = (wxDC *) 0 ; | |
19008 | int arg2 ; | |
19009 | int arg3 ; | |
19010 | int arg4 ; | |
19011 | int arg5 ; | |
19012 | double arg6 ; | |
19013 | double arg7 ; | |
19014 | void *argp1 = 0 ; | |
19015 | int res1 = 0 ; | |
19016 | int val2 ; | |
19017 | int ecode2 = 0 ; | |
19018 | int val3 ; | |
19019 | int ecode3 = 0 ; | |
19020 | int val4 ; | |
19021 | int ecode4 = 0 ; | |
19022 | int val5 ; | |
19023 | int ecode5 = 0 ; | |
19024 | double val6 ; | |
19025 | int ecode6 = 0 ; | |
19026 | double val7 ; | |
19027 | int ecode7 = 0 ; | |
19028 | PyObject * obj0 = 0 ; | |
19029 | PyObject * obj1 = 0 ; | |
19030 | PyObject * obj2 = 0 ; | |
19031 | PyObject * obj3 = 0 ; | |
19032 | PyObject * obj4 = 0 ; | |
19033 | PyObject * obj5 = 0 ; | |
19034 | PyObject * obj6 = 0 ; | |
19035 | char * kwnames[] = { | |
19036 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
19037 | }; | |
19038 | ||
19039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
19040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19041 | if (!SWIG_IsOK(res1)) { | |
19042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19043 | } | |
19044 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19045 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19046 | if (!SWIG_IsOK(ecode2)) { | |
19047 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
19048 | } | |
19049 | arg2 = static_cast< int >(val2); | |
19050 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19051 | if (!SWIG_IsOK(ecode3)) { | |
19052 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
19053 | } | |
19054 | arg3 = static_cast< int >(val3); | |
19055 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19056 | if (!SWIG_IsOK(ecode4)) { | |
19057 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
19058 | } | |
19059 | arg4 = static_cast< int >(val4); | |
19060 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19061 | if (!SWIG_IsOK(ecode5)) { | |
19062 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
19063 | } | |
19064 | arg5 = static_cast< int >(val5); | |
19065 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
19066 | if (!SWIG_IsOK(ecode6)) { | |
19067 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
19068 | } | |
19069 | arg6 = static_cast< double >(val6); | |
19070 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
19071 | if (!SWIG_IsOK(ecode7)) { | |
19072 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
19073 | } | |
19074 | arg7 = static_cast< double >(val7); | |
19075 | { | |
19076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19077 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
19078 | wxPyEndAllowThreads(__tstate); | |
19079 | if (PyErr_Occurred()) SWIG_fail; | |
19080 | } | |
19081 | resultobj = SWIG_Py_Void(); | |
19082 | return resultobj; | |
19083 | fail: | |
19084 | return NULL; | |
19085 | } | |
19086 | ||
19087 | ||
19088 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19089 | PyObject *resultobj = 0; | |
19090 | wxDC *arg1 = (wxDC *) 0 ; | |
19091 | wxPoint *arg2 = 0 ; | |
19092 | wxSize *arg3 = 0 ; | |
19093 | double arg4 ; | |
19094 | double arg5 ; | |
19095 | void *argp1 = 0 ; | |
19096 | int res1 = 0 ; | |
19097 | wxPoint temp2 ; | |
19098 | wxSize temp3 ; | |
19099 | double val4 ; | |
19100 | int ecode4 = 0 ; | |
19101 | double val5 ; | |
19102 | int ecode5 = 0 ; | |
19103 | PyObject * obj0 = 0 ; | |
19104 | PyObject * obj1 = 0 ; | |
19105 | PyObject * obj2 = 0 ; | |
19106 | PyObject * obj3 = 0 ; | |
19107 | PyObject * obj4 = 0 ; | |
19108 | char * kwnames[] = { | |
19109 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
19110 | }; | |
19111 | ||
19112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19114 | if (!SWIG_IsOK(res1)) { | |
19115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19116 | } | |
19117 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19118 | { | |
19119 | arg2 = &temp2; | |
19120 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19121 | } | |
19122 | { | |
19123 | arg3 = &temp3; | |
19124 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19125 | } | |
19126 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19127 | if (!SWIG_IsOK(ecode4)) { | |
19128 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
19129 | } | |
19130 | arg4 = static_cast< double >(val4); | |
19131 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19132 | if (!SWIG_IsOK(ecode5)) { | |
19133 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
19134 | } | |
19135 | arg5 = static_cast< double >(val5); | |
19136 | { | |
19137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19138 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
19139 | wxPyEndAllowThreads(__tstate); | |
19140 | if (PyErr_Occurred()) SWIG_fail; | |
19141 | } | |
19142 | resultobj = SWIG_Py_Void(); | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
19149 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19150 | PyObject *resultobj = 0; | |
19151 | wxDC *arg1 = (wxDC *) 0 ; | |
19152 | int arg2 ; | |
19153 | int arg3 ; | |
19154 | void *argp1 = 0 ; | |
19155 | int res1 = 0 ; | |
19156 | int val2 ; | |
19157 | int ecode2 = 0 ; | |
19158 | int val3 ; | |
19159 | int ecode3 = 0 ; | |
19160 | PyObject * obj0 = 0 ; | |
19161 | PyObject * obj1 = 0 ; | |
19162 | PyObject * obj2 = 0 ; | |
19163 | char * kwnames[] = { | |
19164 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19165 | }; | |
19166 | ||
19167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19168 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19169 | if (!SWIG_IsOK(res1)) { | |
19170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19171 | } | |
19172 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19173 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19174 | if (!SWIG_IsOK(ecode2)) { | |
19175 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
19176 | } | |
19177 | arg2 = static_cast< int >(val2); | |
19178 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19179 | if (!SWIG_IsOK(ecode3)) { | |
19180 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
19181 | } | |
19182 | arg3 = static_cast< int >(val3); | |
19183 | { | |
19184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19185 | (arg1)->DrawPoint(arg2,arg3); | |
19186 | wxPyEndAllowThreads(__tstate); | |
19187 | if (PyErr_Occurred()) SWIG_fail; | |
19188 | } | |
19189 | resultobj = SWIG_Py_Void(); | |
19190 | return resultobj; | |
19191 | fail: | |
19192 | return NULL; | |
19193 | } | |
19194 | ||
19195 | ||
19196 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19197 | PyObject *resultobj = 0; | |
19198 | wxDC *arg1 = (wxDC *) 0 ; | |
19199 | wxPoint *arg2 = 0 ; | |
19200 | void *argp1 = 0 ; | |
19201 | int res1 = 0 ; | |
19202 | wxPoint temp2 ; | |
19203 | PyObject * obj0 = 0 ; | |
19204 | PyObject * obj1 = 0 ; | |
19205 | char * kwnames[] = { | |
19206 | (char *) "self",(char *) "pt", NULL | |
19207 | }; | |
19208 | ||
19209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
19210 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19211 | if (!SWIG_IsOK(res1)) { | |
19212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19213 | } | |
19214 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19215 | { | |
19216 | arg2 = &temp2; | |
19217 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19218 | } | |
19219 | { | |
19220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19221 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
19222 | wxPyEndAllowThreads(__tstate); | |
19223 | if (PyErr_Occurred()) SWIG_fail; | |
19224 | } | |
19225 | resultobj = SWIG_Py_Void(); | |
19226 | return resultobj; | |
19227 | fail: | |
19228 | return NULL; | |
19229 | } | |
19230 | ||
19231 | ||
19232 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19233 | PyObject *resultobj = 0; | |
19234 | wxDC *arg1 = (wxDC *) 0 ; | |
19235 | int arg2 ; | |
19236 | int arg3 ; | |
19237 | int arg4 ; | |
19238 | int arg5 ; | |
19239 | void *argp1 = 0 ; | |
19240 | int res1 = 0 ; | |
19241 | int val2 ; | |
19242 | int ecode2 = 0 ; | |
19243 | int val3 ; | |
19244 | int ecode3 = 0 ; | |
19245 | int val4 ; | |
19246 | int ecode4 = 0 ; | |
19247 | int val5 ; | |
19248 | int ecode5 = 0 ; | |
19249 | PyObject * obj0 = 0 ; | |
19250 | PyObject * obj1 = 0 ; | |
19251 | PyObject * obj2 = 0 ; | |
19252 | PyObject * obj3 = 0 ; | |
19253 | PyObject * obj4 = 0 ; | |
19254 | char * kwnames[] = { | |
19255 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19256 | }; | |
19257 | ||
19258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19260 | if (!SWIG_IsOK(res1)) { | |
19261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19262 | } | |
19263 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19264 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19265 | if (!SWIG_IsOK(ecode2)) { | |
19266 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
19267 | } | |
19268 | arg2 = static_cast< int >(val2); | |
19269 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19270 | if (!SWIG_IsOK(ecode3)) { | |
19271 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
19272 | } | |
19273 | arg3 = static_cast< int >(val3); | |
19274 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19275 | if (!SWIG_IsOK(ecode4)) { | |
19276 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
19277 | } | |
19278 | arg4 = static_cast< int >(val4); | |
19279 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19280 | if (!SWIG_IsOK(ecode5)) { | |
19281 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
19282 | } | |
19283 | arg5 = static_cast< int >(val5); | |
19284 | { | |
19285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19286 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
19287 | wxPyEndAllowThreads(__tstate); | |
19288 | if (PyErr_Occurred()) SWIG_fail; | |
19289 | } | |
19290 | resultobj = SWIG_Py_Void(); | |
19291 | return resultobj; | |
19292 | fail: | |
19293 | return NULL; | |
19294 | } | |
19295 | ||
19296 | ||
19297 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19298 | PyObject *resultobj = 0; | |
19299 | wxDC *arg1 = (wxDC *) 0 ; | |
19300 | wxRect *arg2 = 0 ; | |
19301 | void *argp1 = 0 ; | |
19302 | int res1 = 0 ; | |
19303 | wxRect temp2 ; | |
19304 | PyObject * obj0 = 0 ; | |
19305 | PyObject * obj1 = 0 ; | |
19306 | char * kwnames[] = { | |
19307 | (char *) "self",(char *) "rect", NULL | |
19308 | }; | |
19309 | ||
19310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19312 | if (!SWIG_IsOK(res1)) { | |
19313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19314 | } | |
19315 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19316 | { | |
19317 | arg2 = &temp2; | |
19318 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19319 | } | |
19320 | { | |
19321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19322 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
19323 | wxPyEndAllowThreads(__tstate); | |
19324 | if (PyErr_Occurred()) SWIG_fail; | |
19325 | } | |
19326 | resultobj = SWIG_Py_Void(); | |
19327 | return resultobj; | |
19328 | fail: | |
19329 | return NULL; | |
19330 | } | |
19331 | ||
19332 | ||
19333 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19334 | PyObject *resultobj = 0; | |
19335 | wxDC *arg1 = (wxDC *) 0 ; | |
19336 | wxPoint *arg2 = 0 ; | |
19337 | wxSize *arg3 = 0 ; | |
19338 | void *argp1 = 0 ; | |
19339 | int res1 = 0 ; | |
19340 | wxPoint temp2 ; | |
19341 | wxSize temp3 ; | |
19342 | PyObject * obj0 = 0 ; | |
19343 | PyObject * obj1 = 0 ; | |
19344 | PyObject * obj2 = 0 ; | |
19345 | char * kwnames[] = { | |
19346 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19347 | }; | |
19348 | ||
19349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19351 | if (!SWIG_IsOK(res1)) { | |
19352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19353 | } | |
19354 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19355 | { | |
19356 | arg2 = &temp2; | |
19357 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19358 | } | |
19359 | { | |
19360 | arg3 = &temp3; | |
19361 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19362 | } | |
19363 | { | |
19364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19365 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19366 | wxPyEndAllowThreads(__tstate); | |
19367 | if (PyErr_Occurred()) SWIG_fail; | |
19368 | } | |
19369 | resultobj = SWIG_Py_Void(); | |
19370 | return resultobj; | |
19371 | fail: | |
19372 | return NULL; | |
19373 | } | |
19374 | ||
19375 | ||
19376 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19377 | PyObject *resultobj = 0; | |
19378 | wxDC *arg1 = (wxDC *) 0 ; | |
19379 | int arg2 ; | |
19380 | int arg3 ; | |
19381 | int arg4 ; | |
19382 | int arg5 ; | |
19383 | double arg6 ; | |
19384 | void *argp1 = 0 ; | |
19385 | int res1 = 0 ; | |
19386 | int val2 ; | |
19387 | int ecode2 = 0 ; | |
19388 | int val3 ; | |
19389 | int ecode3 = 0 ; | |
19390 | int val4 ; | |
19391 | int ecode4 = 0 ; | |
19392 | int val5 ; | |
19393 | int ecode5 = 0 ; | |
19394 | double val6 ; | |
19395 | int ecode6 = 0 ; | |
19396 | PyObject * obj0 = 0 ; | |
19397 | PyObject * obj1 = 0 ; | |
19398 | PyObject * obj2 = 0 ; | |
19399 | PyObject * obj3 = 0 ; | |
19400 | PyObject * obj4 = 0 ; | |
19401 | PyObject * obj5 = 0 ; | |
19402 | char * kwnames[] = { | |
19403 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
19404 | }; | |
19405 | ||
19406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
19407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19408 | if (!SWIG_IsOK(res1)) { | |
19409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19410 | } | |
19411 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19412 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19413 | if (!SWIG_IsOK(ecode2)) { | |
19414 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
19415 | } | |
19416 | arg2 = static_cast< int >(val2); | |
19417 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19418 | if (!SWIG_IsOK(ecode3)) { | |
19419 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
19420 | } | |
19421 | arg3 = static_cast< int >(val3); | |
19422 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19423 | if (!SWIG_IsOK(ecode4)) { | |
19424 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
19425 | } | |
19426 | arg4 = static_cast< int >(val4); | |
19427 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19428 | if (!SWIG_IsOK(ecode5)) { | |
19429 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
19430 | } | |
19431 | arg5 = static_cast< int >(val5); | |
19432 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
19433 | if (!SWIG_IsOK(ecode6)) { | |
19434 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
19435 | } | |
19436 | arg6 = static_cast< double >(val6); | |
19437 | { | |
19438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19439 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
19440 | wxPyEndAllowThreads(__tstate); | |
19441 | if (PyErr_Occurred()) SWIG_fail; | |
19442 | } | |
19443 | resultobj = SWIG_Py_Void(); | |
19444 | return resultobj; | |
19445 | fail: | |
19446 | return NULL; | |
19447 | } | |
19448 | ||
19449 | ||
19450 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19451 | PyObject *resultobj = 0; | |
19452 | wxDC *arg1 = (wxDC *) 0 ; | |
19453 | wxRect *arg2 = 0 ; | |
19454 | double arg3 ; | |
19455 | void *argp1 = 0 ; | |
19456 | int res1 = 0 ; | |
19457 | wxRect temp2 ; | |
19458 | double val3 ; | |
19459 | int ecode3 = 0 ; | |
19460 | PyObject * obj0 = 0 ; | |
19461 | PyObject * obj1 = 0 ; | |
19462 | PyObject * obj2 = 0 ; | |
19463 | char * kwnames[] = { | |
19464 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
19465 | }; | |
19466 | ||
19467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19469 | if (!SWIG_IsOK(res1)) { | |
19470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19471 | } | |
19472 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19473 | { | |
19474 | arg2 = &temp2; | |
19475 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19476 | } | |
19477 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19478 | if (!SWIG_IsOK(ecode3)) { | |
19479 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
19480 | } | |
19481 | arg3 = static_cast< double >(val3); | |
19482 | { | |
19483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19484 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
19485 | wxPyEndAllowThreads(__tstate); | |
19486 | if (PyErr_Occurred()) SWIG_fail; | |
19487 | } | |
19488 | resultobj = SWIG_Py_Void(); | |
19489 | return resultobj; | |
19490 | fail: | |
19491 | return NULL; | |
19492 | } | |
19493 | ||
19494 | ||
19495 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19496 | PyObject *resultobj = 0; | |
19497 | wxDC *arg1 = (wxDC *) 0 ; | |
19498 | wxPoint *arg2 = 0 ; | |
19499 | wxSize *arg3 = 0 ; | |
19500 | double arg4 ; | |
19501 | void *argp1 = 0 ; | |
19502 | int res1 = 0 ; | |
19503 | wxPoint temp2 ; | |
19504 | wxSize temp3 ; | |
19505 | double val4 ; | |
19506 | int ecode4 = 0 ; | |
19507 | PyObject * obj0 = 0 ; | |
19508 | PyObject * obj1 = 0 ; | |
19509 | PyObject * obj2 = 0 ; | |
19510 | PyObject * obj3 = 0 ; | |
19511 | char * kwnames[] = { | |
19512 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
19513 | }; | |
19514 | ||
19515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19516 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19517 | if (!SWIG_IsOK(res1)) { | |
19518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19519 | } | |
19520 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19521 | { | |
19522 | arg2 = &temp2; | |
19523 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19524 | } | |
19525 | { | |
19526 | arg3 = &temp3; | |
19527 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19528 | } | |
19529 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19530 | if (!SWIG_IsOK(ecode4)) { | |
19531 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
19532 | } | |
19533 | arg4 = static_cast< double >(val4); | |
19534 | { | |
19535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19536 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
19537 | wxPyEndAllowThreads(__tstate); | |
19538 | if (PyErr_Occurred()) SWIG_fail; | |
19539 | } | |
19540 | resultobj = SWIG_Py_Void(); | |
19541 | return resultobj; | |
19542 | fail: | |
19543 | return NULL; | |
19544 | } | |
19545 | ||
19546 | ||
19547 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19548 | PyObject *resultobj = 0; | |
19549 | wxDC *arg1 = (wxDC *) 0 ; | |
19550 | int arg2 ; | |
19551 | int arg3 ; | |
19552 | int arg4 ; | |
19553 | void *argp1 = 0 ; | |
19554 | int res1 = 0 ; | |
19555 | int val2 ; | |
19556 | int ecode2 = 0 ; | |
19557 | int val3 ; | |
19558 | int ecode3 = 0 ; | |
19559 | int val4 ; | |
19560 | int ecode4 = 0 ; | |
19561 | PyObject * obj0 = 0 ; | |
19562 | PyObject * obj1 = 0 ; | |
19563 | PyObject * obj2 = 0 ; | |
19564 | PyObject * obj3 = 0 ; | |
19565 | char * kwnames[] = { | |
19566 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
19567 | }; | |
19568 | ||
19569 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19570 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19571 | if (!SWIG_IsOK(res1)) { | |
19572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19573 | } | |
19574 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19575 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19576 | if (!SWIG_IsOK(ecode2)) { | |
19577 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
19578 | } | |
19579 | arg2 = static_cast< int >(val2); | |
19580 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19581 | if (!SWIG_IsOK(ecode3)) { | |
19582 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
19583 | } | |
19584 | arg3 = static_cast< int >(val3); | |
19585 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19586 | if (!SWIG_IsOK(ecode4)) { | |
19587 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
19588 | } | |
19589 | arg4 = static_cast< int >(val4); | |
19590 | { | |
19591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19592 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
19593 | wxPyEndAllowThreads(__tstate); | |
19594 | if (PyErr_Occurred()) SWIG_fail; | |
19595 | } | |
19596 | resultobj = SWIG_Py_Void(); | |
19597 | return resultobj; | |
19598 | fail: | |
19599 | return NULL; | |
19600 | } | |
19601 | ||
19602 | ||
19603 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19604 | PyObject *resultobj = 0; | |
19605 | wxDC *arg1 = (wxDC *) 0 ; | |
19606 | wxPoint *arg2 = 0 ; | |
19607 | int arg3 ; | |
19608 | void *argp1 = 0 ; | |
19609 | int res1 = 0 ; | |
19610 | wxPoint temp2 ; | |
19611 | int val3 ; | |
19612 | int ecode3 = 0 ; | |
19613 | PyObject * obj0 = 0 ; | |
19614 | PyObject * obj1 = 0 ; | |
19615 | PyObject * obj2 = 0 ; | |
19616 | char * kwnames[] = { | |
19617 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
19618 | }; | |
19619 | ||
19620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19622 | if (!SWIG_IsOK(res1)) { | |
19623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19624 | } | |
19625 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19626 | { | |
19627 | arg2 = &temp2; | |
19628 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19629 | } | |
19630 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19631 | if (!SWIG_IsOK(ecode3)) { | |
19632 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
19633 | } | |
19634 | arg3 = static_cast< int >(val3); | |
19635 | { | |
19636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19637 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
19638 | wxPyEndAllowThreads(__tstate); | |
19639 | if (PyErr_Occurred()) SWIG_fail; | |
19640 | } | |
19641 | resultobj = SWIG_Py_Void(); | |
19642 | return resultobj; | |
19643 | fail: | |
19644 | return NULL; | |
19645 | } | |
19646 | ||
19647 | ||
19648 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19649 | PyObject *resultobj = 0; | |
19650 | wxDC *arg1 = (wxDC *) 0 ; | |
19651 | int arg2 ; | |
19652 | int arg3 ; | |
19653 | int arg4 ; | |
19654 | int arg5 ; | |
19655 | void *argp1 = 0 ; | |
19656 | int res1 = 0 ; | |
19657 | int val2 ; | |
19658 | int ecode2 = 0 ; | |
19659 | int val3 ; | |
19660 | int ecode3 = 0 ; | |
19661 | int val4 ; | |
19662 | int ecode4 = 0 ; | |
19663 | int val5 ; | |
19664 | int ecode5 = 0 ; | |
19665 | PyObject * obj0 = 0 ; | |
19666 | PyObject * obj1 = 0 ; | |
19667 | PyObject * obj2 = 0 ; | |
19668 | PyObject * obj3 = 0 ; | |
19669 | PyObject * obj4 = 0 ; | |
19670 | char * kwnames[] = { | |
19671 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19672 | }; | |
19673 | ||
19674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19676 | if (!SWIG_IsOK(res1)) { | |
19677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19678 | } | |
19679 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19680 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19681 | if (!SWIG_IsOK(ecode2)) { | |
19682 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
19683 | } | |
19684 | arg2 = static_cast< int >(val2); | |
19685 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19686 | if (!SWIG_IsOK(ecode3)) { | |
19687 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
19688 | } | |
19689 | arg3 = static_cast< int >(val3); | |
19690 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19691 | if (!SWIG_IsOK(ecode4)) { | |
19692 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
19693 | } | |
19694 | arg4 = static_cast< int >(val4); | |
19695 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19696 | if (!SWIG_IsOK(ecode5)) { | |
19697 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
19698 | } | |
19699 | arg5 = static_cast< int >(val5); | |
19700 | { | |
19701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19702 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
19703 | wxPyEndAllowThreads(__tstate); | |
19704 | if (PyErr_Occurred()) SWIG_fail; | |
19705 | } | |
19706 | resultobj = SWIG_Py_Void(); | |
19707 | return resultobj; | |
19708 | fail: | |
19709 | return NULL; | |
19710 | } | |
19711 | ||
19712 | ||
19713 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19714 | PyObject *resultobj = 0; | |
19715 | wxDC *arg1 = (wxDC *) 0 ; | |
19716 | wxRect *arg2 = 0 ; | |
19717 | void *argp1 = 0 ; | |
19718 | int res1 = 0 ; | |
19719 | wxRect temp2 ; | |
19720 | PyObject * obj0 = 0 ; | |
19721 | PyObject * obj1 = 0 ; | |
19722 | char * kwnames[] = { | |
19723 | (char *) "self",(char *) "rect", NULL | |
19724 | }; | |
19725 | ||
19726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19728 | if (!SWIG_IsOK(res1)) { | |
19729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19730 | } | |
19731 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19732 | { | |
19733 | arg2 = &temp2; | |
19734 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19735 | } | |
19736 | { | |
19737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19738 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
19739 | wxPyEndAllowThreads(__tstate); | |
19740 | if (PyErr_Occurred()) SWIG_fail; | |
19741 | } | |
19742 | resultobj = SWIG_Py_Void(); | |
19743 | return resultobj; | |
19744 | fail: | |
19745 | return NULL; | |
19746 | } | |
19747 | ||
19748 | ||
19749 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19750 | PyObject *resultobj = 0; | |
19751 | wxDC *arg1 = (wxDC *) 0 ; | |
19752 | wxPoint *arg2 = 0 ; | |
19753 | wxSize *arg3 = 0 ; | |
19754 | void *argp1 = 0 ; | |
19755 | int res1 = 0 ; | |
19756 | wxPoint temp2 ; | |
19757 | wxSize temp3 ; | |
19758 | PyObject * obj0 = 0 ; | |
19759 | PyObject * obj1 = 0 ; | |
19760 | PyObject * obj2 = 0 ; | |
19761 | char * kwnames[] = { | |
19762 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19763 | }; | |
19764 | ||
19765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19767 | if (!SWIG_IsOK(res1)) { | |
19768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19769 | } | |
19770 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19771 | { | |
19772 | arg2 = &temp2; | |
19773 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19774 | } | |
19775 | { | |
19776 | arg3 = &temp3; | |
19777 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19778 | } | |
19779 | { | |
19780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19781 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19782 | wxPyEndAllowThreads(__tstate); | |
19783 | if (PyErr_Occurred()) SWIG_fail; | |
19784 | } | |
19785 | resultobj = SWIG_Py_Void(); | |
19786 | return resultobj; | |
19787 | fail: | |
19788 | return NULL; | |
19789 | } | |
19790 | ||
19791 | ||
19792 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19793 | PyObject *resultobj = 0; | |
19794 | wxDC *arg1 = (wxDC *) 0 ; | |
19795 | wxIcon *arg2 = 0 ; | |
19796 | int arg3 ; | |
19797 | int arg4 ; | |
19798 | void *argp1 = 0 ; | |
19799 | int res1 = 0 ; | |
19800 | void *argp2 = 0 ; | |
19801 | int res2 = 0 ; | |
19802 | int val3 ; | |
19803 | int ecode3 = 0 ; | |
19804 | int val4 ; | |
19805 | int ecode4 = 0 ; | |
19806 | PyObject * obj0 = 0 ; | |
19807 | PyObject * obj1 = 0 ; | |
19808 | PyObject * obj2 = 0 ; | |
19809 | PyObject * obj3 = 0 ; | |
19810 | char * kwnames[] = { | |
19811 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
19812 | }; | |
19813 | ||
19814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19816 | if (!SWIG_IsOK(res1)) { | |
19817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19818 | } | |
19819 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19820 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19821 | if (!SWIG_IsOK(res2)) { | |
19822 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19823 | } | |
19824 | if (!argp2) { | |
19825 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19826 | } | |
19827 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19828 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19829 | if (!SWIG_IsOK(ecode3)) { | |
19830 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19831 | } | |
19832 | arg3 = static_cast< int >(val3); | |
19833 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19834 | if (!SWIG_IsOK(ecode4)) { | |
19835 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19836 | } | |
19837 | arg4 = static_cast< int >(val4); | |
19838 | { | |
19839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19840 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19841 | wxPyEndAllowThreads(__tstate); | |
19842 | if (PyErr_Occurred()) SWIG_fail; | |
19843 | } | |
19844 | resultobj = SWIG_Py_Void(); | |
19845 | return resultobj; | |
19846 | fail: | |
19847 | return NULL; | |
19848 | } | |
19849 | ||
19850 | ||
19851 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19852 | PyObject *resultobj = 0; | |
19853 | wxDC *arg1 = (wxDC *) 0 ; | |
19854 | wxIcon *arg2 = 0 ; | |
19855 | wxPoint *arg3 = 0 ; | |
19856 | void *argp1 = 0 ; | |
19857 | int res1 = 0 ; | |
19858 | void *argp2 = 0 ; | |
19859 | int res2 = 0 ; | |
19860 | wxPoint temp3 ; | |
19861 | PyObject * obj0 = 0 ; | |
19862 | PyObject * obj1 = 0 ; | |
19863 | PyObject * obj2 = 0 ; | |
19864 | char * kwnames[] = { | |
19865 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19866 | }; | |
19867 | ||
19868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19870 | if (!SWIG_IsOK(res1)) { | |
19871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19872 | } | |
19873 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19874 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19875 | if (!SWIG_IsOK(res2)) { | |
19876 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19877 | } | |
19878 | if (!argp2) { | |
19879 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19880 | } | |
19881 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19882 | { | |
19883 | arg3 = &temp3; | |
19884 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19885 | } | |
19886 | { | |
19887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19888 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
19889 | wxPyEndAllowThreads(__tstate); | |
19890 | if (PyErr_Occurred()) SWIG_fail; | |
19891 | } | |
19892 | resultobj = SWIG_Py_Void(); | |
19893 | return resultobj; | |
19894 | fail: | |
19895 | return NULL; | |
19896 | } | |
19897 | ||
19898 | ||
19899 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19900 | PyObject *resultobj = 0; | |
19901 | wxDC *arg1 = (wxDC *) 0 ; | |
19902 | wxBitmap *arg2 = 0 ; | |
19903 | int arg3 ; | |
19904 | int arg4 ; | |
19905 | bool arg5 = (bool) false ; | |
19906 | void *argp1 = 0 ; | |
19907 | int res1 = 0 ; | |
19908 | void *argp2 = 0 ; | |
19909 | int res2 = 0 ; | |
19910 | int val3 ; | |
19911 | int ecode3 = 0 ; | |
19912 | int val4 ; | |
19913 | int ecode4 = 0 ; | |
19914 | bool val5 ; | |
19915 | int ecode5 = 0 ; | |
19916 | PyObject * obj0 = 0 ; | |
19917 | PyObject * obj1 = 0 ; | |
19918 | PyObject * obj2 = 0 ; | |
19919 | PyObject * obj3 = 0 ; | |
19920 | PyObject * obj4 = 0 ; | |
19921 | char * kwnames[] = { | |
19922 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19923 | }; | |
19924 | ||
19925 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19926 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19927 | if (!SWIG_IsOK(res1)) { | |
19928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19929 | } | |
19930 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19931 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19932 | if (!SWIG_IsOK(res2)) { | |
19933 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19934 | } | |
19935 | if (!argp2) { | |
19936 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19937 | } | |
19938 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19939 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19940 | if (!SWIG_IsOK(ecode3)) { | |
19941 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19942 | } | |
19943 | arg3 = static_cast< int >(val3); | |
19944 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19945 | if (!SWIG_IsOK(ecode4)) { | |
19946 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19947 | } | |
19948 | arg4 = static_cast< int >(val4); | |
19949 | if (obj4) { | |
19950 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19951 | if (!SWIG_IsOK(ecode5)) { | |
19952 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19953 | } | |
19954 | arg5 = static_cast< bool >(val5); | |
19955 | } | |
19956 | { | |
19957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19958 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19959 | wxPyEndAllowThreads(__tstate); | |
19960 | if (PyErr_Occurred()) SWIG_fail; | |
19961 | } | |
19962 | resultobj = SWIG_Py_Void(); | |
19963 | return resultobj; | |
19964 | fail: | |
19965 | return NULL; | |
19966 | } | |
19967 | ||
19968 | ||
19969 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19970 | PyObject *resultobj = 0; | |
19971 | wxDC *arg1 = (wxDC *) 0 ; | |
19972 | wxBitmap *arg2 = 0 ; | |
19973 | wxPoint *arg3 = 0 ; | |
19974 | bool arg4 = (bool) false ; | |
19975 | void *argp1 = 0 ; | |
19976 | int res1 = 0 ; | |
19977 | void *argp2 = 0 ; | |
19978 | int res2 = 0 ; | |
19979 | wxPoint temp3 ; | |
19980 | bool val4 ; | |
19981 | int ecode4 = 0 ; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | PyObject * obj1 = 0 ; | |
19984 | PyObject * obj2 = 0 ; | |
19985 | PyObject * obj3 = 0 ; | |
19986 | char * kwnames[] = { | |
19987 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19988 | }; | |
19989 | ||
19990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19992 | if (!SWIG_IsOK(res1)) { | |
19993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19994 | } | |
19995 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19996 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19997 | if (!SWIG_IsOK(res2)) { | |
19998 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19999 | } | |
20000 | if (!argp2) { | |
20001 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
20002 | } | |
20003 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
20004 | { | |
20005 | arg3 = &temp3; | |
20006 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20007 | } | |
20008 | if (obj3) { | |
20009 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
20010 | if (!SWIG_IsOK(ecode4)) { | |
20011 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
20012 | } | |
20013 | arg4 = static_cast< bool >(val4); | |
20014 | } | |
20015 | { | |
20016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20017 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
20018 | wxPyEndAllowThreads(__tstate); | |
20019 | if (PyErr_Occurred()) SWIG_fail; | |
20020 | } | |
20021 | resultobj = SWIG_Py_Void(); | |
20022 | return resultobj; | |
20023 | fail: | |
20024 | return NULL; | |
20025 | } | |
20026 | ||
20027 | ||
20028 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20029 | PyObject *resultobj = 0; | |
20030 | wxDC *arg1 = (wxDC *) 0 ; | |
20031 | wxString *arg2 = 0 ; | |
20032 | int arg3 ; | |
20033 | int arg4 ; | |
20034 | void *argp1 = 0 ; | |
20035 | int res1 = 0 ; | |
20036 | bool temp2 = false ; | |
20037 | int val3 ; | |
20038 | int ecode3 = 0 ; | |
20039 | int val4 ; | |
20040 | int ecode4 = 0 ; | |
20041 | PyObject * obj0 = 0 ; | |
20042 | PyObject * obj1 = 0 ; | |
20043 | PyObject * obj2 = 0 ; | |
20044 | PyObject * obj3 = 0 ; | |
20045 | char * kwnames[] = { | |
20046 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
20047 | }; | |
20048 | ||
20049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20051 | if (!SWIG_IsOK(res1)) { | |
20052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20053 | } | |
20054 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20055 | { | |
20056 | arg2 = wxString_in_helper(obj1); | |
20057 | if (arg2 == NULL) SWIG_fail; | |
20058 | temp2 = true; | |
20059 | } | |
20060 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20061 | if (!SWIG_IsOK(ecode3)) { | |
20062 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
20063 | } | |
20064 | arg3 = static_cast< int >(val3); | |
20065 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20066 | if (!SWIG_IsOK(ecode4)) { | |
20067 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
20068 | } | |
20069 | arg4 = static_cast< int >(val4); | |
20070 | { | |
20071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20072 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
20073 | wxPyEndAllowThreads(__tstate); | |
20074 | if (PyErr_Occurred()) SWIG_fail; | |
20075 | } | |
20076 | resultobj = SWIG_Py_Void(); | |
20077 | { | |
20078 | if (temp2) | |
20079 | delete arg2; | |
20080 | } | |
20081 | return resultobj; | |
20082 | fail: | |
20083 | { | |
20084 | if (temp2) | |
20085 | delete arg2; | |
20086 | } | |
20087 | return NULL; | |
20088 | } | |
20089 | ||
20090 | ||
20091 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20092 | PyObject *resultobj = 0; | |
20093 | wxDC *arg1 = (wxDC *) 0 ; | |
20094 | wxString *arg2 = 0 ; | |
20095 | wxPoint *arg3 = 0 ; | |
20096 | void *argp1 = 0 ; | |
20097 | int res1 = 0 ; | |
20098 | bool temp2 = false ; | |
20099 | wxPoint temp3 ; | |
20100 | PyObject * obj0 = 0 ; | |
20101 | PyObject * obj1 = 0 ; | |
20102 | PyObject * obj2 = 0 ; | |
20103 | char * kwnames[] = { | |
20104 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
20105 | }; | |
20106 | ||
20107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20109 | if (!SWIG_IsOK(res1)) { | |
20110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20111 | } | |
20112 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20113 | { | |
20114 | arg2 = wxString_in_helper(obj1); | |
20115 | if (arg2 == NULL) SWIG_fail; | |
20116 | temp2 = true; | |
20117 | } | |
20118 | { | |
20119 | arg3 = &temp3; | |
20120 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20121 | } | |
20122 | { | |
20123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20124 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
20125 | wxPyEndAllowThreads(__tstate); | |
20126 | if (PyErr_Occurred()) SWIG_fail; | |
20127 | } | |
20128 | resultobj = SWIG_Py_Void(); | |
20129 | { | |
20130 | if (temp2) | |
20131 | delete arg2; | |
20132 | } | |
20133 | return resultobj; | |
20134 | fail: | |
20135 | { | |
20136 | if (temp2) | |
20137 | delete arg2; | |
20138 | } | |
20139 | return NULL; | |
20140 | } | |
20141 | ||
20142 | ||
20143 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20144 | PyObject *resultobj = 0; | |
20145 | wxDC *arg1 = (wxDC *) 0 ; | |
20146 | wxString *arg2 = 0 ; | |
20147 | int arg3 ; | |
20148 | int arg4 ; | |
20149 | double arg5 ; | |
20150 | void *argp1 = 0 ; | |
20151 | int res1 = 0 ; | |
20152 | bool temp2 = false ; | |
20153 | int val3 ; | |
20154 | int ecode3 = 0 ; | |
20155 | int val4 ; | |
20156 | int ecode4 = 0 ; | |
20157 | double val5 ; | |
20158 | int ecode5 = 0 ; | |
20159 | PyObject * obj0 = 0 ; | |
20160 | PyObject * obj1 = 0 ; | |
20161 | PyObject * obj2 = 0 ; | |
20162 | PyObject * obj3 = 0 ; | |
20163 | PyObject * obj4 = 0 ; | |
20164 | char * kwnames[] = { | |
20165 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
20166 | }; | |
20167 | ||
20168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20170 | if (!SWIG_IsOK(res1)) { | |
20171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20172 | } | |
20173 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20174 | { | |
20175 | arg2 = wxString_in_helper(obj1); | |
20176 | if (arg2 == NULL) SWIG_fail; | |
20177 | temp2 = true; | |
20178 | } | |
20179 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20180 | if (!SWIG_IsOK(ecode3)) { | |
20181 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
20182 | } | |
20183 | arg3 = static_cast< int >(val3); | |
20184 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20185 | if (!SWIG_IsOK(ecode4)) { | |
20186 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
20187 | } | |
20188 | arg4 = static_cast< int >(val4); | |
20189 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
20190 | if (!SWIG_IsOK(ecode5)) { | |
20191 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
20192 | } | |
20193 | arg5 = static_cast< double >(val5); | |
20194 | { | |
20195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20196 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
20197 | wxPyEndAllowThreads(__tstate); | |
20198 | if (PyErr_Occurred()) SWIG_fail; | |
20199 | } | |
20200 | resultobj = SWIG_Py_Void(); | |
20201 | { | |
20202 | if (temp2) | |
20203 | delete arg2; | |
20204 | } | |
20205 | return resultobj; | |
20206 | fail: | |
20207 | { | |
20208 | if (temp2) | |
20209 | delete arg2; | |
20210 | } | |
20211 | return NULL; | |
20212 | } | |
20213 | ||
20214 | ||
20215 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20216 | PyObject *resultobj = 0; | |
20217 | wxDC *arg1 = (wxDC *) 0 ; | |
20218 | wxString *arg2 = 0 ; | |
20219 | wxPoint *arg3 = 0 ; | |
20220 | double arg4 ; | |
20221 | void *argp1 = 0 ; | |
20222 | int res1 = 0 ; | |
20223 | bool temp2 = false ; | |
20224 | wxPoint temp3 ; | |
20225 | double val4 ; | |
20226 | int ecode4 = 0 ; | |
20227 | PyObject * obj0 = 0 ; | |
20228 | PyObject * obj1 = 0 ; | |
20229 | PyObject * obj2 = 0 ; | |
20230 | PyObject * obj3 = 0 ; | |
20231 | char * kwnames[] = { | |
20232 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
20233 | }; | |
20234 | ||
20235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20237 | if (!SWIG_IsOK(res1)) { | |
20238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20239 | } | |
20240 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20241 | { | |
20242 | arg2 = wxString_in_helper(obj1); | |
20243 | if (arg2 == NULL) SWIG_fail; | |
20244 | temp2 = true; | |
20245 | } | |
20246 | { | |
20247 | arg3 = &temp3; | |
20248 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20249 | } | |
20250 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
20251 | if (!SWIG_IsOK(ecode4)) { | |
20252 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
20253 | } | |
20254 | arg4 = static_cast< double >(val4); | |
20255 | { | |
20256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20257 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
20258 | wxPyEndAllowThreads(__tstate); | |
20259 | if (PyErr_Occurred()) SWIG_fail; | |
20260 | } | |
20261 | resultobj = SWIG_Py_Void(); | |
20262 | { | |
20263 | if (temp2) | |
20264 | delete arg2; | |
20265 | } | |
20266 | return resultobj; | |
20267 | fail: | |
20268 | { | |
20269 | if (temp2) | |
20270 | delete arg2; | |
20271 | } | |
20272 | return NULL; | |
20273 | } | |
20274 | ||
20275 | ||
20276 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20277 | PyObject *resultobj = 0; | |
20278 | wxDC *arg1 = (wxDC *) 0 ; | |
20279 | int arg2 ; | |
20280 | int arg3 ; | |
20281 | int arg4 ; | |
20282 | int arg5 ; | |
20283 | wxDC *arg6 = (wxDC *) 0 ; | |
20284 | int arg7 ; | |
20285 | int arg8 ; | |
20286 | int arg9 = (int) wxCOPY ; | |
20287 | bool arg10 = (bool) false ; | |
20288 | int arg11 = (int) -1 ; | |
20289 | int arg12 = (int) -1 ; | |
20290 | bool result; | |
20291 | void *argp1 = 0 ; | |
20292 | int res1 = 0 ; | |
20293 | int val2 ; | |
20294 | int ecode2 = 0 ; | |
20295 | int val3 ; | |
20296 | int ecode3 = 0 ; | |
20297 | int val4 ; | |
20298 | int ecode4 = 0 ; | |
20299 | int val5 ; | |
20300 | int ecode5 = 0 ; | |
20301 | void *argp6 = 0 ; | |
20302 | int res6 = 0 ; | |
20303 | int val7 ; | |
20304 | int ecode7 = 0 ; | |
20305 | int val8 ; | |
20306 | int ecode8 = 0 ; | |
20307 | int val9 ; | |
20308 | int ecode9 = 0 ; | |
20309 | bool val10 ; | |
20310 | int ecode10 = 0 ; | |
20311 | int val11 ; | |
20312 | int ecode11 = 0 ; | |
20313 | int val12 ; | |
20314 | int ecode12 = 0 ; | |
20315 | PyObject * obj0 = 0 ; | |
20316 | PyObject * obj1 = 0 ; | |
20317 | PyObject * obj2 = 0 ; | |
20318 | PyObject * obj3 = 0 ; | |
20319 | PyObject * obj4 = 0 ; | |
20320 | PyObject * obj5 = 0 ; | |
20321 | PyObject * obj6 = 0 ; | |
20322 | PyObject * obj7 = 0 ; | |
20323 | PyObject * obj8 = 0 ; | |
20324 | PyObject * obj9 = 0 ; | |
20325 | PyObject * obj10 = 0 ; | |
20326 | PyObject * obj11 = 0 ; | |
20327 | char * kwnames[] = { | |
20328 | (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 | |
20329 | }; | |
20330 | ||
20331 | 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; | |
20332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20333 | if (!SWIG_IsOK(res1)) { | |
20334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20335 | } | |
20336 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20337 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20338 | if (!SWIG_IsOK(ecode2)) { | |
20339 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
20340 | } | |
20341 | arg2 = static_cast< int >(val2); | |
20342 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20343 | if (!SWIG_IsOK(ecode3)) { | |
20344 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
20345 | } | |
20346 | arg3 = static_cast< int >(val3); | |
20347 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20348 | if (!SWIG_IsOK(ecode4)) { | |
20349 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
20350 | } | |
20351 | arg4 = static_cast< int >(val4); | |
20352 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20353 | if (!SWIG_IsOK(ecode5)) { | |
20354 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
20355 | } | |
20356 | arg5 = static_cast< int >(val5); | |
20357 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20358 | if (!SWIG_IsOK(res6)) { | |
20359 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
20360 | } | |
20361 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
20362 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
20363 | if (!SWIG_IsOK(ecode7)) { | |
20364 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
20365 | } | |
20366 | arg7 = static_cast< int >(val7); | |
20367 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
20368 | if (!SWIG_IsOK(ecode8)) { | |
20369 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
20370 | } | |
20371 | arg8 = static_cast< int >(val8); | |
20372 | if (obj8) { | |
20373 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
20374 | if (!SWIG_IsOK(ecode9)) { | |
20375 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
20376 | } | |
20377 | arg9 = static_cast< int >(val9); | |
20378 | } | |
20379 | if (obj9) { | |
20380 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
20381 | if (!SWIG_IsOK(ecode10)) { | |
20382 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
20383 | } | |
20384 | arg10 = static_cast< bool >(val10); | |
20385 | } | |
20386 | if (obj10) { | |
20387 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
20388 | if (!SWIG_IsOK(ecode11)) { | |
20389 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
20390 | } | |
20391 | arg11 = static_cast< int >(val11); | |
20392 | } | |
20393 | if (obj11) { | |
20394 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
20395 | if (!SWIG_IsOK(ecode12)) { | |
20396 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
20397 | } | |
20398 | arg12 = static_cast< int >(val12); | |
20399 | } | |
20400 | { | |
20401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20402 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
20403 | wxPyEndAllowThreads(__tstate); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | } | |
20406 | { | |
20407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20408 | } | |
20409 | return resultobj; | |
20410 | fail: | |
20411 | return NULL; | |
20412 | } | |
20413 | ||
20414 | ||
20415 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20416 | PyObject *resultobj = 0; | |
20417 | wxDC *arg1 = (wxDC *) 0 ; | |
20418 | wxPoint *arg2 = 0 ; | |
20419 | wxSize *arg3 = 0 ; | |
20420 | wxDC *arg4 = (wxDC *) 0 ; | |
20421 | wxPoint *arg5 = 0 ; | |
20422 | int arg6 = (int) wxCOPY ; | |
20423 | bool arg7 = (bool) false ; | |
20424 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
20425 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
20426 | bool result; | |
20427 | void *argp1 = 0 ; | |
20428 | int res1 = 0 ; | |
20429 | wxPoint temp2 ; | |
20430 | wxSize temp3 ; | |
20431 | void *argp4 = 0 ; | |
20432 | int res4 = 0 ; | |
20433 | wxPoint temp5 ; | |
20434 | int val6 ; | |
20435 | int ecode6 = 0 ; | |
20436 | bool val7 ; | |
20437 | int ecode7 = 0 ; | |
20438 | wxPoint temp8 ; | |
20439 | PyObject * obj0 = 0 ; | |
20440 | PyObject * obj1 = 0 ; | |
20441 | PyObject * obj2 = 0 ; | |
20442 | PyObject * obj3 = 0 ; | |
20443 | PyObject * obj4 = 0 ; | |
20444 | PyObject * obj5 = 0 ; | |
20445 | PyObject * obj6 = 0 ; | |
20446 | PyObject * obj7 = 0 ; | |
20447 | char * kwnames[] = { | |
20448 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
20449 | }; | |
20450 | ||
20451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20453 | if (!SWIG_IsOK(res1)) { | |
20454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20455 | } | |
20456 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20457 | { | |
20458 | arg2 = &temp2; | |
20459 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20460 | } | |
20461 | { | |
20462 | arg3 = &temp3; | |
20463 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20464 | } | |
20465 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20466 | if (!SWIG_IsOK(res4)) { | |
20467 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
20468 | } | |
20469 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
20470 | { | |
20471 | arg5 = &temp5; | |
20472 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
20473 | } | |
20474 | if (obj5) { | |
20475 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20476 | if (!SWIG_IsOK(ecode6)) { | |
20477 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
20478 | } | |
20479 | arg6 = static_cast< int >(val6); | |
20480 | } | |
20481 | if (obj6) { | |
20482 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
20483 | if (!SWIG_IsOK(ecode7)) { | |
20484 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
20485 | } | |
20486 | arg7 = static_cast< bool >(val7); | |
20487 | } | |
20488 | if (obj7) { | |
093d3ff1 | 20489 | { |
554f62e9 RD |
20490 | arg8 = &temp8; |
20491 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 20492 | } |
554f62e9 RD |
20493 | } |
20494 | { | |
20495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20496 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
20497 | wxPyEndAllowThreads(__tstate); | |
20498 | if (PyErr_Occurred()) SWIG_fail; | |
20499 | } | |
20500 | { | |
20501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20502 | } | |
20503 | return resultobj; | |
20504 | fail: | |
20505 | return NULL; | |
20506 | } | |
20507 | ||
20508 | ||
8f514ab4 RD |
20509 | SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20510 | PyObject *resultobj = 0; | |
20511 | wxDC *arg1 = (wxDC *) 0 ; | |
20512 | wxRect *arg2 = (wxRect *) NULL ; | |
20513 | SwigValueWrapper<wxBitmap > result; | |
20514 | void *argp1 = 0 ; | |
20515 | int res1 = 0 ; | |
20516 | void *argp2 = 0 ; | |
20517 | int res2 = 0 ; | |
20518 | PyObject * obj0 = 0 ; | |
20519 | PyObject * obj1 = 0 ; | |
20520 | char * kwnames[] = { | |
20521 | (char *) "self",(char *) "subrect", NULL | |
20522 | }; | |
20523 | ||
20524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
20525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20526 | if (!SWIG_IsOK(res1)) { | |
20527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20528 | } | |
20529 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20530 | if (obj1) { | |
20531 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
20532 | if (!SWIG_IsOK(res2)) { | |
20533 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'"); | |
20534 | } | |
20535 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
20536 | } | |
20537 | { | |
20538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20539 | result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2); | |
20540 | wxPyEndAllowThreads(__tstate); | |
20541 | if (PyErr_Occurred()) SWIG_fail; | |
20542 | } | |
20543 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
20544 | return resultobj; | |
20545 | fail: | |
20546 | return NULL; | |
20547 | } | |
20548 | ||
20549 | ||
554f62e9 RD |
20550 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20551 | PyObject *resultobj = 0; | |
20552 | wxDC *arg1 = (wxDC *) 0 ; | |
20553 | int arg2 ; | |
20554 | int arg3 ; | |
20555 | int arg4 ; | |
20556 | int arg5 ; | |
20557 | void *argp1 = 0 ; | |
20558 | int res1 = 0 ; | |
20559 | int val2 ; | |
20560 | int ecode2 = 0 ; | |
20561 | int val3 ; | |
20562 | int ecode3 = 0 ; | |
20563 | int val4 ; | |
20564 | int ecode4 = 0 ; | |
20565 | int val5 ; | |
20566 | int ecode5 = 0 ; | |
20567 | PyObject * obj0 = 0 ; | |
20568 | PyObject * obj1 = 0 ; | |
20569 | PyObject * obj2 = 0 ; | |
20570 | PyObject * obj3 = 0 ; | |
20571 | PyObject * obj4 = 0 ; | |
20572 | char * kwnames[] = { | |
20573 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
20574 | }; | |
20575 | ||
20576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20578 | if (!SWIG_IsOK(res1)) { | |
20579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20580 | } | |
20581 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20582 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20583 | if (!SWIG_IsOK(ecode2)) { | |
20584 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
20585 | } | |
20586 | arg2 = static_cast< int >(val2); | |
20587 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20588 | if (!SWIG_IsOK(ecode3)) { | |
20589 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
20590 | } | |
20591 | arg3 = static_cast< int >(val3); | |
20592 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20593 | if (!SWIG_IsOK(ecode4)) { | |
20594 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
20595 | } | |
20596 | arg4 = static_cast< int >(val4); | |
20597 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20598 | if (!SWIG_IsOK(ecode5)) { | |
20599 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
20600 | } | |
20601 | arg5 = static_cast< int >(val5); | |
20602 | { | |
20603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20604 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | resultobj = SWIG_Py_Void(); | |
20609 | return resultobj; | |
20610 | fail: | |
20611 | return NULL; | |
20612 | } | |
20613 | ||
20614 | ||
20615 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20616 | PyObject *resultobj = 0; | |
20617 | wxDC *arg1 = (wxDC *) 0 ; | |
20618 | wxPoint *arg2 = 0 ; | |
20619 | wxSize *arg3 = 0 ; | |
20620 | void *argp1 = 0 ; | |
20621 | int res1 = 0 ; | |
20622 | wxPoint temp2 ; | |
20623 | wxSize temp3 ; | |
20624 | PyObject * obj0 = 0 ; | |
20625 | PyObject * obj1 = 0 ; | |
20626 | PyObject * obj2 = 0 ; | |
20627 | char * kwnames[] = { | |
20628 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
20629 | }; | |
20630 | ||
20631 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20633 | if (!SWIG_IsOK(res1)) { | |
20634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20635 | } | |
20636 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20637 | { | |
20638 | arg2 = &temp2; | |
20639 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20640 | } | |
20641 | { | |
20642 | arg3 = &temp3; | |
20643 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20644 | } | |
20645 | { | |
20646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20647 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
20648 | wxPyEndAllowThreads(__tstate); | |
20649 | if (PyErr_Occurred()) SWIG_fail; | |
20650 | } | |
20651 | resultobj = SWIG_Py_Void(); | |
20652 | return resultobj; | |
20653 | fail: | |
20654 | return NULL; | |
20655 | } | |
20656 | ||
20657 | ||
20658 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20659 | PyObject *resultobj = 0; | |
20660 | wxDC *arg1 = (wxDC *) 0 ; | |
20661 | wxRegion *arg2 = 0 ; | |
20662 | void *argp1 = 0 ; | |
20663 | int res1 = 0 ; | |
20664 | void *argp2 = 0 ; | |
20665 | int res2 = 0 ; | |
20666 | PyObject * obj0 = 0 ; | |
20667 | PyObject * obj1 = 0 ; | |
20668 | char * kwnames[] = { | |
20669 | (char *) "self",(char *) "region", NULL | |
20670 | }; | |
20671 | ||
20672 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
20673 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20674 | if (!SWIG_IsOK(res1)) { | |
20675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20676 | } | |
20677 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20678 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
20679 | if (!SWIG_IsOK(res2)) { | |
20680 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20681 | } | |
20682 | if (!argp2) { | |
20683 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20684 | } | |
20685 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
20686 | { | |
20687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20688 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
20689 | wxPyEndAllowThreads(__tstate); | |
20690 | if (PyErr_Occurred()) SWIG_fail; | |
20691 | } | |
20692 | resultobj = SWIG_Py_Void(); | |
20693 | return resultobj; | |
20694 | fail: | |
20695 | return NULL; | |
20696 | } | |
20697 | ||
20698 | ||
20699 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20700 | PyObject *resultobj = 0; | |
20701 | wxDC *arg1 = (wxDC *) 0 ; | |
20702 | wxRect *arg2 = 0 ; | |
20703 | void *argp1 = 0 ; | |
20704 | int res1 = 0 ; | |
20705 | wxRect temp2 ; | |
20706 | PyObject * obj0 = 0 ; | |
20707 | PyObject * obj1 = 0 ; | |
20708 | char * kwnames[] = { | |
20709 | (char *) "self",(char *) "rect", NULL | |
20710 | }; | |
20711 | ||
20712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
20713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20714 | if (!SWIG_IsOK(res1)) { | |
20715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20716 | } | |
20717 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20718 | { | |
20719 | arg2 = &temp2; | |
20720 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20721 | } | |
20722 | { | |
20723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20724 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
20725 | wxPyEndAllowThreads(__tstate); | |
20726 | if (PyErr_Occurred()) SWIG_fail; | |
20727 | } | |
20728 | resultobj = SWIG_Py_Void(); | |
20729 | return resultobj; | |
20730 | fail: | |
20731 | return NULL; | |
20732 | } | |
20733 | ||
20734 | ||
20735 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20736 | PyObject *resultobj = 0; | |
20737 | wxDC *arg1 = (wxDC *) 0 ; | |
20738 | int arg2 ; | |
20739 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20740 | int arg4 = (int) 0 ; | |
20741 | int arg5 = (int) 0 ; | |
20742 | void *argp1 = 0 ; | |
20743 | int res1 = 0 ; | |
20744 | int val4 ; | |
20745 | int ecode4 = 0 ; | |
20746 | int val5 ; | |
20747 | int ecode5 = 0 ; | |
20748 | PyObject * obj0 = 0 ; | |
20749 | PyObject * obj1 = 0 ; | |
20750 | PyObject * obj2 = 0 ; | |
20751 | PyObject * obj3 = 0 ; | |
20752 | char * kwnames[] = { | |
20753 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
20754 | }; | |
20755 | ||
20756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20758 | if (!SWIG_IsOK(res1)) { | |
20759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20760 | } | |
20761 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20762 | { | |
20763 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20764 | if (arg3 == NULL) SWIG_fail; | |
20765 | } | |
20766 | if (obj2) { | |
20767 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20768 | if (!SWIG_IsOK(ecode4)) { | |
20769 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
20770 | } | |
20771 | arg4 = static_cast< int >(val4); | |
20772 | } | |
20773 | if (obj3) { | |
20774 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20775 | if (!SWIG_IsOK(ecode5)) { | |
20776 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
20777 | } | |
20778 | arg5 = static_cast< int >(val5); | |
20779 | } | |
20780 | { | |
20781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20782 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
20783 | wxPyEndAllowThreads(__tstate); | |
20784 | if (PyErr_Occurred()) SWIG_fail; | |
20785 | } | |
20786 | resultobj = SWIG_Py_Void(); | |
20787 | { | |
20788 | if (arg3) delete [] arg3; | |
20789 | } | |
20790 | return resultobj; | |
20791 | fail: | |
20792 | { | |
20793 | if (arg3) delete [] arg3; | |
20794 | } | |
20795 | return NULL; | |
20796 | } | |
20797 | ||
20798 | ||
20799 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20800 | PyObject *resultobj = 0; | |
20801 | wxDC *arg1 = (wxDC *) 0 ; | |
20802 | int arg2 ; | |
20803 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20804 | int arg4 = (int) 0 ; | |
20805 | int arg5 = (int) 0 ; | |
20806 | int arg6 = (int) wxODDEVEN_RULE ; | |
20807 | void *argp1 = 0 ; | |
20808 | int res1 = 0 ; | |
20809 | int val4 ; | |
20810 | int ecode4 = 0 ; | |
20811 | int val5 ; | |
20812 | int ecode5 = 0 ; | |
20813 | int val6 ; | |
20814 | int ecode6 = 0 ; | |
20815 | PyObject * obj0 = 0 ; | |
20816 | PyObject * obj1 = 0 ; | |
20817 | PyObject * obj2 = 0 ; | |
20818 | PyObject * obj3 = 0 ; | |
20819 | PyObject * obj4 = 0 ; | |
20820 | char * kwnames[] = { | |
20821 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
20822 | }; | |
20823 | ||
20824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20826 | if (!SWIG_IsOK(res1)) { | |
20827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20828 | } | |
20829 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20830 | { | |
20831 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20832 | if (arg3 == NULL) SWIG_fail; | |
20833 | } | |
20834 | if (obj2) { | |
20835 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20836 | if (!SWIG_IsOK(ecode4)) { | |
20837 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
20838 | } | |
20839 | arg4 = static_cast< int >(val4); | |
20840 | } | |
20841 | if (obj3) { | |
20842 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20843 | if (!SWIG_IsOK(ecode5)) { | |
20844 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
20845 | } | |
20846 | arg5 = static_cast< int >(val5); | |
20847 | } | |
20848 | if (obj4) { | |
20849 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
20850 | if (!SWIG_IsOK(ecode6)) { | |
20851 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
20852 | } | |
20853 | arg6 = static_cast< int >(val6); | |
20854 | } | |
20855 | { | |
20856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20857 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
20858 | wxPyEndAllowThreads(__tstate); | |
20859 | if (PyErr_Occurred()) SWIG_fail; | |
20860 | } | |
20861 | resultobj = SWIG_Py_Void(); | |
20862 | { | |
20863 | if (arg3) delete [] arg3; | |
20864 | } | |
20865 | return resultobj; | |
20866 | fail: | |
20867 | { | |
20868 | if (arg3) delete [] arg3; | |
20869 | } | |
20870 | return NULL; | |
20871 | } | |
20872 | ||
20873 | ||
20874 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20875 | PyObject *resultobj = 0; | |
20876 | wxDC *arg1 = (wxDC *) 0 ; | |
20877 | wxString *arg2 = 0 ; | |
20878 | wxRect *arg3 = 0 ; | |
20879 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20880 | int arg5 = (int) -1 ; | |
20881 | void *argp1 = 0 ; | |
20882 | int res1 = 0 ; | |
20883 | bool temp2 = false ; | |
20884 | wxRect temp3 ; | |
20885 | int val4 ; | |
20886 | int ecode4 = 0 ; | |
20887 | int val5 ; | |
20888 | int ecode5 = 0 ; | |
20889 | PyObject * obj0 = 0 ; | |
20890 | PyObject * obj1 = 0 ; | |
20891 | PyObject * obj2 = 0 ; | |
20892 | PyObject * obj3 = 0 ; | |
20893 | PyObject * obj4 = 0 ; | |
20894 | char * kwnames[] = { | |
20895 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20896 | }; | |
20897 | ||
20898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20900 | if (!SWIG_IsOK(res1)) { | |
20901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20902 | } | |
20903 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20904 | { | |
20905 | arg2 = wxString_in_helper(obj1); | |
20906 | if (arg2 == NULL) SWIG_fail; | |
20907 | temp2 = true; | |
20908 | } | |
20909 | { | |
20910 | arg3 = &temp3; | |
20911 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20912 | } | |
20913 | if (obj3) { | |
20914 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20915 | if (!SWIG_IsOK(ecode4)) { | |
20916 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20917 | } | |
20918 | arg4 = static_cast< int >(val4); | |
20919 | } | |
20920 | if (obj4) { | |
20921 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20922 | if (!SWIG_IsOK(ecode5)) { | |
20923 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20924 | } | |
20925 | arg5 = static_cast< int >(val5); | |
20926 | } | |
20927 | { | |
20928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20929 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20930 | wxPyEndAllowThreads(__tstate); | |
20931 | if (PyErr_Occurred()) SWIG_fail; | |
20932 | } | |
20933 | resultobj = SWIG_Py_Void(); | |
20934 | { | |
20935 | if (temp2) | |
20936 | delete arg2; | |
20937 | } | |
20938 | return resultobj; | |
20939 | fail: | |
20940 | { | |
20941 | if (temp2) | |
20942 | delete arg2; | |
20943 | } | |
20944 | return NULL; | |
20945 | } | |
20946 | ||
20947 | ||
20948 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20949 | PyObject *resultobj = 0; | |
20950 | wxDC *arg1 = (wxDC *) 0 ; | |
20951 | wxString *arg2 = 0 ; | |
20952 | wxBitmap *arg3 = 0 ; | |
20953 | wxRect *arg4 = 0 ; | |
20954 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20955 | int arg6 = (int) -1 ; | |
20956 | wxRect result; | |
20957 | void *argp1 = 0 ; | |
20958 | int res1 = 0 ; | |
20959 | bool temp2 = false ; | |
20960 | void *argp3 = 0 ; | |
20961 | int res3 = 0 ; | |
20962 | wxRect temp4 ; | |
20963 | int val5 ; | |
20964 | int ecode5 = 0 ; | |
20965 | int val6 ; | |
20966 | int ecode6 = 0 ; | |
20967 | PyObject * obj0 = 0 ; | |
20968 | PyObject * obj1 = 0 ; | |
20969 | PyObject * obj2 = 0 ; | |
20970 | PyObject * obj3 = 0 ; | |
20971 | PyObject * obj4 = 0 ; | |
20972 | PyObject * obj5 = 0 ; | |
20973 | char * kwnames[] = { | |
20974 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20975 | }; | |
20976 | ||
20977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20979 | if (!SWIG_IsOK(res1)) { | |
20980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20981 | } | |
20982 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20983 | { | |
20984 | arg2 = wxString_in_helper(obj1); | |
20985 | if (arg2 == NULL) SWIG_fail; | |
20986 | temp2 = true; | |
20987 | } | |
20988 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20989 | if (!SWIG_IsOK(res3)) { | |
20990 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20991 | } | |
20992 | if (!argp3) { | |
20993 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20994 | } | |
20995 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20996 | { | |
20997 | arg4 = &temp4; | |
20998 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20999 | } | |
21000 | if (obj4) { | |
21001 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21002 | if (!SWIG_IsOK(ecode5)) { | |
21003 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
21004 | } | |
21005 | arg5 = static_cast< int >(val5); | |
21006 | } | |
21007 | if (obj5) { | |
21008 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21009 | if (!SWIG_IsOK(ecode6)) { | |
21010 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
21011 | } | |
21012 | arg6 = static_cast< int >(val6); | |
21013 | } | |
21014 | { | |
21015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21016 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
21017 | wxPyEndAllowThreads(__tstate); | |
21018 | if (PyErr_Occurred()) SWIG_fail; | |
21019 | } | |
21020 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
21021 | { | |
21022 | if (temp2) | |
21023 | delete arg2; | |
21024 | } | |
21025 | return resultobj; | |
21026 | fail: | |
21027 | { | |
21028 | if (temp2) | |
21029 | delete arg2; | |
21030 | } | |
21031 | return NULL; | |
21032 | } | |
21033 | ||
21034 | ||
21035 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21036 | PyObject *resultobj = 0; | |
21037 | wxDC *arg1 = (wxDC *) 0 ; | |
21038 | int arg2 ; | |
21039 | wxPoint *arg3 = (wxPoint *) 0 ; | |
21040 | void *argp1 = 0 ; | |
21041 | int res1 = 0 ; | |
21042 | PyObject * obj0 = 0 ; | |
21043 | PyObject * obj1 = 0 ; | |
21044 | char * kwnames[] = { | |
21045 | (char *) "self",(char *) "points", NULL | |
21046 | }; | |
21047 | ||
21048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
21049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21050 | if (!SWIG_IsOK(res1)) { | |
21051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21052 | } | |
21053 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21054 | { | |
21055 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
21056 | if (arg3 == NULL) SWIG_fail; | |
21057 | } | |
21058 | { | |
21059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21060 | (arg1)->DrawSpline(arg2,arg3); | |
21061 | wxPyEndAllowThreads(__tstate); | |
21062 | if (PyErr_Occurred()) SWIG_fail; | |
21063 | } | |
21064 | resultobj = SWIG_Py_Void(); | |
21065 | { | |
21066 | if (arg3) delete [] arg3; | |
21067 | } | |
21068 | return resultobj; | |
21069 | fail: | |
21070 | { | |
21071 | if (arg3) delete [] arg3; | |
21072 | } | |
21073 | return NULL; | |
21074 | } | |
21075 | ||
21076 | ||
21077 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21078 | PyObject *resultobj = 0; | |
21079 | wxDC *arg1 = (wxDC *) 0 ; | |
21080 | void *argp1 = 0 ; | |
21081 | int res1 = 0 ; | |
21082 | PyObject *swig_obj[1] ; | |
21083 | ||
21084 | if (!args) SWIG_fail; | |
21085 | swig_obj[0] = args; | |
21086 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21087 | if (!SWIG_IsOK(res1)) { | |
21088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21089 | } | |
21090 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21091 | { | |
21092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21093 | (arg1)->Clear(); | |
21094 | wxPyEndAllowThreads(__tstate); | |
21095 | if (PyErr_Occurred()) SWIG_fail; | |
21096 | } | |
21097 | resultobj = SWIG_Py_Void(); | |
21098 | return resultobj; | |
21099 | fail: | |
21100 | return NULL; | |
21101 | } | |
21102 | ||
21103 | ||
21104 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21105 | PyObject *resultobj = 0; | |
21106 | wxDC *arg1 = (wxDC *) 0 ; | |
21107 | wxString *arg2 = 0 ; | |
21108 | bool result; | |
21109 | void *argp1 = 0 ; | |
21110 | int res1 = 0 ; | |
21111 | bool temp2 = false ; | |
21112 | PyObject * obj0 = 0 ; | |
21113 | PyObject * obj1 = 0 ; | |
21114 | char * kwnames[] = { | |
21115 | (char *) "self",(char *) "message", NULL | |
21116 | }; | |
21117 | ||
21118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
21119 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21120 | if (!SWIG_IsOK(res1)) { | |
21121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21122 | } | |
21123 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21124 | { | |
21125 | arg2 = wxString_in_helper(obj1); | |
21126 | if (arg2 == NULL) SWIG_fail; | |
21127 | temp2 = true; | |
21128 | } | |
21129 | { | |
21130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21131 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
21132 | wxPyEndAllowThreads(__tstate); | |
21133 | if (PyErr_Occurred()) SWIG_fail; | |
21134 | } | |
21135 | { | |
21136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21137 | } | |
21138 | { | |
21139 | if (temp2) | |
21140 | delete arg2; | |
21141 | } | |
21142 | return resultobj; | |
21143 | fail: | |
21144 | { | |
21145 | if (temp2) | |
21146 | delete arg2; | |
21147 | } | |
21148 | return NULL; | |
21149 | } | |
21150 | ||
21151 | ||
21152 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21153 | PyObject *resultobj = 0; | |
21154 | wxDC *arg1 = (wxDC *) 0 ; | |
21155 | void *argp1 = 0 ; | |
21156 | int res1 = 0 ; | |
21157 | PyObject *swig_obj[1] ; | |
21158 | ||
21159 | if (!args) SWIG_fail; | |
21160 | swig_obj[0] = args; | |
21161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21162 | if (!SWIG_IsOK(res1)) { | |
21163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21164 | } | |
21165 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21166 | { | |
21167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21168 | (arg1)->EndDoc(); | |
21169 | wxPyEndAllowThreads(__tstate); | |
21170 | if (PyErr_Occurred()) SWIG_fail; | |
21171 | } | |
21172 | resultobj = SWIG_Py_Void(); | |
21173 | return resultobj; | |
21174 | fail: | |
21175 | return NULL; | |
21176 | } | |
21177 | ||
21178 | ||
21179 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21180 | PyObject *resultobj = 0; | |
21181 | wxDC *arg1 = (wxDC *) 0 ; | |
21182 | void *argp1 = 0 ; | |
21183 | int res1 = 0 ; | |
21184 | PyObject *swig_obj[1] ; | |
21185 | ||
21186 | if (!args) SWIG_fail; | |
21187 | swig_obj[0] = args; | |
21188 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21189 | if (!SWIG_IsOK(res1)) { | |
21190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21191 | } | |
21192 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21193 | { | |
21194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21195 | (arg1)->StartPage(); | |
21196 | wxPyEndAllowThreads(__tstate); | |
21197 | if (PyErr_Occurred()) SWIG_fail; | |
21198 | } | |
21199 | resultobj = SWIG_Py_Void(); | |
21200 | return resultobj; | |
21201 | fail: | |
21202 | return NULL; | |
21203 | } | |
21204 | ||
21205 | ||
21206 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21207 | PyObject *resultobj = 0; | |
21208 | wxDC *arg1 = (wxDC *) 0 ; | |
21209 | void *argp1 = 0 ; | |
21210 | int res1 = 0 ; | |
21211 | PyObject *swig_obj[1] ; | |
21212 | ||
21213 | if (!args) SWIG_fail; | |
21214 | swig_obj[0] = args; | |
21215 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21216 | if (!SWIG_IsOK(res1)) { | |
21217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21218 | } | |
21219 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21220 | { | |
21221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21222 | (arg1)->EndPage(); | |
21223 | wxPyEndAllowThreads(__tstate); | |
21224 | if (PyErr_Occurred()) SWIG_fail; | |
21225 | } | |
21226 | resultobj = SWIG_Py_Void(); | |
21227 | return resultobj; | |
21228 | fail: | |
21229 | return NULL; | |
21230 | } | |
21231 | ||
21232 | ||
21233 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21234 | PyObject *resultobj = 0; | |
21235 | wxDC *arg1 = (wxDC *) 0 ; | |
21236 | wxFont *arg2 = 0 ; | |
21237 | void *argp1 = 0 ; | |
21238 | int res1 = 0 ; | |
21239 | void *argp2 = 0 ; | |
21240 | int res2 = 0 ; | |
21241 | PyObject * obj0 = 0 ; | |
21242 | PyObject * obj1 = 0 ; | |
21243 | char * kwnames[] = { | |
21244 | (char *) "self",(char *) "font", NULL | |
21245 | }; | |
21246 | ||
21247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
21248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21249 | if (!SWIG_IsOK(res1)) { | |
21250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21251 | } | |
21252 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21253 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
21254 | if (!SWIG_IsOK(res2)) { | |
21255 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
21256 | } | |
21257 | if (!argp2) { | |
21258 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
21259 | } | |
21260 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
21261 | { | |
21262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21263 | (arg1)->SetFont((wxFont const &)*arg2); | |
21264 | wxPyEndAllowThreads(__tstate); | |
21265 | if (PyErr_Occurred()) SWIG_fail; | |
21266 | } | |
21267 | resultobj = SWIG_Py_Void(); | |
21268 | return resultobj; | |
21269 | fail: | |
21270 | return NULL; | |
21271 | } | |
21272 | ||
21273 | ||
21274 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21275 | PyObject *resultobj = 0; | |
21276 | wxDC *arg1 = (wxDC *) 0 ; | |
21277 | wxPen *arg2 = 0 ; | |
21278 | void *argp1 = 0 ; | |
21279 | int res1 = 0 ; | |
21280 | void *argp2 = 0 ; | |
21281 | int res2 = 0 ; | |
21282 | PyObject * obj0 = 0 ; | |
21283 | PyObject * obj1 = 0 ; | |
21284 | char * kwnames[] = { | |
21285 | (char *) "self",(char *) "pen", NULL | |
21286 | }; | |
21287 | ||
21288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
21289 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21290 | if (!SWIG_IsOK(res1)) { | |
21291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21292 | } | |
21293 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21294 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
21295 | if (!SWIG_IsOK(res2)) { | |
21296 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
21297 | } | |
21298 | if (!argp2) { | |
21299 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
21300 | } | |
21301 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
21302 | { | |
21303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21304 | (arg1)->SetPen((wxPen const &)*arg2); | |
21305 | wxPyEndAllowThreads(__tstate); | |
21306 | if (PyErr_Occurred()) SWIG_fail; | |
21307 | } | |
21308 | resultobj = SWIG_Py_Void(); | |
21309 | return resultobj; | |
21310 | fail: | |
21311 | return NULL; | |
21312 | } | |
21313 | ||
21314 | ||
21315 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21316 | PyObject *resultobj = 0; | |
21317 | wxDC *arg1 = (wxDC *) 0 ; | |
21318 | wxBrush *arg2 = 0 ; | |
21319 | void *argp1 = 0 ; | |
21320 | int res1 = 0 ; | |
21321 | void *argp2 = 0 ; | |
21322 | int res2 = 0 ; | |
21323 | PyObject * obj0 = 0 ; | |
21324 | PyObject * obj1 = 0 ; | |
21325 | char * kwnames[] = { | |
21326 | (char *) "self",(char *) "brush", NULL | |
21327 | }; | |
21328 | ||
21329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
21330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21331 | if (!SWIG_IsOK(res1)) { | |
21332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21333 | } | |
21334 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21335 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
21336 | if (!SWIG_IsOK(res2)) { | |
21337 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21338 | } | |
21339 | if (!argp2) { | |
21340 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21341 | } | |
21342 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
21343 | { | |
21344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21345 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
21346 | wxPyEndAllowThreads(__tstate); | |
21347 | if (PyErr_Occurred()) SWIG_fail; | |
21348 | } | |
21349 | resultobj = SWIG_Py_Void(); | |
21350 | return resultobj; | |
21351 | fail: | |
21352 | return NULL; | |
21353 | } | |
21354 | ||
21355 | ||
21356 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21357 | PyObject *resultobj = 0; | |
21358 | wxDC *arg1 = (wxDC *) 0 ; | |
21359 | wxBrush *arg2 = 0 ; | |
21360 | void *argp1 = 0 ; | |
21361 | int res1 = 0 ; | |
21362 | void *argp2 = 0 ; | |
21363 | int res2 = 0 ; | |
21364 | PyObject * obj0 = 0 ; | |
21365 | PyObject * obj1 = 0 ; | |
21366 | char * kwnames[] = { | |
21367 | (char *) "self",(char *) "brush", NULL | |
21368 | }; | |
21369 | ||
21370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21372 | if (!SWIG_IsOK(res1)) { | |
21373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21374 | } | |
21375 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21376 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
21377 | if (!SWIG_IsOK(res2)) { | |
21378 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21379 | } | |
21380 | if (!argp2) { | |
21381 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21382 | } | |
21383 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
21384 | { | |
21385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21386 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
21387 | wxPyEndAllowThreads(__tstate); | |
21388 | if (PyErr_Occurred()) SWIG_fail; | |
21389 | } | |
21390 | resultobj = SWIG_Py_Void(); | |
21391 | return resultobj; | |
21392 | fail: | |
21393 | return NULL; | |
21394 | } | |
21395 | ||
21396 | ||
21397 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21398 | PyObject *resultobj = 0; | |
21399 | wxDC *arg1 = (wxDC *) 0 ; | |
21400 | int arg2 ; | |
21401 | void *argp1 = 0 ; | |
21402 | int res1 = 0 ; | |
21403 | int val2 ; | |
21404 | int ecode2 = 0 ; | |
21405 | PyObject * obj0 = 0 ; | |
21406 | PyObject * obj1 = 0 ; | |
21407 | char * kwnames[] = { | |
21408 | (char *) "self",(char *) "mode", NULL | |
21409 | }; | |
21410 | ||
21411 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
21412 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21413 | if (!SWIG_IsOK(res1)) { | |
21414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21415 | } | |
21416 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21417 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21418 | if (!SWIG_IsOK(ecode2)) { | |
21419 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
21420 | } | |
21421 | arg2 = static_cast< int >(val2); | |
21422 | { | |
21423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21424 | (arg1)->SetBackgroundMode(arg2); | |
21425 | wxPyEndAllowThreads(__tstate); | |
21426 | if (PyErr_Occurred()) SWIG_fail; | |
21427 | } | |
21428 | resultobj = SWIG_Py_Void(); | |
21429 | return resultobj; | |
21430 | fail: | |
21431 | return NULL; | |
21432 | } | |
21433 | ||
21434 | ||
21435 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21436 | PyObject *resultobj = 0; | |
21437 | wxDC *arg1 = (wxDC *) 0 ; | |
21438 | wxPalette *arg2 = 0 ; | |
21439 | void *argp1 = 0 ; | |
21440 | int res1 = 0 ; | |
21441 | void *argp2 = 0 ; | |
21442 | int res2 = 0 ; | |
21443 | PyObject * obj0 = 0 ; | |
21444 | PyObject * obj1 = 0 ; | |
21445 | char * kwnames[] = { | |
21446 | (char *) "self",(char *) "palette", NULL | |
21447 | }; | |
21448 | ||
21449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
21450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21451 | if (!SWIG_IsOK(res1)) { | |
21452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21453 | } | |
21454 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21455 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
21456 | if (!SWIG_IsOK(res2)) { | |
21457 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21458 | } | |
21459 | if (!argp2) { | |
21460 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21461 | } | |
21462 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
21463 | { | |
21464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21465 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
21466 | wxPyEndAllowThreads(__tstate); | |
21467 | if (PyErr_Occurred()) SWIG_fail; | |
21468 | } | |
21469 | resultobj = SWIG_Py_Void(); | |
21470 | return resultobj; | |
21471 | fail: | |
21472 | return NULL; | |
21473 | } | |
21474 | ||
21475 | ||
21476 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21477 | PyObject *resultobj = 0; | |
21478 | wxDC *arg1 = (wxDC *) 0 ; | |
21479 | void *argp1 = 0 ; | |
21480 | int res1 = 0 ; | |
21481 | PyObject *swig_obj[1] ; | |
21482 | ||
21483 | if (!args) SWIG_fail; | |
21484 | swig_obj[0] = args; | |
21485 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21486 | if (!SWIG_IsOK(res1)) { | |
21487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21488 | } | |
21489 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21490 | { | |
21491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21492 | (arg1)->DestroyClippingRegion(); | |
21493 | wxPyEndAllowThreads(__tstate); | |
21494 | if (PyErr_Occurred()) SWIG_fail; | |
21495 | } | |
21496 | resultobj = SWIG_Py_Void(); | |
21497 | return resultobj; | |
21498 | fail: | |
21499 | return NULL; | |
21500 | } | |
21501 | ||
21502 | ||
21503 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21504 | PyObject *resultobj = 0; | |
21505 | wxDC *arg1 = (wxDC *) 0 ; | |
21506 | int *arg2 = (int *) 0 ; | |
21507 | int *arg3 = (int *) 0 ; | |
21508 | int *arg4 = (int *) 0 ; | |
21509 | int *arg5 = (int *) 0 ; | |
21510 | void *argp1 = 0 ; | |
21511 | int res1 = 0 ; | |
21512 | int temp2 ; | |
21513 | int res2 = SWIG_TMPOBJ ; | |
21514 | int temp3 ; | |
21515 | int res3 = SWIG_TMPOBJ ; | |
21516 | int temp4 ; | |
21517 | int res4 = SWIG_TMPOBJ ; | |
21518 | int temp5 ; | |
21519 | int res5 = SWIG_TMPOBJ ; | |
21520 | PyObject *swig_obj[1] ; | |
21521 | ||
21522 | arg2 = &temp2; | |
21523 | arg3 = &temp3; | |
21524 | arg4 = &temp4; | |
21525 | arg5 = &temp5; | |
21526 | if (!args) SWIG_fail; | |
21527 | swig_obj[0] = args; | |
21528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21529 | if (!SWIG_IsOK(res1)) { | |
21530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21531 | } | |
21532 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21533 | { | |
21534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21535 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
21536 | wxPyEndAllowThreads(__tstate); | |
21537 | if (PyErr_Occurred()) SWIG_fail; | |
21538 | } | |
21539 | resultobj = SWIG_Py_Void(); | |
21540 | if (SWIG_IsTmpObj(res2)) { | |
21541 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21542 | } else { | |
21543 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21544 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21545 | } | |
21546 | if (SWIG_IsTmpObj(res3)) { | |
21547 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21548 | } else { | |
21549 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21550 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21551 | } | |
21552 | if (SWIG_IsTmpObj(res4)) { | |
21553 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21554 | } else { | |
21555 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21556 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21557 | } | |
21558 | if (SWIG_IsTmpObj(res5)) { | |
21559 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21560 | } else { | |
21561 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21562 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21563 | } | |
21564 | return resultobj; | |
21565 | fail: | |
21566 | return NULL; | |
21567 | } | |
21568 | ||
21569 | ||
21570 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21571 | PyObject *resultobj = 0; | |
21572 | wxDC *arg1 = (wxDC *) 0 ; | |
21573 | wxRect result; | |
21574 | void *argp1 = 0 ; | |
21575 | int res1 = 0 ; | |
21576 | PyObject *swig_obj[1] ; | |
21577 | ||
21578 | if (!args) SWIG_fail; | |
21579 | swig_obj[0] = args; | |
21580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21581 | if (!SWIG_IsOK(res1)) { | |
21582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21583 | } | |
21584 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21585 | { | |
21586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21587 | result = wxDC_GetClippingRect(arg1); | |
21588 | wxPyEndAllowThreads(__tstate); | |
21589 | if (PyErr_Occurred()) SWIG_fail; | |
21590 | } | |
21591 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
21592 | return resultobj; | |
21593 | fail: | |
21594 | return NULL; | |
21595 | } | |
21596 | ||
21597 | ||
21598 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21599 | PyObject *resultobj = 0; | |
21600 | wxDC *arg1 = (wxDC *) 0 ; | |
21601 | int result; | |
21602 | void *argp1 = 0 ; | |
21603 | int res1 = 0 ; | |
21604 | PyObject *swig_obj[1] ; | |
21605 | ||
21606 | if (!args) SWIG_fail; | |
21607 | swig_obj[0] = args; | |
21608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21609 | if (!SWIG_IsOK(res1)) { | |
21610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21611 | } | |
21612 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21613 | { | |
21614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21615 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
21616 | wxPyEndAllowThreads(__tstate); | |
21617 | if (PyErr_Occurred()) SWIG_fail; | |
21618 | } | |
21619 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21620 | return resultobj; | |
21621 | fail: | |
21622 | return NULL; | |
21623 | } | |
21624 | ||
21625 | ||
21626 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21627 | PyObject *resultobj = 0; | |
21628 | wxDC *arg1 = (wxDC *) 0 ; | |
21629 | int result; | |
21630 | void *argp1 = 0 ; | |
21631 | int res1 = 0 ; | |
21632 | PyObject *swig_obj[1] ; | |
21633 | ||
21634 | if (!args) SWIG_fail; | |
21635 | swig_obj[0] = args; | |
21636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21637 | if (!SWIG_IsOK(res1)) { | |
21638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21639 | } | |
21640 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21641 | { | |
21642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21643 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
21644 | wxPyEndAllowThreads(__tstate); | |
21645 | if (PyErr_Occurred()) SWIG_fail; | |
21646 | } | |
21647 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21648 | return resultobj; | |
21649 | fail: | |
21650 | return NULL; | |
21651 | } | |
21652 | ||
21653 | ||
21654 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21655 | PyObject *resultobj = 0; | |
21656 | wxDC *arg1 = (wxDC *) 0 ; | |
21657 | wxString *arg2 = 0 ; | |
21658 | int *arg3 = (int *) 0 ; | |
21659 | int *arg4 = (int *) 0 ; | |
21660 | void *argp1 = 0 ; | |
21661 | int res1 = 0 ; | |
21662 | bool temp2 = false ; | |
21663 | int temp3 ; | |
21664 | int res3 = SWIG_TMPOBJ ; | |
21665 | int temp4 ; | |
21666 | int res4 = SWIG_TMPOBJ ; | |
21667 | PyObject * obj0 = 0 ; | |
21668 | PyObject * obj1 = 0 ; | |
21669 | char * kwnames[] = { | |
21670 | (char *) "self",(char *) "string", NULL | |
21671 | }; | |
21672 | ||
21673 | arg3 = &temp3; | |
21674 | arg4 = &temp4; | |
21675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21676 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21677 | if (!SWIG_IsOK(res1)) { | |
21678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21679 | } | |
21680 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21681 | { | |
21682 | arg2 = wxString_in_helper(obj1); | |
21683 | if (arg2 == NULL) SWIG_fail; | |
21684 | temp2 = true; | |
21685 | } | |
21686 | { | |
21687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21688 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
21689 | wxPyEndAllowThreads(__tstate); | |
21690 | if (PyErr_Occurred()) SWIG_fail; | |
21691 | } | |
21692 | resultobj = SWIG_Py_Void(); | |
21693 | if (SWIG_IsTmpObj(res3)) { | |
21694 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21695 | } else { | |
21696 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21697 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21698 | } | |
21699 | if (SWIG_IsTmpObj(res4)) { | |
21700 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21701 | } else { | |
21702 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21703 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21704 | } | |
21705 | { | |
21706 | if (temp2) | |
21707 | delete arg2; | |
21708 | } | |
21709 | return resultobj; | |
21710 | fail: | |
21711 | { | |
21712 | if (temp2) | |
21713 | delete arg2; | |
21714 | } | |
21715 | return NULL; | |
21716 | } | |
21717 | ||
21718 | ||
21719 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21720 | PyObject *resultobj = 0; | |
21721 | wxDC *arg1 = (wxDC *) 0 ; | |
21722 | wxString *arg2 = 0 ; | |
21723 | int *arg3 = (int *) 0 ; | |
21724 | int *arg4 = (int *) 0 ; | |
21725 | int *arg5 = (int *) 0 ; | |
21726 | int *arg6 = (int *) 0 ; | |
21727 | wxFont *arg7 = (wxFont *) NULL ; | |
21728 | void *argp1 = 0 ; | |
21729 | int res1 = 0 ; | |
21730 | bool temp2 = false ; | |
21731 | int temp3 ; | |
21732 | int res3 = SWIG_TMPOBJ ; | |
21733 | int temp4 ; | |
21734 | int res4 = SWIG_TMPOBJ ; | |
21735 | int temp5 ; | |
21736 | int res5 = SWIG_TMPOBJ ; | |
21737 | int temp6 ; | |
21738 | int res6 = SWIG_TMPOBJ ; | |
21739 | void *argp7 = 0 ; | |
21740 | int res7 = 0 ; | |
21741 | PyObject * obj0 = 0 ; | |
21742 | PyObject * obj1 = 0 ; | |
21743 | PyObject * obj2 = 0 ; | |
21744 | char * kwnames[] = { | |
21745 | (char *) "self",(char *) "string",(char *) "font", NULL | |
21746 | }; | |
21747 | ||
21748 | arg3 = &temp3; | |
21749 | arg4 = &temp4; | |
21750 | arg5 = &temp5; | |
21751 | arg6 = &temp6; | |
21752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21754 | if (!SWIG_IsOK(res1)) { | |
21755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21756 | } | |
21757 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21758 | { | |
21759 | arg2 = wxString_in_helper(obj1); | |
21760 | if (arg2 == NULL) SWIG_fail; | |
21761 | temp2 = true; | |
21762 | } | |
21763 | if (obj2) { | |
21764 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21765 | if (!SWIG_IsOK(res7)) { | |
21766 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 21767 | } |
554f62e9 RD |
21768 | arg7 = reinterpret_cast< wxFont * >(argp7); |
21769 | } | |
21770 | { | |
21771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21772 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
21773 | wxPyEndAllowThreads(__tstate); | |
21774 | if (PyErr_Occurred()) SWIG_fail; | |
21775 | } | |
21776 | resultobj = SWIG_Py_Void(); | |
21777 | if (SWIG_IsTmpObj(res3)) { | |
21778 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21779 | } else { | |
21780 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21781 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21782 | } | |
21783 | if (SWIG_IsTmpObj(res4)) { | |
21784 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21785 | } else { | |
21786 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21787 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21788 | } | |
21789 | if (SWIG_IsTmpObj(res5)) { | |
21790 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21791 | } else { | |
21792 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21793 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21794 | } | |
21795 | if (SWIG_IsTmpObj(res6)) { | |
21796 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
21797 | } else { | |
21798 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21799 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
21800 | } | |
21801 | { | |
21802 | if (temp2) | |
21803 | delete arg2; | |
21804 | } | |
21805 | return resultobj; | |
21806 | fail: | |
21807 | { | |
21808 | if (temp2) | |
21809 | delete arg2; | |
21810 | } | |
21811 | return NULL; | |
21812 | } | |
21813 | ||
21814 | ||
21815 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21816 | PyObject *resultobj = 0; | |
21817 | wxDC *arg1 = (wxDC *) 0 ; | |
21818 | wxString *arg2 = 0 ; | |
21819 | int *arg3 = (int *) 0 ; | |
21820 | int *arg4 = (int *) 0 ; | |
21821 | int *arg5 = (int *) 0 ; | |
21822 | wxFont *arg6 = (wxFont *) NULL ; | |
21823 | void *argp1 = 0 ; | |
21824 | int res1 = 0 ; | |
21825 | bool temp2 = false ; | |
21826 | int temp3 ; | |
21827 | int res3 = SWIG_TMPOBJ ; | |
21828 | int temp4 ; | |
21829 | int res4 = SWIG_TMPOBJ ; | |
21830 | int temp5 ; | |
21831 | int res5 = SWIG_TMPOBJ ; | |
21832 | void *argp6 = 0 ; | |
21833 | int res6 = 0 ; | |
21834 | PyObject * obj0 = 0 ; | |
21835 | PyObject * obj1 = 0 ; | |
21836 | PyObject * obj2 = 0 ; | |
21837 | char * kwnames[] = { | |
21838 | (char *) "self",(char *) "text",(char *) "font", NULL | |
21839 | }; | |
21840 | ||
21841 | arg3 = &temp3; | |
21842 | arg4 = &temp4; | |
21843 | arg5 = &temp5; | |
21844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21846 | if (!SWIG_IsOK(res1)) { | |
21847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21848 | } | |
21849 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21850 | { | |
21851 | arg2 = wxString_in_helper(obj1); | |
21852 | if (arg2 == NULL) SWIG_fail; | |
21853 | temp2 = true; | |
21854 | } | |
21855 | if (obj2) { | |
21856 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21857 | if (!SWIG_IsOK(res6)) { | |
21858 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 21859 | } |
554f62e9 RD |
21860 | arg6 = reinterpret_cast< wxFont * >(argp6); |
21861 | } | |
21862 | { | |
21863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21864 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
21865 | wxPyEndAllowThreads(__tstate); | |
21866 | if (PyErr_Occurred()) SWIG_fail; | |
21867 | } | |
21868 | resultobj = SWIG_Py_Void(); | |
21869 | if (SWIG_IsTmpObj(res3)) { | |
21870 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21871 | } else { | |
21872 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21873 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21874 | } | |
21875 | if (SWIG_IsTmpObj(res4)) { | |
21876 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21877 | } else { | |
21878 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21879 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21880 | } | |
21881 | if (SWIG_IsTmpObj(res5)) { | |
21882 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21883 | } else { | |
21884 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21885 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21886 | } | |
21887 | { | |
21888 | if (temp2) | |
21889 | delete arg2; | |
21890 | } | |
21891 | return resultobj; | |
21892 | fail: | |
21893 | { | |
21894 | if (temp2) | |
21895 | delete arg2; | |
21896 | } | |
21897 | return NULL; | |
21898 | } | |
21899 | ||
21900 | ||
21901 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21902 | PyObject *resultobj = 0; | |
21903 | wxDC *arg1 = (wxDC *) 0 ; | |
21904 | wxString *arg2 = 0 ; | |
21905 | wxArrayInt result; | |
21906 | void *argp1 = 0 ; | |
21907 | int res1 = 0 ; | |
21908 | bool temp2 = false ; | |
21909 | PyObject * obj0 = 0 ; | |
21910 | PyObject * obj1 = 0 ; | |
21911 | char * kwnames[] = { | |
21912 | (char *) "self",(char *) "text", NULL | |
21913 | }; | |
21914 | ||
21915 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21916 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21917 | if (!SWIG_IsOK(res1)) { | |
21918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21919 | } | |
21920 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21921 | { | |
21922 | arg2 = wxString_in_helper(obj1); | |
21923 | if (arg2 == NULL) SWIG_fail; | |
21924 | temp2 = true; | |
21925 | } | |
21926 | { | |
21927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21928 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21929 | wxPyEndAllowThreads(__tstate); | |
21930 | if (PyErr_Occurred()) SWIG_fail; | |
21931 | } | |
21932 | { | |
b39fe951 | 21933 | resultobj = wxArrayInt2PyList_helper(result); |
554f62e9 RD |
21934 | } |
21935 | { | |
21936 | if (temp2) | |
21937 | delete arg2; | |
21938 | } | |
21939 | return resultobj; | |
21940 | fail: | |
21941 | { | |
21942 | if (temp2) | |
21943 | delete arg2; | |
21944 | } | |
21945 | return NULL; | |
21946 | } | |
21947 | ||
21948 | ||
21949 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21950 | PyObject *resultobj = 0; | |
21951 | wxDC *arg1 = (wxDC *) 0 ; | |
21952 | wxSize result; | |
21953 | void *argp1 = 0 ; | |
21954 | int res1 = 0 ; | |
21955 | PyObject *swig_obj[1] ; | |
21956 | ||
21957 | if (!args) SWIG_fail; | |
21958 | swig_obj[0] = args; | |
21959 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21960 | if (!SWIG_IsOK(res1)) { | |
21961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21962 | } | |
21963 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21964 | { | |
21965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21966 | result = (arg1)->GetSize(); | |
21967 | wxPyEndAllowThreads(__tstate); | |
21968 | if (PyErr_Occurred()) SWIG_fail; | |
21969 | } | |
21970 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21971 | return resultobj; | |
21972 | fail: | |
21973 | return NULL; | |
21974 | } | |
21975 | ||
21976 | ||
21977 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21978 | PyObject *resultobj = 0; | |
21979 | wxDC *arg1 = (wxDC *) 0 ; | |
21980 | int *arg2 = (int *) 0 ; | |
21981 | int *arg3 = (int *) 0 ; | |
21982 | void *argp1 = 0 ; | |
21983 | int res1 = 0 ; | |
21984 | int temp2 ; | |
21985 | int res2 = SWIG_TMPOBJ ; | |
21986 | int temp3 ; | |
21987 | int res3 = SWIG_TMPOBJ ; | |
21988 | PyObject *swig_obj[1] ; | |
21989 | ||
21990 | arg2 = &temp2; | |
21991 | arg3 = &temp3; | |
21992 | if (!args) SWIG_fail; | |
21993 | swig_obj[0] = args; | |
21994 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21995 | if (!SWIG_IsOK(res1)) { | |
21996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21997 | } | |
21998 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21999 | { | |
22000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22001 | (arg1)->GetSize(arg2,arg3); | |
22002 | wxPyEndAllowThreads(__tstate); | |
22003 | if (PyErr_Occurred()) SWIG_fail; | |
22004 | } | |
22005 | resultobj = SWIG_Py_Void(); | |
22006 | if (SWIG_IsTmpObj(res2)) { | |
22007 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22008 | } else { | |
22009 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22010 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22011 | } | |
22012 | if (SWIG_IsTmpObj(res3)) { | |
22013 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22014 | } else { | |
22015 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22016 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22017 | } | |
22018 | return resultobj; | |
22019 | fail: | |
22020 | return NULL; | |
22021 | } | |
22022 | ||
22023 | ||
22024 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22025 | PyObject *resultobj = 0; | |
22026 | wxDC *arg1 = (wxDC *) 0 ; | |
22027 | wxSize result; | |
22028 | void *argp1 = 0 ; | |
22029 | int res1 = 0 ; | |
22030 | PyObject *swig_obj[1] ; | |
22031 | ||
22032 | if (!args) SWIG_fail; | |
22033 | swig_obj[0] = args; | |
22034 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22035 | if (!SWIG_IsOK(res1)) { | |
22036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22037 | } | |
22038 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22039 | { | |
22040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22041 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
22042 | wxPyEndAllowThreads(__tstate); | |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
22044 | } | |
22045 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22046 | return resultobj; | |
22047 | fail: | |
22048 | return NULL; | |
22049 | } | |
22050 | ||
22051 | ||
22052 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22053 | PyObject *resultobj = 0; | |
22054 | wxDC *arg1 = (wxDC *) 0 ; | |
22055 | int *arg2 = (int *) 0 ; | |
22056 | int *arg3 = (int *) 0 ; | |
22057 | void *argp1 = 0 ; | |
22058 | int res1 = 0 ; | |
22059 | int temp2 ; | |
22060 | int res2 = SWIG_TMPOBJ ; | |
22061 | int temp3 ; | |
22062 | int res3 = SWIG_TMPOBJ ; | |
22063 | PyObject *swig_obj[1] ; | |
22064 | ||
22065 | arg2 = &temp2; | |
22066 | arg3 = &temp3; | |
22067 | if (!args) SWIG_fail; | |
22068 | swig_obj[0] = args; | |
22069 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22070 | if (!SWIG_IsOK(res1)) { | |
22071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22072 | } | |
22073 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22074 | { | |
22075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22076 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
22077 | wxPyEndAllowThreads(__tstate); | |
22078 | if (PyErr_Occurred()) SWIG_fail; | |
22079 | } | |
22080 | resultobj = SWIG_Py_Void(); | |
22081 | if (SWIG_IsTmpObj(res2)) { | |
22082 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22083 | } else { | |
22084 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22085 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22086 | } | |
22087 | if (SWIG_IsTmpObj(res3)) { | |
22088 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22089 | } else { | |
22090 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22091 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22092 | } | |
22093 | return resultobj; | |
22094 | fail: | |
22095 | return NULL; | |
22096 | } | |
22097 | ||
22098 | ||
22099 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22100 | PyObject *resultobj = 0; | |
22101 | wxDC *arg1 = (wxDC *) 0 ; | |
22102 | int arg2 ; | |
22103 | int result; | |
22104 | void *argp1 = 0 ; | |
22105 | int res1 = 0 ; | |
22106 | int val2 ; | |
22107 | int ecode2 = 0 ; | |
22108 | PyObject * obj0 = 0 ; | |
22109 | PyObject * obj1 = 0 ; | |
22110 | char * kwnames[] = { | |
22111 | (char *) "self",(char *) "x", NULL | |
22112 | }; | |
22113 | ||
22114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
22115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22116 | if (!SWIG_IsOK(res1)) { | |
22117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22118 | } | |
22119 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22120 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22121 | if (!SWIG_IsOK(ecode2)) { | |
22122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
22123 | } | |
22124 | arg2 = static_cast< int >(val2); | |
22125 | { | |
22126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22127 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
22128 | wxPyEndAllowThreads(__tstate); | |
22129 | if (PyErr_Occurred()) SWIG_fail; | |
22130 | } | |
22131 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22132 | return resultobj; | |
22133 | fail: | |
22134 | return NULL; | |
22135 | } | |
22136 | ||
22137 | ||
22138 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22139 | PyObject *resultobj = 0; | |
22140 | wxDC *arg1 = (wxDC *) 0 ; | |
22141 | int arg2 ; | |
22142 | int result; | |
22143 | void *argp1 = 0 ; | |
22144 | int res1 = 0 ; | |
22145 | int val2 ; | |
22146 | int ecode2 = 0 ; | |
22147 | PyObject * obj0 = 0 ; | |
22148 | PyObject * obj1 = 0 ; | |
22149 | char * kwnames[] = { | |
22150 | (char *) "self",(char *) "y", NULL | |
22151 | }; | |
22152 | ||
22153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
22154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22155 | if (!SWIG_IsOK(res1)) { | |
22156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22157 | } | |
22158 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22159 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22160 | if (!SWIG_IsOK(ecode2)) { | |
22161 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
22162 | } | |
22163 | arg2 = static_cast< int >(val2); | |
22164 | { | |
22165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22166 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
22167 | wxPyEndAllowThreads(__tstate); | |
22168 | if (PyErr_Occurred()) SWIG_fail; | |
22169 | } | |
22170 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22171 | return resultobj; | |
22172 | fail: | |
22173 | return NULL; | |
22174 | } | |
22175 | ||
22176 | ||
22177 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22178 | PyObject *resultobj = 0; | |
22179 | wxDC *arg1 = (wxDC *) 0 ; | |
22180 | int arg2 ; | |
22181 | int result; | |
22182 | void *argp1 = 0 ; | |
22183 | int res1 = 0 ; | |
22184 | int val2 ; | |
22185 | int ecode2 = 0 ; | |
22186 | PyObject * obj0 = 0 ; | |
22187 | PyObject * obj1 = 0 ; | |
22188 | char * kwnames[] = { | |
22189 | (char *) "self",(char *) "x", NULL | |
22190 | }; | |
22191 | ||
22192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22194 | if (!SWIG_IsOK(res1)) { | |
22195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22196 | } | |
22197 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22198 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22199 | if (!SWIG_IsOK(ecode2)) { | |
22200 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
22201 | } | |
22202 | arg2 = static_cast< int >(val2); | |
22203 | { | |
22204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22205 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
22206 | wxPyEndAllowThreads(__tstate); | |
22207 | if (PyErr_Occurred()) SWIG_fail; | |
22208 | } | |
22209 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22210 | return resultobj; | |
22211 | fail: | |
22212 | return NULL; | |
22213 | } | |
22214 | ||
22215 | ||
22216 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22217 | PyObject *resultobj = 0; | |
22218 | wxDC *arg1 = (wxDC *) 0 ; | |
22219 | int arg2 ; | |
22220 | int result; | |
22221 | void *argp1 = 0 ; | |
22222 | int res1 = 0 ; | |
22223 | int val2 ; | |
22224 | int ecode2 = 0 ; | |
22225 | PyObject * obj0 = 0 ; | |
22226 | PyObject * obj1 = 0 ; | |
22227 | char * kwnames[] = { | |
22228 | (char *) "self",(char *) "y", NULL | |
22229 | }; | |
22230 | ||
22231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22232 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22233 | if (!SWIG_IsOK(res1)) { | |
22234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22235 | } | |
22236 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22237 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22238 | if (!SWIG_IsOK(ecode2)) { | |
22239 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
22240 | } | |
22241 | arg2 = static_cast< int >(val2); | |
22242 | { | |
22243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22244 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
22245 | wxPyEndAllowThreads(__tstate); | |
22246 | if (PyErr_Occurred()) SWIG_fail; | |
22247 | } | |
22248 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22249 | return resultobj; | |
22250 | fail: | |
22251 | return NULL; | |
22252 | } | |
22253 | ||
22254 | ||
22255 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22256 | PyObject *resultobj = 0; | |
22257 | wxDC *arg1 = (wxDC *) 0 ; | |
22258 | int arg2 ; | |
22259 | int result; | |
22260 | void *argp1 = 0 ; | |
22261 | int res1 = 0 ; | |
22262 | int val2 ; | |
22263 | int ecode2 = 0 ; | |
22264 | PyObject * obj0 = 0 ; | |
22265 | PyObject * obj1 = 0 ; | |
22266 | char * kwnames[] = { | |
22267 | (char *) "self",(char *) "x", NULL | |
22268 | }; | |
22269 | ||
22270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
22271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22272 | if (!SWIG_IsOK(res1)) { | |
22273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22274 | } | |
22275 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22276 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22277 | if (!SWIG_IsOK(ecode2)) { | |
22278 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
22279 | } | |
22280 | arg2 = static_cast< int >(val2); | |
22281 | { | |
22282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22283 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
22284 | wxPyEndAllowThreads(__tstate); | |
22285 | if (PyErr_Occurred()) SWIG_fail; | |
22286 | } | |
22287 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22288 | return resultobj; | |
22289 | fail: | |
22290 | return NULL; | |
22291 | } | |
22292 | ||
22293 | ||
22294 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22295 | PyObject *resultobj = 0; | |
22296 | wxDC *arg1 = (wxDC *) 0 ; | |
22297 | int arg2 ; | |
22298 | int result; | |
22299 | void *argp1 = 0 ; | |
22300 | int res1 = 0 ; | |
22301 | int val2 ; | |
22302 | int ecode2 = 0 ; | |
22303 | PyObject * obj0 = 0 ; | |
22304 | PyObject * obj1 = 0 ; | |
22305 | char * kwnames[] = { | |
22306 | (char *) "self",(char *) "y", NULL | |
22307 | }; | |
22308 | ||
22309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
22310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22311 | if (!SWIG_IsOK(res1)) { | |
22312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22313 | } | |
22314 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22315 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22316 | if (!SWIG_IsOK(ecode2)) { | |
22317 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
22318 | } | |
22319 | arg2 = static_cast< int >(val2); | |
22320 | { | |
22321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22322 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
22323 | wxPyEndAllowThreads(__tstate); | |
22324 | if (PyErr_Occurred()) SWIG_fail; | |
22325 | } | |
22326 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22327 | return resultobj; | |
22328 | fail: | |
22329 | return NULL; | |
22330 | } | |
22331 | ||
22332 | ||
22333 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22334 | PyObject *resultobj = 0; | |
22335 | wxDC *arg1 = (wxDC *) 0 ; | |
22336 | int arg2 ; | |
22337 | int result; | |
22338 | void *argp1 = 0 ; | |
22339 | int res1 = 0 ; | |
22340 | int val2 ; | |
22341 | int ecode2 = 0 ; | |
22342 | PyObject * obj0 = 0 ; | |
22343 | PyObject * obj1 = 0 ; | |
22344 | char * kwnames[] = { | |
22345 | (char *) "self",(char *) "x", NULL | |
22346 | }; | |
22347 | ||
22348 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22349 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22350 | if (!SWIG_IsOK(res1)) { | |
22351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22352 | } | |
22353 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22354 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22355 | if (!SWIG_IsOK(ecode2)) { | |
22356 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
22357 | } | |
22358 | arg2 = static_cast< int >(val2); | |
22359 | { | |
22360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22361 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
22362 | wxPyEndAllowThreads(__tstate); | |
22363 | if (PyErr_Occurred()) SWIG_fail; | |
22364 | } | |
22365 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22366 | return resultobj; | |
22367 | fail: | |
22368 | return NULL; | |
22369 | } | |
22370 | ||
22371 | ||
22372 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22373 | PyObject *resultobj = 0; | |
22374 | wxDC *arg1 = (wxDC *) 0 ; | |
22375 | int arg2 ; | |
22376 | int result; | |
22377 | void *argp1 = 0 ; | |
22378 | int res1 = 0 ; | |
22379 | int val2 ; | |
22380 | int ecode2 = 0 ; | |
22381 | PyObject * obj0 = 0 ; | |
22382 | PyObject * obj1 = 0 ; | |
22383 | char * kwnames[] = { | |
22384 | (char *) "self",(char *) "y", NULL | |
22385 | }; | |
22386 | ||
22387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22389 | if (!SWIG_IsOK(res1)) { | |
22390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22391 | } | |
22392 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22393 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22394 | if (!SWIG_IsOK(ecode2)) { | |
22395 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
22396 | } | |
22397 | arg2 = static_cast< int >(val2); | |
22398 | { | |
22399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22400 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
22401 | wxPyEndAllowThreads(__tstate); | |
22402 | if (PyErr_Occurred()) SWIG_fail; | |
22403 | } | |
22404 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22405 | return resultobj; | |
22406 | fail: | |
22407 | return NULL; | |
22408 | } | |
22409 | ||
22410 | ||
22411 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(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_CanDrawBitmap" "', 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)->CanDrawBitmap(); | |
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_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22442 | PyObject *resultobj = 0; | |
22443 | wxDC *arg1 = (wxDC *) 0 ; | |
22444 | bool 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_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22454 | } | |
22455 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22456 | { | |
22457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22458 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
22459 | wxPyEndAllowThreads(__tstate); | |
22460 | if (PyErr_Occurred()) SWIG_fail; | |
22461 | } | |
22462 | { | |
22463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22464 | } | |
22465 | return resultobj; | |
22466 | fail: | |
22467 | return NULL; | |
22468 | } | |
22469 | ||
22470 | ||
22471 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22472 | PyObject *resultobj = 0; | |
22473 | wxDC *arg1 = (wxDC *) 0 ; | |
22474 | int result; | |
22475 | void *argp1 = 0 ; | |
22476 | int res1 = 0 ; | |
22477 | PyObject *swig_obj[1] ; | |
22478 | ||
22479 | if (!args) SWIG_fail; | |
22480 | swig_obj[0] = args; | |
22481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22482 | if (!SWIG_IsOK(res1)) { | |
22483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22484 | } | |
22485 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22486 | { | |
22487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22488 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
22489 | wxPyEndAllowThreads(__tstate); | |
22490 | if (PyErr_Occurred()) SWIG_fail; | |
22491 | } | |
22492 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22493 | return resultobj; | |
22494 | fail: | |
22495 | return NULL; | |
22496 | } | |
22497 | ||
22498 | ||
22499 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22500 | PyObject *resultobj = 0; | |
22501 | wxDC *arg1 = (wxDC *) 0 ; | |
22502 | wxSize result; | |
22503 | void *argp1 = 0 ; | |
22504 | int res1 = 0 ; | |
22505 | PyObject *swig_obj[1] ; | |
22506 | ||
22507 | if (!args) SWIG_fail; | |
22508 | swig_obj[0] = args; | |
22509 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22510 | if (!SWIG_IsOK(res1)) { | |
22511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22512 | } | |
22513 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22514 | { | |
22515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22516 | result = ((wxDC const *)arg1)->GetPPI(); | |
22517 | wxPyEndAllowThreads(__tstate); | |
22518 | if (PyErr_Occurred()) SWIG_fail; | |
22519 | } | |
22520 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22521 | return resultobj; | |
22522 | fail: | |
22523 | return NULL; | |
22524 | } | |
22525 | ||
22526 | ||
b39fe951 | 22527 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
22528 | PyObject *resultobj = 0; |
22529 | wxDC *arg1 = (wxDC *) 0 ; | |
22530 | bool 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)) { | |
b39fe951 | 22539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
554f62e9 RD |
22540 | } |
22541 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22542 | { | |
22543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 22544 | result = (bool)((wxDC const *)arg1)->IsOk(); |
554f62e9 RD |
22545 | wxPyEndAllowThreads(__tstate); |
22546 | if (PyErr_Occurred()) SWIG_fail; | |
22547 | } | |
22548 | { | |
22549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22550 | } | |
22551 | return resultobj; | |
22552 | fail: | |
22553 | return NULL; | |
22554 | } | |
22555 | ||
22556 | ||
22557 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22558 | PyObject *resultobj = 0; | |
22559 | wxDC *arg1 = (wxDC *) 0 ; | |
22560 | int result; | |
22561 | void *argp1 = 0 ; | |
22562 | int res1 = 0 ; | |
22563 | PyObject *swig_obj[1] ; | |
22564 | ||
22565 | if (!args) SWIG_fail; | |
22566 | swig_obj[0] = args; | |
22567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22568 | if (!SWIG_IsOK(res1)) { | |
22569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22570 | } | |
22571 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22572 | { | |
22573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22574 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
22575 | wxPyEndAllowThreads(__tstate); | |
22576 | if (PyErr_Occurred()) SWIG_fail; | |
22577 | } | |
22578 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22579 | return resultobj; | |
22580 | fail: | |
22581 | return NULL; | |
22582 | } | |
22583 | ||
22584 | ||
22585 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22586 | PyObject *resultobj = 0; | |
22587 | wxDC *arg1 = (wxDC *) 0 ; | |
22588 | wxBrush *result = 0 ; | |
22589 | void *argp1 = 0 ; | |
22590 | int res1 = 0 ; | |
22591 | PyObject *swig_obj[1] ; | |
22592 | ||
22593 | if (!args) SWIG_fail; | |
22594 | swig_obj[0] = args; | |
22595 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22596 | if (!SWIG_IsOK(res1)) { | |
22597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22598 | } | |
22599 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22600 | { | |
22601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22602 | { |
554f62e9 RD |
22603 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
22604 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22605 | } |
554f62e9 RD |
22606 | wxPyEndAllowThreads(__tstate); |
22607 | if (PyErr_Occurred()) SWIG_fail; | |
22608 | } | |
22609 | { | |
22610 | wxBrush* resultptr = new wxBrush(*result); | |
22611 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22612 | } | |
22613 | return resultobj; | |
22614 | fail: | |
22615 | return NULL; | |
22616 | } | |
22617 | ||
22618 | ||
22619 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22620 | PyObject *resultobj = 0; | |
22621 | wxDC *arg1 = (wxDC *) 0 ; | |
22622 | wxBrush *result = 0 ; | |
22623 | void *argp1 = 0 ; | |
22624 | int res1 = 0 ; | |
22625 | PyObject *swig_obj[1] ; | |
22626 | ||
22627 | if (!args) SWIG_fail; | |
22628 | swig_obj[0] = args; | |
22629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22630 | if (!SWIG_IsOK(res1)) { | |
22631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22632 | } | |
22633 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22634 | { | |
22635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22636 | { |
554f62e9 RD |
22637 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
22638 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22639 | } |
554f62e9 RD |
22640 | wxPyEndAllowThreads(__tstate); |
22641 | if (PyErr_Occurred()) SWIG_fail; | |
22642 | } | |
22643 | { | |
22644 | wxBrush* resultptr = new wxBrush(*result); | |
22645 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22646 | } | |
22647 | return resultobj; | |
22648 | fail: | |
22649 | return NULL; | |
22650 | } | |
22651 | ||
22652 | ||
22653 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22654 | PyObject *resultobj = 0; | |
22655 | wxDC *arg1 = (wxDC *) 0 ; | |
22656 | wxFont *result = 0 ; | |
22657 | void *argp1 = 0 ; | |
22658 | int res1 = 0 ; | |
22659 | PyObject *swig_obj[1] ; | |
22660 | ||
22661 | if (!args) SWIG_fail; | |
22662 | swig_obj[0] = args; | |
22663 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22664 | if (!SWIG_IsOK(res1)) { | |
22665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22666 | } | |
22667 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22668 | { | |
22669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22670 | { |
554f62e9 RD |
22671 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
22672 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 22673 | } |
554f62e9 RD |
22674 | wxPyEndAllowThreads(__tstate); |
22675 | if (PyErr_Occurred()) SWIG_fail; | |
22676 | } | |
22677 | { | |
22678 | wxFont* resultptr = new wxFont(*result); | |
22679 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
22680 | } | |
22681 | return resultobj; | |
22682 | fail: | |
22683 | return NULL; | |
22684 | } | |
22685 | ||
22686 | ||
22687 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22688 | PyObject *resultobj = 0; | |
22689 | wxDC *arg1 = (wxDC *) 0 ; | |
22690 | wxPen *result = 0 ; | |
22691 | void *argp1 = 0 ; | |
22692 | int res1 = 0 ; | |
22693 | PyObject *swig_obj[1] ; | |
22694 | ||
22695 | if (!args) SWIG_fail; | |
22696 | swig_obj[0] = args; | |
22697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22698 | if (!SWIG_IsOK(res1)) { | |
22699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22700 | } | |
22701 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22702 | { | |
22703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22704 | { |
554f62e9 RD |
22705 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
22706 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 22707 | } |
554f62e9 RD |
22708 | wxPyEndAllowThreads(__tstate); |
22709 | if (PyErr_Occurred()) SWIG_fail; | |
22710 | } | |
22711 | { | |
22712 | wxPen* resultptr = new wxPen(*result); | |
22713 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
22714 | } | |
22715 | return resultobj; | |
22716 | fail: | |
22717 | return NULL; | |
22718 | } | |
22719 | ||
22720 | ||
22721 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22722 | PyObject *resultobj = 0; | |
22723 | wxDC *arg1 = (wxDC *) 0 ; | |
22724 | wxColour *result = 0 ; | |
22725 | void *argp1 = 0 ; | |
22726 | int res1 = 0 ; | |
22727 | PyObject *swig_obj[1] ; | |
22728 | ||
22729 | if (!args) SWIG_fail; | |
22730 | swig_obj[0] = args; | |
22731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22732 | if (!SWIG_IsOK(res1)) { | |
22733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22734 | } | |
22735 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22736 | { | |
22737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22738 | { |
554f62e9 RD |
22739 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
22740 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22741 | } |
554f62e9 RD |
22742 | wxPyEndAllowThreads(__tstate); |
22743 | if (PyErr_Occurred()) SWIG_fail; | |
22744 | } | |
22745 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22746 | return resultobj; | |
22747 | fail: | |
22748 | return NULL; | |
22749 | } | |
22750 | ||
22751 | ||
22752 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22753 | PyObject *resultobj = 0; | |
22754 | wxDC *arg1 = (wxDC *) 0 ; | |
22755 | wxColour *result = 0 ; | |
22756 | void *argp1 = 0 ; | |
22757 | int res1 = 0 ; | |
22758 | PyObject *swig_obj[1] ; | |
22759 | ||
22760 | if (!args) SWIG_fail; | |
22761 | swig_obj[0] = args; | |
22762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22763 | if (!SWIG_IsOK(res1)) { | |
22764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22765 | } | |
22766 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22767 | { | |
22768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22769 | { |
554f62e9 RD |
22770 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
22771 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22772 | } |
554f62e9 RD |
22773 | wxPyEndAllowThreads(__tstate); |
22774 | if (PyErr_Occurred()) SWIG_fail; | |
22775 | } | |
22776 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22777 | return resultobj; | |
22778 | fail: | |
22779 | return NULL; | |
22780 | } | |
22781 | ||
22782 | ||
22783 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22784 | PyObject *resultobj = 0; | |
22785 | wxDC *arg1 = (wxDC *) 0 ; | |
22786 | wxColour *arg2 = 0 ; | |
22787 | void *argp1 = 0 ; | |
22788 | int res1 = 0 ; | |
22789 | wxColour temp2 ; | |
22790 | PyObject * obj0 = 0 ; | |
22791 | PyObject * obj1 = 0 ; | |
22792 | char * kwnames[] = { | |
22793 | (char *) "self",(char *) "colour", NULL | |
22794 | }; | |
22795 | ||
22796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22798 | if (!SWIG_IsOK(res1)) { | |
22799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22800 | } | |
22801 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22802 | { | |
22803 | arg2 = &temp2; | |
22804 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22805 | } | |
22806 | { | |
22807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22808 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
22809 | wxPyEndAllowThreads(__tstate); | |
22810 | if (PyErr_Occurred()) SWIG_fail; | |
22811 | } | |
22812 | resultobj = SWIG_Py_Void(); | |
22813 | return resultobj; | |
22814 | fail: | |
22815 | return NULL; | |
22816 | } | |
22817 | ||
22818 | ||
22819 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22820 | PyObject *resultobj = 0; | |
22821 | wxDC *arg1 = (wxDC *) 0 ; | |
22822 | wxColour *arg2 = 0 ; | |
22823 | void *argp1 = 0 ; | |
22824 | int res1 = 0 ; | |
22825 | wxColour temp2 ; | |
22826 | PyObject * obj0 = 0 ; | |
22827 | PyObject * obj1 = 0 ; | |
22828 | char * kwnames[] = { | |
22829 | (char *) "self",(char *) "colour", NULL | |
22830 | }; | |
22831 | ||
22832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22834 | if (!SWIG_IsOK(res1)) { | |
22835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22836 | } | |
22837 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22838 | { | |
22839 | arg2 = &temp2; | |
22840 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22841 | } | |
22842 | { | |
22843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22844 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
22845 | wxPyEndAllowThreads(__tstate); | |
22846 | if (PyErr_Occurred()) SWIG_fail; | |
22847 | } | |
22848 | resultobj = SWIG_Py_Void(); | |
22849 | return resultobj; | |
22850 | fail: | |
22851 | return NULL; | |
22852 | } | |
22853 | ||
22854 | ||
22855 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22856 | PyObject *resultobj = 0; | |
22857 | wxDC *arg1 = (wxDC *) 0 ; | |
22858 | int result; | |
22859 | void *argp1 = 0 ; | |
22860 | int res1 = 0 ; | |
22861 | PyObject *swig_obj[1] ; | |
22862 | ||
22863 | if (!args) SWIG_fail; | |
22864 | swig_obj[0] = args; | |
22865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22866 | if (!SWIG_IsOK(res1)) { | |
22867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22868 | } | |
22869 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22870 | { | |
22871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22872 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22873 | wxPyEndAllowThreads(__tstate); | |
22874 | if (PyErr_Occurred()) SWIG_fail; | |
22875 | } | |
22876 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22877 | return resultobj; | |
22878 | fail: | |
22879 | return NULL; | |
22880 | } | |
22881 | ||
22882 | ||
22883 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22884 | PyObject *resultobj = 0; | |
22885 | wxDC *arg1 = (wxDC *) 0 ; | |
22886 | int arg2 ; | |
22887 | void *argp1 = 0 ; | |
22888 | int res1 = 0 ; | |
22889 | int val2 ; | |
22890 | int ecode2 = 0 ; | |
22891 | PyObject * obj0 = 0 ; | |
22892 | PyObject * obj1 = 0 ; | |
22893 | char * kwnames[] = { | |
22894 | (char *) "self",(char *) "mode", NULL | |
22895 | }; | |
22896 | ||
22897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22899 | if (!SWIG_IsOK(res1)) { | |
22900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22901 | } | |
22902 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22903 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22904 | if (!SWIG_IsOK(ecode2)) { | |
22905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22906 | } | |
22907 | arg2 = static_cast< int >(val2); | |
22908 | { | |
22909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22910 | (arg1)->SetMapMode(arg2); | |
22911 | wxPyEndAllowThreads(__tstate); | |
22912 | if (PyErr_Occurred()) SWIG_fail; | |
22913 | } | |
22914 | resultobj = SWIG_Py_Void(); | |
22915 | return resultobj; | |
22916 | fail: | |
22917 | return NULL; | |
22918 | } | |
22919 | ||
22920 | ||
22921 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22922 | PyObject *resultobj = 0; | |
22923 | wxDC *arg1 = (wxDC *) 0 ; | |
22924 | double *arg2 = (double *) 0 ; | |
22925 | double *arg3 = (double *) 0 ; | |
22926 | void *argp1 = 0 ; | |
22927 | int res1 = 0 ; | |
22928 | double temp2 ; | |
22929 | int res2 = SWIG_TMPOBJ ; | |
22930 | double temp3 ; | |
22931 | int res3 = SWIG_TMPOBJ ; | |
22932 | PyObject *swig_obj[1] ; | |
22933 | ||
22934 | arg2 = &temp2; | |
22935 | arg3 = &temp3; | |
22936 | if (!args) SWIG_fail; | |
22937 | swig_obj[0] = args; | |
22938 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22939 | if (!SWIG_IsOK(res1)) { | |
22940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22941 | } | |
22942 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22943 | { | |
22944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22945 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22946 | wxPyEndAllowThreads(__tstate); | |
22947 | if (PyErr_Occurred()) SWIG_fail; | |
22948 | } | |
22949 | resultobj = SWIG_Py_Void(); | |
22950 | if (SWIG_IsTmpObj(res2)) { | |
22951 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22952 | } else { | |
22953 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22954 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22955 | } | |
22956 | if (SWIG_IsTmpObj(res3)) { | |
22957 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22958 | } else { | |
22959 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22960 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22961 | } | |
22962 | return resultobj; | |
22963 | fail: | |
22964 | return NULL; | |
22965 | } | |
22966 | ||
22967 | ||
22968 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22969 | PyObject *resultobj = 0; | |
22970 | wxDC *arg1 = (wxDC *) 0 ; | |
22971 | double arg2 ; | |
22972 | double arg3 ; | |
22973 | void *argp1 = 0 ; | |
22974 | int res1 = 0 ; | |
22975 | double val2 ; | |
22976 | int ecode2 = 0 ; | |
22977 | double val3 ; | |
22978 | int ecode3 = 0 ; | |
22979 | PyObject * obj0 = 0 ; | |
22980 | PyObject * obj1 = 0 ; | |
22981 | PyObject * obj2 = 0 ; | |
22982 | char * kwnames[] = { | |
22983 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22984 | }; | |
22985 | ||
22986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22988 | if (!SWIG_IsOK(res1)) { | |
22989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22990 | } | |
22991 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22992 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22993 | if (!SWIG_IsOK(ecode2)) { | |
22994 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22995 | } | |
22996 | arg2 = static_cast< double >(val2); | |
22997 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22998 | if (!SWIG_IsOK(ecode3)) { | |
22999 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
23000 | } | |
23001 | arg3 = static_cast< double >(val3); | |
23002 | { | |
23003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23004 | (arg1)->SetUserScale(arg2,arg3); | |
23005 | wxPyEndAllowThreads(__tstate); | |
23006 | if (PyErr_Occurred()) SWIG_fail; | |
23007 | } | |
23008 | resultobj = SWIG_Py_Void(); | |
23009 | return resultobj; | |
23010 | fail: | |
23011 | return NULL; | |
23012 | } | |
23013 | ||
23014 | ||
23015 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23016 | PyObject *resultobj = 0; | |
23017 | wxDC *arg1 = (wxDC *) 0 ; | |
23018 | double *arg2 = (double *) 0 ; | |
23019 | double *arg3 = (double *) 0 ; | |
23020 | void *argp1 = 0 ; | |
23021 | int res1 = 0 ; | |
23022 | double temp2 ; | |
23023 | int res2 = SWIG_TMPOBJ ; | |
23024 | double temp3 ; | |
23025 | int res3 = SWIG_TMPOBJ ; | |
23026 | PyObject *swig_obj[1] ; | |
23027 | ||
23028 | arg2 = &temp2; | |
23029 | arg3 = &temp3; | |
23030 | if (!args) SWIG_fail; | |
23031 | swig_obj[0] = args; | |
23032 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23033 | if (!SWIG_IsOK(res1)) { | |
23034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23035 | } | |
23036 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23037 | { | |
23038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23039 | (arg1)->GetLogicalScale(arg2,arg3); | |
23040 | wxPyEndAllowThreads(__tstate); | |
23041 | if (PyErr_Occurred()) SWIG_fail; | |
23042 | } | |
23043 | resultobj = SWIG_Py_Void(); | |
23044 | if (SWIG_IsTmpObj(res2)) { | |
23045 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
23046 | } else { | |
23047 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23048 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
23049 | } | |
23050 | if (SWIG_IsTmpObj(res3)) { | |
23051 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
23052 | } else { | |
23053 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23054 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
23055 | } | |
23056 | return resultobj; | |
23057 | fail: | |
23058 | return NULL; | |
23059 | } | |
23060 | ||
23061 | ||
23062 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23063 | PyObject *resultobj = 0; | |
23064 | wxDC *arg1 = (wxDC *) 0 ; | |
23065 | double arg2 ; | |
23066 | double arg3 ; | |
23067 | void *argp1 = 0 ; | |
23068 | int res1 = 0 ; | |
23069 | double val2 ; | |
23070 | int ecode2 = 0 ; | |
23071 | double val3 ; | |
23072 | int ecode3 = 0 ; | |
23073 | PyObject * obj0 = 0 ; | |
23074 | PyObject * obj1 = 0 ; | |
23075 | PyObject * obj2 = 0 ; | |
23076 | char * kwnames[] = { | |
23077 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23078 | }; | |
23079 | ||
23080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23082 | if (!SWIG_IsOK(res1)) { | |
23083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23084 | } | |
23085 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23086 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
23087 | if (!SWIG_IsOK(ecode2)) { | |
23088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
23089 | } | |
23090 | arg2 = static_cast< double >(val2); | |
23091 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
23092 | if (!SWIG_IsOK(ecode3)) { | |
23093 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
23094 | } | |
23095 | arg3 = static_cast< double >(val3); | |
23096 | { | |
23097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23098 | (arg1)->SetLogicalScale(arg2,arg3); | |
23099 | wxPyEndAllowThreads(__tstate); | |
23100 | if (PyErr_Occurred()) SWIG_fail; | |
23101 | } | |
23102 | resultobj = SWIG_Py_Void(); | |
23103 | return resultobj; | |
23104 | fail: | |
23105 | return NULL; | |
23106 | } | |
23107 | ||
23108 | ||
23109 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23110 | PyObject *resultobj = 0; | |
23111 | wxDC *arg1 = (wxDC *) 0 ; | |
23112 | wxPoint result; | |
23113 | void *argp1 = 0 ; | |
23114 | int res1 = 0 ; | |
23115 | PyObject *swig_obj[1] ; | |
23116 | ||
23117 | if (!args) SWIG_fail; | |
23118 | swig_obj[0] = args; | |
23119 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23120 | if (!SWIG_IsOK(res1)) { | |
23121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23122 | } | |
23123 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23124 | { | |
23125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23126 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
23127 | wxPyEndAllowThreads(__tstate); | |
23128 | if (PyErr_Occurred()) SWIG_fail; | |
23129 | } | |
23130 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
23131 | return resultobj; | |
23132 | fail: | |
23133 | return NULL; | |
23134 | } | |
23135 | ||
23136 | ||
23137 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23138 | PyObject *resultobj = 0; | |
23139 | wxDC *arg1 = (wxDC *) 0 ; | |
23140 | int *arg2 = (int *) 0 ; | |
23141 | int *arg3 = (int *) 0 ; | |
23142 | void *argp1 = 0 ; | |
23143 | int res1 = 0 ; | |
23144 | int temp2 ; | |
23145 | int res2 = SWIG_TMPOBJ ; | |
23146 | int temp3 ; | |
23147 | int res3 = SWIG_TMPOBJ ; | |
23148 | PyObject *swig_obj[1] ; | |
23149 | ||
23150 | arg2 = &temp2; | |
23151 | arg3 = &temp3; | |
23152 | if (!args) SWIG_fail; | |
23153 | swig_obj[0] = args; | |
23154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23155 | if (!SWIG_IsOK(res1)) { | |
23156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23157 | } | |
23158 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23159 | { | |
23160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23161 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
23162 | wxPyEndAllowThreads(__tstate); | |
23163 | if (PyErr_Occurred()) SWIG_fail; | |
23164 | } | |
23165 | resultobj = SWIG_Py_Void(); | |
23166 | if (SWIG_IsTmpObj(res2)) { | |
23167 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23168 | } else { | |
23169 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23170 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23171 | } | |
23172 | if (SWIG_IsTmpObj(res3)) { | |
23173 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23174 | } else { | |
23175 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23176 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23177 | } | |
23178 | return resultobj; | |
23179 | fail: | |
23180 | return NULL; | |
23181 | } | |
23182 | ||
23183 | ||
23184 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23185 | PyObject *resultobj = 0; | |
23186 | wxDC *arg1 = (wxDC *) 0 ; | |
23187 | int arg2 ; | |
23188 | int arg3 ; | |
23189 | void *argp1 = 0 ; | |
23190 | int res1 = 0 ; | |
23191 | int val2 ; | |
23192 | int ecode2 = 0 ; | |
23193 | int val3 ; | |
23194 | int ecode3 = 0 ; | |
23195 | PyObject * obj0 = 0 ; | |
23196 | PyObject * obj1 = 0 ; | |
23197 | PyObject * obj2 = 0 ; | |
23198 | char * kwnames[] = { | |
23199 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23200 | }; | |
23201 | ||
23202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23204 | if (!SWIG_IsOK(res1)) { | |
23205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23206 | } | |
23207 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23208 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23209 | if (!SWIG_IsOK(ecode2)) { | |
23210 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
23211 | } | |
23212 | arg2 = static_cast< int >(val2); | |
23213 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23214 | if (!SWIG_IsOK(ecode3)) { | |
23215 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
23216 | } | |
23217 | arg3 = static_cast< int >(val3); | |
23218 | { | |
23219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23220 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
23221 | wxPyEndAllowThreads(__tstate); | |
23222 | if (PyErr_Occurred()) SWIG_fail; | |
23223 | } | |
23224 | resultobj = SWIG_Py_Void(); | |
23225 | return resultobj; | |
23226 | fail: | |
23227 | return NULL; | |
23228 | } | |
23229 | ||
23230 | ||
23231 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23232 | PyObject *resultobj = 0; | |
23233 | wxDC *arg1 = (wxDC *) 0 ; | |
23234 | wxPoint *arg2 = 0 ; | |
23235 | void *argp1 = 0 ; | |
23236 | int res1 = 0 ; | |
23237 | wxPoint temp2 ; | |
23238 | PyObject * obj0 = 0 ; | |
23239 | PyObject * obj1 = 0 ; | |
23240 | char * kwnames[] = { | |
23241 | (char *) "self",(char *) "point", NULL | |
23242 | }; | |
23243 | ||
23244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23245 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23246 | if (!SWIG_IsOK(res1)) { | |
23247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23248 | } | |
23249 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23250 | { | |
23251 | arg2 = &temp2; | |
23252 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23253 | } | |
23254 | { | |
23255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23256 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
23257 | wxPyEndAllowThreads(__tstate); | |
23258 | if (PyErr_Occurred()) SWIG_fail; | |
23259 | } | |
23260 | resultobj = SWIG_Py_Void(); | |
23261 | return resultobj; | |
23262 | fail: | |
23263 | return NULL; | |
23264 | } | |
23265 | ||
23266 | ||
23267 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23268 | PyObject *resultobj = 0; | |
23269 | wxDC *arg1 = (wxDC *) 0 ; | |
23270 | wxPoint result; | |
23271 | void *argp1 = 0 ; | |
23272 | int res1 = 0 ; | |
23273 | PyObject *swig_obj[1] ; | |
23274 | ||
23275 | if (!args) SWIG_fail; | |
23276 | swig_obj[0] = args; | |
23277 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23278 | if (!SWIG_IsOK(res1)) { | |
23279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23280 | } | |
23281 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23282 | { | |
23283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23284 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
23285 | wxPyEndAllowThreads(__tstate); | |
23286 | if (PyErr_Occurred()) SWIG_fail; | |
23287 | } | |
23288 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
23289 | return resultobj; | |
23290 | fail: | |
23291 | return NULL; | |
23292 | } | |
23293 | ||
23294 | ||
23295 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23296 | PyObject *resultobj = 0; | |
23297 | wxDC *arg1 = (wxDC *) 0 ; | |
23298 | int *arg2 = (int *) 0 ; | |
23299 | int *arg3 = (int *) 0 ; | |
23300 | void *argp1 = 0 ; | |
23301 | int res1 = 0 ; | |
23302 | int temp2 ; | |
23303 | int res2 = SWIG_TMPOBJ ; | |
23304 | int temp3 ; | |
23305 | int res3 = SWIG_TMPOBJ ; | |
23306 | PyObject *swig_obj[1] ; | |
23307 | ||
23308 | arg2 = &temp2; | |
23309 | arg3 = &temp3; | |
23310 | if (!args) SWIG_fail; | |
23311 | swig_obj[0] = args; | |
23312 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23313 | if (!SWIG_IsOK(res1)) { | |
23314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23315 | } | |
23316 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23317 | { | |
23318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23319 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
23320 | wxPyEndAllowThreads(__tstate); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
23323 | resultobj = SWIG_Py_Void(); | |
23324 | if (SWIG_IsTmpObj(res2)) { | |
23325 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23326 | } else { | |
23327 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23328 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23329 | } | |
23330 | if (SWIG_IsTmpObj(res3)) { | |
23331 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23332 | } else { | |
23333 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23334 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23335 | } | |
23336 | return resultobj; | |
23337 | fail: | |
23338 | return NULL; | |
23339 | } | |
23340 | ||
23341 | ||
23342 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23343 | PyObject *resultobj = 0; | |
23344 | wxDC *arg1 = (wxDC *) 0 ; | |
23345 | int arg2 ; | |
23346 | int arg3 ; | |
23347 | void *argp1 = 0 ; | |
23348 | int res1 = 0 ; | |
23349 | int val2 ; | |
23350 | int ecode2 = 0 ; | |
23351 | int val3 ; | |
23352 | int ecode3 = 0 ; | |
23353 | PyObject * obj0 = 0 ; | |
23354 | PyObject * obj1 = 0 ; | |
23355 | PyObject * obj2 = 0 ; | |
23356 | char * kwnames[] = { | |
23357 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23358 | }; | |
23359 | ||
23360 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23361 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23362 | if (!SWIG_IsOK(res1)) { | |
23363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23364 | } | |
23365 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23366 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23367 | if (!SWIG_IsOK(ecode2)) { | |
23368 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
23369 | } | |
23370 | arg2 = static_cast< int >(val2); | |
23371 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23372 | if (!SWIG_IsOK(ecode3)) { | |
23373 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
23374 | } | |
23375 | arg3 = static_cast< int >(val3); | |
23376 | { | |
23377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23378 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
23379 | wxPyEndAllowThreads(__tstate); | |
23380 | if (PyErr_Occurred()) SWIG_fail; | |
23381 | } | |
23382 | resultobj = SWIG_Py_Void(); | |
23383 | return resultobj; | |
23384 | fail: | |
23385 | return NULL; | |
23386 | } | |
23387 | ||
23388 | ||
23389 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23390 | PyObject *resultobj = 0; | |
23391 | wxDC *arg1 = (wxDC *) 0 ; | |
23392 | wxPoint *arg2 = 0 ; | |
23393 | void *argp1 = 0 ; | |
23394 | int res1 = 0 ; | |
23395 | wxPoint temp2 ; | |
23396 | PyObject * obj0 = 0 ; | |
23397 | PyObject * obj1 = 0 ; | |
23398 | char * kwnames[] = { | |
23399 | (char *) "self",(char *) "point", NULL | |
23400 | }; | |
23401 | ||
23402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23404 | if (!SWIG_IsOK(res1)) { | |
23405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23406 | } | |
23407 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23408 | { | |
23409 | arg2 = &temp2; | |
23410 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23411 | } | |
23412 | { | |
23413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23414 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
23415 | wxPyEndAllowThreads(__tstate); | |
23416 | if (PyErr_Occurred()) SWIG_fail; | |
23417 | } | |
23418 | resultobj = SWIG_Py_Void(); | |
23419 | return resultobj; | |
23420 | fail: | |
23421 | return NULL; | |
23422 | } | |
23423 | ||
23424 | ||
23425 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23426 | PyObject *resultobj = 0; | |
23427 | wxDC *arg1 = (wxDC *) 0 ; | |
23428 | bool arg2 ; | |
23429 | bool arg3 ; | |
23430 | void *argp1 = 0 ; | |
23431 | int res1 = 0 ; | |
23432 | bool val2 ; | |
23433 | int ecode2 = 0 ; | |
23434 | bool val3 ; | |
23435 | int ecode3 = 0 ; | |
23436 | PyObject * obj0 = 0 ; | |
23437 | PyObject * obj1 = 0 ; | |
23438 | PyObject * obj2 = 0 ; | |
23439 | char * kwnames[] = { | |
23440 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
23441 | }; | |
23442 | ||
23443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23445 | if (!SWIG_IsOK(res1)) { | |
23446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23447 | } | |
23448 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23449 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23450 | if (!SWIG_IsOK(ecode2)) { | |
23451 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
23452 | } | |
23453 | arg2 = static_cast< bool >(val2); | |
23454 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
23455 | if (!SWIG_IsOK(ecode3)) { | |
23456 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
23457 | } | |
23458 | arg3 = static_cast< bool >(val3); | |
23459 | { | |
23460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23461 | (arg1)->SetAxisOrientation(arg2,arg3); | |
23462 | wxPyEndAllowThreads(__tstate); | |
23463 | if (PyErr_Occurred()) SWIG_fail; | |
23464 | } | |
23465 | resultobj = SWIG_Py_Void(); | |
23466 | return resultobj; | |
23467 | fail: | |
23468 | return NULL; | |
23469 | } | |
23470 | ||
23471 | ||
23472 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23473 | PyObject *resultobj = 0; | |
23474 | wxDC *arg1 = (wxDC *) 0 ; | |
23475 | int result; | |
23476 | void *argp1 = 0 ; | |
23477 | int res1 = 0 ; | |
23478 | PyObject *swig_obj[1] ; | |
23479 | ||
23480 | if (!args) SWIG_fail; | |
23481 | swig_obj[0] = args; | |
23482 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23483 | if (!SWIG_IsOK(res1)) { | |
23484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23485 | } | |
23486 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23487 | { | |
23488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23489 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
23490 | wxPyEndAllowThreads(__tstate); | |
23491 | if (PyErr_Occurred()) SWIG_fail; | |
23492 | } | |
23493 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23494 | return resultobj; | |
23495 | fail: | |
23496 | return NULL; | |
23497 | } | |
23498 | ||
23499 | ||
23500 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23501 | PyObject *resultobj = 0; | |
23502 | wxDC *arg1 = (wxDC *) 0 ; | |
23503 | int arg2 ; | |
23504 | void *argp1 = 0 ; | |
23505 | int res1 = 0 ; | |
23506 | int val2 ; | |
23507 | int ecode2 = 0 ; | |
23508 | PyObject * obj0 = 0 ; | |
23509 | PyObject * obj1 = 0 ; | |
23510 | char * kwnames[] = { | |
23511 | (char *) "self",(char *) "function", NULL | |
23512 | }; | |
23513 | ||
23514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
23515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23516 | if (!SWIG_IsOK(res1)) { | |
23517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23518 | } | |
23519 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23520 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23521 | if (!SWIG_IsOK(ecode2)) { | |
23522 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
23523 | } | |
23524 | arg2 = static_cast< int >(val2); | |
23525 | { | |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | (arg1)->SetLogicalFunction(arg2); | |
23528 | wxPyEndAllowThreads(__tstate); | |
23529 | if (PyErr_Occurred()) SWIG_fail; | |
23530 | } | |
23531 | resultobj = SWIG_Py_Void(); | |
23532 | return resultobj; | |
23533 | fail: | |
23534 | return NULL; | |
23535 | } | |
23536 | ||
23537 | ||
23538 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23539 | PyObject *resultobj = 0; | |
23540 | wxDC *arg1 = (wxDC *) 0 ; | |
23541 | void *argp1 = 0 ; | |
23542 | int res1 = 0 ; | |
23543 | PyObject *swig_obj[1] ; | |
23544 | ||
23545 | if (!args) SWIG_fail; | |
23546 | swig_obj[0] = args; | |
23547 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23548 | if (!SWIG_IsOK(res1)) { | |
23549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23550 | } | |
23551 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23552 | { | |
23553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23554 | (arg1)->ComputeScaleAndOrigin(); | |
23555 | wxPyEndAllowThreads(__tstate); | |
23556 | if (PyErr_Occurred()) SWIG_fail; | |
23557 | } | |
23558 | resultobj = SWIG_Py_Void(); | |
23559 | return resultobj; | |
23560 | fail: | |
23561 | return NULL; | |
23562 | } | |
23563 | ||
23564 | ||
23565 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23566 | PyObject *resultobj = 0; | |
23567 | wxDC *arg1 = (wxDC *) 0 ; | |
23568 | int arg2 ; | |
23569 | int arg3 ; | |
23570 | void *argp1 = 0 ; | |
23571 | int res1 = 0 ; | |
23572 | int val2 ; | |
23573 | int ecode2 = 0 ; | |
23574 | int val3 ; | |
23575 | int ecode3 = 0 ; | |
23576 | PyObject * obj0 = 0 ; | |
23577 | PyObject * obj1 = 0 ; | |
23578 | PyObject * obj2 = 0 ; | |
23579 | char * kwnames[] = { | |
23580 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23581 | }; | |
23582 | ||
23583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23585 | if (!SWIG_IsOK(res1)) { | |
23586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23587 | } | |
23588 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23589 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23590 | if (!SWIG_IsOK(ecode2)) { | |
23591 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
23592 | } | |
23593 | arg2 = static_cast< int >(val2); | |
23594 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23595 | if (!SWIG_IsOK(ecode3)) { | |
23596 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
23597 | } | |
23598 | arg3 = static_cast< int >(val3); | |
23599 | { | |
23600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23601 | (arg1)->CalcBoundingBox(arg2,arg3); | |
23602 | wxPyEndAllowThreads(__tstate); | |
23603 | if (PyErr_Occurred()) SWIG_fail; | |
23604 | } | |
23605 | resultobj = SWIG_Py_Void(); | |
23606 | return resultobj; | |
23607 | fail: | |
23608 | return NULL; | |
23609 | } | |
23610 | ||
23611 | ||
23612 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23613 | PyObject *resultobj = 0; | |
23614 | wxDC *arg1 = (wxDC *) 0 ; | |
23615 | wxPoint *arg2 = 0 ; | |
23616 | void *argp1 = 0 ; | |
23617 | int res1 = 0 ; | |
23618 | wxPoint temp2 ; | |
23619 | PyObject * obj0 = 0 ; | |
23620 | PyObject * obj1 = 0 ; | |
23621 | char * kwnames[] = { | |
23622 | (char *) "self",(char *) "point", NULL | |
23623 | }; | |
23624 | ||
23625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23627 | if (!SWIG_IsOK(res1)) { | |
23628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23629 | } | |
23630 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23631 | { | |
23632 | arg2 = &temp2; | |
23633 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23634 | } | |
23635 | { | |
23636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23637 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
23638 | wxPyEndAllowThreads(__tstate); | |
23639 | if (PyErr_Occurred()) SWIG_fail; | |
23640 | } | |
23641 | resultobj = SWIG_Py_Void(); | |
23642 | return resultobj; | |
23643 | fail: | |
23644 | return NULL; | |
23645 | } | |
23646 | ||
23647 | ||
23648 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23649 | PyObject *resultobj = 0; | |
23650 | wxDC *arg1 = (wxDC *) 0 ; | |
23651 | void *argp1 = 0 ; | |
23652 | int res1 = 0 ; | |
23653 | PyObject *swig_obj[1] ; | |
23654 | ||
23655 | if (!args) SWIG_fail; | |
23656 | swig_obj[0] = args; | |
23657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23658 | if (!SWIG_IsOK(res1)) { | |
23659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23660 | } | |
23661 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23662 | { | |
23663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23664 | (arg1)->ResetBoundingBox(); | |
23665 | wxPyEndAllowThreads(__tstate); | |
23666 | if (PyErr_Occurred()) SWIG_fail; | |
23667 | } | |
23668 | resultobj = SWIG_Py_Void(); | |
23669 | return resultobj; | |
23670 | fail: | |
23671 | return NULL; | |
23672 | } | |
23673 | ||
23674 | ||
23675 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23676 | PyObject *resultobj = 0; | |
23677 | wxDC *arg1 = (wxDC *) 0 ; | |
23678 | int result; | |
23679 | void *argp1 = 0 ; | |
23680 | int res1 = 0 ; | |
23681 | PyObject *swig_obj[1] ; | |
23682 | ||
23683 | if (!args) SWIG_fail; | |
23684 | swig_obj[0] = args; | |
23685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23686 | if (!SWIG_IsOK(res1)) { | |
23687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23688 | } | |
23689 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23690 | { | |
23691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23692 | result = (int)((wxDC const *)arg1)->MinX(); | |
23693 | wxPyEndAllowThreads(__tstate); | |
23694 | if (PyErr_Occurred()) SWIG_fail; | |
23695 | } | |
23696 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23697 | return resultobj; | |
23698 | fail: | |
23699 | return NULL; | |
23700 | } | |
23701 | ||
23702 | ||
23703 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23704 | PyObject *resultobj = 0; | |
23705 | wxDC *arg1 = (wxDC *) 0 ; | |
23706 | int result; | |
23707 | void *argp1 = 0 ; | |
23708 | int res1 = 0 ; | |
23709 | PyObject *swig_obj[1] ; | |
23710 | ||
23711 | if (!args) SWIG_fail; | |
23712 | swig_obj[0] = args; | |
23713 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23714 | if (!SWIG_IsOK(res1)) { | |
23715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23716 | } | |
23717 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23718 | { | |
23719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23720 | result = (int)((wxDC const *)arg1)->MaxX(); | |
23721 | wxPyEndAllowThreads(__tstate); | |
23722 | if (PyErr_Occurred()) SWIG_fail; | |
23723 | } | |
23724 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23725 | return resultobj; | |
23726 | fail: | |
23727 | return NULL; | |
23728 | } | |
23729 | ||
23730 | ||
23731 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23732 | PyObject *resultobj = 0; | |
23733 | wxDC *arg1 = (wxDC *) 0 ; | |
23734 | int result; | |
23735 | void *argp1 = 0 ; | |
23736 | int res1 = 0 ; | |
23737 | PyObject *swig_obj[1] ; | |
23738 | ||
23739 | if (!args) SWIG_fail; | |
23740 | swig_obj[0] = args; | |
23741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23742 | if (!SWIG_IsOK(res1)) { | |
23743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23744 | } | |
23745 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23746 | { | |
23747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23748 | result = (int)((wxDC const *)arg1)->MinY(); | |
23749 | wxPyEndAllowThreads(__tstate); | |
23750 | if (PyErr_Occurred()) SWIG_fail; | |
23751 | } | |
23752 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23753 | return resultobj; | |
23754 | fail: | |
23755 | return NULL; | |
23756 | } | |
23757 | ||
23758 | ||
23759 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23760 | PyObject *resultobj = 0; | |
23761 | wxDC *arg1 = (wxDC *) 0 ; | |
23762 | int result; | |
23763 | void *argp1 = 0 ; | |
23764 | int res1 = 0 ; | |
23765 | PyObject *swig_obj[1] ; | |
23766 | ||
23767 | if (!args) SWIG_fail; | |
23768 | swig_obj[0] = args; | |
23769 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23770 | if (!SWIG_IsOK(res1)) { | |
23771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23772 | } | |
23773 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23774 | { | |
23775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23776 | result = (int)((wxDC const *)arg1)->MaxY(); | |
23777 | wxPyEndAllowThreads(__tstate); | |
23778 | if (PyErr_Occurred()) SWIG_fail; | |
23779 | } | |
23780 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23781 | return resultobj; | |
23782 | fail: | |
23783 | return NULL; | |
23784 | } | |
23785 | ||
23786 | ||
23787 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23788 | PyObject *resultobj = 0; | |
23789 | wxDC *arg1 = (wxDC *) 0 ; | |
23790 | int *arg2 = (int *) 0 ; | |
23791 | int *arg3 = (int *) 0 ; | |
23792 | int *arg4 = (int *) 0 ; | |
23793 | int *arg5 = (int *) 0 ; | |
23794 | void *argp1 = 0 ; | |
23795 | int res1 = 0 ; | |
23796 | int temp2 ; | |
23797 | int res2 = SWIG_TMPOBJ ; | |
23798 | int temp3 ; | |
23799 | int res3 = SWIG_TMPOBJ ; | |
23800 | int temp4 ; | |
23801 | int res4 = SWIG_TMPOBJ ; | |
23802 | int temp5 ; | |
23803 | int res5 = SWIG_TMPOBJ ; | |
23804 | PyObject *swig_obj[1] ; | |
23805 | ||
23806 | arg2 = &temp2; | |
23807 | arg3 = &temp3; | |
23808 | arg4 = &temp4; | |
23809 | arg5 = &temp5; | |
23810 | if (!args) SWIG_fail; | |
23811 | swig_obj[0] = args; | |
23812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23813 | if (!SWIG_IsOK(res1)) { | |
23814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23815 | } | |
23816 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23817 | { | |
23818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23819 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
23820 | wxPyEndAllowThreads(__tstate); | |
23821 | if (PyErr_Occurred()) SWIG_fail; | |
23822 | } | |
23823 | resultobj = SWIG_Py_Void(); | |
23824 | if (SWIG_IsTmpObj(res2)) { | |
23825 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23826 | } else { | |
23827 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23828 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23829 | } | |
23830 | if (SWIG_IsTmpObj(res3)) { | |
23831 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23832 | } else { | |
23833 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23834 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23835 | } | |
23836 | if (SWIG_IsTmpObj(res4)) { | |
23837 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
23838 | } else { | |
23839 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23840 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
23841 | } | |
23842 | if (SWIG_IsTmpObj(res5)) { | |
23843 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
23844 | } else { | |
23845 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23846 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
23847 | } | |
23848 | return resultobj; | |
23849 | fail: | |
23850 | return NULL; | |
23851 | } | |
23852 | ||
23853 | ||
b39fe951 RD |
23854 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23855 | PyObject *resultobj = 0; | |
23856 | wxDC *arg1 = (wxDC *) 0 ; | |
23857 | wxLayoutDirection result; | |
23858 | void *argp1 = 0 ; | |
23859 | int res1 = 0 ; | |
23860 | PyObject *swig_obj[1] ; | |
23861 | ||
23862 | if (!args) SWIG_fail; | |
23863 | swig_obj[0] = args; | |
23864 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23865 | if (!SWIG_IsOK(res1)) { | |
23866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23867 | } | |
23868 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23869 | { | |
23870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23871 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23872 | wxPyEndAllowThreads(__tstate); | |
23873 | if (PyErr_Occurred()) SWIG_fail; | |
23874 | } | |
23875 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23876 | return resultobj; | |
23877 | fail: | |
23878 | return NULL; | |
23879 | } | |
23880 | ||
23881 | ||
23882 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23883 | PyObject *resultobj = 0; | |
23884 | wxDC *arg1 = (wxDC *) 0 ; | |
23885 | wxLayoutDirection arg2 ; | |
23886 | void *argp1 = 0 ; | |
23887 | int res1 = 0 ; | |
23888 | int val2 ; | |
23889 | int ecode2 = 0 ; | |
23890 | PyObject * obj0 = 0 ; | |
23891 | PyObject * obj1 = 0 ; | |
23892 | char * kwnames[] = { | |
23893 | (char *) "self",(char *) "dir", NULL | |
23894 | }; | |
23895 | ||
23896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23898 | if (!SWIG_IsOK(res1)) { | |
23899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23900 | } | |
23901 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23902 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23903 | if (!SWIG_IsOK(ecode2)) { | |
23904 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23905 | } | |
23906 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23907 | { | |
23908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23909 | (arg1)->SetLayoutDirection(arg2); | |
23910 | wxPyEndAllowThreads(__tstate); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | } | |
23913 | resultobj = SWIG_Py_Void(); | |
23914 | return resultobj; | |
23915 | fail: | |
23916 | return NULL; | |
23917 | } | |
23918 | ||
23919 | ||
554f62e9 RD |
23920 | SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23921 | PyObject *resultobj = 0; | |
23922 | wxDC *arg1 = (wxDC *) 0 ; | |
23923 | long result; | |
23924 | void *argp1 = 0 ; | |
23925 | int res1 = 0 ; | |
23926 | PyObject *swig_obj[1] ; | |
23927 | ||
23928 | if (!args) SWIG_fail; | |
23929 | swig_obj[0] = args; | |
23930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23931 | if (!SWIG_IsOK(res1)) { | |
23932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23933 | } | |
23934 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23935 | { | |
23936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23937 | result = (long)(arg1)->GetHDC(); | |
23938 | wxPyEndAllowThreads(__tstate); | |
23939 | if (PyErr_Occurred()) SWIG_fail; | |
23940 | } | |
23941 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
23942 | return resultobj; | |
23943 | fail: | |
23944 | return NULL; | |
23945 | } | |
23946 | ||
23947 | ||
23948 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23949 | PyObject *resultobj = 0; | |
23950 | wxDC *arg1 = (wxDC *) 0 ; | |
23951 | PyObject *arg2 = (PyObject *) 0 ; | |
23952 | PyObject *arg3 = (PyObject *) 0 ; | |
23953 | PyObject *arg4 = (PyObject *) 0 ; | |
23954 | PyObject *result = 0 ; | |
23955 | void *argp1 = 0 ; | |
23956 | int res1 = 0 ; | |
23957 | PyObject * obj0 = 0 ; | |
23958 | PyObject * obj1 = 0 ; | |
23959 | PyObject * obj2 = 0 ; | |
23960 | PyObject * obj3 = 0 ; | |
23961 | char * kwnames[] = { | |
23962 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23963 | }; | |
23964 | ||
23965 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23966 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23967 | if (!SWIG_IsOK(res1)) { | |
23968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23969 | } | |
23970 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23971 | arg2 = obj1; | |
23972 | arg3 = obj2; | |
23973 | arg4 = obj3; | |
23974 | { | |
23975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23976 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23977 | wxPyEndAllowThreads(__tstate); | |
23978 | if (PyErr_Occurred()) SWIG_fail; | |
23979 | } | |
23980 | resultobj = result; | |
23981 | return resultobj; | |
23982 | fail: | |
23983 | return NULL; | |
23984 | } | |
23985 | ||
23986 | ||
23987 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23988 | PyObject *resultobj = 0; | |
23989 | wxDC *arg1 = (wxDC *) 0 ; | |
23990 | PyObject *arg2 = (PyObject *) 0 ; | |
23991 | PyObject *arg3 = (PyObject *) 0 ; | |
23992 | PyObject *arg4 = (PyObject *) 0 ; | |
23993 | PyObject *result = 0 ; | |
23994 | void *argp1 = 0 ; | |
23995 | int res1 = 0 ; | |
23996 | PyObject * obj0 = 0 ; | |
23997 | PyObject * obj1 = 0 ; | |
23998 | PyObject * obj2 = 0 ; | |
23999 | PyObject * obj3 = 0 ; | |
24000 | char * kwnames[] = { | |
24001 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24002 | }; | |
24003 | ||
24004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24006 | if (!SWIG_IsOK(res1)) { | |
24007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24008 | } | |
24009 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24010 | arg2 = obj1; | |
24011 | arg3 = obj2; | |
24012 | arg4 = obj3; | |
24013 | { | |
24014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24015 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
24016 | wxPyEndAllowThreads(__tstate); | |
24017 | if (PyErr_Occurred()) SWIG_fail; | |
24018 | } | |
24019 | resultobj = result; | |
24020 | return resultobj; | |
24021 | fail: | |
24022 | return NULL; | |
24023 | } | |
24024 | ||
24025 | ||
24026 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24027 | PyObject *resultobj = 0; | |
24028 | wxDC *arg1 = (wxDC *) 0 ; | |
24029 | PyObject *arg2 = (PyObject *) 0 ; | |
24030 | PyObject *arg3 = (PyObject *) 0 ; | |
24031 | PyObject *arg4 = (PyObject *) 0 ; | |
24032 | PyObject *result = 0 ; | |
24033 | void *argp1 = 0 ; | |
24034 | int res1 = 0 ; | |
24035 | PyObject * obj0 = 0 ; | |
24036 | PyObject * obj1 = 0 ; | |
24037 | PyObject * obj2 = 0 ; | |
24038 | PyObject * obj3 = 0 ; | |
24039 | char * kwnames[] = { | |
24040 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24041 | }; | |
24042 | ||
24043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24045 | if (!SWIG_IsOK(res1)) { | |
24046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24047 | } | |
24048 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24049 | arg2 = obj1; | |
24050 | arg3 = obj2; | |
24051 | arg4 = obj3; | |
24052 | { | |
24053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24054 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
24055 | wxPyEndAllowThreads(__tstate); | |
24056 | if (PyErr_Occurred()) SWIG_fail; | |
24057 | } | |
24058 | resultobj = result; | |
24059 | return resultobj; | |
24060 | fail: | |
24061 | return NULL; | |
24062 | } | |
24063 | ||
24064 | ||
24065 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24066 | PyObject *resultobj = 0; | |
24067 | wxDC *arg1 = (wxDC *) 0 ; | |
24068 | PyObject *arg2 = (PyObject *) 0 ; | |
24069 | PyObject *arg3 = (PyObject *) 0 ; | |
24070 | PyObject *arg4 = (PyObject *) 0 ; | |
24071 | PyObject *result = 0 ; | |
24072 | void *argp1 = 0 ; | |
24073 | int res1 = 0 ; | |
24074 | PyObject * obj0 = 0 ; | |
24075 | PyObject * obj1 = 0 ; | |
24076 | PyObject * obj2 = 0 ; | |
24077 | PyObject * obj3 = 0 ; | |
24078 | char * kwnames[] = { | |
24079 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24080 | }; | |
24081 | ||
24082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24084 | if (!SWIG_IsOK(res1)) { | |
24085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24086 | } | |
24087 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24088 | arg2 = obj1; | |
24089 | arg3 = obj2; | |
24090 | arg4 = obj3; | |
24091 | { | |
24092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24093 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
24094 | wxPyEndAllowThreads(__tstate); | |
24095 | if (PyErr_Occurred()) SWIG_fail; | |
24096 | } | |
24097 | resultobj = result; | |
24098 | return resultobj; | |
24099 | fail: | |
24100 | return NULL; | |
24101 | } | |
24102 | ||
24103 | ||
24104 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24105 | PyObject *resultobj = 0; | |
24106 | wxDC *arg1 = (wxDC *) 0 ; | |
24107 | PyObject *arg2 = (PyObject *) 0 ; | |
24108 | PyObject *arg3 = (PyObject *) 0 ; | |
24109 | PyObject *arg4 = (PyObject *) 0 ; | |
24110 | PyObject *result = 0 ; | |
24111 | void *argp1 = 0 ; | |
24112 | int res1 = 0 ; | |
24113 | PyObject * obj0 = 0 ; | |
24114 | PyObject * obj1 = 0 ; | |
24115 | PyObject * obj2 = 0 ; | |
24116 | PyObject * obj3 = 0 ; | |
24117 | char * kwnames[] = { | |
24118 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24119 | }; | |
24120 | ||
24121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24123 | if (!SWIG_IsOK(res1)) { | |
24124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24125 | } | |
24126 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24127 | arg2 = obj1; | |
24128 | arg3 = obj2; | |
24129 | arg4 = obj3; | |
24130 | { | |
24131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24132 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
24133 | wxPyEndAllowThreads(__tstate); | |
24134 | if (PyErr_Occurred()) SWIG_fail; | |
24135 | } | |
24136 | resultobj = result; | |
24137 | return resultobj; | |
24138 | fail: | |
24139 | return NULL; | |
24140 | } | |
24141 | ||
24142 | ||
24143 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24144 | PyObject *resultobj = 0; | |
24145 | wxDC *arg1 = (wxDC *) 0 ; | |
24146 | PyObject *arg2 = (PyObject *) 0 ; | |
24147 | PyObject *arg3 = (PyObject *) 0 ; | |
24148 | PyObject *arg4 = (PyObject *) 0 ; | |
24149 | PyObject *arg5 = (PyObject *) 0 ; | |
24150 | PyObject *result = 0 ; | |
24151 | void *argp1 = 0 ; | |
24152 | int res1 = 0 ; | |
24153 | PyObject * obj0 = 0 ; | |
24154 | PyObject * obj1 = 0 ; | |
24155 | PyObject * obj2 = 0 ; | |
24156 | PyObject * obj3 = 0 ; | |
24157 | PyObject * obj4 = 0 ; | |
24158 | char * kwnames[] = { | |
24159 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
24160 | }; | |
24161 | ||
24162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24164 | if (!SWIG_IsOK(res1)) { | |
24165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24166 | } | |
24167 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24168 | arg2 = obj1; | |
24169 | arg3 = obj2; | |
24170 | arg4 = obj3; | |
24171 | arg5 = obj4; | |
24172 | { | |
24173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24174 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
24175 | wxPyEndAllowThreads(__tstate); | |
24176 | if (PyErr_Occurred()) SWIG_fail; | |
24177 | } | |
24178 | resultobj = result; | |
24179 | return resultobj; | |
24180 | fail: | |
24181 | return NULL; | |
24182 | } | |
24183 | ||
24184 | ||
24185 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24186 | PyObject *obj; | |
24187 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24188 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
24189 | return SWIG_Py_Void(); | |
24190 | } | |
24191 | ||
70d7cb34 RD |
24192 | SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24193 | PyObject *resultobj = 0; | |
24194 | wxDC *arg1 = 0 ; | |
24195 | wxColour *arg2 = 0 ; | |
24196 | wxDCTextColourChanger *result = 0 ; | |
24197 | void *argp1 = 0 ; | |
24198 | int res1 = 0 ; | |
24199 | wxColour temp2 ; | |
24200 | PyObject * obj0 = 0 ; | |
24201 | PyObject * obj1 = 0 ; | |
24202 | char * kwnames[] = { | |
24203 | (char *) "dc",(char *) "col", NULL | |
24204 | }; | |
24205 | ||
24206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24207 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24208 | if (!SWIG_IsOK(res1)) { | |
24209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24210 | } | |
24211 | if (!argp1) { | |
24212 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24213 | } | |
24214 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24215 | { | |
24216 | arg2 = &temp2; | |
24217 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24218 | } | |
24219 | { | |
24220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24221 | result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2); | |
24222 | wxPyEndAllowThreads(__tstate); | |
24223 | if (PyErr_Occurred()) SWIG_fail; | |
24224 | } | |
24225 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 ); | |
24226 | return resultobj; | |
24227 | fail: | |
24228 | return NULL; | |
24229 | } | |
24230 | ||
24231 | ||
24232 | SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24233 | PyObject *resultobj = 0; | |
24234 | wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ; | |
24235 | void *argp1 = 0 ; | |
24236 | int res1 = 0 ; | |
24237 | PyObject *swig_obj[1] ; | |
24238 | ||
24239 | if (!args) SWIG_fail; | |
24240 | swig_obj[0] = args; | |
24241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 ); | |
24242 | if (!SWIG_IsOK(res1)) { | |
24243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'"); | |
24244 | } | |
24245 | arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1); | |
24246 | { | |
24247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24248 | delete arg1; | |
24249 | ||
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
24253 | resultobj = SWIG_Py_Void(); | |
24254 | return resultobj; | |
24255 | fail: | |
24256 | return NULL; | |
24257 | } | |
24258 | ||
24259 | ||
24260 | SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24261 | PyObject *obj; | |
24262 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24263 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj)); | |
24264 | return SWIG_Py_Void(); | |
24265 | } | |
24266 | ||
24267 | SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24268 | return SWIG_Python_InitShadowInstance(args); | |
24269 | } | |
24270 | ||
24271 | SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24272 | PyObject *resultobj = 0; | |
24273 | wxDC *arg1 = 0 ; | |
24274 | wxPen *arg2 = 0 ; | |
24275 | wxDCPenChanger *result = 0 ; | |
24276 | void *argp1 = 0 ; | |
24277 | int res1 = 0 ; | |
24278 | void *argp2 = 0 ; | |
24279 | int res2 = 0 ; | |
24280 | PyObject * obj0 = 0 ; | |
24281 | PyObject * obj1 = 0 ; | |
24282 | char * kwnames[] = { | |
24283 | (char *) "dc",(char *) "pen", NULL | |
24284 | }; | |
24285 | ||
24286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24287 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24288 | if (!SWIG_IsOK(res1)) { | |
24289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24290 | } | |
24291 | if (!argp1) { | |
24292 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24293 | } | |
24294 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24295 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
24296 | if (!SWIG_IsOK(res2)) { | |
24297 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
24298 | } | |
24299 | if (!argp2) { | |
24300 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
24301 | } | |
24302 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
24303 | { | |
24304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24305 | result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2); | |
24306 | wxPyEndAllowThreads(__tstate); | |
24307 | if (PyErr_Occurred()) SWIG_fail; | |
24308 | } | |
24309 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 ); | |
24310 | return resultobj; | |
24311 | fail: | |
24312 | return NULL; | |
24313 | } | |
24314 | ||
24315 | ||
24316 | SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24317 | PyObject *resultobj = 0; | |
24318 | wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ; | |
24319 | void *argp1 = 0 ; | |
24320 | int res1 = 0 ; | |
24321 | PyObject *swig_obj[1] ; | |
24322 | ||
24323 | if (!args) SWIG_fail; | |
24324 | swig_obj[0] = args; | |
24325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 ); | |
24326 | if (!SWIG_IsOK(res1)) { | |
24327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'"); | |
24328 | } | |
24329 | arg1 = reinterpret_cast< wxDCPenChanger * >(argp1); | |
24330 | { | |
24331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24332 | delete arg1; | |
24333 | ||
24334 | wxPyEndAllowThreads(__tstate); | |
24335 | if (PyErr_Occurred()) SWIG_fail; | |
24336 | } | |
24337 | resultobj = SWIG_Py_Void(); | |
24338 | return resultobj; | |
24339 | fail: | |
24340 | return NULL; | |
24341 | } | |
24342 | ||
24343 | ||
24344 | SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24345 | PyObject *obj; | |
24346 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24347 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj)); | |
24348 | return SWIG_Py_Void(); | |
24349 | } | |
24350 | ||
24351 | SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24352 | return SWIG_Python_InitShadowInstance(args); | |
24353 | } | |
24354 | ||
24355 | SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24356 | PyObject *resultobj = 0; | |
24357 | wxDC *arg1 = 0 ; | |
24358 | wxBrush *arg2 = 0 ; | |
24359 | wxDCBrushChanger *result = 0 ; | |
24360 | void *argp1 = 0 ; | |
24361 | int res1 = 0 ; | |
24362 | void *argp2 = 0 ; | |
24363 | int res2 = 0 ; | |
24364 | PyObject * obj0 = 0 ; | |
24365 | PyObject * obj1 = 0 ; | |
24366 | char * kwnames[] = { | |
24367 | (char *) "dc",(char *) "brush", NULL | |
24368 | }; | |
24369 | ||
24370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24371 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24372 | if (!SWIG_IsOK(res1)) { | |
24373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24374 | } | |
24375 | if (!argp1) { | |
24376 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24377 | } | |
24378 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24379 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
24380 | if (!SWIG_IsOK(res2)) { | |
24381 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
24382 | } | |
24383 | if (!argp2) { | |
24384 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
24385 | } | |
24386 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
24387 | { | |
24388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24389 | result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2); | |
24390 | wxPyEndAllowThreads(__tstate); | |
24391 | if (PyErr_Occurred()) SWIG_fail; | |
24392 | } | |
24393 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 ); | |
24394 | return resultobj; | |
24395 | fail: | |
24396 | return NULL; | |
24397 | } | |
24398 | ||
24399 | ||
24400 | SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24401 | PyObject *resultobj = 0; | |
24402 | wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ; | |
24403 | void *argp1 = 0 ; | |
24404 | int res1 = 0 ; | |
24405 | PyObject *swig_obj[1] ; | |
24406 | ||
24407 | if (!args) SWIG_fail; | |
24408 | swig_obj[0] = args; | |
24409 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 ); | |
24410 | if (!SWIG_IsOK(res1)) { | |
24411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'"); | |
24412 | } | |
24413 | arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1); | |
24414 | { | |
24415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24416 | delete arg1; | |
24417 | ||
24418 | wxPyEndAllowThreads(__tstate); | |
24419 | if (PyErr_Occurred()) SWIG_fail; | |
24420 | } | |
24421 | resultobj = SWIG_Py_Void(); | |
24422 | return resultobj; | |
24423 | fail: | |
24424 | return NULL; | |
24425 | } | |
24426 | ||
24427 | ||
24428 | SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24429 | PyObject *obj; | |
24430 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24431 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj)); | |
24432 | return SWIG_Py_Void(); | |
24433 | } | |
24434 | ||
24435 | SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24436 | return SWIG_Python_InitShadowInstance(args); | |
24437 | } | |
24438 | ||
24439 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24440 | PyObject *resultobj = 0; | |
24441 | wxDC *arg1 = 0 ; | |
24442 | wxRegion *arg2 = 0 ; | |
24443 | wxDCClipper *result = 0 ; | |
24444 | void *argp1 = 0 ; | |
24445 | int res1 = 0 ; | |
24446 | void *argp2 = 0 ; | |
24447 | int res2 = 0 ; | |
24448 | ||
24449 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
24450 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24451 | if (!SWIG_IsOK(res1)) { | |
24452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24453 | } | |
24454 | if (!argp1) { | |
24455 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24456 | } | |
24457 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24458 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
24459 | if (!SWIG_IsOK(res2)) { | |
24460 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
24461 | } | |
24462 | if (!argp2) { | |
24463 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
24464 | } | |
24465 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
24466 | { | |
24467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24468 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2); | |
24469 | wxPyEndAllowThreads(__tstate); | |
24470 | if (PyErr_Occurred()) SWIG_fail; | |
24471 | } | |
24472 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24473 | return resultobj; | |
24474 | fail: | |
24475 | return NULL; | |
24476 | } | |
24477 | ||
24478 | ||
24479 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24480 | PyObject *resultobj = 0; | |
24481 | wxDC *arg1 = 0 ; | |
24482 | wxRect *arg2 = 0 ; | |
24483 | wxDCClipper *result = 0 ; | |
24484 | void *argp1 = 0 ; | |
24485 | int res1 = 0 ; | |
24486 | wxRect temp2 ; | |
24487 | ||
24488 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
24489 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24490 | if (!SWIG_IsOK(res1)) { | |
24491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24492 | } | |
24493 | if (!argp1) { | |
24494 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24495 | } | |
24496 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24497 | { | |
24498 | arg2 = &temp2; | |
24499 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24500 | } | |
24501 | { | |
24502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24503 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2); | |
24504 | wxPyEndAllowThreads(__tstate); | |
24505 | if (PyErr_Occurred()) SWIG_fail; | |
24506 | } | |
24507 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24508 | return resultobj; | |
24509 | fail: | |
24510 | return NULL; | |
24511 | } | |
24512 | ||
24513 | ||
24514 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24515 | PyObject *resultobj = 0; | |
24516 | wxDC *arg1 = 0 ; | |
24517 | int arg2 ; | |
24518 | int arg3 ; | |
24519 | int arg4 ; | |
24520 | int arg5 ; | |
24521 | wxDCClipper *result = 0 ; | |
24522 | void *argp1 = 0 ; | |
24523 | int res1 = 0 ; | |
24524 | int val2 ; | |
24525 | int ecode2 = 0 ; | |
24526 | int val3 ; | |
24527 | int ecode3 = 0 ; | |
24528 | int val4 ; | |
24529 | int ecode4 = 0 ; | |
24530 | int val5 ; | |
24531 | int ecode5 = 0 ; | |
24532 | ||
24533 | if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; | |
24534 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24535 | if (!SWIG_IsOK(res1)) { | |
24536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24537 | } | |
24538 | if (!argp1) { | |
24539 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24540 | } | |
24541 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24542 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
24543 | if (!SWIG_IsOK(ecode2)) { | |
24544 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'"); | |
24545 | } | |
24546 | arg2 = static_cast< int >(val2); | |
24547 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24548 | if (!SWIG_IsOK(ecode3)) { | |
24549 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'"); | |
24550 | } | |
24551 | arg3 = static_cast< int >(val3); | |
24552 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
24553 | if (!SWIG_IsOK(ecode4)) { | |
24554 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'"); | |
24555 | } | |
24556 | arg4 = static_cast< int >(val4); | |
24557 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
24558 | if (!SWIG_IsOK(ecode5)) { | |
24559 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'"); | |
24560 | } | |
24561 | arg5 = static_cast< int >(val5); | |
24562 | { | |
24563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24564 | result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5); | |
24565 | wxPyEndAllowThreads(__tstate); | |
24566 | if (PyErr_Occurred()) SWIG_fail; | |
24567 | } | |
24568 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24569 | return resultobj; | |
24570 | fail: | |
24571 | return NULL; | |
24572 | } | |
24573 | ||
24574 | ||
24575 | SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) { | |
24576 | int argc; | |
24577 | PyObject *argv[6]; | |
24578 | ||
24579 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail; | |
24580 | --argc; | |
24581 | if (argc == 2) { | |
24582 | int _v = 0; | |
24583 | { | |
24584 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0); | |
24585 | _v = SWIG_CheckState(res); | |
24586 | } | |
24587 | if (!_v) goto check_1; | |
24588 | return _wrap_new_DCClipper__SWIG_0(self, argc, argv); | |
24589 | } | |
24590 | check_1: | |
24591 | ||
24592 | if (argc == 2) { | |
24593 | return _wrap_new_DCClipper__SWIG_1(self, argc, argv); | |
24594 | } | |
24595 | if (argc == 5) { | |
24596 | return _wrap_new_DCClipper__SWIG_2(self, argc, argv); | |
24597 | } | |
24598 | ||
24599 | fail: | |
24600 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'"); | |
24601 | return NULL; | |
24602 | } | |
24603 | ||
24604 | ||
24605 | SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24606 | PyObject *resultobj = 0; | |
24607 | wxDCClipper *arg1 = (wxDCClipper *) 0 ; | |
24608 | void *argp1 = 0 ; | |
24609 | int res1 = 0 ; | |
24610 | PyObject *swig_obj[1] ; | |
24611 | ||
24612 | if (!args) SWIG_fail; | |
24613 | swig_obj[0] = args; | |
24614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 ); | |
24615 | if (!SWIG_IsOK(res1)) { | |
24616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'"); | |
24617 | } | |
24618 | arg1 = reinterpret_cast< wxDCClipper * >(argp1); | |
24619 | { | |
24620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24621 | delete arg1; | |
24622 | ||
24623 | wxPyEndAllowThreads(__tstate); | |
24624 | if (PyErr_Occurred()) SWIG_fail; | |
24625 | } | |
24626 | resultobj = SWIG_Py_Void(); | |
24627 | return resultobj; | |
24628 | fail: | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
24633 | SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24634 | PyObject *obj; | |
24635 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24636 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj)); | |
24637 | return SWIG_Py_Void(); | |
24638 | } | |
24639 | ||
24640 | SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24641 | return SWIG_Python_InitShadowInstance(args); | |
24642 | } | |
24643 | ||
24f6c4e8 RD |
24644 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24645 | PyObject *resultobj = 0; | |
24646 | wxScreenDC *result = 0 ; | |
24647 | ||
24648 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
24649 | { | |
24650 | if (!wxPyCheckForApp()) SWIG_fail; | |
24651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24652 | result = (wxScreenDC *)new wxScreenDC(); | |
24653 | wxPyEndAllowThreads(__tstate); | |
24654 | if (PyErr_Occurred()) SWIG_fail; | |
24655 | } | |
24656 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
24657 | return resultobj; | |
24658 | fail: | |
24659 | return NULL; | |
24660 | } | |
24661 | ||
24662 | ||
24663 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24664 | PyObject *resultobj = 0; | |
24665 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24666 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24667 | bool result; | |
24668 | void *argp1 = 0 ; | |
24669 | int res1 = 0 ; | |
24670 | void *argp2 = 0 ; | |
24671 | int res2 = 0 ; | |
24672 | PyObject * obj0 = 0 ; | |
24673 | PyObject * obj1 = 0 ; | |
24674 | char * kwnames[] = { | |
24675 | (char *) "self",(char *) "window", NULL | |
24676 | }; | |
24677 | ||
24678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24680 | if (!SWIG_IsOK(res1)) { | |
24681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24682 | } | |
24683 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24684 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24685 | if (!SWIG_IsOK(res2)) { | |
24686 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24687 | } | |
24688 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24689 | { | |
24690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24691 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24692 | wxPyEndAllowThreads(__tstate); | |
24693 | if (PyErr_Occurred()) SWIG_fail; | |
24694 | } | |
24695 | { | |
24696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24697 | } | |
24698 | return resultobj; | |
24699 | fail: | |
24700 | return NULL; | |
24701 | } | |
24702 | ||
24703 | ||
24704 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24705 | PyObject *resultobj = 0; | |
24706 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24707 | wxRect *arg2 = (wxRect *) NULL ; | |
24708 | bool result; | |
24709 | void *argp1 = 0 ; | |
24710 | int res1 = 0 ; | |
24711 | void *argp2 = 0 ; | |
24712 | int res2 = 0 ; | |
24713 | PyObject * obj0 = 0 ; | |
24714 | PyObject * obj1 = 0 ; | |
24715 | char * kwnames[] = { | |
24716 | (char *) "self",(char *) "rect", NULL | |
24717 | }; | |
24718 | ||
24719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
24720 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24721 | if (!SWIG_IsOK(res1)) { | |
24722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24723 | } | |
24724 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24725 | if (obj1) { | |
24726 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
24727 | if (!SWIG_IsOK(res2)) { | |
24728 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
24729 | } | |
24730 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
24731 | } | |
24732 | { | |
24733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24734 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
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 *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24748 | PyObject *resultobj = 0; | |
24749 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24750 | bool result; | |
24751 | void *argp1 = 0 ; | |
24752 | int res1 = 0 ; | |
24753 | PyObject *swig_obj[1] ; | |
24754 | ||
24755 | if (!args) SWIG_fail; | |
24756 | swig_obj[0] = args; | |
24757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24758 | if (!SWIG_IsOK(res1)) { | |
24759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24760 | } | |
24761 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24762 | { | |
24763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24764 | result = (bool)(arg1)->EndDrawingOnTop(); | |
24765 | wxPyEndAllowThreads(__tstate); | |
24766 | if (PyErr_Occurred()) SWIG_fail; | |
24767 | } | |
24768 | { | |
24769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24770 | } | |
24771 | return resultobj; | |
24772 | fail: | |
24773 | return NULL; | |
24774 | } | |
24775 | ||
24776 | ||
24777 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24778 | PyObject *obj; | |
24779 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24780 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24781 | return SWIG_Py_Void(); | |
24782 | } | |
24783 | ||
24784 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24785 | return SWIG_Python_InitShadowInstance(args); | |
24786 | } | |
24787 | ||
24788 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24789 | PyObject *resultobj = 0; | |
24790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24791 | wxWindowDC *result = 0 ; | |
24792 | void *argp1 = 0 ; | |
24793 | int res1 = 0 ; | |
24794 | PyObject * obj0 = 0 ; | |
24795 | char * kwnames[] = { | |
24796 | (char *) "win", NULL | |
24797 | }; | |
24798 | ||
24799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24801 | if (!SWIG_IsOK(res1)) { | |
24802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24803 | } | |
24804 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24805 | { | |
24806 | if (!wxPyCheckForApp()) SWIG_fail; | |
24807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24808 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24809 | wxPyEndAllowThreads(__tstate); | |
24810 | if (PyErr_Occurred()) SWIG_fail; | |
24811 | } | |
24812 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24813 | return resultobj; | |
24814 | fail: | |
24815 | return NULL; | |
24816 | } | |
24817 | ||
24818 | ||
24819 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24820 | PyObject *obj; | |
24821 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24822 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24823 | return SWIG_Py_Void(); | |
24824 | } | |
24825 | ||
24826 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24827 | return SWIG_Python_InitShadowInstance(args); | |
24828 | } | |
24829 | ||
24830 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24831 | PyObject *resultobj = 0; | |
24832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24833 | wxClientDC *result = 0 ; | |
24834 | void *argp1 = 0 ; | |
24835 | int res1 = 0 ; | |
24836 | PyObject * obj0 = 0 ; | |
24837 | char * kwnames[] = { | |
24838 | (char *) "win", NULL | |
24839 | }; | |
24840 | ||
24841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24843 | if (!SWIG_IsOK(res1)) { | |
24844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24845 | } | |
24846 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24847 | { | |
24848 | if (!wxPyCheckForApp()) SWIG_fail; | |
24849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24850 | result = (wxClientDC *)new wxClientDC(arg1); | |
24851 | wxPyEndAllowThreads(__tstate); | |
24852 | if (PyErr_Occurred()) SWIG_fail; | |
24853 | } | |
24854 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24855 | return resultobj; | |
24856 | fail: | |
24857 | return NULL; | |
24858 | } | |
24859 | ||
24860 | ||
24861 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24862 | PyObject *obj; | |
24863 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24864 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
24865 | return SWIG_Py_Void(); | |
24866 | } | |
24867 | ||
24868 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24869 | return SWIG_Python_InitShadowInstance(args); | |
24870 | } | |
24871 | ||
24872 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24873 | PyObject *resultobj = 0; | |
24874 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24875 | wxPaintDC *result = 0 ; | |
24876 | void *argp1 = 0 ; | |
24877 | int res1 = 0 ; | |
24878 | PyObject * obj0 = 0 ; | |
24879 | char * kwnames[] = { | |
24880 | (char *) "win", NULL | |
24881 | }; | |
24882 | ||
24883 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24885 | if (!SWIG_IsOK(res1)) { | |
24886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24887 | } | |
24888 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24889 | { | |
24890 | if (!wxPyCheckForApp()) SWIG_fail; | |
24891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24892 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24893 | wxPyEndAllowThreads(__tstate); | |
24894 | if (PyErr_Occurred()) SWIG_fail; | |
24895 | } | |
24896 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24897 | return resultobj; | |
24898 | fail: | |
24899 | return NULL; | |
24900 | } | |
24901 | ||
24902 | ||
24903 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24904 | PyObject *obj; | |
24905 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24906 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24907 | return SWIG_Py_Void(); | |
24908 | } | |
24909 | ||
24910 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24911 | return SWIG_Python_InitShadowInstance(args); | |
24912 | } | |
24913 | ||
26c4d26f RD |
24914 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24915 | PyObject *resultobj = 0; | |
24916 | wxBitmap &arg1_defvalue = wxNullBitmap ; | |
24917 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24918 | wxMemoryDC *result = 0 ; | |
24919 | void *argp1 = 0 ; | |
24920 | int res1 = 0 ; | |
24921 | PyObject * obj0 = 0 ; | |
24922 | char * kwnames[] = { | |
24923 | (char *) "bitmap", NULL | |
24924 | }; | |
24925 | ||
24926 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; | |
24927 | if (obj0) { | |
24928 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
24929 | if (!SWIG_IsOK(res1)) { | |
24930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24931 | } | |
24932 | if (!argp1) { | |
24933 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24934 | } | |
24935 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
24936 | } | |
24937 | { | |
24938 | if (!wxPyCheckForApp()) SWIG_fail; | |
24939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24940 | result = (wxMemoryDC *)new wxMemoryDC(*arg1); | |
24941 | wxPyEndAllowThreads(__tstate); | |
24942 | if (PyErr_Occurred()) SWIG_fail; | |
24943 | } | |
24944 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
24945 | return resultobj; | |
24946 | fail: | |
24947 | return NULL; | |
24948 | } | |
24949 | ||
24950 | ||
24951 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24952 | PyObject *resultobj = 0; | |
24953 | wxDC *arg1 = (wxDC *) 0 ; | |
24954 | wxMemoryDC *result = 0 ; | |
24955 | void *argp1 = 0 ; | |
24956 | int res1 = 0 ; | |
24957 | PyObject * obj0 = 0 ; | |
24958 | char * kwnames[] = { | |
24959 | (char *) "oldDC", NULL | |
24960 | }; | |
24961 | ||
24962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
24963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24964 | if (!SWIG_IsOK(res1)) { | |
24965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24966 | } | |
24967 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24968 | { | |
24969 | if (!wxPyCheckForApp()) SWIG_fail; | |
24970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24971 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
24972 | wxPyEndAllowThreads(__tstate); | |
24973 | if (PyErr_Occurred()) SWIG_fail; | |
24974 | } | |
24975 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
24976 | return resultobj; | |
24977 | fail: | |
24978 | return NULL; | |
24979 | } | |
24980 | ||
24981 | ||
24982 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24983 | PyObject *resultobj = 0; | |
24984 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24985 | wxBitmap *arg2 = 0 ; | |
24986 | void *argp1 = 0 ; | |
24987 | int res1 = 0 ; | |
24988 | void *argp2 = 0 ; | |
24989 | int res2 = 0 ; | |
24990 | PyObject * obj0 = 0 ; | |
24991 | PyObject * obj1 = 0 ; | |
24992 | char * kwnames[] = { | |
24993 | (char *) "self",(char *) "bitmap", NULL | |
24994 | }; | |
24995 | ||
24996 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
24997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24998 | if (!SWIG_IsOK(res1)) { | |
24999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
25000 | } | |
25001 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
25002 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
25003 | if (!SWIG_IsOK(res2)) { | |
25004 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
25005 | } | |
25006 | if (!argp2) { | |
25007 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
25008 | } | |
25009 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
25010 | { | |
25011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25012 | (arg1)->SelectObject(*arg2); | |
25013 | wxPyEndAllowThreads(__tstate); | |
25014 | if (PyErr_Occurred()) SWIG_fail; | |
25015 | } | |
25016 | resultobj = SWIG_Py_Void(); | |
25017 | return resultobj; | |
25018 | fail: | |
25019 | return NULL; | |
25020 | } | |
25021 | ||
25022 | ||
25023 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25024 | PyObject *resultobj = 0; | |
25025 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
25026 | wxBitmap *arg2 = 0 ; | |
25027 | void *argp1 = 0 ; | |
25028 | int res1 = 0 ; | |
25029 | void *argp2 = 0 ; | |
25030 | int res2 = 0 ; | |
25031 | PyObject * obj0 = 0 ; | |
25032 | PyObject * obj1 = 0 ; | |
25033 | char * kwnames[] = { | |
25034 | (char *) "self",(char *) "bmp", NULL | |
25035 | }; | |
25036 | ||
25037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail; | |
25038 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
25039 | if (!SWIG_IsOK(res1)) { | |
25040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
25041 | } | |
25042 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
25043 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
25044 | if (!SWIG_IsOK(res2)) { | |
25045 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
25046 | } | |
25047 | if (!argp2) { | |
25048 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
25049 | } | |
25050 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
25051 | { | |
25052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25053 | (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2); | |
25054 | wxPyEndAllowThreads(__tstate); | |
25055 | if (PyErr_Occurred()) SWIG_fail; | |
25056 | } | |
25057 | resultobj = SWIG_Py_Void(); | |
25058 | return resultobj; | |
25059 | fail: | |
25060 | return NULL; | |
25061 | } | |
25062 | ||
25063 | ||
25064 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25065 | PyObject *obj; | |
25066 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25067 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
25068 | return SWIG_Py_Void(); | |
25069 | } | |
25070 | ||
25071 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25072 | return SWIG_Python_InitShadowInstance(args); | |
25073 | } | |
25074 | ||
554f62e9 RD |
25075 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25076 | PyObject *resultobj = 0; | |
25077 | wxDC *arg1 = (wxDC *) 0 ; | |
b6df5cf9 | 25078 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
554f62e9 RD |
25079 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
25080 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25081 | wxBufferedDC *result = 0 ; | |
25082 | void *argp1 = 0 ; | |
25083 | int res1 = 0 ; | |
25084 | void *argp2 = 0 ; | |
25085 | int res2 = 0 ; | |
25086 | int val3 ; | |
25087 | int ecode3 = 0 ; | |
25088 | ||
25089 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
25090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
25091 | if (!SWIG_IsOK(res1)) { | |
25092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
25093 | } | |
25094 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25095 | if (swig_obj[1]) { | |
b6df5cf9 | 25096 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
554f62e9 | 25097 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 25098 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25099 | } |
554f62e9 | 25100 | if (!argp2) { |
b6df5cf9 | 25101 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25102 | } |
554f62e9 RD |
25103 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
25104 | } | |
25105 | if (swig_obj[2]) { | |
25106 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
25107 | if (!SWIG_IsOK(ecode3)) { | |
25108 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
25109 | } | |
25110 | arg3 = static_cast< int >(val3); | |
25111 | } | |
25112 | { | |
25113 | if (!wxPyCheckForApp()) SWIG_fail; | |
25114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 25115 | result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3); |
554f62e9 RD |
25116 | wxPyEndAllowThreads(__tstate); |
25117 | if (PyErr_Occurred()) SWIG_fail; | |
25118 | } | |
25119 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
25120 | return resultobj; | |
25121 | fail: | |
25122 | return NULL; | |
25123 | } | |
25124 | ||
25125 | ||
25126 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
25127 | PyObject *resultobj = 0; | |
25128 | wxDC *arg1 = (wxDC *) 0 ; | |
25129 | wxSize *arg2 = 0 ; | |
25130 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25131 | wxBufferedDC *result = 0 ; | |
25132 | void *argp1 = 0 ; | |
25133 | int res1 = 0 ; | |
25134 | wxSize temp2 ; | |
25135 | int val3 ; | |
25136 | int ecode3 = 0 ; | |
25137 | ||
25138 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
25139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
25140 | if (!SWIG_IsOK(res1)) { | |
25141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
25142 | } | |
25143 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25144 | { | |
25145 | arg2 = &temp2; | |
25146 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
25147 | } | |
25148 | if (swig_obj[2]) { | |
25149 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
25150 | if (!SWIG_IsOK(ecode3)) { | |
25151 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
25152 | } | |
25153 | arg3 = static_cast< int >(val3); | |
25154 | } | |
25155 | { | |
25156 | if (!wxPyCheckForApp()) SWIG_fail; | |
25157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25158 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
25159 | wxPyEndAllowThreads(__tstate); | |
25160 | if (PyErr_Occurred()) SWIG_fail; | |
25161 | } | |
25162 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
25163 | return resultobj; | |
25164 | fail: | |
25165 | return NULL; | |
25166 | } | |
25167 | ||
25168 | ||
25169 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
25170 | int argc; | |
8e99bda9 | 25171 | PyObject *argv[4]; |
554f62e9 | 25172 | |
8e99bda9 | 25173 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
554f62e9 RD |
25174 | --argc; |
25175 | if ((argc >= 1) && (argc <= 3)) { | |
25176 | int _v = 0; | |
25177 | if (argc > 1) { | |
25178 | { | |
b6df5cf9 RD |
25179 | void *vptr = 0; |
25180 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0); | |
554f62e9 RD |
25181 | _v = SWIG_CheckState(res); |
25182 | } | |
25183 | if (!_v) goto check_1; | |
093d3ff1 | 25184 | } |
554f62e9 RD |
25185 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
25186 | } | |
25187 | check_1: | |
25188 | ||
25189 | if ((argc >= 2) && (argc <= 3)) { | |
25190 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
25191 | } | |
25192 | ||
25193 | fail: | |
25194 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
25195 | return NULL; | |
25196 | } | |
25197 | ||
25198 | ||
25199 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25200 | PyObject *resultobj = 0; | |
25201 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25202 | void *argp1 = 0 ; | |
25203 | int res1 = 0 ; | |
25204 | PyObject *swig_obj[1] ; | |
25205 | ||
25206 | if (!args) SWIG_fail; | |
25207 | swig_obj[0] = args; | |
25208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
25209 | if (!SWIG_IsOK(res1)) { | |
25210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25211 | } | |
25212 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25213 | { | |
25214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25215 | delete arg1; | |
25216 | ||
25217 | wxPyEndAllowThreads(__tstate); | |
25218 | if (PyErr_Occurred()) SWIG_fail; | |
25219 | } | |
25220 | resultobj = SWIG_Py_Void(); | |
25221 | return resultobj; | |
25222 | fail: | |
25223 | return NULL; | |
25224 | } | |
25225 | ||
25226 | ||
25227 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25228 | PyObject *resultobj = 0; | |
25229 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25230 | void *argp1 = 0 ; | |
25231 | int res1 = 0 ; | |
25232 | PyObject *swig_obj[1] ; | |
25233 | ||
25234 | if (!args) SWIG_fail; | |
25235 | swig_obj[0] = args; | |
25236 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25237 | if (!SWIG_IsOK(res1)) { | |
25238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25239 | } | |
25240 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25241 | { | |
25242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25243 | (arg1)->UnMask(); | |
25244 | wxPyEndAllowThreads(__tstate); | |
25245 | if (PyErr_Occurred()) SWIG_fail; | |
25246 | } | |
25247 | resultobj = SWIG_Py_Void(); | |
25248 | return resultobj; | |
25249 | fail: | |
25250 | return NULL; | |
25251 | } | |
25252 | ||
25253 | ||
b6df5cf9 RD |
25254 | SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25255 | PyObject *resultobj = 0; | |
25256 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25257 | int arg2 ; | |
25258 | void *argp1 = 0 ; | |
25259 | int res1 = 0 ; | |
25260 | int val2 ; | |
25261 | int ecode2 = 0 ; | |
25262 | PyObject * obj0 = 0 ; | |
25263 | PyObject * obj1 = 0 ; | |
25264 | char * kwnames[] = { | |
25265 | (char *) "self",(char *) "style", NULL | |
25266 | }; | |
25267 | ||
25268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
25269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25270 | if (!SWIG_IsOK(res1)) { | |
25271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25272 | } | |
25273 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25274 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25275 | if (!SWIG_IsOK(ecode2)) { | |
25276 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
25277 | } | |
25278 | arg2 = static_cast< int >(val2); | |
25279 | { | |
25280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25281 | (arg1)->SetStyle(arg2); | |
25282 | wxPyEndAllowThreads(__tstate); | |
25283 | if (PyErr_Occurred()) SWIG_fail; | |
25284 | } | |
25285 | resultobj = SWIG_Py_Void(); | |
25286 | return resultobj; | |
25287 | fail: | |
25288 | return NULL; | |
25289 | } | |
25290 | ||
25291 | ||
25292 | SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25293 | PyObject *resultobj = 0; | |
25294 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25295 | int result; | |
25296 | void *argp1 = 0 ; | |
25297 | int res1 = 0 ; | |
25298 | PyObject *swig_obj[1] ; | |
25299 | ||
25300 | if (!args) SWIG_fail; | |
25301 | swig_obj[0] = args; | |
25302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25303 | if (!SWIG_IsOK(res1)) { | |
25304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'"); | |
25305 | } | |
25306 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25307 | { | |
25308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25309 | result = (int)((wxBufferedDC const *)arg1)->GetStyle(); | |
25310 | wxPyEndAllowThreads(__tstate); | |
25311 | if (PyErr_Occurred()) SWIG_fail; | |
25312 | } | |
25313 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25314 | return resultobj; | |
25315 | fail: | |
25316 | return NULL; | |
25317 | } | |
25318 | ||
25319 | ||
554f62e9 RD |
25320 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25321 | PyObject *obj; | |
25322 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25323 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
25324 | return SWIG_Py_Void(); | |
25325 | } | |
25326 | ||
25327 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25328 | return SWIG_Python_InitShadowInstance(args); | |
25329 | } | |
25330 | ||
25331 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25332 | PyObject *resultobj = 0; | |
25333 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b6df5cf9 | 25334 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
554f62e9 RD |
25335 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
25336 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25337 | wxBufferedPaintDC *result = 0 ; | |
25338 | void *argp1 = 0 ; | |
25339 | int res1 = 0 ; | |
25340 | void *argp2 = 0 ; | |
25341 | int res2 = 0 ; | |
25342 | int val3 ; | |
25343 | int ecode3 = 0 ; | |
25344 | PyObject * obj0 = 0 ; | |
25345 | PyObject * obj1 = 0 ; | |
25346 | PyObject * obj2 = 0 ; | |
25347 | char * kwnames[] = { | |
25348 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
25349 | }; | |
25350 | ||
25351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25353 | if (!SWIG_IsOK(res1)) { | |
25354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25355 | } | |
25356 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25357 | if (obj1) { | |
b6df5cf9 | 25358 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
554f62e9 | 25359 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 25360 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25361 | } |
554f62e9 | 25362 | if (!argp2) { |
b6df5cf9 | 25363 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25364 | } |
554f62e9 RD |
25365 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
25366 | } | |
25367 | if (obj2) { | |
25368 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25369 | if (!SWIG_IsOK(ecode3)) { | |
25370 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
25371 | } | |
25372 | arg3 = static_cast< int >(val3); | |
25373 | } | |
25374 | { | |
25375 | if (!wxPyCheckForApp()) SWIG_fail; | |
25376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 25377 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3); |
554f62e9 RD |
25378 | wxPyEndAllowThreads(__tstate); |
25379 | if (PyErr_Occurred()) SWIG_fail; | |
25380 | } | |
25381 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
25382 | return resultobj; | |
25383 | fail: | |
25384 | return NULL; | |
25385 | } | |
25386 | ||
25387 | ||
25388 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25389 | PyObject *obj; | |
25390 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25391 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
25392 | return SWIG_Py_Void(); | |
25393 | } | |
25394 | ||
25395 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25396 | return SWIG_Python_InitShadowInstance(args); | |
25397 | } | |
25398 | ||
24f6c4e8 | 25399 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
25400 | PyObject *resultobj = 0; |
25401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 25402 | wxAutoBufferedPaintDC *result = 0 ; |
554f62e9 RD |
25403 | void *argp1 = 0 ; |
25404 | int res1 = 0 ; | |
25405 | PyObject * obj0 = 0 ; | |
25406 | char * kwnames[] = { | |
25407 | (char *) "win", NULL | |
25408 | }; | |
25409 | ||
24f6c4e8 | 25410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
554f62e9 RD |
25411 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
25412 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 25413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
554f62e9 RD |
25414 | } |
25415 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25416 | { | |
554f62e9 | 25417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 25418 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
554f62e9 RD |
25419 | wxPyEndAllowThreads(__tstate); |
25420 | if (PyErr_Occurred()) SWIG_fail; | |
25421 | } | |
24f6c4e8 | 25422 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
554f62e9 RD |
25423 | return resultobj; |
25424 | fail: | |
25425 | return NULL; | |
25426 | } | |
25427 | ||
25428 | ||
24f6c4e8 | 25429 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
25430 | PyObject *obj; |
25431 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 25432 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
554f62e9 RD |
25433 | return SWIG_Py_Void(); |
25434 | } | |
25435 | ||
24f6c4e8 | 25436 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
25437 | return SWIG_Python_InitShadowInstance(args); |
25438 | } | |
25439 | ||
8e99bda9 RD |
25440 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25441 | PyObject *resultobj = 0; | |
25442 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25443 | wxDC *result = 0 ; | |
25444 | void *argp1 = 0 ; | |
25445 | int res1 = 0 ; | |
25446 | PyObject * obj0 = 0 ; | |
25447 | char * kwnames[] = { | |
25448 | (char *) "window", NULL | |
25449 | }; | |
25450 | ||
25451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
25452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25453 | if (!SWIG_IsOK(res1)) { | |
25454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25455 | } | |
25456 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25457 | { | |
25458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25459 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
25460 | wxPyEndAllowThreads(__tstate); | |
25461 | if (PyErr_Occurred()) SWIG_fail; | |
25462 | } | |
25463 | { | |
25464 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
25465 | } | |
25466 | return resultobj; | |
25467 | fail: | |
25468 | return NULL; | |
25469 | } | |
25470 | ||
25471 | ||
554f62e9 RD |
25472 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25473 | PyObject *resultobj = 0; | |
25474 | wxDC *arg1 = 0 ; | |
25475 | bool arg2 ; | |
25476 | wxMirrorDC *result = 0 ; | |
25477 | void *argp1 = 0 ; | |
25478 | int res1 = 0 ; | |
25479 | bool val2 ; | |
25480 | int ecode2 = 0 ; | |
25481 | PyObject * obj0 = 0 ; | |
25482 | PyObject * obj1 = 0 ; | |
25483 | char * kwnames[] = { | |
25484 | (char *) "dc",(char *) "mirror", NULL | |
25485 | }; | |
25486 | ||
25487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
25488 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
25489 | if (!SWIG_IsOK(res1)) { | |
25490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
25491 | } | |
25492 | if (!argp1) { | |
25493 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
25494 | } | |
25495 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25496 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25497 | if (!SWIG_IsOK(ecode2)) { | |
25498 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
25499 | } | |
25500 | arg2 = static_cast< bool >(val2); | |
25501 | { | |
25502 | if (!wxPyCheckForApp()) SWIG_fail; | |
25503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25504 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
25505 | wxPyEndAllowThreads(__tstate); | |
25506 | if (PyErr_Occurred()) SWIG_fail; | |
25507 | } | |
25508 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
25509 | return resultobj; | |
25510 | fail: | |
25511 | return NULL; | |
25512 | } | |
25513 | ||
25514 | ||
25515 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25516 | PyObject *obj; | |
25517 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25518 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
25519 | return SWIG_Py_Void(); | |
25520 | } | |
25521 | ||
25522 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25523 | return SWIG_Python_InitShadowInstance(args); | |
25524 | } | |
25525 | ||
25526 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25527 | PyObject *resultobj = 0; | |
25528 | wxPrintData *arg1 = 0 ; | |
25529 | wxPostScriptDC *result = 0 ; | |
25530 | void *argp1 = 0 ; | |
25531 | int res1 = 0 ; | |
25532 | PyObject * obj0 = 0 ; | |
25533 | char * kwnames[] = { | |
25534 | (char *) "printData", NULL | |
25535 | }; | |
25536 | ||
25537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
25538 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25539 | if (!SWIG_IsOK(res1)) { | |
25540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25541 | } | |
25542 | if (!argp1) { | |
25543 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25544 | } | |
25545 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25546 | { | |
25547 | if (!wxPyCheckForApp()) SWIG_fail; | |
25548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25549 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
25550 | wxPyEndAllowThreads(__tstate); | |
25551 | if (PyErr_Occurred()) SWIG_fail; | |
25552 | } | |
25553 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
25554 | return resultobj; | |
25555 | fail: | |
25556 | return NULL; | |
25557 | } | |
25558 | ||
25559 | ||
25560 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25561 | PyObject *resultobj = 0; | |
25562 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
25563 | wxPrintData *result = 0 ; | |
25564 | void *argp1 = 0 ; | |
25565 | int res1 = 0 ; | |
25566 | PyObject *swig_obj[1] ; | |
25567 | ||
25568 | if (!args) SWIG_fail; | |
25569 | swig_obj[0] = args; | |
25570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
25571 | if (!SWIG_IsOK(res1)) { | |
25572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
25573 | } | |
25574 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
25575 | { | |
25576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25577 | { |
554f62e9 RD |
25578 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
25579 | result = (wxPrintData *) &_result_ref; | |
093d3ff1 | 25580 | } |
554f62e9 RD |
25581 | wxPyEndAllowThreads(__tstate); |
25582 | if (PyErr_Occurred()) SWIG_fail; | |
25583 | } | |
25584 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
25585 | return resultobj; | |
25586 | fail: | |
25587 | return NULL; | |
25588 | } | |
25589 | ||
25590 | ||
25591 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25592 | PyObject *resultobj = 0; | |
25593 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
25594 | wxPrintData *arg2 = 0 ; | |
25595 | void *argp1 = 0 ; | |
25596 | int res1 = 0 ; | |
25597 | void *argp2 = 0 ; | |
25598 | int res2 = 0 ; | |
25599 | PyObject * obj0 = 0 ; | |
25600 | PyObject * obj1 = 0 ; | |
25601 | char * kwnames[] = { | |
25602 | (char *) "self",(char *) "data", NULL | |
25603 | }; | |
25604 | ||
25605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
25607 | if (!SWIG_IsOK(res1)) { | |
25608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
25609 | } | |
25610 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
25611 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25612 | if (!SWIG_IsOK(res2)) { | |
25613 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25614 | } | |
25615 | if (!argp2) { | |
25616 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25617 | } | |
25618 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25619 | { | |
25620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25621 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25622 | wxPyEndAllowThreads(__tstate); | |
25623 | if (PyErr_Occurred()) SWIG_fail; | |
25624 | } | |
25625 | resultobj = SWIG_Py_Void(); | |
25626 | return resultobj; | |
25627 | fail: | |
25628 | return NULL; | |
25629 | } | |
25630 | ||
25631 | ||
25632 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25633 | PyObject *resultobj = 0; | |
25634 | int arg1 ; | |
25635 | int val1 ; | |
25636 | int ecode1 = 0 ; | |
25637 | PyObject * obj0 = 0 ; | |
25638 | char * kwnames[] = { | |
25639 | (char *) "ppi", NULL | |
25640 | }; | |
25641 | ||
25642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
25643 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
25644 | if (!SWIG_IsOK(ecode1)) { | |
25645 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
25646 | } | |
25647 | arg1 = static_cast< int >(val1); | |
25648 | { | |
25649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25650 | wxPostScriptDC::SetResolution(arg1); | |
25651 | wxPyEndAllowThreads(__tstate); | |
25652 | if (PyErr_Occurred()) SWIG_fail; | |
25653 | } | |
25654 | resultobj = SWIG_Py_Void(); | |
25655 | return resultobj; | |
25656 | fail: | |
25657 | return NULL; | |
25658 | } | |
25659 | ||
25660 | ||
25661 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25662 | PyObject *resultobj = 0; | |
25663 | int result; | |
25664 | ||
25665 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
25666 | { | |
25667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25668 | result = (int)wxPostScriptDC::GetResolution(); | |
25669 | wxPyEndAllowThreads(__tstate); | |
25670 | if (PyErr_Occurred()) SWIG_fail; | |
25671 | } | |
25672 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25673 | return resultobj; | |
25674 | fail: | |
25675 | return NULL; | |
25676 | } | |
25677 | ||
25678 | ||
25679 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25680 | PyObject *obj; | |
25681 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25682 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
25683 | return SWIG_Py_Void(); | |
25684 | } | |
25685 | ||
25686 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25687 | return SWIG_Python_InitShadowInstance(args); | |
25688 | } | |
25689 | ||
25690 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25691 | PyObject *resultobj = 0; | |
25692 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25693 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25694 | wxMetaFile *result = 0 ; | |
25695 | bool temp1 = false ; | |
25696 | PyObject * obj0 = 0 ; | |
25697 | char * kwnames[] = { | |
25698 | (char *) "filename", NULL | |
25699 | }; | |
25700 | ||
25701 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
25702 | if (obj0) { | |
093d3ff1 | 25703 | { |
554f62e9 RD |
25704 | arg1 = wxString_in_helper(obj0); |
25705 | if (arg1 == NULL) SWIG_fail; | |
25706 | temp1 = true; | |
093d3ff1 | 25707 | } |
554f62e9 RD |
25708 | } |
25709 | { | |
25710 | if (!wxPyCheckForApp()) SWIG_fail; | |
25711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25712 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
25713 | wxPyEndAllowThreads(__tstate); | |
25714 | if (PyErr_Occurred()) SWIG_fail; | |
25715 | } | |
25716 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
25717 | { | |
25718 | if (temp1) | |
25719 | delete arg1; | |
25720 | } | |
25721 | return resultobj; | |
25722 | fail: | |
25723 | { | |
25724 | if (temp1) | |
25725 | delete arg1; | |
25726 | } | |
25727 | return NULL; | |
25728 | } | |
25729 | ||
25730 | ||
25731 | SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25732 | PyObject *resultobj = 0; | |
25733 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25734 | void *argp1 = 0 ; | |
25735 | int res1 = 0 ; | |
25736 | PyObject *swig_obj[1] ; | |
25737 | ||
25738 | if (!args) SWIG_fail; | |
25739 | swig_obj[0] = args; | |
25740 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 ); | |
25741 | if (!SWIG_IsOK(res1)) { | |
25742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25743 | } | |
25744 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25745 | { | |
25746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25747 | delete arg1; | |
25748 | ||
25749 | wxPyEndAllowThreads(__tstate); | |
25750 | if (PyErr_Occurred()) SWIG_fail; | |
25751 | } | |
25752 | resultobj = SWIG_Py_Void(); | |
25753 | return resultobj; | |
25754 | fail: | |
25755 | return NULL; | |
25756 | } | |
25757 | ||
25758 | ||
b39fe951 | 25759 | SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
25760 | PyObject *resultobj = 0; |
25761 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25762 | bool result; | |
25763 | void *argp1 = 0 ; | |
25764 | int res1 = 0 ; | |
25765 | PyObject *swig_obj[1] ; | |
25766 | ||
25767 | if (!args) SWIG_fail; | |
25768 | swig_obj[0] = args; | |
25769 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25770 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 25771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'"); |
554f62e9 RD |
25772 | } |
25773 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25774 | { | |
25775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 25776 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
25777 | wxPyEndAllowThreads(__tstate); |
25778 | if (PyErr_Occurred()) SWIG_fail; | |
25779 | } | |
25780 | { | |
25781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25782 | } | |
25783 | return resultobj; | |
25784 | fail: | |
25785 | return NULL; | |
25786 | } | |
25787 | ||
25788 | ||
25789 | SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25790 | PyObject *resultobj = 0; | |
25791 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25792 | int arg2 = (int) 0 ; | |
25793 | int arg3 = (int) 0 ; | |
25794 | bool result; | |
25795 | void *argp1 = 0 ; | |
25796 | int res1 = 0 ; | |
25797 | int val2 ; | |
25798 | int ecode2 = 0 ; | |
25799 | int val3 ; | |
25800 | int ecode3 = 0 ; | |
25801 | PyObject * obj0 = 0 ; | |
25802 | PyObject * obj1 = 0 ; | |
25803 | PyObject * obj2 = 0 ; | |
25804 | char * kwnames[] = { | |
25805 | (char *) "self",(char *) "width",(char *) "height", NULL | |
25806 | }; | |
25807 | ||
25808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25810 | if (!SWIG_IsOK(res1)) { | |
25811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25812 | } | |
25813 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25814 | if (obj1) { | |
25815 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25816 | if (!SWIG_IsOK(ecode2)) { | |
25817 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'"); | |
25818 | } | |
25819 | arg2 = static_cast< int >(val2); | |
25820 | } | |
25821 | if (obj2) { | |
25822 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25823 | if (!SWIG_IsOK(ecode3)) { | |
25824 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'"); | |
25825 | } | |
25826 | arg3 = static_cast< int >(val3); | |
25827 | } | |
25828 | { | |
25829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25830 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
25831 | wxPyEndAllowThreads(__tstate); | |
25832 | if (PyErr_Occurred()) SWIG_fail; | |
25833 | } | |
25834 | { | |
25835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25836 | } | |
25837 | return resultobj; | |
25838 | fail: | |
25839 | return NULL; | |
25840 | } | |
25841 | ||
25842 | ||
25843 | SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25844 | PyObject *resultobj = 0; | |
25845 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25846 | wxSize result; | |
25847 | void *argp1 = 0 ; | |
25848 | int res1 = 0 ; | |
25849 | PyObject *swig_obj[1] ; | |
25850 | ||
25851 | if (!args) SWIG_fail; | |
25852 | swig_obj[0] = args; | |
25853 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25854 | if (!SWIG_IsOK(res1)) { | |
25855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25856 | } | |
25857 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25858 | { | |
25859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25860 | result = (arg1)->GetSize(); | |
25861 | wxPyEndAllowThreads(__tstate); | |
25862 | if (PyErr_Occurred()) SWIG_fail; | |
25863 | } | |
25864 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25865 | return resultobj; | |
25866 | fail: | |
25867 | return NULL; | |
25868 | } | |
25869 | ||
25870 | ||
25871 | SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25872 | PyObject *resultobj = 0; | |
25873 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25874 | int result; | |
25875 | void *argp1 = 0 ; | |
25876 | int res1 = 0 ; | |
25877 | PyObject *swig_obj[1] ; | |
25878 | ||
25879 | if (!args) SWIG_fail; | |
25880 | swig_obj[0] = args; | |
25881 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25882 | if (!SWIG_IsOK(res1)) { | |
25883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25884 | } | |
25885 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25886 | { | |
25887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25888 | result = (int)(arg1)->GetWidth(); | |
25889 | wxPyEndAllowThreads(__tstate); | |
25890 | if (PyErr_Occurred()) SWIG_fail; | |
25891 | } | |
25892 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25893 | return resultobj; | |
25894 | fail: | |
25895 | return NULL; | |
25896 | } | |
25897 | ||
25898 | ||
25899 | SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25900 | PyObject *resultobj = 0; | |
25901 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25902 | int result; | |
25903 | void *argp1 = 0 ; | |
25904 | int res1 = 0 ; | |
25905 | PyObject *swig_obj[1] ; | |
25906 | ||
25907 | if (!args) SWIG_fail; | |
25908 | swig_obj[0] = args; | |
25909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25910 | if (!SWIG_IsOK(res1)) { | |
25911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25912 | } | |
25913 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25914 | { | |
25915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25916 | result = (int)(arg1)->GetHeight(); | |
25917 | wxPyEndAllowThreads(__tstate); | |
25918 | if (PyErr_Occurred()) SWIG_fail; | |
25919 | } | |
25920 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25921 | return resultobj; | |
25922 | fail: | |
25923 | return NULL; | |
25924 | } | |
25925 | ||
25926 | ||
25927 | SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25928 | PyObject *resultobj = 0; | |
25929 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25930 | wxString *result = 0 ; | |
25931 | void *argp1 = 0 ; | |
25932 | int res1 = 0 ; | |
25933 | PyObject *swig_obj[1] ; | |
25934 | ||
25935 | if (!args) SWIG_fail; | |
25936 | swig_obj[0] = args; | |
25937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25938 | if (!SWIG_IsOK(res1)) { | |
25939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'"); | |
25940 | } | |
25941 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25942 | { | |
25943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 25944 | { |
554f62e9 RD |
25945 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); |
25946 | result = (wxString *) &_result_ref; | |
e2950dbb | 25947 | } |
554f62e9 RD |
25948 | wxPyEndAllowThreads(__tstate); |
25949 | if (PyErr_Occurred()) SWIG_fail; | |
25950 | } | |
25951 | { | |
25952 | #if wxUSE_UNICODE | |
25953 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25954 | #else | |
25955 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25956 | #endif | |
25957 | } | |
25958 | return resultobj; | |
25959 | fail: | |
25960 | return NULL; | |
25961 | } | |
25962 | ||
25963 | ||
25964 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25965 | PyObject *obj; | |
25966 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25967 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
25968 | return SWIG_Py_Void(); | |
25969 | } | |
25970 | ||
25971 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25972 | return SWIG_Python_InitShadowInstance(args); | |
25973 | } | |
25974 | ||
25975 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25976 | PyObject *resultobj = 0; | |
25977 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25978 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25979 | int arg2 = (int) 0 ; | |
25980 | int arg3 = (int) 0 ; | |
25981 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25982 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25983 | wxMetaFileDC *result = 0 ; | |
25984 | bool temp1 = false ; | |
25985 | int val2 ; | |
25986 | int ecode2 = 0 ; | |
25987 | int val3 ; | |
25988 | int ecode3 = 0 ; | |
25989 | bool temp4 = false ; | |
25990 | PyObject * obj0 = 0 ; | |
25991 | PyObject * obj1 = 0 ; | |
25992 | PyObject * obj2 = 0 ; | |
25993 | PyObject * obj3 = 0 ; | |
25994 | char * kwnames[] = { | |
25995 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
25996 | }; | |
25997 | ||
25998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
25999 | if (obj0) { | |
e2950dbb | 26000 | { |
554f62e9 RD |
26001 | arg1 = wxString_in_helper(obj0); |
26002 | if (arg1 == NULL) SWIG_fail; | |
26003 | temp1 = true; | |
e2950dbb | 26004 | } |
554f62e9 RD |
26005 | } |
26006 | if (obj1) { | |
26007 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26008 | if (!SWIG_IsOK(ecode2)) { | |
26009 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
26010 | } | |
26011 | arg2 = static_cast< int >(val2); | |
26012 | } | |
26013 | if (obj2) { | |
26014 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
26015 | if (!SWIG_IsOK(ecode3)) { | |
26016 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
26017 | } | |
26018 | arg3 = static_cast< int >(val3); | |
26019 | } | |
26020 | if (obj3) { | |
093d3ff1 | 26021 | { |
554f62e9 RD |
26022 | arg4 = wxString_in_helper(obj3); |
26023 | if (arg4 == NULL) SWIG_fail; | |
26024 | temp4 = true; | |
093d3ff1 | 26025 | } |
554f62e9 RD |
26026 | } |
26027 | { | |
26028 | if (!wxPyCheckForApp()) SWIG_fail; | |
26029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26030 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
26031 | wxPyEndAllowThreads(__tstate); | |
26032 | if (PyErr_Occurred()) SWIG_fail; | |
26033 | } | |
26034 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
26035 | { | |
26036 | if (temp1) | |
26037 | delete arg1; | |
26038 | } | |
26039 | { | |
26040 | if (temp4) | |
26041 | delete arg4; | |
26042 | } | |
26043 | return resultobj; | |
26044 | fail: | |
26045 | { | |
26046 | if (temp1) | |
26047 | delete arg1; | |
26048 | } | |
26049 | { | |
26050 | if (temp4) | |
26051 | delete arg4; | |
26052 | } | |
26053 | return NULL; | |
26054 | } | |
26055 | ||
26056 | ||
26057 | SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26058 | PyObject *resultobj = 0; | |
26059 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
26060 | wxMetaFile *result = 0 ; | |
26061 | void *argp1 = 0 ; | |
26062 | int res1 = 0 ; | |
26063 | PyObject *swig_obj[1] ; | |
26064 | ||
26065 | if (!args) SWIG_fail; | |
26066 | swig_obj[0] = args; | |
26067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 ); | |
26068 | if (!SWIG_IsOK(res1)) { | |
26069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'"); | |
26070 | } | |
26071 | arg1 = reinterpret_cast< wxMetaFileDC * >(argp1); | |
26072 | { | |
26073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26074 | result = (wxMetaFile *)(arg1)->Close(); | |
26075 | wxPyEndAllowThreads(__tstate); | |
26076 | if (PyErr_Occurred()) SWIG_fail; | |
26077 | } | |
26078 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
26079 | return resultobj; | |
26080 | fail: | |
26081 | return NULL; | |
26082 | } | |
26083 | ||
26084 | ||
26085 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26086 | PyObject *obj; | |
26087 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26088 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
26089 | return SWIG_Py_Void(); | |
26090 | } | |
26091 | ||
26092 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26093 | return SWIG_Python_InitShadowInstance(args); | |
26094 | } | |
26095 | ||
26096 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26097 | PyObject *resultobj = 0; | |
26098 | wxPrintData *arg1 = 0 ; | |
26099 | wxPrinterDC *result = 0 ; | |
26100 | void *argp1 = 0 ; | |
26101 | int res1 = 0 ; | |
26102 | PyObject * obj0 = 0 ; | |
26103 | char * kwnames[] = { | |
26104 | (char *) "printData", NULL | |
26105 | }; | |
26106 | ||
26107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
26108 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26109 | if (!SWIG_IsOK(res1)) { | |
26110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26111 | } | |
26112 | if (!argp1) { | |
26113 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26114 | } | |
26115 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
26116 | { | |
26117 | if (!wxPyCheckForApp()) SWIG_fail; | |
26118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26119 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
26120 | wxPyEndAllowThreads(__tstate); | |
26121 | if (PyErr_Occurred()) SWIG_fail; | |
26122 | } | |
26123 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
26124 | return resultobj; | |
26125 | fail: | |
26126 | return NULL; | |
26127 | } | |
26128 | ||
26129 | ||
26130 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26131 | PyObject *obj; | |
26132 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26133 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
26134 | return SWIG_Py_Void(); | |
26135 | } | |
26136 | ||
26137 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26138 | return SWIG_Python_InitShadowInstance(args); | |
26139 | } | |
26140 | ||
70d7cb34 RD |
26141 | SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26142 | PyObject *resultobj = 0; | |
26143 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ; | |
26144 | wxGraphicsObject *result = 0 ; | |
26145 | void *argp1 = 0 ; | |
26146 | int res1 = 0 ; | |
26147 | PyObject * obj0 = 0 ; | |
26148 | char * kwnames[] = { | |
26149 | (char *) "renderer", NULL | |
26150 | }; | |
26151 | ||
26152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail; | |
26153 | if (obj0) { | |
26154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
26155 | if (!SWIG_IsOK(res1)) { | |
26156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
26157 | } | |
26158 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
26159 | } | |
26160 | { | |
26161 | result = (wxGraphicsObject *)new wxGraphicsObject(arg1); | |
26162 | if (PyErr_Occurred()) SWIG_fail; | |
26163 | } | |
26164 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 ); | |
26165 | return resultobj; | |
26166 | fail: | |
26167 | return NULL; | |
26168 | } | |
26169 | ||
26170 | ||
26171 | SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26172 | PyObject *resultobj = 0; | |
26173 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
26174 | void *argp1 = 0 ; | |
26175 | int res1 = 0 ; | |
26176 | PyObject *swig_obj[1] ; | |
26177 | ||
26178 | if (!args) SWIG_fail; | |
26179 | swig_obj[0] = args; | |
26180 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 ); | |
26181 | if (!SWIG_IsOK(res1)) { | |
26182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'"); | |
26183 | } | |
26184 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
26185 | { | |
26186 | delete arg1; | |
26187 | ||
26188 | if (PyErr_Occurred()) SWIG_fail; | |
26189 | } | |
26190 | resultobj = SWIG_Py_Void(); | |
26191 | return resultobj; | |
26192 | fail: | |
26193 | return NULL; | |
26194 | } | |
26195 | ||
26196 | ||
26197 | SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26198 | PyObject *resultobj = 0; | |
26199 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
26200 | bool result; | |
26201 | void *argp1 = 0 ; | |
26202 | int res1 = 0 ; | |
26203 | PyObject *swig_obj[1] ; | |
26204 | ||
26205 | if (!args) SWIG_fail; | |
26206 | swig_obj[0] = args; | |
26207 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
26208 | if (!SWIG_IsOK(res1)) { | |
26209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
26210 | } | |
26211 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
26212 | { | |
26213 | result = (bool)((wxGraphicsObject const *)arg1)->IsNull(); | |
26214 | if (PyErr_Occurred()) SWIG_fail; | |
26215 | } | |
26216 | { | |
26217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26218 | } | |
26219 | return resultobj; | |
26220 | fail: | |
26221 | return NULL; | |
26222 | } | |
26223 | ||
26224 | ||
26225 | SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26226 | PyObject *resultobj = 0; | |
26227 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
26228 | wxGraphicsRenderer *result = 0 ; | |
26229 | void *argp1 = 0 ; | |
26230 | int res1 = 0 ; | |
26231 | PyObject *swig_obj[1] ; | |
26232 | ||
26233 | if (!args) SWIG_fail; | |
26234 | swig_obj[0] = args; | |
26235 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
26236 | if (!SWIG_IsOK(res1)) { | |
26237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
26238 | } | |
26239 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
26240 | { | |
26241 | result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer(); | |
26242 | if (PyErr_Occurred()) SWIG_fail; | |
26243 | } | |
26244 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
26245 | return resultobj; | |
26246 | fail: | |
26247 | return NULL; | |
26248 | } | |
26249 | ||
26250 | ||
26251 | SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26252 | PyObject *obj; | |
26253 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26254 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj)); | |
26255 | return SWIG_Py_Void(); | |
26256 | } | |
26257 | ||
26258 | SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26259 | return SWIG_Python_InitShadowInstance(args); | |
26260 | } | |
26261 | ||
26262 | SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26263 | PyObject *resultobj = 0; | |
26264 | wxGraphicsPen *result = 0 ; | |
26265 | ||
26266 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail; | |
26267 | { | |
26268 | result = (wxGraphicsPen *)new wxGraphicsPen(); | |
26269 | if (PyErr_Occurred()) SWIG_fail; | |
26270 | } | |
26271 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 ); | |
26272 | return resultobj; | |
26273 | fail: | |
26274 | return NULL; | |
26275 | } | |
26276 | ||
26277 | ||
26278 | SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26279 | PyObject *resultobj = 0; | |
26280 | wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ; | |
26281 | void *argp1 = 0 ; | |
26282 | int res1 = 0 ; | |
26283 | PyObject *swig_obj[1] ; | |
26284 | ||
26285 | if (!args) SWIG_fail; | |
26286 | swig_obj[0] = args; | |
26287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 ); | |
26288 | if (!SWIG_IsOK(res1)) { | |
26289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'"); | |
26290 | } | |
26291 | arg1 = reinterpret_cast< wxGraphicsPen * >(argp1); | |
26292 | { | |
26293 | delete arg1; | |
26294 | ||
26295 | if (PyErr_Occurred()) SWIG_fail; | |
26296 | } | |
26297 | resultobj = SWIG_Py_Void(); | |
26298 | return resultobj; | |
26299 | fail: | |
26300 | return NULL; | |
26301 | } | |
26302 | ||
26303 | ||
26304 | SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26305 | PyObject *obj; | |
26306 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26307 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj)); | |
26308 | return SWIG_Py_Void(); | |
26309 | } | |
26310 | ||
26311 | SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26312 | return SWIG_Python_InitShadowInstance(args); | |
26313 | } | |
26314 | ||
26315 | SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26316 | PyObject *resultobj = 0; | |
26317 | wxGraphicsBrush *result = 0 ; | |
26318 | ||
26319 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail; | |
26320 | { | |
26321 | result = (wxGraphicsBrush *)new wxGraphicsBrush(); | |
26322 | if (PyErr_Occurred()) SWIG_fail; | |
26323 | } | |
26324 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 ); | |
26325 | return resultobj; | |
26326 | fail: | |
26327 | return NULL; | |
26328 | } | |
26329 | ||
26330 | ||
26331 | SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26332 | PyObject *resultobj = 0; | |
26333 | wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ; | |
26334 | void *argp1 = 0 ; | |
26335 | int res1 = 0 ; | |
26336 | PyObject *swig_obj[1] ; | |
26337 | ||
26338 | if (!args) SWIG_fail; | |
26339 | swig_obj[0] = args; | |
26340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 ); | |
26341 | if (!SWIG_IsOK(res1)) { | |
26342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'"); | |
26343 | } | |
26344 | arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1); | |
26345 | { | |
26346 | delete arg1; | |
26347 | ||
26348 | if (PyErr_Occurred()) SWIG_fail; | |
26349 | } | |
26350 | resultobj = SWIG_Py_Void(); | |
26351 | return resultobj; | |
26352 | fail: | |
26353 | return NULL; | |
26354 | } | |
26355 | ||
26356 | ||
26357 | SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26358 | PyObject *obj; | |
26359 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26360 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj)); | |
26361 | return SWIG_Py_Void(); | |
26362 | } | |
26363 | ||
26364 | SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26365 | return SWIG_Python_InitShadowInstance(args); | |
26366 | } | |
26367 | ||
26368 | SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26369 | PyObject *resultobj = 0; | |
26370 | wxGraphicsFont *result = 0 ; | |
26371 | ||
26372 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail; | |
26373 | { | |
26374 | result = (wxGraphicsFont *)new wxGraphicsFont(); | |
26375 | if (PyErr_Occurred()) SWIG_fail; | |
26376 | } | |
26377 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 ); | |
26378 | return resultobj; | |
26379 | fail: | |
26380 | return NULL; | |
26381 | } | |
26382 | ||
26383 | ||
26384 | SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26385 | PyObject *resultobj = 0; | |
26386 | wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ; | |
26387 | void *argp1 = 0 ; | |
26388 | int res1 = 0 ; | |
26389 | PyObject *swig_obj[1] ; | |
26390 | ||
26391 | if (!args) SWIG_fail; | |
26392 | swig_obj[0] = args; | |
26393 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 ); | |
26394 | if (!SWIG_IsOK(res1)) { | |
26395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'"); | |
26396 | } | |
26397 | arg1 = reinterpret_cast< wxGraphicsFont * >(argp1); | |
26398 | { | |
26399 | delete arg1; | |
26400 | ||
26401 | if (PyErr_Occurred()) SWIG_fail; | |
26402 | } | |
26403 | resultobj = SWIG_Py_Void(); | |
26404 | return resultobj; | |
26405 | fail: | |
26406 | return NULL; | |
26407 | } | |
26408 | ||
26409 | ||
26410 | SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26411 | PyObject *obj; | |
26412 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26413 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj)); | |
26414 | return SWIG_Py_Void(); | |
26415 | } | |
26416 | ||
26417 | SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26418 | return SWIG_Python_InitShadowInstance(args); | |
26419 | } | |
26420 | ||
8f514ab4 RD |
26421 | SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26422 | PyObject *resultobj = 0; | |
26423 | wxGraphicsMatrix *result = 0 ; | |
26424 | ||
26425 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail; | |
26426 | { | |
26427 | result = (wxGraphicsMatrix *)new wxGraphicsMatrix(); | |
26428 | if (PyErr_Occurred()) SWIG_fail; | |
26429 | } | |
26430 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 ); | |
26431 | return resultobj; | |
26432 | fail: | |
26433 | return NULL; | |
26434 | } | |
26435 | ||
26436 | ||
5c8c7dd3 | 26437 | SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 26438 | PyObject *resultobj = 0; |
5c8c7dd3 | 26439 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
554f62e9 RD |
26440 | void *argp1 = 0 ; |
26441 | int res1 = 0 ; | |
26442 | PyObject *swig_obj[1] ; | |
26443 | ||
26444 | if (!args) SWIG_fail; | |
26445 | swig_obj[0] = args; | |
5c8c7dd3 | 26446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 ); |
554f62e9 | 26447 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
554f62e9 | 26449 | } |
5c8c7dd3 | 26450 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
554f62e9 | 26451 | { |
554f62e9 RD |
26452 | delete arg1; |
26453 | ||
554f62e9 RD |
26454 | if (PyErr_Occurred()) SWIG_fail; |
26455 | } | |
26456 | resultobj = SWIG_Py_Void(); | |
26457 | return resultobj; | |
26458 | fail: | |
26459 | return NULL; | |
26460 | } | |
26461 | ||
26462 | ||
5c8c7dd3 | 26463 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26464 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26465 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26466 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
26467 | void *argp1 = 0 ; |
26468 | int res1 = 0 ; | |
5c8c7dd3 RD |
26469 | void *argp2 = 0 ; |
26470 | int res2 = 0 ; | |
26471 | PyObject * obj0 = 0 ; | |
26472 | PyObject * obj1 = 0 ; | |
26473 | char * kwnames[] = { | |
26474 | (char *) "self",(char *) "t", NULL | |
26475 | }; | |
70d7cb34 | 26476 | |
5c8c7dd3 RD |
26477 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail; |
26478 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26479 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26481 | } |
5c8c7dd3 RD |
26482 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26483 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
26484 | if (!SWIG_IsOK(res2)) { | |
26485 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26486 | } | |
26487 | if (!argp2) { | |
26488 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26489 | } | |
26490 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 26491 | { |
5c8c7dd3 | 26492 | (arg1)->Concat((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
26493 | if (PyErr_Occurred()) SWIG_fail; |
26494 | } | |
5c8c7dd3 | 26495 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26496 | return resultobj; |
26497 | fail: | |
26498 | return NULL; | |
26499 | } | |
26500 | ||
26501 | ||
5c8c7dd3 | 26502 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26503 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26504 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26505 | wxDouble arg2 = (wxDouble) 1.0 ; | |
26506 | wxDouble arg3 = (wxDouble) 0.0 ; | |
26507 | wxDouble arg4 = (wxDouble) 0.0 ; | |
26508 | wxDouble arg5 = (wxDouble) 1.0 ; | |
26509 | wxDouble arg6 = (wxDouble) 0.0 ; | |
26510 | wxDouble arg7 = (wxDouble) 0.0 ; | |
70d7cb34 RD |
26511 | void *argp1 = 0 ; |
26512 | int res1 = 0 ; | |
5c8c7dd3 RD |
26513 | double val2 ; |
26514 | int ecode2 = 0 ; | |
26515 | double val3 ; | |
26516 | int ecode3 = 0 ; | |
26517 | double val4 ; | |
26518 | int ecode4 = 0 ; | |
26519 | double val5 ; | |
26520 | int ecode5 = 0 ; | |
26521 | double val6 ; | |
26522 | int ecode6 = 0 ; | |
26523 | double val7 ; | |
26524 | int ecode7 = 0 ; | |
26525 | PyObject * obj0 = 0 ; | |
26526 | PyObject * obj1 = 0 ; | |
26527 | PyObject * obj2 = 0 ; | |
26528 | PyObject * obj3 = 0 ; | |
26529 | PyObject * obj4 = 0 ; | |
26530 | PyObject * obj5 = 0 ; | |
26531 | PyObject * obj6 = 0 ; | |
26532 | char * kwnames[] = { | |
26533 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
26534 | }; | |
70d7cb34 | 26535 | |
5c8c7dd3 RD |
26536 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
26537 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26538 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26540 | } |
5c8c7dd3 RD |
26541 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26542 | if (obj1) { | |
26543 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26544 | if (!SWIG_IsOK(ecode2)) { | |
26545 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26546 | } | |
26547 | arg2 = static_cast< wxDouble >(val2); | |
26548 | } | |
26549 | if (obj2) { | |
26550 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26551 | if (!SWIG_IsOK(ecode3)) { | |
26552 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26553 | } | |
26554 | arg3 = static_cast< wxDouble >(val3); | |
26555 | } | |
26556 | if (obj3) { | |
26557 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26558 | if (!SWIG_IsOK(ecode4)) { | |
26559 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26560 | } | |
26561 | arg4 = static_cast< wxDouble >(val4); | |
26562 | } | |
26563 | if (obj4) { | |
26564 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26565 | if (!SWIG_IsOK(ecode5)) { | |
26566 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26567 | } | |
26568 | arg5 = static_cast< wxDouble >(val5); | |
26569 | } | |
26570 | if (obj5) { | |
26571 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26572 | if (!SWIG_IsOK(ecode6)) { | |
26573 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26574 | } | |
26575 | arg6 = static_cast< wxDouble >(val6); | |
26576 | } | |
26577 | if (obj6) { | |
26578 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
26579 | if (!SWIG_IsOK(ecode7)) { | |
26580 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'"); | |
26581 | } | |
26582 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 RD |
26583 | } |
26584 | { | |
5c8c7dd3 | 26585 | (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26586 | if (PyErr_Occurred()) SWIG_fail; |
26587 | } | |
26588 | resultobj = SWIG_Py_Void(); | |
26589 | return resultobj; | |
26590 | fail: | |
26591 | return NULL; | |
26592 | } | |
26593 | ||
26594 | ||
5c8c7dd3 | 26595 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 26596 | PyObject *resultobj = 0; |
5c8c7dd3 | 26597 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
554f62e9 RD |
26598 | void *argp1 = 0 ; |
26599 | int res1 = 0 ; | |
5c8c7dd3 | 26600 | PyObject *swig_obj[1] ; |
554f62e9 | 26601 | |
5c8c7dd3 RD |
26602 | if (!args) SWIG_fail; |
26603 | swig_obj[0] = args; | |
26604 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
554f62e9 | 26605 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
554f62e9 | 26607 | } |
5c8c7dd3 | 26608 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
554f62e9 | 26609 | { |
5c8c7dd3 | 26610 | (arg1)->Invert(); |
554f62e9 RD |
26611 | if (PyErr_Occurred()) SWIG_fail; |
26612 | } | |
72ef6efb | 26613 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
26614 | return resultobj; |
26615 | fail: | |
26616 | return NULL; | |
26617 | } | |
26618 | ||
26619 | ||
5c8c7dd3 | 26620 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26621 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26622 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26623 | wxGraphicsMatrix *arg2 = 0 ; | |
26624 | bool result; | |
70d7cb34 RD |
26625 | void *argp1 = 0 ; |
26626 | int res1 = 0 ; | |
5c8c7dd3 RD |
26627 | void *argp2 = 0 ; |
26628 | int res2 = 0 ; | |
26629 | PyObject * obj0 = 0 ; | |
26630 | PyObject * obj1 = 0 ; | |
26631 | char * kwnames[] = { | |
26632 | (char *) "self",(char *) "t", NULL | |
26633 | }; | |
70d7cb34 | 26634 | |
5c8c7dd3 RD |
26635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; |
26636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26637 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 26639 | } |
5c8c7dd3 RD |
26640 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26641 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
26642 | if (!SWIG_IsOK(res2)) { | |
26643 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26644 | } | |
26645 | if (!argp2) { | |
26646 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
70d7cb34 | 26647 | } |
5c8c7dd3 | 26648 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); |
70d7cb34 | 26649 | { |
5c8c7dd3 | 26650 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
26651 | if (PyErr_Occurred()) SWIG_fail; |
26652 | } | |
5c8c7dd3 RD |
26653 | { |
26654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26655 | } | |
70d7cb34 RD |
26656 | return resultobj; |
26657 | fail: | |
26658 | return NULL; | |
26659 | } | |
26660 | ||
26661 | ||
5c8c7dd3 RD |
26662 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26663 | PyObject *resultobj = 0; | |
26664 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26665 | bool result; | |
26666 | void *argp1 = 0 ; | |
26667 | int res1 = 0 ; | |
26668 | PyObject *swig_obj[1] ; | |
70d7cb34 | 26669 | |
5c8c7dd3 RD |
26670 | if (!args) SWIG_fail; |
26671 | swig_obj[0] = args; | |
26672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26673 | if (!SWIG_IsOK(res1)) { | |
8f514ab4 | 26674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 26675 | } |
5c8c7dd3 RD |
26676 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26677 | { | |
8f514ab4 | 26678 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity(); |
5c8c7dd3 | 26679 | if (PyErr_Occurred()) SWIG_fail; |
70d7cb34 | 26680 | } |
5c8c7dd3 RD |
26681 | { |
26682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26683 | } | |
26684 | return resultobj; | |
70d7cb34 | 26685 | fail: |
70d7cb34 RD |
26686 | return NULL; |
26687 | } | |
26688 | ||
26689 | ||
5c8c7dd3 | 26690 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 26691 | PyObject *resultobj = 0; |
5c8c7dd3 | 26692 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
72ef6efb RD |
26693 | wxDouble arg2 ; |
26694 | wxDouble arg3 ; | |
554f62e9 RD |
26695 | void *argp1 = 0 ; |
26696 | int res1 = 0 ; | |
72ef6efb RD |
26697 | double val2 ; |
26698 | int ecode2 = 0 ; | |
26699 | double val3 ; | |
26700 | int ecode3 = 0 ; | |
5c8c7dd3 RD |
26701 | PyObject * obj0 = 0 ; |
26702 | PyObject * obj1 = 0 ; | |
26703 | PyObject * obj2 = 0 ; | |
26704 | char * kwnames[] = { | |
26705 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26706 | }; | |
72ef6efb | 26707 | |
5c8c7dd3 RD |
26708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 26710 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
72ef6efb | 26712 | } |
5c8c7dd3 RD |
26713 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26714 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
72ef6efb | 26715 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26716 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
26717 | } |
26718 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26719 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 26720 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26721 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
26722 | } |
26723 | arg3 = static_cast< wxDouble >(val3); | |
72ef6efb | 26724 | { |
5c8c7dd3 | 26725 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
26726 | if (PyErr_Occurred()) SWIG_fail; |
26727 | } | |
26728 | resultobj = SWIG_Py_Void(); | |
26729 | return resultobj; | |
26730 | fail: | |
26731 | return NULL; | |
26732 | } | |
26733 | ||
26734 | ||
5c8c7dd3 | 26735 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26736 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26737 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26738 | wxDouble arg2 ; | |
26739 | wxDouble arg3 ; | |
70d7cb34 RD |
26740 | void *argp1 = 0 ; |
26741 | int res1 = 0 ; | |
5c8c7dd3 RD |
26742 | double val2 ; |
26743 | int ecode2 = 0 ; | |
26744 | double val3 ; | |
26745 | int ecode3 = 0 ; | |
26746 | PyObject * obj0 = 0 ; | |
26747 | PyObject * obj1 = 0 ; | |
26748 | PyObject * obj2 = 0 ; | |
26749 | char * kwnames[] = { | |
26750 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
26751 | }; | |
70d7cb34 | 26752 | |
5c8c7dd3 RD |
26753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26755 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26757 | } |
5c8c7dd3 RD |
26758 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26759 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26760 | if (!SWIG_IsOK(ecode2)) { | |
26761 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26762 | } | |
26763 | arg2 = static_cast< wxDouble >(val2); | |
26764 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26765 | if (!SWIG_IsOK(ecode3)) { | |
26766 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26767 | } | |
26768 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26769 | { |
5c8c7dd3 | 26770 | (arg1)->Scale(arg2,arg3); |
70d7cb34 RD |
26771 | if (PyErr_Occurred()) SWIG_fail; |
26772 | } | |
26773 | resultobj = SWIG_Py_Void(); | |
26774 | return resultobj; | |
26775 | fail: | |
26776 | return NULL; | |
26777 | } | |
26778 | ||
26779 | ||
5c8c7dd3 | 26780 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26781 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26782 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26783 | wxDouble arg2 ; | |
70d7cb34 RD |
26784 | void *argp1 = 0 ; |
26785 | int res1 = 0 ; | |
5c8c7dd3 RD |
26786 | double val2 ; |
26787 | int ecode2 = 0 ; | |
70d7cb34 RD |
26788 | PyObject * obj0 = 0 ; |
26789 | PyObject * obj1 = 0 ; | |
26790 | char * kwnames[] = { | |
5c8c7dd3 | 26791 | (char *) "self",(char *) "angle", NULL |
70d7cb34 RD |
26792 | }; |
26793 | ||
5c8c7dd3 RD |
26794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; |
26795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26796 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26798 | } |
5c8c7dd3 RD |
26799 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26800 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26801 | if (!SWIG_IsOK(ecode2)) { | |
26802 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26803 | } | |
26804 | arg2 = static_cast< wxDouble >(val2); | |
70d7cb34 | 26805 | { |
5c8c7dd3 | 26806 | (arg1)->Rotate(arg2); |
70d7cb34 RD |
26807 | if (PyErr_Occurred()) SWIG_fail; |
26808 | } | |
26809 | resultobj = SWIG_Py_Void(); | |
26810 | return resultobj; | |
26811 | fail: | |
26812 | return NULL; | |
26813 | } | |
26814 | ||
26815 | ||
5c8c7dd3 | 26816 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 26817 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26818 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26819 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26820 | wxDouble *arg3 = (wxDouble *) 0 ; | |
72ef6efb RD |
26821 | void *argp1 = 0 ; |
26822 | int res1 = 0 ; | |
5c8c7dd3 RD |
26823 | wxDouble temp2 ; |
26824 | int res2 = 0 ; | |
26825 | wxDouble temp3 ; | |
26826 | int res3 = 0 ; | |
26827 | PyObject * obj0 = 0 ; | |
26828 | PyObject * obj1 = 0 ; | |
26829 | PyObject * obj2 = 0 ; | |
26830 | char * kwnames[] = { | |
26831 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26832 | }; | |
72ef6efb | 26833 | |
5c8c7dd3 RD |
26834 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 26836 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 26837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
72ef6efb | 26838 | } |
5c8c7dd3 RD |
26839 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26840 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26841 | double val; | |
26842 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26843 | if (!SWIG_IsOK(ecode)) { | |
26844 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26845 | } | |
26846 | temp2 = static_cast< wxDouble >(val); | |
26847 | arg2 = &temp2; | |
26848 | res2 = SWIG_AddTmpMask(ecode); | |
26849 | } | |
26850 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
26851 | double val; | |
26852 | int ecode = SWIG_AsVal_double(obj2, &val); | |
26853 | if (!SWIG_IsOK(ecode)) { | |
26854 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26855 | } | |
26856 | temp3 = static_cast< wxDouble >(val); | |
26857 | arg3 = &temp3; | |
26858 | res3 = SWIG_AddTmpMask(ecode); | |
26859 | } | |
26860 | { | |
8f514ab4 | 26861 | ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3); |
72ef6efb RD |
26862 | if (PyErr_Occurred()) SWIG_fail; |
26863 | } | |
26864 | resultobj = SWIG_Py_Void(); | |
5c8c7dd3 RD |
26865 | if (SWIG_IsTmpObj(res2)) { |
26866 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26867 | } else { | |
26868 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26869 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26870 | } | |
26871 | if (SWIG_IsTmpObj(res3)) { | |
26872 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26873 | } else { | |
26874 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26875 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26876 | } | |
72ef6efb RD |
26877 | return resultobj; |
26878 | fail: | |
26879 | return NULL; | |
26880 | } | |
26881 | ||
26882 | ||
5c8c7dd3 RD |
26883 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26884 | PyObject *resultobj = 0; | |
26885 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26886 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26887 | wxDouble *arg3 = (wxDouble *) 0 ; | |
26888 | void *argp1 = 0 ; | |
26889 | int res1 = 0 ; | |
26890 | wxDouble temp2 ; | |
26891 | int res2 = 0 ; | |
26892 | wxDouble temp3 ; | |
26893 | int res3 = 0 ; | |
26894 | PyObject * obj0 = 0 ; | |
26895 | PyObject * obj1 = 0 ; | |
26896 | PyObject * obj2 = 0 ; | |
26897 | char * kwnames[] = { | |
26898 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26899 | }; | |
26900 | ||
26901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26903 | if (!SWIG_IsOK(res1)) { | |
8f514ab4 | 26904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
5c8c7dd3 RD |
26905 | } |
26906 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26907 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26908 | double val; | |
26909 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26910 | if (!SWIG_IsOK(ecode)) { | |
26911 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26912 | } | |
26913 | temp2 = static_cast< wxDouble >(val); | |
26914 | arg2 = &temp2; | |
26915 | res2 = SWIG_AddTmpMask(ecode); | |
26916 | } | |
26917 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
26918 | double val; | |
26919 | int ecode = SWIG_AsVal_double(obj2, &val); | |
26920 | if (!SWIG_IsOK(ecode)) { | |
26921 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26922 | } | |
26923 | temp3 = static_cast< wxDouble >(val); | |
26924 | arg3 = &temp3; | |
26925 | res3 = SWIG_AddTmpMask(ecode); | |
26926 | } | |
26927 | { | |
8f514ab4 | 26928 | ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3); |
5c8c7dd3 RD |
26929 | if (PyErr_Occurred()) SWIG_fail; |
26930 | } | |
26931 | resultobj = SWIG_Py_Void(); | |
26932 | if (SWIG_IsTmpObj(res2)) { | |
26933 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26934 | } else { | |
26935 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26936 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26937 | } | |
26938 | if (SWIG_IsTmpObj(res3)) { | |
26939 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26940 | } else { | |
26941 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26942 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26943 | } | |
26944 | return resultobj; | |
26945 | fail: | |
26946 | return NULL; | |
26947 | } | |
26948 | ||
26949 | ||
26950 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26951 | PyObject *resultobj = 0; | |
26952 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26953 | void *result = 0 ; | |
26954 | void *argp1 = 0 ; | |
26955 | int res1 = 0 ; | |
26956 | PyObject *swig_obj[1] ; | |
26957 | ||
26958 | if (!args) SWIG_fail; | |
26959 | swig_obj[0] = args; | |
26960 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26961 | if (!SWIG_IsOK(res1)) { | |
26962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
26963 | } | |
26964 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26965 | { | |
26966 | result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix(); | |
26967 | if (PyErr_Occurred()) SWIG_fail; | |
26968 | } | |
26969 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
26970 | return resultobj; | |
26971 | fail: | |
26972 | return NULL; | |
26973 | } | |
26974 | ||
26975 | ||
26976 | SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26977 | PyObject *obj; | |
26978 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26979 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj)); | |
26980 | return SWIG_Py_Void(); | |
26981 | } | |
26982 | ||
8f514ab4 RD |
26983 | SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26984 | return SWIG_Python_InitShadowInstance(args); | |
26985 | } | |
26986 | ||
26987 | SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26988 | PyObject *resultobj = 0; | |
26989 | wxGraphicsPath *result = 0 ; | |
26990 | ||
26991 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail; | |
26992 | { | |
26993 | if (!wxPyCheckForApp()) SWIG_fail; | |
26994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26995 | result = (wxGraphicsPath *)new wxGraphicsPath(); | |
26996 | wxPyEndAllowThreads(__tstate); | |
26997 | if (PyErr_Occurred()) SWIG_fail; | |
26998 | } | |
26999 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 ); | |
27000 | return resultobj; | |
27001 | fail: | |
27002 | return NULL; | |
27003 | } | |
27004 | ||
27005 | ||
5c8c7dd3 | 27006 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
27007 | PyObject *resultobj = 0; |
27008 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
72ef6efb RD |
27009 | void *argp1 = 0 ; |
27010 | int res1 = 0 ; | |
27011 | PyObject *swig_obj[1] ; | |
27012 | ||
27013 | if (!args) SWIG_fail; | |
27014 | swig_obj[0] = args; | |
5c8c7dd3 | 27015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
72ef6efb | 27016 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
72ef6efb RD |
27018 | } |
27019 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27020 | { | |
5c8c7dd3 RD |
27021 | delete arg1; |
27022 | ||
72ef6efb RD |
27023 | if (PyErr_Occurred()) SWIG_fail; |
27024 | } | |
5c8c7dd3 | 27025 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27026 | return resultobj; |
27027 | fail: | |
27028 | return NULL; | |
27029 | } | |
27030 | ||
27031 | ||
5c8c7dd3 | 27032 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27033 | PyObject *resultobj = 0; |
27034 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27035 | wxDouble arg2 ; | |
27036 | wxDouble arg3 ; | |
70d7cb34 RD |
27037 | void *argp1 = 0 ; |
27038 | int res1 = 0 ; | |
27039 | double val2 ; | |
27040 | int ecode2 = 0 ; | |
27041 | double val3 ; | |
27042 | int ecode3 = 0 ; | |
70d7cb34 | 27043 | |
5c8c7dd3 | 27044 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
70d7cb34 RD |
27045 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27046 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27048 | } |
27049 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27050 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27051 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 27052 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27053 | } |
27054 | arg2 = static_cast< wxDouble >(val2); | |
27055 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27056 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 27057 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27058 | } |
27059 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 27060 | { |
5c8c7dd3 | 27061 | (arg1)->MoveToPoint(arg2,arg3); |
70d7cb34 RD |
27062 | if (PyErr_Occurred()) SWIG_fail; |
27063 | } | |
27064 | resultobj = SWIG_Py_Void(); | |
27065 | return resultobj; | |
27066 | fail: | |
27067 | return NULL; | |
27068 | } | |
27069 | ||
27070 | ||
5c8c7dd3 | 27071 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27072 | PyObject *resultobj = 0; |
27073 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27074 | wxPoint2D *arg2 = 0 ; | |
70d7cb34 RD |
27075 | void *argp1 = 0 ; |
27076 | int res1 = 0 ; | |
27077 | wxPoint2D temp2 ; | |
70d7cb34 | 27078 | |
5c8c7dd3 | 27079 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
70d7cb34 RD |
27080 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27081 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27083 | } |
27084 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27085 | { | |
27086 | arg2 = &temp2; | |
27087 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
27088 | } | |
70d7cb34 | 27089 | { |
5c8c7dd3 | 27090 | (arg1)->MoveToPoint((wxPoint2D const &)*arg2); |
70d7cb34 RD |
27091 | if (PyErr_Occurred()) SWIG_fail; |
27092 | } | |
27093 | resultobj = SWIG_Py_Void(); | |
27094 | return resultobj; | |
27095 | fail: | |
27096 | return NULL; | |
27097 | } | |
27098 | ||
27099 | ||
5c8c7dd3 | 27100 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) { |
70d7cb34 | 27101 | int argc; |
5c8c7dd3 | 27102 | PyObject *argv[4]; |
70d7cb34 | 27103 | |
5c8c7dd3 | 27104 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail; |
70d7cb34 | 27105 | --argc; |
5c8c7dd3 RD |
27106 | if (argc == 2) { |
27107 | return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 27108 | } |
5c8c7dd3 RD |
27109 | if (argc == 3) { |
27110 | return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
27111 | } |
27112 | ||
27113 | fail: | |
5c8c7dd3 | 27114 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'"); |
70d7cb34 RD |
27115 | return NULL; |
27116 | } | |
27117 | ||
27118 | ||
5c8c7dd3 | 27119 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27120 | PyObject *resultobj = 0; |
27121 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27122 | wxDouble arg2 ; | |
27123 | wxDouble arg3 ; | |
70d7cb34 RD |
27124 | void *argp1 = 0 ; |
27125 | int res1 = 0 ; | |
27126 | double val2 ; | |
27127 | int ecode2 = 0 ; | |
27128 | double val3 ; | |
27129 | int ecode3 = 0 ; | |
70d7cb34 | 27130 | |
5c8c7dd3 RD |
27131 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
27132 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27133 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27135 | } |
27136 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 27137 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 27138 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 27139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27140 | } |
27141 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 27142 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 27143 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 27144 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27145 | } |
27146 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 27147 | { |
5c8c7dd3 | 27148 | (arg1)->AddLineToPoint(arg2,arg3); |
70d7cb34 RD |
27149 | if (PyErr_Occurred()) SWIG_fail; |
27150 | } | |
27151 | resultobj = SWIG_Py_Void(); | |
27152 | return resultobj; | |
27153 | fail: | |
27154 | return NULL; | |
27155 | } | |
27156 | ||
27157 | ||
5c8c7dd3 | 27158 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27159 | PyObject *resultobj = 0; |
27160 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 27161 | wxPoint2D *arg2 = 0 ; |
70d7cb34 RD |
27162 | void *argp1 = 0 ; |
27163 | int res1 = 0 ; | |
5c8c7dd3 | 27164 | wxPoint2D temp2 ; |
70d7cb34 | 27165 | |
5c8c7dd3 RD |
27166 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
27167 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27168 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27170 | } |
27171 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27172 | { |
5c8c7dd3 RD |
27173 | arg2 = &temp2; |
27174 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
27175 | } | |
27176 | { | |
27177 | (arg1)->AddLineToPoint((wxPoint2D const &)*arg2); | |
70d7cb34 RD |
27178 | if (PyErr_Occurred()) SWIG_fail; |
27179 | } | |
27180 | resultobj = SWIG_Py_Void(); | |
27181 | return resultobj; | |
27182 | fail: | |
27183 | return NULL; | |
27184 | } | |
27185 | ||
27186 | ||
5c8c7dd3 RD |
27187 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) { |
27188 | int argc; | |
27189 | PyObject *argv[4]; | |
70d7cb34 | 27190 | |
5c8c7dd3 RD |
27191 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail; |
27192 | --argc; | |
27193 | if (argc == 2) { | |
27194 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 27195 | } |
5c8c7dd3 RD |
27196 | if (argc == 3) { |
27197 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 27198 | } |
5c8c7dd3 | 27199 | |
70d7cb34 | 27200 | fail: |
5c8c7dd3 | 27201 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'"); |
70d7cb34 RD |
27202 | return NULL; |
27203 | } | |
27204 | ||
27205 | ||
5c8c7dd3 | 27206 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27207 | PyObject *resultobj = 0; |
27208 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27209 | wxDouble arg2 ; | |
27210 | wxDouble arg3 ; | |
27211 | wxDouble arg4 ; | |
27212 | wxDouble arg5 ; | |
27213 | wxDouble arg6 ; | |
5c8c7dd3 | 27214 | wxDouble arg7 ; |
70d7cb34 RD |
27215 | void *argp1 = 0 ; |
27216 | int res1 = 0 ; | |
27217 | double val2 ; | |
27218 | int ecode2 = 0 ; | |
27219 | double val3 ; | |
27220 | int ecode3 = 0 ; | |
27221 | double val4 ; | |
27222 | int ecode4 = 0 ; | |
27223 | double val5 ; | |
27224 | int ecode5 = 0 ; | |
27225 | double val6 ; | |
27226 | int ecode6 = 0 ; | |
5c8c7dd3 RD |
27227 | double val7 ; |
27228 | int ecode7 = 0 ; | |
70d7cb34 | 27229 | |
5c8c7dd3 RD |
27230 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
27231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27232 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27234 | } |
27235 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 27236 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 27237 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 27238 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27239 | } |
27240 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 27241 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 27242 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 27243 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27244 | } |
27245 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 | 27246 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
70d7cb34 | 27247 | if (!SWIG_IsOK(ecode4)) { |
5c8c7dd3 | 27248 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27249 | } |
27250 | arg4 = static_cast< wxDouble >(val4); | |
5c8c7dd3 | 27251 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); |
70d7cb34 | 27252 | if (!SWIG_IsOK(ecode5)) { |
5c8c7dd3 | 27253 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27254 | } |
27255 | arg5 = static_cast< wxDouble >(val5); | |
5c8c7dd3 | 27256 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); |
70d7cb34 | 27257 | if (!SWIG_IsOK(ecode6)) { |
5c8c7dd3 | 27258 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27259 | } |
27260 | arg6 = static_cast< wxDouble >(val6); | |
5c8c7dd3 RD |
27261 | ecode7 = SWIG_AsVal_double(swig_obj[6], &val7); |
27262 | if (!SWIG_IsOK(ecode7)) { | |
27263 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
27264 | } | |
27265 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 | 27266 | { |
5c8c7dd3 | 27267 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
27268 | if (PyErr_Occurred()) SWIG_fail; |
27269 | } | |
27270 | resultobj = SWIG_Py_Void(); | |
27271 | return resultobj; | |
27272 | fail: | |
27273 | return NULL; | |
27274 | } | |
27275 | ||
27276 | ||
5c8c7dd3 | 27277 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27278 | PyObject *resultobj = 0; |
27279 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
27280 | wxPoint2D *arg2 = 0 ; |
27281 | wxPoint2D *arg3 = 0 ; | |
27282 | wxPoint2D *arg4 = 0 ; | |
70d7cb34 RD |
27283 | void *argp1 = 0 ; |
27284 | int res1 = 0 ; | |
5c8c7dd3 RD |
27285 | wxPoint2D temp2 ; |
27286 | wxPoint2D temp3 ; | |
27287 | wxPoint2D temp4 ; | |
70d7cb34 | 27288 | |
5c8c7dd3 RD |
27289 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; |
27290 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27291 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27293 | } |
27294 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27295 | { |
5c8c7dd3 RD |
27296 | arg2 = &temp2; |
27297 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 27298 | } |
5c8c7dd3 RD |
27299 | { |
27300 | arg3 = &temp3; | |
27301 | if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail; | |
70d7cb34 | 27302 | } |
70d7cb34 | 27303 | { |
5c8c7dd3 RD |
27304 | arg4 = &temp4; |
27305 | if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail; | |
27306 | } | |
27307 | { | |
27308 | (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4); | |
70d7cb34 RD |
27309 | if (PyErr_Occurred()) SWIG_fail; |
27310 | } | |
27311 | resultobj = SWIG_Py_Void(); | |
27312 | return resultobj; | |
27313 | fail: | |
27314 | return NULL; | |
27315 | } | |
27316 | ||
27317 | ||
5c8c7dd3 RD |
27318 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) { |
27319 | int argc; | |
27320 | PyObject *argv[8]; | |
70d7cb34 | 27321 | |
5c8c7dd3 RD |
27322 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail; |
27323 | --argc; | |
27324 | if (argc == 4) { | |
27325 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 27326 | } |
5c8c7dd3 RD |
27327 | if (argc == 7) { |
27328 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 27329 | } |
5c8c7dd3 | 27330 | |
70d7cb34 | 27331 | fail: |
5c8c7dd3 | 27332 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'"); |
70d7cb34 RD |
27333 | return NULL; |
27334 | } | |
27335 | ||
27336 | ||
5c8c7dd3 | 27337 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 RD |
27338 | PyObject *resultobj = 0; |
27339 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 27340 | wxGraphicsPath *arg2 = 0 ; |
70d7cb34 RD |
27341 | void *argp1 = 0 ; |
27342 | int res1 = 0 ; | |
5c8c7dd3 RD |
27343 | void *argp2 = 0 ; |
27344 | int res2 = 0 ; | |
70d7cb34 RD |
27345 | PyObject * obj0 = 0 ; |
27346 | PyObject * obj1 = 0 ; | |
27347 | char * kwnames[] = { | |
5c8c7dd3 | 27348 | (char *) "self",(char *) "path", NULL |
70d7cb34 RD |
27349 | }; |
27350 | ||
5c8c7dd3 | 27351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail; |
70d7cb34 RD |
27352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27353 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27355 | } |
27356 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 27357 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
70d7cb34 | 27358 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
27359 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
27360 | } | |
27361 | if (!argp2) { | |
27362 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
70d7cb34 | 27363 | } |
5c8c7dd3 | 27364 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); |
70d7cb34 | 27365 | { |
5c8c7dd3 | 27366 | (arg1)->AddPath((wxGraphicsPath const &)*arg2); |
70d7cb34 RD |
27367 | if (PyErr_Occurred()) SWIG_fail; |
27368 | } | |
27369 | resultobj = SWIG_Py_Void(); | |
27370 | return resultobj; | |
27371 | fail: | |
27372 | return NULL; | |
27373 | } | |
27374 | ||
27375 | ||
5c8c7dd3 | 27376 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27377 | PyObject *resultobj = 0; |
27378 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
70d7cb34 RD |
27379 | void *argp1 = 0 ; |
27380 | int res1 = 0 ; | |
5c8c7dd3 | 27381 | PyObject *swig_obj[1] ; |
70d7cb34 | 27382 | |
5c8c7dd3 RD |
27383 | if (!args) SWIG_fail; |
27384 | swig_obj[0] = args; | |
27385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27386 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27388 | } |
27389 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27390 | { |
5c8c7dd3 | 27391 | (arg1)->CloseSubpath(); |
70d7cb34 RD |
27392 | if (PyErr_Occurred()) SWIG_fail; |
27393 | } | |
27394 | resultobj = SWIG_Py_Void(); | |
27395 | return resultobj; | |
27396 | fail: | |
27397 | return NULL; | |
27398 | } | |
27399 | ||
27400 | ||
5c8c7dd3 | 27401 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27402 | PyObject *resultobj = 0; |
27403 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 27404 | wxPoint2D result; |
70d7cb34 RD |
27405 | void *argp1 = 0 ; |
27406 | int res1 = 0 ; | |
27407 | PyObject *swig_obj[1] ; | |
27408 | ||
27409 | if (!args) SWIG_fail; | |
27410 | swig_obj[0] = args; | |
27411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
27412 | if (!SWIG_IsOK(res1)) { | |
8f514ab4 | 27413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 RD |
27414 | } |
27415 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27416 | { | |
8f514ab4 | 27417 | result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint(); |
70d7cb34 RD |
27418 | if (PyErr_Occurred()) SWIG_fail; |
27419 | } | |
5c8c7dd3 | 27420 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
27421 | return resultobj; |
27422 | fail: | |
27423 | return NULL; | |
27424 | } | |
27425 | ||
27426 | ||
5c8c7dd3 | 27427 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27428 | PyObject *resultobj = 0; |
27429 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27430 | wxDouble arg2 ; | |
27431 | wxDouble arg3 ; | |
5c8c7dd3 RD |
27432 | wxDouble arg4 ; |
27433 | wxDouble arg5 ; | |
27434 | wxDouble arg6 ; | |
27435 | bool arg7 ; | |
70d7cb34 RD |
27436 | void *argp1 = 0 ; |
27437 | int res1 = 0 ; | |
27438 | double val2 ; | |
27439 | int ecode2 = 0 ; | |
27440 | double val3 ; | |
27441 | int ecode3 = 0 ; | |
5c8c7dd3 | 27442 | double val4 ; |
70d7cb34 | 27443 | int ecode4 = 0 ; |
5c8c7dd3 RD |
27444 | double val5 ; |
27445 | int ecode5 = 0 ; | |
27446 | double val6 ; | |
27447 | int ecode6 = 0 ; | |
27448 | bool val7 ; | |
27449 | int ecode7 = 0 ; | |
70d7cb34 | 27450 | |
5c8c7dd3 | 27451 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
70d7cb34 RD |
27452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27453 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27455 | } |
27456 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27457 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27458 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 27459 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27460 | } |
27461 | arg2 = static_cast< wxDouble >(val2); | |
27462 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27463 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 27464 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27465 | } |
27466 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 RD |
27467 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
27468 | if (!SWIG_IsOK(ecode4)) { | |
27469 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27470 | } | |
27471 | arg4 = static_cast< wxDouble >(val4); | |
27472 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
27473 | if (!SWIG_IsOK(ecode5)) { | |
27474 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27475 | } | |
27476 | arg5 = static_cast< wxDouble >(val5); | |
27477 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); | |
27478 | if (!SWIG_IsOK(ecode6)) { | |
27479 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27480 | } | |
27481 | arg6 = static_cast< wxDouble >(val6); | |
27482 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
27483 | if (!SWIG_IsOK(ecode7)) { | |
27484 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
27485 | } | |
27486 | arg7 = static_cast< bool >(val7); | |
70d7cb34 | 27487 | { |
5c8c7dd3 | 27488 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
27489 | if (PyErr_Occurred()) SWIG_fail; |
27490 | } | |
5c8c7dd3 | 27491 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27492 | return resultobj; |
27493 | fail: | |
27494 | return NULL; | |
27495 | } | |
27496 | ||
27497 | ||
5c8c7dd3 | 27498 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27499 | PyObject *resultobj = 0; |
27500 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
27501 | wxPoint2D *arg2 = 0 ; |
27502 | wxDouble arg3 ; | |
27503 | wxDouble arg4 ; | |
27504 | wxDouble arg5 ; | |
27505 | bool arg6 ; | |
70d7cb34 RD |
27506 | void *argp1 = 0 ; |
27507 | int res1 = 0 ; | |
5c8c7dd3 RD |
27508 | wxPoint2D temp2 ; |
27509 | double val3 ; | |
70d7cb34 | 27510 | int ecode3 = 0 ; |
5c8c7dd3 RD |
27511 | double val4 ; |
27512 | int ecode4 = 0 ; | |
27513 | double val5 ; | |
27514 | int ecode5 = 0 ; | |
27515 | bool val6 ; | |
27516 | int ecode6 = 0 ; | |
70d7cb34 | 27517 | |
5c8c7dd3 | 27518 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
27519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27520 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27522 | } |
27523 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27524 | { |
5c8c7dd3 RD |
27525 | arg2 = &temp2; |
27526 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 27527 | } |
5c8c7dd3 RD |
27528 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
27529 | if (!SWIG_IsOK(ecode3)) { | |
27530 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27531 | } | |
27532 | arg3 = static_cast< wxDouble >(val3); | |
27533 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
27534 | if (!SWIG_IsOK(ecode4)) { | |
27535 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27536 | } | |
27537 | arg4 = static_cast< wxDouble >(val4); | |
27538 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
27539 | if (!SWIG_IsOK(ecode5)) { | |
27540 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27541 | } | |
27542 | arg5 = static_cast< wxDouble >(val5); | |
27543 | ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); | |
27544 | if (!SWIG_IsOK(ecode6)) { | |
27545 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'"); | |
27546 | } | |
27547 | arg6 = static_cast< bool >(val6); | |
70d7cb34 | 27548 | { |
5c8c7dd3 RD |
27549 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
27550 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 27551 | } |
5c8c7dd3 | 27552 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27553 | return resultobj; |
27554 | fail: | |
27555 | return NULL; | |
27556 | } | |
27557 | ||
27558 | ||
5c8c7dd3 | 27559 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 27560 | int argc; |
5c8c7dd3 | 27561 | PyObject *argv[8]; |
70d7cb34 | 27562 | |
5c8c7dd3 | 27563 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 27564 | --argc; |
5c8c7dd3 RD |
27565 | if (argc == 6) { |
27566 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); | |
70d7cb34 | 27567 | } |
5c8c7dd3 RD |
27568 | if (argc == 7) { |
27569 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
27570 | } |
27571 | ||
27572 | fail: | |
5c8c7dd3 | 27573 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
27574 | return NULL; |
27575 | } | |
27576 | ||
27577 | ||
5c8c7dd3 | 27578 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27579 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27580 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27581 | wxDouble arg2 ; | |
27582 | wxDouble arg3 ; | |
27583 | wxDouble arg4 ; | |
27584 | wxDouble arg5 ; | |
70d7cb34 RD |
27585 | void *argp1 = 0 ; |
27586 | int res1 = 0 ; | |
5c8c7dd3 RD |
27587 | double val2 ; |
27588 | int ecode2 = 0 ; | |
27589 | double val3 ; | |
27590 | int ecode3 = 0 ; | |
27591 | double val4 ; | |
27592 | int ecode4 = 0 ; | |
27593 | double val5 ; | |
27594 | int ecode5 = 0 ; | |
27595 | PyObject * obj0 = 0 ; | |
27596 | PyObject * obj1 = 0 ; | |
27597 | PyObject * obj2 = 0 ; | |
27598 | PyObject * obj3 = 0 ; | |
27599 | PyObject * obj4 = 0 ; | |
27600 | char * kwnames[] = { | |
27601 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
27602 | }; | |
70d7cb34 | 27603 | |
5c8c7dd3 RD |
27604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27606 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27608 | } |
5c8c7dd3 RD |
27609 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27610 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27611 | if (!SWIG_IsOK(ecode2)) { | |
27612 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27613 | } | |
27614 | arg2 = static_cast< wxDouble >(val2); | |
27615 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27616 | if (!SWIG_IsOK(ecode3)) { | |
27617 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27618 | } | |
27619 | arg3 = static_cast< wxDouble >(val3); | |
27620 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27621 | if (!SWIG_IsOK(ecode4)) { | |
27622 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27623 | } | |
27624 | arg4 = static_cast< wxDouble >(val4); | |
27625 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27626 | if (!SWIG_IsOK(ecode5)) { | |
27627 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27628 | } | |
27629 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27630 | { |
5c8c7dd3 | 27631 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27632 | if (PyErr_Occurred()) SWIG_fail; |
27633 | } | |
27634 | resultobj = SWIG_Py_Void(); | |
27635 | return resultobj; | |
27636 | fail: | |
27637 | return NULL; | |
27638 | } | |
27639 | ||
27640 | ||
5c8c7dd3 | 27641 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27642 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27643 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27644 | wxDouble arg2 ; | |
27645 | wxDouble arg3 ; | |
27646 | wxDouble arg4 ; | |
27647 | wxDouble arg5 ; | |
70d7cb34 RD |
27648 | void *argp1 = 0 ; |
27649 | int res1 = 0 ; | |
5c8c7dd3 RD |
27650 | double val2 ; |
27651 | int ecode2 = 0 ; | |
27652 | double val3 ; | |
27653 | int ecode3 = 0 ; | |
27654 | double val4 ; | |
27655 | int ecode4 = 0 ; | |
27656 | double val5 ; | |
27657 | int ecode5 = 0 ; | |
70d7cb34 RD |
27658 | PyObject * obj0 = 0 ; |
27659 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27660 | PyObject * obj2 = 0 ; |
27661 | PyObject * obj3 = 0 ; | |
27662 | PyObject * obj4 = 0 ; | |
70d7cb34 | 27663 | char * kwnames[] = { |
5c8c7dd3 | 27664 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
27665 | }; |
27666 | ||
5c8c7dd3 RD |
27667 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27669 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27671 | } |
5c8c7dd3 RD |
27672 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27673 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27674 | if (!SWIG_IsOK(ecode2)) { | |
27675 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27676 | } | |
27677 | arg2 = static_cast< wxDouble >(val2); | |
27678 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27679 | if (!SWIG_IsOK(ecode3)) { | |
27680 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27681 | } | |
27682 | arg3 = static_cast< wxDouble >(val3); | |
27683 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27684 | if (!SWIG_IsOK(ecode4)) { | |
27685 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27686 | } | |
27687 | arg4 = static_cast< wxDouble >(val4); | |
27688 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27689 | if (!SWIG_IsOK(ecode5)) { | |
27690 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27691 | } | |
27692 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27693 | { |
5c8c7dd3 | 27694 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27695 | if (PyErr_Occurred()) SWIG_fail; |
27696 | } | |
27697 | resultobj = SWIG_Py_Void(); | |
27698 | return resultobj; | |
27699 | fail: | |
27700 | return NULL; | |
27701 | } | |
27702 | ||
27703 | ||
5c8c7dd3 | 27704 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27705 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27706 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27707 | wxDouble arg2 ; | |
27708 | wxDouble arg3 ; | |
27709 | wxDouble arg4 ; | |
70d7cb34 RD |
27710 | void *argp1 = 0 ; |
27711 | int res1 = 0 ; | |
5c8c7dd3 RD |
27712 | double val2 ; |
27713 | int ecode2 = 0 ; | |
27714 | double val3 ; | |
27715 | int ecode3 = 0 ; | |
27716 | double val4 ; | |
27717 | int ecode4 = 0 ; | |
70d7cb34 RD |
27718 | PyObject * obj0 = 0 ; |
27719 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27720 | PyObject * obj2 = 0 ; |
27721 | PyObject * obj3 = 0 ; | |
70d7cb34 | 27722 | char * kwnames[] = { |
5c8c7dd3 | 27723 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
27724 | }; |
27725 | ||
5c8c7dd3 RD |
27726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
27727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27728 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27730 | } |
5c8c7dd3 RD |
27731 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27732 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27733 | if (!SWIG_IsOK(ecode2)) { | |
27734 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27735 | } | |
27736 | arg2 = static_cast< wxDouble >(val2); | |
27737 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27738 | if (!SWIG_IsOK(ecode3)) { | |
27739 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27740 | } | |
27741 | arg3 = static_cast< wxDouble >(val3); | |
27742 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27743 | if (!SWIG_IsOK(ecode4)) { | |
27744 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27745 | } | |
27746 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 27747 | { |
5c8c7dd3 | 27748 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
27749 | if (PyErr_Occurred()) SWIG_fail; |
27750 | } | |
27751 | resultobj = SWIG_Py_Void(); | |
27752 | return resultobj; | |
27753 | fail: | |
27754 | return NULL; | |
27755 | } | |
27756 | ||
27757 | ||
5c8c7dd3 | 27758 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27759 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27760 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27761 | wxDouble arg2 ; | |
27762 | wxDouble arg3 ; | |
27763 | wxDouble arg4 ; | |
27764 | wxDouble arg5 ; | |
27765 | wxDouble arg6 ; | |
70d7cb34 RD |
27766 | void *argp1 = 0 ; |
27767 | int res1 = 0 ; | |
27768 | double val2 ; | |
27769 | int ecode2 = 0 ; | |
27770 | double val3 ; | |
27771 | int ecode3 = 0 ; | |
27772 | double val4 ; | |
27773 | int ecode4 = 0 ; | |
27774 | double val5 ; | |
27775 | int ecode5 = 0 ; | |
27776 | double val6 ; | |
27777 | int ecode6 = 0 ; | |
70d7cb34 RD |
27778 | PyObject * obj0 = 0 ; |
27779 | PyObject * obj1 = 0 ; | |
27780 | PyObject * obj2 = 0 ; | |
27781 | PyObject * obj3 = 0 ; | |
27782 | PyObject * obj4 = 0 ; | |
27783 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27784 | char * kwnames[] = { |
5c8c7dd3 | 27785 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
27786 | }; |
27787 | ||
5c8c7dd3 RD |
27788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27790 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27792 | } |
5c8c7dd3 RD |
27793 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27794 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27795 | if (!SWIG_IsOK(ecode2)) { | |
27796 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27797 | } | |
27798 | arg2 = static_cast< wxDouble >(val2); | |
27799 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27800 | if (!SWIG_IsOK(ecode3)) { | |
27801 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27802 | } | |
27803 | arg3 = static_cast< wxDouble >(val3); | |
27804 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27805 | if (!SWIG_IsOK(ecode4)) { | |
27806 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27807 | } | |
27808 | arg4 = static_cast< wxDouble >(val4); | |
27809 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27810 | if (!SWIG_IsOK(ecode5)) { | |
27811 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27812 | } | |
27813 | arg5 = static_cast< wxDouble >(val5); | |
27814 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27815 | if (!SWIG_IsOK(ecode6)) { | |
27816 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27817 | } | |
27818 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27819 | { |
5c8c7dd3 | 27820 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27821 | if (PyErr_Occurred()) SWIG_fail; |
27822 | } | |
27823 | resultobj = SWIG_Py_Void(); | |
27824 | return resultobj; | |
27825 | fail: | |
27826 | return NULL; | |
27827 | } | |
27828 | ||
27829 | ||
5c8c7dd3 | 27830 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27831 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27832 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27833 | wxDouble arg2 ; | |
27834 | wxDouble arg3 ; | |
27835 | wxDouble arg4 ; | |
27836 | wxDouble arg5 ; | |
70d7cb34 RD |
27837 | void *argp1 = 0 ; |
27838 | int res1 = 0 ; | |
5c8c7dd3 RD |
27839 | double val2 ; |
27840 | int ecode2 = 0 ; | |
27841 | double val3 ; | |
27842 | int ecode3 = 0 ; | |
27843 | double val4 ; | |
27844 | int ecode4 = 0 ; | |
27845 | double val5 ; | |
27846 | int ecode5 = 0 ; | |
27847 | PyObject * obj0 = 0 ; | |
27848 | PyObject * obj1 = 0 ; | |
27849 | PyObject * obj2 = 0 ; | |
27850 | PyObject * obj3 = 0 ; | |
27851 | PyObject * obj4 = 0 ; | |
27852 | char * kwnames[] = { | |
27853 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27854 | }; | |
70d7cb34 | 27855 | |
5c8c7dd3 RD |
27856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27858 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27860 | } |
5c8c7dd3 RD |
27861 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27862 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27863 | if (!SWIG_IsOK(ecode2)) { | |
27864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27865 | } | |
27866 | arg2 = static_cast< wxDouble >(val2); | |
27867 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27868 | if (!SWIG_IsOK(ecode3)) { | |
27869 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27870 | } | |
27871 | arg3 = static_cast< wxDouble >(val3); | |
27872 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27873 | if (!SWIG_IsOK(ecode4)) { | |
27874 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27875 | } | |
27876 | arg4 = static_cast< wxDouble >(val4); | |
27877 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27878 | if (!SWIG_IsOK(ecode5)) { | |
27879 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27880 | } | |
27881 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27882 | { |
5c8c7dd3 | 27883 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27884 | if (PyErr_Occurred()) SWIG_fail; |
27885 | } | |
27886 | resultobj = SWIG_Py_Void(); | |
27887 | return resultobj; | |
27888 | fail: | |
27889 | return NULL; | |
27890 | } | |
27891 | ||
27892 | ||
5c8c7dd3 | 27893 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27894 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27895 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27896 | wxDouble arg2 ; | |
27897 | wxDouble arg3 ; | |
27898 | wxDouble arg4 ; | |
27899 | wxDouble arg5 ; | |
27900 | wxDouble arg6 ; | |
70d7cb34 RD |
27901 | void *argp1 = 0 ; |
27902 | int res1 = 0 ; | |
5c8c7dd3 RD |
27903 | double val2 ; |
27904 | int ecode2 = 0 ; | |
27905 | double val3 ; | |
27906 | int ecode3 = 0 ; | |
27907 | double val4 ; | |
27908 | int ecode4 = 0 ; | |
27909 | double val5 ; | |
27910 | int ecode5 = 0 ; | |
27911 | double val6 ; | |
27912 | int ecode6 = 0 ; | |
70d7cb34 RD |
27913 | PyObject * obj0 = 0 ; |
27914 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27915 | PyObject * obj2 = 0 ; |
27916 | PyObject * obj3 = 0 ; | |
27917 | PyObject * obj4 = 0 ; | |
27918 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27919 | char * kwnames[] = { |
5c8c7dd3 | 27920 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
27921 | }; |
27922 | ||
5c8c7dd3 RD |
27923 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27925 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27927 | } |
5c8c7dd3 RD |
27928 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27929 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27930 | if (!SWIG_IsOK(ecode2)) { | |
27931 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27932 | } | |
27933 | arg2 = static_cast< wxDouble >(val2); | |
27934 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27935 | if (!SWIG_IsOK(ecode3)) { | |
27936 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27937 | } | |
27938 | arg3 = static_cast< wxDouble >(val3); | |
27939 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27940 | if (!SWIG_IsOK(ecode4)) { | |
27941 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27942 | } | |
27943 | arg4 = static_cast< wxDouble >(val4); | |
27944 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27945 | if (!SWIG_IsOK(ecode5)) { | |
27946 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27947 | } | |
27948 | arg5 = static_cast< wxDouble >(val5); | |
27949 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27950 | if (!SWIG_IsOK(ecode6)) { | |
27951 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27952 | } | |
27953 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27954 | { |
5c8c7dd3 | 27955 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27956 | if (PyErr_Occurred()) SWIG_fail; |
27957 | } | |
5c8c7dd3 | 27958 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27959 | return resultobj; |
27960 | fail: | |
27961 | return NULL; | |
27962 | } | |
27963 | ||
27964 | ||
5c8c7dd3 | 27965 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27966 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27967 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27968 | void *result = 0 ; | |
70d7cb34 RD |
27969 | void *argp1 = 0 ; |
27970 | int res1 = 0 ; | |
27971 | PyObject *swig_obj[1] ; | |
27972 | ||
27973 | if (!args) SWIG_fail; | |
27974 | swig_obj[0] = args; | |
5c8c7dd3 | 27975 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 27976 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27978 | } |
5c8c7dd3 | 27979 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27980 | { |
5c8c7dd3 | 27981 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
27982 | if (PyErr_Occurred()) SWIG_fail; |
27983 | } | |
5c8c7dd3 | 27984 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
27985 | return resultobj; |
27986 | fail: | |
27987 | return NULL; | |
27988 | } | |
27989 | ||
27990 | ||
5c8c7dd3 | 27991 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27992 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27993 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27994 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
27995 | void *argp1 = 0 ; |
27996 | int res1 = 0 ; | |
5c8c7dd3 | 27997 | int res2 ; |
70d7cb34 RD |
27998 | PyObject * obj0 = 0 ; |
27999 | PyObject * obj1 = 0 ; | |
70d7cb34 | 28000 | char * kwnames[] = { |
5c8c7dd3 | 28001 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
28002 | }; |
28003 | ||
5c8c7dd3 RD |
28004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
28005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28006 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
5c8c7dd3 RD |
28008 | } |
28009 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
28010 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
28011 | if (!SWIG_IsOK(res2)) { | |
28012 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 28013 | } |
70d7cb34 | 28014 | { |
8f514ab4 | 28015 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
28016 | if (PyErr_Occurred()) SWIG_fail; |
28017 | } | |
28018 | resultobj = SWIG_Py_Void(); | |
28019 | return resultobj; | |
28020 | fail: | |
28021 | return NULL; | |
28022 | } | |
28023 | ||
28024 | ||
5c8c7dd3 | 28025 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 28026 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28027 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28028 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
28029 | void *argp1 = 0 ; |
28030 | int res1 = 0 ; | |
5c8c7dd3 RD |
28031 | void *argp2 = 0 ; |
28032 | int res2 = 0 ; | |
70d7cb34 RD |
28033 | PyObject * obj0 = 0 ; |
28034 | PyObject * obj1 = 0 ; | |
70d7cb34 | 28035 | char * kwnames[] = { |
5c8c7dd3 | 28036 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
28037 | }; |
28038 | ||
5c8c7dd3 RD |
28039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
28040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28041 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 28042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 28043 | } |
5c8c7dd3 RD |
28044 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28045 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28046 | if (!SWIG_IsOK(res2)) { | |
28047 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28048 | } | |
28049 | if (!argp2) { | |
28050 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28051 | } | |
28052 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 28053 | { |
5c8c7dd3 | 28054 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
28055 | if (PyErr_Occurred()) SWIG_fail; |
28056 | } | |
28057 | resultobj = SWIG_Py_Void(); | |
28058 | return resultobj; | |
28059 | fail: | |
28060 | return NULL; | |
28061 | } | |
28062 | ||
28063 | ||
5c8c7dd3 | 28064 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 28065 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28066 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28067 | wxRect2DDouble result; | |
70d7cb34 RD |
28068 | void *argp1 = 0 ; |
28069 | int res1 = 0 ; | |
5c8c7dd3 | 28070 | PyObject *swig_obj[1] ; |
70d7cb34 | 28071 | |
5c8c7dd3 RD |
28072 | if (!args) SWIG_fail; |
28073 | swig_obj[0] = args; | |
28074 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28075 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28077 | } |
5c8c7dd3 | 28078 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 28079 | { |
8f514ab4 | 28080 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
28081 | if (PyErr_Occurred()) SWIG_fail; |
28082 | } | |
5c8c7dd3 | 28083 | resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
28084 | return resultobj; |
28085 | fail: | |
28086 | return NULL; | |
28087 | } | |
28088 | ||
28089 | ||
5c8c7dd3 | 28090 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 28091 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28092 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28093 | wxDouble arg2 ; | |
28094 | wxDouble arg3 ; | |
8f514ab4 | 28095 | int arg4 = (int) wxODDEVEN_RULE ; |
5c8c7dd3 | 28096 | bool result; |
70d7cb34 RD |
28097 | void *argp1 = 0 ; |
28098 | int res1 = 0 ; | |
5c8c7dd3 RD |
28099 | double val2 ; |
28100 | int ecode2 = 0 ; | |
28101 | double val3 ; | |
28102 | int ecode3 = 0 ; | |
28103 | int val4 ; | |
28104 | int ecode4 = 0 ; | |
70d7cb34 | 28105 | |
5c8c7dd3 RD |
28106 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
28107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28108 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28110 | } |
5c8c7dd3 RD |
28111 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28112 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
28113 | if (!SWIG_IsOK(ecode2)) { | |
28114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28115 | } | |
28116 | arg2 = static_cast< wxDouble >(val2); | |
28117 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
28118 | if (!SWIG_IsOK(ecode3)) { | |
28119 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28120 | } | |
28121 | arg3 = static_cast< wxDouble >(val3); | |
28122 | if (swig_obj[3]) { | |
28123 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
28124 | if (!SWIG_IsOK(ecode4)) { | |
28125 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
28126 | } | |
28127 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
28128 | } |
28129 | { | |
8f514ab4 | 28130 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
28131 | if (PyErr_Occurred()) SWIG_fail; |
28132 | } | |
5c8c7dd3 RD |
28133 | { |
28134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
28135 | } |
28136 | return resultobj; | |
28137 | fail: | |
28138 | return NULL; | |
28139 | } | |
28140 | ||
28141 | ||
5c8c7dd3 | 28142 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 28143 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28144 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28145 | wxPoint2DDouble *arg2 = 0 ; | |
8f514ab4 | 28146 | int arg3 = (int) wxODDEVEN_RULE ; |
5c8c7dd3 | 28147 | bool result; |
70d7cb34 RD |
28148 | void *argp1 = 0 ; |
28149 | int res1 = 0 ; | |
5c8c7dd3 | 28150 | void *argp2 = 0 ; |
70d7cb34 | 28151 | int res2 = 0 ; |
5c8c7dd3 RD |
28152 | int val3 ; |
28153 | int ecode3 = 0 ; | |
70d7cb34 | 28154 | |
5c8c7dd3 RD |
28155 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
28156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28157 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28159 | } |
5c8c7dd3 RD |
28160 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28161 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0); | |
28162 | if (!SWIG_IsOK(res2)) { | |
28163 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
70d7cb34 | 28164 | } |
5c8c7dd3 RD |
28165 | if (!argp2) { |
28166 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
28167 | } | |
28168 | arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2); | |
28169 | if (swig_obj[2]) { | |
28170 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
28171 | if (!SWIG_IsOK(ecode3)) { | |
28172 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
28173 | } | |
28174 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
28175 | } |
28176 | { | |
8f514ab4 | 28177 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3); |
70d7cb34 RD |
28178 | if (PyErr_Occurred()) SWIG_fail; |
28179 | } | |
5c8c7dd3 RD |
28180 | { |
28181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
28182 | } |
28183 | return resultobj; | |
28184 | fail: | |
28185 | return NULL; | |
28186 | } | |
28187 | ||
28188 | ||
5c8c7dd3 RD |
28189 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
28190 | int argc; | |
28191 | PyObject *argv[5]; | |
70d7cb34 | 28192 | |
5c8c7dd3 RD |
28193 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
28194 | --argc; | |
28195 | if ((argc >= 2) && (argc <= 3)) { | |
28196 | int _v = 0; | |
28197 | { | |
28198 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0); | |
28199 | _v = SWIG_CheckState(res); | |
28200 | } | |
28201 | if (!_v) goto check_1; | |
28202 | if (argc > 2) { | |
28203 | { | |
28204 | { | |
28205 | int res = SWIG_AsVal_int(argv[2], NULL); | |
28206 | _v = SWIG_CheckState(res); | |
28207 | } | |
28208 | } | |
28209 | if (!_v) goto check_1; | |
28210 | } | |
28211 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 28212 | } |
5c8c7dd3 RD |
28213 | check_1: |
28214 | ||
28215 | if ((argc >= 3) && (argc <= 4)) { | |
28216 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 28217 | } |
5c8c7dd3 | 28218 | |
70d7cb34 | 28219 | fail: |
5c8c7dd3 | 28220 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
28221 | return NULL; |
28222 | } | |
28223 | ||
28224 | ||
5c8c7dd3 | 28225 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
28226 | PyObject *obj; |
28227 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 28228 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
28229 | return SWIG_Py_Void(); |
28230 | } | |
28231 | ||
8f514ab4 RD |
28232 | SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28233 | return SWIG_Python_InitShadowInstance(args); | |
28234 | } | |
28235 | ||
5c8c7dd3 RD |
28236 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
28237 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
28238 | return 1; | |
28239 | } | |
28240 | ||
28241 | ||
28242 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
28243 | PyObject *pyobj = 0; | |
28244 | ||
28245 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
28246 | return pyobj; | |
28247 | } | |
28248 | ||
28249 | ||
28250 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
28251 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
28252 | return 1; | |
28253 | } | |
28254 | ||
28255 | ||
28256 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
28257 | PyObject *pyobj = 0; | |
28258 | ||
28259 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
28260 | return pyobj; | |
28261 | } | |
28262 | ||
28263 | ||
28264 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
28265 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
28266 | return 1; | |
28267 | } | |
28268 | ||
28269 | ||
28270 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
28271 | PyObject *pyobj = 0; | |
28272 | ||
28273 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
28274 | return pyobj; | |
28275 | } | |
28276 | ||
28277 | ||
28278 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
28279 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
28280 | return 1; | |
28281 | } | |
28282 | ||
28283 | ||
28284 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
28285 | PyObject *pyobj = 0; | |
28286 | ||
28287 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
28288 | return pyobj; | |
28289 | } | |
28290 | ||
28291 | ||
28292 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
28293 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
28294 | return 1; | |
28295 | } | |
28296 | ||
28297 | ||
28298 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
28299 | PyObject *pyobj = 0; | |
28300 | ||
28301 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
28302 | return pyobj; | |
28303 | } | |
28304 | ||
28305 | ||
70d7cb34 RD |
28306 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28307 | PyObject *resultobj = 0; | |
28308 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28309 | void *argp1 = 0 ; | |
28310 | int res1 = 0 ; | |
28311 | PyObject *swig_obj[1] ; | |
28312 | ||
28313 | if (!args) SWIG_fail; | |
28314 | swig_obj[0] = args; | |
28315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
28316 | if (!SWIG_IsOK(res1)) { | |
28317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28318 | } | |
28319 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28320 | { | |
28321 | delete arg1; | |
28322 | ||
28323 | if (PyErr_Occurred()) SWIG_fail; | |
28324 | } | |
28325 | resultobj = SWIG_Py_Void(); | |
28326 | return resultobj; | |
28327 | fail: | |
28328 | return NULL; | |
28329 | } | |
28330 | ||
28331 | ||
28332 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28333 | PyObject *resultobj = 0; | |
28334 | wxWindowDC *arg1 = 0 ; | |
28335 | wxGraphicsContext *result = 0 ; | |
28336 | void *argp1 = 0 ; | |
28337 | int res1 = 0 ; | |
28338 | ||
28339 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
28340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
28341 | if (!SWIG_IsOK(res1)) { | |
28342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
28343 | } | |
28344 | if (!argp1) { | |
28345 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
28346 | } | |
28347 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
28348 | { | |
28349 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
28350 | if (PyErr_Occurred()) SWIG_fail; | |
28351 | } | |
28352 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28353 | return resultobj; | |
28354 | fail: | |
28355 | return NULL; | |
28356 | } | |
28357 | ||
28358 | ||
28359 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28360 | PyObject *resultobj = 0; | |
28361 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28362 | wxGraphicsContext *result = 0 ; | |
28363 | void *argp1 = 0 ; | |
28364 | int res1 = 0 ; | |
28365 | ||
28366 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
28367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28368 | if (!SWIG_IsOK(res1)) { | |
28369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
28370 | } | |
28371 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
28372 | { | |
28373 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
28374 | if (PyErr_Occurred()) SWIG_fail; | |
28375 | } | |
28376 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28377 | return resultobj; | |
28378 | fail: | |
28379 | return NULL; | |
28380 | } | |
28381 | ||
28382 | ||
28383 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
28384 | int argc; | |
28385 | PyObject *argv[2]; | |
28386 | ||
28387 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
28388 | --argc; | |
28389 | if (argc == 1) { | |
28390 | int _v = 0; | |
28391 | { | |
28392 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
28393 | _v = SWIG_CheckState(res); | |
28394 | } | |
28395 | if (!_v) goto check_1; | |
28396 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
28397 | } | |
28398 | check_1: | |
28399 | ||
28400 | if (argc == 1) { | |
28401 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
28402 | } | |
28403 | ||
28404 | fail: | |
28405 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
28406 | return NULL; | |
28407 | } | |
28408 | ||
28409 | ||
f89238b9 RD |
28410 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28411 | PyObject *resultobj = 0; | |
28412 | wxGraphicsContext *result = 0 ; | |
28413 | ||
28414 | if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail; | |
28415 | { | |
28416 | result = (wxGraphicsContext *)wxGraphicsContext::Create(); | |
28417 | if (PyErr_Occurred()) SWIG_fail; | |
28418 | } | |
28419 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28420 | return resultobj; | |
28421 | fail: | |
28422 | return NULL; | |
28423 | } | |
28424 | ||
28425 | ||
70d7cb34 RD |
28426 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28427 | PyObject *resultobj = 0; | |
28428 | void *arg1 = (void *) 0 ; | |
28429 | wxGraphicsContext *result = 0 ; | |
28430 | int res1 ; | |
28431 | PyObject * obj0 = 0 ; | |
28432 | char * kwnames[] = { | |
28433 | (char *) "context", NULL | |
28434 | }; | |
28435 | ||
28436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
28437 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28438 | if (!SWIG_IsOK(res1)) { | |
28439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
28440 | } | |
28441 | { | |
28442 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
28443 | if (PyErr_Occurred()) SWIG_fail; | |
28444 | } | |
28445 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28446 | return resultobj; | |
28447 | fail: | |
28448 | return NULL; | |
28449 | } | |
28450 | ||
28451 | ||
28452 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28453 | PyObject *resultobj = 0; | |
28454 | void *arg1 = (void *) 0 ; | |
28455 | wxGraphicsContext *result = 0 ; | |
28456 | int res1 ; | |
28457 | PyObject * obj0 = 0 ; | |
28458 | char * kwnames[] = { | |
28459 | (char *) "window", NULL | |
28460 | }; | |
28461 | ||
28462 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
28463 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28464 | if (!SWIG_IsOK(res1)) { | |
28465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
28466 | } | |
28467 | { | |
28468 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
28469 | if (PyErr_Occurred()) SWIG_fail; | |
28470 | } | |
28471 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28472 | return resultobj; | |
28473 | fail: | |
28474 | return NULL; | |
28475 | } | |
28476 | ||
28477 | ||
28478 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28479 | PyObject *resultobj = 0; | |
28480 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28481 | wxGraphicsPath result; |
70d7cb34 RD |
28482 | void *argp1 = 0 ; |
28483 | int res1 = 0 ; | |
28484 | PyObject *swig_obj[1] ; | |
28485 | ||
28486 | if (!args) SWIG_fail; | |
28487 | swig_obj[0] = args; | |
28488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28489 | if (!SWIG_IsOK(res1)) { | |
28490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28491 | } | |
28492 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28493 | { | |
5c8c7dd3 | 28494 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
28495 | if (PyErr_Occurred()) SWIG_fail; |
28496 | } | |
5c8c7dd3 | 28497 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28498 | return resultobj; |
28499 | fail: | |
28500 | return NULL; | |
28501 | } | |
28502 | ||
28503 | ||
70d7cb34 | 28504 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28505 | PyObject *resultobj = 0; |
70d7cb34 RD |
28506 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28507 | wxPen *arg2 = 0 ; | |
28508 | wxGraphicsPen result; | |
72ef6efb RD |
28509 | void *argp1 = 0 ; |
28510 | int res1 = 0 ; | |
70d7cb34 RD |
28511 | void *argp2 = 0 ; |
28512 | int res2 = 0 ; | |
72ef6efb RD |
28513 | PyObject * obj0 = 0 ; |
28514 | PyObject * obj1 = 0 ; | |
72ef6efb | 28515 | char * kwnames[] = { |
70d7cb34 | 28516 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
28517 | }; |
28518 | ||
70d7cb34 RD |
28519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
28520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28521 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28523 | } |
70d7cb34 RD |
28524 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28525 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
28526 | if (!SWIG_IsOK(res2)) { | |
28527 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28528 | } | |
28529 | if (!argp2) { | |
28530 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28531 | } | |
28532 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 28533 | { |
70d7cb34 | 28534 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
28535 | if (PyErr_Occurred()) SWIG_fail; |
28536 | } | |
70d7cb34 | 28537 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28538 | return resultobj; |
28539 | fail: | |
28540 | return NULL; | |
28541 | } | |
28542 | ||
28543 | ||
70d7cb34 | 28544 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28545 | PyObject *resultobj = 0; |
70d7cb34 RD |
28546 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28547 | wxBrush *arg2 = 0 ; | |
28548 | wxGraphicsBrush result; | |
72ef6efb RD |
28549 | void *argp1 = 0 ; |
28550 | int res1 = 0 ; | |
70d7cb34 RD |
28551 | void *argp2 = 0 ; |
28552 | int res2 = 0 ; | |
72ef6efb RD |
28553 | PyObject * obj0 = 0 ; |
28554 | PyObject * obj1 = 0 ; | |
72ef6efb | 28555 | char * kwnames[] = { |
70d7cb34 | 28556 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
28557 | }; |
28558 | ||
70d7cb34 RD |
28559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
28560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28561 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28563 | } |
70d7cb34 RD |
28564 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28565 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
28566 | if (!SWIG_IsOK(res2)) { | |
28567 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28568 | } | |
28569 | if (!argp2) { | |
28570 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28571 | } | |
28572 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 28573 | { |
70d7cb34 | 28574 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28575 | if (PyErr_Occurred()) SWIG_fail; |
28576 | } | |
70d7cb34 | 28577 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28578 | return resultobj; |
28579 | fail: | |
28580 | return NULL; | |
28581 | } | |
28582 | ||
28583 | ||
70d7cb34 | 28584 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28585 | PyObject *resultobj = 0; |
70d7cb34 | 28586 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28587 | wxDouble arg2 ; |
28588 | wxDouble arg3 ; | |
28589 | wxDouble arg4 ; | |
28590 | wxDouble arg5 ; | |
70d7cb34 RD |
28591 | wxColour *arg6 = 0 ; |
28592 | wxColour *arg7 = 0 ; | |
28593 | wxGraphicsBrush result; | |
72ef6efb RD |
28594 | void *argp1 = 0 ; |
28595 | int res1 = 0 ; | |
28596 | double val2 ; | |
28597 | int ecode2 = 0 ; | |
28598 | double val3 ; | |
28599 | int ecode3 = 0 ; | |
28600 | double val4 ; | |
28601 | int ecode4 = 0 ; | |
28602 | double val5 ; | |
28603 | int ecode5 = 0 ; | |
70d7cb34 RD |
28604 | wxColour temp6 ; |
28605 | wxColour temp7 ; | |
72ef6efb RD |
28606 | PyObject * obj0 = 0 ; |
28607 | PyObject * obj1 = 0 ; | |
28608 | PyObject * obj2 = 0 ; | |
28609 | PyObject * obj3 = 0 ; | |
28610 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
28611 | PyObject * obj5 = 0 ; |
28612 | PyObject * obj6 = 0 ; | |
72ef6efb | 28613 | char * kwnames[] = { |
70d7cb34 | 28614 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
28615 | }; |
28616 | ||
70d7cb34 RD |
28617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28619 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28621 | } |
70d7cb34 | 28622 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28623 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28624 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28625 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28626 | } |
28627 | arg2 = static_cast< wxDouble >(val2); | |
28628 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28629 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28630 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28631 | } |
28632 | arg3 = static_cast< wxDouble >(val3); | |
28633 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28634 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28635 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28636 | } |
28637 | arg4 = static_cast< wxDouble >(val4); | |
28638 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28639 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28640 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28641 | } |
28642 | arg5 = static_cast< wxDouble >(val5); | |
28643 | { | |
70d7cb34 RD |
28644 | arg6 = &temp6; |
28645 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 28646 | } |
70d7cb34 RD |
28647 | { |
28648 | arg7 = &temp7; | |
28649 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 28650 | } |
72ef6efb | 28651 | { |
70d7cb34 | 28652 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
28653 | if (PyErr_Occurred()) SWIG_fail; |
28654 | } | |
70d7cb34 | 28655 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28656 | return resultobj; |
28657 | fail: | |
28658 | return NULL; | |
28659 | } | |
28660 | ||
28661 | ||
70d7cb34 | 28662 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28663 | PyObject *resultobj = 0; |
70d7cb34 | 28664 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28665 | wxDouble arg2 ; |
28666 | wxDouble arg3 ; | |
28667 | wxDouble arg4 ; | |
28668 | wxDouble arg5 ; | |
28669 | wxDouble arg6 ; | |
70d7cb34 RD |
28670 | wxColour *arg7 = 0 ; |
28671 | wxColour *arg8 = 0 ; | |
28672 | wxGraphicsBrush result; | |
72ef6efb RD |
28673 | void *argp1 = 0 ; |
28674 | int res1 = 0 ; | |
28675 | double val2 ; | |
28676 | int ecode2 = 0 ; | |
28677 | double val3 ; | |
28678 | int ecode3 = 0 ; | |
28679 | double val4 ; | |
28680 | int ecode4 = 0 ; | |
28681 | double val5 ; | |
28682 | int ecode5 = 0 ; | |
28683 | double val6 ; | |
28684 | int ecode6 = 0 ; | |
70d7cb34 RD |
28685 | wxColour temp7 ; |
28686 | wxColour temp8 ; | |
72ef6efb RD |
28687 | PyObject * obj0 = 0 ; |
28688 | PyObject * obj1 = 0 ; | |
28689 | PyObject * obj2 = 0 ; | |
28690 | PyObject * obj3 = 0 ; | |
28691 | PyObject * obj4 = 0 ; | |
28692 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
28693 | PyObject * obj6 = 0 ; |
28694 | PyObject * obj7 = 0 ; | |
72ef6efb | 28695 | char * kwnames[] = { |
70d7cb34 | 28696 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
28697 | }; |
28698 | ||
70d7cb34 RD |
28699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
28700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28701 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28703 | } |
70d7cb34 | 28704 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28705 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28706 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28707 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28708 | } |
28709 | arg2 = static_cast< wxDouble >(val2); | |
28710 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28711 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28712 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28713 | } |
28714 | arg3 = static_cast< wxDouble >(val3); | |
28715 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28716 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28717 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28718 | } |
28719 | arg4 = static_cast< wxDouble >(val4); | |
28720 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28721 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28722 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28723 | } |
28724 | arg5 = static_cast< wxDouble >(val5); | |
28725 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28726 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 28727 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
28728 | } |
28729 | arg6 = static_cast< wxDouble >(val6); | |
28730 | { | |
70d7cb34 RD |
28731 | arg7 = &temp7; |
28732 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
28733 | } | |
28734 | { | |
28735 | arg8 = &temp8; | |
28736 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
28737 | } | |
28738 | { | |
28739 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
28740 | if (PyErr_Occurred()) SWIG_fail; |
28741 | } | |
70d7cb34 | 28742 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28743 | return resultobj; |
28744 | fail: | |
28745 | return NULL; | |
28746 | } | |
28747 | ||
28748 | ||
70d7cb34 | 28749 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28750 | PyObject *resultobj = 0; |
28751 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
28752 | wxFont *arg2 = 0 ; |
28753 | wxColour const &arg3_defvalue = *wxBLACK ; | |
28754 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
28755 | wxGraphicsFont result; | |
72ef6efb RD |
28756 | void *argp1 = 0 ; |
28757 | int res1 = 0 ; | |
70d7cb34 RD |
28758 | void *argp2 = 0 ; |
28759 | int res2 = 0 ; | |
28760 | wxColour temp3 ; | |
28761 | PyObject * obj0 = 0 ; | |
28762 | PyObject * obj1 = 0 ; | |
28763 | PyObject * obj2 = 0 ; | |
28764 | char * kwnames[] = { | |
28765 | (char *) "self",(char *) "font",(char *) "col", NULL | |
28766 | }; | |
72ef6efb | 28767 | |
70d7cb34 RD |
28768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
28769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28770 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28772 | } |
28773 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28774 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
28775 | if (!SWIG_IsOK(res2)) { | |
28776 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28777 | } |
70d7cb34 RD |
28778 | if (!argp2) { |
28779 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28780 | } |
70d7cb34 RD |
28781 | arg2 = reinterpret_cast< wxFont * >(argp2); |
28782 | if (obj2) { | |
28783 | { | |
28784 | arg3 = &temp3; | |
28785 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
28786 | } | |
72ef6efb | 28787 | } |
72ef6efb | 28788 | { |
70d7cb34 | 28789 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28790 | if (PyErr_Occurred()) SWIG_fail; |
28791 | } | |
70d7cb34 | 28792 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28793 | return resultobj; |
28794 | fail: | |
28795 | return NULL; | |
28796 | } | |
28797 | ||
28798 | ||
70d7cb34 | 28799 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 28800 | PyObject *resultobj = 0; |
70d7cb34 RD |
28801 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28802 | wxDouble arg2 = (wxDouble) 1.0 ; | |
28803 | wxDouble arg3 = (wxDouble) 0.0 ; | |
28804 | wxDouble arg4 = (wxDouble) 0.0 ; | |
28805 | wxDouble arg5 = (wxDouble) 1.0 ; | |
28806 | wxDouble arg6 = (wxDouble) 0.0 ; | |
28807 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 28808 | wxGraphicsMatrix result; |
0a27f394 RD |
28809 | void *argp1 = 0 ; |
28810 | int res1 = 0 ; | |
70d7cb34 RD |
28811 | double val2 ; |
28812 | int ecode2 = 0 ; | |
28813 | double val3 ; | |
28814 | int ecode3 = 0 ; | |
28815 | double val4 ; | |
28816 | int ecode4 = 0 ; | |
28817 | double val5 ; | |
28818 | int ecode5 = 0 ; | |
28819 | double val6 ; | |
28820 | int ecode6 = 0 ; | |
28821 | double val7 ; | |
28822 | int ecode7 = 0 ; | |
28823 | PyObject * obj0 = 0 ; | |
28824 | PyObject * obj1 = 0 ; | |
28825 | PyObject * obj2 = 0 ; | |
28826 | PyObject * obj3 = 0 ; | |
28827 | PyObject * obj4 = 0 ; | |
28828 | PyObject * obj5 = 0 ; | |
28829 | PyObject * obj6 = 0 ; | |
28830 | char * kwnames[] = { | |
28831 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
28832 | }; | |
0a27f394 | 28833 | |
70d7cb34 RD |
28834 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 28836 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 28838 | } |
70d7cb34 RD |
28839 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28840 | if (obj1) { | |
28841 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28842 | if (!SWIG_IsOK(ecode2)) { | |
28843 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28844 | } | |
28845 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 28846 | } |
70d7cb34 RD |
28847 | if (obj2) { |
28848 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28849 | if (!SWIG_IsOK(ecode3)) { | |
28850 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28851 | } | |
28852 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 28853 | } |
70d7cb34 RD |
28854 | if (obj3) { |
28855 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28856 | if (!SWIG_IsOK(ecode4)) { | |
28857 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28858 | } | |
28859 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 28860 | } |
70d7cb34 RD |
28861 | if (obj4) { |
28862 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28863 | if (!SWIG_IsOK(ecode5)) { | |
28864 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28865 | } | |
28866 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 28867 | } |
70d7cb34 RD |
28868 | if (obj5) { |
28869 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28870 | if (!SWIG_IsOK(ecode6)) { | |
28871 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28872 | } | |
28873 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 28874 | } |
70d7cb34 RD |
28875 | if (obj6) { |
28876 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
28877 | if (!SWIG_IsOK(ecode7)) { | |
28878 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
28879 | } | |
28880 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 28881 | } |
72ef6efb | 28882 | { |
5c8c7dd3 | 28883 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
28884 | if (PyErr_Occurred()) SWIG_fail; |
28885 | } | |
5c8c7dd3 | 28886 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28887 | return resultobj; |
28888 | fail: | |
28889 | return NULL; | |
28890 | } | |
28891 | ||
28892 | ||
28893 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28894 | PyObject *resultobj = 0; | |
28895 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28896 | void *argp1 = 0 ; | |
28897 | int res1 = 0 ; | |
28898 | PyObject *swig_obj[1] ; | |
28899 | ||
28900 | if (!args) SWIG_fail; | |
28901 | swig_obj[0] = args; | |
28902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28903 | if (!SWIG_IsOK(res1)) { | |
28904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28905 | } | |
28906 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28907 | { | |
72ef6efb | 28908 | (arg1)->PushState(); |
72ef6efb RD |
28909 | if (PyErr_Occurred()) SWIG_fail; |
28910 | } | |
28911 | resultobj = SWIG_Py_Void(); | |
28912 | return resultobj; | |
28913 | fail: | |
28914 | return NULL; | |
28915 | } | |
28916 | ||
28917 | ||
28918 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28919 | PyObject *resultobj = 0; | |
28920 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28921 | void *argp1 = 0 ; | |
28922 | int res1 = 0 ; | |
28923 | PyObject *swig_obj[1] ; | |
28924 | ||
28925 | if (!args) SWIG_fail; | |
28926 | swig_obj[0] = args; | |
28927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28928 | if (!SWIG_IsOK(res1)) { | |
28929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28930 | } | |
28931 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28932 | { | |
72ef6efb | 28933 | (arg1)->PopState(); |
72ef6efb RD |
28934 | if (PyErr_Occurred()) SWIG_fail; |
28935 | } | |
28936 | resultobj = SWIG_Py_Void(); | |
28937 | return resultobj; | |
28938 | fail: | |
28939 | return NULL; | |
28940 | } | |
28941 | ||
28942 | ||
0a27f394 | 28943 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28944 | PyObject *resultobj = 0; |
28945 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28946 | wxRegion *arg2 = 0 ; | |
28947 | void *argp1 = 0 ; | |
28948 | int res1 = 0 ; | |
28949 | void *argp2 = 0 ; | |
28950 | int res2 = 0 ; | |
28951 | PyObject * obj0 = 0 ; | |
28952 | PyObject * obj1 = 0 ; | |
28953 | char * kwnames[] = { | |
28954 | (char *) "self",(char *) "region", NULL | |
28955 | }; | |
28956 | ||
0a27f394 | 28957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
28959 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 28960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28961 | } |
28962 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28963 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
28964 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 28965 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28966 | } |
28967 | if (!argp2) { | |
0a27f394 | 28968 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28969 | } |
28970 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
28971 | { | |
72ef6efb | 28972 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
28973 | if (PyErr_Occurred()) SWIG_fail; |
28974 | } | |
28975 | resultobj = SWIG_Py_Void(); | |
28976 | return resultobj; | |
28977 | fail: | |
28978 | return NULL; | |
28979 | } | |
28980 | ||
28981 | ||
0a27f394 RD |
28982 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28983 | PyObject *resultobj = 0; | |
28984 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28985 | wxDouble arg2 ; | |
28986 | wxDouble arg3 ; | |
28987 | wxDouble arg4 ; | |
28988 | wxDouble arg5 ; | |
28989 | void *argp1 = 0 ; | |
28990 | int res1 = 0 ; | |
28991 | double val2 ; | |
28992 | int ecode2 = 0 ; | |
28993 | double val3 ; | |
28994 | int ecode3 = 0 ; | |
28995 | double val4 ; | |
28996 | int ecode4 = 0 ; | |
28997 | double val5 ; | |
28998 | int ecode5 = 0 ; | |
28999 | PyObject * obj0 = 0 ; | |
29000 | PyObject * obj1 = 0 ; | |
29001 | PyObject * obj2 = 0 ; | |
29002 | PyObject * obj3 = 0 ; | |
29003 | PyObject * obj4 = 0 ; | |
29004 | char * kwnames[] = { | |
29005 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29006 | }; | |
29007 | ||
29008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29010 | if (!SWIG_IsOK(res1)) { | |
29011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29012 | } | |
29013 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29014 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29015 | if (!SWIG_IsOK(ecode2)) { | |
29016 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29017 | } | |
29018 | arg2 = static_cast< wxDouble >(val2); | |
29019 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29020 | if (!SWIG_IsOK(ecode3)) { | |
29021 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29022 | } | |
29023 | arg3 = static_cast< wxDouble >(val3); | |
29024 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29025 | if (!SWIG_IsOK(ecode4)) { | |
29026 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29027 | } | |
29028 | arg4 = static_cast< wxDouble >(val4); | |
29029 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29030 | if (!SWIG_IsOK(ecode5)) { | |
29031 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29032 | } | |
29033 | arg5 = static_cast< wxDouble >(val5); | |
29034 | { | |
29035 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
29036 | if (PyErr_Occurred()) SWIG_fail; | |
29037 | } | |
29038 | resultobj = SWIG_Py_Void(); | |
29039 | return resultobj; | |
29040 | fail: | |
29041 | return NULL; | |
29042 | } | |
29043 | ||
29044 | ||
29045 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29046 | PyObject *resultobj = 0; | |
29047 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29048 | void *argp1 = 0 ; | |
29049 | int res1 = 0 ; | |
29050 | PyObject *swig_obj[1] ; | |
29051 | ||
29052 | if (!args) SWIG_fail; | |
29053 | swig_obj[0] = args; | |
29054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29055 | if (!SWIG_IsOK(res1)) { | |
29056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29057 | } | |
29058 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29059 | { | |
29060 | (arg1)->ResetClip(); | |
29061 | if (PyErr_Occurred()) SWIG_fail; | |
29062 | } | |
29063 | resultobj = SWIG_Py_Void(); | |
29064 | return resultobj; | |
29065 | fail: | |
29066 | return NULL; | |
29067 | } | |
29068 | ||
29069 | ||
29070 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29071 | PyObject *resultobj = 0; | |
29072 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29073 | void *result = 0 ; | |
29074 | void *argp1 = 0 ; | |
29075 | int res1 = 0 ; | |
29076 | PyObject *swig_obj[1] ; | |
29077 | ||
29078 | if (!args) SWIG_fail; | |
29079 | swig_obj[0] = args; | |
29080 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29081 | if (!SWIG_IsOK(res1)) { | |
29082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29083 | } | |
29084 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29085 | { | |
29086 | result = (void *)(arg1)->GetNativeContext(); | |
29087 | if (PyErr_Occurred()) SWIG_fail; | |
29088 | } | |
29089 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
29090 | return resultobj; | |
29091 | fail: | |
29092 | return NULL; | |
29093 | } | |
29094 | ||
29095 | ||
72ef6efb RD |
29096 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29097 | PyObject *resultobj = 0; | |
29098 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29099 | wxDouble arg2 ; | |
29100 | wxDouble arg3 ; | |
29101 | void *argp1 = 0 ; | |
29102 | int res1 = 0 ; | |
29103 | double val2 ; | |
29104 | int ecode2 = 0 ; | |
29105 | double val3 ; | |
29106 | int ecode3 = 0 ; | |
29107 | PyObject * obj0 = 0 ; | |
29108 | PyObject * obj1 = 0 ; | |
29109 | PyObject * obj2 = 0 ; | |
29110 | char * kwnames[] = { | |
29111 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
29112 | }; | |
29113 | ||
29114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29116 | if (!SWIG_IsOK(res1)) { | |
29117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29118 | } | |
29119 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29120 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29121 | if (!SWIG_IsOK(ecode2)) { | |
29122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29123 | } | |
29124 | arg2 = static_cast< wxDouble >(val2); | |
29125 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29126 | if (!SWIG_IsOK(ecode3)) { | |
29127 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29128 | } | |
29129 | arg3 = static_cast< wxDouble >(val3); | |
29130 | { | |
72ef6efb | 29131 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
29132 | if (PyErr_Occurred()) SWIG_fail; |
29133 | } | |
29134 | resultobj = SWIG_Py_Void(); | |
29135 | return resultobj; | |
29136 | fail: | |
29137 | return NULL; | |
29138 | } | |
29139 | ||
29140 | ||
29141 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29142 | PyObject *resultobj = 0; | |
29143 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29144 | wxDouble arg2 ; | |
29145 | wxDouble arg3 ; | |
29146 | void *argp1 = 0 ; | |
29147 | int res1 = 0 ; | |
29148 | double val2 ; | |
29149 | int ecode2 = 0 ; | |
29150 | double val3 ; | |
29151 | int ecode3 = 0 ; | |
29152 | PyObject * obj0 = 0 ; | |
29153 | PyObject * obj1 = 0 ; | |
29154 | PyObject * obj2 = 0 ; | |
29155 | char * kwnames[] = { | |
29156 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
29157 | }; | |
29158 | ||
29159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29161 | if (!SWIG_IsOK(res1)) { | |
29162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29163 | } | |
29164 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29165 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29166 | if (!SWIG_IsOK(ecode2)) { | |
29167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29168 | } | |
29169 | arg2 = static_cast< wxDouble >(val2); | |
29170 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29171 | if (!SWIG_IsOK(ecode3)) { | |
29172 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29173 | } | |
29174 | arg3 = static_cast< wxDouble >(val3); | |
29175 | { | |
72ef6efb | 29176 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
29177 | if (PyErr_Occurred()) SWIG_fail; |
29178 | } | |
29179 | resultobj = SWIG_Py_Void(); | |
29180 | return resultobj; | |
29181 | fail: | |
29182 | return NULL; | |
29183 | } | |
29184 | ||
29185 | ||
29186 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29187 | PyObject *resultobj = 0; | |
29188 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29189 | wxDouble arg2 ; | |
29190 | void *argp1 = 0 ; | |
29191 | int res1 = 0 ; | |
29192 | double val2 ; | |
29193 | int ecode2 = 0 ; | |
29194 | PyObject * obj0 = 0 ; | |
29195 | PyObject * obj1 = 0 ; | |
29196 | char * kwnames[] = { | |
29197 | (char *) "self",(char *) "angle", NULL | |
29198 | }; | |
29199 | ||
29200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
29201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29202 | if (!SWIG_IsOK(res1)) { | |
29203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29204 | } | |
29205 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29206 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29207 | if (!SWIG_IsOK(ecode2)) { | |
29208 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29209 | } | |
29210 | arg2 = static_cast< wxDouble >(val2); | |
29211 | { | |
72ef6efb | 29212 | (arg1)->Rotate(arg2); |
72ef6efb RD |
29213 | if (PyErr_Occurred()) SWIG_fail; |
29214 | } | |
29215 | resultobj = SWIG_Py_Void(); | |
29216 | return resultobj; | |
29217 | fail: | |
29218 | return NULL; | |
29219 | } | |
29220 | ||
29221 | ||
5c8c7dd3 RD |
29222 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29223 | PyObject *resultobj = 0; | |
29224 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29225 | wxGraphicsMatrix *arg2 = 0 ; | |
29226 | void *argp1 = 0 ; | |
29227 | int res1 = 0 ; | |
29228 | void *argp2 = 0 ; | |
29229 | int res2 = 0 ; | |
29230 | PyObject * obj0 = 0 ; | |
29231 | PyObject * obj1 = 0 ; | |
29232 | char * kwnames[] = { | |
29233 | (char *) "self",(char *) "matrix", NULL | |
29234 | }; | |
29235 | ||
29236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
29237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29238 | if (!SWIG_IsOK(res1)) { | |
29239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29240 | } | |
29241 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29242 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
29243 | if (!SWIG_IsOK(res2)) { | |
29244 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29245 | } | |
29246 | if (!argp2) { | |
29247 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29248 | } | |
29249 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
29250 | { | |
29251 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
29252 | if (PyErr_Occurred()) SWIG_fail; | |
29253 | } | |
29254 | resultobj = SWIG_Py_Void(); | |
29255 | return resultobj; | |
29256 | fail: | |
29257 | return NULL; | |
29258 | } | |
29259 | ||
29260 | ||
29261 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29262 | PyObject *resultobj = 0; | |
29263 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29264 | wxGraphicsMatrix *arg2 = 0 ; | |
29265 | void *argp1 = 0 ; | |
29266 | int res1 = 0 ; | |
29267 | void *argp2 = 0 ; | |
29268 | int res2 = 0 ; | |
29269 | PyObject * obj0 = 0 ; | |
29270 | PyObject * obj1 = 0 ; | |
29271 | char * kwnames[] = { | |
29272 | (char *) "self",(char *) "matrix", NULL | |
29273 | }; | |
29274 | ||
29275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
29276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29277 | if (!SWIG_IsOK(res1)) { | |
29278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29279 | } | |
29280 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29281 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
29282 | if (!SWIG_IsOK(res2)) { | |
29283 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29284 | } | |
29285 | if (!argp2) { | |
29286 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29287 | } | |
29288 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
29289 | { | |
29290 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
29291 | if (PyErr_Occurred()) SWIG_fail; | |
29292 | } | |
29293 | resultobj = SWIG_Py_Void(); | |
29294 | return resultobj; | |
29295 | fail: | |
29296 | return NULL; | |
29297 | } | |
29298 | ||
29299 | ||
29300 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29301 | PyObject *resultobj = 0; | |
29302 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29303 | wxGraphicsMatrix result; | |
29304 | void *argp1 = 0 ; | |
29305 | int res1 = 0 ; | |
29306 | PyObject *swig_obj[1] ; | |
29307 | ||
29308 | if (!args) SWIG_fail; | |
29309 | swig_obj[0] = args; | |
29310 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29311 | if (!SWIG_IsOK(res1)) { | |
29312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
29313 | } | |
29314 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29315 | { | |
29316 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
29317 | if (PyErr_Occurred()) SWIG_fail; | |
29318 | } | |
29319 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
29320 | return resultobj; | |
29321 | fail: | |
29322 | return NULL; | |
29323 | } | |
29324 | ||
29325 | ||
70d7cb34 RD |
29326 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29327 | PyObject *resultobj = 0; | |
29328 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29329 | wxGraphicsPen *arg2 = 0 ; | |
29330 | void *argp1 = 0 ; | |
29331 | int res1 = 0 ; | |
29332 | void *argp2 = 0 ; | |
29333 | int res2 = 0 ; | |
29334 | ||
29335 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29337 | if (!SWIG_IsOK(res1)) { | |
29338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29339 | } | |
29340 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29341 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
29342 | if (!SWIG_IsOK(res2)) { | |
29343 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29344 | } | |
29345 | if (!argp2) { | |
29346 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29347 | } | |
29348 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
29349 | { | |
29350 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
29351 | if (PyErr_Occurred()) SWIG_fail; | |
29352 | } | |
29353 | resultobj = SWIG_Py_Void(); | |
29354 | return resultobj; | |
29355 | fail: | |
29356 | return NULL; | |
29357 | } | |
29358 | ||
29359 | ||
29360 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29361 | PyObject *resultobj = 0; |
29362 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29363 | wxPen *arg2 = 0 ; | |
29364 | void *argp1 = 0 ; | |
29365 | int res1 = 0 ; | |
29366 | void *argp2 = 0 ; | |
29367 | int res2 = 0 ; | |
72ef6efb | 29368 | |
70d7cb34 RD |
29369 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29370 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29371 | if (!SWIG_IsOK(res1)) { |
29372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29373 | } | |
29374 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29375 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
29376 | if (!SWIG_IsOK(res2)) { |
29377 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29378 | } | |
29379 | if (!argp2) { | |
29380 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29381 | } | |
29382 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
29383 | { | |
72ef6efb | 29384 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
29385 | if (PyErr_Occurred()) SWIG_fail; |
29386 | } | |
29387 | resultobj = SWIG_Py_Void(); | |
29388 | return resultobj; | |
29389 | fail: | |
29390 | return NULL; | |
29391 | } | |
29392 | ||
29393 | ||
70d7cb34 RD |
29394 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
29395 | int argc; | |
29396 | PyObject *argv[3]; | |
29397 | ||
29398 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
29399 | --argc; | |
29400 | if (argc == 2) { | |
29401 | int _v = 0; | |
29402 | { | |
29403 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
29404 | _v = SWIG_CheckState(res); | |
29405 | } | |
29406 | if (!_v) goto check_1; | |
29407 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
29408 | } | |
29409 | check_1: | |
29410 | ||
29411 | if (argc == 2) { | |
29412 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
29413 | } | |
29414 | ||
29415 | fail: | |
29416 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
29417 | return NULL; | |
29418 | } | |
29419 | ||
29420 | ||
29421 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29422 | PyObject *resultobj = 0; | |
29423 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29424 | wxGraphicsBrush *arg2 = 0 ; | |
29425 | void *argp1 = 0 ; | |
29426 | int res1 = 0 ; | |
29427 | void *argp2 = 0 ; | |
29428 | int res2 = 0 ; | |
29429 | ||
29430 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29431 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29432 | if (!SWIG_IsOK(res1)) { | |
29433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29434 | } | |
29435 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29436 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29437 | if (!SWIG_IsOK(res2)) { | |
29438 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29439 | } | |
29440 | if (!argp2) { | |
29441 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29442 | } | |
29443 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
29444 | { | |
29445 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
29446 | if (PyErr_Occurred()) SWIG_fail; | |
29447 | } | |
29448 | resultobj = SWIG_Py_Void(); | |
29449 | return resultobj; | |
29450 | fail: | |
29451 | return NULL; | |
29452 | } | |
29453 | ||
29454 | ||
29455 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29456 | PyObject *resultobj = 0; |
29457 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29458 | wxBrush *arg2 = 0 ; | |
29459 | void *argp1 = 0 ; | |
29460 | int res1 = 0 ; | |
29461 | void *argp2 = 0 ; | |
29462 | int res2 = 0 ; | |
72ef6efb | 29463 | |
70d7cb34 RD |
29464 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29465 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29466 | if (!SWIG_IsOK(res1)) { |
29467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29468 | } | |
29469 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29470 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
29471 | if (!SWIG_IsOK(res2)) { |
29472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29473 | } | |
29474 | if (!argp2) { | |
29475 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29476 | } | |
29477 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
29478 | { | |
72ef6efb | 29479 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
29480 | if (PyErr_Occurred()) SWIG_fail; |
29481 | } | |
29482 | resultobj = SWIG_Py_Void(); | |
29483 | return resultobj; | |
29484 | fail: | |
29485 | return NULL; | |
29486 | } | |
29487 | ||
29488 | ||
70d7cb34 RD |
29489 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
29490 | int argc; | |
29491 | PyObject *argv[3]; | |
72ef6efb | 29492 | |
70d7cb34 RD |
29493 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
29494 | --argc; | |
29495 | if (argc == 2) { | |
29496 | int _v = 0; | |
29497 | { | |
29498 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
29499 | _v = SWIG_CheckState(res); | |
29500 | } | |
29501 | if (!_v) goto check_1; | |
29502 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 29503 | } |
70d7cb34 RD |
29504 | check_1: |
29505 | ||
29506 | if (argc == 2) { | |
29507 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 29508 | } |
70d7cb34 | 29509 | |
72ef6efb | 29510 | fail: |
70d7cb34 | 29511 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
29512 | return NULL; |
29513 | } | |
29514 | ||
29515 | ||
70d7cb34 | 29516 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29517 | PyObject *resultobj = 0; |
29518 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29519 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
29520 | void *argp1 = 0 ; |
29521 | int res1 = 0 ; | |
70d7cb34 RD |
29522 | void *argp2 = 0 ; |
29523 | int res2 = 0 ; | |
72ef6efb | 29524 | |
70d7cb34 RD |
29525 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29527 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29529 | } |
29530 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29531 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
29532 | if (!SWIG_IsOK(res2)) { | |
29533 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29534 | } |
70d7cb34 RD |
29535 | if (!argp2) { |
29536 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29537 | } |
70d7cb34 | 29538 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 29539 | { |
70d7cb34 | 29540 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
29541 | if (PyErr_Occurred()) SWIG_fail; |
29542 | } | |
29543 | resultobj = SWIG_Py_Void(); | |
29544 | return resultobj; | |
29545 | fail: | |
29546 | return NULL; | |
29547 | } | |
29548 | ||
29549 | ||
70d7cb34 | 29550 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29551 | PyObject *resultobj = 0; |
29552 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29553 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
29554 | wxColour const &arg3_defvalue = *wxBLACK ; |
29555 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
29556 | void *argp1 = 0 ; |
29557 | int res1 = 0 ; | |
29558 | void *argp2 = 0 ; | |
29559 | int res2 = 0 ; | |
70d7cb34 | 29560 | wxColour temp3 ; |
72ef6efb | 29561 | |
70d7cb34 RD |
29562 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
29563 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29564 | if (!SWIG_IsOK(res1)) { |
29565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29566 | } | |
29567 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29568 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
29569 | if (!SWIG_IsOK(res2)) { |
29570 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29571 | } | |
29572 | if (!argp2) { | |
29573 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29574 | } | |
29575 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
29576 | if (swig_obj[2]) { |
29577 | { | |
29578 | arg3 = &temp3; | |
29579 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
29580 | } | |
29581 | } | |
72ef6efb | 29582 | { |
70d7cb34 | 29583 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
29584 | if (PyErr_Occurred()) SWIG_fail; |
29585 | } | |
29586 | resultobj = SWIG_Py_Void(); | |
29587 | return resultobj; | |
29588 | fail: | |
29589 | return NULL; | |
29590 | } | |
29591 | ||
29592 | ||
70d7cb34 RD |
29593 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
29594 | int argc; | |
29595 | PyObject *argv[4]; | |
72ef6efb | 29596 | |
70d7cb34 RD |
29597 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
29598 | --argc; | |
29599 | if (argc == 2) { | |
29600 | int _v = 0; | |
29601 | { | |
29602 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
29603 | _v = SWIG_CheckState(res); | |
29604 | } | |
29605 | if (!_v) goto check_1; | |
29606 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 29607 | } |
70d7cb34 RD |
29608 | check_1: |
29609 | ||
29610 | if ((argc >= 2) && (argc <= 3)) { | |
29611 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 29612 | } |
70d7cb34 | 29613 | |
72ef6efb | 29614 | fail: |
70d7cb34 | 29615 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
29616 | return NULL; |
29617 | } | |
29618 | ||
29619 | ||
29620 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29621 | PyObject *resultobj = 0; | |
29622 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29623 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
29624 | void *argp1 = 0 ; |
29625 | int res1 = 0 ; | |
29626 | void *argp2 = 0 ; | |
29627 | int res2 = 0 ; | |
29628 | PyObject * obj0 = 0 ; | |
29629 | PyObject * obj1 = 0 ; | |
29630 | char * kwnames[] = { | |
29631 | (char *) "self",(char *) "path", NULL | |
29632 | }; | |
29633 | ||
29634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
29635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29636 | if (!SWIG_IsOK(res1)) { | |
29637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29638 | } | |
29639 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29640 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29641 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29642 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29643 | } | |
29644 | if (!argp2) { | |
29645 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29646 | } |
29647 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29648 | { | |
5c8c7dd3 | 29649 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
29650 | if (PyErr_Occurred()) SWIG_fail; |
29651 | } | |
29652 | resultobj = SWIG_Py_Void(); | |
29653 | return resultobj; | |
29654 | fail: | |
29655 | return NULL; | |
29656 | } | |
29657 | ||
29658 | ||
29659 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29660 | PyObject *resultobj = 0; | |
29661 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29662 | wxGraphicsPath *arg2 = 0 ; |
8f514ab4 | 29663 | int arg3 = (int) wxODDEVEN_RULE ; |
72ef6efb RD |
29664 | void *argp1 = 0 ; |
29665 | int res1 = 0 ; | |
29666 | void *argp2 = 0 ; | |
29667 | int res2 = 0 ; | |
29668 | int val3 ; | |
29669 | int ecode3 = 0 ; | |
29670 | PyObject * obj0 = 0 ; | |
29671 | PyObject * obj1 = 0 ; | |
29672 | PyObject * obj2 = 0 ; | |
29673 | char * kwnames[] = { | |
29674 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29675 | }; | |
29676 | ||
29677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29679 | if (!SWIG_IsOK(res1)) { | |
29680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29681 | } | |
29682 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29683 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29684 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29685 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29686 | } | |
29687 | if (!argp2) { | |
29688 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29689 | } |
29690 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29691 | if (obj2) { | |
29692 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29693 | if (!SWIG_IsOK(ecode3)) { | |
29694 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
29695 | } | |
29696 | arg3 = static_cast< int >(val3); | |
29697 | } | |
29698 | { | |
5c8c7dd3 | 29699 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29700 | if (PyErr_Occurred()) SWIG_fail; |
29701 | } | |
29702 | resultobj = SWIG_Py_Void(); | |
29703 | return resultobj; | |
29704 | fail: | |
29705 | return NULL; | |
29706 | } | |
29707 | ||
29708 | ||
29709 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29710 | PyObject *resultobj = 0; | |
29711 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29712 | wxGraphicsPath *arg2 = 0 ; |
8f514ab4 | 29713 | int arg3 = (int) wxODDEVEN_RULE ; |
72ef6efb RD |
29714 | void *argp1 = 0 ; |
29715 | int res1 = 0 ; | |
29716 | void *argp2 = 0 ; | |
29717 | int res2 = 0 ; | |
29718 | int val3 ; | |
29719 | int ecode3 = 0 ; | |
29720 | PyObject * obj0 = 0 ; | |
29721 | PyObject * obj1 = 0 ; | |
29722 | PyObject * obj2 = 0 ; | |
29723 | char * kwnames[] = { | |
29724 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29725 | }; | |
29726 | ||
29727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29729 | if (!SWIG_IsOK(res1)) { | |
29730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29731 | } | |
29732 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29733 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29734 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29735 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29736 | } | |
29737 | if (!argp2) { | |
29738 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29739 | } |
29740 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29741 | if (obj2) { | |
29742 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29743 | if (!SWIG_IsOK(ecode3)) { | |
29744 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
29745 | } | |
29746 | arg3 = static_cast< int >(val3); | |
29747 | } | |
29748 | { | |
5c8c7dd3 | 29749 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29750 | if (PyErr_Occurred()) SWIG_fail; |
29751 | } | |
29752 | resultobj = SWIG_Py_Void(); | |
29753 | return resultobj; | |
29754 | fail: | |
29755 | return NULL; | |
29756 | } | |
29757 | ||
29758 | ||
b39fe951 | 29759 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29760 | PyObject *resultobj = 0; |
29761 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29762 | wxString *arg2 = 0 ; | |
29763 | wxDouble arg3 ; | |
29764 | wxDouble arg4 ; | |
f89238b9 RD |
29765 | wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ; |
29766 | wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ; | |
72ef6efb RD |
29767 | void *argp1 = 0 ; |
29768 | int res1 = 0 ; | |
29769 | bool temp2 = false ; | |
29770 | double val3 ; | |
29771 | int ecode3 = 0 ; | |
29772 | double val4 ; | |
29773 | int ecode4 = 0 ; | |
f89238b9 RD |
29774 | void *argp5 = 0 ; |
29775 | int res5 = 0 ; | |
b39fe951 RD |
29776 | PyObject * obj0 = 0 ; |
29777 | PyObject * obj1 = 0 ; | |
29778 | PyObject * obj2 = 0 ; | |
29779 | PyObject * obj3 = 0 ; | |
f89238b9 | 29780 | PyObject * obj4 = 0 ; |
b39fe951 | 29781 | char * kwnames[] = { |
f89238b9 | 29782 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL |
b39fe951 | 29783 | }; |
72ef6efb | 29784 | |
f89238b9 | 29785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
b39fe951 | 29786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb RD |
29787 | if (!SWIG_IsOK(res1)) { |
29788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29789 | } | |
29790 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29791 | { | |
b39fe951 | 29792 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29793 | if (arg2 == NULL) SWIG_fail; |
29794 | temp2 = true; | |
29795 | } | |
b39fe951 | 29796 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
29797 | if (!SWIG_IsOK(ecode3)) { |
29798 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29799 | } | |
29800 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29801 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
29802 | if (!SWIG_IsOK(ecode4)) { |
29803 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29804 | } | |
29805 | arg4 = static_cast< wxDouble >(val4); | |
f89238b9 RD |
29806 | if (obj4) { |
29807 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29808 | if (!SWIG_IsOK(res5)) { | |
29809 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29810 | } | |
29811 | if (!argp5) { | |
29812 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29813 | } | |
29814 | arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5); | |
29815 | } | |
72ef6efb | 29816 | { |
f89238b9 | 29817 | wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5); |
72ef6efb RD |
29818 | if (PyErr_Occurred()) SWIG_fail; |
29819 | } | |
29820 | resultobj = SWIG_Py_Void(); | |
29821 | { | |
29822 | if (temp2) | |
29823 | delete arg2; | |
29824 | } | |
29825 | return resultobj; | |
29826 | fail: | |
29827 | { | |
29828 | if (temp2) | |
29829 | delete arg2; | |
29830 | } | |
29831 | return NULL; | |
29832 | } | |
29833 | ||
29834 | ||
b39fe951 | 29835 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29836 | PyObject *resultobj = 0; |
29837 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29838 | wxString *arg2 = 0 ; | |
29839 | wxDouble arg3 ; | |
29840 | wxDouble arg4 ; | |
29841 | wxDouble arg5 ; | |
f89238b9 RD |
29842 | wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ; |
29843 | wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ; | |
72ef6efb RD |
29844 | void *argp1 = 0 ; |
29845 | int res1 = 0 ; | |
29846 | bool temp2 = false ; | |
29847 | double val3 ; | |
29848 | int ecode3 = 0 ; | |
29849 | double val4 ; | |
29850 | int ecode4 = 0 ; | |
29851 | double val5 ; | |
29852 | int ecode5 = 0 ; | |
f89238b9 RD |
29853 | void *argp6 = 0 ; |
29854 | int res6 = 0 ; | |
b39fe951 RD |
29855 | PyObject * obj0 = 0 ; |
29856 | PyObject * obj1 = 0 ; | |
29857 | PyObject * obj2 = 0 ; | |
29858 | PyObject * obj3 = 0 ; | |
29859 | PyObject * obj4 = 0 ; | |
f89238b9 | 29860 | PyObject * obj5 = 0 ; |
b39fe951 | 29861 | char * kwnames[] = { |
f89238b9 | 29862 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL |
b39fe951 | 29863 | }; |
72ef6efb | 29864 | |
f89238b9 | 29865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
b39fe951 | 29866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb | 29867 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 29868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29869 | } |
29870 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29871 | { | |
b39fe951 | 29872 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29873 | if (arg2 == NULL) SWIG_fail; |
29874 | temp2 = true; | |
29875 | } | |
b39fe951 | 29876 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 29877 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 29878 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29879 | } |
29880 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29881 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 29882 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 29883 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29884 | } |
29885 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 29886 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 29887 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 29888 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29889 | } |
29890 | arg5 = static_cast< wxDouble >(val5); | |
f89238b9 RD |
29891 | if (obj5) { |
29892 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29893 | if (!SWIG_IsOK(res6)) { | |
29894 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29895 | } | |
29896 | if (!argp6) { | |
29897 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29898 | } | |
29899 | arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6); | |
29900 | } | |
72ef6efb | 29901 | { |
f89238b9 | 29902 | wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6); |
72ef6efb RD |
29903 | if (PyErr_Occurred()) SWIG_fail; |
29904 | } | |
29905 | resultobj = SWIG_Py_Void(); | |
29906 | { | |
29907 | if (temp2) | |
29908 | delete arg2; | |
29909 | } | |
29910 | return resultobj; | |
29911 | fail: | |
29912 | { | |
29913 | if (temp2) | |
29914 | delete arg2; | |
29915 | } | |
29916 | return NULL; | |
29917 | } | |
29918 | ||
29919 | ||
be68621e | 29920 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29921 | PyObject *resultobj = 0; |
29922 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29923 | wxString *arg2 = 0 ; | |
29924 | wxDouble *arg3 = (wxDouble *) 0 ; | |
29925 | wxDouble *arg4 = (wxDouble *) 0 ; | |
29926 | wxDouble *arg5 = (wxDouble *) 0 ; | |
29927 | wxDouble *arg6 = (wxDouble *) 0 ; | |
29928 | void *argp1 = 0 ; | |
29929 | int res1 = 0 ; | |
29930 | bool temp2 = false ; | |
29931 | wxDouble temp3 ; | |
29932 | int res3 = SWIG_TMPOBJ ; | |
29933 | wxDouble temp4 ; | |
29934 | int res4 = SWIG_TMPOBJ ; | |
29935 | wxDouble temp5 ; | |
29936 | int res5 = SWIG_TMPOBJ ; | |
29937 | wxDouble temp6 ; | |
29938 | int res6 = SWIG_TMPOBJ ; | |
29939 | PyObject * obj0 = 0 ; | |
29940 | PyObject * obj1 = 0 ; | |
29941 | char * kwnames[] = { | |
29942 | (char *) "self",(char *) "text", NULL | |
29943 | }; | |
29944 | ||
29945 | arg3 = &temp3; | |
29946 | arg4 = &temp4; | |
29947 | arg5 = &temp5; | |
29948 | arg6 = &temp6; | |
be68621e | 29949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29951 | if (!SWIG_IsOK(res1)) { | |
be68621e | 29952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29953 | } |
29954 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29955 | { | |
29956 | arg2 = wxString_in_helper(obj1); | |
29957 | if (arg2 == NULL) SWIG_fail; | |
29958 | temp2 = true; | |
29959 | } | |
29960 | { | |
72ef6efb | 29961 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29962 | if (PyErr_Occurred()) SWIG_fail; |
29963 | } | |
29964 | resultobj = SWIG_Py_Void(); | |
29965 | if (SWIG_IsTmpObj(res3)) { | |
29966 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
29967 | } else { | |
29968 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29969 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
29970 | } | |
29971 | if (SWIG_IsTmpObj(res4)) { | |
29972 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
29973 | } else { | |
29974 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29975 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
29976 | } | |
29977 | if (SWIG_IsTmpObj(res5)) { | |
29978 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
29979 | } else { | |
29980 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29981 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
29982 | } | |
29983 | if (SWIG_IsTmpObj(res6)) { | |
29984 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
29985 | } else { | |
29986 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29987 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
29988 | } | |
29989 | { | |
29990 | if (temp2) | |
29991 | delete arg2; | |
29992 | } | |
29993 | return resultobj; | |
29994 | fail: | |
29995 | { | |
29996 | if (temp2) | |
29997 | delete arg2; | |
29998 | } | |
29999 | return NULL; | |
30000 | } | |
30001 | ||
30002 | ||
be68621e RD |
30003 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30004 | PyObject *resultobj = 0; | |
30005 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30006 | wxString *arg2 = 0 ; | |
30007 | PyObject *result = 0 ; | |
30008 | void *argp1 = 0 ; | |
30009 | int res1 = 0 ; | |
30010 | bool temp2 = false ; | |
30011 | PyObject * obj0 = 0 ; | |
30012 | PyObject * obj1 = 0 ; | |
30013 | char * kwnames[] = { | |
30014 | (char *) "self",(char *) "text", NULL | |
30015 | }; | |
30016 | ||
30017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
30018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30019 | if (!SWIG_IsOK(res1)) { | |
30020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30021 | } | |
30022 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30023 | { | |
30024 | arg2 = wxString_in_helper(obj1); | |
30025 | if (arg2 == NULL) SWIG_fail; | |
30026 | temp2 = true; | |
30027 | } | |
30028 | { | |
30029 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
30030 | if (PyErr_Occurred()) SWIG_fail; | |
30031 | } | |
30032 | resultobj = result; | |
30033 | { | |
30034 | if (temp2) | |
30035 | delete arg2; | |
30036 | } | |
30037 | return resultobj; | |
30038 | fail: | |
30039 | { | |
30040 | if (temp2) | |
30041 | delete arg2; | |
30042 | } | |
30043 | return NULL; | |
30044 | } | |
30045 | ||
30046 | ||
72ef6efb RD |
30047 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30048 | PyObject *resultobj = 0; | |
30049 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30050 | wxString *arg2 = 0 ; | |
b39fe951 | 30051 | wxArrayDouble result; |
72ef6efb RD |
30052 | void *argp1 = 0 ; |
30053 | int res1 = 0 ; | |
30054 | bool temp2 = false ; | |
72ef6efb RD |
30055 | PyObject * obj0 = 0 ; |
30056 | PyObject * obj1 = 0 ; | |
72ef6efb | 30057 | char * kwnames[] = { |
b39fe951 | 30058 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
30059 | }; |
30060 | ||
b39fe951 | 30061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
30062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30063 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 30064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30065 | } |
30066 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30067 | { | |
30068 | arg2 = wxString_in_helper(obj1); | |
30069 | if (arg2 == NULL) SWIG_fail; | |
30070 | temp2 = true; | |
30071 | } | |
72ef6efb | 30072 | { |
b39fe951 | 30073 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
30074 | if (PyErr_Occurred()) SWIG_fail; |
30075 | } | |
b39fe951 RD |
30076 | { |
30077 | resultobj = wxArrayDouble2PyList_helper(result); | |
30078 | } | |
72ef6efb RD |
30079 | { |
30080 | if (temp2) | |
30081 | delete arg2; | |
30082 | } | |
30083 | return resultobj; | |
30084 | fail: | |
30085 | { | |
30086 | if (temp2) | |
30087 | delete arg2; | |
30088 | } | |
30089 | return NULL; | |
30090 | } | |
30091 | ||
30092 | ||
30093 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30094 | PyObject *resultobj = 0; | |
30095 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30096 | wxBitmap *arg2 = 0 ; | |
30097 | wxDouble arg3 ; | |
30098 | wxDouble arg4 ; | |
30099 | wxDouble arg5 ; | |
30100 | wxDouble arg6 ; | |
30101 | void *argp1 = 0 ; | |
30102 | int res1 = 0 ; | |
30103 | void *argp2 = 0 ; | |
30104 | int res2 = 0 ; | |
30105 | double val3 ; | |
30106 | int ecode3 = 0 ; | |
30107 | double val4 ; | |
30108 | int ecode4 = 0 ; | |
30109 | double val5 ; | |
30110 | int ecode5 = 0 ; | |
30111 | double val6 ; | |
30112 | int ecode6 = 0 ; | |
30113 | PyObject * obj0 = 0 ; | |
30114 | PyObject * obj1 = 0 ; | |
30115 | PyObject * obj2 = 0 ; | |
30116 | PyObject * obj3 = 0 ; | |
30117 | PyObject * obj4 = 0 ; | |
30118 | PyObject * obj5 = 0 ; | |
30119 | char * kwnames[] = { | |
30120 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30121 | }; | |
30122 | ||
30123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30125 | if (!SWIG_IsOK(res1)) { | |
30126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30127 | } | |
30128 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30129 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30130 | if (!SWIG_IsOK(res2)) { | |
30131 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30132 | } | |
30133 | if (!argp2) { | |
30134 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30135 | } | |
30136 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30137 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30138 | if (!SWIG_IsOK(ecode3)) { | |
30139 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30140 | } | |
30141 | arg3 = static_cast< wxDouble >(val3); | |
30142 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30143 | if (!SWIG_IsOK(ecode4)) { | |
30144 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30145 | } | |
30146 | arg4 = static_cast< wxDouble >(val4); | |
30147 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30148 | if (!SWIG_IsOK(ecode5)) { | |
30149 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30150 | } | |
30151 | arg5 = static_cast< wxDouble >(val5); | |
30152 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30153 | if (!SWIG_IsOK(ecode6)) { | |
30154 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30155 | } | |
30156 | arg6 = static_cast< wxDouble >(val6); | |
30157 | { | |
72ef6efb | 30158 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30159 | if (PyErr_Occurred()) SWIG_fail; |
30160 | } | |
30161 | resultobj = SWIG_Py_Void(); | |
30162 | return resultobj; | |
30163 | fail: | |
30164 | return NULL; | |
30165 | } | |
30166 | ||
30167 | ||
30168 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30169 | PyObject *resultobj = 0; | |
30170 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30171 | wxIcon *arg2 = 0 ; | |
30172 | wxDouble arg3 ; | |
30173 | wxDouble arg4 ; | |
30174 | wxDouble arg5 ; | |
30175 | wxDouble arg6 ; | |
30176 | void *argp1 = 0 ; | |
30177 | int res1 = 0 ; | |
30178 | void *argp2 = 0 ; | |
30179 | int res2 = 0 ; | |
30180 | double val3 ; | |
30181 | int ecode3 = 0 ; | |
30182 | double val4 ; | |
30183 | int ecode4 = 0 ; | |
30184 | double val5 ; | |
30185 | int ecode5 = 0 ; | |
70d7cb34 RD |
30186 | double val6 ; |
30187 | int ecode6 = 0 ; | |
30188 | PyObject * obj0 = 0 ; | |
30189 | PyObject * obj1 = 0 ; | |
30190 | PyObject * obj2 = 0 ; | |
30191 | PyObject * obj3 = 0 ; | |
30192 | PyObject * obj4 = 0 ; | |
30193 | PyObject * obj5 = 0 ; | |
30194 | char * kwnames[] = { | |
30195 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30196 | }; | |
30197 | ||
30198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30200 | if (!SWIG_IsOK(res1)) { | |
30201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30202 | } | |
30203 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30204 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
30205 | if (!SWIG_IsOK(res2)) { | |
30206 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30207 | } | |
30208 | if (!argp2) { | |
30209 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30210 | } | |
30211 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
30212 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30213 | if (!SWIG_IsOK(ecode3)) { | |
30214 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30215 | } | |
30216 | arg3 = static_cast< wxDouble >(val3); | |
30217 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30218 | if (!SWIG_IsOK(ecode4)) { | |
30219 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30220 | } | |
30221 | arg4 = static_cast< wxDouble >(val4); | |
30222 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30223 | if (!SWIG_IsOK(ecode5)) { | |
30224 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30225 | } | |
30226 | arg5 = static_cast< wxDouble >(val5); | |
30227 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30228 | if (!SWIG_IsOK(ecode6)) { | |
30229 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30230 | } | |
30231 | arg6 = static_cast< wxDouble >(val6); | |
30232 | { | |
30233 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
30234 | if (PyErr_Occurred()) SWIG_fail; | |
30235 | } | |
30236 | resultobj = SWIG_Py_Void(); | |
30237 | return resultobj; | |
30238 | fail: | |
30239 | return NULL; | |
30240 | } | |
30241 | ||
30242 | ||
30243 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30244 | PyObject *resultobj = 0; | |
30245 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30246 | wxDouble arg2 ; | |
30247 | wxDouble arg3 ; | |
30248 | wxDouble arg4 ; | |
30249 | wxDouble arg5 ; | |
30250 | void *argp1 = 0 ; | |
30251 | int res1 = 0 ; | |
30252 | double val2 ; | |
30253 | int ecode2 = 0 ; | |
30254 | double val3 ; | |
30255 | int ecode3 = 0 ; | |
30256 | double val4 ; | |
30257 | int ecode4 = 0 ; | |
30258 | double val5 ; | |
30259 | int ecode5 = 0 ; | |
30260 | PyObject * obj0 = 0 ; | |
30261 | PyObject * obj1 = 0 ; | |
30262 | PyObject * obj2 = 0 ; | |
30263 | PyObject * obj3 = 0 ; | |
30264 | PyObject * obj4 = 0 ; | |
30265 | char * kwnames[] = { | |
30266 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
30267 | }; | |
30268 | ||
30269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30271 | if (!SWIG_IsOK(res1)) { | |
30272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30273 | } | |
30274 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30275 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30276 | if (!SWIG_IsOK(ecode2)) { | |
30277 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30278 | } | |
30279 | arg2 = static_cast< wxDouble >(val2); | |
30280 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30281 | if (!SWIG_IsOK(ecode3)) { | |
30282 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30283 | } | |
30284 | arg3 = static_cast< wxDouble >(val3); | |
30285 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30286 | if (!SWIG_IsOK(ecode4)) { | |
30287 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30288 | } | |
30289 | arg4 = static_cast< wxDouble >(val4); | |
30290 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30291 | if (!SWIG_IsOK(ecode5)) { | |
30292 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30293 | } | |
30294 | arg5 = static_cast< wxDouble >(val5); | |
30295 | { | |
30296 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
30297 | if (PyErr_Occurred()) SWIG_fail; | |
30298 | } | |
30299 | resultobj = SWIG_Py_Void(); | |
30300 | return resultobj; | |
30301 | fail: | |
30302 | return NULL; | |
30303 | } | |
30304 | ||
30305 | ||
30306 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30307 | PyObject *resultobj = 0; | |
30308 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30309 | size_t arg2 ; | |
30310 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
30311 | void *argp1 = 0 ; | |
30312 | int res1 = 0 ; | |
30313 | PyObject * obj0 = 0 ; | |
30314 | PyObject * obj1 = 0 ; | |
30315 | char * kwnames[] = { | |
30316 | (char *) "self",(char *) "points", NULL | |
30317 | }; | |
30318 | ||
30319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
30320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30321 | if (!SWIG_IsOK(res1)) { | |
30322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30323 | } | |
30324 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30325 | { | |
30326 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
30327 | if (arg3 == NULL) SWIG_fail; | |
30328 | } | |
30329 | { | |
30330 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
30331 | if (PyErr_Occurred()) SWIG_fail; | |
30332 | } | |
30333 | resultobj = SWIG_Py_Void(); | |
30334 | { | |
30335 | if (arg3) delete [] arg3; | |
30336 | } | |
30337 | return resultobj; | |
30338 | fail: | |
30339 | { | |
30340 | if (arg3) delete [] arg3; | |
30341 | } | |
30342 | return NULL; | |
30343 | } | |
30344 | ||
30345 | ||
30346 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30347 | PyObject *resultobj = 0; | |
30348 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30349 | PyObject *arg2 = (PyObject *) 0 ; | |
30350 | PyObject *arg3 = (PyObject *) 0 ; | |
30351 | void *argp1 = 0 ; | |
30352 | int res1 = 0 ; | |
30353 | PyObject * obj0 = 0 ; | |
30354 | PyObject * obj1 = 0 ; | |
30355 | PyObject * obj2 = 0 ; | |
30356 | char * kwnames[] = { | |
30357 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
30358 | }; | |
30359 | ||
30360 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30361 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30362 | if (!SWIG_IsOK(res1)) { | |
30363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30364 | } | |
30365 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30366 | arg2 = obj1; | |
30367 | arg3 = obj2; | |
30368 | { | |
30369 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
30370 | if (PyErr_Occurred()) SWIG_fail; | |
30371 | } | |
30372 | resultobj = SWIG_Py_Void(); | |
30373 | return resultobj; | |
30374 | fail: | |
30375 | return NULL; | |
30376 | } | |
30377 | ||
30378 | ||
30379 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30380 | PyObject *resultobj = 0; | |
30381 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30382 | size_t arg2 ; | |
30383 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
8f514ab4 | 30384 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
30385 | void *argp1 = 0 ; |
30386 | int res1 = 0 ; | |
30387 | int val4 ; | |
30388 | int ecode4 = 0 ; | |
30389 | PyObject * obj0 = 0 ; | |
30390 | PyObject * obj1 = 0 ; | |
30391 | PyObject * obj2 = 0 ; | |
30392 | char * kwnames[] = { | |
30393 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
30394 | }; | |
30395 | ||
30396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30398 | if (!SWIG_IsOK(res1)) { | |
30399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30400 | } | |
30401 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30402 | { | |
30403 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
30404 | if (arg3 == NULL) SWIG_fail; | |
30405 | } | |
30406 | if (obj2) { | |
30407 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
30408 | if (!SWIG_IsOK(ecode4)) { | |
30409 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
30410 | } | |
30411 | arg4 = static_cast< int >(val4); | |
30412 | } | |
30413 | { | |
30414 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
30415 | if (PyErr_Occurred()) SWIG_fail; | |
30416 | } | |
30417 | resultobj = SWIG_Py_Void(); | |
30418 | { | |
30419 | if (arg3) delete [] arg3; | |
30420 | } | |
30421 | return resultobj; | |
30422 | fail: | |
30423 | { | |
30424 | if (arg3) delete [] arg3; | |
30425 | } | |
30426 | return NULL; | |
30427 | } | |
30428 | ||
30429 | ||
30430 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30431 | PyObject *resultobj = 0; | |
30432 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30433 | wxDouble arg2 ; | |
30434 | wxDouble arg3 ; | |
30435 | wxDouble arg4 ; | |
30436 | wxDouble arg5 ; | |
30437 | void *argp1 = 0 ; | |
30438 | int res1 = 0 ; | |
30439 | double val2 ; | |
30440 | int ecode2 = 0 ; | |
30441 | double val3 ; | |
30442 | int ecode3 = 0 ; | |
30443 | double val4 ; | |
30444 | int ecode4 = 0 ; | |
30445 | double val5 ; | |
30446 | int ecode5 = 0 ; | |
30447 | PyObject * obj0 = 0 ; | |
30448 | PyObject * obj1 = 0 ; | |
30449 | PyObject * obj2 = 0 ; | |
30450 | PyObject * obj3 = 0 ; | |
30451 | PyObject * obj4 = 0 ; | |
30452 | char * kwnames[] = { | |
30453 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30454 | }; | |
30455 | ||
30456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30458 | if (!SWIG_IsOK(res1)) { | |
30459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30460 | } | |
30461 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30462 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30463 | if (!SWIG_IsOK(ecode2)) { | |
30464 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30465 | } | |
30466 | arg2 = static_cast< wxDouble >(val2); | |
30467 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30468 | if (!SWIG_IsOK(ecode3)) { | |
30469 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30470 | } | |
30471 | arg3 = static_cast< wxDouble >(val3); | |
30472 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30473 | if (!SWIG_IsOK(ecode4)) { | |
30474 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30475 | } | |
30476 | arg4 = static_cast< wxDouble >(val4); | |
30477 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30478 | if (!SWIG_IsOK(ecode5)) { | |
30479 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30480 | } | |
30481 | arg5 = static_cast< wxDouble >(val5); | |
30482 | { | |
30483 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
30484 | if (PyErr_Occurred()) SWIG_fail; | |
30485 | } | |
30486 | resultobj = SWIG_Py_Void(); | |
30487 | return resultobj; | |
30488 | fail: | |
30489 | return NULL; | |
30490 | } | |
30491 | ||
30492 | ||
30493 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30494 | PyObject *resultobj = 0; | |
30495 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30496 | wxDouble arg2 ; | |
30497 | wxDouble arg3 ; | |
30498 | wxDouble arg4 ; | |
30499 | wxDouble arg5 ; | |
30500 | void *argp1 = 0 ; | |
30501 | int res1 = 0 ; | |
30502 | double val2 ; | |
30503 | int ecode2 = 0 ; | |
30504 | double val3 ; | |
30505 | int ecode3 = 0 ; | |
30506 | double val4 ; | |
30507 | int ecode4 = 0 ; | |
30508 | double val5 ; | |
30509 | int ecode5 = 0 ; | |
72ef6efb RD |
30510 | PyObject * obj0 = 0 ; |
30511 | PyObject * obj1 = 0 ; | |
30512 | PyObject * obj2 = 0 ; | |
30513 | PyObject * obj3 = 0 ; | |
30514 | PyObject * obj4 = 0 ; | |
72ef6efb | 30515 | char * kwnames[] = { |
70d7cb34 | 30516 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
30517 | }; |
30518 | ||
70d7cb34 | 30519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
30520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30521 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30523 | } |
30524 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
30525 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30526 | if (!SWIG_IsOK(ecode2)) { | |
30527 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30528 | } | |
30529 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
30530 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
30531 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30532 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30533 | } |
30534 | arg3 = static_cast< wxDouble >(val3); | |
30535 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30536 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30537 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30538 | } |
30539 | arg4 = static_cast< wxDouble >(val4); | |
30540 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30541 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30542 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30543 | } |
30544 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 30545 | { |
70d7cb34 | 30546 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
30547 | if (PyErr_Occurred()) SWIG_fail; |
30548 | } | |
30549 | resultobj = SWIG_Py_Void(); | |
30550 | return resultobj; | |
30551 | fail: | |
30552 | return NULL; | |
30553 | } | |
30554 | ||
30555 | ||
70d7cb34 | 30556 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
30557 | PyObject *resultobj = 0; |
30558 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30559 | wxDouble arg2 ; | |
30560 | wxDouble arg3 ; | |
30561 | wxDouble arg4 ; | |
30562 | wxDouble arg5 ; | |
70d7cb34 | 30563 | wxDouble arg6 ; |
72ef6efb RD |
30564 | void *argp1 = 0 ; |
30565 | int res1 = 0 ; | |
30566 | double val2 ; | |
30567 | int ecode2 = 0 ; | |
30568 | double val3 ; | |
30569 | int ecode3 = 0 ; | |
30570 | double val4 ; | |
30571 | int ecode4 = 0 ; | |
30572 | double val5 ; | |
30573 | int ecode5 = 0 ; | |
70d7cb34 RD |
30574 | double val6 ; |
30575 | int ecode6 = 0 ; | |
72ef6efb RD |
30576 | PyObject * obj0 = 0 ; |
30577 | PyObject * obj1 = 0 ; | |
30578 | PyObject * obj2 = 0 ; | |
30579 | PyObject * obj3 = 0 ; | |
30580 | PyObject * obj4 = 0 ; | |
70d7cb34 | 30581 | PyObject * obj5 = 0 ; |
72ef6efb | 30582 | char * kwnames[] = { |
70d7cb34 | 30583 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
30584 | }; |
30585 | ||
70d7cb34 | 30586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
30587 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30588 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30590 | } |
30591 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30592 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30593 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30594 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30595 | } |
30596 | arg2 = static_cast< wxDouble >(val2); | |
30597 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30598 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30599 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30600 | } |
30601 | arg3 = static_cast< wxDouble >(val3); | |
30602 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30603 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30604 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30605 | } |
30606 | arg4 = static_cast< wxDouble >(val4); | |
30607 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30608 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30609 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30610 | } |
30611 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
30612 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
30613 | if (!SWIG_IsOK(ecode6)) { | |
30614 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30615 | } | |
30616 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 30617 | { |
70d7cb34 | 30618 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30619 | if (PyErr_Occurred()) SWIG_fail; |
30620 | } | |
30621 | resultobj = SWIG_Py_Void(); | |
30622 | return resultobj; | |
30623 | fail: | |
30624 | return NULL; | |
30625 | } | |
30626 | ||
30627 | ||
70d7cb34 | 30628 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30629 | PyObject *resultobj = 0; |
30630 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 30631 | bool result; |
72ef6efb RD |
30632 | void *argp1 = 0 ; |
30633 | int res1 = 0 ; | |
70d7cb34 | 30634 | PyObject *swig_obj[1] ; |
72ef6efb | 30635 | |
70d7cb34 RD |
30636 | if (!args) SWIG_fail; |
30637 | swig_obj[0] = args; | |
30638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 30639 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
30641 | } |
30642 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 30643 | { |
70d7cb34 RD |
30644 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
30645 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 30646 | } |
72ef6efb | 30647 | { |
70d7cb34 RD |
30648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
30649 | } | |
30650 | return resultobj; | |
30651 | fail: | |
30652 | return NULL; | |
30653 | } | |
30654 | ||
30655 | ||
30656 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30657 | PyObject *obj; | |
30658 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30659 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
30660 | return SWIG_Py_Void(); | |
30661 | } | |
30662 | ||
30663 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30664 | PyObject *resultobj = 0; | |
30665 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30666 | void *argp1 = 0 ; | |
30667 | int res1 = 0 ; | |
30668 | PyObject *swig_obj[1] ; | |
30669 | ||
30670 | if (!args) SWIG_fail; | |
30671 | swig_obj[0] = args; | |
30672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
30673 | if (!SWIG_IsOK(res1)) { | |
30674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30675 | } | |
30676 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30677 | { | |
30678 | delete arg1; | |
30679 | ||
72ef6efb RD |
30680 | if (PyErr_Occurred()) SWIG_fail; |
30681 | } | |
30682 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
30683 | return resultobj; |
30684 | fail: | |
30685 | return NULL; | |
30686 | } | |
30687 | ||
30688 | ||
30689 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30690 | PyObject *resultobj = 0; | |
30691 | wxGraphicsRenderer *result = 0 ; | |
30692 | ||
30693 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 30694 | { |
70d7cb34 RD |
30695 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
30696 | if (PyErr_Occurred()) SWIG_fail; | |
30697 | } | |
30698 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30699 | return resultobj; | |
30700 | fail: | |
30701 | return NULL; | |
30702 | } | |
30703 | ||
30704 | ||
30705 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30706 | PyObject *resultobj = 0; | |
30707 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30708 | wxWindowDC *arg2 = 0 ; | |
30709 | wxGraphicsContext *result = 0 ; | |
30710 | void *argp1 = 0 ; | |
30711 | int res1 = 0 ; | |
30712 | void *argp2 = 0 ; | |
30713 | int res2 = 0 ; | |
30714 | ||
30715 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30716 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30717 | if (!SWIG_IsOK(res1)) { | |
30718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30719 | } | |
30720 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30721 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
30722 | if (!SWIG_IsOK(res2)) { | |
30723 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30724 | } | |
30725 | if (!argp2) { | |
30726 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30727 | } | |
30728 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30729 | { | |
30730 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
30731 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30732 | } |
70d7cb34 | 30733 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30734 | return resultobj; |
30735 | fail: | |
70d7cb34 RD |
30736 | return NULL; |
30737 | } | |
30738 | ||
30739 | ||
30740 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30741 | PyObject *resultobj = 0; | |
30742 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30743 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30744 | wxGraphicsContext *result = 0 ; | |
30745 | void *argp1 = 0 ; | |
30746 | int res1 = 0 ; | |
30747 | void *argp2 = 0 ; | |
30748 | int res2 = 0 ; | |
30749 | ||
30750 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30752 | if (!SWIG_IsOK(res1)) { | |
30753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30754 | } | |
30755 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30756 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30757 | if (!SWIG_IsOK(res2)) { | |
30758 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
30759 | } | |
30760 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 30761 | { |
70d7cb34 RD |
30762 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
30763 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30764 | } |
70d7cb34 RD |
30765 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
30766 | return resultobj; | |
30767 | fail: | |
72ef6efb RD |
30768 | return NULL; |
30769 | } | |
30770 | ||
30771 | ||
70d7cb34 RD |
30772 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
30773 | int argc; | |
30774 | PyObject *argv[3]; | |
30775 | ||
30776 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
30777 | --argc; | |
30778 | if (argc == 2) { | |
30779 | int _v = 0; | |
30780 | { | |
30781 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
30782 | _v = SWIG_CheckState(res); | |
30783 | } | |
30784 | if (!_v) goto check_1; | |
30785 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
30786 | } | |
30787 | check_1: | |
30788 | ||
30789 | if (argc == 2) { | |
30790 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
30791 | } | |
30792 | ||
30793 | fail: | |
30794 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
30795 | return NULL; | |
30796 | } | |
30797 | ||
30798 | ||
f89238b9 RD |
30799 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30800 | PyObject *resultobj = 0; | |
30801 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30802 | wxGraphicsContext *result = 0 ; | |
30803 | void *argp1 = 0 ; | |
30804 | int res1 = 0 ; | |
30805 | PyObject *swig_obj[1] ; | |
30806 | ||
30807 | if (!args) SWIG_fail; | |
30808 | swig_obj[0] = args; | |
30809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30810 | if (!SWIG_IsOK(res1)) { | |
30811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30812 | } | |
30813 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30814 | { | |
30815 | result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext(); | |
30816 | if (PyErr_Occurred()) SWIG_fail; | |
30817 | } | |
30818 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30819 | return resultobj; | |
30820 | fail: | |
30821 | return NULL; | |
30822 | } | |
30823 | ||
30824 | ||
70d7cb34 | 30825 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30826 | PyObject *resultobj = 0; |
70d7cb34 RD |
30827 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30828 | void *arg2 = (void *) 0 ; | |
30829 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30830 | void *argp1 = 0 ; |
30831 | int res1 = 0 ; | |
70d7cb34 | 30832 | int res2 ; |
b39fe951 RD |
30833 | PyObject * obj0 = 0 ; |
30834 | PyObject * obj1 = 0 ; | |
b39fe951 | 30835 | char * kwnames[] = { |
70d7cb34 | 30836 | (char *) "self",(char *) "context", NULL |
b39fe951 | 30837 | }; |
72ef6efb | 30838 | |
70d7cb34 RD |
30839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
30840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30841 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30843 | } | |
30844 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30845 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30846 | if (!SWIG_IsOK(res2)) { | |
30847 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 30848 | } |
72ef6efb | 30849 | { |
70d7cb34 | 30850 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
30851 | if (PyErr_Occurred()) SWIG_fail; |
30852 | } | |
70d7cb34 | 30853 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30854 | return resultobj; |
30855 | fail: | |
30856 | return NULL; | |
30857 | } | |
30858 | ||
30859 | ||
70d7cb34 | 30860 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30861 | PyObject *resultobj = 0; |
70d7cb34 RD |
30862 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30863 | void *arg2 = (void *) 0 ; | |
30864 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30865 | void *argp1 = 0 ; |
30866 | int res1 = 0 ; | |
70d7cb34 | 30867 | int res2 ; |
72ef6efb RD |
30868 | PyObject * obj0 = 0 ; |
30869 | PyObject * obj1 = 0 ; | |
72ef6efb | 30870 | char * kwnames[] = { |
70d7cb34 | 30871 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
30872 | }; |
30873 | ||
70d7cb34 RD |
30874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail; |
30875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30876 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30878 | } |
70d7cb34 RD |
30879 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
30880 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30881 | if (!SWIG_IsOK(res2)) { | |
30882 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
30883 | } |
30884 | { | |
70d7cb34 | 30885 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
30886 | if (PyErr_Occurred()) SWIG_fail; |
30887 | } | |
70d7cb34 | 30888 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30889 | return resultobj; |
30890 | fail: | |
70d7cb34 RD |
30891 | return NULL; |
30892 | } | |
30893 | ||
30894 | ||
30895 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30896 | PyObject *resultobj = 0; | |
30897 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 30898 | wxGraphicsPath result; |
70d7cb34 RD |
30899 | void *argp1 = 0 ; |
30900 | int res1 = 0 ; | |
30901 | PyObject *swig_obj[1] ; | |
30902 | ||
30903 | if (!args) SWIG_fail; | |
30904 | swig_obj[0] = args; | |
30905 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30906 | if (!SWIG_IsOK(res1)) { | |
30907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30908 | } | |
30909 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 30910 | { |
5c8c7dd3 | 30911 | result = (arg1)->CreatePath(); |
70d7cb34 | 30912 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 30913 | } |
5c8c7dd3 | 30914 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
30915 | return resultobj; |
30916 | fail: | |
72ef6efb RD |
30917 | return NULL; |
30918 | } | |
30919 | ||
30920 | ||
70d7cb34 | 30921 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30922 | PyObject *resultobj = 0; |
70d7cb34 RD |
30923 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30924 | wxDouble arg2 = (wxDouble) 1.0 ; | |
30925 | wxDouble arg3 = (wxDouble) 0.0 ; | |
30926 | wxDouble arg4 = (wxDouble) 0.0 ; | |
30927 | wxDouble arg5 = (wxDouble) 1.0 ; | |
30928 | wxDouble arg6 = (wxDouble) 0.0 ; | |
30929 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 30930 | wxGraphicsMatrix result; |
72ef6efb RD |
30931 | void *argp1 = 0 ; |
30932 | int res1 = 0 ; | |
30933 | double val2 ; | |
30934 | int ecode2 = 0 ; | |
30935 | double val3 ; | |
30936 | int ecode3 = 0 ; | |
30937 | double val4 ; | |
30938 | int ecode4 = 0 ; | |
30939 | double val5 ; | |
30940 | int ecode5 = 0 ; | |
70d7cb34 RD |
30941 | double val6 ; |
30942 | int ecode6 = 0 ; | |
30943 | double val7 ; | |
30944 | int ecode7 = 0 ; | |
72ef6efb RD |
30945 | PyObject * obj0 = 0 ; |
30946 | PyObject * obj1 = 0 ; | |
30947 | PyObject * obj2 = 0 ; | |
30948 | PyObject * obj3 = 0 ; | |
30949 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30950 | PyObject * obj5 = 0 ; |
30951 | PyObject * obj6 = 0 ; | |
72ef6efb | 30952 | char * kwnames[] = { |
70d7cb34 | 30953 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
30954 | }; |
30955 | ||
70d7cb34 RD |
30956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30958 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30960 | } | |
30961 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30962 | if (obj1) { | |
30963 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30964 | if (!SWIG_IsOK(ecode2)) { | |
30965 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30966 | } | |
30967 | arg2 = static_cast< wxDouble >(val2); | |
30968 | } | |
30969 | if (obj2) { | |
30970 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30971 | if (!SWIG_IsOK(ecode3)) { | |
30972 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30973 | } | |
30974 | arg3 = static_cast< wxDouble >(val3); | |
30975 | } | |
30976 | if (obj3) { | |
30977 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30978 | if (!SWIG_IsOK(ecode4)) { | |
30979 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30980 | } | |
30981 | arg4 = static_cast< wxDouble >(val4); | |
30982 | } | |
30983 | if (obj4) { | |
30984 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30985 | if (!SWIG_IsOK(ecode5)) { | |
30986 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30987 | } | |
30988 | arg5 = static_cast< wxDouble >(val5); | |
30989 | } | |
30990 | if (obj5) { | |
30991 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30992 | if (!SWIG_IsOK(ecode6)) { | |
30993 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30994 | } | |
30995 | arg6 = static_cast< wxDouble >(val6); | |
30996 | } | |
30997 | if (obj6) { | |
30998 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
30999 | if (!SWIG_IsOK(ecode7)) { | |
31000 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
31001 | } | |
31002 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 31003 | } |
72ef6efb | 31004 | { |
5c8c7dd3 | 31005 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
31006 | if (PyErr_Occurred()) SWIG_fail; |
31007 | } | |
5c8c7dd3 | 31008 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31009 | return resultobj; |
31010 | fail: | |
31011 | return NULL; | |
31012 | } | |
31013 | ||
31014 | ||
70d7cb34 | 31015 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31016 | PyObject *resultobj = 0; |
70d7cb34 RD |
31017 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
31018 | wxPen *arg2 = 0 ; | |
31019 | wxGraphicsPen result; | |
31020 | void *argp1 = 0 ; | |
31021 | int res1 = 0 ; | |
31022 | void *argp2 = 0 ; | |
31023 | int res2 = 0 ; | |
31024 | PyObject * obj0 = 0 ; | |
31025 | PyObject * obj1 = 0 ; | |
31026 | char * kwnames[] = { | |
31027 | (char *) "self",(char *) "pen", NULL | |
31028 | }; | |
31029 | ||
31030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
31031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31032 | if (!SWIG_IsOK(res1)) { | |
31033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31034 | } | |
31035 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31036 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
31037 | if (!SWIG_IsOK(res2)) { | |
31038 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
31039 | } | |
31040 | if (!argp2) { | |
31041 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
31042 | } | |
31043 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
31044 | { | |
31045 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
31046 | if (PyErr_Occurred()) SWIG_fail; | |
31047 | } | |
31048 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
31049 | return resultobj; | |
31050 | fail: | |
31051 | return NULL; | |
31052 | } | |
31053 | ||
31054 | ||
31055 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31056 | PyObject *resultobj = 0; | |
31057 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
31058 | wxBrush *arg2 = 0 ; | |
31059 | wxGraphicsBrush result; | |
31060 | void *argp1 = 0 ; | |
31061 | int res1 = 0 ; | |
31062 | void *argp2 = 0 ; | |
31063 | int res2 = 0 ; | |
31064 | PyObject * obj0 = 0 ; | |
31065 | PyObject * obj1 = 0 ; | |
31066 | char * kwnames[] = { | |
31067 | (char *) "self",(char *) "brush", NULL | |
31068 | }; | |
31069 | ||
31070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
31071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31072 | if (!SWIG_IsOK(res1)) { | |
31073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31074 | } | |
31075 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31076 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
31077 | if (!SWIG_IsOK(res2)) { | |
31078 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
31079 | } | |
31080 | if (!argp2) { | |
31081 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
31082 | } | |
31083 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
31084 | { | |
31085 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
31086 | if (PyErr_Occurred()) SWIG_fail; | |
31087 | } | |
31088 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
31089 | return resultobj; | |
31090 | fail: | |
31091 | return NULL; | |
31092 | } | |
31093 | ||
31094 | ||
31095 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31096 | PyObject *resultobj = 0; | |
31097 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
31098 | wxDouble arg2 ; |
31099 | wxDouble arg3 ; | |
31100 | wxDouble arg4 ; | |
31101 | wxDouble arg5 ; | |
70d7cb34 RD |
31102 | wxColour *arg6 = 0 ; |
31103 | wxColour *arg7 = 0 ; | |
31104 | wxGraphicsBrush result; | |
72ef6efb RD |
31105 | void *argp1 = 0 ; |
31106 | int res1 = 0 ; | |
31107 | double val2 ; | |
31108 | int ecode2 = 0 ; | |
31109 | double val3 ; | |
31110 | int ecode3 = 0 ; | |
31111 | double val4 ; | |
31112 | int ecode4 = 0 ; | |
31113 | double val5 ; | |
31114 | int ecode5 = 0 ; | |
70d7cb34 RD |
31115 | wxColour temp6 ; |
31116 | wxColour temp7 ; | |
72ef6efb RD |
31117 | PyObject * obj0 = 0 ; |
31118 | PyObject * obj1 = 0 ; | |
31119 | PyObject * obj2 = 0 ; | |
31120 | PyObject * obj3 = 0 ; | |
31121 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
31122 | PyObject * obj5 = 0 ; |
31123 | PyObject * obj6 = 0 ; | |
72ef6efb | 31124 | char * kwnames[] = { |
70d7cb34 | 31125 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
31126 | }; |
31127 | ||
70d7cb34 RD |
31128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
31129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31130 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31132 | } |
70d7cb34 | 31133 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
31134 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
31135 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 31136 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
31137 | } |
31138 | arg2 = static_cast< wxDouble >(val2); | |
31139 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31140 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 31141 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
31142 | } |
31143 | arg3 = static_cast< wxDouble >(val3); | |
31144 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31145 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 31146 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
31147 | } |
31148 | arg4 = static_cast< wxDouble >(val4); | |
31149 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31150 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 31151 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
31152 | } |
31153 | arg5 = static_cast< wxDouble >(val5); | |
31154 | { | |
70d7cb34 RD |
31155 | arg6 = &temp6; |
31156 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
31157 | } | |
31158 | { | |
31159 | arg7 = &temp7; | |
31160 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
31161 | } | |
31162 | { | |
31163 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
31164 | if (PyErr_Occurred()) SWIG_fail; |
31165 | } | |
70d7cb34 | 31166 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31167 | return resultobj; |
31168 | fail: | |
31169 | return NULL; | |
31170 | } | |
31171 | ||
31172 | ||
70d7cb34 | 31173 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31174 | PyObject *resultobj = 0; |
70d7cb34 | 31175 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
31176 | wxDouble arg2 ; |
31177 | wxDouble arg3 ; | |
31178 | wxDouble arg4 ; | |
31179 | wxDouble arg5 ; | |
31180 | wxDouble arg6 ; | |
70d7cb34 RD |
31181 | wxColour *arg7 = 0 ; |
31182 | wxColour *arg8 = 0 ; | |
31183 | wxGraphicsBrush result; | |
72ef6efb RD |
31184 | void *argp1 = 0 ; |
31185 | int res1 = 0 ; | |
31186 | double val2 ; | |
31187 | int ecode2 = 0 ; | |
31188 | double val3 ; | |
31189 | int ecode3 = 0 ; | |
31190 | double val4 ; | |
31191 | int ecode4 = 0 ; | |
31192 | double val5 ; | |
31193 | int ecode5 = 0 ; | |
31194 | double val6 ; | |
31195 | int ecode6 = 0 ; | |
70d7cb34 RD |
31196 | wxColour temp7 ; |
31197 | wxColour temp8 ; | |
72ef6efb RD |
31198 | PyObject * obj0 = 0 ; |
31199 | PyObject * obj1 = 0 ; | |
31200 | PyObject * obj2 = 0 ; | |
31201 | PyObject * obj3 = 0 ; | |
31202 | PyObject * obj4 = 0 ; | |
31203 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
31204 | PyObject * obj6 = 0 ; |
31205 | PyObject * obj7 = 0 ; | |
72ef6efb | 31206 | char * kwnames[] = { |
70d7cb34 | 31207 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
31208 | }; |
31209 | ||
70d7cb34 RD |
31210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
31211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31212 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31214 | } |
70d7cb34 | 31215 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
31216 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
31217 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 31218 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
31219 | } |
31220 | arg2 = static_cast< wxDouble >(val2); | |
31221 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31222 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 31223 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
31224 | } |
31225 | arg3 = static_cast< wxDouble >(val3); | |
31226 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31227 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 31228 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
31229 | } |
31230 | arg4 = static_cast< wxDouble >(val4); | |
31231 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31232 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 31233 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
31234 | } |
31235 | arg5 = static_cast< wxDouble >(val5); | |
31236 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
31237 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 31238 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
31239 | } |
31240 | arg6 = static_cast< wxDouble >(val6); | |
31241 | { | |
70d7cb34 RD |
31242 | arg7 = &temp7; |
31243 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
31244 | } | |
31245 | { | |
31246 | arg8 = &temp8; | |
31247 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
31248 | } | |
31249 | { | |
31250 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
31251 | if (PyErr_Occurred()) SWIG_fail; |
31252 | } | |
70d7cb34 | 31253 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31254 | return resultobj; |
31255 | fail: | |
31256 | return NULL; | |
31257 | } | |
31258 | ||
31259 | ||
70d7cb34 RD |
31260 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31261 | PyObject *resultobj = 0; | |
31262 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
31263 | wxFont *arg2 = 0 ; | |
31264 | wxColour const &arg3_defvalue = *wxBLACK ; | |
31265 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
31266 | wxGraphicsFont result; | |
31267 | void *argp1 = 0 ; | |
31268 | int res1 = 0 ; | |
31269 | void *argp2 = 0 ; | |
31270 | int res2 = 0 ; | |
31271 | wxColour temp3 ; | |
31272 | PyObject * obj0 = 0 ; | |
31273 | PyObject * obj1 = 0 ; | |
31274 | PyObject * obj2 = 0 ; | |
31275 | char * kwnames[] = { | |
31276 | (char *) "self",(char *) "font",(char *) "col", NULL | |
31277 | }; | |
31278 | ||
31279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31281 | if (!SWIG_IsOK(res1)) { | |
31282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31283 | } | |
31284 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31285 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
31286 | if (!SWIG_IsOK(res2)) { | |
31287 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
31288 | } | |
31289 | if (!argp2) { | |
31290 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
31291 | } | |
31292 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
31293 | if (obj2) { | |
31294 | { | |
31295 | arg3 = &temp3; | |
31296 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31297 | } | |
31298 | } | |
31299 | { | |
31300 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
31301 | if (PyErr_Occurred()) SWIG_fail; | |
31302 | } | |
31303 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
31304 | return resultobj; | |
31305 | fail: | |
31306 | return NULL; | |
31307 | } | |
31308 | ||
31309 | ||
31310 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
31311 | PyObject *obj; |
31312 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 31313 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
31314 | return SWIG_Py_Void(); |
31315 | } | |
31316 | ||
48a0c021 | 31317 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
31318 | PyObject *resultobj = 0; |
31319 | wxWindowDC *arg1 = 0 ; | |
31320 | wxGCDC *result = 0 ; | |
31321 | void *argp1 = 0 ; | |
31322 | int res1 = 0 ; | |
72ef6efb | 31323 | |
48a0c021 RD |
31324 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; |
31325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
72ef6efb RD |
31326 | if (!SWIG_IsOK(res1)) { |
31327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
31328 | } | |
31329 | if (!argp1) { | |
31330 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
31331 | } | |
31332 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
31333 | { | |
31334 | if (!wxPyCheckForApp()) SWIG_fail; | |
31335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31336 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
31337 | wxPyEndAllowThreads(__tstate); | |
31338 | if (PyErr_Occurred()) SWIG_fail; | |
31339 | } | |
31340 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
31341 | return resultobj; | |
31342 | fail: | |
31343 | return NULL; | |
31344 | } | |
31345 | ||
31346 | ||
48a0c021 RD |
31347 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
31348 | PyObject *resultobj = 0; | |
31349 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31350 | wxGCDC *result = 0 ; | |
31351 | void *argp1 = 0 ; | |
31352 | int res1 = 0 ; | |
31353 | ||
31354 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
31355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31356 | if (!SWIG_IsOK(res1)) { | |
31357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
31358 | } | |
31359 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
31360 | { | |
31361 | if (!wxPyCheckForApp()) SWIG_fail; | |
31362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31363 | result = (wxGCDC *)new wxGCDC(arg1); | |
31364 | wxPyEndAllowThreads(__tstate); | |
31365 | if (PyErr_Occurred()) SWIG_fail; | |
31366 | } | |
31367 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
31368 | return resultobj; | |
31369 | fail: | |
31370 | return NULL; | |
31371 | } | |
31372 | ||
31373 | ||
31374 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) { | |
31375 | int argc; | |
31376 | PyObject *argv[2]; | |
31377 | ||
31378 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail; | |
31379 | --argc; | |
31380 | if (argc == 1) { | |
31381 | int _v = 0; | |
31382 | { | |
31383 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
31384 | _v = SWIG_CheckState(res); | |
31385 | } | |
31386 | if (!_v) goto check_1; | |
31387 | return _wrap_new_GCDC__SWIG_0(self, argc, argv); | |
31388 | } | |
31389 | check_1: | |
31390 | ||
31391 | if (argc == 1) { | |
31392 | return _wrap_new_GCDC__SWIG_1(self, argc, argv); | |
31393 | } | |
31394 | ||
31395 | fail: | |
31396 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'"); | |
31397 | return NULL; | |
31398 | } | |
31399 | ||
31400 | ||
72ef6efb RD |
31401 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31402 | PyObject *resultobj = 0; | |
31403 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31404 | void *argp1 = 0 ; | |
31405 | int res1 = 0 ; | |
31406 | PyObject *swig_obj[1] ; | |
31407 | ||
31408 | if (!args) SWIG_fail; | |
31409 | swig_obj[0] = args; | |
31410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
31411 | if (!SWIG_IsOK(res1)) { | |
31412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31413 | } | |
31414 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31415 | { | |
72ef6efb RD |
31416 | delete arg1; |
31417 | ||
72ef6efb RD |
31418 | if (PyErr_Occurred()) SWIG_fail; |
31419 | } | |
31420 | resultobj = SWIG_Py_Void(); | |
31421 | return resultobj; | |
31422 | fail: | |
31423 | return NULL; | |
31424 | } | |
31425 | ||
31426 | ||
0a27f394 | 31427 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
31428 | PyObject *resultobj = 0; |
31429 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31430 | wxGraphicsContext *result = 0 ; | |
31431 | void *argp1 = 0 ; | |
31432 | int res1 = 0 ; | |
31433 | PyObject *swig_obj[1] ; | |
31434 | ||
31435 | if (!args) SWIG_fail; | |
31436 | swig_obj[0] = args; | |
31437 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31438 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 31439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
31440 | } |
31441 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31442 | { | |
0a27f394 | 31443 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
31444 | if (PyErr_Occurred()) SWIG_fail; |
31445 | } | |
31446 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31447 | return resultobj; | |
31448 | fail: | |
31449 | return NULL; | |
31450 | } | |
31451 | ||
31452 | ||
0a27f394 RD |
31453 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31454 | PyObject *resultobj = 0; | |
31455 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31456 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
31457 | void *argp1 = 0 ; | |
31458 | int res1 = 0 ; | |
31459 | void *argp2 = 0 ; | |
31460 | int res2 = 0 ; | |
31461 | PyObject * obj0 = 0 ; | |
31462 | PyObject * obj1 = 0 ; | |
31463 | char * kwnames[] = { | |
31464 | (char *) "self",(char *) "ctx", NULL | |
31465 | }; | |
31466 | ||
31467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
31468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31469 | if (!SWIG_IsOK(res1)) { | |
31470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31471 | } | |
31472 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31473 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31474 | if (!SWIG_IsOK(res2)) { | |
31475 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
31476 | } | |
31477 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
31478 | { | |
31479 | (arg1)->SetGraphicsContext(arg2); | |
31480 | if (PyErr_Occurred()) SWIG_fail; | |
31481 | } | |
31482 | resultobj = SWIG_Py_Void(); | |
31483 | return resultobj; | |
31484 | fail: | |
31485 | return NULL; | |
31486 | } | |
31487 | ||
31488 | ||
72ef6efb RD |
31489 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31490 | PyObject *obj; | |
31491 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31492 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
31493 | return SWIG_Py_Void(); | |
31494 | } | |
31495 | ||
31496 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31497 | return SWIG_Python_InitShadowInstance(args); | |
31498 | } | |
31499 | ||
b39fe951 RD |
31500 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31501 | PyObject *resultobj = 0; | |
31502 | wxOverlay *result = 0 ; | |
31503 | ||
31504 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
31505 | { | |
31506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31507 | result = (wxOverlay *)new wxOverlay(); | |
31508 | wxPyEndAllowThreads(__tstate); | |
31509 | if (PyErr_Occurred()) SWIG_fail; | |
31510 | } | |
31511 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
31512 | return resultobj; | |
31513 | fail: | |
31514 | return NULL; | |
31515 | } | |
31516 | ||
31517 | ||
31518 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31519 | PyObject *resultobj = 0; | |
31520 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31521 | void *argp1 = 0 ; | |
31522 | int res1 = 0 ; | |
31523 | PyObject *swig_obj[1] ; | |
31524 | ||
31525 | if (!args) SWIG_fail; | |
31526 | swig_obj[0] = args; | |
31527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31528 | if (!SWIG_IsOK(res1)) { | |
31529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31530 | } | |
31531 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31532 | { | |
31533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31534 | delete arg1; | |
31535 | ||
31536 | wxPyEndAllowThreads(__tstate); | |
31537 | if (PyErr_Occurred()) SWIG_fail; | |
31538 | } | |
31539 | resultobj = SWIG_Py_Void(); | |
31540 | return resultobj; | |
31541 | fail: | |
31542 | return NULL; | |
31543 | } | |
31544 | ||
31545 | ||
31546 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31547 | PyObject *resultobj = 0; | |
31548 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31549 | void *argp1 = 0 ; | |
31550 | int res1 = 0 ; | |
31551 | PyObject *swig_obj[1] ; | |
31552 | ||
31553 | if (!args) SWIG_fail; | |
31554 | swig_obj[0] = args; | |
31555 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
31556 | if (!SWIG_IsOK(res1)) { | |
31557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31558 | } | |
31559 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31560 | { | |
31561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31562 | (arg1)->Reset(); | |
31563 | wxPyEndAllowThreads(__tstate); | |
31564 | if (PyErr_Occurred()) SWIG_fail; | |
31565 | } | |
31566 | resultobj = SWIG_Py_Void(); | |
31567 | return resultobj; | |
31568 | fail: | |
31569 | return NULL; | |
31570 | } | |
31571 | ||
31572 | ||
31573 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31574 | PyObject *obj; | |
31575 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31576 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
31577 | return SWIG_Py_Void(); | |
31578 | } | |
31579 | ||
31580 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31581 | return SWIG_Python_InitShadowInstance(args); | |
31582 | } | |
31583 | ||
31584 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31585 | PyObject *resultobj = 0; | |
31586 | wxOverlay *arg1 = 0 ; | |
31587 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31588 | int arg3 ; | |
31589 | int arg4 ; | |
31590 | int arg5 ; | |
31591 | int arg6 ; | |
31592 | wxDCOverlay *result = 0 ; | |
31593 | void *argp1 = 0 ; | |
31594 | int res1 = 0 ; | |
31595 | void *argp2 = 0 ; | |
31596 | int res2 = 0 ; | |
31597 | int val3 ; | |
31598 | int ecode3 = 0 ; | |
31599 | int val4 ; | |
31600 | int ecode4 = 0 ; | |
31601 | int val5 ; | |
31602 | int ecode5 = 0 ; | |
31603 | int val6 ; | |
31604 | int ecode6 = 0 ; | |
31605 | ||
31606 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
31607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31608 | if (!SWIG_IsOK(res1)) { | |
31609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31610 | } | |
31611 | if (!argp1) { | |
31612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31613 | } | |
31614 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31615 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31616 | if (!SWIG_IsOK(res2)) { | |
31617 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31618 | } | |
31619 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31620 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
31621 | if (!SWIG_IsOK(ecode3)) { | |
31622 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
31623 | } | |
31624 | arg3 = static_cast< int >(val3); | |
31625 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
31626 | if (!SWIG_IsOK(ecode4)) { | |
31627 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
31628 | } | |
31629 | arg4 = static_cast< int >(val4); | |
31630 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
31631 | if (!SWIG_IsOK(ecode5)) { | |
31632 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
31633 | } | |
31634 | arg5 = static_cast< int >(val5); | |
31635 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
31636 | if (!SWIG_IsOK(ecode6)) { | |
31637 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
31638 | } | |
31639 | arg6 = static_cast< int >(val6); | |
31640 | { | |
31641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31642 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
31643 | wxPyEndAllowThreads(__tstate); | |
31644 | if (PyErr_Occurred()) SWIG_fail; | |
31645 | } | |
31646 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31647 | return resultobj; | |
31648 | fail: | |
31649 | return NULL; | |
31650 | } | |
31651 | ||
31652 | ||
31653 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31654 | PyObject *resultobj = 0; | |
31655 | wxOverlay *arg1 = 0 ; | |
31656 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31657 | wxDCOverlay *result = 0 ; | |
31658 | void *argp1 = 0 ; | |
31659 | int res1 = 0 ; | |
31660 | void *argp2 = 0 ; | |
31661 | int res2 = 0 ; | |
31662 | ||
31663 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
31664 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31665 | if (!SWIG_IsOK(res1)) { | |
31666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31667 | } | |
31668 | if (!argp1) { | |
31669 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31670 | } | |
31671 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31672 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31673 | if (!SWIG_IsOK(res2)) { | |
31674 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31675 | } | |
31676 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31677 | { | |
31678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31679 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
31680 | wxPyEndAllowThreads(__tstate); | |
31681 | if (PyErr_Occurred()) SWIG_fail; | |
31682 | } | |
31683 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31684 | return resultobj; | |
31685 | fail: | |
31686 | return NULL; | |
31687 | } | |
31688 | ||
31689 | ||
31690 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
31691 | int argc; | |
31692 | PyObject *argv[7]; | |
31693 | ||
31694 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
31695 | --argc; | |
31696 | if (argc == 2) { | |
31697 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
31698 | } | |
31699 | if (argc == 6) { | |
31700 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
31701 | } | |
31702 | ||
31703 | fail: | |
31704 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
31705 | return NULL; | |
31706 | } | |
31707 | ||
31708 | ||
31709 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31710 | PyObject *resultobj = 0; | |
31711 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31712 | void *argp1 = 0 ; | |
31713 | int res1 = 0 ; | |
31714 | PyObject *swig_obj[1] ; | |
31715 | ||
31716 | if (!args) SWIG_fail; | |
31717 | swig_obj[0] = args; | |
31718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31719 | if (!SWIG_IsOK(res1)) { | |
31720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31721 | } | |
31722 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31723 | { | |
31724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31725 | delete arg1; | |
31726 | ||
31727 | wxPyEndAllowThreads(__tstate); | |
31728 | if (PyErr_Occurred()) SWIG_fail; | |
31729 | } | |
31730 | resultobj = SWIG_Py_Void(); | |
31731 | return resultobj; | |
31732 | fail: | |
31733 | return NULL; | |
31734 | } | |
31735 | ||
31736 | ||
31737 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31738 | PyObject *resultobj = 0; | |
31739 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31740 | void *argp1 = 0 ; | |
31741 | int res1 = 0 ; | |
31742 | PyObject *swig_obj[1] ; | |
31743 | ||
31744 | if (!args) SWIG_fail; | |
31745 | swig_obj[0] = args; | |
31746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
31747 | if (!SWIG_IsOK(res1)) { | |
31748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31749 | } | |
31750 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31751 | { | |
31752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31753 | (arg1)->Clear(); | |
31754 | wxPyEndAllowThreads(__tstate); | |
31755 | if (PyErr_Occurred()) SWIG_fail; | |
31756 | } | |
31757 | resultobj = SWIG_Py_Void(); | |
31758 | return resultobj; | |
31759 | fail: | |
31760 | return NULL; | |
31761 | } | |
31762 | ||
31763 | ||
31764 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31765 | PyObject *obj; | |
31766 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31767 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
31768 | return SWIG_Py_Void(); | |
31769 | } | |
31770 | ||
31771 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31772 | return SWIG_Python_InitShadowInstance(args); | |
31773 | } | |
31774 | ||
72ef6efb RD |
31775 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31776 | PyObject *resultobj = 0; | |
31777 | int arg1 ; | |
31778 | int arg2 ; | |
31779 | int arg3 = (int) true ; | |
31780 | int arg4 = (int) 1 ; | |
31781 | wxImageList *result = 0 ; | |
31782 | int val1 ; | |
31783 | int ecode1 = 0 ; | |
31784 | int val2 ; | |
31785 | int ecode2 = 0 ; | |
31786 | int val3 ; | |
31787 | int ecode3 = 0 ; | |
31788 | int val4 ; | |
31789 | int ecode4 = 0 ; | |
31790 | PyObject * obj0 = 0 ; | |
31791 | PyObject * obj1 = 0 ; | |
31792 | PyObject * obj2 = 0 ; | |
31793 | PyObject * obj3 = 0 ; | |
31794 | char * kwnames[] = { | |
31795 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
31796 | }; | |
31797 | ||
31798 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31799 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31800 | if (!SWIG_IsOK(ecode1)) { | |
31801 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
31802 | } | |
31803 | arg1 = static_cast< int >(val1); | |
31804 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31805 | if (!SWIG_IsOK(ecode2)) { | |
31806 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
31807 | } | |
31808 | arg2 = static_cast< int >(val2); | |
31809 | if (obj2) { | |
31810 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31811 | if (!SWIG_IsOK(ecode3)) { | |
31812 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
31813 | } | |
31814 | arg3 = static_cast< int >(val3); | |
31815 | } | |
31816 | if (obj3) { | |
31817 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31818 | if (!SWIG_IsOK(ecode4)) { | |
31819 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
31820 | } | |
31821 | arg4 = static_cast< int >(val4); | |
31822 | } | |
31823 | { | |
31824 | if (!wxPyCheckForApp()) SWIG_fail; | |
31825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31826 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
31827 | wxPyEndAllowThreads(__tstate); | |
31828 | if (PyErr_Occurred()) SWIG_fail; | |
31829 | } | |
e02c0a13 | 31830 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
31831 | return resultobj; |
31832 | fail: | |
31833 | return NULL; | |
31834 | } | |
31835 | ||
31836 | ||
31837 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31838 | PyObject *resultobj = 0; | |
31839 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31840 | void *argp1 = 0 ; | |
31841 | int res1 = 0 ; | |
31842 | PyObject *swig_obj[1] ; | |
31843 | ||
31844 | if (!args) SWIG_fail; | |
31845 | swig_obj[0] = args; | |
31846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
31847 | if (!SWIG_IsOK(res1)) { | |
31848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31849 | } | |
31850 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31851 | { | |
31852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31853 | delete arg1; | |
31854 | ||
31855 | wxPyEndAllowThreads(__tstate); | |
31856 | if (PyErr_Occurred()) SWIG_fail; | |
31857 | } | |
31858 | resultobj = SWIG_Py_Void(); | |
31859 | return resultobj; | |
31860 | fail: | |
31861 | return NULL; | |
31862 | } | |
31863 | ||
31864 | ||
31865 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31866 | PyObject *resultobj = 0; | |
31867 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31868 | wxBitmap *arg2 = 0 ; | |
31869 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31870 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31871 | int result; | |
31872 | void *argp1 = 0 ; | |
31873 | int res1 = 0 ; | |
31874 | void *argp2 = 0 ; | |
31875 | int res2 = 0 ; | |
31876 | void *argp3 = 0 ; | |
31877 | int res3 = 0 ; | |
31878 | PyObject * obj0 = 0 ; | |
31879 | PyObject * obj1 = 0 ; | |
31880 | PyObject * obj2 = 0 ; | |
31881 | char * kwnames[] = { | |
31882 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
31883 | }; | |
31884 | ||
31885 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31886 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31887 | if (!SWIG_IsOK(res1)) { | |
31888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31889 | } | |
31890 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31891 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31892 | if (!SWIG_IsOK(res2)) { | |
31893 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31894 | } | |
31895 | if (!argp2) { | |
31896 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31897 | } | |
31898 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31899 | if (obj2) { | |
31900 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31901 | if (!SWIG_IsOK(res3)) { | |
31902 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31903 | } | |
31904 | if (!argp3) { | |
31905 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31906 | } | |
31907 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
31908 | } | |
31909 | { | |
31910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31911 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31912 | wxPyEndAllowThreads(__tstate); | |
31913 | if (PyErr_Occurred()) SWIG_fail; | |
31914 | } | |
31915 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31916 | return resultobj; | |
31917 | fail: | |
31918 | return NULL; | |
31919 | } | |
31920 | ||
31921 | ||
31922 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31923 | PyObject *resultobj = 0; | |
31924 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31925 | wxBitmap *arg2 = 0 ; | |
31926 | wxColour *arg3 = 0 ; | |
31927 | int result; | |
31928 | void *argp1 = 0 ; | |
31929 | int res1 = 0 ; | |
31930 | void *argp2 = 0 ; | |
31931 | int res2 = 0 ; | |
31932 | wxColour temp3 ; | |
31933 | PyObject * obj0 = 0 ; | |
31934 | PyObject * obj1 = 0 ; | |
31935 | PyObject * obj2 = 0 ; | |
31936 | char * kwnames[] = { | |
31937 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
31938 | }; | |
31939 | ||
31940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31942 | if (!SWIG_IsOK(res1)) { | |
31943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31944 | } | |
31945 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31946 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31947 | if (!SWIG_IsOK(res2)) { | |
31948 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31949 | } | |
31950 | if (!argp2) { | |
31951 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31952 | } | |
31953 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31954 | { | |
31955 | arg3 = &temp3; | |
31956 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31957 | } | |
31958 | { | |
31959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31960 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
31961 | wxPyEndAllowThreads(__tstate); | |
31962 | if (PyErr_Occurred()) SWIG_fail; | |
31963 | } | |
31964 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31965 | return resultobj; | |
31966 | fail: | |
31967 | return NULL; | |
31968 | } | |
31969 | ||
31970 | ||
31971 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31972 | PyObject *resultobj = 0; | |
31973 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31974 | wxIcon *arg2 = 0 ; | |
31975 | int result; | |
31976 | void *argp1 = 0 ; | |
31977 | int res1 = 0 ; | |
31978 | void *argp2 = 0 ; | |
31979 | int res2 = 0 ; | |
31980 | PyObject * obj0 = 0 ; | |
31981 | PyObject * obj1 = 0 ; | |
31982 | char * kwnames[] = { | |
31983 | (char *) "self",(char *) "icon", NULL | |
31984 | }; | |
31985 | ||
31986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31988 | if (!SWIG_IsOK(res1)) { | |
31989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31990 | } | |
554f62e9 RD |
31991 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
31992 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
31993 | if (!SWIG_IsOK(res2)) { | |
31994 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31995 | } | |
31996 | if (!argp2) { | |
31997 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31998 | } | |
31999 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
32000 | { | |
32001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32002 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
32003 | wxPyEndAllowThreads(__tstate); | |
32004 | if (PyErr_Occurred()) SWIG_fail; | |
32005 | } | |
32006 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32007 | return resultobj; | |
32008 | fail: | |
32009 | return NULL; | |
32010 | } | |
32011 | ||
32012 | ||
32013 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32014 | PyObject *resultobj = 0; | |
32015 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32016 | int arg2 ; | |
32017 | SwigValueWrapper<wxBitmap > result; | |
32018 | void *argp1 = 0 ; | |
32019 | int res1 = 0 ; | |
32020 | int val2 ; | |
32021 | int ecode2 = 0 ; | |
32022 | PyObject * obj0 = 0 ; | |
32023 | PyObject * obj1 = 0 ; | |
32024 | char * kwnames[] = { | |
32025 | (char *) "self",(char *) "index", NULL | |
32026 | }; | |
32027 | ||
32028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
32029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32030 | if (!SWIG_IsOK(res1)) { | |
32031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
32032 | } | |
32033 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32034 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32035 | if (!SWIG_IsOK(ecode2)) { | |
32036 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
32037 | } | |
32038 | arg2 = static_cast< int >(val2); | |
32039 | { | |
32040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32041 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
32042 | wxPyEndAllowThreads(__tstate); | |
32043 | if (PyErr_Occurred()) SWIG_fail; | |
32044 | } | |
32045 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
32046 | return resultobj; | |
32047 | fail: | |
32048 | return NULL; | |
32049 | } | |
32050 | ||
32051 | ||
32052 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32053 | PyObject *resultobj = 0; | |
32054 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32055 | int arg2 ; | |
32056 | wxIcon result; | |
32057 | void *argp1 = 0 ; | |
32058 | int res1 = 0 ; | |
32059 | int val2 ; | |
32060 | int ecode2 = 0 ; | |
32061 | PyObject * obj0 = 0 ; | |
32062 | PyObject * obj1 = 0 ; | |
32063 | char * kwnames[] = { | |
32064 | (char *) "self",(char *) "index", NULL | |
32065 | }; | |
32066 | ||
32067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
32068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32069 | if (!SWIG_IsOK(res1)) { | |
32070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
32071 | } | |
32072 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32073 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32074 | if (!SWIG_IsOK(ecode2)) { | |
32075 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
32076 | } | |
32077 | arg2 = static_cast< int >(val2); | |
32078 | { | |
32079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32080 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
32081 | wxPyEndAllowThreads(__tstate); | |
32082 | if (PyErr_Occurred()) SWIG_fail; | |
32083 | } | |
32084 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
32085 | return resultobj; | |
32086 | fail: | |
32087 | return NULL; | |
32088 | } | |
32089 | ||
32090 | ||
32091 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32092 | PyObject *resultobj = 0; | |
32093 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32094 | int arg2 ; | |
32095 | wxBitmap *arg3 = 0 ; | |
32096 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
32097 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
32098 | bool result; | |
32099 | void *argp1 = 0 ; | |
32100 | int res1 = 0 ; | |
32101 | int val2 ; | |
32102 | int ecode2 = 0 ; | |
32103 | void *argp3 = 0 ; | |
32104 | int res3 = 0 ; | |
32105 | void *argp4 = 0 ; | |
32106 | int res4 = 0 ; | |
32107 | PyObject * obj0 = 0 ; | |
32108 | PyObject * obj1 = 0 ; | |
32109 | PyObject * obj2 = 0 ; | |
32110 | PyObject * obj3 = 0 ; | |
32111 | char * kwnames[] = { | |
32112 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
32113 | }; | |
32114 | ||
32115 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32116 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32117 | if (!SWIG_IsOK(res1)) { | |
32118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32119 | } | |
32120 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32121 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32122 | if (!SWIG_IsOK(ecode2)) { | |
32123 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
32124 | } | |
32125 | arg2 = static_cast< int >(val2); | |
32126 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32127 | if (!SWIG_IsOK(res3)) { | |
32128 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32129 | } | |
32130 | if (!argp3) { | |
32131 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32132 | } | |
32133 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
32134 | if (obj3) { | |
32135 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32136 | if (!SWIG_IsOK(res4)) { | |
32137 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 32138 | } |
554f62e9 RD |
32139 | if (!argp4) { |
32140 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 32141 | } |
554f62e9 RD |
32142 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
32143 | } | |
32144 | { | |
32145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32146 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
32147 | wxPyEndAllowThreads(__tstate); | |
32148 | if (PyErr_Occurred()) SWIG_fail; | |
32149 | } | |
32150 | { | |
32151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32152 | } | |
32153 | return resultobj; | |
32154 | fail: | |
32155 | return NULL; | |
32156 | } | |
32157 | ||
32158 | ||
32159 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32160 | PyObject *resultobj = 0; | |
32161 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32162 | int arg2 ; | |
32163 | wxDC *arg3 = 0 ; | |
32164 | int arg4 ; | |
32165 | int arg5 ; | |
32166 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
32167 | bool arg7 = (bool) (bool)false ; | |
32168 | bool result; | |
32169 | void *argp1 = 0 ; | |
32170 | int res1 = 0 ; | |
32171 | int val2 ; | |
32172 | int ecode2 = 0 ; | |
32173 | void *argp3 = 0 ; | |
32174 | int res3 = 0 ; | |
32175 | int val4 ; | |
32176 | int ecode4 = 0 ; | |
32177 | int val5 ; | |
32178 | int ecode5 = 0 ; | |
32179 | int val6 ; | |
32180 | int ecode6 = 0 ; | |
32181 | bool val7 ; | |
32182 | int ecode7 = 0 ; | |
32183 | PyObject * obj0 = 0 ; | |
32184 | PyObject * obj1 = 0 ; | |
32185 | PyObject * obj2 = 0 ; | |
32186 | PyObject * obj3 = 0 ; | |
32187 | PyObject * obj4 = 0 ; | |
32188 | PyObject * obj5 = 0 ; | |
32189 | PyObject * obj6 = 0 ; | |
32190 | char * kwnames[] = { | |
32191 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
32192 | }; | |
32193 | ||
32194 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
32195 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32196 | if (!SWIG_IsOK(res1)) { | |
32197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32198 | } | |
32199 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32200 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32201 | if (!SWIG_IsOK(ecode2)) { | |
32202 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
32203 | } | |
32204 | arg2 = static_cast< int >(val2); | |
32205 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
32206 | if (!SWIG_IsOK(res3)) { | |
32207 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32208 | } | |
32209 | if (!argp3) { | |
32210 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32211 | } | |
32212 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
32213 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32214 | if (!SWIG_IsOK(ecode4)) { | |
32215 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
32216 | } | |
32217 | arg4 = static_cast< int >(val4); | |
32218 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32219 | if (!SWIG_IsOK(ecode5)) { | |
32220 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
32221 | } | |
32222 | arg5 = static_cast< int >(val5); | |
32223 | if (obj5) { | |
32224 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
32225 | if (!SWIG_IsOK(ecode6)) { | |
32226 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
32227 | } | |
32228 | arg6 = static_cast< int >(val6); | |
32229 | } | |
32230 | if (obj6) { | |
32231 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
32232 | if (!SWIG_IsOK(ecode7)) { | |
32233 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
32234 | } | |
32235 | arg7 = static_cast< bool >(val7); | |
32236 | } | |
32237 | { | |
32238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32239 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
32240 | wxPyEndAllowThreads(__tstate); | |
32241 | if (PyErr_Occurred()) SWIG_fail; | |
32242 | } | |
32243 | { | |
32244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32245 | } | |
32246 | return resultobj; | |
32247 | fail: | |
32248 | return NULL; | |
32249 | } | |
32250 | ||
32251 | ||
32252 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32253 | PyObject *resultobj = 0; | |
32254 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32255 | int result; | |
32256 | void *argp1 = 0 ; | |
32257 | int res1 = 0 ; | |
32258 | PyObject *swig_obj[1] ; | |
32259 | ||
32260 | if (!args) SWIG_fail; | |
32261 | swig_obj[0] = args; | |
32262 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32263 | if (!SWIG_IsOK(res1)) { | |
32264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32265 | } | |
32266 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32267 | { | |
32268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32269 | result = (int)(arg1)->GetImageCount(); | |
32270 | wxPyEndAllowThreads(__tstate); | |
32271 | if (PyErr_Occurred()) SWIG_fail; | |
32272 | } | |
32273 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32274 | return resultobj; | |
32275 | fail: | |
32276 | return NULL; | |
32277 | } | |
32278 | ||
32279 | ||
32280 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32281 | PyObject *resultobj = 0; | |
32282 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32283 | int arg2 ; | |
32284 | bool result; | |
32285 | void *argp1 = 0 ; | |
32286 | int res1 = 0 ; | |
32287 | int val2 ; | |
32288 | int ecode2 = 0 ; | |
32289 | PyObject * obj0 = 0 ; | |
32290 | PyObject * obj1 = 0 ; | |
32291 | char * kwnames[] = { | |
32292 | (char *) "self",(char *) "index", NULL | |
32293 | }; | |
32294 | ||
32295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
32296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32297 | if (!SWIG_IsOK(res1)) { | |
32298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32299 | } | |
32300 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32301 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32302 | if (!SWIG_IsOK(ecode2)) { | |
32303 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
32304 | } | |
32305 | arg2 = static_cast< int >(val2); | |
32306 | { | |
32307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32308 | result = (bool)(arg1)->Remove(arg2); | |
32309 | wxPyEndAllowThreads(__tstate); | |
32310 | if (PyErr_Occurred()) SWIG_fail; | |
32311 | } | |
32312 | { | |
32313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32314 | } | |
32315 | return resultobj; | |
32316 | fail: | |
32317 | return NULL; | |
32318 | } | |
32319 | ||
32320 | ||
32321 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32322 | PyObject *resultobj = 0; | |
32323 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32324 | bool result; | |
32325 | void *argp1 = 0 ; | |
32326 | int res1 = 0 ; | |
32327 | PyObject *swig_obj[1] ; | |
32328 | ||
32329 | if (!args) SWIG_fail; | |
32330 | swig_obj[0] = args; | |
32331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32332 | if (!SWIG_IsOK(res1)) { | |
32333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32334 | } | |
32335 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32336 | { | |
32337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32338 | result = (bool)(arg1)->RemoveAll(); | |
32339 | wxPyEndAllowThreads(__tstate); | |
32340 | if (PyErr_Occurred()) SWIG_fail; | |
32341 | } | |
32342 | { | |
32343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32344 | } | |
32345 | return resultobj; | |
32346 | fail: | |
32347 | return NULL; | |
32348 | } | |
32349 | ||
32350 | ||
32351 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32352 | PyObject *resultobj = 0; | |
32353 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32354 | int arg2 ; | |
32355 | int *arg3 = 0 ; | |
32356 | int *arg4 = 0 ; | |
32357 | void *argp1 = 0 ; | |
32358 | int res1 = 0 ; | |
32359 | int val2 ; | |
32360 | int ecode2 = 0 ; | |
32361 | int temp3 ; | |
32362 | int res3 = SWIG_TMPOBJ ; | |
32363 | int temp4 ; | |
32364 | int res4 = SWIG_TMPOBJ ; | |
32365 | PyObject * obj0 = 0 ; | |
32366 | PyObject * obj1 = 0 ; | |
32367 | char * kwnames[] = { | |
32368 | (char *) "self",(char *) "index", NULL | |
32369 | }; | |
32370 | ||
32371 | arg3 = &temp3; | |
32372 | arg4 = &temp4; | |
32373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
32374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32375 | if (!SWIG_IsOK(res1)) { | |
32376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32377 | } | |
32378 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32379 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32380 | if (!SWIG_IsOK(ecode2)) { | |
32381 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
32382 | } | |
32383 | arg2 = static_cast< int >(val2); | |
32384 | { | |
32385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32386 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
32387 | wxPyEndAllowThreads(__tstate); | |
32388 | if (PyErr_Occurred()) SWIG_fail; | |
32389 | } | |
32390 | resultobj = SWIG_Py_Void(); | |
32391 | if (SWIG_IsTmpObj(res3)) { | |
32392 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
32393 | } else { | |
32394 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32395 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
32396 | } | |
32397 | if (SWIG_IsTmpObj(res4)) { | |
32398 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
32399 | } else { | |
32400 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32401 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
32402 | } | |
32403 | return resultobj; | |
32404 | fail: | |
32405 | return NULL; | |
32406 | } | |
32407 | ||
32408 | ||
32409 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32410 | PyObject *obj; | |
32411 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32412 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
32413 | return SWIG_Py_Void(); | |
32414 | } | |
32415 | ||
32416 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32417 | return SWIG_Python_InitShadowInstance(args); | |
32418 | } | |
32419 | ||
50efceee RD |
32420 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32421 | PyObject *resultobj = 0; | |
32422 | wxStockGDI *result = 0 ; | |
554f62e9 | 32423 | |
50efceee RD |
32424 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
32425 | { | |
32426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32427 | result = (wxStockGDI *)new wxStockGDI(); | |
32428 | wxPyEndAllowThreads(__tstate); | |
32429 | if (PyErr_Occurred()) SWIG_fail; | |
32430 | } | |
32431 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
32432 | return resultobj; | |
32433 | fail: | |
32434 | return NULL; | |
554f62e9 RD |
32435 | } |
32436 | ||
32437 | ||
50efceee RD |
32438 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32439 | PyObject *resultobj = 0; | |
32440 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32441 | void *argp1 = 0 ; | |
32442 | int res1 = 0 ; | |
32443 | PyObject *swig_obj[1] ; | |
554f62e9 | 32444 | |
50efceee RD |
32445 | if (!args) SWIG_fail; |
32446 | swig_obj[0] = args; | |
32447 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
32448 | if (!SWIG_IsOK(res1)) { | |
32449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32450 | } | |
32451 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32452 | { | |
32453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32454 | delete arg1; | |
32455 | ||
32456 | wxPyEndAllowThreads(__tstate); | |
32457 | if (PyErr_Occurred()) SWIG_fail; | |
32458 | } | |
32459 | resultobj = SWIG_Py_Void(); | |
32460 | return resultobj; | |
32461 | fail: | |
32462 | return NULL; | |
554f62e9 RD |
32463 | } |
32464 | ||
32465 | ||
50efceee RD |
32466 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32467 | PyObject *resultobj = 0; | |
554f62e9 | 32468 | |
50efceee RD |
32469 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
32470 | { | |
32471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32472 | wxStockGDI::DeleteAll(); | |
32473 | wxPyEndAllowThreads(__tstate); | |
32474 | if (PyErr_Occurred()) SWIG_fail; | |
32475 | } | |
32476 | resultobj = SWIG_Py_Void(); | |
32477 | return resultobj; | |
32478 | fail: | |
32479 | return NULL; | |
554f62e9 RD |
32480 | } |
32481 | ||
32482 | ||
50efceee RD |
32483 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32484 | PyObject *resultobj = 0; | |
32485 | wxStockGDI *result = 0 ; | |
554f62e9 | 32486 | |
50efceee RD |
32487 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
32488 | { | |
32489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32490 | { | |
32491 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
32492 | result = (wxStockGDI *) &_result_ref; | |
32493 | } | |
32494 | wxPyEndAllowThreads(__tstate); | |
32495 | if (PyErr_Occurred()) SWIG_fail; | |
32496 | } | |
32497 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32498 | return resultobj; | |
32499 | fail: | |
32500 | return NULL; | |
554f62e9 RD |
32501 | } |
32502 | ||
32503 | ||
50efceee RD |
32504 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32505 | PyObject *resultobj = 0; | |
32506 | wxStockGDI::Item arg1 ; | |
32507 | wxBrush *result = 0 ; | |
32508 | int val1 ; | |
32509 | int ecode1 = 0 ; | |
32510 | PyObject * obj0 = 0 ; | |
32511 | char * kwnames[] = { | |
32512 | (char *) "item", NULL | |
32513 | }; | |
32514 | ||
32515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
32516 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32517 | if (!SWIG_IsOK(ecode1)) { | |
32518 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32519 | } | |
32520 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32521 | { | |
32522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32523 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
32524 | wxPyEndAllowThreads(__tstate); | |
32525 | if (PyErr_Occurred()) SWIG_fail; | |
32526 | } | |
32527 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32528 | return resultobj; | |
32529 | fail: | |
32530 | return NULL; | |
554f62e9 RD |
32531 | } |
32532 | ||
32533 | ||
50efceee RD |
32534 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32535 | PyObject *resultobj = 0; | |
32536 | wxStockGDI::Item arg1 ; | |
32537 | wxColour *result = 0 ; | |
32538 | int val1 ; | |
32539 | int ecode1 = 0 ; | |
32540 | PyObject * obj0 = 0 ; | |
32541 | char * kwnames[] = { | |
32542 | (char *) "item", NULL | |
32543 | }; | |
554f62e9 | 32544 | |
50efceee RD |
32545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
32546 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32547 | if (!SWIG_IsOK(ecode1)) { | |
32548 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32549 | } | |
32550 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32551 | { | |
32552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32553 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
32554 | wxPyEndAllowThreads(__tstate); | |
32555 | if (PyErr_Occurred()) SWIG_fail; | |
32556 | } | |
32557 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
32558 | return resultobj; | |
32559 | fail: | |
32560 | return NULL; | |
554f62e9 RD |
32561 | } |
32562 | ||
32563 | ||
50efceee RD |
32564 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32565 | PyObject *resultobj = 0; | |
32566 | wxStockGDI::Item arg1 ; | |
32567 | wxCursor *result = 0 ; | |
32568 | int val1 ; | |
32569 | int ecode1 = 0 ; | |
32570 | PyObject * obj0 = 0 ; | |
32571 | char * kwnames[] = { | |
32572 | (char *) "item", NULL | |
32573 | }; | |
32574 | ||
32575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
32576 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32577 | if (!SWIG_IsOK(ecode1)) { | |
32578 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32579 | } | |
32580 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32581 | { | |
32582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32583 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
32584 | wxPyEndAllowThreads(__tstate); | |
32585 | if (PyErr_Occurred()) SWIG_fail; | |
32586 | } | |
32587 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
32588 | return resultobj; | |
32589 | fail: | |
32590 | return NULL; | |
554f62e9 RD |
32591 | } |
32592 | ||
32593 | ||
50efceee RD |
32594 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32595 | PyObject *resultobj = 0; | |
32596 | wxStockGDI::Item arg1 ; | |
32597 | wxPen *result = 0 ; | |
32598 | int val1 ; | |
32599 | int ecode1 = 0 ; | |
32600 | PyObject * obj0 = 0 ; | |
32601 | char * kwnames[] = { | |
32602 | (char *) "item", NULL | |
32603 | }; | |
32604 | ||
32605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
32606 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32607 | if (!SWIG_IsOK(ecode1)) { | |
32608 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32609 | } | |
32610 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32611 | { | |
32612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32613 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
32614 | wxPyEndAllowThreads(__tstate); | |
32615 | if (PyErr_Occurred()) SWIG_fail; | |
32616 | } | |
32617 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32618 | return resultobj; | |
32619 | fail: | |
32620 | return NULL; | |
554f62e9 RD |
32621 | } |
32622 | ||
32623 | ||
50efceee RD |
32624 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32625 | PyObject *resultobj = 0; | |
32626 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32627 | wxStockGDI::Item arg2 ; | |
32628 | wxFont *result = 0 ; | |
32629 | void *argp1 = 0 ; | |
32630 | int res1 = 0 ; | |
32631 | int val2 ; | |
32632 | int ecode2 = 0 ; | |
32633 | PyObject * obj0 = 0 ; | |
32634 | PyObject * obj1 = 0 ; | |
32635 | char * kwnames[] = { | |
32636 | (char *) "self",(char *) "item", NULL | |
32637 | }; | |
554f62e9 | 32638 | |
50efceee RD |
32639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32641 | if (!SWIG_IsOK(res1)) { | |
32642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32643 | } | |
32644 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32645 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32646 | if (!SWIG_IsOK(ecode2)) { | |
32647 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
32648 | } | |
32649 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
32650 | { | |
32651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32652 | result = (wxFont *)(arg1)->GetFont(arg2); | |
32653 | wxPyEndAllowThreads(__tstate); | |
32654 | if (PyErr_Occurred()) SWIG_fail; | |
32655 | } | |
32656 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
32657 | return resultobj; | |
32658 | fail: | |
32659 | return NULL; | |
554f62e9 RD |
32660 | } |
32661 | ||
32662 | ||
50efceee RD |
32663 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32664 | PyObject *obj; | |
32665 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32666 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
32667 | return SWIG_Py_Void(); | |
554f62e9 RD |
32668 | } |
32669 | ||
50efceee RD |
32670 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32671 | return SWIG_Python_InitShadowInstance(args); | |
554f62e9 RD |
32672 | } |
32673 | ||
554f62e9 RD |
32674 | SWIGINTERN int NullBitmap_set(PyObject *) { |
32675 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
32676 | return 1; | |
32677 | } | |
32678 | ||
32679 | ||
32680 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
32681 | PyObject *pyobj = 0; | |
32682 | ||
32683 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
32684 | return pyobj; | |
32685 | } | |
32686 | ||
32687 | ||
32688 | SWIGINTERN int NullIcon_set(PyObject *) { | |
32689 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
32690 | return 1; | |
32691 | } | |
32692 | ||
32693 | ||
32694 | SWIGINTERN PyObject *NullIcon_get(void) { | |
32695 | PyObject *pyobj = 0; | |
32696 | ||
32697 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
32698 | return pyobj; | |
32699 | } | |
32700 | ||
32701 | ||
32702 | SWIGINTERN int NullCursor_set(PyObject *) { | |
32703 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
32704 | return 1; | |
32705 | } | |
32706 | ||
32707 | ||
32708 | SWIGINTERN PyObject *NullCursor_get(void) { | |
32709 | PyObject *pyobj = 0; | |
32710 | ||
32711 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
32712 | return pyobj; | |
32713 | } | |
32714 | ||
32715 | ||
32716 | SWIGINTERN int NullPen_set(PyObject *) { | |
32717 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
32718 | return 1; | |
32719 | } | |
32720 | ||
32721 | ||
32722 | SWIGINTERN PyObject *NullPen_get(void) { | |
32723 | PyObject *pyobj = 0; | |
32724 | ||
32725 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
32726 | return pyobj; | |
32727 | } | |
32728 | ||
32729 | ||
32730 | SWIGINTERN int NullBrush_set(PyObject *) { | |
32731 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
32732 | return 1; | |
32733 | } | |
32734 | ||
32735 | ||
32736 | SWIGINTERN PyObject *NullBrush_get(void) { | |
32737 | PyObject *pyobj = 0; | |
32738 | ||
32739 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
32740 | return pyobj; | |
32741 | } | |
32742 | ||
32743 | ||
32744 | SWIGINTERN int NullPalette_set(PyObject *) { | |
32745 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
32746 | return 1; | |
32747 | } | |
32748 | ||
32749 | ||
32750 | SWIGINTERN PyObject *NullPalette_get(void) { | |
32751 | PyObject *pyobj = 0; | |
32752 | ||
32753 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
32754 | return pyobj; | |
32755 | } | |
32756 | ||
32757 | ||
32758 | SWIGINTERN int NullFont_set(PyObject *) { | |
32759 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
32760 | return 1; | |
32761 | } | |
32762 | ||
32763 | ||
32764 | SWIGINTERN PyObject *NullFont_get(void) { | |
32765 | PyObject *pyobj = 0; | |
32766 | ||
32767 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
32768 | return pyobj; | |
32769 | } | |
32770 | ||
32771 | ||
32772 | SWIGINTERN int NullColour_set(PyObject *) { | |
32773 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
32774 | return 1; | |
32775 | } | |
32776 | ||
32777 | ||
32778 | SWIGINTERN PyObject *NullColour_get(void) { | |
32779 | PyObject *pyobj = 0; | |
32780 | ||
32781 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
32782 | return pyobj; | |
32783 | } | |
32784 | ||
32785 | ||
50efceee | 32786 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 32787 | PyObject *resultobj = 0; |
50efceee RD |
32788 | wxGDIObjListBase *result = 0 ; |
32789 | ||
32790 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
32791 | { | |
32792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32793 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
32794 | wxPyEndAllowThreads(__tstate); | |
32795 | if (PyErr_Occurred()) SWIG_fail; | |
32796 | } | |
32797 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
32798 | return resultobj; | |
32799 | fail: | |
32800 | return NULL; | |
32801 | } | |
32802 | ||
32803 | ||
32804 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32805 | PyObject *resultobj = 0; | |
32806 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
554f62e9 RD |
32807 | void *argp1 = 0 ; |
32808 | int res1 = 0 ; | |
50efceee | 32809 | PyObject *swig_obj[1] ; |
554f62e9 | 32810 | |
50efceee RD |
32811 | if (!args) SWIG_fail; |
32812 | swig_obj[0] = args; | |
32813 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
554f62e9 | 32814 | if (!SWIG_IsOK(res1)) { |
50efceee | 32815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
554f62e9 | 32816 | } |
50efceee | 32817 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
554f62e9 RD |
32818 | { |
32819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
32820 | delete arg1; |
32821 | ||
554f62e9 RD |
32822 | wxPyEndAllowThreads(__tstate); |
32823 | if (PyErr_Occurred()) SWIG_fail; | |
32824 | } | |
32825 | resultobj = SWIG_Py_Void(); | |
32826 | return resultobj; | |
32827 | fail: | |
32828 | return NULL; | |
32829 | } | |
32830 | ||
32831 | ||
50efceee RD |
32832 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32833 | PyObject *obj; | |
32834 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32835 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
32836 | return SWIG_Py_Void(); | |
32837 | } | |
32838 | ||
32839 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32840 | return SWIG_Python_InitShadowInstance(args); | |
32841 | } | |
32842 | ||
554f62e9 RD |
32843 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32844 | PyObject *resultobj = 0; | |
32845 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32846 | wxColour *arg2 = 0 ; | |
32847 | int arg3 ; | |
32848 | int arg4 ; | |
32849 | wxPen *result = 0 ; | |
32850 | void *argp1 = 0 ; | |
32851 | int res1 = 0 ; | |
32852 | wxColour temp2 ; | |
32853 | int val3 ; | |
32854 | int ecode3 = 0 ; | |
32855 | int val4 ; | |
32856 | int ecode4 = 0 ; | |
32857 | PyObject * obj0 = 0 ; | |
32858 | PyObject * obj1 = 0 ; | |
32859 | PyObject * obj2 = 0 ; | |
32860 | PyObject * obj3 = 0 ; | |
32861 | char * kwnames[] = { | |
32862 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
32863 | }; | |
32864 | ||
32865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
32867 | if (!SWIG_IsOK(res1)) { | |
32868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
32869 | } | |
32870 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32871 | { | |
32872 | arg2 = &temp2; | |
32873 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32874 | } | |
32875 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32876 | if (!SWIG_IsOK(ecode3)) { | |
32877 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
32878 | } | |
32879 | arg3 = static_cast< int >(val3); | |
32880 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32881 | if (!SWIG_IsOK(ecode4)) { | |
32882 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
32883 | } | |
32884 | arg4 = static_cast< int >(val4); | |
32885 | { | |
32886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32887 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
32888 | wxPyEndAllowThreads(__tstate); | |
32889 | if (PyErr_Occurred()) SWIG_fail; | |
32890 | } | |
32891 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32892 | return resultobj; | |
32893 | fail: | |
32894 | return NULL; | |
32895 | } | |
32896 | ||
32897 | ||
50efceee | 32898 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
32899 | PyObject *resultobj = 0; |
32900 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32901 | wxPen *arg2 = (wxPen *) 0 ; | |
32902 | void *argp1 = 0 ; | |
32903 | int res1 = 0 ; | |
32904 | void *argp2 = 0 ; | |
32905 | int res2 = 0 ; | |
32906 | PyObject * obj0 = 0 ; | |
32907 | PyObject * obj1 = 0 ; | |
32908 | char * kwnames[] = { | |
32909 | (char *) "self",(char *) "pen", NULL | |
32910 | }; | |
32911 | ||
50efceee | 32912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
554f62e9 RD |
32913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
32914 | if (!SWIG_IsOK(res1)) { | |
50efceee | 32915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
32916 | } |
32917 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32918 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
32919 | if (!SWIG_IsOK(res2)) { | |
50efceee | 32920 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
554f62e9 RD |
32921 | } |
32922 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
32923 | { | |
32924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32925 | (arg1)->AddPen(arg2); |
554f62e9 RD |
32926 | wxPyEndAllowThreads(__tstate); |
32927 | if (PyErr_Occurred()) SWIG_fail; | |
32928 | } | |
32929 | resultobj = SWIG_Py_Void(); | |
32930 | return resultobj; | |
32931 | fail: | |
32932 | return NULL; | |
32933 | } | |
32934 | ||
32935 | ||
50efceee | 32936 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
32937 | PyObject *resultobj = 0; |
32938 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 32939 | wxPen *arg2 = (wxPen *) 0 ; |
554f62e9 RD |
32940 | void *argp1 = 0 ; |
32941 | int res1 = 0 ; | |
50efceee RD |
32942 | void *argp2 = 0 ; |
32943 | int res2 = 0 ; | |
32944 | PyObject * obj0 = 0 ; | |
32945 | PyObject * obj1 = 0 ; | |
32946 | char * kwnames[] = { | |
32947 | (char *) "self",(char *) "pen", NULL | |
32948 | }; | |
554f62e9 | 32949 | |
50efceee RD |
32950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
32951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
554f62e9 | 32952 | if (!SWIG_IsOK(res1)) { |
50efceee | 32953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
32954 | } |
32955 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
32956 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
32957 | if (!SWIG_IsOK(res2)) { | |
32958 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
32959 | } | |
32960 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
554f62e9 RD |
32961 | { |
32962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32963 | (arg1)->RemovePen(arg2); |
554f62e9 RD |
32964 | wxPyEndAllowThreads(__tstate); |
32965 | if (PyErr_Occurred()) SWIG_fail; | |
32966 | } | |
50efceee | 32967 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
32968 | return resultobj; |
32969 | fail: | |
32970 | return NULL; | |
32971 | } | |
32972 | ||
32973 | ||
32974 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32975 | PyObject *obj; | |
32976 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32977 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
32978 | return SWIG_Py_Void(); | |
32979 | } | |
32980 | ||
50efceee RD |
32981 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32982 | PyObject *resultobj = 0; | |
32983 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32984 | wxColour *arg2 = 0 ; | |
32985 | int arg3 = (int) wxSOLID ; | |
32986 | wxBrush *result = 0 ; | |
32987 | void *argp1 = 0 ; | |
32988 | int res1 = 0 ; | |
32989 | wxColour temp2 ; | |
32990 | int val3 ; | |
32991 | int ecode3 = 0 ; | |
32992 | PyObject * obj0 = 0 ; | |
32993 | PyObject * obj1 = 0 ; | |
32994 | PyObject * obj2 = 0 ; | |
32995 | char * kwnames[] = { | |
32996 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
32997 | }; | |
32998 | ||
32999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33001 | if (!SWIG_IsOK(res1)) { | |
33002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33003 | } | |
33004 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33005 | { | |
33006 | arg2 = &temp2; | |
33007 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33008 | } | |
33009 | if (obj2) { | |
33010 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33011 | if (!SWIG_IsOK(ecode3)) { | |
33012 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
33013 | } | |
33014 | arg3 = static_cast< int >(val3); | |
33015 | } | |
33016 | { | |
33017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33018 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
33019 | wxPyEndAllowThreads(__tstate); | |
33020 | if (PyErr_Occurred()) SWIG_fail; | |
33021 | } | |
33022 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33023 | return resultobj; | |
33024 | fail: | |
33025 | return NULL; | |
33026 | } | |
33027 | ||
33028 | ||
554f62e9 RD |
33029 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33030 | PyObject *resultobj = 0; | |
33031 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
33032 | wxBrush *arg2 = (wxBrush *) 0 ; | |
33033 | void *argp1 = 0 ; | |
33034 | int res1 = 0 ; | |
33035 | void *argp2 = 0 ; | |
33036 | int res2 = 0 ; | |
33037 | PyObject * obj0 = 0 ; | |
33038 | PyObject * obj1 = 0 ; | |
33039 | char * kwnames[] = { | |
33040 | (char *) "self",(char *) "brush", NULL | |
33041 | }; | |
33042 | ||
33043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
33044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33045 | if (!SWIG_IsOK(res1)) { | |
33046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33047 | } | |
33048 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33049 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33050 | if (!SWIG_IsOK(res2)) { | |
33051 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
33052 | } | |
33053 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
33054 | { | |
33055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33056 | (arg1)->AddBrush(arg2); | |
33057 | wxPyEndAllowThreads(__tstate); | |
33058 | if (PyErr_Occurred()) SWIG_fail; | |
33059 | } | |
33060 | resultobj = SWIG_Py_Void(); | |
33061 | return resultobj; | |
33062 | fail: | |
33063 | return NULL; | |
33064 | } | |
33065 | ||
33066 | ||
50efceee | 33067 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
33068 | PyObject *resultobj = 0; |
33069 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 33070 | wxBrush *arg2 = (wxBrush *) 0 ; |
554f62e9 RD |
33071 | void *argp1 = 0 ; |
33072 | int res1 = 0 ; | |
50efceee RD |
33073 | void *argp2 = 0 ; |
33074 | int res2 = 0 ; | |
33075 | PyObject * obj0 = 0 ; | |
33076 | PyObject * obj1 = 0 ; | |
33077 | char * kwnames[] = { | |
33078 | (char *) "self",(char *) "brush", NULL | |
33079 | }; | |
33080 | ||
33081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
33082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33083 | if (!SWIG_IsOK(res1)) { | |
33084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33085 | } | |
33086 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33087 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33088 | if (!SWIG_IsOK(res2)) { | |
33089 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
33090 | } | |
33091 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
33092 | { | |
33093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33094 | (arg1)->RemoveBrush(arg2); | |
33095 | wxPyEndAllowThreads(__tstate); | |
33096 | if (PyErr_Occurred()) SWIG_fail; | |
33097 | } | |
33098 | resultobj = SWIG_Py_Void(); | |
33099 | return resultobj; | |
33100 | fail: | |
33101 | return NULL; | |
33102 | } | |
33103 | ||
33104 | ||
33105 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33106 | PyObject *obj; | |
33107 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33108 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
33109 | return SWIG_Py_Void(); | |
33110 | } | |
33111 | ||
33112 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33113 | PyObject *resultobj = 0; | |
33114 | wxFontList *arg1 = (wxFontList *) 0 ; | |
33115 | int arg2 ; | |
33116 | int arg3 ; | |
33117 | int arg4 ; | |
33118 | int arg5 ; | |
33119 | bool arg6 = (bool) false ; | |
33120 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
33121 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33122 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
33123 | wxFont *result = 0 ; | |
33124 | void *argp1 = 0 ; | |
33125 | int res1 = 0 ; | |
33126 | int val2 ; | |
33127 | int ecode2 = 0 ; | |
554f62e9 RD |
33128 | int val3 ; |
33129 | int ecode3 = 0 ; | |
50efceee RD |
33130 | int val4 ; |
33131 | int ecode4 = 0 ; | |
33132 | int val5 ; | |
33133 | int ecode5 = 0 ; | |
33134 | bool val6 ; | |
33135 | int ecode6 = 0 ; | |
33136 | bool temp7 = false ; | |
33137 | int val8 ; | |
33138 | int ecode8 = 0 ; | |
554f62e9 RD |
33139 | PyObject * obj0 = 0 ; |
33140 | PyObject * obj1 = 0 ; | |
33141 | PyObject * obj2 = 0 ; | |
50efceee RD |
33142 | PyObject * obj3 = 0 ; |
33143 | PyObject * obj4 = 0 ; | |
33144 | PyObject * obj5 = 0 ; | |
33145 | PyObject * obj6 = 0 ; | |
33146 | PyObject * obj7 = 0 ; | |
554f62e9 | 33147 | char * kwnames[] = { |
50efceee | 33148 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
554f62e9 RD |
33149 | }; |
33150 | ||
50efceee RD |
33151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
33152 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33153 | if (!SWIG_IsOK(res1)) { |
50efceee | 33154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33155 | } |
50efceee RD |
33156 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33157 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33158 | if (!SWIG_IsOK(ecode2)) { | |
33159 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
33160 | } | |
33161 | arg2 = static_cast< int >(val2); | |
33162 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33163 | if (!SWIG_IsOK(ecode3)) { | |
33164 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
33165 | } | |
33166 | arg3 = static_cast< int >(val3); | |
33167 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33168 | if (!SWIG_IsOK(ecode4)) { | |
33169 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
33170 | } | |
33171 | arg4 = static_cast< int >(val4); | |
33172 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33173 | if (!SWIG_IsOK(ecode5)) { | |
33174 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
33175 | } | |
33176 | arg5 = static_cast< int >(val5); | |
33177 | if (obj5) { | |
33178 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
33179 | if (!SWIG_IsOK(ecode6)) { | |
33180 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
33181 | } | |
33182 | arg6 = static_cast< bool >(val6); | |
554f62e9 | 33183 | } |
50efceee RD |
33184 | if (obj6) { |
33185 | { | |
33186 | arg7 = wxString_in_helper(obj6); | |
33187 | if (arg7 == NULL) SWIG_fail; | |
33188 | temp7 = true; | |
33189 | } | |
33190 | } | |
33191 | if (obj7) { | |
33192 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
33193 | if (!SWIG_IsOK(ecode8)) { | |
33194 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
554f62e9 | 33195 | } |
50efceee | 33196 | arg8 = static_cast< wxFontEncoding >(val8); |
554f62e9 RD |
33197 | } |
33198 | { | |
33199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33200 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
554f62e9 RD |
33201 | wxPyEndAllowThreads(__tstate); |
33202 | if (PyErr_Occurred()) SWIG_fail; | |
33203 | } | |
50efceee RD |
33204 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
33205 | { | |
33206 | if (temp7) | |
33207 | delete arg7; | |
33208 | } | |
554f62e9 RD |
33209 | return resultobj; |
33210 | fail: | |
50efceee RD |
33211 | { |
33212 | if (temp7) | |
33213 | delete arg7; | |
33214 | } | |
554f62e9 RD |
33215 | return NULL; |
33216 | } | |
33217 | ||
33218 | ||
50efceee | 33219 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 33220 | PyObject *resultobj = 0; |
50efceee RD |
33221 | wxFontList *arg1 = (wxFontList *) 0 ; |
33222 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
33223 | void *argp1 = 0 ; |
33224 | int res1 = 0 ; | |
33225 | void *argp2 = 0 ; | |
33226 | int res2 = 0 ; | |
33227 | PyObject * obj0 = 0 ; | |
33228 | PyObject * obj1 = 0 ; | |
33229 | char * kwnames[] = { | |
50efceee | 33230 | (char *) "self",(char *) "font", NULL |
554f62e9 RD |
33231 | }; |
33232 | ||
50efceee RD |
33233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
33234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33235 | if (!SWIG_IsOK(res1)) { |
50efceee | 33236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33237 | } |
50efceee RD |
33238 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33239 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
554f62e9 | 33240 | if (!SWIG_IsOK(res2)) { |
50efceee | 33241 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
554f62e9 | 33242 | } |
50efceee | 33243 | arg2 = reinterpret_cast< wxFont * >(argp2); |
554f62e9 RD |
33244 | { |
33245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33246 | (arg1)->AddFont(arg2); |
554f62e9 RD |
33247 | wxPyEndAllowThreads(__tstate); |
33248 | if (PyErr_Occurred()) SWIG_fail; | |
33249 | } | |
33250 | resultobj = SWIG_Py_Void(); | |
33251 | return resultobj; | |
33252 | fail: | |
33253 | return NULL; | |
33254 | } | |
33255 | ||
33256 | ||
50efceee | 33257 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 33258 | PyObject *resultobj = 0; |
50efceee RD |
33259 | wxFontList *arg1 = (wxFontList *) 0 ; |
33260 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
33261 | void *argp1 = 0 ; |
33262 | int res1 = 0 ; | |
50efceee RD |
33263 | void *argp2 = 0 ; |
33264 | int res2 = 0 ; | |
33265 | PyObject * obj0 = 0 ; | |
33266 | PyObject * obj1 = 0 ; | |
33267 | char * kwnames[] = { | |
33268 | (char *) "self",(char *) "font", NULL | |
33269 | }; | |
554f62e9 | 33270 | |
50efceee RD |
33271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
33272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33273 | if (!SWIG_IsOK(res1)) { |
50efceee | 33274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33275 | } |
50efceee RD |
33276 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33277 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
33278 | if (!SWIG_IsOK(res2)) { | |
33279 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
33280 | } | |
33281 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
554f62e9 RD |
33282 | { |
33283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33284 | (arg1)->RemoveFont(arg2); |
554f62e9 RD |
33285 | wxPyEndAllowThreads(__tstate); |
33286 | if (PyErr_Occurred()) SWIG_fail; | |
33287 | } | |
50efceee | 33288 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
33289 | return resultobj; |
33290 | fail: | |
33291 | return NULL; | |
33292 | } | |
33293 | ||
33294 | ||
50efceee | 33295 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
33296 | PyObject *obj; |
33297 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 33298 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
554f62e9 RD |
33299 | return SWIG_Py_Void(); |
33300 | } | |
33301 | ||
33302 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33303 | PyObject *resultobj = 0; | |
33304 | wxColourDatabase *result = 0 ; | |
33305 | ||
33306 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
33307 | { | |
33308 | if (!wxPyCheckForApp()) SWIG_fail; | |
33309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33310 | result = (wxColourDatabase *)new wxColourDatabase(); | |
33311 | wxPyEndAllowThreads(__tstate); | |
33312 | if (PyErr_Occurred()) SWIG_fail; | |
33313 | } | |
33314 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
33315 | return resultobj; | |
33316 | fail: | |
33317 | return NULL; | |
33318 | } | |
33319 | ||
33320 | ||
33321 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33322 | PyObject *resultobj = 0; | |
33323 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33324 | void *argp1 = 0 ; | |
33325 | int res1 = 0 ; | |
33326 | PyObject *swig_obj[1] ; | |
33327 | ||
33328 | if (!args) SWIG_fail; | |
33329 | swig_obj[0] = args; | |
33330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
33331 | if (!SWIG_IsOK(res1)) { | |
33332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
33333 | } | |
33334 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33335 | { | |
33336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33337 | delete arg1; | |
33338 | ||
33339 | wxPyEndAllowThreads(__tstate); | |
33340 | if (PyErr_Occurred()) SWIG_fail; | |
33341 | } | |
33342 | resultobj = SWIG_Py_Void(); | |
33343 | return resultobj; | |
33344 | fail: | |
33345 | return NULL; | |
33346 | } | |
33347 | ||
33348 | ||
33349 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33350 | PyObject *resultobj = 0; | |
33351 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33352 | wxString *arg2 = 0 ; | |
33353 | wxColour result; | |
33354 | void *argp1 = 0 ; | |
33355 | int res1 = 0 ; | |
33356 | bool temp2 = false ; | |
33357 | PyObject * obj0 = 0 ; | |
33358 | PyObject * obj1 = 0 ; | |
33359 | char * kwnames[] = { | |
33360 | (char *) "self",(char *) "name", NULL | |
33361 | }; | |
33362 | ||
33363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
33364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33365 | if (!SWIG_IsOK(res1)) { | |
33366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
33367 | } | |
33368 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33369 | { | |
33370 | arg2 = wxString_in_helper(obj1); | |
33371 | if (arg2 == NULL) SWIG_fail; | |
33372 | temp2 = true; | |
33373 | } | |
33374 | { | |
33375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33376 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
33377 | wxPyEndAllowThreads(__tstate); | |
33378 | if (PyErr_Occurred()) SWIG_fail; | |
33379 | } | |
33380 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33381 | { | |
33382 | if (temp2) | |
33383 | delete arg2; | |
33384 | } | |
33385 | return resultobj; | |
33386 | fail: | |
33387 | { | |
33388 | if (temp2) | |
33389 | delete arg2; | |
33390 | } | |
33391 | return NULL; | |
33392 | } | |
33393 | ||
33394 | ||
33395 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33396 | PyObject *resultobj = 0; | |
33397 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33398 | wxColour *arg2 = 0 ; | |
33399 | wxString result; | |
33400 | void *argp1 = 0 ; | |
33401 | int res1 = 0 ; | |
33402 | wxColour temp2 ; | |
33403 | PyObject * obj0 = 0 ; | |
33404 | PyObject * obj1 = 0 ; | |
33405 | char * kwnames[] = { | |
33406 | (char *) "self",(char *) "colour", NULL | |
33407 | }; | |
33408 | ||
33409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
33410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33411 | if (!SWIG_IsOK(res1)) { | |
33412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
33413 | } | |
33414 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33415 | { | |
33416 | arg2 = &temp2; | |
33417 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33418 | } | |
33419 | { | |
33420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33421 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
33422 | wxPyEndAllowThreads(__tstate); | |
33423 | if (PyErr_Occurred()) SWIG_fail; | |
33424 | } | |
33425 | { | |
33426 | #if wxUSE_UNICODE | |
33427 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33428 | #else | |
33429 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33430 | #endif | |
33431 | } | |
33432 | return resultobj; | |
33433 | fail: | |
33434 | return NULL; | |
33435 | } | |
33436 | ||
33437 | ||
33438 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33439 | PyObject *resultobj = 0; | |
33440 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33441 | wxString *arg2 = 0 ; | |
33442 | wxColour *arg3 = 0 ; | |
33443 | void *argp1 = 0 ; | |
33444 | int res1 = 0 ; | |
33445 | bool temp2 = false ; | |
33446 | wxColour temp3 ; | |
33447 | PyObject * obj0 = 0 ; | |
33448 | PyObject * obj1 = 0 ; | |
33449 | PyObject * obj2 = 0 ; | |
33450 | char * kwnames[] = { | |
33451 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
33452 | }; | |
33453 | ||
33454 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33455 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33456 | if (!SWIG_IsOK(res1)) { | |
33457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
33458 | } | |
33459 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33460 | { | |
33461 | arg2 = wxString_in_helper(obj1); | |
33462 | if (arg2 == NULL) SWIG_fail; | |
33463 | temp2 = true; | |
33464 | } | |
33465 | { | |
33466 | arg3 = &temp3; | |
33467 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
33468 | } | |
33469 | { | |
33470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33471 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
33472 | wxPyEndAllowThreads(__tstate); | |
33473 | if (PyErr_Occurred()) SWIG_fail; | |
33474 | } | |
33475 | resultobj = SWIG_Py_Void(); | |
33476 | { | |
33477 | if (temp2) | |
33478 | delete arg2; | |
33479 | } | |
33480 | return resultobj; | |
33481 | fail: | |
33482 | { | |
33483 | if (temp2) | |
33484 | delete arg2; | |
33485 | } | |
33486 | return NULL; | |
33487 | } | |
33488 | ||
33489 | ||
33490 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33491 | PyObject *resultobj = 0; | |
33492 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33493 | wxString *arg2 = 0 ; | |
33494 | int arg3 ; | |
33495 | int arg4 ; | |
33496 | int arg5 ; | |
33497 | void *argp1 = 0 ; | |
33498 | int res1 = 0 ; | |
33499 | bool temp2 = false ; | |
33500 | int val3 ; | |
33501 | int ecode3 = 0 ; | |
33502 | int val4 ; | |
33503 | int ecode4 = 0 ; | |
50efceee RD |
33504 | int val5 ; |
33505 | int ecode5 = 0 ; | |
554f62e9 RD |
33506 | PyObject * obj0 = 0 ; |
33507 | PyObject * obj1 = 0 ; | |
33508 | PyObject * obj2 = 0 ; | |
33509 | PyObject * obj3 = 0 ; | |
33510 | PyObject * obj4 = 0 ; | |
554f62e9 | 33511 | char * kwnames[] = { |
50efceee | 33512 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
554f62e9 RD |
33513 | }; |
33514 | ||
50efceee RD |
33515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
33516 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
554f62e9 | 33517 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
33518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
33519 | } | |
33520 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33521 | { | |
33522 | arg2 = wxString_in_helper(obj1); | |
33523 | if (arg2 == NULL) SWIG_fail; | |
33524 | temp2 = true; | |
554f62e9 | 33525 | } |
554f62e9 RD |
33526 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
33527 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 33528 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
554f62e9 RD |
33529 | } |
33530 | arg3 = static_cast< int >(val3); | |
33531 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33532 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 33533 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
554f62e9 RD |
33534 | } |
33535 | arg4 = static_cast< int >(val4); | |
33536 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33537 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 33538 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
554f62e9 RD |
33539 | } |
33540 | arg5 = static_cast< int >(val5); | |
554f62e9 RD |
33541 | { |
33542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33543 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
554f62e9 RD |
33544 | wxPyEndAllowThreads(__tstate); |
33545 | if (PyErr_Occurred()) SWIG_fail; | |
33546 | } | |
50efceee | 33547 | resultobj = SWIG_Py_Void(); |
554f62e9 | 33548 | { |
50efceee RD |
33549 | if (temp2) |
33550 | delete arg2; | |
554f62e9 RD |
33551 | } |
33552 | return resultobj; | |
33553 | fail: | |
33554 | { | |
50efceee RD |
33555 | if (temp2) |
33556 | delete arg2; | |
554f62e9 RD |
33557 | } |
33558 | return NULL; | |
33559 | } | |
33560 | ||
33561 | ||
50efceee RD |
33562 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33563 | PyObject *obj; | |
33564 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33565 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
33566 | return SWIG_Py_Void(); | |
33567 | } | |
33568 | ||
33569 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33570 | return SWIG_Python_InitShadowInstance(args); | |
33571 | } | |
33572 | ||
33573 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
554f62e9 | 33574 | PyObject *resultobj = 0; |
50efceee | 33575 | wxFontList *result = 0 ; |
554f62e9 | 33576 | |
50efceee | 33577 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
554f62e9 RD |
33578 | { |
33579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33580 | result = (wxFontList *)_wxPyInitTheFontList(); |
554f62e9 RD |
33581 | wxPyEndAllowThreads(__tstate); |
33582 | if (PyErr_Occurred()) SWIG_fail; | |
33583 | } | |
50efceee | 33584 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
554f62e9 RD |
33585 | return resultobj; |
33586 | fail: | |
33587 | return NULL; | |
33588 | } | |
33589 | ||
33590 | ||
50efceee | 33591 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 33592 | PyObject *resultobj = 0; |
50efceee | 33593 | wxPenList *result = 0 ; |
554f62e9 | 33594 | |
50efceee | 33595 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
554f62e9 RD |
33596 | { |
33597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33598 | result = (wxPenList *)_wxPyInitThePenList(); |
554f62e9 RD |
33599 | wxPyEndAllowThreads(__tstate); |
33600 | if (PyErr_Occurred()) SWIG_fail; | |
33601 | } | |
50efceee | 33602 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
554f62e9 RD |
33603 | return resultobj; |
33604 | fail: | |
33605 | return NULL; | |
33606 | } | |
33607 | ||
33608 | ||
50efceee RD |
33609 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33610 | PyObject *resultobj = 0; | |
33611 | wxBrushList *result = 0 ; | |
554f62e9 | 33612 | |
50efceee RD |
33613 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
33614 | { | |
33615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33616 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
33617 | wxPyEndAllowThreads(__tstate); | |
33618 | if (PyErr_Occurred()) SWIG_fail; | |
33619 | } | |
33620 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33621 | return resultobj; | |
33622 | fail: | |
33623 | return NULL; | |
554f62e9 RD |
33624 | } |
33625 | ||
33626 | ||
50efceee RD |
33627 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33628 | PyObject *resultobj = 0; | |
33629 | wxColourDatabase *result = 0 ; | |
554f62e9 | 33630 | |
50efceee RD |
33631 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
33632 | { | |
33633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33634 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
33635 | wxPyEndAllowThreads(__tstate); | |
33636 | if (PyErr_Occurred()) SWIG_fail; | |
33637 | } | |
33638 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33639 | return resultobj; | |
33640 | fail: | |
33641 | return NULL; | |
554f62e9 RD |
33642 | } |
33643 | ||
33644 | ||
33645 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33646 | PyObject *resultobj = 0; | |
33647 | wxEffects *result = 0 ; | |
33648 | ||
33649 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
33650 | { | |
33651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33652 | result = (wxEffects *)new wxEffects(); | |
33653 | wxPyEndAllowThreads(__tstate); | |
33654 | if (PyErr_Occurred()) SWIG_fail; | |
33655 | } | |
33656 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
33657 | return resultobj; | |
33658 | fail: | |
33659 | return NULL; | |
33660 | } | |
33661 | ||
33662 | ||
33663 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33664 | PyObject *resultobj = 0; | |
33665 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33666 | wxColour result; | |
33667 | void *argp1 = 0 ; | |
33668 | int res1 = 0 ; | |
33669 | PyObject *swig_obj[1] ; | |
33670 | ||
33671 | if (!args) SWIG_fail; | |
33672 | swig_obj[0] = args; | |
33673 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33674 | if (!SWIG_IsOK(res1)) { | |
33675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33676 | } | |
33677 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33678 | { | |
33679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33680 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
33681 | wxPyEndAllowThreads(__tstate); | |
33682 | if (PyErr_Occurred()) SWIG_fail; | |
33683 | } | |
33684 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33685 | return resultobj; | |
33686 | fail: | |
33687 | return NULL; | |
33688 | } | |
33689 | ||
33690 | ||
33691 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33692 | PyObject *resultobj = 0; | |
33693 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33694 | wxColour result; | |
33695 | void *argp1 = 0 ; | |
33696 | int res1 = 0 ; | |
33697 | PyObject *swig_obj[1] ; | |
33698 | ||
33699 | if (!args) SWIG_fail; | |
33700 | swig_obj[0] = args; | |
33701 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33702 | if (!SWIG_IsOK(res1)) { | |
33703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33704 | } | |
33705 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33706 | { | |
33707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33708 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
33709 | wxPyEndAllowThreads(__tstate); | |
33710 | if (PyErr_Occurred()) SWIG_fail; | |
33711 | } | |
33712 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33713 | return resultobj; | |
33714 | fail: | |
33715 | return NULL; | |
33716 | } | |
33717 | ||
33718 | ||
33719 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33720 | PyObject *resultobj = 0; | |
33721 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33722 | wxColour result; | |
33723 | void *argp1 = 0 ; | |
33724 | int res1 = 0 ; | |
33725 | PyObject *swig_obj[1] ; | |
33726 | ||
33727 | if (!args) SWIG_fail; | |
33728 | swig_obj[0] = args; | |
33729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33730 | if (!SWIG_IsOK(res1)) { | |
33731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33732 | } | |
33733 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33734 | { | |
33735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33736 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
33737 | wxPyEndAllowThreads(__tstate); | |
33738 | if (PyErr_Occurred()) SWIG_fail; | |
33739 | } | |
33740 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33741 | return resultobj; | |
33742 | fail: | |
33743 | return NULL; | |
33744 | } | |
33745 | ||
33746 | ||
33747 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33748 | PyObject *resultobj = 0; | |
33749 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33750 | wxColour result; | |
33751 | void *argp1 = 0 ; | |
33752 | int res1 = 0 ; | |
33753 | PyObject *swig_obj[1] ; | |
33754 | ||
33755 | if (!args) SWIG_fail; | |
33756 | swig_obj[0] = args; | |
33757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33758 | if (!SWIG_IsOK(res1)) { | |
33759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33760 | } | |
33761 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33762 | { | |
33763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33764 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
33765 | wxPyEndAllowThreads(__tstate); | |
33766 | if (PyErr_Occurred()) SWIG_fail; | |
33767 | } | |
33768 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33769 | return resultobj; | |
33770 | fail: | |
33771 | return NULL; | |
33772 | } | |
33773 | ||
33774 | ||
33775 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33776 | PyObject *resultobj = 0; | |
33777 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33778 | wxColour result; | |
33779 | void *argp1 = 0 ; | |
33780 | int res1 = 0 ; | |
33781 | PyObject *swig_obj[1] ; | |
33782 | ||
33783 | if (!args) SWIG_fail; | |
33784 | swig_obj[0] = args; | |
33785 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33786 | if (!SWIG_IsOK(res1)) { | |
33787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33788 | } | |
33789 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33790 | { | |
33791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33792 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
33793 | wxPyEndAllowThreads(__tstate); | |
33794 | if (PyErr_Occurred()) SWIG_fail; | |
33795 | } | |
33796 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33797 | return resultobj; | |
33798 | fail: | |
33799 | return NULL; | |
33800 | } | |
33801 | ||
33802 | ||
33803 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33804 | PyObject *resultobj = 0; | |
33805 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33806 | wxColour *arg2 = 0 ; | |
33807 | void *argp1 = 0 ; | |
33808 | int res1 = 0 ; | |
33809 | wxColour temp2 ; | |
33810 | PyObject * obj0 = 0 ; | |
33811 | PyObject * obj1 = 0 ; | |
33812 | char * kwnames[] = { | |
33813 | (char *) "self",(char *) "c", NULL | |
33814 | }; | |
33815 | ||
33816 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33818 | if (!SWIG_IsOK(res1)) { | |
33819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33820 | } | |
33821 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33822 | { | |
33823 | arg2 = &temp2; | |
33824 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33825 | } | |
33826 | { | |
33827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33828 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
33829 | wxPyEndAllowThreads(__tstate); | |
33830 | if (PyErr_Occurred()) SWIG_fail; | |
33831 | } | |
33832 | resultobj = SWIG_Py_Void(); | |
33833 | return resultobj; | |
33834 | fail: | |
33835 | return NULL; | |
33836 | } | |
33837 | ||
33838 | ||
33839 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33840 | PyObject *resultobj = 0; | |
33841 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33842 | wxColour *arg2 = 0 ; | |
33843 | void *argp1 = 0 ; | |
33844 | int res1 = 0 ; | |
33845 | wxColour temp2 ; | |
33846 | PyObject * obj0 = 0 ; | |
33847 | PyObject * obj1 = 0 ; | |
33848 | char * kwnames[] = { | |
33849 | (char *) "self",(char *) "c", NULL | |
33850 | }; | |
33851 | ||
33852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33854 | if (!SWIG_IsOK(res1)) { | |
33855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33856 | } | |
33857 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33858 | { | |
33859 | arg2 = &temp2; | |
33860 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33861 | } | |
33862 | { | |
33863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33864 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
33865 | wxPyEndAllowThreads(__tstate); | |
33866 | if (PyErr_Occurred()) SWIG_fail; | |
33867 | } | |
33868 | resultobj = SWIG_Py_Void(); | |
33869 | return resultobj; | |
33870 | fail: | |
33871 | return NULL; | |
33872 | } | |
33873 | ||
33874 | ||
33875 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33876 | PyObject *resultobj = 0; | |
33877 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33878 | wxColour *arg2 = 0 ; | |
33879 | void *argp1 = 0 ; | |
33880 | int res1 = 0 ; | |
33881 | wxColour temp2 ; | |
33882 | PyObject * obj0 = 0 ; | |
33883 | PyObject * obj1 = 0 ; | |
33884 | char * kwnames[] = { | |
33885 | (char *) "self",(char *) "c", NULL | |
33886 | }; | |
33887 | ||
33888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33890 | if (!SWIG_IsOK(res1)) { | |
33891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33892 | } | |
33893 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33894 | { | |
33895 | arg2 = &temp2; | |
33896 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33897 | } | |
33898 | { | |
33899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33900 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
33901 | wxPyEndAllowThreads(__tstate); | |
33902 | if (PyErr_Occurred()) SWIG_fail; | |
33903 | } | |
33904 | resultobj = SWIG_Py_Void(); | |
33905 | return resultobj; | |
33906 | fail: | |
33907 | return NULL; | |
33908 | } | |
33909 | ||
33910 | ||
33911 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33912 | PyObject *resultobj = 0; | |
33913 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33914 | wxColour *arg2 = 0 ; | |
33915 | void *argp1 = 0 ; | |
33916 | int res1 = 0 ; | |
33917 | wxColour temp2 ; | |
33918 | PyObject * obj0 = 0 ; | |
33919 | PyObject * obj1 = 0 ; | |
33920 | char * kwnames[] = { | |
33921 | (char *) "self",(char *) "c", NULL | |
33922 | }; | |
33923 | ||
33924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33926 | if (!SWIG_IsOK(res1)) { | |
33927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33928 | } | |
33929 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33930 | { | |
33931 | arg2 = &temp2; | |
33932 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33933 | } | |
33934 | { | |
33935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33936 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
33937 | wxPyEndAllowThreads(__tstate); | |
33938 | if (PyErr_Occurred()) SWIG_fail; | |
33939 | } | |
33940 | resultobj = SWIG_Py_Void(); | |
33941 | return resultobj; | |
33942 | fail: | |
33943 | return NULL; | |
33944 | } | |
33945 | ||
33946 | ||
33947 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33948 | PyObject *resultobj = 0; | |
33949 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33950 | wxColour *arg2 = 0 ; | |
33951 | void *argp1 = 0 ; | |
33952 | int res1 = 0 ; | |
33953 | wxColour temp2 ; | |
33954 | PyObject * obj0 = 0 ; | |
33955 | PyObject * obj1 = 0 ; | |
33956 | char * kwnames[] = { | |
33957 | (char *) "self",(char *) "c", NULL | |
33958 | }; | |
33959 | ||
33960 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33962 | if (!SWIG_IsOK(res1)) { | |
33963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33964 | } | |
33965 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33966 | { | |
33967 | arg2 = &temp2; | |
33968 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33969 | } | |
33970 | { | |
33971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33972 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
33973 | wxPyEndAllowThreads(__tstate); | |
33974 | if (PyErr_Occurred()) SWIG_fail; | |
33975 | } | |
33976 | resultobj = SWIG_Py_Void(); | |
33977 | return resultobj; | |
33978 | fail: | |
33979 | return NULL; | |
33980 | } | |
33981 | ||
33982 | ||
33983 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33984 | PyObject *resultobj = 0; | |
33985 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33986 | wxColour *arg2 = 0 ; | |
33987 | wxColour *arg3 = 0 ; | |
33988 | wxColour *arg4 = 0 ; | |
33989 | wxColour *arg5 = 0 ; | |
33990 | wxColour *arg6 = 0 ; | |
33991 | void *argp1 = 0 ; | |
33992 | int res1 = 0 ; | |
33993 | wxColour temp2 ; | |
33994 | wxColour temp3 ; | |
33995 | wxColour temp4 ; | |
33996 | wxColour temp5 ; | |
33997 | wxColour temp6 ; | |
33998 | PyObject * obj0 = 0 ; | |
33999 | PyObject * obj1 = 0 ; | |
34000 | PyObject * obj2 = 0 ; | |
34001 | PyObject * obj3 = 0 ; | |
34002 | PyObject * obj4 = 0 ; | |
34003 | PyObject * obj5 = 0 ; | |
34004 | char * kwnames[] = { | |
34005 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
34006 | }; | |
34007 | ||
34008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
34009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34010 | if (!SWIG_IsOK(res1)) { | |
34011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34012 | } | |
34013 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34014 | { | |
34015 | arg2 = &temp2; | |
34016 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34017 | } | |
34018 | { | |
34019 | arg3 = &temp3; | |
34020 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
34021 | } | |
34022 | { | |
34023 | arg4 = &temp4; | |
34024 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
34025 | } | |
34026 | { | |
34027 | arg5 = &temp5; | |
34028 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
34029 | } | |
34030 | { | |
34031 | arg6 = &temp6; | |
34032 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
34033 | } | |
34034 | { | |
34035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34036 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
34037 | wxPyEndAllowThreads(__tstate); | |
34038 | if (PyErr_Occurred()) SWIG_fail; | |
34039 | } | |
34040 | resultobj = SWIG_Py_Void(); | |
34041 | return resultobj; | |
34042 | fail: | |
34043 | return NULL; | |
34044 | } | |
34045 | ||
34046 | ||
34047 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34048 | PyObject *resultobj = 0; | |
34049 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34050 | wxDC *arg2 = 0 ; | |
34051 | wxRect *arg3 = 0 ; | |
34052 | int arg4 = (int) 1 ; | |
34053 | void *argp1 = 0 ; | |
34054 | int res1 = 0 ; | |
34055 | void *argp2 = 0 ; | |
34056 | int res2 = 0 ; | |
34057 | wxRect temp3 ; | |
34058 | int val4 ; | |
34059 | int ecode4 = 0 ; | |
34060 | PyObject * obj0 = 0 ; | |
34061 | PyObject * obj1 = 0 ; | |
34062 | PyObject * obj2 = 0 ; | |
34063 | PyObject * obj3 = 0 ; | |
34064 | char * kwnames[] = { | |
34065 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
34066 | }; | |
34067 | ||
34068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34070 | if (!SWIG_IsOK(res1)) { | |
34071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34072 | } | |
34073 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34074 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
34075 | if (!SWIG_IsOK(res2)) { | |
34076 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
34077 | } | |
34078 | if (!argp2) { | |
34079 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
34080 | } | |
34081 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
34082 | { | |
34083 | arg3 = &temp3; | |
34084 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
34085 | } | |
34086 | if (obj3) { | |
34087 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34088 | if (!SWIG_IsOK(ecode4)) { | |
34089 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
34090 | } | |
34091 | arg4 = static_cast< int >(val4); | |
34092 | } | |
34093 | { | |
34094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34095 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
34096 | wxPyEndAllowThreads(__tstate); | |
34097 | if (PyErr_Occurred()) SWIG_fail; | |
34098 | } | |
34099 | resultobj = SWIG_Py_Void(); | |
34100 | return resultobj; | |
34101 | fail: | |
34102 | return NULL; | |
34103 | } | |
34104 | ||
34105 | ||
34106 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34107 | PyObject *resultobj = 0; | |
34108 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34109 | wxRect *arg2 = 0 ; | |
34110 | wxDC *arg3 = 0 ; | |
34111 | wxBitmap *arg4 = 0 ; | |
34112 | bool result; | |
34113 | void *argp1 = 0 ; | |
34114 | int res1 = 0 ; | |
34115 | wxRect temp2 ; | |
34116 | void *argp3 = 0 ; | |
34117 | int res3 = 0 ; | |
34118 | void *argp4 = 0 ; | |
34119 | int res4 = 0 ; | |
34120 | PyObject * obj0 = 0 ; | |
34121 | PyObject * obj1 = 0 ; | |
34122 | PyObject * obj2 = 0 ; | |
34123 | PyObject * obj3 = 0 ; | |
34124 | char * kwnames[] = { | |
34125 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
34126 | }; | |
34127 | ||
34128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34130 | if (!SWIG_IsOK(res1)) { | |
34131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34132 | } | |
34133 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34134 | { | |
34135 | arg2 = &temp2; | |
34136 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
34137 | } | |
34138 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34139 | if (!SWIG_IsOK(res3)) { | |
34140 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34141 | } | |
34142 | if (!argp3) { | |
34143 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34144 | } | |
34145 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34146 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
34147 | if (!SWIG_IsOK(res4)) { | |
34148 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
34149 | } | |
34150 | if (!argp4) { | |
34151 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
34152 | } | |
34153 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
34154 | { | |
34155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34156 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
34157 | wxPyEndAllowThreads(__tstate); | |
34158 | if (PyErr_Occurred()) SWIG_fail; | |
34159 | } | |
34160 | { | |
34161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34162 | } | |
34163 | return resultobj; | |
34164 | fail: | |
34165 | return NULL; | |
34166 | } | |
34167 | ||
34168 | ||
34169 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34170 | PyObject *obj; | |
34171 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34172 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
34173 | return SWIG_Py_Void(); | |
34174 | } | |
34175 | ||
34176 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34177 | return SWIG_Python_InitShadowInstance(args); | |
34178 | } | |
34179 | ||
34180 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34181 | PyObject *resultobj = 0; | |
34182 | int arg1 ; | |
34183 | int arg2 ; | |
34184 | bool arg3 ; | |
34185 | wxSplitterRenderParams *result = 0 ; | |
34186 | int val1 ; | |
34187 | int ecode1 = 0 ; | |
34188 | int val2 ; | |
34189 | int ecode2 = 0 ; | |
34190 | bool val3 ; | |
34191 | int ecode3 = 0 ; | |
34192 | PyObject * obj0 = 0 ; | |
34193 | PyObject * obj1 = 0 ; | |
34194 | PyObject * obj2 = 0 ; | |
34195 | char * kwnames[] = { | |
34196 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
34197 | }; | |
34198 | ||
34199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34200 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34201 | if (!SWIG_IsOK(ecode1)) { | |
34202 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
34203 | } | |
34204 | arg1 = static_cast< int >(val1); | |
34205 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34206 | if (!SWIG_IsOK(ecode2)) { | |
34207 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
34208 | } | |
34209 | arg2 = static_cast< int >(val2); | |
34210 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34211 | if (!SWIG_IsOK(ecode3)) { | |
34212 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
34213 | } | |
34214 | arg3 = static_cast< bool >(val3); | |
34215 | { | |
34216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34217 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
34218 | wxPyEndAllowThreads(__tstate); | |
34219 | if (PyErr_Occurred()) SWIG_fail; | |
34220 | } | |
34221 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
34222 | return resultobj; | |
34223 | fail: | |
34224 | return NULL; | |
34225 | } | |
34226 | ||
34227 | ||
34228 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34229 | PyObject *resultobj = 0; | |
34230 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34231 | void *argp1 = 0 ; | |
34232 | int res1 = 0 ; | |
34233 | PyObject *swig_obj[1] ; | |
34234 | ||
34235 | if (!args) SWIG_fail; | |
34236 | swig_obj[0] = args; | |
34237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
34238 | if (!SWIG_IsOK(res1)) { | |
34239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34240 | } | |
34241 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34242 | { | |
34243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34244 | delete arg1; | |
34245 | ||
34246 | wxPyEndAllowThreads(__tstate); | |
34247 | if (PyErr_Occurred()) SWIG_fail; | |
34248 | } | |
34249 | resultobj = SWIG_Py_Void(); | |
34250 | return resultobj; | |
34251 | fail: | |
34252 | return NULL; | |
34253 | } | |
34254 | ||
34255 | ||
34256 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34257 | PyObject *resultobj = 0; | |
34258 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34259 | int result; | |
34260 | void *argp1 = 0 ; | |
34261 | int res1 = 0 ; | |
34262 | PyObject *swig_obj[1] ; | |
34263 | ||
34264 | if (!args) SWIG_fail; | |
34265 | swig_obj[0] = args; | |
34266 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34267 | if (!SWIG_IsOK(res1)) { | |
34268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34269 | } | |
34270 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34271 | result = (int)(int) ((arg1)->widthSash); | |
34272 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34273 | return resultobj; | |
34274 | fail: | |
34275 | return NULL; | |
34276 | } | |
34277 | ||
34278 | ||
34279 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34280 | PyObject *resultobj = 0; | |
34281 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34282 | int result; | |
34283 | void *argp1 = 0 ; | |
34284 | int res1 = 0 ; | |
34285 | PyObject *swig_obj[1] ; | |
34286 | ||
34287 | if (!args) SWIG_fail; | |
34288 | swig_obj[0] = args; | |
34289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34290 | if (!SWIG_IsOK(res1)) { | |
34291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34292 | } | |
34293 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34294 | result = (int)(int) ((arg1)->border); | |
34295 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34296 | return resultobj; | |
34297 | fail: | |
34298 | return NULL; | |
34299 | } | |
34300 | ||
34301 | ||
34302 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34303 | PyObject *resultobj = 0; | |
34304 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34305 | bool result; | |
34306 | void *argp1 = 0 ; | |
34307 | int res1 = 0 ; | |
34308 | PyObject *swig_obj[1] ; | |
34309 | ||
34310 | if (!args) SWIG_fail; | |
34311 | swig_obj[0] = args; | |
34312 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34313 | if (!SWIG_IsOK(res1)) { | |
34314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34315 | } | |
34316 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34317 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
34318 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
34319 | return resultobj; | |
34320 | fail: | |
34321 | return NULL; | |
34322 | } | |
34323 | ||
34324 | ||
34325 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34326 | PyObject *obj; | |
34327 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34328 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
34329 | return SWIG_Py_Void(); | |
34330 | } | |
34331 | ||
34332 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34333 | return SWIG_Python_InitShadowInstance(args); | |
34334 | } | |
34335 | ||
33d6fd3b RD |
34336 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34337 | PyObject *resultobj = 0; | |
34338 | wxHeaderButtonParams *result = 0 ; | |
34339 | ||
34340 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
34341 | { | |
34342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34343 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
34344 | wxPyEndAllowThreads(__tstate); | |
34345 | if (PyErr_Occurred()) SWIG_fail; | |
34346 | } | |
34347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
34348 | return resultobj; | |
34349 | fail: | |
34350 | return NULL; | |
34351 | } | |
34352 | ||
34353 | ||
34354 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34355 | PyObject *resultobj = 0; | |
34356 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34357 | void *argp1 = 0 ; | |
34358 | int res1 = 0 ; | |
34359 | PyObject *swig_obj[1] ; | |
34360 | ||
34361 | if (!args) SWIG_fail; | |
34362 | swig_obj[0] = args; | |
34363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
34364 | if (!SWIG_IsOK(res1)) { | |
34365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34366 | } | |
34367 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34368 | { | |
34369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34370 | delete arg1; | |
34371 | ||
34372 | wxPyEndAllowThreads(__tstate); | |
34373 | if (PyErr_Occurred()) SWIG_fail; | |
34374 | } | |
34375 | resultobj = SWIG_Py_Void(); | |
34376 | return resultobj; | |
34377 | fail: | |
34378 | return NULL; | |
34379 | } | |
34380 | ||
34381 | ||
34382 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34383 | PyObject *resultobj = 0; | |
34384 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34385 | wxColour *arg2 = (wxColour *) 0 ; | |
34386 | void *argp1 = 0 ; | |
34387 | int res1 = 0 ; | |
34388 | wxColour temp2 ; | |
34389 | PyObject *swig_obj[2] ; | |
34390 | ||
34391 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
34392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34393 | if (!SWIG_IsOK(res1)) { | |
34394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34395 | } | |
34396 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34397 | { | |
34398 | arg2 = &temp2; | |
34399 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34400 | } | |
34401 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
34402 | ||
34403 | resultobj = SWIG_Py_Void(); | |
34404 | return resultobj; | |
34405 | fail: | |
34406 | return NULL; | |
34407 | } | |
34408 | ||
34409 | ||
34410 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34411 | PyObject *resultobj = 0; | |
34412 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34413 | wxColour *result = 0 ; | |
34414 | void *argp1 = 0 ; | |
34415 | int res1 = 0 ; | |
34416 | PyObject *swig_obj[1] ; | |
34417 | ||
34418 | if (!args) SWIG_fail; | |
34419 | swig_obj[0] = args; | |
34420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34421 | if (!SWIG_IsOK(res1)) { | |
34422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34423 | } | |
34424 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34425 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
34426 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34427 | return resultobj; | |
34428 | fail: | |
34429 | return NULL; | |
34430 | } | |
34431 | ||
34432 | ||
34433 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34434 | PyObject *resultobj = 0; | |
34435 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34436 | wxColour *arg2 = (wxColour *) 0 ; | |
34437 | void *argp1 = 0 ; | |
34438 | int res1 = 0 ; | |
34439 | wxColour temp2 ; | |
34440 | PyObject *swig_obj[2] ; | |
34441 | ||
34442 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
34443 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34444 | if (!SWIG_IsOK(res1)) { | |
34445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34446 | } | |
34447 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34448 | { | |
34449 | arg2 = &temp2; | |
34450 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34451 | } | |
34452 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
34453 | ||
34454 | resultobj = SWIG_Py_Void(); | |
34455 | return resultobj; | |
34456 | fail: | |
34457 | return NULL; | |
34458 | } | |
34459 | ||
34460 | ||
34461 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34462 | PyObject *resultobj = 0; | |
34463 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34464 | wxColour *result = 0 ; | |
34465 | void *argp1 = 0 ; | |
34466 | int res1 = 0 ; | |
34467 | PyObject *swig_obj[1] ; | |
34468 | ||
34469 | if (!args) SWIG_fail; | |
34470 | swig_obj[0] = args; | |
34471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34472 | if (!SWIG_IsOK(res1)) { | |
34473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34474 | } | |
34475 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34476 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
34477 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34478 | return resultobj; | |
34479 | fail: | |
34480 | return NULL; | |
34481 | } | |
34482 | ||
34483 | ||
34484 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34485 | PyObject *resultobj = 0; | |
34486 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34487 | wxString *arg2 = (wxString *) 0 ; | |
34488 | void *argp1 = 0 ; | |
34489 | int res1 = 0 ; | |
34490 | bool temp2 = false ; | |
34491 | PyObject *swig_obj[2] ; | |
34492 | ||
34493 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
34494 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34495 | if (!SWIG_IsOK(res1)) { | |
34496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34497 | } | |
34498 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34499 | { | |
34500 | arg2 = wxString_in_helper(swig_obj[1]); | |
34501 | if (arg2 == NULL) SWIG_fail; | |
34502 | temp2 = true; | |
34503 | } | |
34504 | if (arg1) (arg1)->m_labelText = *arg2; | |
34505 | ||
34506 | resultobj = SWIG_Py_Void(); | |
34507 | { | |
34508 | if (temp2) | |
34509 | delete arg2; | |
34510 | } | |
34511 | return resultobj; | |
34512 | fail: | |
34513 | { | |
34514 | if (temp2) | |
34515 | delete arg2; | |
34516 | } | |
34517 | return NULL; | |
34518 | } | |
34519 | ||
34520 | ||
34521 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34522 | PyObject *resultobj = 0; | |
34523 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34524 | wxString *result = 0 ; | |
34525 | void *argp1 = 0 ; | |
34526 | int res1 = 0 ; | |
34527 | PyObject *swig_obj[1] ; | |
34528 | ||
34529 | if (!args) SWIG_fail; | |
34530 | swig_obj[0] = args; | |
34531 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34532 | if (!SWIG_IsOK(res1)) { | |
34533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34534 | } | |
34535 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34536 | result = (wxString *)& ((arg1)->m_labelText); | |
34537 | { | |
34538 | #if wxUSE_UNICODE | |
34539 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
34540 | #else | |
34541 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
34542 | #endif | |
34543 | } | |
34544 | return resultobj; | |
34545 | fail: | |
34546 | return NULL; | |
34547 | } | |
34548 | ||
34549 | ||
34550 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34551 | PyObject *resultobj = 0; | |
34552 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34553 | wxFont *arg2 = (wxFont *) 0 ; | |
34554 | void *argp1 = 0 ; | |
34555 | int res1 = 0 ; | |
34556 | void *argp2 = 0 ; | |
34557 | int res2 = 0 ; | |
34558 | PyObject *swig_obj[2] ; | |
34559 | ||
34560 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
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_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34564 | } | |
34565 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34566 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
34567 | if (!SWIG_IsOK(res2)) { | |
34568 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
34569 | } | |
34570 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
34571 | if (arg1) (arg1)->m_labelFont = *arg2; | |
34572 | ||
34573 | resultobj = SWIG_Py_Void(); | |
34574 | return resultobj; | |
34575 | fail: | |
34576 | return NULL; | |
34577 | } | |
34578 | ||
34579 | ||
34580 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34581 | PyObject *resultobj = 0; | |
34582 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34583 | wxFont *result = 0 ; | |
34584 | void *argp1 = 0 ; | |
34585 | int res1 = 0 ; | |
34586 | PyObject *swig_obj[1] ; | |
34587 | ||
34588 | if (!args) SWIG_fail; | |
34589 | swig_obj[0] = args; | |
34590 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34591 | if (!SWIG_IsOK(res1)) { | |
34592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34593 | } | |
34594 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34595 | result = (wxFont *)& ((arg1)->m_labelFont); | |
34596 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
34597 | return resultobj; | |
34598 | fail: | |
34599 | return NULL; | |
34600 | } | |
34601 | ||
34602 | ||
34603 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34604 | PyObject *resultobj = 0; | |
34605 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34606 | wxColour *arg2 = (wxColour *) 0 ; | |
34607 | void *argp1 = 0 ; | |
34608 | int res1 = 0 ; | |
34609 | wxColour temp2 ; | |
34610 | PyObject *swig_obj[2] ; | |
34611 | ||
34612 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
34613 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34614 | if (!SWIG_IsOK(res1)) { | |
34615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34616 | } | |
34617 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34618 | { | |
34619 | arg2 = &temp2; | |
34620 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34621 | } | |
34622 | if (arg1) (arg1)->m_labelColour = *arg2; | |
34623 | ||
34624 | resultobj = SWIG_Py_Void(); | |
34625 | return resultobj; | |
34626 | fail: | |
34627 | return NULL; | |
34628 | } | |
34629 | ||
34630 | ||
34631 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34632 | PyObject *resultobj = 0; | |
34633 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34634 | wxColour *result = 0 ; | |
34635 | void *argp1 = 0 ; | |
34636 | int res1 = 0 ; | |
34637 | PyObject *swig_obj[1] ; | |
34638 | ||
34639 | if (!args) SWIG_fail; | |
34640 | swig_obj[0] = args; | |
34641 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34642 | if (!SWIG_IsOK(res1)) { | |
34643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34644 | } | |
34645 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34646 | result = (wxColour *)& ((arg1)->m_labelColour); | |
34647 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34648 | return resultobj; | |
34649 | fail: | |
34650 | return NULL; | |
34651 | } | |
34652 | ||
34653 | ||
34654 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34655 | PyObject *resultobj = 0; | |
34656 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34657 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
34658 | void *argp1 = 0 ; | |
34659 | int res1 = 0 ; | |
34660 | void *argp2 = 0 ; | |
34661 | int res2 = 0 ; | |
34662 | PyObject *swig_obj[2] ; | |
34663 | ||
34664 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
34665 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34666 | if (!SWIG_IsOK(res1)) { | |
34667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34668 | } | |
34669 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34670 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34671 | if (!SWIG_IsOK(res2)) { | |
34672 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
34673 | } | |
34674 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
34675 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
34676 | ||
34677 | resultobj = SWIG_Py_Void(); | |
34678 | return resultobj; | |
34679 | fail: | |
34680 | return NULL; | |
34681 | } | |
34682 | ||
34683 | ||
34684 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34685 | PyObject *resultobj = 0; | |
34686 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34687 | wxBitmap *result = 0 ; | |
34688 | void *argp1 = 0 ; | |
34689 | int res1 = 0 ; | |
34690 | PyObject *swig_obj[1] ; | |
34691 | ||
34692 | if (!args) SWIG_fail; | |
34693 | swig_obj[0] = args; | |
34694 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34695 | if (!SWIG_IsOK(res1)) { | |
34696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34697 | } | |
34698 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34699 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
34700 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34701 | return resultobj; | |
34702 | fail: | |
34703 | return NULL; | |
34704 | } | |
34705 | ||
34706 | ||
34707 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34708 | PyObject *resultobj = 0; | |
34709 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34710 | int arg2 ; | |
34711 | void *argp1 = 0 ; | |
34712 | int res1 = 0 ; | |
34713 | int val2 ; | |
34714 | int ecode2 = 0 ; | |
34715 | PyObject *swig_obj[2] ; | |
34716 | ||
34717 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
34718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34719 | if (!SWIG_IsOK(res1)) { | |
34720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34721 | } | |
34722 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34723 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
34724 | if (!SWIG_IsOK(ecode2)) { | |
34725 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
34726 | } | |
34727 | arg2 = static_cast< int >(val2); | |
34728 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
34729 | ||
34730 | resultobj = SWIG_Py_Void(); | |
34731 | return resultobj; | |
34732 | fail: | |
34733 | return NULL; | |
34734 | } | |
34735 | ||
34736 | ||
34737 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34738 | PyObject *resultobj = 0; | |
34739 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34740 | int result; | |
34741 | void *argp1 = 0 ; | |
34742 | int res1 = 0 ; | |
34743 | PyObject *swig_obj[1] ; | |
34744 | ||
34745 | if (!args) SWIG_fail; | |
34746 | swig_obj[0] = args; | |
34747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34748 | if (!SWIG_IsOK(res1)) { | |
34749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34750 | } | |
34751 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34752 | result = (int) ((arg1)->m_labelAlignment); | |
34753 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34754 | return resultobj; | |
34755 | fail: | |
34756 | return NULL; | |
34757 | } | |
34758 | ||
34759 | ||
34760 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34761 | PyObject *obj; | |
34762 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34763 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
34764 | return SWIG_Py_Void(); | |
34765 | } | |
34766 | ||
34767 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34768 | return SWIG_Python_InitShadowInstance(args); | |
34769 | } | |
34770 | ||
554f62e9 RD |
34771 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34772 | PyObject *resultobj = 0; | |
34773 | int arg1 ; | |
34774 | int arg2 ; | |
34775 | wxRendererVersion *result = 0 ; | |
34776 | int val1 ; | |
34777 | int ecode1 = 0 ; | |
34778 | int val2 ; | |
34779 | int ecode2 = 0 ; | |
34780 | PyObject * obj0 = 0 ; | |
34781 | PyObject * obj1 = 0 ; | |
34782 | char * kwnames[] = { | |
34783 | (char *) "version_",(char *) "age_", NULL | |
34784 | }; | |
34785 | ||
34786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
34787 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34788 | if (!SWIG_IsOK(ecode1)) { | |
34789 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
34790 | } | |
34791 | arg1 = static_cast< int >(val1); | |
34792 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34793 | if (!SWIG_IsOK(ecode2)) { | |
34794 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
34795 | } | |
34796 | arg2 = static_cast< int >(val2); | |
34797 | { | |
34798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34799 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
34800 | wxPyEndAllowThreads(__tstate); | |
34801 | if (PyErr_Occurred()) SWIG_fail; | |
34802 | } | |
34803 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
34804 | return resultobj; | |
34805 | fail: | |
34806 | return NULL; | |
34807 | } | |
34808 | ||
34809 | ||
34810 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34811 | PyObject *resultobj = 0; | |
34812 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34813 | void *argp1 = 0 ; | |
34814 | int res1 = 0 ; | |
34815 | PyObject *swig_obj[1] ; | |
34816 | ||
34817 | if (!args) SWIG_fail; | |
34818 | swig_obj[0] = args; | |
34819 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
34820 | if (!SWIG_IsOK(res1)) { | |
34821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34822 | } | |
34823 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34824 | { | |
34825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34826 | delete arg1; | |
34827 | ||
34828 | wxPyEndAllowThreads(__tstate); | |
34829 | if (PyErr_Occurred()) SWIG_fail; | |
34830 | } | |
34831 | resultobj = SWIG_Py_Void(); | |
34832 | return resultobj; | |
34833 | fail: | |
34834 | return NULL; | |
34835 | } | |
34836 | ||
34837 | ||
34838 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34839 | PyObject *resultobj = 0; | |
34840 | wxRendererVersion *arg1 = 0 ; | |
34841 | bool result; | |
34842 | void *argp1 = 0 ; | |
34843 | int res1 = 0 ; | |
34844 | PyObject * obj0 = 0 ; | |
34845 | char * kwnames[] = { | |
34846 | (char *) "ver", NULL | |
34847 | }; | |
34848 | ||
34849 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
34850 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
34851 | if (!SWIG_IsOK(res1)) { | |
34852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34853 | } | |
34854 | if (!argp1) { | |
34855 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34856 | } | |
34857 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34858 | { | |
34859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34860 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
34861 | wxPyEndAllowThreads(__tstate); | |
34862 | if (PyErr_Occurred()) SWIG_fail; | |
34863 | } | |
34864 | { | |
34865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34866 | } | |
34867 | return resultobj; | |
34868 | fail: | |
34869 | return NULL; | |
34870 | } | |
34871 | ||
34872 | ||
34873 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34874 | PyObject *resultobj = 0; | |
34875 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34876 | int result; | |
34877 | void *argp1 = 0 ; | |
34878 | int res1 = 0 ; | |
34879 | PyObject *swig_obj[1] ; | |
34880 | ||
34881 | if (!args) SWIG_fail; | |
34882 | swig_obj[0] = args; | |
34883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34884 | if (!SWIG_IsOK(res1)) { | |
34885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34886 | } | |
34887 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34888 | result = (int)(int) ((arg1)->version); | |
34889 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34890 | return resultobj; | |
34891 | fail: | |
34892 | return NULL; | |
34893 | } | |
34894 | ||
34895 | ||
34896 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34897 | PyObject *resultobj = 0; | |
34898 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34899 | int result; | |
34900 | void *argp1 = 0 ; | |
34901 | int res1 = 0 ; | |
34902 | PyObject *swig_obj[1] ; | |
34903 | ||
34904 | if (!args) SWIG_fail; | |
34905 | swig_obj[0] = args; | |
34906 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34907 | if (!SWIG_IsOK(res1)) { | |
34908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34909 | } | |
34910 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34911 | result = (int)(int) ((arg1)->age); | |
34912 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34913 | return resultobj; | |
34914 | fail: | |
34915 | return NULL; | |
34916 | } | |
34917 | ||
34918 | ||
34919 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34920 | PyObject *obj; | |
34921 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34922 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
34923 | return SWIG_Py_Void(); | |
34924 | } | |
34925 | ||
34926 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34927 | return SWIG_Python_InitShadowInstance(args); | |
34928 | } | |
34929 | ||
34930 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34931 | PyObject *resultobj = 0; | |
34932 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34933 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34934 | wxDC *arg3 = 0 ; | |
34935 | wxRect *arg4 = 0 ; | |
34936 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
34937 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
34938 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
554f62e9 RD |
34939 | void *argp1 = 0 ; |
34940 | int res1 = 0 ; | |
34941 | void *argp2 = 0 ; | |
34942 | int res2 = 0 ; | |
34943 | void *argp3 = 0 ; | |
34944 | int res3 = 0 ; | |
34945 | wxRect temp4 ; | |
34946 | int val5 ; | |
34947 | int ecode5 = 0 ; | |
33d6fd3b RD |
34948 | int val6 ; |
34949 | int ecode6 = 0 ; | |
34950 | void *argp7 = 0 ; | |
34951 | int res7 = 0 ; | |
554f62e9 RD |
34952 | PyObject * obj0 = 0 ; |
34953 | PyObject * obj1 = 0 ; | |
34954 | PyObject * obj2 = 0 ; | |
34955 | PyObject * obj3 = 0 ; | |
34956 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
34957 | PyObject * obj5 = 0 ; |
34958 | PyObject * obj6 = 0 ; | |
554f62e9 | 34959 | char * kwnames[] = { |
33d6fd3b | 34960 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
554f62e9 RD |
34961 | }; |
34962 | ||
33d6fd3b | 34963 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
554f62e9 RD |
34964 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34965 | if (!SWIG_IsOK(res1)) { | |
34966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34967 | } | |
34968 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34969 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34970 | if (!SWIG_IsOK(res2)) { | |
34971 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34972 | } | |
34973 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34974 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34975 | if (!SWIG_IsOK(res3)) { | |
34976 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34977 | } | |
34978 | if (!argp3) { | |
34979 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34980 | } | |
34981 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34982 | { | |
34983 | arg4 = &temp4; | |
34984 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34985 | } | |
34986 | if (obj4) { | |
34987 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34988 | if (!SWIG_IsOK(ecode5)) { | |
34989 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
34990 | } | |
34991 | arg5 = static_cast< int >(val5); | |
34992 | } | |
33d6fd3b RD |
34993 | if (obj5) { |
34994 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34995 | if (!SWIG_IsOK(ecode6)) { | |
34996 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34997 | } | |
34998 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34999 | } | |
35000 | if (obj6) { | |
35001 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
35002 | if (!SWIG_IsOK(res7)) { | |
35003 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
35004 | } | |
35005 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
35006 | } | |
35007 | { | |
35008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35009 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
35010 | wxPyEndAllowThreads(__tstate); | |
35011 | if (PyErr_Occurred()) SWIG_fail; | |
35012 | } | |
35013 | resultobj = SWIG_Py_Void(); | |
35014 | return resultobj; | |
35015 | fail: | |
35016 | return NULL; | |
35017 | } | |
35018 | ||
35019 | ||
35020 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35021 | PyObject *resultobj = 0; | |
35022 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35023 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35024 | wxDC *arg3 = 0 ; | |
35025 | wxRect *arg4 = 0 ; | |
35026 | int arg5 = (int) 0 ; | |
35027 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
35028 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
35029 | void *argp1 = 0 ; | |
35030 | int res1 = 0 ; | |
35031 | void *argp2 = 0 ; | |
35032 | int res2 = 0 ; | |
35033 | void *argp3 = 0 ; | |
35034 | int res3 = 0 ; | |
35035 | wxRect temp4 ; | |
35036 | int val5 ; | |
35037 | int ecode5 = 0 ; | |
35038 | int val6 ; | |
35039 | int ecode6 = 0 ; | |
35040 | void *argp7 = 0 ; | |
35041 | int res7 = 0 ; | |
35042 | PyObject * obj0 = 0 ; | |
35043 | PyObject * obj1 = 0 ; | |
35044 | PyObject * obj2 = 0 ; | |
35045 | PyObject * obj3 = 0 ; | |
35046 | PyObject * obj4 = 0 ; | |
35047 | PyObject * obj5 = 0 ; | |
35048 | PyObject * obj6 = 0 ; | |
35049 | char * kwnames[] = { | |
35050 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
35051 | }; | |
35052 | ||
35053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35055 | if (!SWIG_IsOK(res1)) { | |
35056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35057 | } | |
35058 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35059 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35060 | if (!SWIG_IsOK(res2)) { | |
35061 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35062 | } | |
35063 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35064 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35065 | if (!SWIG_IsOK(res3)) { | |
35066 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35067 | } | |
35068 | if (!argp3) { | |
35069 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35070 | } | |
35071 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35072 | { | |
35073 | arg4 = &temp4; | |
35074 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35075 | } | |
35076 | if (obj4) { | |
35077 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35078 | if (!SWIG_IsOK(ecode5)) { | |
35079 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
35080 | } | |
35081 | arg5 = static_cast< int >(val5); | |
35082 | } | |
35083 | if (obj5) { | |
35084 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35085 | if (!SWIG_IsOK(ecode6)) { | |
35086 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
35087 | } | |
35088 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
35089 | } | |
35090 | if (obj6) { | |
35091 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
35092 | if (!SWIG_IsOK(res7)) { | |
35093 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
35094 | } | |
35095 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
35096 | } | |
554f62e9 RD |
35097 | { |
35098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 35099 | (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
554f62e9 RD |
35100 | wxPyEndAllowThreads(__tstate); |
35101 | if (PyErr_Occurred()) SWIG_fail; | |
35102 | } | |
35103 | resultobj = SWIG_Py_Void(); | |
35104 | return resultobj; | |
35105 | fail: | |
35106 | return NULL; | |
35107 | } | |
35108 | ||
35109 | ||
33d6fd3b RD |
35110 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35111 | PyObject *resultobj = 0; | |
35112 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35113 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35114 | int result; | |
35115 | void *argp1 = 0 ; | |
35116 | int res1 = 0 ; | |
35117 | void *argp2 = 0 ; | |
35118 | int res2 = 0 ; | |
35119 | PyObject * obj0 = 0 ; | |
35120 | PyObject * obj1 = 0 ; | |
35121 | char * kwnames[] = { | |
35122 | (char *) "self",(char *) "win", NULL | |
35123 | }; | |
35124 | ||
35125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
35126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35127 | if (!SWIG_IsOK(res1)) { | |
35128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35129 | } | |
35130 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35131 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35132 | if (!SWIG_IsOK(res2)) { | |
35133 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35134 | } | |
35135 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35136 | { | |
35137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35138 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
35139 | wxPyEndAllowThreads(__tstate); | |
35140 | if (PyErr_Occurred()) SWIG_fail; | |
35141 | } | |
35142 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35143 | return resultobj; | |
35144 | fail: | |
35145 | return NULL; | |
35146 | } | |
35147 | ||
35148 | ||
554f62e9 RD |
35149 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35150 | PyObject *resultobj = 0; | |
35151 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35152 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35153 | wxDC *arg3 = 0 ; | |
35154 | wxRect *arg4 = 0 ; | |
35155 | int arg5 = (int) 0 ; | |
35156 | void *argp1 = 0 ; | |
35157 | int res1 = 0 ; | |
35158 | void *argp2 = 0 ; | |
35159 | int res2 = 0 ; | |
35160 | void *argp3 = 0 ; | |
35161 | int res3 = 0 ; | |
35162 | wxRect temp4 ; | |
35163 | int val5 ; | |
35164 | int ecode5 = 0 ; | |
35165 | PyObject * obj0 = 0 ; | |
35166 | PyObject * obj1 = 0 ; | |
35167 | PyObject * obj2 = 0 ; | |
35168 | PyObject * obj3 = 0 ; | |
35169 | PyObject * obj4 = 0 ; | |
35170 | char * kwnames[] = { | |
35171 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35172 | }; | |
35173 | ||
35174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35176 | if (!SWIG_IsOK(res1)) { | |
35177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35178 | } | |
35179 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35180 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35181 | if (!SWIG_IsOK(res2)) { | |
35182 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35183 | } | |
35184 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35185 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35186 | if (!SWIG_IsOK(res3)) { | |
35187 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35188 | } | |
35189 | if (!argp3) { | |
35190 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35191 | } | |
35192 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35193 | { | |
35194 | arg4 = &temp4; | |
35195 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35196 | } | |
35197 | if (obj4) { | |
35198 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35199 | if (!SWIG_IsOK(ecode5)) { | |
35200 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
35201 | } | |
35202 | arg5 = static_cast< int >(val5); | |
35203 | } | |
35204 | { | |
35205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35206 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35207 | wxPyEndAllowThreads(__tstate); | |
35208 | if (PyErr_Occurred()) SWIG_fail; | |
35209 | } | |
35210 | resultobj = SWIG_Py_Void(); | |
35211 | return resultobj; | |
35212 | fail: | |
35213 | return NULL; | |
35214 | } | |
35215 | ||
35216 | ||
35217 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35218 | PyObject *resultobj = 0; | |
35219 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35220 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35221 | wxDC *arg3 = 0 ; | |
35222 | wxRect *arg4 = 0 ; | |
35223 | int arg5 = (int) 0 ; | |
35224 | void *argp1 = 0 ; | |
35225 | int res1 = 0 ; | |
35226 | void *argp2 = 0 ; | |
35227 | int res2 = 0 ; | |
35228 | void *argp3 = 0 ; | |
35229 | int res3 = 0 ; | |
35230 | wxRect temp4 ; | |
35231 | int val5 ; | |
35232 | int ecode5 = 0 ; | |
35233 | PyObject * obj0 = 0 ; | |
35234 | PyObject * obj1 = 0 ; | |
35235 | PyObject * obj2 = 0 ; | |
35236 | PyObject * obj3 = 0 ; | |
35237 | PyObject * obj4 = 0 ; | |
35238 | char * kwnames[] = { | |
35239 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35240 | }; | |
35241 | ||
35242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35244 | if (!SWIG_IsOK(res1)) { | |
35245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35246 | } | |
35247 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35248 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35249 | if (!SWIG_IsOK(res2)) { | |
35250 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35251 | } | |
35252 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35253 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35254 | if (!SWIG_IsOK(res3)) { | |
35255 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35256 | } | |
35257 | if (!argp3) { | |
35258 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35259 | } | |
35260 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35261 | { | |
35262 | arg4 = &temp4; | |
35263 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35264 | } | |
35265 | if (obj4) { | |
35266 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35267 | if (!SWIG_IsOK(ecode5)) { | |
35268 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
35269 | } | |
35270 | arg5 = static_cast< int >(val5); | |
35271 | } | |
35272 | { | |
35273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35274 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35275 | wxPyEndAllowThreads(__tstate); | |
35276 | if (PyErr_Occurred()) SWIG_fail; | |
35277 | } | |
35278 | resultobj = SWIG_Py_Void(); | |
35279 | return resultobj; | |
35280 | fail: | |
35281 | return NULL; | |
35282 | } | |
35283 | ||
35284 | ||
35285 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35286 | PyObject *resultobj = 0; | |
35287 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35288 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35289 | wxDC *arg3 = 0 ; | |
35290 | wxSize *arg4 = 0 ; | |
35291 | int arg5 ; | |
35292 | wxOrientation arg6 ; | |
35293 | int arg7 = (int) 0 ; | |
35294 | void *argp1 = 0 ; | |
35295 | int res1 = 0 ; | |
35296 | void *argp2 = 0 ; | |
35297 | int res2 = 0 ; | |
35298 | void *argp3 = 0 ; | |
35299 | int res3 = 0 ; | |
35300 | wxSize temp4 ; | |
35301 | int val5 ; | |
35302 | int ecode5 = 0 ; | |
35303 | int val6 ; | |
35304 | int ecode6 = 0 ; | |
35305 | int val7 ; | |
35306 | int ecode7 = 0 ; | |
35307 | PyObject * obj0 = 0 ; | |
35308 | PyObject * obj1 = 0 ; | |
35309 | PyObject * obj2 = 0 ; | |
35310 | PyObject * obj3 = 0 ; | |
35311 | PyObject * obj4 = 0 ; | |
35312 | PyObject * obj5 = 0 ; | |
35313 | PyObject * obj6 = 0 ; | |
35314 | char * kwnames[] = { | |
35315 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
35316 | }; | |
35317 | ||
35318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35320 | if (!SWIG_IsOK(res1)) { | |
35321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35322 | } | |
35323 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35324 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35325 | if (!SWIG_IsOK(res2)) { | |
35326 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35327 | } | |
35328 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35329 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35330 | if (!SWIG_IsOK(res3)) { | |
35331 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35332 | } | |
35333 | if (!argp3) { | |
35334 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35335 | } | |
35336 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35337 | { | |
35338 | arg4 = &temp4; | |
35339 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
35340 | } | |
35341 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35342 | if (!SWIG_IsOK(ecode5)) { | |
35343 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
35344 | } | |
35345 | arg5 = static_cast< int >(val5); | |
35346 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35347 | if (!SWIG_IsOK(ecode6)) { | |
35348 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
35349 | } | |
35350 | arg6 = static_cast< wxOrientation >(val6); | |
35351 | if (obj6) { | |
35352 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
35353 | if (!SWIG_IsOK(ecode7)) { | |
35354 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
35355 | } | |
35356 | arg7 = static_cast< int >(val7); | |
35357 | } | |
35358 | { | |
35359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35360 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
35361 | wxPyEndAllowThreads(__tstate); | |
35362 | if (PyErr_Occurred()) SWIG_fail; | |
35363 | } | |
35364 | resultobj = SWIG_Py_Void(); | |
35365 | return resultobj; | |
35366 | fail: | |
35367 | return NULL; | |
35368 | } | |
35369 | ||
35370 | ||
35371 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35372 | PyObject *resultobj = 0; | |
35373 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35374 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35375 | wxDC *arg3 = 0 ; | |
35376 | wxRect *arg4 = 0 ; | |
35377 | int arg5 = (int) 0 ; | |
35378 | void *argp1 = 0 ; | |
35379 | int res1 = 0 ; | |
35380 | void *argp2 = 0 ; | |
35381 | int res2 = 0 ; | |
35382 | void *argp3 = 0 ; | |
35383 | int res3 = 0 ; | |
35384 | wxRect temp4 ; | |
35385 | int val5 ; | |
35386 | int ecode5 = 0 ; | |
35387 | PyObject * obj0 = 0 ; | |
35388 | PyObject * obj1 = 0 ; | |
35389 | PyObject * obj2 = 0 ; | |
35390 | PyObject * obj3 = 0 ; | |
35391 | PyObject * obj4 = 0 ; | |
35392 | char * kwnames[] = { | |
35393 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35394 | }; | |
35395 | ||
35396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35398 | if (!SWIG_IsOK(res1)) { | |
35399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35400 | } | |
35401 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35402 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35403 | if (!SWIG_IsOK(res2)) { | |
35404 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35405 | } | |
35406 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35407 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35408 | if (!SWIG_IsOK(res3)) { | |
35409 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35410 | } | |
35411 | if (!argp3) { | |
35412 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35413 | } | |
35414 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35415 | { | |
35416 | arg4 = &temp4; | |
35417 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35418 | } | |
35419 | if (obj4) { | |
35420 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35421 | if (!SWIG_IsOK(ecode5)) { | |
35422 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
35423 | } | |
35424 | arg5 = static_cast< int >(val5); | |
35425 | } | |
35426 | { | |
35427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35428 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35429 | wxPyEndAllowThreads(__tstate); | |
35430 | if (PyErr_Occurred()) SWIG_fail; | |
35431 | } | |
35432 | resultobj = SWIG_Py_Void(); | |
35433 | return resultobj; | |
35434 | fail: | |
35435 | return NULL; | |
35436 | } | |
35437 | ||
35438 | ||
35439 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35440 | PyObject *resultobj = 0; | |
35441 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35442 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35443 | wxDC *arg3 = 0 ; | |
35444 | wxRect *arg4 = 0 ; | |
35445 | int arg5 = (int) 0 ; | |
35446 | void *argp1 = 0 ; | |
35447 | int res1 = 0 ; | |
35448 | void *argp2 = 0 ; | |
35449 | int res2 = 0 ; | |
35450 | void *argp3 = 0 ; | |
35451 | int res3 = 0 ; | |
35452 | wxRect temp4 ; | |
35453 | int val5 ; | |
35454 | int ecode5 = 0 ; | |
35455 | PyObject * obj0 = 0 ; | |
35456 | PyObject * obj1 = 0 ; | |
35457 | PyObject * obj2 = 0 ; | |
35458 | PyObject * obj3 = 0 ; | |
35459 | PyObject * obj4 = 0 ; | |
35460 | char * kwnames[] = { | |
35461 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35462 | }; | |
35463 | ||
35464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35466 | if (!SWIG_IsOK(res1)) { | |
35467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35468 | } | |
35469 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35470 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35471 | if (!SWIG_IsOK(res2)) { | |
35472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35473 | } | |
35474 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35475 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35476 | if (!SWIG_IsOK(res3)) { | |
35477 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35478 | } | |
35479 | if (!argp3) { | |
35480 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35481 | } | |
35482 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35483 | { | |
35484 | arg4 = &temp4; | |
35485 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35486 | } | |
35487 | if (obj4) { | |
35488 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35489 | if (!SWIG_IsOK(ecode5)) { | |
35490 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
35491 | } | |
35492 | arg5 = static_cast< int >(val5); | |
35493 | } | |
35494 | { | |
35495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35496 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35497 | wxPyEndAllowThreads(__tstate); | |
35498 | if (PyErr_Occurred()) SWIG_fail; | |
35499 | } | |
35500 | resultobj = SWIG_Py_Void(); | |
35501 | return resultobj; | |
35502 | fail: | |
35503 | return NULL; | |
35504 | } | |
35505 | ||
35506 | ||
f460c29d RD |
35507 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35508 | PyObject *resultobj = 0; | |
35509 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35510 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35511 | wxDC *arg3 = 0 ; | |
35512 | wxRect *arg4 = 0 ; | |
35513 | int arg5 = (int) 0 ; | |
35514 | void *argp1 = 0 ; | |
35515 | int res1 = 0 ; | |
35516 | void *argp2 = 0 ; | |
35517 | int res2 = 0 ; | |
35518 | void *argp3 = 0 ; | |
35519 | int res3 = 0 ; | |
35520 | wxRect temp4 ; | |
35521 | int val5 ; | |
35522 | int ecode5 = 0 ; | |
35523 | PyObject * obj0 = 0 ; | |
35524 | PyObject * obj1 = 0 ; | |
35525 | PyObject * obj2 = 0 ; | |
35526 | PyObject * obj3 = 0 ; | |
35527 | PyObject * obj4 = 0 ; | |
35528 | char * kwnames[] = { | |
35529 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35530 | }; | |
35531 | ||
35532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35533 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35534 | if (!SWIG_IsOK(res1)) { | |
35535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35536 | } | |
35537 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35538 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35539 | if (!SWIG_IsOK(res2)) { | |
35540 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35541 | } | |
35542 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35543 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35544 | if (!SWIG_IsOK(res3)) { | |
35545 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35546 | } | |
35547 | if (!argp3) { | |
35548 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35549 | } | |
35550 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35551 | { | |
35552 | arg4 = &temp4; | |
35553 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35554 | } | |
35555 | if (obj4) { | |
35556 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35557 | if (!SWIG_IsOK(ecode5)) { | |
35558 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
35559 | } | |
35560 | arg5 = static_cast< int >(val5); | |
35561 | } | |
35562 | { | |
35563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35564 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35565 | wxPyEndAllowThreads(__tstate); | |
35566 | if (PyErr_Occurred()) SWIG_fail; | |
35567 | } | |
35568 | resultobj = SWIG_Py_Void(); | |
35569 | return resultobj; | |
35570 | fail: | |
35571 | return NULL; | |
35572 | } | |
35573 | ||
35574 | ||
35575 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35576 | PyObject *resultobj = 0; | |
35577 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35578 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35579 | wxDC *arg3 = 0 ; | |
35580 | wxRect *arg4 = 0 ; | |
35581 | int arg5 = (int) 0 ; | |
35582 | void *argp1 = 0 ; | |
35583 | int res1 = 0 ; | |
35584 | void *argp2 = 0 ; | |
35585 | int res2 = 0 ; | |
35586 | void *argp3 = 0 ; | |
35587 | int res3 = 0 ; | |
35588 | wxRect temp4 ; | |
35589 | int val5 ; | |
35590 | int ecode5 = 0 ; | |
35591 | PyObject * obj0 = 0 ; | |
35592 | PyObject * obj1 = 0 ; | |
35593 | PyObject * obj2 = 0 ; | |
35594 | PyObject * obj3 = 0 ; | |
35595 | PyObject * obj4 = 0 ; | |
35596 | char * kwnames[] = { | |
35597 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35598 | }; | |
35599 | ||
35600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35602 | if (!SWIG_IsOK(res1)) { | |
35603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35604 | } | |
35605 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35606 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35607 | if (!SWIG_IsOK(res2)) { | |
35608 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35609 | } | |
35610 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35611 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35612 | if (!SWIG_IsOK(res3)) { | |
35613 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35614 | } | |
35615 | if (!argp3) { | |
35616 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35617 | } | |
35618 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35619 | { | |
35620 | arg4 = &temp4; | |
35621 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35622 | } | |
35623 | if (obj4) { | |
35624 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35625 | if (!SWIG_IsOK(ecode5)) { | |
35626 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
35627 | } | |
35628 | arg5 = static_cast< int >(val5); | |
35629 | } | |
35630 | { | |
35631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35632 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35633 | wxPyEndAllowThreads(__tstate); | |
35634 | if (PyErr_Occurred()) SWIG_fail; | |
35635 | } | |
35636 | resultobj = SWIG_Py_Void(); | |
35637 | return resultobj; | |
35638 | fail: | |
35639 | return NULL; | |
35640 | } | |
35641 | ||
35642 | ||
35643 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
35644 | PyObject *resultobj = 0; |
35645 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35646 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35647 | wxDC *arg3 = 0 ; | |
35648 | wxRect *arg4 = 0 ; | |
35649 | int arg5 = (int) 0 ; | |
35650 | void *argp1 = 0 ; | |
35651 | int res1 = 0 ; | |
35652 | void *argp2 = 0 ; | |
35653 | int res2 = 0 ; | |
35654 | void *argp3 = 0 ; | |
35655 | int res3 = 0 ; | |
35656 | wxRect temp4 ; | |
35657 | int val5 ; | |
35658 | int ecode5 = 0 ; | |
35659 | PyObject * obj0 = 0 ; | |
35660 | PyObject * obj1 = 0 ; | |
35661 | PyObject * obj2 = 0 ; | |
35662 | PyObject * obj3 = 0 ; | |
35663 | PyObject * obj4 = 0 ; | |
35664 | char * kwnames[] = { | |
35665 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35666 | }; | |
35667 | ||
f460c29d | 35668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
35669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
35670 | if (!SWIG_IsOK(res1)) { | |
f460c29d | 35671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
35672 | } |
35673 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35674 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35675 | if (!SWIG_IsOK(res2)) { | |
f460c29d | 35676 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
35677 | } |
35678 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35679 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35680 | if (!SWIG_IsOK(res3)) { | |
f460c29d | 35681 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35682 | } |
35683 | if (!argp3) { | |
f460c29d | 35684 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35685 | } |
35686 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35687 | { | |
35688 | arg4 = &temp4; | |
35689 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35690 | } | |
35691 | if (obj4) { | |
35692 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35693 | if (!SWIG_IsOK(ecode5)) { | |
f460c29d | 35694 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
35695 | } |
35696 | arg5 = static_cast< int >(val5); | |
35697 | } | |
35698 | { | |
35699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f460c29d | 35700 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
35701 | wxPyEndAllowThreads(__tstate); |
35702 | if (PyErr_Occurred()) SWIG_fail; | |
35703 | } | |
35704 | resultobj = SWIG_Py_Void(); | |
35705 | return resultobj; | |
35706 | fail: | |
35707 | return NULL; | |
35708 | } | |
35709 | ||
35710 | ||
554f62e9 RD |
35711 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35712 | PyObject *resultobj = 0; | |
35713 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35714 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35715 | SwigValueWrapper<wxSplitterRenderParams > result; | |
35716 | void *argp1 = 0 ; | |
35717 | int res1 = 0 ; | |
35718 | void *argp2 = 0 ; | |
35719 | int res2 = 0 ; | |
35720 | PyObject * obj0 = 0 ; | |
35721 | PyObject * obj1 = 0 ; | |
35722 | char * kwnames[] = { | |
35723 | (char *) "self",(char *) "win", NULL | |
35724 | }; | |
35725 | ||
35726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
35727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35728 | if (!SWIG_IsOK(res1)) { | |
35729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35730 | } | |
35731 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35732 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35733 | if (!SWIG_IsOK(res2)) { | |
35734 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
35735 | } | |
35736 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35737 | { | |
35738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35739 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
35740 | wxPyEndAllowThreads(__tstate); | |
35741 | if (PyErr_Occurred()) SWIG_fail; | |
35742 | } | |
35743 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
35744 | return resultobj; | |
35745 | fail: | |
35746 | return NULL; | |
35747 | } | |
35748 | ||
35749 | ||
35750 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35751 | PyObject *resultobj = 0; | |
35752 | wxRendererNative *result = 0 ; | |
35753 | ||
35754 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
35755 | { | |
704eda0c | 35756 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 35758 | { |
554f62e9 RD |
35759 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
35760 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 35761 | } |
554f62e9 RD |
35762 | wxPyEndAllowThreads(__tstate); |
35763 | if (PyErr_Occurred()) SWIG_fail; | |
35764 | } | |
35765 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35766 | return resultobj; | |
35767 | fail: | |
35768 | return NULL; | |
35769 | } | |
35770 | ||
35771 | ||
35772 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35773 | PyObject *resultobj = 0; | |
35774 | wxRendererNative *result = 0 ; | |
35775 | ||
35776 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
35777 | { | |
704eda0c | 35778 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 35780 | { |
554f62e9 RD |
35781 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
35782 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 35783 | } |
554f62e9 RD |
35784 | wxPyEndAllowThreads(__tstate); |
35785 | if (PyErr_Occurred()) SWIG_fail; | |
35786 | } | |
35787 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35788 | return resultobj; | |
35789 | fail: | |
35790 | return NULL; | |
35791 | } | |
35792 | ||
35793 | ||
35794 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35795 | PyObject *resultobj = 0; | |
35796 | wxRendererNative *result = 0 ; | |
35797 | ||
35798 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
35799 | { | |
704eda0c | 35800 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 35802 | { |
554f62e9 RD |
35803 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
35804 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 35805 | } |
554f62e9 RD |
35806 | wxPyEndAllowThreads(__tstate); |
35807 | if (PyErr_Occurred()) SWIG_fail; | |
35808 | } | |
35809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35810 | return resultobj; | |
35811 | fail: | |
35812 | return NULL; | |
35813 | } | |
35814 | ||
35815 | ||
35816 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35817 | PyObject *resultobj = 0; | |
35818 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35819 | wxRendererNative *result = 0 ; | |
35820 | void *argp1 = 0 ; | |
35821 | int res1 = 0 ; | |
35822 | PyObject * obj0 = 0 ; | |
35823 | char * kwnames[] = { | |
35824 | (char *) "renderer", NULL | |
35825 | }; | |
35826 | ||
35827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
35828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35829 | if (!SWIG_IsOK(res1)) { | |
35830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35831 | } | |
35832 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35833 | { | |
704eda0c | 35834 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 RD |
35835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35836 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
35837 | wxPyEndAllowThreads(__tstate); | |
35838 | if (PyErr_Occurred()) SWIG_fail; | |
35839 | } | |
35840 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35841 | return resultobj; | |
35842 | fail: | |
35843 | return NULL; | |
35844 | } | |
35845 | ||
35846 | ||
35847 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35848 | PyObject *resultobj = 0; | |
35849 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35850 | SwigValueWrapper<wxRendererVersion > result; | |
35851 | void *argp1 = 0 ; | |
35852 | int res1 = 0 ; | |
35853 | PyObject *swig_obj[1] ; | |
35854 | ||
35855 | if (!args) SWIG_fail; | |
35856 | swig_obj[0] = args; | |
35857 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35858 | if (!SWIG_IsOK(res1)) { | |
35859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
35860 | } | |
35861 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35862 | { | |
35863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35864 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
35865 | wxPyEndAllowThreads(__tstate); | |
35866 | if (PyErr_Occurred()) SWIG_fail; | |
35867 | } | |
35868 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
35869 | return resultobj; | |
35870 | fail: | |
35871 | return NULL; | |
35872 | } | |
35873 | ||
35874 | ||
35875 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35876 | PyObject *obj; | |
35877 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
35878 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
35879 | return SWIG_Py_Void(); | |
35880 | } | |
35881 | ||
27e45892 RD |
35882 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35883 | PyObject *resultobj = 0; | |
35884 | wxPseudoDC *result = 0 ; | |
35885 | ||
35886 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
35887 | { | |
35888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35889 | result = (wxPseudoDC *)new wxPseudoDC(); | |
35890 | wxPyEndAllowThreads(__tstate); | |
35891 | if (PyErr_Occurred()) SWIG_fail; | |
35892 | } | |
35893 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
35894 | return resultobj; | |
35895 | fail: | |
35896 | return NULL; | |
35897 | } | |
35898 | ||
35899 | ||
35900 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35901 | PyObject *resultobj = 0; | |
35902 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35903 | void *argp1 = 0 ; | |
35904 | int res1 = 0 ; | |
35905 | PyObject *swig_obj[1] ; | |
35906 | ||
35907 | if (!args) SWIG_fail; | |
35908 | swig_obj[0] = args; | |
35909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35910 | if (!SWIG_IsOK(res1)) { | |
35911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35912 | } | |
35913 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35914 | { | |
35915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35916 | (arg1)->BeginDrawing(); | |
35917 | wxPyEndAllowThreads(__tstate); | |
35918 | if (PyErr_Occurred()) SWIG_fail; | |
35919 | } | |
35920 | resultobj = SWIG_Py_Void(); | |
35921 | return resultobj; | |
35922 | fail: | |
35923 | return NULL; | |
35924 | } | |
35925 | ||
35926 | ||
35927 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35928 | PyObject *resultobj = 0; | |
35929 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35930 | void *argp1 = 0 ; | |
35931 | int res1 = 0 ; | |
35932 | PyObject *swig_obj[1] ; | |
35933 | ||
35934 | if (!args) SWIG_fail; | |
35935 | swig_obj[0] = args; | |
35936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35937 | if (!SWIG_IsOK(res1)) { | |
35938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35939 | } | |
35940 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35941 | { | |
35942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35943 | (arg1)->EndDrawing(); | |
35944 | wxPyEndAllowThreads(__tstate); | |
35945 | if (PyErr_Occurred()) SWIG_fail; | |
35946 | } | |
35947 | resultobj = SWIG_Py_Void(); | |
35948 | return resultobj; | |
35949 | fail: | |
35950 | return NULL; | |
35951 | } | |
35952 | ||
35953 | ||
35954 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35955 | PyObject *resultobj = 0; | |
35956 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35957 | void *argp1 = 0 ; | |
35958 | int res1 = 0 ; | |
35959 | PyObject *swig_obj[1] ; | |
35960 | ||
35961 | if (!args) SWIG_fail; | |
35962 | swig_obj[0] = args; | |
35963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
35964 | if (!SWIG_IsOK(res1)) { | |
35965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35966 | } | |
35967 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35968 | { | |
35969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35970 | delete arg1; | |
35971 | ||
35972 | wxPyEndAllowThreads(__tstate); | |
35973 | if (PyErr_Occurred()) SWIG_fail; | |
35974 | } | |
35975 | resultobj = SWIG_Py_Void(); | |
35976 | return resultobj; | |
35977 | fail: | |
35978 | return NULL; | |
35979 | } | |
35980 | ||
35981 | ||
35982 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35983 | PyObject *resultobj = 0; | |
35984 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35985 | void *argp1 = 0 ; | |
35986 | int res1 = 0 ; | |
35987 | PyObject *swig_obj[1] ; | |
35988 | ||
35989 | if (!args) SWIG_fail; | |
35990 | swig_obj[0] = args; | |
35991 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35992 | if (!SWIG_IsOK(res1)) { | |
35993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35994 | } | |
35995 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35996 | { | |
35997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35998 | (arg1)->RemoveAll(); | |
35999 | wxPyEndAllowThreads(__tstate); | |
36000 | if (PyErr_Occurred()) SWIG_fail; | |
36001 | } | |
36002 | resultobj = SWIG_Py_Void(); | |
36003 | return resultobj; | |
36004 | fail: | |
36005 | return NULL; | |
36006 | } | |
36007 | ||
36008 | ||
36009 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36010 | PyObject *resultobj = 0; | |
36011 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36012 | int result; | |
36013 | void *argp1 = 0 ; | |
36014 | int res1 = 0 ; | |
36015 | PyObject *swig_obj[1] ; | |
36016 | ||
36017 | if (!args) SWIG_fail; | |
36018 | swig_obj[0] = args; | |
36019 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36020 | if (!SWIG_IsOK(res1)) { | |
36021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36022 | } | |
36023 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36024 | { | |
36025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36026 | result = (int)(arg1)->GetLen(); | |
36027 | wxPyEndAllowThreads(__tstate); | |
36028 | if (PyErr_Occurred()) SWIG_fail; | |
36029 | } | |
36030 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
36031 | return resultobj; | |
36032 | fail: | |
36033 | return NULL; | |
36034 | } | |
36035 | ||
36036 | ||
36037 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36038 | PyObject *resultobj = 0; | |
36039 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36040 | int arg2 ; | |
36041 | void *argp1 = 0 ; | |
36042 | int res1 = 0 ; | |
36043 | int val2 ; | |
36044 | int ecode2 = 0 ; | |
36045 | PyObject * obj0 = 0 ; | |
36046 | PyObject * obj1 = 0 ; | |
36047 | char * kwnames[] = { | |
36048 | (char *) "self",(char *) "id", NULL | |
36049 | }; | |
36050 | ||
36051 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36053 | if (!SWIG_IsOK(res1)) { | |
36054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36055 | } | |
36056 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36057 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36058 | if (!SWIG_IsOK(ecode2)) { | |
36059 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
36060 | } | |
36061 | arg2 = static_cast< int >(val2); | |
36062 | { | |
36063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36064 | (arg1)->SetId(arg2); | |
36065 | wxPyEndAllowThreads(__tstate); | |
36066 | if (PyErr_Occurred()) SWIG_fail; | |
36067 | } | |
36068 | resultobj = SWIG_Py_Void(); | |
36069 | return resultobj; | |
36070 | fail: | |
36071 | return NULL; | |
36072 | } | |
36073 | ||
36074 | ||
36075 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36076 | PyObject *resultobj = 0; | |
36077 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36078 | int arg2 ; | |
36079 | void *argp1 = 0 ; | |
36080 | int res1 = 0 ; | |
36081 | int val2 ; | |
36082 | int ecode2 = 0 ; | |
36083 | PyObject * obj0 = 0 ; | |
36084 | PyObject * obj1 = 0 ; | |
36085 | char * kwnames[] = { | |
36086 | (char *) "self",(char *) "id", NULL | |
36087 | }; | |
36088 | ||
36089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36091 | if (!SWIG_IsOK(res1)) { | |
36092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36093 | } | |
36094 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36095 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36096 | if (!SWIG_IsOK(ecode2)) { | |
36097 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
36098 | } | |
36099 | arg2 = static_cast< int >(val2); | |
36100 | { | |
36101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36102 | (arg1)->ClearId(arg2); | |
36103 | wxPyEndAllowThreads(__tstate); | |
36104 | if (PyErr_Occurred()) SWIG_fail; | |
36105 | } | |
36106 | resultobj = SWIG_Py_Void(); | |
36107 | return resultobj; | |
36108 | fail: | |
36109 | return NULL; | |
36110 | } | |
36111 | ||
36112 | ||
36113 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36114 | PyObject *resultobj = 0; | |
36115 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36116 | int arg2 ; | |
36117 | void *argp1 = 0 ; | |
36118 | int res1 = 0 ; | |
36119 | int val2 ; | |
36120 | int ecode2 = 0 ; | |
36121 | PyObject * obj0 = 0 ; | |
36122 | PyObject * obj1 = 0 ; | |
36123 | char * kwnames[] = { | |
36124 | (char *) "self",(char *) "id", NULL | |
36125 | }; | |
36126 | ||
36127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36129 | if (!SWIG_IsOK(res1)) { | |
36130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36131 | } | |
36132 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36133 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36134 | if (!SWIG_IsOK(ecode2)) { | |
36135 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
36136 | } | |
36137 | arg2 = static_cast< int >(val2); | |
36138 | { | |
36139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36140 | (arg1)->RemoveId(arg2); | |
36141 | wxPyEndAllowThreads(__tstate); | |
36142 | if (PyErr_Occurred()) SWIG_fail; | |
36143 | } | |
36144 | resultobj = SWIG_Py_Void(); | |
36145 | return resultobj; | |
36146 | fail: | |
36147 | return NULL; | |
36148 | } | |
36149 | ||
36150 | ||
36151 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36152 | PyObject *resultobj = 0; | |
36153 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36154 | int arg2 ; | |
36155 | int arg3 ; | |
36156 | int arg4 ; | |
36157 | void *argp1 = 0 ; | |
36158 | int res1 = 0 ; | |
36159 | int val2 ; | |
36160 | int ecode2 = 0 ; | |
36161 | int val3 ; | |
36162 | int ecode3 = 0 ; | |
36163 | int val4 ; | |
36164 | int ecode4 = 0 ; | |
36165 | PyObject * obj0 = 0 ; | |
36166 | PyObject * obj1 = 0 ; | |
36167 | PyObject * obj2 = 0 ; | |
36168 | PyObject * obj3 = 0 ; | |
36169 | char * kwnames[] = { | |
36170 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
36171 | }; | |
36172 | ||
36173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36175 | if (!SWIG_IsOK(res1)) { | |
36176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36177 | } | |
36178 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36179 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36180 | if (!SWIG_IsOK(ecode2)) { | |
36181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
36182 | } | |
36183 | arg2 = static_cast< int >(val2); | |
36184 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36185 | if (!SWIG_IsOK(ecode3)) { | |
36186 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
36187 | } | |
36188 | arg3 = static_cast< int >(val3); | |
36189 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36190 | if (!SWIG_IsOK(ecode4)) { | |
36191 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
36192 | } | |
36193 | arg4 = static_cast< int >(val4); | |
36194 | { | |
36195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36196 | (arg1)->TranslateId(arg2,arg3,arg4); | |
36197 | wxPyEndAllowThreads(__tstate); | |
36198 | if (PyErr_Occurred()) SWIG_fail; | |
36199 | } | |
36200 | resultobj = SWIG_Py_Void(); | |
36201 | return resultobj; | |
36202 | fail: | |
36203 | return NULL; | |
36204 | } | |
36205 | ||
36206 | ||
72ef6efb RD |
36207 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36208 | PyObject *resultobj = 0; | |
36209 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36210 | int arg2 ; | |
36211 | bool arg3 = (bool) true ; | |
36212 | void *argp1 = 0 ; | |
36213 | int res1 = 0 ; | |
36214 | int val2 ; | |
36215 | int ecode2 = 0 ; | |
36216 | bool val3 ; | |
36217 | int ecode3 = 0 ; | |
36218 | PyObject * obj0 = 0 ; | |
36219 | PyObject * obj1 = 0 ; | |
36220 | PyObject * obj2 = 0 ; | |
36221 | char * kwnames[] = { | |
36222 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
36223 | }; | |
36224 | ||
36225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36227 | if (!SWIG_IsOK(res1)) { | |
36228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36229 | } | |
36230 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36231 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36232 | if (!SWIG_IsOK(ecode2)) { | |
36233 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
36234 | } | |
36235 | arg2 = static_cast< int >(val2); | |
36236 | if (obj2) { | |
36237 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36238 | if (!SWIG_IsOK(ecode3)) { | |
36239 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
36240 | } | |
36241 | arg3 = static_cast< bool >(val3); | |
36242 | } | |
36243 | { | |
36244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36245 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
36246 | wxPyEndAllowThreads(__tstate); | |
36247 | if (PyErr_Occurred()) SWIG_fail; | |
36248 | } | |
36249 | resultobj = SWIG_Py_Void(); | |
36250 | return resultobj; | |
36251 | fail: | |
36252 | return NULL; | |
36253 | } | |
36254 | ||
36255 | ||
36256 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36257 | PyObject *resultobj = 0; | |
36258 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36259 | int arg2 ; | |
36260 | bool result; | |
36261 | void *argp1 = 0 ; | |
36262 | int res1 = 0 ; | |
36263 | int val2 ; | |
36264 | int ecode2 = 0 ; | |
36265 | PyObject * obj0 = 0 ; | |
36266 | PyObject * obj1 = 0 ; | |
36267 | char * kwnames[] = { | |
36268 | (char *) "self",(char *) "id", NULL | |
36269 | }; | |
36270 | ||
36271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
36272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36273 | if (!SWIG_IsOK(res1)) { | |
36274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36275 | } | |
36276 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36277 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36278 | if (!SWIG_IsOK(ecode2)) { | |
36279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
36280 | } | |
36281 | arg2 = static_cast< int >(val2); | |
36282 | { | |
36283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36284 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
36285 | wxPyEndAllowThreads(__tstate); | |
36286 | if (PyErr_Occurred()) SWIG_fail; | |
36287 | } | |
36288 | { | |
36289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36290 | } | |
36291 | return resultobj; | |
36292 | fail: | |
36293 | return NULL; | |
36294 | } | |
36295 | ||
36296 | ||
36297 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36298 | PyObject *resultobj = 0; | |
36299 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36300 | int arg2 ; | |
36301 | int arg3 ; | |
36302 | int arg4 = (int) 1 ; | |
36303 | wxColor const &arg5_defvalue = *wxWHITE ; | |
36304 | wxColor *arg5 = (wxColor *) &arg5_defvalue ; | |
36305 | PyObject *result = 0 ; | |
36306 | void *argp1 = 0 ; | |
36307 | int res1 = 0 ; | |
36308 | int val2 ; | |
36309 | int ecode2 = 0 ; | |
36310 | int val3 ; | |
36311 | int ecode3 = 0 ; | |
36312 | int val4 ; | |
36313 | int ecode4 = 0 ; | |
36314 | void *argp5 = 0 ; | |
36315 | int res5 = 0 ; | |
36316 | PyObject * obj0 = 0 ; | |
36317 | PyObject * obj1 = 0 ; | |
36318 | PyObject * obj2 = 0 ; | |
36319 | PyObject * obj3 = 0 ; | |
36320 | PyObject * obj4 = 0 ; | |
36321 | char * kwnames[] = { | |
36322 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
36323 | }; | |
36324 | ||
36325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36327 | if (!SWIG_IsOK(res1)) { | |
36328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36329 | } | |
36330 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36331 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36332 | if (!SWIG_IsOK(ecode2)) { | |
36333 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
36334 | } | |
36335 | arg2 = static_cast< int >(val2); | |
36336 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36337 | if (!SWIG_IsOK(ecode3)) { | |
36338 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
36339 | } | |
36340 | arg3 = static_cast< int >(val3); | |
36341 | if (obj3) { | |
36342 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36343 | if (!SWIG_IsOK(ecode4)) { | |
36344 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
36345 | } | |
36346 | arg4 = static_cast< int >(val4); | |
36347 | } | |
36348 | if (obj4) { | |
36349 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0); | |
36350 | if (!SWIG_IsOK(res5)) { | |
36351 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
36352 | } | |
36353 | if (!argp5) { | |
36354 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
36355 | } | |
36356 | arg5 = reinterpret_cast< wxColor * >(argp5); | |
36357 | } | |
36358 | { | |
36359 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5); | |
36360 | if (PyErr_Occurred()) SWIG_fail; | |
36361 | } | |
36362 | resultobj = result; | |
36363 | return resultobj; | |
36364 | fail: | |
36365 | return NULL; | |
36366 | } | |
36367 | ||
36368 | ||
36369 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36370 | PyObject *resultobj = 0; | |
36371 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36372 | int arg2 ; | |
36373 | int arg3 ; | |
36374 | PyObject *result = 0 ; | |
36375 | void *argp1 = 0 ; | |
36376 | int res1 = 0 ; | |
36377 | int val2 ; | |
36378 | int ecode2 = 0 ; | |
36379 | int val3 ; | |
36380 | int ecode3 = 0 ; | |
36381 | PyObject * obj0 = 0 ; | |
36382 | PyObject * obj1 = 0 ; | |
36383 | PyObject * obj2 = 0 ; | |
36384 | char * kwnames[] = { | |
36385 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36386 | }; | |
36387 | ||
36388 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36389 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36390 | if (!SWIG_IsOK(res1)) { | |
36391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36392 | } | |
36393 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36394 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36395 | if (!SWIG_IsOK(ecode2)) { | |
36396 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
36397 | } | |
36398 | arg2 = static_cast< int >(val2); | |
36399 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36400 | if (!SWIG_IsOK(ecode3)) { | |
36401 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
36402 | } | |
36403 | arg3 = static_cast< int >(val3); | |
36404 | { | |
36405 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
36406 | if (PyErr_Occurred()) SWIG_fail; | |
36407 | } | |
36408 | resultobj = result; | |
36409 | return resultobj; | |
36410 | fail: | |
36411 | return NULL; | |
36412 | } | |
36413 | ||
36414 | ||
27e45892 RD |
36415 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36416 | PyObject *resultobj = 0; | |
36417 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36418 | int arg2 ; | |
36419 | wxDC *arg3 = (wxDC *) 0 ; | |
36420 | void *argp1 = 0 ; | |
36421 | int res1 = 0 ; | |
36422 | int val2 ; | |
36423 | int ecode2 = 0 ; | |
36424 | void *argp3 = 0 ; | |
36425 | int res3 = 0 ; | |
36426 | PyObject * obj0 = 0 ; | |
36427 | PyObject * obj1 = 0 ; | |
36428 | PyObject * obj2 = 0 ; | |
36429 | char * kwnames[] = { | |
36430 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
36431 | }; | |
36432 | ||
36433 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36434 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36435 | if (!SWIG_IsOK(res1)) { | |
36436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36437 | } | |
36438 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36439 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36440 | if (!SWIG_IsOK(ecode2)) { | |
36441 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
36442 | } | |
36443 | arg2 = static_cast< int >(val2); | |
36444 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36445 | if (!SWIG_IsOK(res3)) { | |
36446 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
36447 | } | |
36448 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
36449 | { | |
36450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36451 | (arg1)->DrawIdToDC(arg2,arg3); | |
36452 | wxPyEndAllowThreads(__tstate); | |
36453 | if (PyErr_Occurred()) SWIG_fail; | |
36454 | } | |
36455 | resultobj = SWIG_Py_Void(); | |
36456 | return resultobj; | |
36457 | fail: | |
36458 | return NULL; | |
36459 | } | |
36460 | ||
36461 | ||
36462 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36463 | PyObject *resultobj = 0; | |
36464 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36465 | int arg2 ; | |
36466 | wxRect *arg3 = 0 ; | |
36467 | void *argp1 = 0 ; | |
36468 | int res1 = 0 ; | |
36469 | int val2 ; | |
36470 | int ecode2 = 0 ; | |
36471 | wxRect temp3 ; | |
36472 | PyObject * obj0 = 0 ; | |
36473 | PyObject * obj1 = 0 ; | |
36474 | PyObject * obj2 = 0 ; | |
36475 | char * kwnames[] = { | |
36476 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
36477 | }; | |
36478 | ||
36479 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36480 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36481 | if (!SWIG_IsOK(res1)) { | |
36482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36483 | } | |
36484 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36485 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36486 | if (!SWIG_IsOK(ecode2)) { | |
36487 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
36488 | } | |
36489 | arg2 = static_cast< int >(val2); | |
36490 | { | |
36491 | arg3 = &temp3; | |
36492 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
36493 | } | |
36494 | { | |
36495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36496 | (arg1)->SetIdBounds(arg2,*arg3); | |
36497 | wxPyEndAllowThreads(__tstate); | |
36498 | if (PyErr_Occurred()) SWIG_fail; | |
36499 | } | |
36500 | resultobj = SWIG_Py_Void(); | |
36501 | return resultobj; | |
36502 | fail: | |
36503 | return NULL; | |
36504 | } | |
36505 | ||
36506 | ||
36507 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36508 | PyObject *resultobj = 0; | |
36509 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36510 | int arg2 ; | |
36511 | wxRect result; | |
36512 | void *argp1 = 0 ; | |
36513 | int res1 = 0 ; | |
36514 | int val2 ; | |
36515 | int ecode2 = 0 ; | |
36516 | PyObject * obj0 = 0 ; | |
36517 | PyObject * obj1 = 0 ; | |
36518 | char * kwnames[] = { | |
36519 | (char *) "self",(char *) "id", NULL | |
36520 | }; | |
36521 | ||
36522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
36523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36524 | if (!SWIG_IsOK(res1)) { | |
36525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36526 | } | |
36527 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36528 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36529 | if (!SWIG_IsOK(ecode2)) { | |
36530 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
36531 | } | |
36532 | arg2 = static_cast< int >(val2); | |
36533 | { | |
36534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36535 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
36536 | wxPyEndAllowThreads(__tstate); | |
36537 | if (PyErr_Occurred()) SWIG_fail; | |
36538 | } | |
36539 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
36540 | return resultobj; | |
36541 | fail: | |
36542 | return NULL; | |
36543 | } | |
36544 | ||
36545 | ||
36546 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36547 | PyObject *resultobj = 0; | |
36548 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36549 | wxDC *arg2 = (wxDC *) 0 ; | |
36550 | wxRect *arg3 = 0 ; | |
36551 | void *argp1 = 0 ; | |
36552 | int res1 = 0 ; | |
36553 | void *argp2 = 0 ; | |
36554 | int res2 = 0 ; | |
36555 | wxRect temp3 ; | |
36556 | PyObject * obj0 = 0 ; | |
36557 | PyObject * obj1 = 0 ; | |
36558 | PyObject * obj2 = 0 ; | |
36559 | char * kwnames[] = { | |
36560 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
36561 | }; | |
36562 | ||
36563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36565 | if (!SWIG_IsOK(res1)) { | |
36566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36567 | } | |
36568 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36569 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36570 | if (!SWIG_IsOK(res2)) { | |
36571 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36572 | } | |
36573 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36574 | { | |
36575 | arg3 = &temp3; | |
36576 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
36577 | } | |
36578 | { | |
36579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36580 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
36581 | wxPyEndAllowThreads(__tstate); | |
36582 | if (PyErr_Occurred()) SWIG_fail; | |
36583 | } | |
36584 | resultobj = SWIG_Py_Void(); | |
36585 | return resultobj; | |
36586 | fail: | |
36587 | return NULL; | |
36588 | } | |
36589 | ||
36590 | ||
36591 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36592 | PyObject *resultobj = 0; | |
36593 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36594 | wxDC *arg2 = (wxDC *) 0 ; | |
36595 | wxRegion *arg3 = 0 ; | |
36596 | void *argp1 = 0 ; | |
36597 | int res1 = 0 ; | |
36598 | void *argp2 = 0 ; | |
36599 | int res2 = 0 ; | |
36600 | void *argp3 = 0 ; | |
36601 | int res3 = 0 ; | |
36602 | PyObject * obj0 = 0 ; | |
36603 | PyObject * obj1 = 0 ; | |
36604 | PyObject * obj2 = 0 ; | |
36605 | char * kwnames[] = { | |
36606 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
36607 | }; | |
36608 | ||
36609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36611 | if (!SWIG_IsOK(res1)) { | |
36612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36613 | } | |
36614 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36615 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36616 | if (!SWIG_IsOK(res2)) { | |
36617 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36618 | } | |
36619 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36620 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
36621 | if (!SWIG_IsOK(res3)) { | |
36622 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36623 | } | |
36624 | if (!argp3) { | |
36625 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36626 | } | |
36627 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
36628 | { | |
36629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36630 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
36631 | wxPyEndAllowThreads(__tstate); | |
36632 | if (PyErr_Occurred()) SWIG_fail; | |
36633 | } | |
36634 | resultobj = SWIG_Py_Void(); | |
36635 | return resultobj; | |
36636 | fail: | |
36637 | return NULL; | |
36638 | } | |
36639 | ||
36640 | ||
36641 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36642 | PyObject *resultobj = 0; | |
36643 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36644 | wxDC *arg2 = (wxDC *) 0 ; | |
36645 | void *argp1 = 0 ; | |
36646 | int res1 = 0 ; | |
36647 | void *argp2 = 0 ; | |
36648 | int res2 = 0 ; | |
36649 | PyObject * obj0 = 0 ; | |
36650 | PyObject * obj1 = 0 ; | |
36651 | char * kwnames[] = { | |
36652 | (char *) "self",(char *) "dc", NULL | |
36653 | }; | |
36654 | ||
36655 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
36656 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36657 | if (!SWIG_IsOK(res1)) { | |
36658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36659 | } | |
36660 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36661 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36662 | if (!SWIG_IsOK(res2)) { | |
36663 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36664 | } | |
36665 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36666 | { | |
36667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36668 | (arg1)->DrawToDC(arg2); | |
36669 | wxPyEndAllowThreads(__tstate); | |
36670 | if (PyErr_Occurred()) SWIG_fail; | |
36671 | } | |
36672 | resultobj = SWIG_Py_Void(); | |
36673 | return resultobj; | |
36674 | fail: | |
36675 | return NULL; | |
36676 | } | |
36677 | ||
36678 | ||
36679 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36680 | PyObject *resultobj = 0; | |
36681 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36682 | int arg2 ; | |
36683 | int arg3 ; | |
36684 | wxColour *arg4 = 0 ; | |
36685 | int arg5 = (int) wxFLOOD_SURFACE ; | |
36686 | void *argp1 = 0 ; | |
36687 | int res1 = 0 ; | |
36688 | int val2 ; | |
36689 | int ecode2 = 0 ; | |
36690 | int val3 ; | |
36691 | int ecode3 = 0 ; | |
36692 | wxColour temp4 ; | |
36693 | int val5 ; | |
36694 | int ecode5 = 0 ; | |
36695 | PyObject * obj0 = 0 ; | |
36696 | PyObject * obj1 = 0 ; | |
36697 | PyObject * obj2 = 0 ; | |
36698 | PyObject * obj3 = 0 ; | |
36699 | PyObject * obj4 = 0 ; | |
36700 | char * kwnames[] = { | |
36701 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
36702 | }; | |
36703 | ||
36704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36706 | if (!SWIG_IsOK(res1)) { | |
36707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36708 | } | |
36709 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36710 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36711 | if (!SWIG_IsOK(ecode2)) { | |
36712 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
36713 | } | |
36714 | arg2 = static_cast< int >(val2); | |
36715 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36716 | if (!SWIG_IsOK(ecode3)) { | |
36717 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
36718 | } | |
36719 | arg3 = static_cast< int >(val3); | |
36720 | { | |
36721 | arg4 = &temp4; | |
36722 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
36723 | } | |
36724 | if (obj4) { | |
36725 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36726 | if (!SWIG_IsOK(ecode5)) { | |
36727 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
36728 | } | |
36729 | arg5 = static_cast< int >(val5); | |
36730 | } | |
36731 | { | |
36732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36733 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
36734 | wxPyEndAllowThreads(__tstate); | |
36735 | if (PyErr_Occurred()) SWIG_fail; | |
36736 | } | |
36737 | resultobj = SWIG_Py_Void(); | |
36738 | return resultobj; | |
36739 | fail: | |
36740 | return NULL; | |
36741 | } | |
36742 | ||
36743 | ||
36744 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36745 | PyObject *resultobj = 0; | |
36746 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36747 | wxPoint *arg2 = 0 ; | |
36748 | wxColour *arg3 = 0 ; | |
36749 | int arg4 = (int) wxFLOOD_SURFACE ; | |
36750 | void *argp1 = 0 ; | |
36751 | int res1 = 0 ; | |
36752 | wxPoint temp2 ; | |
36753 | wxColour temp3 ; | |
36754 | int val4 ; | |
36755 | int ecode4 = 0 ; | |
36756 | PyObject * obj0 = 0 ; | |
36757 | PyObject * obj1 = 0 ; | |
36758 | PyObject * obj2 = 0 ; | |
36759 | PyObject * obj3 = 0 ; | |
36760 | char * kwnames[] = { | |
36761 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
36762 | }; | |
36763 | ||
36764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36766 | if (!SWIG_IsOK(res1)) { | |
36767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36768 | } | |
36769 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36770 | { | |
36771 | arg2 = &temp2; | |
36772 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36773 | } | |
36774 | { | |
36775 | arg3 = &temp3; | |
36776 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
36777 | } | |
36778 | if (obj3) { | |
36779 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36780 | if (!SWIG_IsOK(ecode4)) { | |
36781 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
36782 | } | |
36783 | arg4 = static_cast< int >(val4); | |
36784 | } | |
36785 | { | |
36786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36787 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
36788 | wxPyEndAllowThreads(__tstate); | |
36789 | if (PyErr_Occurred()) SWIG_fail; | |
36790 | } | |
36791 | resultobj = SWIG_Py_Void(); | |
36792 | return resultobj; | |
36793 | fail: | |
36794 | return NULL; | |
36795 | } | |
36796 | ||
36797 | ||
36798 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36799 | PyObject *resultobj = 0; | |
36800 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36801 | int arg2 ; | |
36802 | int arg3 ; | |
36803 | int arg4 ; | |
36804 | int arg5 ; | |
36805 | void *argp1 = 0 ; | |
36806 | int res1 = 0 ; | |
36807 | int val2 ; | |
36808 | int ecode2 = 0 ; | |
36809 | int val3 ; | |
36810 | int ecode3 = 0 ; | |
36811 | int val4 ; | |
36812 | int ecode4 = 0 ; | |
36813 | int val5 ; | |
36814 | int ecode5 = 0 ; | |
36815 | PyObject * obj0 = 0 ; | |
36816 | PyObject * obj1 = 0 ; | |
36817 | PyObject * obj2 = 0 ; | |
36818 | PyObject * obj3 = 0 ; | |
36819 | PyObject * obj4 = 0 ; | |
36820 | char * kwnames[] = { | |
36821 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
36822 | }; | |
36823 | ||
36824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36826 | if (!SWIG_IsOK(res1)) { | |
36827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36828 | } | |
36829 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36830 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36831 | if (!SWIG_IsOK(ecode2)) { | |
36832 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
36833 | } | |
36834 | arg2 = static_cast< int >(val2); | |
36835 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36836 | if (!SWIG_IsOK(ecode3)) { | |
36837 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
36838 | } | |
36839 | arg3 = static_cast< int >(val3); | |
36840 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36841 | if (!SWIG_IsOK(ecode4)) { | |
36842 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
36843 | } | |
36844 | arg4 = static_cast< int >(val4); | |
36845 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36846 | if (!SWIG_IsOK(ecode5)) { | |
36847 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
36848 | } | |
36849 | arg5 = static_cast< int >(val5); | |
36850 | { | |
36851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36852 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
36853 | wxPyEndAllowThreads(__tstate); | |
36854 | if (PyErr_Occurred()) SWIG_fail; | |
36855 | } | |
36856 | resultobj = SWIG_Py_Void(); | |
36857 | return resultobj; | |
36858 | fail: | |
36859 | return NULL; | |
36860 | } | |
36861 | ||
36862 | ||
36863 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36864 | PyObject *resultobj = 0; | |
36865 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36866 | wxPoint *arg2 = 0 ; | |
36867 | wxPoint *arg3 = 0 ; | |
36868 | void *argp1 = 0 ; | |
36869 | int res1 = 0 ; | |
36870 | wxPoint temp2 ; | |
36871 | wxPoint temp3 ; | |
36872 | PyObject * obj0 = 0 ; | |
36873 | PyObject * obj1 = 0 ; | |
36874 | PyObject * obj2 = 0 ; | |
36875 | char * kwnames[] = { | |
36876 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
36877 | }; | |
36878 | ||
36879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36881 | if (!SWIG_IsOK(res1)) { | |
36882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36883 | } | |
36884 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36885 | { | |
36886 | arg2 = &temp2; | |
36887 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36888 | } | |
36889 | { | |
36890 | arg3 = &temp3; | |
36891 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36892 | } | |
36893 | { | |
36894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36895 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
36896 | wxPyEndAllowThreads(__tstate); | |
36897 | if (PyErr_Occurred()) SWIG_fail; | |
36898 | } | |
36899 | resultobj = SWIG_Py_Void(); | |
36900 | return resultobj; | |
36901 | fail: | |
36902 | return NULL; | |
36903 | } | |
36904 | ||
36905 | ||
36906 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36907 | PyObject *resultobj = 0; | |
36908 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36909 | int arg2 ; | |
36910 | int arg3 ; | |
36911 | void *argp1 = 0 ; | |
36912 | int res1 = 0 ; | |
36913 | int val2 ; | |
36914 | int ecode2 = 0 ; | |
36915 | int val3 ; | |
36916 | int ecode3 = 0 ; | |
36917 | PyObject * obj0 = 0 ; | |
36918 | PyObject * obj1 = 0 ; | |
36919 | PyObject * obj2 = 0 ; | |
36920 | char * kwnames[] = { | |
36921 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36922 | }; | |
36923 | ||
36924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36926 | if (!SWIG_IsOK(res1)) { | |
36927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36928 | } | |
36929 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36930 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36931 | if (!SWIG_IsOK(ecode2)) { | |
36932 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
36933 | } | |
36934 | arg2 = static_cast< int >(val2); | |
36935 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36936 | if (!SWIG_IsOK(ecode3)) { | |
36937 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
36938 | } | |
36939 | arg3 = static_cast< int >(val3); | |
36940 | { | |
36941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36942 | (arg1)->CrossHair(arg2,arg3); | |
36943 | wxPyEndAllowThreads(__tstate); | |
36944 | if (PyErr_Occurred()) SWIG_fail; | |
36945 | } | |
36946 | resultobj = SWIG_Py_Void(); | |
36947 | return resultobj; | |
36948 | fail: | |
36949 | return NULL; | |
36950 | } | |
36951 | ||
36952 | ||
36953 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36954 | PyObject *resultobj = 0; | |
36955 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36956 | wxPoint *arg2 = 0 ; | |
36957 | void *argp1 = 0 ; | |
36958 | int res1 = 0 ; | |
36959 | wxPoint temp2 ; | |
36960 | PyObject * obj0 = 0 ; | |
36961 | PyObject * obj1 = 0 ; | |
36962 | char * kwnames[] = { | |
36963 | (char *) "self",(char *) "pt", NULL | |
36964 | }; | |
36965 | ||
36966 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36968 | if (!SWIG_IsOK(res1)) { | |
36969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36970 | } | |
36971 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36972 | { | |
36973 | arg2 = &temp2; | |
36974 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36975 | } | |
36976 | { | |
36977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36978 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
36979 | wxPyEndAllowThreads(__tstate); | |
36980 | if (PyErr_Occurred()) SWIG_fail; | |
36981 | } | |
36982 | resultobj = SWIG_Py_Void(); | |
36983 | return resultobj; | |
36984 | fail: | |
36985 | return NULL; | |
36986 | } | |
36987 | ||
36988 | ||
36989 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36990 | PyObject *resultobj = 0; | |
36991 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36992 | int arg2 ; | |
36993 | int arg3 ; | |
36994 | int arg4 ; | |
36995 | int arg5 ; | |
36996 | int arg6 ; | |
36997 | int arg7 ; | |
36998 | void *argp1 = 0 ; | |
36999 | int res1 = 0 ; | |
37000 | int val2 ; | |
37001 | int ecode2 = 0 ; | |
37002 | int val3 ; | |
37003 | int ecode3 = 0 ; | |
37004 | int val4 ; | |
37005 | int ecode4 = 0 ; | |
37006 | int val5 ; | |
37007 | int ecode5 = 0 ; | |
37008 | int val6 ; | |
37009 | int ecode6 = 0 ; | |
37010 | int val7 ; | |
37011 | int ecode7 = 0 ; | |
37012 | PyObject * obj0 = 0 ; | |
37013 | PyObject * obj1 = 0 ; | |
37014 | PyObject * obj2 = 0 ; | |
37015 | PyObject * obj3 = 0 ; | |
37016 | PyObject * obj4 = 0 ; | |
37017 | PyObject * obj5 = 0 ; | |
37018 | PyObject * obj6 = 0 ; | |
37019 | char * kwnames[] = { | |
37020 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
37021 | }; | |
37022 | ||
37023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
37024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37025 | if (!SWIG_IsOK(res1)) { | |
37026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37027 | } | |
37028 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37029 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37030 | if (!SWIG_IsOK(ecode2)) { | |
37031 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
37032 | } | |
37033 | arg2 = static_cast< int >(val2); | |
37034 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37035 | if (!SWIG_IsOK(ecode3)) { | |
37036 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
37037 | } | |
37038 | arg3 = static_cast< int >(val3); | |
37039 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37040 | if (!SWIG_IsOK(ecode4)) { | |
37041 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
37042 | } | |
37043 | arg4 = static_cast< int >(val4); | |
37044 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37045 | if (!SWIG_IsOK(ecode5)) { | |
37046 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
37047 | } | |
37048 | arg5 = static_cast< int >(val5); | |
37049 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
37050 | if (!SWIG_IsOK(ecode6)) { | |
37051 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
37052 | } | |
37053 | arg6 = static_cast< int >(val6); | |
37054 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
37055 | if (!SWIG_IsOK(ecode7)) { | |
37056 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
37057 | } | |
37058 | arg7 = static_cast< int >(val7); | |
37059 | { | |
37060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37061 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
37062 | wxPyEndAllowThreads(__tstate); | |
37063 | if (PyErr_Occurred()) SWIG_fail; | |
37064 | } | |
37065 | resultobj = SWIG_Py_Void(); | |
37066 | return resultobj; | |
37067 | fail: | |
37068 | return NULL; | |
37069 | } | |
37070 | ||
37071 | ||
37072 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37073 | PyObject *resultobj = 0; | |
37074 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37075 | wxPoint *arg2 = 0 ; | |
37076 | wxPoint *arg3 = 0 ; | |
37077 | wxPoint *arg4 = 0 ; | |
37078 | void *argp1 = 0 ; | |
37079 | int res1 = 0 ; | |
37080 | wxPoint temp2 ; | |
37081 | wxPoint temp3 ; | |
37082 | wxPoint temp4 ; | |
37083 | PyObject * obj0 = 0 ; | |
37084 | PyObject * obj1 = 0 ; | |
37085 | PyObject * obj2 = 0 ; | |
37086 | PyObject * obj3 = 0 ; | |
37087 | char * kwnames[] = { | |
37088 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
37089 | }; | |
37090 | ||
37091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37093 | if (!SWIG_IsOK(res1)) { | |
37094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37095 | } | |
37096 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37097 | { | |
37098 | arg2 = &temp2; | |
37099 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37100 | } | |
37101 | { | |
37102 | arg3 = &temp3; | |
37103 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37104 | } | |
37105 | { | |
37106 | arg4 = &temp4; | |
37107 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
37108 | } | |
37109 | { | |
37110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37111 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
37112 | wxPyEndAllowThreads(__tstate); | |
37113 | if (PyErr_Occurred()) SWIG_fail; | |
37114 | } | |
37115 | resultobj = SWIG_Py_Void(); | |
37116 | return resultobj; | |
37117 | fail: | |
37118 | return NULL; | |
37119 | } | |
37120 | ||
37121 | ||
37122 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37123 | PyObject *resultobj = 0; | |
37124 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37125 | int arg2 ; | |
37126 | int arg3 ; | |
37127 | int arg4 ; | |
37128 | int arg5 ; | |
37129 | void *argp1 = 0 ; | |
37130 | int res1 = 0 ; | |
37131 | int val2 ; | |
37132 | int ecode2 = 0 ; | |
37133 | int val3 ; | |
37134 | int ecode3 = 0 ; | |
37135 | int val4 ; | |
37136 | int ecode4 = 0 ; | |
37137 | int val5 ; | |
37138 | int ecode5 = 0 ; | |
37139 | PyObject * obj0 = 0 ; | |
37140 | PyObject * obj1 = 0 ; | |
37141 | PyObject * obj2 = 0 ; | |
37142 | PyObject * obj3 = 0 ; | |
37143 | PyObject * obj4 = 0 ; | |
37144 | char * kwnames[] = { | |
37145 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37146 | }; | |
37147 | ||
37148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37150 | if (!SWIG_IsOK(res1)) { | |
37151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37152 | } | |
37153 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37154 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37155 | if (!SWIG_IsOK(ecode2)) { | |
37156 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
37157 | } | |
37158 | arg2 = static_cast< int >(val2); | |
37159 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37160 | if (!SWIG_IsOK(ecode3)) { | |
37161 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
37162 | } | |
37163 | arg3 = static_cast< int >(val3); | |
37164 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37165 | if (!SWIG_IsOK(ecode4)) { | |
37166 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
37167 | } | |
37168 | arg4 = static_cast< int >(val4); | |
37169 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37170 | if (!SWIG_IsOK(ecode5)) { | |
37171 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
37172 | } | |
37173 | arg5 = static_cast< int >(val5); | |
37174 | { | |
37175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37176 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
37177 | wxPyEndAllowThreads(__tstate); | |
37178 | if (PyErr_Occurred()) SWIG_fail; | |
37179 | } | |
37180 | resultobj = SWIG_Py_Void(); | |
37181 | return resultobj; | |
37182 | fail: | |
37183 | return NULL; | |
37184 | } | |
37185 | ||
37186 | ||
37187 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37188 | PyObject *resultobj = 0; | |
37189 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37190 | wxRect *arg2 = 0 ; | |
37191 | void *argp1 = 0 ; | |
37192 | int res1 = 0 ; | |
37193 | wxRect temp2 ; | |
37194 | PyObject * obj0 = 0 ; | |
37195 | PyObject * obj1 = 0 ; | |
37196 | char * kwnames[] = { | |
37197 | (char *) "self",(char *) "rect", NULL | |
37198 | }; | |
37199 | ||
37200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37202 | if (!SWIG_IsOK(res1)) { | |
37203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37204 | } | |
37205 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37206 | { | |
37207 | arg2 = &temp2; | |
37208 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37209 | } | |
37210 | { | |
37211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37212 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
37213 | wxPyEndAllowThreads(__tstate); | |
37214 | if (PyErr_Occurred()) SWIG_fail; | |
37215 | } | |
37216 | resultobj = SWIG_Py_Void(); | |
37217 | return resultobj; | |
37218 | fail: | |
37219 | return NULL; | |
37220 | } | |
37221 | ||
37222 | ||
37223 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37224 | PyObject *resultobj = 0; | |
37225 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37226 | int arg2 ; | |
37227 | int arg3 ; | |
37228 | int arg4 ; | |
37229 | int arg5 ; | |
37230 | double arg6 ; | |
37231 | double arg7 ; | |
37232 | void *argp1 = 0 ; | |
37233 | int res1 = 0 ; | |
37234 | int val2 ; | |
37235 | int ecode2 = 0 ; | |
37236 | int val3 ; | |
37237 | int ecode3 = 0 ; | |
37238 | int val4 ; | |
37239 | int ecode4 = 0 ; | |
37240 | int val5 ; | |
37241 | int ecode5 = 0 ; | |
37242 | double val6 ; | |
37243 | int ecode6 = 0 ; | |
37244 | double val7 ; | |
37245 | int ecode7 = 0 ; | |
37246 | PyObject * obj0 = 0 ; | |
37247 | PyObject * obj1 = 0 ; | |
37248 | PyObject * obj2 = 0 ; | |
37249 | PyObject * obj3 = 0 ; | |
37250 | PyObject * obj4 = 0 ; | |
37251 | PyObject * obj5 = 0 ; | |
37252 | PyObject * obj6 = 0 ; | |
37253 | char * kwnames[] = { | |
37254 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
37255 | }; | |
37256 | ||
37257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
37258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37259 | if (!SWIG_IsOK(res1)) { | |
37260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37261 | } | |
37262 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37263 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37264 | if (!SWIG_IsOK(ecode2)) { | |
37265 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
37266 | } | |
37267 | arg2 = static_cast< int >(val2); | |
37268 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37269 | if (!SWIG_IsOK(ecode3)) { | |
37270 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
37271 | } | |
37272 | arg3 = static_cast< int >(val3); | |
37273 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37274 | if (!SWIG_IsOK(ecode4)) { | |
37275 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
37276 | } | |
37277 | arg4 = static_cast< int >(val4); | |
37278 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37279 | if (!SWIG_IsOK(ecode5)) { | |
37280 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
37281 | } | |
37282 | arg5 = static_cast< int >(val5); | |
37283 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
37284 | if (!SWIG_IsOK(ecode6)) { | |
37285 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
37286 | } | |
37287 | arg6 = static_cast< double >(val6); | |
37288 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
37289 | if (!SWIG_IsOK(ecode7)) { | |
37290 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
37291 | } | |
37292 | arg7 = static_cast< double >(val7); | |
37293 | { | |
37294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37295 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
37296 | wxPyEndAllowThreads(__tstate); | |
37297 | if (PyErr_Occurred()) SWIG_fail; | |
37298 | } | |
37299 | resultobj = SWIG_Py_Void(); | |
37300 | return resultobj; | |
37301 | fail: | |
37302 | return NULL; | |
37303 | } | |
37304 | ||
37305 | ||
37306 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37307 | PyObject *resultobj = 0; | |
37308 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37309 | wxPoint *arg2 = 0 ; | |
37310 | wxSize *arg3 = 0 ; | |
37311 | double arg4 ; | |
37312 | double arg5 ; | |
37313 | void *argp1 = 0 ; | |
37314 | int res1 = 0 ; | |
37315 | wxPoint temp2 ; | |
37316 | wxSize temp3 ; | |
37317 | double val4 ; | |
37318 | int ecode4 = 0 ; | |
37319 | double val5 ; | |
37320 | int ecode5 = 0 ; | |
37321 | PyObject * obj0 = 0 ; | |
37322 | PyObject * obj1 = 0 ; | |
37323 | PyObject * obj2 = 0 ; | |
37324 | PyObject * obj3 = 0 ; | |
37325 | PyObject * obj4 = 0 ; | |
37326 | char * kwnames[] = { | |
37327 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
37328 | }; | |
37329 | ||
37330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37332 | if (!SWIG_IsOK(res1)) { | |
37333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37334 | } | |
37335 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37336 | { | |
37337 | arg2 = &temp2; | |
37338 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37339 | } | |
37340 | { | |
37341 | arg3 = &temp3; | |
37342 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37343 | } | |
37344 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37345 | if (!SWIG_IsOK(ecode4)) { | |
37346 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
37347 | } | |
37348 | arg4 = static_cast< double >(val4); | |
37349 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37350 | if (!SWIG_IsOK(ecode5)) { | |
37351 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
37352 | } | |
37353 | arg5 = static_cast< double >(val5); | |
37354 | { | |
37355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37356 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
37357 | wxPyEndAllowThreads(__tstate); | |
37358 | if (PyErr_Occurred()) SWIG_fail; | |
37359 | } | |
37360 | resultobj = SWIG_Py_Void(); | |
37361 | return resultobj; | |
37362 | fail: | |
37363 | return NULL; | |
37364 | } | |
37365 | ||
37366 | ||
37367 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37368 | PyObject *resultobj = 0; | |
37369 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37370 | int arg2 ; | |
37371 | int arg3 ; | |
37372 | void *argp1 = 0 ; | |
37373 | int res1 = 0 ; | |
37374 | int val2 ; | |
37375 | int ecode2 = 0 ; | |
37376 | int val3 ; | |
37377 | int ecode3 = 0 ; | |
37378 | PyObject * obj0 = 0 ; | |
37379 | PyObject * obj1 = 0 ; | |
37380 | PyObject * obj2 = 0 ; | |
37381 | char * kwnames[] = { | |
37382 | (char *) "self",(char *) "x",(char *) "y", NULL | |
37383 | }; | |
37384 | ||
37385 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37386 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37387 | if (!SWIG_IsOK(res1)) { | |
37388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37389 | } | |
37390 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37391 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37392 | if (!SWIG_IsOK(ecode2)) { | |
37393 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
37394 | } | |
37395 | arg2 = static_cast< int >(val2); | |
37396 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37397 | if (!SWIG_IsOK(ecode3)) { | |
37398 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
37399 | } | |
37400 | arg3 = static_cast< int >(val3); | |
37401 | { | |
37402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37403 | (arg1)->DrawPoint(arg2,arg3); | |
37404 | wxPyEndAllowThreads(__tstate); | |
37405 | if (PyErr_Occurred()) SWIG_fail; | |
37406 | } | |
37407 | resultobj = SWIG_Py_Void(); | |
37408 | return resultobj; | |
37409 | fail: | |
37410 | return NULL; | |
37411 | } | |
37412 | ||
37413 | ||
37414 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37415 | PyObject *resultobj = 0; | |
37416 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37417 | wxPoint *arg2 = 0 ; | |
37418 | void *argp1 = 0 ; | |
37419 | int res1 = 0 ; | |
37420 | wxPoint temp2 ; | |
37421 | PyObject * obj0 = 0 ; | |
37422 | PyObject * obj1 = 0 ; | |
37423 | char * kwnames[] = { | |
37424 | (char *) "self",(char *) "pt", NULL | |
37425 | }; | |
37426 | ||
37427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
37428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37429 | if (!SWIG_IsOK(res1)) { | |
37430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37431 | } | |
37432 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37433 | { | |
37434 | arg2 = &temp2; | |
37435 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37436 | } | |
37437 | { | |
37438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37439 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
37440 | wxPyEndAllowThreads(__tstate); | |
37441 | if (PyErr_Occurred()) SWIG_fail; | |
37442 | } | |
37443 | resultobj = SWIG_Py_Void(); | |
37444 | return resultobj; | |
37445 | fail: | |
37446 | return NULL; | |
37447 | } | |
37448 | ||
37449 | ||
37450 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37451 | PyObject *resultobj = 0; | |
37452 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37453 | int arg2 ; | |
37454 | int arg3 ; | |
37455 | int arg4 ; | |
37456 | int arg5 ; | |
37457 | void *argp1 = 0 ; | |
37458 | int res1 = 0 ; | |
37459 | int val2 ; | |
37460 | int ecode2 = 0 ; | |
37461 | int val3 ; | |
37462 | int ecode3 = 0 ; | |
37463 | int val4 ; | |
37464 | int ecode4 = 0 ; | |
37465 | int val5 ; | |
37466 | int ecode5 = 0 ; | |
37467 | PyObject * obj0 = 0 ; | |
37468 | PyObject * obj1 = 0 ; | |
37469 | PyObject * obj2 = 0 ; | |
37470 | PyObject * obj3 = 0 ; | |
37471 | PyObject * obj4 = 0 ; | |
37472 | char * kwnames[] = { | |
37473 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37474 | }; | |
37475 | ||
37476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37478 | if (!SWIG_IsOK(res1)) { | |
37479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37480 | } | |
37481 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37482 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37483 | if (!SWIG_IsOK(ecode2)) { | |
37484 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
37485 | } | |
37486 | arg2 = static_cast< int >(val2); | |
37487 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37488 | if (!SWIG_IsOK(ecode3)) { | |
37489 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
37490 | } | |
37491 | arg3 = static_cast< int >(val3); | |
37492 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37493 | if (!SWIG_IsOK(ecode4)) { | |
37494 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
37495 | } | |
37496 | arg4 = static_cast< int >(val4); | |
37497 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37498 | if (!SWIG_IsOK(ecode5)) { | |
37499 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
37500 | } | |
37501 | arg5 = static_cast< int >(val5); | |
37502 | { | |
37503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37504 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
37505 | wxPyEndAllowThreads(__tstate); | |
37506 | if (PyErr_Occurred()) SWIG_fail; | |
37507 | } | |
37508 | resultobj = SWIG_Py_Void(); | |
37509 | return resultobj; | |
37510 | fail: | |
37511 | return NULL; | |
37512 | } | |
37513 | ||
37514 | ||
37515 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37516 | PyObject *resultobj = 0; | |
37517 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37518 | wxRect *arg2 = 0 ; | |
37519 | void *argp1 = 0 ; | |
37520 | int res1 = 0 ; | |
37521 | wxRect temp2 ; | |
37522 | PyObject * obj0 = 0 ; | |
37523 | PyObject * obj1 = 0 ; | |
37524 | char * kwnames[] = { | |
37525 | (char *) "self",(char *) "rect", NULL | |
37526 | }; | |
37527 | ||
37528 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37529 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37530 | if (!SWIG_IsOK(res1)) { | |
37531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37532 | } | |
37533 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37534 | { | |
37535 | arg2 = &temp2; | |
37536 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37537 | } | |
37538 | { | |
37539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37540 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
37541 | wxPyEndAllowThreads(__tstate); | |
37542 | if (PyErr_Occurred()) SWIG_fail; | |
37543 | } | |
37544 | resultobj = SWIG_Py_Void(); | |
37545 | return resultobj; | |
37546 | fail: | |
37547 | return NULL; | |
37548 | } | |
37549 | ||
37550 | ||
37551 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37552 | PyObject *resultobj = 0; | |
37553 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37554 | wxPoint *arg2 = 0 ; | |
37555 | wxSize *arg3 = 0 ; | |
37556 | void *argp1 = 0 ; | |
37557 | int res1 = 0 ; | |
37558 | wxPoint temp2 ; | |
37559 | wxSize temp3 ; | |
37560 | PyObject * obj0 = 0 ; | |
37561 | PyObject * obj1 = 0 ; | |
37562 | PyObject * obj2 = 0 ; | |
37563 | char * kwnames[] = { | |
37564 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37565 | }; | |
37566 | ||
37567 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37569 | if (!SWIG_IsOK(res1)) { | |
37570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37571 | } | |
37572 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37573 | { | |
37574 | arg2 = &temp2; | |
37575 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37576 | } | |
37577 | { | |
37578 | arg3 = &temp3; | |
37579 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37580 | } | |
37581 | { | |
37582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37583 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37584 | wxPyEndAllowThreads(__tstate); | |
37585 | if (PyErr_Occurred()) SWIG_fail; | |
37586 | } | |
37587 | resultobj = SWIG_Py_Void(); | |
37588 | return resultobj; | |
37589 | fail: | |
37590 | return NULL; | |
37591 | } | |
37592 | ||
37593 | ||
37594 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37595 | PyObject *resultobj = 0; | |
37596 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37597 | int arg2 ; | |
37598 | int arg3 ; | |
37599 | int arg4 ; | |
37600 | int arg5 ; | |
37601 | double arg6 ; | |
37602 | void *argp1 = 0 ; | |
37603 | int res1 = 0 ; | |
37604 | int val2 ; | |
37605 | int ecode2 = 0 ; | |
37606 | int val3 ; | |
37607 | int ecode3 = 0 ; | |
37608 | int val4 ; | |
37609 | int ecode4 = 0 ; | |
37610 | int val5 ; | |
37611 | int ecode5 = 0 ; | |
37612 | double val6 ; | |
37613 | int ecode6 = 0 ; | |
37614 | PyObject * obj0 = 0 ; | |
37615 | PyObject * obj1 = 0 ; | |
37616 | PyObject * obj2 = 0 ; | |
37617 | PyObject * obj3 = 0 ; | |
37618 | PyObject * obj4 = 0 ; | |
37619 | PyObject * obj5 = 0 ; | |
37620 | char * kwnames[] = { | |
37621 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
37622 | }; | |
37623 | ||
37624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37626 | if (!SWIG_IsOK(res1)) { | |
37627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37628 | } | |
37629 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37630 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37631 | if (!SWIG_IsOK(ecode2)) { | |
37632 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
37633 | } | |
37634 | arg2 = static_cast< int >(val2); | |
37635 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37636 | if (!SWIG_IsOK(ecode3)) { | |
37637 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
37638 | } | |
37639 | arg3 = static_cast< int >(val3); | |
37640 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37641 | if (!SWIG_IsOK(ecode4)) { | |
37642 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
37643 | } | |
37644 | arg4 = static_cast< int >(val4); | |
37645 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37646 | if (!SWIG_IsOK(ecode5)) { | |
37647 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
37648 | } | |
37649 | arg5 = static_cast< int >(val5); | |
37650 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
37651 | if (!SWIG_IsOK(ecode6)) { | |
37652 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
37653 | } | |
37654 | arg6 = static_cast< double >(val6); | |
37655 | { | |
37656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37657 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
37658 | wxPyEndAllowThreads(__tstate); | |
37659 | if (PyErr_Occurred()) SWIG_fail; | |
37660 | } | |
37661 | resultobj = SWIG_Py_Void(); | |
37662 | return resultobj; | |
37663 | fail: | |
37664 | return NULL; | |
37665 | } | |
37666 | ||
37667 | ||
37668 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37669 | PyObject *resultobj = 0; | |
37670 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37671 | wxRect *arg2 = 0 ; | |
37672 | double arg3 ; | |
37673 | void *argp1 = 0 ; | |
37674 | int res1 = 0 ; | |
37675 | wxRect temp2 ; | |
37676 | double val3 ; | |
37677 | int ecode3 = 0 ; | |
37678 | PyObject * obj0 = 0 ; | |
37679 | PyObject * obj1 = 0 ; | |
37680 | PyObject * obj2 = 0 ; | |
37681 | char * kwnames[] = { | |
37682 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
37683 | }; | |
37684 | ||
37685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37687 | if (!SWIG_IsOK(res1)) { | |
37688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37689 | } | |
37690 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37691 | { | |
37692 | arg2 = &temp2; | |
37693 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37694 | } | |
37695 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
37696 | if (!SWIG_IsOK(ecode3)) { | |
37697 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
37698 | } | |
37699 | arg3 = static_cast< double >(val3); | |
37700 | { | |
37701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37702 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
37703 | wxPyEndAllowThreads(__tstate); | |
37704 | if (PyErr_Occurred()) SWIG_fail; | |
37705 | } | |
37706 | resultobj = SWIG_Py_Void(); | |
37707 | return resultobj; | |
37708 | fail: | |
37709 | return NULL; | |
37710 | } | |
37711 | ||
37712 | ||
37713 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37714 | PyObject *resultobj = 0; | |
37715 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37716 | wxPoint *arg2 = 0 ; | |
37717 | wxSize *arg3 = 0 ; | |
37718 | double arg4 ; | |
37719 | void *argp1 = 0 ; | |
37720 | int res1 = 0 ; | |
37721 | wxPoint temp2 ; | |
37722 | wxSize temp3 ; | |
37723 | double val4 ; | |
37724 | int ecode4 = 0 ; | |
37725 | PyObject * obj0 = 0 ; | |
37726 | PyObject * obj1 = 0 ; | |
37727 | PyObject * obj2 = 0 ; | |
37728 | PyObject * obj3 = 0 ; | |
37729 | char * kwnames[] = { | |
37730 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
37731 | }; | |
37732 | ||
37733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37735 | if (!SWIG_IsOK(res1)) { | |
37736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37737 | } | |
37738 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37739 | { | |
37740 | arg2 = &temp2; | |
37741 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37742 | } | |
37743 | { | |
37744 | arg3 = &temp3; | |
37745 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37746 | } | |
37747 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37748 | if (!SWIG_IsOK(ecode4)) { | |
37749 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
37750 | } | |
37751 | arg4 = static_cast< double >(val4); | |
37752 | { | |
37753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37754 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
37755 | wxPyEndAllowThreads(__tstate); | |
37756 | if (PyErr_Occurred()) SWIG_fail; | |
37757 | } | |
37758 | resultobj = SWIG_Py_Void(); | |
37759 | return resultobj; | |
37760 | fail: | |
37761 | return NULL; | |
37762 | } | |
37763 | ||
37764 | ||
37765 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37766 | PyObject *resultobj = 0; | |
37767 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37768 | int arg2 ; | |
37769 | int arg3 ; | |
37770 | int arg4 ; | |
37771 | void *argp1 = 0 ; | |
37772 | int res1 = 0 ; | |
37773 | int val2 ; | |
37774 | int ecode2 = 0 ; | |
37775 | int val3 ; | |
37776 | int ecode3 = 0 ; | |
37777 | int val4 ; | |
37778 | int ecode4 = 0 ; | |
37779 | PyObject * obj0 = 0 ; | |
37780 | PyObject * obj1 = 0 ; | |
37781 | PyObject * obj2 = 0 ; | |
37782 | PyObject * obj3 = 0 ; | |
37783 | char * kwnames[] = { | |
37784 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
37785 | }; | |
37786 | ||
37787 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37788 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37789 | if (!SWIG_IsOK(res1)) { | |
37790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37791 | } | |
37792 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37793 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37794 | if (!SWIG_IsOK(ecode2)) { | |
37795 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
37796 | } | |
37797 | arg2 = static_cast< int >(val2); | |
37798 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37799 | if (!SWIG_IsOK(ecode3)) { | |
37800 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
37801 | } | |
37802 | arg3 = static_cast< int >(val3); | |
37803 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37804 | if (!SWIG_IsOK(ecode4)) { | |
37805 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
37806 | } | |
37807 | arg4 = static_cast< int >(val4); | |
37808 | { | |
37809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37810 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
37811 | wxPyEndAllowThreads(__tstate); | |
37812 | if (PyErr_Occurred()) SWIG_fail; | |
37813 | } | |
37814 | resultobj = SWIG_Py_Void(); | |
37815 | return resultobj; | |
37816 | fail: | |
37817 | return NULL; | |
37818 | } | |
37819 | ||
37820 | ||
37821 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37822 | PyObject *resultobj = 0; | |
37823 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37824 | wxPoint *arg2 = 0 ; | |
37825 | int arg3 ; | |
37826 | void *argp1 = 0 ; | |
37827 | int res1 = 0 ; | |
37828 | wxPoint temp2 ; | |
37829 | int val3 ; | |
37830 | int ecode3 = 0 ; | |
37831 | PyObject * obj0 = 0 ; | |
37832 | PyObject * obj1 = 0 ; | |
37833 | PyObject * obj2 = 0 ; | |
37834 | char * kwnames[] = { | |
37835 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
37836 | }; | |
37837 | ||
37838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37840 | if (!SWIG_IsOK(res1)) { | |
37841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37842 | } | |
37843 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37844 | { | |
37845 | arg2 = &temp2; | |
37846 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37847 | } | |
37848 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37849 | if (!SWIG_IsOK(ecode3)) { | |
37850 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
37851 | } | |
37852 | arg3 = static_cast< int >(val3); | |
37853 | { | |
37854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37855 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
37856 | wxPyEndAllowThreads(__tstate); | |
37857 | if (PyErr_Occurred()) SWIG_fail; | |
37858 | } | |
37859 | resultobj = SWIG_Py_Void(); | |
37860 | return resultobj; | |
37861 | fail: | |
37862 | return NULL; | |
37863 | } | |
37864 | ||
37865 | ||
37866 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37867 | PyObject *resultobj = 0; | |
37868 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37869 | int arg2 ; | |
37870 | int arg3 ; | |
37871 | int arg4 ; | |
37872 | int arg5 ; | |
37873 | void *argp1 = 0 ; | |
37874 | int res1 = 0 ; | |
37875 | int val2 ; | |
37876 | int ecode2 = 0 ; | |
37877 | int val3 ; | |
37878 | int ecode3 = 0 ; | |
37879 | int val4 ; | |
37880 | int ecode4 = 0 ; | |
37881 | int val5 ; | |
37882 | int ecode5 = 0 ; | |
37883 | PyObject * obj0 = 0 ; | |
37884 | PyObject * obj1 = 0 ; | |
37885 | PyObject * obj2 = 0 ; | |
37886 | PyObject * obj3 = 0 ; | |
37887 | PyObject * obj4 = 0 ; | |
37888 | char * kwnames[] = { | |
37889 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37890 | }; | |
37891 | ||
37892 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37893 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37894 | if (!SWIG_IsOK(res1)) { | |
37895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37896 | } | |
37897 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37898 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37899 | if (!SWIG_IsOK(ecode2)) { | |
37900 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
37901 | } | |
37902 | arg2 = static_cast< int >(val2); | |
37903 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37904 | if (!SWIG_IsOK(ecode3)) { | |
37905 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
37906 | } | |
37907 | arg3 = static_cast< int >(val3); | |
37908 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37909 | if (!SWIG_IsOK(ecode4)) { | |
37910 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
37911 | } | |
37912 | arg4 = static_cast< int >(val4); | |
37913 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37914 | if (!SWIG_IsOK(ecode5)) { | |
37915 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
37916 | } | |
37917 | arg5 = static_cast< int >(val5); | |
37918 | { | |
37919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37920 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
37921 | wxPyEndAllowThreads(__tstate); | |
37922 | if (PyErr_Occurred()) SWIG_fail; | |
37923 | } | |
37924 | resultobj = SWIG_Py_Void(); | |
37925 | return resultobj; | |
37926 | fail: | |
37927 | return NULL; | |
37928 | } | |
37929 | ||
37930 | ||
37931 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37932 | PyObject *resultobj = 0; | |
37933 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37934 | wxRect *arg2 = 0 ; | |
37935 | void *argp1 = 0 ; | |
37936 | int res1 = 0 ; | |
37937 | wxRect temp2 ; | |
37938 | PyObject * obj0 = 0 ; | |
37939 | PyObject * obj1 = 0 ; | |
37940 | char * kwnames[] = { | |
37941 | (char *) "self",(char *) "rect", NULL | |
37942 | }; | |
37943 | ||
37944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37946 | if (!SWIG_IsOK(res1)) { | |
37947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37948 | } | |
37949 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37950 | { | |
37951 | arg2 = &temp2; | |
37952 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37953 | } | |
37954 | { | |
37955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37956 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
37957 | wxPyEndAllowThreads(__tstate); | |
37958 | if (PyErr_Occurred()) SWIG_fail; | |
37959 | } | |
37960 | resultobj = SWIG_Py_Void(); | |
37961 | return resultobj; | |
37962 | fail: | |
37963 | return NULL; | |
37964 | } | |
37965 | ||
37966 | ||
37967 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37968 | PyObject *resultobj = 0; | |
37969 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37970 | wxPoint *arg2 = 0 ; | |
37971 | wxSize *arg3 = 0 ; | |
37972 | void *argp1 = 0 ; | |
37973 | int res1 = 0 ; | |
37974 | wxPoint temp2 ; | |
37975 | wxSize temp3 ; | |
37976 | PyObject * obj0 = 0 ; | |
37977 | PyObject * obj1 = 0 ; | |
37978 | PyObject * obj2 = 0 ; | |
37979 | char * kwnames[] = { | |
37980 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37981 | }; | |
37982 | ||
37983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37984 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37985 | if (!SWIG_IsOK(res1)) { | |
37986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37987 | } | |
37988 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37989 | { | |
37990 | arg2 = &temp2; | |
37991 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37992 | } | |
37993 | { | |
37994 | arg3 = &temp3; | |
37995 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37996 | } | |
37997 | { | |
37998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37999 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
38000 | wxPyEndAllowThreads(__tstate); | |
38001 | if (PyErr_Occurred()) SWIG_fail; | |
38002 | } | |
38003 | resultobj = SWIG_Py_Void(); | |
38004 | return resultobj; | |
38005 | fail: | |
38006 | return NULL; | |
38007 | } | |
38008 | ||
38009 | ||
38010 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38011 | PyObject *resultobj = 0; | |
38012 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38013 | wxIcon *arg2 = 0 ; | |
38014 | int arg3 ; | |
38015 | int arg4 ; | |
38016 | void *argp1 = 0 ; | |
38017 | int res1 = 0 ; | |
38018 | void *argp2 = 0 ; | |
38019 | int res2 = 0 ; | |
38020 | int val3 ; | |
38021 | int ecode3 = 0 ; | |
38022 | int val4 ; | |
38023 | int ecode4 = 0 ; | |
38024 | PyObject * obj0 = 0 ; | |
38025 | PyObject * obj1 = 0 ; | |
38026 | PyObject * obj2 = 0 ; | |
38027 | PyObject * obj3 = 0 ; | |
38028 | char * kwnames[] = { | |
38029 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
38030 | }; | |
38031 | ||
38032 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38033 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38034 | if (!SWIG_IsOK(res1)) { | |
38035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38036 | } | |
38037 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38038 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
38039 | if (!SWIG_IsOK(res2)) { | |
38040 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38041 | } | |
38042 | if (!argp2) { | |
38043 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38044 | } | |
38045 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
38046 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38047 | if (!SWIG_IsOK(ecode3)) { | |
38048 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
38049 | } | |
38050 | arg3 = static_cast< int >(val3); | |
38051 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38052 | if (!SWIG_IsOK(ecode4)) { | |
38053 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
38054 | } | |
38055 | arg4 = static_cast< int >(val4); | |
38056 | { | |
38057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38058 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
38059 | wxPyEndAllowThreads(__tstate); | |
38060 | if (PyErr_Occurred()) SWIG_fail; | |
38061 | } | |
38062 | resultobj = SWIG_Py_Void(); | |
38063 | return resultobj; | |
38064 | fail: | |
38065 | return NULL; | |
38066 | } | |
38067 | ||
38068 | ||
38069 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38070 | PyObject *resultobj = 0; | |
38071 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38072 | wxIcon *arg2 = 0 ; | |
38073 | wxPoint *arg3 = 0 ; | |
38074 | void *argp1 = 0 ; | |
38075 | int res1 = 0 ; | |
38076 | void *argp2 = 0 ; | |
38077 | int res2 = 0 ; | |
38078 | wxPoint temp3 ; | |
38079 | PyObject * obj0 = 0 ; | |
38080 | PyObject * obj1 = 0 ; | |
38081 | PyObject * obj2 = 0 ; | |
38082 | char * kwnames[] = { | |
38083 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
38084 | }; | |
38085 | ||
38086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38088 | if (!SWIG_IsOK(res1)) { | |
38089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38090 | } | |
38091 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38092 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
38093 | if (!SWIG_IsOK(res2)) { | |
38094 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38095 | } | |
38096 | if (!argp2) { | |
38097 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38098 | } | |
38099 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
38100 | { | |
38101 | arg3 = &temp3; | |
38102 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38103 | } | |
38104 | { | |
38105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38106 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
38107 | wxPyEndAllowThreads(__tstate); | |
38108 | if (PyErr_Occurred()) SWIG_fail; | |
38109 | } | |
38110 | resultobj = SWIG_Py_Void(); | |
38111 | return resultobj; | |
38112 | fail: | |
38113 | return NULL; | |
38114 | } | |
38115 | ||
38116 | ||
38117 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38118 | PyObject *resultobj = 0; | |
38119 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38120 | wxBitmap *arg2 = 0 ; | |
38121 | int arg3 ; | |
38122 | int arg4 ; | |
38123 | bool arg5 = (bool) false ; | |
38124 | void *argp1 = 0 ; | |
38125 | int res1 = 0 ; | |
38126 | void *argp2 = 0 ; | |
38127 | int res2 = 0 ; | |
38128 | int val3 ; | |
38129 | int ecode3 = 0 ; | |
38130 | int val4 ; | |
38131 | int ecode4 = 0 ; | |
38132 | bool val5 ; | |
38133 | int ecode5 = 0 ; | |
38134 | PyObject * obj0 = 0 ; | |
38135 | PyObject * obj1 = 0 ; | |
38136 | PyObject * obj2 = 0 ; | |
38137 | PyObject * obj3 = 0 ; | |
38138 | PyObject * obj4 = 0 ; | |
38139 | char * kwnames[] = { | |
38140 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
38141 | }; | |
38142 | ||
38143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38145 | if (!SWIG_IsOK(res1)) { | |
38146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38147 | } | |
38148 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38149 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38150 | if (!SWIG_IsOK(res2)) { | |
38151 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38152 | } | |
38153 | if (!argp2) { | |
38154 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38155 | } | |
38156 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
38157 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38158 | if (!SWIG_IsOK(ecode3)) { | |
38159 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
38160 | } | |
38161 | arg3 = static_cast< int >(val3); | |
38162 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38163 | if (!SWIG_IsOK(ecode4)) { | |
38164 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
38165 | } | |
38166 | arg4 = static_cast< int >(val4); | |
38167 | if (obj4) { | |
38168 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
38169 | if (!SWIG_IsOK(ecode5)) { | |
38170 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
38171 | } | |
38172 | arg5 = static_cast< bool >(val5); | |
38173 | } | |
38174 | { | |
38175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38176 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
38177 | wxPyEndAllowThreads(__tstate); | |
38178 | if (PyErr_Occurred()) SWIG_fail; | |
38179 | } | |
38180 | resultobj = SWIG_Py_Void(); | |
38181 | return resultobj; | |
38182 | fail: | |
38183 | return NULL; | |
38184 | } | |
38185 | ||
38186 | ||
38187 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38188 | PyObject *resultobj = 0; | |
38189 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38190 | wxBitmap *arg2 = 0 ; | |
38191 | wxPoint *arg3 = 0 ; | |
38192 | bool arg4 = (bool) false ; | |
38193 | void *argp1 = 0 ; | |
38194 | int res1 = 0 ; | |
38195 | void *argp2 = 0 ; | |
38196 | int res2 = 0 ; | |
38197 | wxPoint temp3 ; | |
38198 | bool val4 ; | |
38199 | int ecode4 = 0 ; | |
38200 | PyObject * obj0 = 0 ; | |
38201 | PyObject * obj1 = 0 ; | |
38202 | PyObject * obj2 = 0 ; | |
38203 | PyObject * obj3 = 0 ; | |
38204 | char * kwnames[] = { | |
38205 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
38206 | }; | |
38207 | ||
38208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38210 | if (!SWIG_IsOK(res1)) { | |
38211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38212 | } | |
38213 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38214 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38215 | if (!SWIG_IsOK(res2)) { | |
38216 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38217 | } | |
38218 | if (!argp2) { | |
38219 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38220 | } | |
38221 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
38222 | { | |
38223 | arg3 = &temp3; | |
38224 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38225 | } | |
38226 | if (obj3) { | |
38227 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
38228 | if (!SWIG_IsOK(ecode4)) { | |
38229 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
38230 | } | |
38231 | arg4 = static_cast< bool >(val4); | |
38232 | } | |
38233 | { | |
38234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38235 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
38236 | wxPyEndAllowThreads(__tstate); | |
38237 | if (PyErr_Occurred()) SWIG_fail; | |
38238 | } | |
38239 | resultobj = SWIG_Py_Void(); | |
38240 | return resultobj; | |
38241 | fail: | |
38242 | return NULL; | |
38243 | } | |
38244 | ||
38245 | ||
38246 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38247 | PyObject *resultobj = 0; | |
38248 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38249 | wxString *arg2 = 0 ; | |
38250 | int arg3 ; | |
38251 | int arg4 ; | |
38252 | void *argp1 = 0 ; | |
38253 | int res1 = 0 ; | |
38254 | bool temp2 = false ; | |
38255 | int val3 ; | |
38256 | int ecode3 = 0 ; | |
38257 | int val4 ; | |
38258 | int ecode4 = 0 ; | |
38259 | PyObject * obj0 = 0 ; | |
38260 | PyObject * obj1 = 0 ; | |
38261 | PyObject * obj2 = 0 ; | |
38262 | PyObject * obj3 = 0 ; | |
38263 | char * kwnames[] = { | |
38264 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
38265 | }; | |
38266 | ||
38267 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38268 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38269 | if (!SWIG_IsOK(res1)) { | |
38270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38271 | } | |
38272 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38273 | { | |
38274 | arg2 = wxString_in_helper(obj1); | |
38275 | if (arg2 == NULL) SWIG_fail; | |
38276 | temp2 = true; | |
38277 | } | |
38278 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38279 | if (!SWIG_IsOK(ecode3)) { | |
38280 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
38281 | } | |
38282 | arg3 = static_cast< int >(val3); | |
38283 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38284 | if (!SWIG_IsOK(ecode4)) { | |
38285 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
38286 | } | |
38287 | arg4 = static_cast< int >(val4); | |
38288 | { | |
38289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38290 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
38291 | wxPyEndAllowThreads(__tstate); | |
38292 | if (PyErr_Occurred()) SWIG_fail; | |
38293 | } | |
38294 | resultobj = SWIG_Py_Void(); | |
38295 | { | |
38296 | if (temp2) | |
38297 | delete arg2; | |
38298 | } | |
38299 | return resultobj; | |
38300 | fail: | |
38301 | { | |
38302 | if (temp2) | |
38303 | delete arg2; | |
38304 | } | |
38305 | return NULL; | |
38306 | } | |
38307 | ||
38308 | ||
38309 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38310 | PyObject *resultobj = 0; | |
38311 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38312 | wxString *arg2 = 0 ; | |
38313 | wxPoint *arg3 = 0 ; | |
38314 | void *argp1 = 0 ; | |
38315 | int res1 = 0 ; | |
38316 | bool temp2 = false ; | |
38317 | wxPoint temp3 ; | |
38318 | PyObject * obj0 = 0 ; | |
38319 | PyObject * obj1 = 0 ; | |
38320 | PyObject * obj2 = 0 ; | |
38321 | char * kwnames[] = { | |
38322 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
38323 | }; | |
38324 | ||
38325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38327 | if (!SWIG_IsOK(res1)) { | |
38328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38329 | } | |
38330 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38331 | { | |
38332 | arg2 = wxString_in_helper(obj1); | |
38333 | if (arg2 == NULL) SWIG_fail; | |
38334 | temp2 = true; | |
38335 | } | |
38336 | { | |
38337 | arg3 = &temp3; | |
38338 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38339 | } | |
38340 | { | |
38341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38342 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
38343 | wxPyEndAllowThreads(__tstate); | |
38344 | if (PyErr_Occurred()) SWIG_fail; | |
38345 | } | |
38346 | resultobj = SWIG_Py_Void(); | |
38347 | { | |
38348 | if (temp2) | |
38349 | delete arg2; | |
38350 | } | |
38351 | return resultobj; | |
38352 | fail: | |
38353 | { | |
38354 | if (temp2) | |
38355 | delete arg2; | |
38356 | } | |
38357 | return NULL; | |
38358 | } | |
38359 | ||
38360 | ||
38361 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38362 | PyObject *resultobj = 0; | |
38363 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38364 | wxString *arg2 = 0 ; | |
38365 | int arg3 ; | |
38366 | int arg4 ; | |
38367 | double arg5 ; | |
38368 | void *argp1 = 0 ; | |
38369 | int res1 = 0 ; | |
38370 | bool temp2 = false ; | |
38371 | int val3 ; | |
38372 | int ecode3 = 0 ; | |
38373 | int val4 ; | |
38374 | int ecode4 = 0 ; | |
38375 | double val5 ; | |
38376 | int ecode5 = 0 ; | |
38377 | PyObject * obj0 = 0 ; | |
38378 | PyObject * obj1 = 0 ; | |
38379 | PyObject * obj2 = 0 ; | |
38380 | PyObject * obj3 = 0 ; | |
38381 | PyObject * obj4 = 0 ; | |
38382 | char * kwnames[] = { | |
38383 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
38384 | }; | |
38385 | ||
38386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38387 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38388 | if (!SWIG_IsOK(res1)) { | |
38389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38390 | } | |
38391 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38392 | { | |
38393 | arg2 = wxString_in_helper(obj1); | |
38394 | if (arg2 == NULL) SWIG_fail; | |
38395 | temp2 = true; | |
38396 | } | |
38397 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38398 | if (!SWIG_IsOK(ecode3)) { | |
38399 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
38400 | } | |
38401 | arg3 = static_cast< int >(val3); | |
38402 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38403 | if (!SWIG_IsOK(ecode4)) { | |
38404 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
38405 | } | |
38406 | arg4 = static_cast< int >(val4); | |
38407 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
38408 | if (!SWIG_IsOK(ecode5)) { | |
38409 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
38410 | } | |
38411 | arg5 = static_cast< double >(val5); | |
38412 | { | |
38413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38414 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
38415 | wxPyEndAllowThreads(__tstate); | |
38416 | if (PyErr_Occurred()) SWIG_fail; | |
38417 | } | |
38418 | resultobj = SWIG_Py_Void(); | |
38419 | { | |
38420 | if (temp2) | |
38421 | delete arg2; | |
38422 | } | |
38423 | return resultobj; | |
38424 | fail: | |
38425 | { | |
38426 | if (temp2) | |
38427 | delete arg2; | |
38428 | } | |
38429 | return NULL; | |
38430 | } | |
38431 | ||
38432 | ||
38433 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38434 | PyObject *resultobj = 0; | |
38435 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38436 | wxString *arg2 = 0 ; | |
38437 | wxPoint *arg3 = 0 ; | |
38438 | double arg4 ; | |
38439 | void *argp1 = 0 ; | |
38440 | int res1 = 0 ; | |
38441 | bool temp2 = false ; | |
38442 | wxPoint temp3 ; | |
38443 | double val4 ; | |
38444 | int ecode4 = 0 ; | |
38445 | PyObject * obj0 = 0 ; | |
38446 | PyObject * obj1 = 0 ; | |
38447 | PyObject * obj2 = 0 ; | |
38448 | PyObject * obj3 = 0 ; | |
38449 | char * kwnames[] = { | |
38450 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
38451 | }; | |
38452 | ||
38453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38455 | if (!SWIG_IsOK(res1)) { | |
38456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38457 | } | |
38458 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38459 | { | |
38460 | arg2 = wxString_in_helper(obj1); | |
38461 | if (arg2 == NULL) SWIG_fail; | |
38462 | temp2 = true; | |
38463 | } | |
38464 | { | |
38465 | arg3 = &temp3; | |
38466 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38467 | } | |
38468 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
38469 | if (!SWIG_IsOK(ecode4)) { | |
38470 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
38471 | } | |
38472 | arg4 = static_cast< double >(val4); | |
38473 | { | |
38474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38475 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
38476 | wxPyEndAllowThreads(__tstate); | |
38477 | if (PyErr_Occurred()) SWIG_fail; | |
38478 | } | |
38479 | resultobj = SWIG_Py_Void(); | |
38480 | { | |
38481 | if (temp2) | |
38482 | delete arg2; | |
38483 | } | |
38484 | return resultobj; | |
38485 | fail: | |
38486 | { | |
38487 | if (temp2) | |
38488 | delete arg2; | |
38489 | } | |
38490 | return NULL; | |
38491 | } | |
38492 | ||
38493 | ||
38494 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38495 | PyObject *resultobj = 0; | |
38496 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38497 | int arg2 ; | |
38498 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38499 | int arg4 = (int) 0 ; | |
38500 | int arg5 = (int) 0 ; | |
38501 | void *argp1 = 0 ; | |
38502 | int res1 = 0 ; | |
38503 | int val4 ; | |
38504 | int ecode4 = 0 ; | |
38505 | int val5 ; | |
38506 | int ecode5 = 0 ; | |
38507 | PyObject * obj0 = 0 ; | |
38508 | PyObject * obj1 = 0 ; | |
38509 | PyObject * obj2 = 0 ; | |
38510 | PyObject * obj3 = 0 ; | |
38511 | char * kwnames[] = { | |
38512 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
38513 | }; | |
38514 | ||
38515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38516 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38517 | if (!SWIG_IsOK(res1)) { | |
38518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38519 | } | |
38520 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38521 | { | |
38522 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38523 | if (arg3 == NULL) SWIG_fail; | |
38524 | } | |
38525 | if (obj2) { | |
38526 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
38527 | if (!SWIG_IsOK(ecode4)) { | |
38528 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
38529 | } | |
38530 | arg4 = static_cast< int >(val4); | |
38531 | } | |
38532 | if (obj3) { | |
38533 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
38534 | if (!SWIG_IsOK(ecode5)) { | |
38535 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
38536 | } | |
38537 | arg5 = static_cast< int >(val5); | |
38538 | } | |
38539 | { | |
38540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38541 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
38542 | wxPyEndAllowThreads(__tstate); | |
38543 | if (PyErr_Occurred()) SWIG_fail; | |
38544 | } | |
38545 | resultobj = SWIG_Py_Void(); | |
38546 | { | |
38547 | if (arg3) delete [] arg3; | |
38548 | } | |
38549 | return resultobj; | |
38550 | fail: | |
38551 | { | |
38552 | if (arg3) delete [] arg3; | |
38553 | } | |
38554 | return NULL; | |
38555 | } | |
38556 | ||
38557 | ||
38558 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38559 | PyObject *resultobj = 0; | |
38560 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38561 | int arg2 ; | |
38562 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38563 | int arg4 = (int) 0 ; | |
38564 | int arg5 = (int) 0 ; | |
38565 | int arg6 = (int) wxODDEVEN_RULE ; | |
38566 | void *argp1 = 0 ; | |
38567 | int res1 = 0 ; | |
38568 | int val4 ; | |
38569 | int ecode4 = 0 ; | |
38570 | int val5 ; | |
38571 | int ecode5 = 0 ; | |
38572 | int val6 ; | |
38573 | int ecode6 = 0 ; | |
38574 | PyObject * obj0 = 0 ; | |
38575 | PyObject * obj1 = 0 ; | |
38576 | PyObject * obj2 = 0 ; | |
38577 | PyObject * obj3 = 0 ; | |
38578 | PyObject * obj4 = 0 ; | |
38579 | char * kwnames[] = { | |
38580 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
38581 | }; | |
38582 | ||
38583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38585 | if (!SWIG_IsOK(res1)) { | |
38586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38587 | } | |
38588 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38589 | { | |
38590 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38591 | if (arg3 == NULL) SWIG_fail; | |
38592 | } | |
38593 | if (obj2) { | |
38594 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
38595 | if (!SWIG_IsOK(ecode4)) { | |
38596 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
38597 | } | |
38598 | arg4 = static_cast< int >(val4); | |
38599 | } | |
38600 | if (obj3) { | |
38601 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
38602 | if (!SWIG_IsOK(ecode5)) { | |
38603 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
38604 | } | |
38605 | arg5 = static_cast< int >(val5); | |
38606 | } | |
38607 | if (obj4) { | |
38608 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
38609 | if (!SWIG_IsOK(ecode6)) { | |
38610 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
38611 | } | |
38612 | arg6 = static_cast< int >(val6); | |
38613 | } | |
38614 | { | |
38615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38616 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
38617 | wxPyEndAllowThreads(__tstate); | |
38618 | if (PyErr_Occurred()) SWIG_fail; | |
38619 | } | |
38620 | resultobj = SWIG_Py_Void(); | |
38621 | { | |
38622 | if (arg3) delete [] arg3; | |
38623 | } | |
38624 | return resultobj; | |
38625 | fail: | |
38626 | { | |
38627 | if (arg3) delete [] arg3; | |
38628 | } | |
38629 | return NULL; | |
38630 | } | |
38631 | ||
38632 | ||
38633 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38634 | PyObject *resultobj = 0; | |
38635 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38636 | wxString *arg2 = 0 ; | |
38637 | wxRect *arg3 = 0 ; | |
38638 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38639 | int arg5 = (int) -1 ; | |
38640 | void *argp1 = 0 ; | |
38641 | int res1 = 0 ; | |
38642 | bool temp2 = false ; | |
38643 | wxRect temp3 ; | |
38644 | int val4 ; | |
38645 | int ecode4 = 0 ; | |
38646 | int val5 ; | |
38647 | int ecode5 = 0 ; | |
38648 | PyObject * obj0 = 0 ; | |
38649 | PyObject * obj1 = 0 ; | |
38650 | PyObject * obj2 = 0 ; | |
38651 | PyObject * obj3 = 0 ; | |
38652 | PyObject * obj4 = 0 ; | |
38653 | char * kwnames[] = { | |
38654 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38655 | }; | |
38656 | ||
38657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38659 | if (!SWIG_IsOK(res1)) { | |
38660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38661 | } | |
38662 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38663 | { | |
38664 | arg2 = wxString_in_helper(obj1); | |
38665 | if (arg2 == NULL) SWIG_fail; | |
38666 | temp2 = true; | |
38667 | } | |
38668 | { | |
38669 | arg3 = &temp3; | |
38670 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
38671 | } | |
38672 | if (obj3) { | |
38673 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38674 | if (!SWIG_IsOK(ecode4)) { | |
38675 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
38676 | } | |
38677 | arg4 = static_cast< int >(val4); | |
38678 | } | |
38679 | if (obj4) { | |
38680 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38681 | if (!SWIG_IsOK(ecode5)) { | |
38682 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
38683 | } | |
38684 | arg5 = static_cast< int >(val5); | |
38685 | } | |
38686 | { | |
38687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38688 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
38689 | wxPyEndAllowThreads(__tstate); | |
38690 | if (PyErr_Occurred()) SWIG_fail; | |
38691 | } | |
38692 | resultobj = SWIG_Py_Void(); | |
38693 | { | |
38694 | if (temp2) | |
38695 | delete arg2; | |
38696 | } | |
38697 | return resultobj; | |
38698 | fail: | |
38699 | { | |
38700 | if (temp2) | |
38701 | delete arg2; | |
38702 | } | |
38703 | return NULL; | |
38704 | } | |
38705 | ||
38706 | ||
38707 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38708 | PyObject *resultobj = 0; | |
38709 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38710 | wxString *arg2 = 0 ; | |
38711 | wxBitmap *arg3 = 0 ; | |
38712 | wxRect *arg4 = 0 ; | |
38713 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38714 | int arg6 = (int) -1 ; | |
38715 | void *argp1 = 0 ; | |
38716 | int res1 = 0 ; | |
38717 | bool temp2 = false ; | |
38718 | void *argp3 = 0 ; | |
38719 | int res3 = 0 ; | |
38720 | wxRect temp4 ; | |
38721 | int val5 ; | |
38722 | int ecode5 = 0 ; | |
38723 | int val6 ; | |
38724 | int ecode6 = 0 ; | |
38725 | PyObject * obj0 = 0 ; | |
38726 | PyObject * obj1 = 0 ; | |
38727 | PyObject * obj2 = 0 ; | |
38728 | PyObject * obj3 = 0 ; | |
38729 | PyObject * obj4 = 0 ; | |
38730 | PyObject * obj5 = 0 ; | |
38731 | char * kwnames[] = { | |
38732 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38733 | }; | |
38734 | ||
38735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38737 | if (!SWIG_IsOK(res1)) { | |
38738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38739 | } | |
38740 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38741 | { | |
38742 | arg2 = wxString_in_helper(obj1); | |
38743 | if (arg2 == NULL) SWIG_fail; | |
38744 | temp2 = true; | |
38745 | } | |
38746 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38747 | if (!SWIG_IsOK(res3)) { | |
38748 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38749 | } | |
38750 | if (!argp3) { | |
38751 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38752 | } | |
38753 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
38754 | { | |
38755 | arg4 = &temp4; | |
38756 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
38757 | } | |
38758 | if (obj4) { | |
38759 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38760 | if (!SWIG_IsOK(ecode5)) { | |
38761 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
38762 | } | |
38763 | arg5 = static_cast< int >(val5); | |
38764 | } | |
38765 | if (obj5) { | |
38766 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
38767 | if (!SWIG_IsOK(ecode6)) { | |
38768 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
38769 | } | |
38770 | arg6 = static_cast< int >(val6); | |
38771 | } | |
38772 | { | |
38773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38774 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
38775 | wxPyEndAllowThreads(__tstate); | |
38776 | if (PyErr_Occurred()) SWIG_fail; | |
38777 | } | |
38778 | resultobj = SWIG_Py_Void(); | |
38779 | { | |
38780 | if (temp2) | |
38781 | delete arg2; | |
38782 | } | |
38783 | return resultobj; | |
38784 | fail: | |
38785 | { | |
38786 | if (temp2) | |
38787 | delete arg2; | |
38788 | } | |
38789 | return NULL; | |
38790 | } | |
38791 | ||
38792 | ||
38793 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38794 | PyObject *resultobj = 0; | |
38795 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38796 | int arg2 ; | |
38797 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38798 | void *argp1 = 0 ; | |
38799 | int res1 = 0 ; | |
38800 | PyObject * obj0 = 0 ; | |
38801 | PyObject * obj1 = 0 ; | |
38802 | char * kwnames[] = { | |
38803 | (char *) "self",(char *) "points", NULL | |
38804 | }; | |
38805 | ||
38806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
38807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38808 | if (!SWIG_IsOK(res1)) { | |
38809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38810 | } | |
38811 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38812 | { | |
38813 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38814 | if (arg3 == NULL) SWIG_fail; | |
38815 | } | |
38816 | { | |
38817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38818 | (arg1)->DrawSpline(arg2,arg3); | |
38819 | wxPyEndAllowThreads(__tstate); | |
38820 | if (PyErr_Occurred()) SWIG_fail; | |
38821 | } | |
38822 | resultobj = SWIG_Py_Void(); | |
38823 | { | |
38824 | if (arg3) delete [] arg3; | |
38825 | } | |
38826 | return resultobj; | |
38827 | fail: | |
38828 | { | |
38829 | if (arg3) delete [] arg3; | |
38830 | } | |
38831 | return NULL; | |
38832 | } | |
38833 | ||
38834 | ||
38835 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38836 | PyObject *resultobj = 0; | |
38837 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38838 | void *argp1 = 0 ; | |
38839 | int res1 = 0 ; | |
38840 | PyObject *swig_obj[1] ; | |
38841 | ||
38842 | if (!args) SWIG_fail; | |
38843 | swig_obj[0] = args; | |
38844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38845 | if (!SWIG_IsOK(res1)) { | |
38846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38847 | } | |
38848 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38849 | { | |
38850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38851 | (arg1)->Clear(); | |
38852 | wxPyEndAllowThreads(__tstate); | |
38853 | if (PyErr_Occurred()) SWIG_fail; | |
38854 | } | |
38855 | resultobj = SWIG_Py_Void(); | |
38856 | return resultobj; | |
38857 | fail: | |
38858 | return NULL; | |
38859 | } | |
38860 | ||
38861 | ||
38862 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38863 | PyObject *resultobj = 0; | |
38864 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38865 | wxFont *arg2 = 0 ; | |
38866 | void *argp1 = 0 ; | |
38867 | int res1 = 0 ; | |
38868 | void *argp2 = 0 ; | |
38869 | int res2 = 0 ; | |
38870 | PyObject * obj0 = 0 ; | |
38871 | PyObject * obj1 = 0 ; | |
38872 | char * kwnames[] = { | |
38873 | (char *) "self",(char *) "font", NULL | |
38874 | }; | |
38875 | ||
38876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
38877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38878 | if (!SWIG_IsOK(res1)) { | |
38879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38880 | } | |
38881 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38882 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
38883 | if (!SWIG_IsOK(res2)) { | |
38884 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38885 | } | |
38886 | if (!argp2) { | |
38887 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38888 | } | |
38889 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
38890 | { | |
38891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38892 | (arg1)->SetFont((wxFont const &)*arg2); | |
38893 | wxPyEndAllowThreads(__tstate); | |
38894 | if (PyErr_Occurred()) SWIG_fail; | |
38895 | } | |
38896 | resultobj = SWIG_Py_Void(); | |
38897 | return resultobj; | |
38898 | fail: | |
38899 | return NULL; | |
38900 | } | |
38901 | ||
38902 | ||
38903 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38904 | PyObject *resultobj = 0; | |
38905 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38906 | wxPen *arg2 = 0 ; | |
38907 | void *argp1 = 0 ; | |
38908 | int res1 = 0 ; | |
38909 | void *argp2 = 0 ; | |
38910 | int res2 = 0 ; | |
38911 | PyObject * obj0 = 0 ; | |
38912 | PyObject * obj1 = 0 ; | |
38913 | char * kwnames[] = { | |
38914 | (char *) "self",(char *) "pen", NULL | |
38915 | }; | |
38916 | ||
38917 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
38918 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38919 | if (!SWIG_IsOK(res1)) { | |
38920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38921 | } | |
38922 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38923 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
38924 | if (!SWIG_IsOK(res2)) { | |
38925 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38926 | } | |
38927 | if (!argp2) { | |
38928 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38929 | } | |
38930 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
38931 | { | |
38932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38933 | (arg1)->SetPen((wxPen const &)*arg2); | |
38934 | wxPyEndAllowThreads(__tstate); | |
38935 | if (PyErr_Occurred()) SWIG_fail; | |
38936 | } | |
38937 | resultobj = SWIG_Py_Void(); | |
38938 | return resultobj; | |
38939 | fail: | |
38940 | return NULL; | |
38941 | } | |
38942 | ||
38943 | ||
38944 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38945 | PyObject *resultobj = 0; | |
38946 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38947 | wxBrush *arg2 = 0 ; | |
38948 | void *argp1 = 0 ; | |
38949 | int res1 = 0 ; | |
38950 | void *argp2 = 0 ; | |
38951 | int res2 = 0 ; | |
38952 | PyObject * obj0 = 0 ; | |
38953 | PyObject * obj1 = 0 ; | |
38954 | char * kwnames[] = { | |
38955 | (char *) "self",(char *) "brush", NULL | |
38956 | }; | |
38957 | ||
38958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
38959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38960 | if (!SWIG_IsOK(res1)) { | |
38961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38962 | } | |
38963 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38964 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38965 | if (!SWIG_IsOK(res2)) { | |
38966 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38967 | } | |
38968 | if (!argp2) { | |
38969 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38970 | } | |
38971 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38972 | { | |
38973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38974 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
38975 | wxPyEndAllowThreads(__tstate); | |
38976 | if (PyErr_Occurred()) SWIG_fail; | |
38977 | } | |
38978 | resultobj = SWIG_Py_Void(); | |
38979 | return resultobj; | |
38980 | fail: | |
38981 | return NULL; | |
38982 | } | |
38983 | ||
38984 | ||
38985 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38986 | PyObject *resultobj = 0; | |
38987 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38988 | wxBrush *arg2 = 0 ; | |
38989 | void *argp1 = 0 ; | |
38990 | int res1 = 0 ; | |
38991 | void *argp2 = 0 ; | |
38992 | int res2 = 0 ; | |
38993 | PyObject * obj0 = 0 ; | |
38994 | PyObject * obj1 = 0 ; | |
38995 | char * kwnames[] = { | |
38996 | (char *) "self",(char *) "brush", NULL | |
38997 | }; | |
38998 | ||
38999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39001 | if (!SWIG_IsOK(res1)) { | |
39002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39003 | } | |
39004 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39005 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
39006 | if (!SWIG_IsOK(res2)) { | |
39007 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39008 | } | |
39009 | if (!argp2) { | |
39010 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39011 | } | |
39012 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
39013 | { | |
39014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39015 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
39016 | wxPyEndAllowThreads(__tstate); | |
39017 | if (PyErr_Occurred()) SWIG_fail; | |
39018 | } | |
39019 | resultobj = SWIG_Py_Void(); | |
39020 | return resultobj; | |
39021 | fail: | |
39022 | return NULL; | |
39023 | } | |
39024 | ||
39025 | ||
39026 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39027 | PyObject *resultobj = 0; | |
39028 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39029 | int arg2 ; | |
39030 | void *argp1 = 0 ; | |
39031 | int res1 = 0 ; | |
39032 | int val2 ; | |
39033 | int ecode2 = 0 ; | |
39034 | PyObject * obj0 = 0 ; | |
39035 | PyObject * obj1 = 0 ; | |
39036 | char * kwnames[] = { | |
39037 | (char *) "self",(char *) "mode", NULL | |
39038 | }; | |
39039 | ||
39040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
39041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39042 | if (!SWIG_IsOK(res1)) { | |
39043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39044 | } | |
39045 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39046 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39047 | if (!SWIG_IsOK(ecode2)) { | |
39048 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
39049 | } | |
39050 | arg2 = static_cast< int >(val2); | |
39051 | { | |
39052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39053 | (arg1)->SetBackgroundMode(arg2); | |
39054 | wxPyEndAllowThreads(__tstate); | |
39055 | if (PyErr_Occurred()) SWIG_fail; | |
39056 | } | |
39057 | resultobj = SWIG_Py_Void(); | |
39058 | return resultobj; | |
39059 | fail: | |
39060 | return NULL; | |
39061 | } | |
39062 | ||
39063 | ||
39064 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39065 | PyObject *resultobj = 0; | |
39066 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39067 | wxPalette *arg2 = 0 ; | |
39068 | void *argp1 = 0 ; | |
39069 | int res1 = 0 ; | |
39070 | void *argp2 = 0 ; | |
39071 | int res2 = 0 ; | |
39072 | PyObject * obj0 = 0 ; | |
39073 | PyObject * obj1 = 0 ; | |
39074 | char * kwnames[] = { | |
39075 | (char *) "self",(char *) "palette", NULL | |
39076 | }; | |
39077 | ||
39078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
39079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39080 | if (!SWIG_IsOK(res1)) { | |
39081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39082 | } | |
39083 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39084 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
39085 | if (!SWIG_IsOK(res2)) { | |
39086 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
39087 | } | |
39088 | if (!argp2) { | |
39089 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
39090 | } | |
39091 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
39092 | { | |
39093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39094 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
39095 | wxPyEndAllowThreads(__tstate); | |
39096 | if (PyErr_Occurred()) SWIG_fail; | |
39097 | } | |
39098 | resultobj = SWIG_Py_Void(); | |
39099 | return resultobj; | |
39100 | fail: | |
39101 | return NULL; | |
39102 | } | |
39103 | ||
39104 | ||
39105 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39106 | PyObject *resultobj = 0; | |
39107 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39108 | wxColour *arg2 = 0 ; | |
39109 | void *argp1 = 0 ; | |
39110 | int res1 = 0 ; | |
39111 | wxColour temp2 ; | |
39112 | PyObject * obj0 = 0 ; | |
39113 | PyObject * obj1 = 0 ; | |
39114 | char * kwnames[] = { | |
39115 | (char *) "self",(char *) "colour", NULL | |
39116 | }; | |
39117 | ||
39118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39119 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39120 | if (!SWIG_IsOK(res1)) { | |
39121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39122 | } | |
39123 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39124 | { | |
39125 | arg2 = &temp2; | |
39126 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
39127 | } | |
39128 | { | |
39129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39130 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
39131 | wxPyEndAllowThreads(__tstate); | |
39132 | if (PyErr_Occurred()) SWIG_fail; | |
39133 | } | |
39134 | resultobj = SWIG_Py_Void(); | |
39135 | return resultobj; | |
39136 | fail: | |
39137 | return NULL; | |
39138 | } | |
39139 | ||
39140 | ||
39141 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39142 | PyObject *resultobj = 0; | |
39143 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39144 | wxColour *arg2 = 0 ; | |
39145 | void *argp1 = 0 ; | |
39146 | int res1 = 0 ; | |
39147 | wxColour temp2 ; | |
39148 | PyObject * obj0 = 0 ; | |
39149 | PyObject * obj1 = 0 ; | |
39150 | char * kwnames[] = { | |
39151 | (char *) "self",(char *) "colour", NULL | |
39152 | }; | |
39153 | ||
39154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39156 | if (!SWIG_IsOK(res1)) { | |
39157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39158 | } | |
39159 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39160 | { | |
39161 | arg2 = &temp2; | |
39162 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
39163 | } | |
39164 | { | |
39165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39166 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
39167 | wxPyEndAllowThreads(__tstate); | |
39168 | if (PyErr_Occurred()) SWIG_fail; | |
39169 | } | |
39170 | resultobj = SWIG_Py_Void(); | |
39171 | return resultobj; | |
39172 | fail: | |
39173 | return NULL; | |
39174 | } | |
39175 | ||
39176 | ||
39177 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39178 | PyObject *resultobj = 0; | |
39179 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39180 | int arg2 ; | |
39181 | void *argp1 = 0 ; | |
39182 | int res1 = 0 ; | |
39183 | int val2 ; | |
39184 | int ecode2 = 0 ; | |
39185 | PyObject * obj0 = 0 ; | |
39186 | PyObject * obj1 = 0 ; | |
39187 | char * kwnames[] = { | |
39188 | (char *) "self",(char *) "function", NULL | |
39189 | }; | |
39190 | ||
39191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
39192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39193 | if (!SWIG_IsOK(res1)) { | |
39194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39195 | } | |
39196 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39197 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39198 | if (!SWIG_IsOK(ecode2)) { | |
39199 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
39200 | } | |
39201 | arg2 = static_cast< int >(val2); | |
39202 | { | |
39203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39204 | (arg1)->SetLogicalFunction(arg2); | |
39205 | wxPyEndAllowThreads(__tstate); | |
39206 | if (PyErr_Occurred()) SWIG_fail; | |
39207 | } | |
39208 | resultobj = SWIG_Py_Void(); | |
39209 | return resultobj; | |
39210 | fail: | |
39211 | return NULL; | |
39212 | } | |
39213 | ||
39214 | ||
39215 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39216 | PyObject *obj; | |
39217 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39218 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
39219 | return SWIG_Py_Void(); | |
39220 | } | |
39221 | ||
39222 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39223 | return SWIG_Python_InitShadowInstance(args); | |
39224 | } | |
39225 | ||
39226 | static PyMethodDef SwigMethods[] = { | |
39227 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
39228 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
39229 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
39230 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
39231 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
39232 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39233 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39234 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39235 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
39236 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
39237 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
39238 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 39239 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 39240 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
39241 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
39242 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39243 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39244 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39245 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
39246 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39247 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 39248 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
39249 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
39250 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
39251 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
39252 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39253 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
39254 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39255 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39256 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 39257 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
39258 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
39259 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
39260 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39261 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
39262 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
39263 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
39264 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
39265 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
39266 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 39267 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
39268 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
39269 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39270 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39271 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39272 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39273 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39274 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
39275 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39276 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
39277 | { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL}, | |
39278 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39279 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39280 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39281 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
39282 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
39283 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39284 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39285 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
39286 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39287 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39288 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39289 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
39290 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
39291 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
39292 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 39293 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
39294 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
39295 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
39296 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39297 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
39298 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39299 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39300 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39301 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39302 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39303 | { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL}, | |
39304 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39305 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
39306 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
39307 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
39308 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
39309 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
39310 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
39311 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
39312 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39313 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39314 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39315 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39316 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39317 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
39318 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39319 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39320 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39321 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39322 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39323 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39324 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 RD |
39325 | { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
39326 | { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
39327 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
39328 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39329 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
39330 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
39331 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
39332 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39333 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39334 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
39335 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
39336 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
39337 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
39338 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
39339 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
39340 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
39341 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
39342 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
39343 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
39344 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
39345 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
39346 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
39347 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
39348 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
39349 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39350 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
39351 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
39352 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39353 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39354 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39355 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39356 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39357 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
39358 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
39359 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
39360 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
39361 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
39362 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
39363 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
39364 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
39365 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
39366 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
39367 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
39368 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
39369 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39370 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
39371 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
39372 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39373 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39374 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39375 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39376 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39377 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
39378 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
39379 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
39380 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
39381 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
39382 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
39383 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
39384 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39385 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
39386 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
39387 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39388 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39389 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39390 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39391 | { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL}, | |
39392 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39393 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
39394 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
39395 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
39396 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
39397 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39398 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39399 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39400 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39401 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39402 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
39403 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
39404 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39405 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
39406 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
39407 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39408 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
39409 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39410 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
39411 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
39412 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
39413 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
39414 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39415 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39416 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
39417 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39418 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39419 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39420 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
39421 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
39422 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39423 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
39424 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39425 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39426 | { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL}, | |
39427 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39428 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
39429 | { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL}, |
39430 | { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL}, | |
39431 | { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL}, | |
39432 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39433 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39434 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39435 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39436 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
39437 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
39438 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39439 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39440 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39441 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39442 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
39443 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
39444 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39445 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39446 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39447 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39448 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39449 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
39450 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39451 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39452 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39453 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 39454 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
39455 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
39456 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39457 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39458 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39459 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39460 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39461 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39462 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39463 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39464 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
39465 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39466 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39467 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
39468 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
39469 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39470 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
39471 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
39472 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
39473 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
39474 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
39475 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
39476 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
39477 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
39478 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
39479 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
39480 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
39481 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
39482 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
39483 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
39484 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
39485 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
39486 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
39487 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39488 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
39489 | { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL}, | |
39490 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
39491 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
39492 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
39493 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
39494 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
39495 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
39496 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39497 | { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39498 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39499 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39500 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39501 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39502 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39503 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39504 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39505 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
39506 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
39507 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39508 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
39509 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
39510 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
39511 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
39512 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
39513 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
39514 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
39515 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
39516 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
39517 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39518 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
39519 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
39520 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
39521 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39522 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39523 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
39524 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
39525 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
39526 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39527 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39528 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
39529 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39530 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, |
39531 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39532 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39533 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39534 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
39535 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39536 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39537 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39538 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39539 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
39540 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
39541 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39542 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
39543 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39544 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39545 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39546 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39547 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39548 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
554f62e9 RD |
39549 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
39550 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39551 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
39552 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
39553 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
39554 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
39555 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
39556 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
39557 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
39558 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
39559 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
39560 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
39561 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
39562 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
39563 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
39564 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39565 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39566 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39567 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39568 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39569 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39570 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39571 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39572 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39573 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39574 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39575 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
39576 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
39577 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
39578 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39579 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
39580 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
39581 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39582 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
39583 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
39584 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
39585 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
39586 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39587 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39588 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
39589 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
39590 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
39591 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39592 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
39593 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
39594 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
39595 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
39596 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
39597 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
39598 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
39599 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
39600 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
39601 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39602 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
39603 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39604 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39605 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
39606 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
39607 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
39608 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
39609 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
39610 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
39611 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
39612 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
39613 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39614 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 39615 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39616 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
39617 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39618 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39619 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39620 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39621 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39622 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
39623 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
39624 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
39625 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
39626 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
39627 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39628 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39629 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39630 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
39631 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39632 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
39633 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
39634 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
39635 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
39636 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39637 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39638 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39639 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39640 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39641 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
39642 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
39643 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
39644 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39645 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39646 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39647 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39648 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39649 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39650 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39651 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39652 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39653 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39654 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39655 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39656 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39657 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39658 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39659 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39660 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39661 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39662 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39663 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39664 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39665 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39666 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39667 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39668 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39669 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39670 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39671 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39672 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39673 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39674 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39675 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39676 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39677 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39678 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39679 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39680 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39681 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39682 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 39683 | { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39684 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
39685 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39686 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39687 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39688 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39689 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39690 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39691 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39692 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39693 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
39694 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39695 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
39696 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
39697 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
39698 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39699 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39700 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39701 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39702 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39703 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39704 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
39705 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
39706 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
39707 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
39708 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
39709 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39710 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39711 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39712 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39713 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
39714 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
39715 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
39716 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
39717 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39718 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39719 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39720 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39721 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39722 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39723 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39724 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39725 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
39726 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
39727 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
39728 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 39729 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
554f62e9 RD |
39730 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
39731 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
39732 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
39733 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
39734 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
39735 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
39736 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
39737 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39738 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39739 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
39740 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39741 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
39742 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39743 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
39744 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39745 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
39746 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
39747 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39748 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39749 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
39750 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
39751 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39752 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39753 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39754 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
39755 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39756 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
39757 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39758 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39759 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
39760 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
39761 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
39762 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
39763 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
39764 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
39765 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
39766 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39767 | { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL}, |
39768 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39769 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39770 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39771 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39772 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39773 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39774 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
39775 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
39776 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
39777 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
39778 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
39779 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39780 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
39781 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
39782 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
39783 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39784 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
39785 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
39786 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
39787 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
39788 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
39789 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
39790 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39791 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
39792 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39793 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39794 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
39795 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
39796 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
39797 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39798 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
39799 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39800 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39801 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
39802 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
39803 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39804 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
39805 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26c4d26f RD |
39806 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39807 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39808 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39809 | { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39810 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
39811 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
39812 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
39813 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
39814 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
b6df5cf9 RD |
39815 | { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
39816 | { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL}, | |
24f6c4e8 RD |
39817 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, |
39818 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
39819 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39820 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39821 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
39822 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39823 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39824 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 39825 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39826 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39827 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
39828 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
39829 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39830 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
39831 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39832 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39833 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
39834 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
39835 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
39836 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39837 | { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL}, | |
b39fe951 | 39838 | { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL}, |
554f62e9 RD |
39839 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, |
39840 | { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL}, | |
39841 | { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL}, | |
39842 | { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL}, | |
39843 | { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL}, | |
39844 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
39845 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
39846 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39847 | { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL}, | |
39848 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
39849 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
39850 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39851 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
39852 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
70d7cb34 RD |
39853 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
39854 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
39855 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
39856 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
39857 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
39858 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
39859 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
39860 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
39861 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
39862 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
39863 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
39864 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
39865 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
39866 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
39867 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
39868 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
39869 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
39870 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
8f514ab4 | 39871 | { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL}, |
5c8c7dd3 RD |
39872 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
39873 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
39874 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
39875 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, | |
39876 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39877 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
39878 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39879 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39880 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39881 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39882 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39883 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
39884 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
8f514ab4 RD |
39885 | { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL}, |
39886 | { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL}, | |
72ef6efb | 39887 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
39888 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
39889 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
39890 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
39891 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39892 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
39893 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 39894 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
39895 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
39896 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39897 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39898 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
39899 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
39900 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39901 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
39902 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39903 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39904 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
39905 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb | 39906 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
8f514ab4 | 39907 | { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL}, |
72ef6efb | 39908 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, |
0a27f394 | 39909 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
f89238b9 | 39910 | { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL}, |
0a27f394 | 39911 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 | 39912 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39913 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
39914 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
39915 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39916 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39917 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39918 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39919 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39920 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
39921 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 39922 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39923 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
39924 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
39925 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
72ef6efb RD |
39926 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
39927 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39928 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
39929 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
39930 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39931 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
39932 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
39933 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
39934 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
39935 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
39936 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39937 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
39938 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
39939 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 39940 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39941 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
39942 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39943 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39944 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39945 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39946 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 39947 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39948 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
39949 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39950 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39951 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 39952 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 39953 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
39954 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
39955 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
39956 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
f89238b9 | 39957 | { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL}, |
70d7cb34 RD |
39958 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, |
39959 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39960 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
39961 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39962 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39963 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39964 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39965 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39966 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39967 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
48a0c021 | 39968 | { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL}, |
72ef6efb | 39969 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, |
0a27f394 RD |
39970 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
39971 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39972 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
39973 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
39974 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
39975 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
39976 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
39977 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
39978 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
39979 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
39980 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
39981 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
39982 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
39983 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39984 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
39985 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
39986 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39987 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39988 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39989 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39990 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39991 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39992 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39993 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
39994 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39995 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
39996 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39997 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
39998 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39999 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
40000 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
40001 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
40002 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
40003 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40004 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40005 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40006 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40007 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40008 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
40009 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
40010 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
40011 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
40012 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
40013 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
554f62e9 | 40014 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 40015 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40016 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40017 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 40018 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 40019 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40020 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40021 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
40022 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
40023 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40024 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40025 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
40026 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
40027 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
40028 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40029 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40030 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40031 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40032 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
40033 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
40034 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
40035 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
40036 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
40037 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
554f62e9 RD |
40038 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
40039 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
40040 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
40041 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
40042 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
40043 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
40044 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40045 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40046 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40047 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40048 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40049 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40050 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40051 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40052 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
40053 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
40054 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40055 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
40056 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
40057 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
40058 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
40059 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
40060 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
40061 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
40062 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
40063 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
40064 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
40065 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
40066 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
40067 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
40068 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
40069 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
40070 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
40071 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
40072 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
40073 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
40074 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
40075 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
40076 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
40077 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
40078 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
40079 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
40080 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
40081 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40082 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
40083 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
40084 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
40085 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
40086 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
40087 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
40088 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
40089 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
40090 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40091 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40092 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40093 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
f460c29d RD |
40094 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
40095 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40096 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
40097 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
40098 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
40099 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
40100 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
40101 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40102 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
40103 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
40104 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
40105 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
40106 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
40107 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
40108 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
40109 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
40110 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40111 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40112 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40113 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40114 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
40115 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40116 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40117 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
40118 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
40119 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40120 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40121 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40122 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40123 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40124 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40125 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40126 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40127 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40128 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40129 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40130 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40131 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40132 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40133 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40134 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40135 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40136 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40137 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40138 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40139 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40140 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40141 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40142 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40143 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40144 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40145 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40146 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40147 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40148 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40149 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40150 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40151 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40152 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40153 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40154 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40155 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40156 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40157 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40158 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40159 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40160 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40161 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40162 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
40163 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40164 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40165 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40166 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40167 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40168 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40169 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40170 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40171 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40172 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
40173 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
40174 | { NULL, NULL, 0, NULL } |
40175 | }; | |
40176 | ||
40177 | ||
40178 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40179 | ||
72ef6efb RD |
40180 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
40181 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
40182 | } | |
8e99bda9 RD |
40183 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
40184 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
40185 | } | |
40186 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
40187 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40188 | } | |
26c4d26f RD |
40189 | static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) { |
40190 | return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
40191 | } | |
40192 | static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) { | |
40193 | return (void *)((wxWindowDC *) ((wxMemoryDC *) x)); | |
40194 | } | |
72ef6efb RD |
40195 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
40196 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
40197 | } | |
40198 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
40199 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
40200 | } | |
26c4d26f RD |
40201 | static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) { |
40202 | return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40203 | } | |
fc46b7f3 RD |
40204 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
40205 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
40206 | } | |
70d7cb34 RD |
40207 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
40208 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
40209 | } | |
40210 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
40211 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
40212 | } | |
40213 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
40214 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
40215 | } | |
40216 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
40217 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
40218 | } | |
40219 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
40220 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
40221 | } | |
40222 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
40223 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
40224 | } | |
554f62e9 RD |
40225 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
40226 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
40227 | } | |
40228 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
40229 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
40230 | } | |
40231 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
40232 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
40233 | } | |
40234 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
40235 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
40236 | } | |
40237 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
40238 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
40239 | } | |
40240 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
40241 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
40242 | } | |
40243 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
40244 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
40245 | } | |
40246 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
40247 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
40248 | } | |
72ef6efb RD |
40249 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
40250 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
40251 | } | |
554f62e9 RD |
40252 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
40253 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
40254 | } | |
24f6c4e8 | 40255 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
26c4d26f | 40256 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
24f6c4e8 | 40257 | } |
554f62e9 RD |
40258 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
40259 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
40260 | } | |
554f62e9 RD |
40261 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { |
40262 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
40263 | } | |
26c4d26f RD |
40264 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { |
40265 | return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x)); | |
40266 | } | |
554f62e9 RD |
40267 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { |
40268 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
40269 | } | |
554f62e9 | 40270 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 40271 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
40272 | } |
40273 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 40274 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
554f62e9 | 40275 | } |
24f6c4e8 | 40276 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
26c4d26f | 40277 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
24f6c4e8 RD |
40278 | } |
40279 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
40280 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
40281 | } | |
554f62e9 RD |
40282 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
40283 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
40284 | } | |
40285 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
40286 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
40287 | } | |
50efceee RD |
40288 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
40289 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
40290 | } | |
40291 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
40292 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
40293 | } | |
40294 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
40295 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
40296 | } | |
554f62e9 RD |
40297 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
40298 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40299 | } | |
40300 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
40301 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
40302 | } | |
40303 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
40304 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
40305 | } | |
40306 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
40307 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
40308 | } | |
554f62e9 RD |
40309 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
40310 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
40311 | } | |
0f83f5da RD |
40312 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
40313 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
40314 | } | |
554f62e9 RD |
40315 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
40316 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
40317 | } | |
40318 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
40319 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
40320 | } | |
40321 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
40322 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
40323 | } | |
40324 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
40325 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40326 | } | |
40327 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
40328 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
40329 | } | |
40330 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
40331 | return (void *)((wxObject *) ((wxSizer *) x)); | |
40332 | } | |
40333 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
40334 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40335 | } | |
40336 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
40337 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40338 | } | |
554f62e9 RD |
40339 | static void *_p_wxEventTo_p_wxObject(void *x) { |
40340 | return (void *)((wxObject *) ((wxEvent *) x)); | |
40341 | } | |
40342 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
40343 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40344 | } | |
40345 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
40346 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
40347 | } | |
40348 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
40349 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
40350 | } | |
27e45892 RD |
40351 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
40352 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
40353 | } | |
2131d850 RD |
40354 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
40355 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
40356 | } | |
554f62e9 RD |
40357 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
40358 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
40359 | } | |
40360 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
40361 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
40362 | } | |
40363 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
40364 | return (void *)((wxObject *) ((wxDC *) x)); | |
40365 | } | |
40366 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
40367 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40368 | } | |
40369 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
40370 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40371 | } | |
40372 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
40373 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40374 | } | |
40375 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
40376 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40377 | } | |
40378 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
40379 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
40380 | } | |
70d7cb34 RD |
40381 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
40382 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
40383 | } | |
554f62e9 RD |
40384 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
40385 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
40386 | } | |
40387 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 40388 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
40389 | } |
40390 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
40391 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
40392 | } | |
40393 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26c4d26f | 40394 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x)); |
554f62e9 RD |
40395 | } |
40396 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
40397 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
40398 | } | |
40399 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
40400 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
40401 | } | |
40402 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
40403 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
40404 | } | |
40405 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
40406 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
40407 | } | |
70d7cb34 RD |
40408 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
40409 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
40410 | } | |
40411 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
40412 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
40413 | } | |
554f62e9 RD |
40414 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
40415 | return (void *)((wxObject *) ((wxEffects *) x)); | |
40416 | } | |
40417 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
40418 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
40419 | } | |
40420 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
40421 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40422 | } | |
40423 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
40424 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
40425 | } | |
70d7cb34 RD |
40426 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
40427 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
40428 | } | |
554f62e9 RD |
40429 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
40430 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
40431 | } | |
40432 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
40433 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
40434 | } | |
40435 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
40436 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
40437 | } | |
40438 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
40439 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
40440 | } | |
40441 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
40442 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40443 | } | |
40444 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
40445 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40446 | } | |
40447 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
40448 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
40449 | } | |
40450 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
40451 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
40452 | } | |
40453 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
40454 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
40455 | } | |
40456 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
40457 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
40458 | } | |
40459 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
40460 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
40461 | } | |
40462 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
40463 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
40464 | } | |
40465 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
40466 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
40467 | } | |
40468 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
40469 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
40470 | } | |
40471 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
40472 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
40473 | } | |
40474 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
40475 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
40476 | } | |
40477 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
40478 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40479 | } | |
40480 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
40481 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40482 | } | |
40483 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
40484 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
40485 | } | |
40486 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
40487 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
40488 | } | |
40489 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
40490 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
40491 | } | |
40492 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
40493 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
40494 | } | |
40495 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
40496 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
40497 | } | |
40498 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
40499 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
40500 | } | |
580080c5 RD |
40501 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
40502 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
40503 | } | |
554f62e9 RD |
40504 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
40505 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
40506 | } | |
0f83f5da RD |
40507 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
40508 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
40509 | } | |
24f6c4e8 RD |
40510 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
40511 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
40512 | } | |
554f62e9 | 40513 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
26c4d26f | 40514 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
554f62e9 | 40515 | } |
24f6c4e8 RD |
40516 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
40517 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
554f62e9 RD |
40518 | } |
40519 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
40520 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
40521 | } | |
40522 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
40523 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
40524 | } | |
554f62e9 RD |
40525 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
40526 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
40527 | } | |
580080c5 RD |
40528 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
40529 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
40530 | } | |
554f62e9 RD |
40531 | static void *_p_wxImageTo_p_wxObject(void *x) { |
40532 | return (void *)((wxObject *) ((wxImage *) x)); | |
40533 | } | |
40534 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
40535 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
40536 | } | |
70d7cb34 RD |
40537 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
40538 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
40539 | } | |
40540 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
40541 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
40542 | } | |
554f62e9 RD |
40543 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
40544 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
40545 | } | |
40546 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26c4d26f | 40547 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
554f62e9 RD |
40548 | } |
40549 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
40550 | return (void *)((wxObject *) ((wxImageList *) x)); | |
40551 | } | |
72ef6efb RD |
40552 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
40553 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
40554 | } | |
554f62e9 RD |
40555 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
40556 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
40557 | } | |
40558 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
40559 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
40560 | } | |
40561 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
40562 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
40563 | } | |
70d7cb34 RD |
40564 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
40565 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
40566 | } | |
554f62e9 RD |
40567 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
40568 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40569 | } | |
40570 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40571 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40572 | } | |
40573 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40574 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40575 | } | |
40576 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
40577 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
40578 | } | |
40579 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
40580 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
40581 | } | |
40582 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
40583 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
40584 | } | |
40585 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
40586 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
40587 | } | |
554f62e9 RD |
40588 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
40589 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40590 | } | |
40591 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
40592 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
40593 | } | |
40594 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
40595 | return (void *)((wxObject *) ((wxMask *) x)); | |
40596 | } | |
70d7cb34 RD |
40597 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
40598 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
40599 | } | |
554f62e9 RD |
40600 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
40601 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40602 | } | |
40603 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
40604 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
40605 | } | |
40606 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
40607 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
40608 | } | |
40609 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
40610 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
40611 | } | |
40612 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
40613 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
40614 | } | |
40615 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
40616 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
40617 | } | |
40618 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40619 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40620 | } | |
40621 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40622 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40623 | } | |
40624 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40625 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40626 | } | |
40627 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40628 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40629 | } | |
40630 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40631 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40632 | } | |
40633 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
40634 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
40635 | } | |
40636 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
40637 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
40638 | } | |
40639 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
40640 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
40641 | } | |
40642 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
40643 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40644 | } | |
40645 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
40646 | return (void *)((wxObject *) ((wxColour *) x)); | |
40647 | } | |
554f62e9 RD |
40648 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
40649 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
40650 | } | |
40651 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
40652 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
40653 | } | |
40654 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40655 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40656 | } | |
40657 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40658 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40659 | } | |
40660 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40661 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40662 | } | |
fc46b7f3 RD |
40663 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
40664 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
40665 | } | |
40666 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
40667 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
40668 | } | |
40669 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
554f62e9 | 40670 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 40671 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40672 | 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}; |
40673 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
40674 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
40675 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
40676 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 40677 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
40678 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
40679 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 40680 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40681 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
40682 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
40683 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
40684 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
40685 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40686 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
554f62e9 | 40687 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
72ef6efb | 40688 | static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40689 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
40690 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
40691 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
40692 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
40693 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
40694 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 40695 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40696 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
40697 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
554f62e9 RD |
40698 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
40699 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
40700 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
40701 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
40702 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
40703 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
40704 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40705 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 40706 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 40707 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40708 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 40709 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40710 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
40711 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
40712 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40713 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40714 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
40715 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 40716 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40717 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
40718 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
40719 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
40720 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
40721 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
40722 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
40723 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
40724 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
40725 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
40726 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
40727 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
40728 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
40729 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
40730 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
40731 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
40732 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
554f62e9 RD |
40733 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
40734 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
554f62e9 | 40735 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
0f83f5da | 40736 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40737 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
40738 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
40739 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
40740 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
40741 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
40742 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
40743 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
40744 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
40745 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
40746 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
40747 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
40748 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 40749 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40750 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
40751 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
40752 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
40753 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
40754 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
40755 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
40756 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
40757 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
40758 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
40759 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
40760 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
40761 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
40762 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
40763 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
40764 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
40765 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
40766 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
40767 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
40768 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
40769 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
40770 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
40771 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
40772 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
554f62e9 | 40773 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
580080c5 | 40774 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
40775 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
40776 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
40777 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
40778 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
40779 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
40780 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 40781 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 40782 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 40783 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 40784 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40785 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
40786 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
40787 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
0f83f5da | 40788 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
554f62e9 | 40789 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 40790 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40791 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; |
40792 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
40793 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
40794 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
40795 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
40796 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
40797 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
40798 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
40799 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
40800 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
40801 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
40802 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
40803 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
40804 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
40805 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
40806 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
40807 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
40808 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
40809 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
40810 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 40811 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40812 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
40813 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
40814 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
40815 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
40816 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40817 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 40818 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 40819 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40820 | static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40821 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
40822 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
40823 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 40824 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
554f62e9 | 40825 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 40826 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
554f62e9 | 40827 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40828 | static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40829 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
40830 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
40831 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
40832 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
40833 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
40834 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
40835 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 40836 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40837 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
40838 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
40839 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
40840 | ||
40841 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 40842 | &_swigt__p_buffer, |
554f62e9 RD |
40843 | &_swigt__p_char, |
40844 | &_swigt__p_double, | |
40845 | &_swigt__p_form_ops_t, | |
40846 | &_swigt__p_int, | |
40847 | &_swigt__p_unsigned_char, | |
40848 | &_swigt__p_unsigned_int, | |
40849 | &_swigt__p_unsigned_long, | |
0a27f394 | 40850 | &_swigt__p_void, |
554f62e9 RD |
40851 | &_swigt__p_wxANIHandler, |
40852 | &_swigt__p_wxAcceleratorTable, | |
40853 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
40854 | &_swigt__p_wxAlphaPixelData, |
40855 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40856 | &_swigt__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
40857 | &_swigt__p_wxBMPHandler, |
40858 | &_swigt__p_wxBitmap, | |
40859 | &_swigt__p_wxBoxSizer, | |
40860 | &_swigt__p_wxBrush, | |
40861 | &_swigt__p_wxBrushList, | |
40862 | &_swigt__p_wxBufferedDC, | |
40863 | &_swigt__p_wxBufferedPaintDC, | |
40864 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 40865 | &_swigt__p_wxChar, |
554f62e9 RD |
40866 | &_swigt__p_wxChildFocusEvent, |
40867 | &_swigt__p_wxClientDC, | |
2131d850 | 40868 | &_swigt__p_wxClipboardTextEvent, |
554f62e9 | 40869 | &_swigt__p_wxCloseEvent, |
72ef6efb | 40870 | &_swigt__p_wxColor, |
554f62e9 RD |
40871 | &_swigt__p_wxColour, |
40872 | &_swigt__p_wxColourDatabase, | |
40873 | &_swigt__p_wxCommandEvent, | |
40874 | &_swigt__p_wxContextMenuEvent, | |
40875 | &_swigt__p_wxControl, | |
40876 | &_swigt__p_wxControlWithItems, | |
40877 | &_swigt__p_wxCursor, | |
40878 | &_swigt__p_wxDC, | |
70d7cb34 RD |
40879 | &_swigt__p_wxDCBrushChanger, |
40880 | &_swigt__p_wxDCClipper, | |
b39fe951 | 40881 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
40882 | &_swigt__p_wxDCPenChanger, |
40883 | &_swigt__p_wxDCTextColourChanger, | |
554f62e9 RD |
40884 | &_swigt__p_wxDash, |
40885 | &_swigt__p_wxDateEvent, | |
40886 | &_swigt__p_wxDisplayChangedEvent, | |
40887 | &_swigt__p_wxDropFilesEvent, | |
40888 | &_swigt__p_wxDuplexMode, | |
40889 | &_swigt__p_wxEffects, | |
40890 | &_swigt__p_wxEncodingConverter, | |
40891 | &_swigt__p_wxEraseEvent, | |
40892 | &_swigt__p_wxEvent, | |
40893 | &_swigt__p_wxEvtHandler, | |
40894 | &_swigt__p_wxFSFile, | |
40895 | &_swigt__p_wxFileSystem, | |
40896 | &_swigt__p_wxFlexGridSizer, | |
40897 | &_swigt__p_wxFocusEvent, | |
40898 | &_swigt__p_wxFont, | |
40899 | &_swigt__p_wxFontList, | |
40900 | &_swigt__p_wxFontMapper, | |
40901 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 40902 | &_swigt__p_wxGCDC, |
50efceee | 40903 | &_swigt__p_wxGDIObjListBase, |
554f62e9 RD |
40904 | &_swigt__p_wxGDIObject, |
40905 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 40906 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 40907 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
40908 | &_swigt__p_wxGraphicsFont, |
40909 | &_swigt__p_wxGraphicsMatrix, | |
40910 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 40911 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
40912 | &_swigt__p_wxGraphicsPen, |
40913 | &_swigt__p_wxGraphicsRenderer, | |
554f62e9 RD |
40914 | &_swigt__p_wxGridBagSizer, |
40915 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 40916 | &_swigt__p_wxHeaderButtonParams, |
554f62e9 RD |
40917 | &_swigt__p_wxICOHandler, |
40918 | &_swigt__p_wxIcon, | |
40919 | &_swigt__p_wxIconBundle, | |
40920 | &_swigt__p_wxIconLocation, | |
40921 | &_swigt__p_wxIconizeEvent, | |
40922 | &_swigt__p_wxIdleEvent, | |
40923 | &_swigt__p_wxImage, | |
40924 | &_swigt__p_wxImageHandler, | |
40925 | &_swigt__p_wxImageList, | |
40926 | &_swigt__p_wxIndividualLayoutConstraint, | |
40927 | &_swigt__p_wxInitDialogEvent, | |
40928 | &_swigt__p_wxJPEGHandler, | |
40929 | &_swigt__p_wxKeyEvent, | |
40930 | &_swigt__p_wxLanguageInfo, | |
40931 | &_swigt__p_wxLayoutConstraints, | |
40932 | &_swigt__p_wxLocale, | |
40933 | &_swigt__p_wxMask, | |
40934 | &_swigt__p_wxMaximizeEvent, | |
40935 | &_swigt__p_wxMemoryDC, | |
40936 | &_swigt__p_wxMenu, | |
40937 | &_swigt__p_wxMenuBar, | |
40938 | &_swigt__p_wxMenuEvent, | |
40939 | &_swigt__p_wxMenuItem, | |
40940 | &_swigt__p_wxMetaFile, | |
40941 | &_swigt__p_wxMetaFileDC, | |
40942 | &_swigt__p_wxMirrorDC, | |
40943 | &_swigt__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 40944 | &_swigt__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
40945 | &_swigt__p_wxMouseEvent, |
40946 | &_swigt__p_wxMoveEvent, | |
40947 | &_swigt__p_wxNativeEncodingInfo, | |
40948 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40949 | &_swigt__p_wxNativePixelData, |
40950 | &_swigt__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
40951 | &_swigt__p_wxNavigationKeyEvent, |
40952 | &_swigt__p_wxNcPaintEvent, | |
40953 | &_swigt__p_wxNotifyEvent, | |
40954 | &_swigt__p_wxObject, | |
b39fe951 | 40955 | &_swigt__p_wxOverlay, |
554f62e9 RD |
40956 | &_swigt__p_wxPCXHandler, |
40957 | &_swigt__p_wxPNGHandler, | |
40958 | &_swigt__p_wxPNMHandler, | |
40959 | &_swigt__p_wxPaintDC, | |
40960 | &_swigt__p_wxPaintEvent, | |
40961 | &_swigt__p_wxPalette, | |
40962 | &_swigt__p_wxPaletteChangedEvent, | |
40963 | &_swigt__p_wxPaperSize, | |
40964 | &_swigt__p_wxPen, | |
40965 | &_swigt__p_wxPenList, | |
fc46b7f3 | 40966 | &_swigt__p_wxPixelDataBase, |
554f62e9 | 40967 | &_swigt__p_wxPoint, |
72ef6efb | 40968 | &_swigt__p_wxPoint2D, |
70d7cb34 | 40969 | &_swigt__p_wxPoint2DDouble, |
554f62e9 RD |
40970 | &_swigt__p_wxPostScriptDC, |
40971 | &_swigt__p_wxPrintData, | |
40972 | &_swigt__p_wxPrinterDC, | |
27e45892 | 40973 | &_swigt__p_wxPseudoDC, |
554f62e9 RD |
40974 | &_swigt__p_wxPyApp, |
40975 | &_swigt__p_wxPyCommandEvent, | |
40976 | &_swigt__p_wxPyEvent, | |
40977 | &_swigt__p_wxPyFontEnumerator, | |
40978 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 40979 | &_swigt__p_wxPyLocale, |
554f62e9 RD |
40980 | &_swigt__p_wxPySizer, |
40981 | &_swigt__p_wxPyValidator, | |
40982 | &_swigt__p_wxQueryNewPaletteEvent, | |
40983 | &_swigt__p_wxRect, | |
70d7cb34 | 40984 | &_swigt__p_wxRect2DDouble, |
554f62e9 RD |
40985 | &_swigt__p_wxRegion, |
40986 | &_swigt__p_wxRegionIterator, | |
40987 | &_swigt__p_wxRendererNative, | |
40988 | &_swigt__p_wxRendererVersion, | |
40989 | &_swigt__p_wxScreenDC, | |
40990 | &_swigt__p_wxScrollEvent, | |
40991 | &_swigt__p_wxScrollWinEvent, | |
40992 | &_swigt__p_wxSetCursorEvent, | |
40993 | &_swigt__p_wxShowEvent, | |
40994 | &_swigt__p_wxSize, | |
40995 | &_swigt__p_wxSizeEvent, | |
40996 | &_swigt__p_wxSizer, | |
40997 | &_swigt__p_wxSizerItem, | |
40998 | &_swigt__p_wxSplitterRenderParams, | |
40999 | &_swigt__p_wxStaticBoxSizer, | |
41000 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 41001 | &_swigt__p_wxStockGDI, |
554f62e9 RD |
41002 | &_swigt__p_wxString, |
41003 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 41004 | &_swigt__p_wxTGAHandler, |
554f62e9 RD |
41005 | &_swigt__p_wxTIFFHandler, |
41006 | &_swigt__p_wxUpdateUIEvent, | |
41007 | &_swigt__p_wxValidator, | |
41008 | &_swigt__p_wxWindow, | |
41009 | &_swigt__p_wxWindowCreateEvent, | |
41010 | &_swigt__p_wxWindowDC, | |
41011 | &_swigt__p_wxWindowDestroyEvent, | |
41012 | &_swigt__p_wxXPMHandler, | |
41013 | }; | |
41014 | ||
fc46b7f3 | 41015 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41016 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
41017 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
41018 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
41019 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
41020 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
41021 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
41022 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 41023 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
41024 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
41025 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41026 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41027 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
41028 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
41029 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
41030 | 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}}; | |
41031 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41032 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb RD |
41033 | 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}}; |
41034 | static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
41035 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
41036 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
41037 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41038 | 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 |
41039 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
41040 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 41041 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41042 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
41043 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
41044 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
41045 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
41046 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
41047 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
41048 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
41049 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
41050 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 41051 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 41052 | 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 | 41053 | 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 | 41054 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41055 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41056 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
41057 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
41058 | 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 | 41059 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41060 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
41061 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 41062 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41063 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
41064 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
41065 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
41066 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
41067 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
41068 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41069 | 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 | 41070 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 41071 | 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 |
41072 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
41073 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41074 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41075 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
41076 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
41077 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
41078 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 | 41079 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41080 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0f83f5da | 41081 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41082 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41083 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
41084 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41085 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41086 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41087 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41088 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41089 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
41090 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41091 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41092 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41093 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 41094 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41095 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41096 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41097 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41098 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41099 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41100 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41101 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
41102 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41103 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
41104 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41105 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41106 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41107 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41108 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
41109 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41110 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41111 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41112 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41113 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41114 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41115 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41116 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41117 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 | 41118 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 41119 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41120 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
41121 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41122 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41123 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41124 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41125 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41126 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41127 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 41128 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 41129 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41130 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
41131 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41132 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 41133 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41134 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 41135 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41136 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41137 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41138 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41139 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41140 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
41141 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
41142 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41143 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41144 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
41145 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41146 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41147 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41148 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41149 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41150 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41151 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41152 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41153 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
41154 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
41155 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 41156 | 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 | 41157 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41158 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
41159 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
41160 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
41161 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
41162 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41163 | 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 | 41164 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41165 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 41166 | static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41167 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
41168 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
41169 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 41170 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41171 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 41172 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41173 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 41174 | static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41175 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
41176 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
41177 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
41178 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
41179 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41180 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
41181 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 41182 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41183 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
41184 | 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 | 41185 | 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 |
41186 | |
41187 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 41188 | _swigc__p_buffer, |
554f62e9 RD |
41189 | _swigc__p_char, |
41190 | _swigc__p_double, | |
41191 | _swigc__p_form_ops_t, | |
41192 | _swigc__p_int, | |
41193 | _swigc__p_unsigned_char, | |
41194 | _swigc__p_unsigned_int, | |
41195 | _swigc__p_unsigned_long, | |
0a27f394 | 41196 | _swigc__p_void, |
554f62e9 RD |
41197 | _swigc__p_wxANIHandler, |
41198 | _swigc__p_wxAcceleratorTable, | |
41199 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
41200 | _swigc__p_wxAlphaPixelData, |
41201 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 41202 | _swigc__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
41203 | _swigc__p_wxBMPHandler, |
41204 | _swigc__p_wxBitmap, | |
41205 | _swigc__p_wxBoxSizer, | |
41206 | _swigc__p_wxBrush, | |
41207 | _swigc__p_wxBrushList, | |
41208 | _swigc__p_wxBufferedDC, | |
41209 | _swigc__p_wxBufferedPaintDC, | |
41210 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 41211 | _swigc__p_wxChar, |
554f62e9 RD |
41212 | _swigc__p_wxChildFocusEvent, |
41213 | _swigc__p_wxClientDC, | |
2131d850 | 41214 | _swigc__p_wxClipboardTextEvent, |
554f62e9 | 41215 | _swigc__p_wxCloseEvent, |
72ef6efb | 41216 | _swigc__p_wxColor, |
554f62e9 RD |
41217 | _swigc__p_wxColour, |
41218 | _swigc__p_wxColourDatabase, | |
41219 | _swigc__p_wxCommandEvent, | |
41220 | _swigc__p_wxContextMenuEvent, | |
41221 | _swigc__p_wxControl, | |
41222 | _swigc__p_wxControlWithItems, | |
41223 | _swigc__p_wxCursor, | |
41224 | _swigc__p_wxDC, | |
70d7cb34 RD |
41225 | _swigc__p_wxDCBrushChanger, |
41226 | _swigc__p_wxDCClipper, | |
b39fe951 | 41227 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
41228 | _swigc__p_wxDCPenChanger, |
41229 | _swigc__p_wxDCTextColourChanger, | |
554f62e9 RD |
41230 | _swigc__p_wxDash, |
41231 | _swigc__p_wxDateEvent, | |
41232 | _swigc__p_wxDisplayChangedEvent, | |
41233 | _swigc__p_wxDropFilesEvent, | |
41234 | _swigc__p_wxDuplexMode, | |
41235 | _swigc__p_wxEffects, | |
41236 | _swigc__p_wxEncodingConverter, | |
41237 | _swigc__p_wxEraseEvent, | |
41238 | _swigc__p_wxEvent, | |
41239 | _swigc__p_wxEvtHandler, | |
41240 | _swigc__p_wxFSFile, | |
41241 | _swigc__p_wxFileSystem, | |
41242 | _swigc__p_wxFlexGridSizer, | |
41243 | _swigc__p_wxFocusEvent, | |
41244 | _swigc__p_wxFont, | |
41245 | _swigc__p_wxFontList, | |
41246 | _swigc__p_wxFontMapper, | |
41247 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 41248 | _swigc__p_wxGCDC, |
50efceee | 41249 | _swigc__p_wxGDIObjListBase, |
554f62e9 RD |
41250 | _swigc__p_wxGDIObject, |
41251 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 41252 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 41253 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
41254 | _swigc__p_wxGraphicsFont, |
41255 | _swigc__p_wxGraphicsMatrix, | |
41256 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 41257 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
41258 | _swigc__p_wxGraphicsPen, |
41259 | _swigc__p_wxGraphicsRenderer, | |
554f62e9 RD |
41260 | _swigc__p_wxGridBagSizer, |
41261 | _swigc__p_wxGridSizer, | |
33d6fd3b | 41262 | _swigc__p_wxHeaderButtonParams, |
554f62e9 RD |
41263 | _swigc__p_wxICOHandler, |
41264 | _swigc__p_wxIcon, | |
41265 | _swigc__p_wxIconBundle, | |
41266 | _swigc__p_wxIconLocation, | |
41267 | _swigc__p_wxIconizeEvent, | |
41268 | _swigc__p_wxIdleEvent, | |
41269 | _swigc__p_wxImage, | |
41270 | _swigc__p_wxImageHandler, | |
41271 | _swigc__p_wxImageList, | |
41272 | _swigc__p_wxIndividualLayoutConstraint, | |
41273 | _swigc__p_wxInitDialogEvent, | |
41274 | _swigc__p_wxJPEGHandler, | |
41275 | _swigc__p_wxKeyEvent, | |
41276 | _swigc__p_wxLanguageInfo, | |
41277 | _swigc__p_wxLayoutConstraints, | |
41278 | _swigc__p_wxLocale, | |
41279 | _swigc__p_wxMask, | |
41280 | _swigc__p_wxMaximizeEvent, | |
41281 | _swigc__p_wxMemoryDC, | |
41282 | _swigc__p_wxMenu, | |
41283 | _swigc__p_wxMenuBar, | |
41284 | _swigc__p_wxMenuEvent, | |
41285 | _swigc__p_wxMenuItem, | |
41286 | _swigc__p_wxMetaFile, | |
41287 | _swigc__p_wxMetaFileDC, | |
41288 | _swigc__p_wxMirrorDC, | |
41289 | _swigc__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 41290 | _swigc__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
41291 | _swigc__p_wxMouseEvent, |
41292 | _swigc__p_wxMoveEvent, | |
41293 | _swigc__p_wxNativeEncodingInfo, | |
41294 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
41295 | _swigc__p_wxNativePixelData, |
41296 | _swigc__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
41297 | _swigc__p_wxNavigationKeyEvent, |
41298 | _swigc__p_wxNcPaintEvent, | |
41299 | _swigc__p_wxNotifyEvent, | |
41300 | _swigc__p_wxObject, | |
b39fe951 | 41301 | _swigc__p_wxOverlay, |
554f62e9 RD |
41302 | _swigc__p_wxPCXHandler, |
41303 | _swigc__p_wxPNGHandler, | |
41304 | _swigc__p_wxPNMHandler, | |
41305 | _swigc__p_wxPaintDC, | |
41306 | _swigc__p_wxPaintEvent, | |
41307 | _swigc__p_wxPalette, | |
41308 | _swigc__p_wxPaletteChangedEvent, | |
41309 | _swigc__p_wxPaperSize, | |
41310 | _swigc__p_wxPen, | |
41311 | _swigc__p_wxPenList, | |
fc46b7f3 | 41312 | _swigc__p_wxPixelDataBase, |
554f62e9 | 41313 | _swigc__p_wxPoint, |
72ef6efb | 41314 | _swigc__p_wxPoint2D, |
70d7cb34 | 41315 | _swigc__p_wxPoint2DDouble, |
554f62e9 RD |
41316 | _swigc__p_wxPostScriptDC, |
41317 | _swigc__p_wxPrintData, | |
41318 | _swigc__p_wxPrinterDC, | |
27e45892 | 41319 | _swigc__p_wxPseudoDC, |
554f62e9 RD |
41320 | _swigc__p_wxPyApp, |
41321 | _swigc__p_wxPyCommandEvent, | |
41322 | _swigc__p_wxPyEvent, | |
41323 | _swigc__p_wxPyFontEnumerator, | |
41324 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 41325 | _swigc__p_wxPyLocale, |
554f62e9 RD |
41326 | _swigc__p_wxPySizer, |
41327 | _swigc__p_wxPyValidator, | |
41328 | _swigc__p_wxQueryNewPaletteEvent, | |
41329 | _swigc__p_wxRect, | |
70d7cb34 | 41330 | _swigc__p_wxRect2DDouble, |
554f62e9 RD |
41331 | _swigc__p_wxRegion, |
41332 | _swigc__p_wxRegionIterator, | |
41333 | _swigc__p_wxRendererNative, | |
41334 | _swigc__p_wxRendererVersion, | |
41335 | _swigc__p_wxScreenDC, | |
41336 | _swigc__p_wxScrollEvent, | |
41337 | _swigc__p_wxScrollWinEvent, | |
41338 | _swigc__p_wxSetCursorEvent, | |
41339 | _swigc__p_wxShowEvent, | |
41340 | _swigc__p_wxSize, | |
41341 | _swigc__p_wxSizeEvent, | |
41342 | _swigc__p_wxSizer, | |
41343 | _swigc__p_wxSizerItem, | |
41344 | _swigc__p_wxSplitterRenderParams, | |
41345 | _swigc__p_wxStaticBoxSizer, | |
41346 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 41347 | _swigc__p_wxStockGDI, |
554f62e9 RD |
41348 | _swigc__p_wxString, |
41349 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 41350 | _swigc__p_wxTGAHandler, |
554f62e9 RD |
41351 | _swigc__p_wxTIFFHandler, |
41352 | _swigc__p_wxUpdateUIEvent, | |
41353 | _swigc__p_wxValidator, | |
41354 | _swigc__p_wxWindow, | |
41355 | _swigc__p_wxWindowCreateEvent, | |
41356 | _swigc__p_wxWindowDC, | |
41357 | _swigc__p_wxWindowDestroyEvent, | |
41358 | _swigc__p_wxXPMHandler, | |
41359 | }; | |
41360 | ||
41361 | ||
41362 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
41363 | ||
41364 | static swig_const_info swig_const_table[] = { | |
41365 | {0, 0, 0, 0.0, 0, 0}}; | |
41366 | ||
41367 | #ifdef __cplusplus | |
41368 | } | |
41369 | #endif | |
41370 | /* ----------------------------------------------------------------------------- | |
41371 | * Type initialization: | |
41372 | * This problem is tough by the requirement that no dynamic | |
41373 | * memory is used. Also, since swig_type_info structures store pointers to | |
41374 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
41375 | * to swig_type_info structures, we need some lookup code at initialization. | |
41376 | * The idea is that swig generates all the structures that are needed. | |
41377 | * The runtime then collects these partially filled structures. | |
41378 | * The SWIG_InitializeModule function takes these initial arrays out of | |
41379 | * swig_module, and does all the lookup, filling in the swig_module.types | |
41380 | * array with the correct data and linking the correct swig_cast_info | |
41381 | * structures together. | |
41382 | * | |
41383 | * The generated swig_type_info structures are assigned staticly to an initial | |
41384 | * array. We just loop though that array, and handle each type individually. | |
41385 | * First we lookup if this type has been already loaded, and if so, use the | |
41386 | * loaded structure instead of the generated one. Then we have to fill in the | |
41387 | * cast linked list. The cast data is initially stored in something like a | |
41388 | * two-dimensional array. Each row corresponds to a type (there are the same | |
41389 | * number of rows as there are in the swig_type_initial array). Each entry in | |
41390 | * a column is one of the swig_cast_info structures for that type. | |
41391 | * The cast_initial array is actually an array of arrays, because each row has | |
41392 | * a variable number of columns. So to actually build the cast linked list, | |
41393 | * we find the array of casts associated with the type, and loop through it | |
41394 | * adding the casts to the list. The one last trick we need to do is making | |
41395 | * sure the type pointer in the swig_cast_info struct is correct. | |
41396 | * | |
41397 | * First off, we lookup the cast->type name to see if it is already loaded. | |
41398 | * There are three cases to handle: | |
41399 | * 1) If the cast->type has already been loaded AND the type we are adding | |
41400 | * casting info to has not been loaded (it is in this module), THEN we | |
41401 | * replace the cast->type pointer with the type pointer that has already | |
41402 | * been loaded. | |
41403 | * 2) If BOTH types (the one we are adding casting info to, and the | |
41404 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
41405 | * the previous module so we just ignore it. | |
41406 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
41407 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
41408 | * be correct. | |
41409 | * ----------------------------------------------------------------------------- */ | |
41410 | ||
41411 | #ifdef __cplusplus | |
41412 | extern "C" { | |
41413 | #if 0 | |
41414 | } /* c-mode */ | |
41415 | #endif | |
41416 | #endif | |
41417 | ||
41418 | #if 0 | |
41419 | #define SWIGRUNTIME_DEBUG | |
41420 | #endif | |
41421 | ||
41422 | SWIGRUNTIME void | |
41423 | SWIG_InitializeModule(void *clientdata) { | |
41424 | size_t i; | |
41425 | swig_module_info *module_head; | |
41426 | static int init_run = 0; | |
41427 | ||
41428 | clientdata = clientdata; | |
41429 | ||
41430 | if (init_run) return; | |
41431 | init_run = 1; | |
41432 | ||
41433 | /* Initialize the swig_module */ | |
41434 | swig_module.type_initial = swig_type_initial; | |
41435 | swig_module.cast_initial = swig_cast_initial; | |
41436 | ||
41437 | /* Try and load any already created modules */ | |
41438 | module_head = SWIG_GetModule(clientdata); | |
41439 | if (module_head) { | |
41440 | swig_module.next = module_head->next; | |
41441 | module_head->next = &swig_module; | |
41442 | } else { | |
41443 | /* This is the first module loaded */ | |
41444 | swig_module.next = &swig_module; | |
41445 | SWIG_SetModule(clientdata, &swig_module); | |
41446 | } | |
41447 | ||
41448 | /* Now work on filling in swig_module.types */ | |
41449 | #ifdef SWIGRUNTIME_DEBUG | |
41450 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
41451 | #endif | |
41452 | for (i = 0; i < swig_module.size; ++i) { | |
41453 | swig_type_info *type = 0; | |
41454 | swig_type_info *ret; | |
41455 | swig_cast_info *cast; | |
41456 | ||
41457 | #ifdef SWIGRUNTIME_DEBUG | |
41458 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
41459 | #endif | |
41460 | ||
41461 | /* if there is another module already loaded */ | |
41462 | if (swig_module.next != &swig_module) { | |
41463 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
be9b1dca | 41464 | } |
554f62e9 RD |
41465 | if (type) { |
41466 | /* Overwrite clientdata field */ | |
41467 | #ifdef SWIGRUNTIME_DEBUG | |
41468 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
41469 | #endif | |
41470 | if (swig_module.type_initial[i]->clientdata) { | |
41471 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
41472 | #ifdef SWIGRUNTIME_DEBUG | |
41473 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
41474 | #endif | |
41475 | } | |
41476 | } else { | |
41477 | type = swig_module.type_initial[i]; | |
be9b1dca | 41478 | } |
554f62e9 RD |
41479 | |
41480 | /* Insert casting types */ | |
41481 | cast = swig_module.cast_initial[i]; | |
41482 | while (cast->type) { | |
41483 | /* Don't need to add information already in the list */ | |
41484 | ret = 0; | |
41485 | #ifdef SWIGRUNTIME_DEBUG | |
41486 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
41487 | #endif | |
41488 | if (swig_module.next != &swig_module) { | |
41489 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
41490 | #ifdef SWIGRUNTIME_DEBUG | |
41491 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
41492 | #endif | |
41493 | } | |
41494 | if (ret) { | |
41495 | if (type == swig_module.type_initial[i]) { | |
41496 | #ifdef SWIGRUNTIME_DEBUG | |
41497 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
41498 | #endif | |
41499 | cast->type = ret; | |
41500 | ret = 0; | |
41501 | } else { | |
41502 | /* Check for casting already in the list */ | |
41503 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
41504 | #ifdef SWIGRUNTIME_DEBUG | |
41505 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
41506 | #endif | |
41507 | if (!ocast) ret = 0; | |
41508 | } | |
41509 | } | |
41510 | ||
41511 | if (!ret) { | |
41512 | #ifdef SWIGRUNTIME_DEBUG | |
41513 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
41514 | #endif | |
41515 | if (type->cast) { | |
41516 | type->cast->prev = cast; | |
41517 | cast->next = type->cast; | |
41518 | } | |
41519 | type->cast = cast; | |
41520 | } | |
41521 | cast++; | |
be9b1dca | 41522 | } |
554f62e9 RD |
41523 | /* Set entry in modules->types array equal to the type */ |
41524 | swig_module.types[i] = type; | |
41525 | } | |
41526 | swig_module.types[i] = 0; | |
41527 | ||
41528 | #ifdef SWIGRUNTIME_DEBUG | |
41529 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
41530 | for (i = 0; i < swig_module.size; ++i) { | |
41531 | int j = 0; | |
41532 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
41533 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
41534 | while (cast->type) { | |
41535 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
41536 | cast++; | |
41537 | ++j; | |
41538 | } | |
41539 | printf("---- Total casts: %d\n",j); | |
41540 | } | |
41541 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
41542 | #endif | |
41543 | } | |
41544 | ||
41545 | /* This function will propagate the clientdata field of type to | |
41546 | * any new swig_type_info structures that have been added into the list | |
41547 | * of equivalent types. It is like calling | |
41548 | * SWIG_TypeClientData(type, clientdata) a second time. | |
41549 | */ | |
41550 | SWIGRUNTIME void | |
41551 | SWIG_PropagateClientData(void) { | |
41552 | size_t i; | |
41553 | swig_cast_info *equiv; | |
41554 | static int init_run = 0; | |
41555 | ||
41556 | if (init_run) return; | |
41557 | init_run = 1; | |
41558 | ||
41559 | for (i = 0; i < swig_module.size; i++) { | |
41560 | if (swig_module.types[i]->clientdata) { | |
41561 | equiv = swig_module.types[i]->cast; | |
41562 | while (equiv) { | |
41563 | if (!equiv->converter) { | |
41564 | if (equiv->type && !equiv->type->clientdata) | |
41565 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
41566 | } | |
41567 | equiv = equiv->next; | |
41568 | } | |
be9b1dca | 41569 | } |
554f62e9 RD |
41570 | } |
41571 | } | |
41572 | ||
41573 | #ifdef __cplusplus | |
41574 | #if 0 | |
41575 | { | |
41576 | /* c-mode */ | |
41577 | #endif | |
41578 | } | |
41579 | #endif | |
41580 | ||
41581 | ||
41582 | ||
41583 | #ifdef __cplusplus | |
41584 | extern "C" { | |
41585 | #endif | |
41586 | ||
41587 | /* Python-specific SWIG API */ | |
41588 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
41589 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
41590 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
41591 | ||
41592 | /* ----------------------------------------------------------------------------- | |
41593 | * global variable support code. | |
41594 | * ----------------------------------------------------------------------------- */ | |
41595 | ||
41596 | typedef struct swig_globalvar { | |
41597 | char *name; /* Name of global variable */ | |
41598 | PyObject *(*get_attr)(void); /* Return the current value */ | |
41599 | int (*set_attr)(PyObject *); /* Set the value */ | |
41600 | struct swig_globalvar *next; | |
41601 | } swig_globalvar; | |
41602 | ||
41603 | typedef struct swig_varlinkobject { | |
41604 | PyObject_HEAD | |
41605 | swig_globalvar *vars; | |
41606 | } swig_varlinkobject; | |
41607 | ||
41608 | SWIGINTERN PyObject * | |
41609 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
41610 | return PyString_FromString("<Swig global variables>"); | |
41611 | } | |
41612 | ||
41613 | SWIGINTERN PyObject * | |
41614 | swig_varlink_str(swig_varlinkobject *v) { | |
41615 | PyObject *str = PyString_FromString("("); | |
41616 | swig_globalvar *var; | |
41617 | for (var = v->vars; var; var=var->next) { | |
41618 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
41619 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
41620 | } | |
41621 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
41622 | return str; | |
41623 | } | |
41624 | ||
41625 | SWIGINTERN int | |
41626 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
41627 | PyObject *str = swig_varlink_str(v); | |
41628 | fprintf(fp,"Swig global variables "); | |
41629 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
41630 | Py_DECREF(str); | |
41631 | return 0; | |
41632 | } | |
41633 | ||
41634 | SWIGINTERN void | |
41635 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
41636 | swig_globalvar *var = v->vars; | |
41637 | while (var) { | |
41638 | swig_globalvar *n = var->next; | |
41639 | free(var->name); | |
41640 | free(var); | |
41641 | var = n; | |
be9b1dca | 41642 | } |
554f62e9 RD |
41643 | } |
41644 | ||
41645 | SWIGINTERN PyObject * | |
41646 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
41647 | PyObject *res = NULL; | |
41648 | swig_globalvar *var = v->vars; | |
41649 | while (var) { | |
41650 | if (strcmp(var->name,n) == 0) { | |
41651 | res = (*var->get_attr)(); | |
41652 | break; | |
41653 | } | |
41654 | var = var->next; | |
be9b1dca | 41655 | } |
554f62e9 RD |
41656 | if (res == NULL && !PyErr_Occurred()) { |
41657 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 41658 | } |
554f62e9 RD |
41659 | return res; |
41660 | } | |
41661 | ||
41662 | SWIGINTERN int | |
41663 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
41664 | int res = 1; | |
41665 | swig_globalvar *var = v->vars; | |
41666 | while (var) { | |
41667 | if (strcmp(var->name,n) == 0) { | |
41668 | res = (*var->set_attr)(p); | |
41669 | break; | |
41670 | } | |
41671 | var = var->next; | |
be9b1dca | 41672 | } |
554f62e9 RD |
41673 | if (res == 1 && !PyErr_Occurred()) { |
41674 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 41675 | } |
554f62e9 RD |
41676 | return res; |
41677 | } | |
41678 | ||
41679 | SWIGINTERN PyTypeObject* | |
41680 | swig_varlink_type(void) { | |
41681 | static char varlink__doc__[] = "Swig var link object"; | |
41682 | static PyTypeObject varlink_type; | |
41683 | static int type_init = 0; | |
41684 | if (!type_init) { | |
41685 | const PyTypeObject tmp | |
41686 | = { | |
41687 | PyObject_HEAD_INIT(NULL) | |
41688 | 0, /* Number of items in variable part (ob_size) */ | |
41689 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
41690 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
41691 | 0, /* Itemsize (tp_itemsize) */ | |
41692 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
41693 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
41694 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
41695 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
41696 | 0, /* tp_compare */ | |
41697 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
41698 | 0, /* tp_as_number */ | |
41699 | 0, /* tp_as_sequence */ | |
41700 | 0, /* tp_as_mapping */ | |
41701 | 0, /* tp_hash */ | |
41702 | 0, /* tp_call */ | |
41703 | (reprfunc)swig_varlink_str, /* tp_str */ | |
41704 | 0, /* tp_getattro */ | |
41705 | 0, /* tp_setattro */ | |
41706 | 0, /* tp_as_buffer */ | |
41707 | 0, /* tp_flags */ | |
41708 | varlink__doc__, /* tp_doc */ | |
41709 | 0, /* tp_traverse */ | |
41710 | 0, /* tp_clear */ | |
41711 | 0, /* tp_richcompare */ | |
41712 | 0, /* tp_weaklistoffset */ | |
41713 | #if PY_VERSION_HEX >= 0x02020000 | |
41714 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
41715 | #endif | |
41716 | #if PY_VERSION_HEX >= 0x02030000 | |
41717 | 0, /* tp_del */ | |
41718 | #endif | |
41719 | #ifdef COUNT_ALLOCS | |
41720 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
41721 | #endif | |
41722 | }; | |
41723 | varlink_type = tmp; | |
41724 | varlink_type.ob_type = &PyType_Type; | |
41725 | type_init = 1; | |
be9b1dca | 41726 | } |
554f62e9 RD |
41727 | return &varlink_type; |
41728 | } | |
41729 | ||
41730 | /* Create a variable linking object for use later */ | |
41731 | SWIGINTERN PyObject * | |
41732 | SWIG_Python_newvarlink(void) { | |
41733 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
41734 | if (result) { | |
41735 | result->vars = 0; | |
41736 | } | |
41737 | return ((PyObject*) result); | |
41738 | } | |
41739 | ||
41740 | SWIGINTERN void | |
41741 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
41742 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
41743 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
41744 | if (gv) { | |
41745 | size_t size = strlen(name)+1; | |
41746 | gv->name = (char *)malloc(size); | |
41747 | if (gv->name) { | |
41748 | strncpy(gv->name,name,size); | |
41749 | gv->get_attr = get_attr; | |
41750 | gv->set_attr = set_attr; | |
41751 | gv->next = v->vars; | |
41752 | } | |
be9b1dca | 41753 | } |
554f62e9 RD |
41754 | v->vars = gv; |
41755 | } | |
41756 | ||
41757 | SWIGINTERN PyObject * | |
41758 | SWIG_globals() { | |
41759 | static PyObject *_SWIG_globals = 0; | |
41760 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
41761 | return _SWIG_globals; | |
41762 | } | |
41763 | ||
41764 | /* ----------------------------------------------------------------------------- | |
41765 | * constants/methods manipulation | |
41766 | * ----------------------------------------------------------------------------- */ | |
41767 | ||
41768 | /* Install Constants */ | |
41769 | SWIGINTERN void | |
41770 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
41771 | PyObject *obj = 0; | |
41772 | size_t i; | |
41773 | for (i = 0; constants[i].type; ++i) { | |
41774 | switch(constants[i].type) { | |
41775 | case SWIG_PY_POINTER: | |
41776 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
41777 | break; | |
41778 | case SWIG_PY_BINARY: | |
41779 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
41780 | break; | |
41781 | default: | |
41782 | obj = 0; | |
41783 | break; | |
41784 | } | |
41785 | if (obj) { | |
41786 | PyDict_SetItemString(d, constants[i].name, obj); | |
41787 | Py_DECREF(obj); | |
41788 | } | |
be9b1dca | 41789 | } |
554f62e9 RD |
41790 | } |
41791 | ||
41792 | /* -----------------------------------------------------------------------------*/ | |
41793 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41794 | /* -----------------------------------------------------------------------------*/ | |
41795 | ||
41796 | SWIGINTERN void | |
41797 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
41798 | swig_const_info *const_table, | |
41799 | swig_type_info **types, | |
41800 | swig_type_info **types_initial) { | |
41801 | size_t i; | |
41802 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 41803 | const char *c = methods[i].ml_doc; |
554f62e9 RD |
41804 | if (c && (c = strstr(c, "swig_ptr: "))) { |
41805 | int j; | |
41806 | swig_const_info *ci = 0; | |
453fb36b | 41807 | const char *name = c + 10; |
554f62e9 RD |
41808 | for (j = 0; const_table[j].type; ++j) { |
41809 | if (strncmp(const_table[j].name, name, | |
41810 | strlen(const_table[j].name)) == 0) { | |
41811 | ci = &(const_table[j]); | |
41812 | break; | |
41813 | } | |
41814 | } | |
41815 | if (ci) { | |
41816 | size_t shift = (ci->ptype) - types; | |
41817 | swig_type_info *ty = types_initial[shift]; | |
41818 | size_t ldoc = (c - methods[i].ml_doc); | |
41819 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
41820 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
41821 | if (ndoc) { | |
41822 | char *buff = ndoc; | |
41823 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
41824 | if (ptr) { | |
41825 | strncpy(buff, methods[i].ml_doc, ldoc); | |
41826 | buff += ldoc; | |
41827 | strncpy(buff, "swig_ptr: ", 10); | |
41828 | buff += 10; | |
41829 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
41830 | methods[i].ml_doc = ndoc; | |
41831 | } | |
41832 | } | |
41833 | } | |
41834 | } | |
be9b1dca | 41835 | } |
554f62e9 RD |
41836 | } |
41837 | ||
41838 | #ifdef __cplusplus | |
41839 | } | |
41840 | #endif | |
41841 | ||
41842 | /* -----------------------------------------------------------------------------* | |
41843 | * Partial Init method | |
41844 | * -----------------------------------------------------------------------------*/ | |
41845 | ||
41846 | #ifdef __cplusplus | |
41847 | extern "C" | |
41848 | #endif | |
41849 | SWIGEXPORT void SWIG_init(void) { | |
41850 | PyObject *m, *d; | |
41851 | ||
41852 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41853 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
41854 | ||
41855 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41856 | d = PyModule_GetDict(m); | |
41857 | ||
41858 | SWIG_InitializeModule(0); | |
41859 | SWIG_InstallConstants(d,swig_const_table); | |
41860 | ||
41861 | ||
f460c29d RD |
41862 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
41863 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
41864 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
41865 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
41866 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
554f62e9 RD |
41867 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
41868 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
41869 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
41870 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
41871 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
41872 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
41873 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
41874 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
41875 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
41876 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
41877 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
41878 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
41879 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
41880 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
41881 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
41882 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
41883 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
41884 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
41885 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
41886 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
41887 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
41888 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
41889 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
41890 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
41891 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
41892 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
41893 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
41894 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
41895 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
41896 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
41897 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
41898 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
41899 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
41900 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
41901 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
41902 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
41903 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
41904 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
41905 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
41906 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
41907 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
41908 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
41909 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
41910 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
41911 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
41912 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
41913 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
41914 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
41915 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
41916 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
41917 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
41918 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
41919 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
41920 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
41921 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
41922 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
41923 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
41924 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
41925 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
41926 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
41927 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
41928 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
41929 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
41930 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
41931 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
41932 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
41933 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
41934 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
41935 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
41936 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
41937 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
41938 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
41939 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
41940 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
41941 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
41942 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
41943 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
41944 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
41945 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
41946 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
41947 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
41948 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
41949 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
41950 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
41951 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
41952 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
41953 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
41954 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
41955 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
41956 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
41957 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
41958 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
41959 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
41960 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
41961 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
41962 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
41963 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
41964 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
41965 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
41966 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
41967 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
41968 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
41969 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
41970 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
41971 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
41972 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
41973 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
41974 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
41975 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
41976 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
41977 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
41978 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
41979 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
41980 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
41981 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
41982 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
41983 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
41984 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
41985 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
41986 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
41987 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
41988 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
41989 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
41990 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
41991 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
41992 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
41993 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
41994 | ||
41995 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
41996 | ||
41997 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
41998 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
41999 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
42000 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
42001 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
42002 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
42003 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
42004 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
42005 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
42006 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
42007 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
42008 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
42009 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
42010 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
42011 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
42012 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
42013 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
42014 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
42015 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
42016 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
42017 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
42018 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
42019 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
42020 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
42021 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
42022 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
42023 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
42024 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
42025 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
42026 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
42027 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
42028 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
42029 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
42030 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
42031 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
42032 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
42033 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
42034 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
42035 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
42036 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
42037 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
42038 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
42039 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
42040 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
42041 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
42042 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
42043 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
42044 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
42045 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
42046 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
42047 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
42048 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
42049 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
42050 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
42051 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
42052 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
42053 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
42054 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
42055 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
42056 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
42057 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
42058 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
42059 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
42060 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
42061 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
42062 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
42063 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
42064 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
42065 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
42066 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
42067 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
42068 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
42069 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
42070 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
42071 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
42072 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
42073 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
42074 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
42075 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
42076 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
42077 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
42078 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
42079 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
42080 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
42081 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
42082 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
42083 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
42084 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
42085 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
42086 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
42087 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
42088 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
42089 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
42090 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
42091 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
42092 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
42093 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
42094 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
42095 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
42096 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
42097 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
42098 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
42099 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
42100 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
42101 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
42102 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
42103 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
42104 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
42105 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
42106 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
42107 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
42108 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
42109 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
42110 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
42111 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
42112 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
42113 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
42114 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
42115 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
42116 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
42117 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
42118 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
42119 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
42120 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
42121 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
42122 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
42123 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
42124 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
42125 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
42126 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
42127 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
42128 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
42129 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
42130 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
42131 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
42132 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
42133 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
42134 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
42135 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
42136 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
42137 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
42138 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
42139 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
42140 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
42141 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
42142 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
42143 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
42144 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
42145 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
42146 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
42147 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
42148 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
42149 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
42150 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
42151 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
42152 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
42153 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
42154 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
42155 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
42156 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
42157 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
42158 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
42159 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
42160 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
42161 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
42162 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
42163 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
42164 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
42165 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
42166 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
42167 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
42168 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
42169 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
42170 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
42171 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
42172 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
42173 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
42174 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
42175 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
42176 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
42177 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
42178 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
42179 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
42180 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
42181 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
42182 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
42183 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
42184 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
42185 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
42186 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
42187 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
42188 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
42189 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
42190 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
42191 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
42192 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
42193 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
42194 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
42195 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
42196 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
42197 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
42198 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
42199 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
42200 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
42201 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
42202 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
42203 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
42204 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
42205 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
42206 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
42207 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
42208 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
42209 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
42210 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
42211 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
42212 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
42213 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
42214 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
42215 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
42216 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
42217 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
42218 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
42219 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
42220 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
42221 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
42222 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
42223 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
42224 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
42225 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
42226 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
42227 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
42228 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
42229 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
42230 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
42231 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
42232 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
42233 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
42234 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
42235 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
42236 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
42237 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
42238 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
42239 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
42240 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
42241 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
42242 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
42243 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
42244 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
70d7cb34 RD |
42245 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
42246 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
42247 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
42248 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
42249 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
42250 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
554f62e9 RD |
42251 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
42252 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
42253 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
42254 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
42255 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
42256 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
42257 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
42258 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
42259 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
42260 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
42261 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
42262 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
42263 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
42264 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
42265 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
42266 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
42267 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
42268 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
42269 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
42270 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
42271 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
42272 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
42273 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
42274 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
42275 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
42276 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
42277 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
42278 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
42279 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
42280 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
42281 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
42282 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
42283 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
42284 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
42285 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
42286 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
42287 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
42288 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
42289 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
42290 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
42291 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
42292 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
554f62e9 RD |
42293 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
42294 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
42295 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
42296 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
42297 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
42298 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
42299 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
42300 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
554f62e9 RD |
42301 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
42302 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
42303 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 42304 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
554f62e9 RD |
42305 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
42306 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
42307 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 42308 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
554f62e9 RD |
42309 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
42310 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
42311 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
42312 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
42313 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
42314 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
42315 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
42316 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
42317 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
42318 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
554f62e9 RD |
42319 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
42320 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
42321 | ||
42322 | // Work around a chicken/egg problem in drawlist.cpp | |
42323 | wxPyDrawList_SetAPIPtr(); | |
42324 | ||
d55e5bfc RD |
42325 | } |
42326 |