]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/fonts.cpp
fixed initial focus handling in the dialog and made SetFocus() send the focus
[wxWidgets.git] / wxPython / src / gtk / fonts.cpp
1 /*
2 * FILE : src/gtk/fonts.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initfontsc
55
56 #define SWIG_name "fontsc"
57
58 #include "helpers.h"
59 #include <wx/fontmap.h>
60 #include <wx/fontenc.h>
61 #include <wx/fontutil.h>
62 #include <wx/fontenum.h>
63 #include <wx/intl.h>
64 #include <wx/encconv.h>
65
66
67 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
68 PyObject* o2;
69 PyObject* o3;
70
71 if (!target) {
72 target = o;
73 } else if (target == Py_None) {
74 Py_DECREF(Py_None);
75 target = o;
76 } else {
77 if (!PyTuple_Check(target)) {
78 o2 = target;
79 target = PyTuple_New(1);
80 PyTuple_SetItem(target, 0, o2);
81 }
82 o3 = PyTuple_New(1);
83 PyTuple_SetItem(o3, 0, o);
84
85 o2 = target;
86 target = PySequence_Concat(o2, o3);
87 Py_DECREF(o2);
88 Py_DECREF(o3);
89 }
90 return target;
91 }
92
93 // Put some wx default wxChar* values into wxStrings.
94 static const wxString wxPyEmptyString(wxT(""));
95
96 class wxPyFontEnumerator : public wxFontEnumerator {
97 public:
98 wxPyFontEnumerator() {}
99 ~wxPyFontEnumerator() {}
100
101 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
102 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
103
104 PYPRIVATE;
105 };
106
107 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
108 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
109
110 #ifdef __cplusplus
111 extern "C" {
112 #endif
113 static PyObject *_wrap_wxGetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
114 PyObject * _resultobj;
115 wxLocale * _result;
116 char *_kwnames[] = { NULL };
117 char _ptemp[128];
118
119 self = self;
120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetLocale",_kwnames))
121 return NULL;
122 {
123 PyThreadState* __tstate = wxPyBeginAllowThreads();
124 _result = (wxLocale *)wxGetLocale();
125
126 wxPyEndAllowThreads(__tstate);
127 if (PyErr_Occurred()) return NULL;
128 } if (_result) {
129 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLocale_p");
130 _resultobj = Py_BuildValue("s",_ptemp);
131 } else {
132 Py_INCREF(Py_None);
133 _resultobj = Py_None;
134 }
135 return _resultobj;
136 }
137
138 static PyObject *_wrap_wxGetTranslation(PyObject *self, PyObject *args, PyObject *kwargs) {
139 PyObject * _resultobj;
140 wxString * _result;
141 wxString * _arg0;
142 PyObject * _obj0 = 0;
143 char *_kwnames[] = { "sz", NULL };
144
145 self = self;
146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetTranslation",_kwnames,&_obj0))
147 return NULL;
148 {
149 _arg0 = wxString_in_helper(_obj0);
150 if (_arg0 == NULL)
151 return NULL;
152 }
153 {
154 PyThreadState* __tstate = wxPyBeginAllowThreads();
155 _result = new wxString (wxGetTranslation(*_arg0));
156
157 wxPyEndAllowThreads(__tstate);
158 if (PyErr_Occurred()) return NULL;
159 }{
160 #if wxUSE_UNICODE
161 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
162 #else
163 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
164 #endif
165 }
166 {
167 if (_obj0)
168 delete _arg0;
169 }
170 {
171 delete _result;
172 }
173 return _resultobj;
174 }
175
176 #define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0))
177 static PyObject *_wrap_wxNativeFontInfo_FromXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
178 PyObject * _resultobj;
179 bool _result;
180 wxNativeFontInfo * _arg0;
181 wxString * _arg1;
182 PyObject * _argo0 = 0;
183 PyObject * _obj1 = 0;
184 char *_kwnames[] = { "self","xFontName", NULL };
185
186 self = self;
187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromXFontName",_kwnames,&_argo0,&_obj1))
188 return NULL;
189 if (_argo0) {
190 if (_argo0 == Py_None) { _arg0 = NULL; }
191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p.");
193 return NULL;
194 }
195 }
196 {
197 _arg1 = wxString_in_helper(_obj1);
198 if (_arg1 == NULL)
199 return NULL;
200 }
201 {
202 PyThreadState* __tstate = wxPyBeginAllowThreads();
203 _result = (bool )wxNativeFontInfo_FromXFontName(_arg0,*_arg1);
204
205 wxPyEndAllowThreads(__tstate);
206 if (PyErr_Occurred()) return NULL;
207 } _resultobj = Py_BuildValue("i",_result);
208 {
209 if (_obj1)
210 delete _arg1;
211 }
212 return _resultobj;
213 }
214
215 #define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault())
216 static PyObject *_wrap_wxNativeFontInfo_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
217 PyObject * _resultobj;
218 bool _result;
219 wxNativeFontInfo * _arg0;
220 PyObject * _argo0 = 0;
221 char *_kwnames[] = { "self", NULL };
222
223 self = self;
224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_IsDefault",_kwnames,&_argo0))
225 return NULL;
226 if (_argo0) {
227 if (_argo0 == Py_None) { _arg0 = NULL; }
228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p.");
230 return NULL;
231 }
232 }
233 {
234 PyThreadState* __tstate = wxPyBeginAllowThreads();
235 _result = (bool )wxNativeFontInfo_IsDefault(_arg0);
236
237 wxPyEndAllowThreads(__tstate);
238 if (PyErr_Occurred()) return NULL;
239 } _resultobj = Py_BuildValue("i",_result);
240 return _resultobj;
241 }
242
243 #define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName())
244 static PyObject *_wrap_wxNativeFontInfo_GetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
245 PyObject * _resultobj;
246 wxString * _result;
247 wxNativeFontInfo * _arg0;
248 PyObject * _argo0 = 0;
249 char *_kwnames[] = { "self", NULL };
250
251 self = self;
252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetXFontName",_kwnames,&_argo0))
253 return NULL;
254 if (_argo0) {
255 if (_argo0 == Py_None) { _arg0 = NULL; }
256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p.");
258 return NULL;
259 }
260 }
261 {
262 PyThreadState* __tstate = wxPyBeginAllowThreads();
263 _result = new wxString (wxNativeFontInfo_GetXFontName(_arg0));
264
265 wxPyEndAllowThreads(__tstate);
266 if (PyErr_Occurred()) return NULL;
267 }{
268 #if wxUSE_UNICODE
269 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
270 #else
271 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
272 #endif
273 }
274 {
275 delete _result;
276 }
277 return _resultobj;
278 }
279
280 #define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0))
281 static PyObject *_wrap_wxNativeFontInfo_SetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
282 PyObject * _resultobj;
283 wxNativeFontInfo * _arg0;
284 wxString * _arg1;
285 PyObject * _argo0 = 0;
286 PyObject * _obj1 = 0;
287 char *_kwnames[] = { "self","xFontName", NULL };
288
289 self = self;
290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetXFontName",_kwnames,&_argo0,&_obj1))
291 return NULL;
292 if (_argo0) {
293 if (_argo0 == Py_None) { _arg0 = NULL; }
294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p.");
296 return NULL;
297 }
298 }
299 {
300 _arg1 = wxString_in_helper(_obj1);
301 if (_arg1 == NULL)
302 return NULL;
303 }
304 {
305 PyThreadState* __tstate = wxPyBeginAllowThreads();
306 wxNativeFontInfo_SetXFontName(_arg0,*_arg1);
307
308 wxPyEndAllowThreads(__tstate);
309 if (PyErr_Occurred()) return NULL;
310 } Py_INCREF(Py_None);
311 _resultobj = Py_None;
312 {
313 if (_obj1)
314 delete _arg1;
315 }
316 return _resultobj;
317 }
318
319 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
320 static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
321 PyObject * _resultobj;
322 wxNativeFontInfo * _result;
323 char *_kwnames[] = { NULL };
324 char _ptemp[128];
325
326 self = self;
327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
328 return NULL;
329 {
330 PyThreadState* __tstate = wxPyBeginAllowThreads();
331 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
332
333 wxPyEndAllowThreads(__tstate);
334 if (PyErr_Occurred()) return NULL;
335 } if (_result) {
336 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
337 _resultobj = Py_BuildValue("s",_ptemp);
338 } else {
339 Py_INCREF(Py_None);
340 _resultobj = Py_None;
341 }
342 return _resultobj;
343 }
344
345 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
346 static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
347 PyObject * _resultobj;
348 wxNativeFontInfo * _arg0;
349 PyObject * _argo0 = 0;
350 char *_kwnames[] = { "self", NULL };
351
352 self = self;
353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
354 return NULL;
355 if (_argo0) {
356 if (_argo0 == Py_None) { _arg0 = NULL; }
357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
359 return NULL;
360 }
361 }
362 {
363 PyThreadState* __tstate = wxPyBeginAllowThreads();
364 wxNativeFontInfo_Init(_arg0);
365
366 wxPyEndAllowThreads(__tstate);
367 if (PyErr_Occurred()) return NULL;
368 } Py_INCREF(Py_None);
369 _resultobj = Py_None;
370 return _resultobj;
371 }
372
373 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
374 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
375 PyObject * _resultobj;
376 bool _result;
377 wxNativeFontInfo * _arg0;
378 wxString * _arg1;
379 PyObject * _argo0 = 0;
380 PyObject * _obj1 = 0;
381 char *_kwnames[] = { "self","s", NULL };
382
383 self = self;
384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
385 return NULL;
386 if (_argo0) {
387 if (_argo0 == Py_None) { _arg0 = NULL; }
388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
390 return NULL;
391 }
392 }
393 {
394 _arg1 = wxString_in_helper(_obj1);
395 if (_arg1 == NULL)
396 return NULL;
397 }
398 {
399 PyThreadState* __tstate = wxPyBeginAllowThreads();
400 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
401
402 wxPyEndAllowThreads(__tstate);
403 if (PyErr_Occurred()) return NULL;
404 } _resultobj = Py_BuildValue("i",_result);
405 {
406 if (_obj1)
407 delete _arg1;
408 }
409 return _resultobj;
410 }
411
412 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
413 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
414 PyObject * _resultobj;
415 wxString * _result;
416 wxNativeFontInfo * _arg0;
417 PyObject * _argo0 = 0;
418 char *_kwnames[] = { "self", NULL };
419
420 self = self;
421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
422 return NULL;
423 if (_argo0) {
424 if (_argo0 == Py_None) { _arg0 = NULL; }
425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
427 return NULL;
428 }
429 }
430 {
431 PyThreadState* __tstate = wxPyBeginAllowThreads();
432 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
433
434 wxPyEndAllowThreads(__tstate);
435 if (PyErr_Occurred()) return NULL;
436 }{
437 #if wxUSE_UNICODE
438 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
439 #else
440 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
441 #endif
442 }
443 {
444 delete _result;
445 }
446 return _resultobj;
447 }
448
449 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
450 return self->ToString();
451 }
452 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
453 PyObject * _resultobj;
454 wxString * _result;
455 wxNativeFontInfo * _arg0;
456 PyObject * _argo0 = 0;
457 char *_kwnames[] = { "self", NULL };
458
459 self = self;
460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
461 return NULL;
462 if (_argo0) {
463 if (_argo0 == Py_None) { _arg0 = NULL; }
464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
466 return NULL;
467 }
468 }
469 {
470 PyThreadState* __tstate = wxPyBeginAllowThreads();
471 _result = new wxString (wxNativeFontInfo___str__(_arg0));
472
473 wxPyEndAllowThreads(__tstate);
474 if (PyErr_Occurred()) return NULL;
475 }{
476 #if wxUSE_UNICODE
477 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
478 #else
479 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
480 #endif
481 }
482 {
483 delete _result;
484 }
485 return _resultobj;
486 }
487
488 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
489 static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
490 PyObject * _resultobj;
491 bool _result;
492 wxNativeFontInfo * _arg0;
493 wxString * _arg1;
494 PyObject * _argo0 = 0;
495 PyObject * _obj1 = 0;
496 char *_kwnames[] = { "self","s", NULL };
497
498 self = self;
499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
500 return NULL;
501 if (_argo0) {
502 if (_argo0 == Py_None) { _arg0 = NULL; }
503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
505 return NULL;
506 }
507 }
508 {
509 _arg1 = wxString_in_helper(_obj1);
510 if (_arg1 == NULL)
511 return NULL;
512 }
513 {
514 PyThreadState* __tstate = wxPyBeginAllowThreads();
515 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
516
517 wxPyEndAllowThreads(__tstate);
518 if (PyErr_Occurred()) return NULL;
519 } _resultobj = Py_BuildValue("i",_result);
520 {
521 if (_obj1)
522 delete _arg1;
523 }
524 return _resultobj;
525 }
526
527 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
528 static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
529 PyObject * _resultobj;
530 wxString * _result;
531 wxNativeFontInfo * _arg0;
532 PyObject * _argo0 = 0;
533 char *_kwnames[] = { "self", NULL };
534
535 self = self;
536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
537 return NULL;
538 if (_argo0) {
539 if (_argo0 == Py_None) { _arg0 = NULL; }
540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
542 return NULL;
543 }
544 }
545 {
546 PyThreadState* __tstate = wxPyBeginAllowThreads();
547 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
548
549 wxPyEndAllowThreads(__tstate);
550 if (PyErr_Occurred()) return NULL;
551 }{
552 #if wxUSE_UNICODE
553 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
554 #else
555 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
556 #endif
557 }
558 {
559 delete _result;
560 }
561 return _resultobj;
562 }
563
564 #define new_wxFontMapper() (new wxFontMapper())
565 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
566 PyObject * _resultobj;
567 wxFontMapper * _result;
568 char *_kwnames[] = { NULL };
569 char _ptemp[128];
570
571 self = self;
572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
573 return NULL;
574 {
575 PyThreadState* __tstate = wxPyBeginAllowThreads();
576 _result = (wxFontMapper *)new_wxFontMapper();
577
578 wxPyEndAllowThreads(__tstate);
579 if (PyErr_Occurred()) return NULL;
580 } if (_result) {
581 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
582 _resultobj = Py_BuildValue("s",_ptemp);
583 } else {
584 Py_INCREF(Py_None);
585 _resultobj = Py_None;
586 }
587 return _resultobj;
588 }
589
590 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
591 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
592 PyObject * _resultobj;
593 wxFontMapper * _arg0;
594 PyObject * _argo0 = 0;
595 char *_kwnames[] = { "self", NULL };
596
597 self = self;
598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
599 return NULL;
600 if (_argo0) {
601 if (_argo0 == Py_None) { _arg0 = NULL; }
602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
604 return NULL;
605 }
606 }
607 {
608 PyThreadState* __tstate = wxPyBeginAllowThreads();
609 delete_wxFontMapper(_arg0);
610
611 wxPyEndAllowThreads(__tstate);
612 if (PyErr_Occurred()) return NULL;
613 } Py_INCREF(Py_None);
614 _resultobj = Py_None;
615 return _resultobj;
616 }
617
618 static PyObject *_wrap_wxFontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
619 PyObject * _resultobj;
620 wxFontMapper * _result;
621 char *_kwnames[] = { NULL };
622 char _ptemp[128];
623
624 self = self;
625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_Get",_kwnames))
626 return NULL;
627 {
628 PyThreadState* __tstate = wxPyBeginAllowThreads();
629 _result = (wxFontMapper *)wxFontMapper::Get();
630
631 wxPyEndAllowThreads(__tstate);
632 if (PyErr_Occurred()) return NULL;
633 } if (_result) {
634 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
635 _resultobj = Py_BuildValue("s",_ptemp);
636 } else {
637 Py_INCREF(Py_None);
638 _resultobj = Py_None;
639 }
640 return _resultobj;
641 }
642
643 static PyObject *_wrap_wxFontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
644 PyObject * _resultobj;
645 wxFontMapper * _result;
646 wxFontMapper * _arg0;
647 PyObject * _argo0 = 0;
648 char *_kwnames[] = { "mapper", NULL };
649 char _ptemp[128];
650
651 self = self;
652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontMapper_Set",_kwnames,&_argo0))
653 return NULL;
654 if (_argo0) {
655 if (_argo0 == Py_None) { _arg0 = NULL; }
656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_Set. Expected _wxFontMapper_p.");
658 return NULL;
659 }
660 }
661 {
662 PyThreadState* __tstate = wxPyBeginAllowThreads();
663 _result = (wxFontMapper *)wxFontMapper::Set(_arg0);
664
665 wxPyEndAllowThreads(__tstate);
666 if (PyErr_Occurred()) return NULL;
667 } if (_result) {
668 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
669 _resultobj = Py_BuildValue("s",_ptemp);
670 } else {
671 Py_INCREF(Py_None);
672 _resultobj = Py_None;
673 }
674 return _resultobj;
675 }
676
677 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
678 wxFontEncoding alt_enc;
679 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
680 return PyInt_FromLong(alt_enc);
681 else {
682 Py_INCREF(Py_None);
683 return Py_None;
684 }
685 }
686 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
687 PyObject * _resultobj;
688 PyObject * _result;
689 wxFontMapper * _arg0;
690 wxFontEncoding _arg1;
691 wxString * _arg2 = (wxString *) &wxPyEmptyString;
692 bool _arg3 = (bool ) TRUE;
693 PyObject * _argo0 = 0;
694 PyObject * _obj2 = 0;
695 int tempbool3 = (int) TRUE;
696 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
697
698 self = self;
699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
700 return NULL;
701 if (_argo0) {
702 if (_argo0 == Py_None) { _arg0 = NULL; }
703 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
704 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
705 return NULL;
706 }
707 }
708 if (_obj2)
709 {
710 _arg2 = wxString_in_helper(_obj2);
711 if (_arg2 == NULL)
712 return NULL;
713 }
714 _arg3 = (bool ) tempbool3;
715 {
716 PyThreadState* __tstate = wxPyBeginAllowThreads();
717 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
718
719 wxPyEndAllowThreads(__tstate);
720 if (PyErr_Occurred()) return NULL;
721 }{
722 _resultobj = _result;
723 }
724 {
725 if (_obj2)
726 delete _arg2;
727 }
728 return _resultobj;
729 }
730
731 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
732 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
733 PyObject * _resultobj;
734 bool _result;
735 wxFontMapper * _arg0;
736 wxFontEncoding _arg1;
737 wxString * _arg2 = (wxString *) &wxPyEmptyString;
738 PyObject * _argo0 = 0;
739 PyObject * _obj2 = 0;
740 char *_kwnames[] = { "self","encoding","facename", NULL };
741
742 self = self;
743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
744 return NULL;
745 if (_argo0) {
746 if (_argo0 == Py_None) { _arg0 = NULL; }
747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
749 return NULL;
750 }
751 }
752 if (_obj2)
753 {
754 _arg2 = wxString_in_helper(_obj2);
755 if (_arg2 == NULL)
756 return NULL;
757 }
758 {
759 PyThreadState* __tstate = wxPyBeginAllowThreads();
760 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
761
762 wxPyEndAllowThreads(__tstate);
763 if (PyErr_Occurred()) return NULL;
764 } _resultobj = Py_BuildValue("i",_result);
765 {
766 if (_obj2)
767 delete _arg2;
768 }
769 return _resultobj;
770 }
771
772 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
773 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
774 PyObject * _resultobj;
775 wxFontEncoding _result;
776 wxFontMapper * _arg0;
777 wxString * _arg1;
778 bool _arg2 = (bool ) TRUE;
779 PyObject * _argo0 = 0;
780 PyObject * _obj1 = 0;
781 int tempbool2 = (int) TRUE;
782 char *_kwnames[] = { "self","charset","interactive", NULL };
783
784 self = self;
785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
786 return NULL;
787 if (_argo0) {
788 if (_argo0 == Py_None) { _arg0 = NULL; }
789 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
791 return NULL;
792 }
793 }
794 {
795 _arg1 = wxString_in_helper(_obj1);
796 if (_arg1 == NULL)
797 return NULL;
798 }
799 _arg2 = (bool ) tempbool2;
800 {
801 PyThreadState* __tstate = wxPyBeginAllowThreads();
802 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
803
804 wxPyEndAllowThreads(__tstate);
805 if (PyErr_Occurred()) return NULL;
806 } _resultobj = Py_BuildValue("i",_result);
807 {
808 if (_obj1)
809 delete _arg1;
810 }
811 return _resultobj;
812 }
813
814 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
815 PyObject * _resultobj;
816 wxString * _result;
817 wxFontEncoding _arg0;
818 char *_kwnames[] = { "encoding", NULL };
819
820 self = self;
821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
822 return NULL;
823 {
824 PyThreadState* __tstate = wxPyBeginAllowThreads();
825 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
826
827 wxPyEndAllowThreads(__tstate);
828 if (PyErr_Occurred()) return NULL;
829 }{
830 #if wxUSE_UNICODE
831 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
832 #else
833 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
834 #endif
835 }
836 {
837 delete _result;
838 }
839 return _resultobj;
840 }
841
842 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
843 PyObject * _resultobj;
844 wxString * _result;
845 wxFontEncoding _arg0;
846 char *_kwnames[] = { "encoding", NULL };
847
848 self = self;
849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
850 return NULL;
851 {
852 PyThreadState* __tstate = wxPyBeginAllowThreads();
853 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
854
855 wxPyEndAllowThreads(__tstate);
856 if (PyErr_Occurred()) return NULL;
857 }{
858 #if wxUSE_UNICODE
859 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
860 #else
861 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
862 #endif
863 }
864 {
865 delete _result;
866 }
867 return _resultobj;
868 }
869
870 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
871 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
872 PyObject * _resultobj;
873 wxFontMapper * _arg0;
874 wxWindow * _arg1;
875 PyObject * _argo0 = 0;
876 PyObject * _argo1 = 0;
877 char *_kwnames[] = { "self","parent", NULL };
878
879 self = self;
880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
881 return NULL;
882 if (_argo0) {
883 if (_argo0 == Py_None) { _arg0 = NULL; }
884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
886 return NULL;
887 }
888 }
889 if (_argo1) {
890 if (_argo1 == Py_None) { _arg1 = NULL; }
891 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
892 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
893 return NULL;
894 }
895 }
896 {
897 PyThreadState* __tstate = wxPyBeginAllowThreads();
898 wxFontMapper_SetDialogParent(_arg0,_arg1);
899
900 wxPyEndAllowThreads(__tstate);
901 if (PyErr_Occurred()) return NULL;
902 } Py_INCREF(Py_None);
903 _resultobj = Py_None;
904 return _resultobj;
905 }
906
907 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
908 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
909 PyObject * _resultobj;
910 wxFontMapper * _arg0;
911 wxString * _arg1;
912 PyObject * _argo0 = 0;
913 PyObject * _obj1 = 0;
914 char *_kwnames[] = { "self","title", NULL };
915
916 self = self;
917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
918 return NULL;
919 if (_argo0) {
920 if (_argo0 == Py_None) { _arg0 = NULL; }
921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
923 return NULL;
924 }
925 }
926 {
927 _arg1 = wxString_in_helper(_obj1);
928 if (_arg1 == NULL)
929 return NULL;
930 }
931 {
932 PyThreadState* __tstate = wxPyBeginAllowThreads();
933 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
934
935 wxPyEndAllowThreads(__tstate);
936 if (PyErr_Occurred()) return NULL;
937 } Py_INCREF(Py_None);
938 _resultobj = Py_None;
939 {
940 if (_obj1)
941 delete _arg1;
942 }
943 return _resultobj;
944 }
945
946 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
947 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
948 PyObject * _resultobj;
949 wxFontMapper * _arg0;
950 wxConfigBase * _arg1;
951 PyObject * _argo0 = 0;
952 PyObject * _argo1 = 0;
953 char *_kwnames[] = { "self","config", NULL };
954
955 self = self;
956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
957 return NULL;
958 if (_argo0) {
959 if (_argo0 == Py_None) { _arg0 = NULL; }
960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
962 return NULL;
963 }
964 }
965 if (_argo1) {
966 if (_argo1 == Py_None) { _arg1 = NULL; }
967 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
968 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
969 return NULL;
970 }
971 }
972 {
973 PyThreadState* __tstate = wxPyBeginAllowThreads();
974 wxFontMapper_SetConfig(_arg0,_arg1);
975
976 wxPyEndAllowThreads(__tstate);
977 if (PyErr_Occurred()) return NULL;
978 } Py_INCREF(Py_None);
979 _resultobj = Py_None;
980 return _resultobj;
981 }
982
983 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
984 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
985 PyObject * _resultobj;
986 wxFontMapper * _arg0;
987 wxString * _arg1;
988 PyObject * _argo0 = 0;
989 PyObject * _obj1 = 0;
990 char *_kwnames[] = { "self","prefix", NULL };
991
992 self = self;
993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
994 return NULL;
995 if (_argo0) {
996 if (_argo0 == Py_None) { _arg0 = NULL; }
997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
999 return NULL;
1000 }
1001 }
1002 {
1003 _arg1 = wxString_in_helper(_obj1);
1004 if (_arg1 == NULL)
1005 return NULL;
1006 }
1007 {
1008 PyThreadState* __tstate = wxPyBeginAllowThreads();
1009 wxFontMapper_SetConfigPath(_arg0,*_arg1);
1010
1011 wxPyEndAllowThreads(__tstate);
1012 if (PyErr_Occurred()) return NULL;
1013 } Py_INCREF(Py_None);
1014 _resultobj = Py_None;
1015 {
1016 if (_obj1)
1017 delete _arg1;
1018 }
1019 return _resultobj;
1020 }
1021
1022 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
1023 PyObject * _resultobj;
1024 wxString * _result;
1025 char *_kwnames[] = { NULL };
1026
1027 self = self;
1028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
1029 return NULL;
1030 {
1031 PyThreadState* __tstate = wxPyBeginAllowThreads();
1032 _result = new wxString (wxFontMapper::GetDefaultConfigPath());
1033
1034 wxPyEndAllowThreads(__tstate);
1035 if (PyErr_Occurred()) return NULL;
1036 }{
1037 #if wxUSE_UNICODE
1038 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
1039 #else
1040 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1041 #endif
1042 }
1043 {
1044 delete _result;
1045 }
1046 return _resultobj;
1047 }
1048
1049 static void *SwigwxFontTowxObject(void *ptr) {
1050 wxFont *src;
1051 wxObject *dest;
1052 src = (wxFont *) ptr;
1053 dest = (wxObject *) src;
1054 return (void *) dest;
1055 }
1056
1057 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1058 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1059 PyObject * _resultobj;
1060 wxFont * _result;
1061 int _arg0;
1062 int _arg1;
1063 int _arg2;
1064 int _arg3;
1065 int _arg4 = (int ) FALSE;
1066 wxString * _arg5 = (wxString *) &wxPyEmptyString;
1067 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
1068 PyObject * _obj5 = 0;
1069 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
1070 char _ptemp[128];
1071
1072 self = self;
1073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|iOi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_arg6))
1074 return NULL;
1075 if (_obj5)
1076 {
1077 _arg5 = wxString_in_helper(_obj5);
1078 if (_arg5 == NULL)
1079 return NULL;
1080 }
1081 {
1082 PyThreadState* __tstate = wxPyBeginAllowThreads();
1083 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,_arg6);
1084
1085 wxPyEndAllowThreads(__tstate);
1086 if (PyErr_Occurred()) return NULL;
1087 } if (_result) {
1088 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
1089 _resultobj = Py_BuildValue("s",_ptemp);
1090 } else {
1091 Py_INCREF(Py_None);
1092 _resultobj = Py_None;
1093 }
1094 {
1095 if (_obj5)
1096 delete _arg5;
1097 }
1098 return _resultobj;
1099 }
1100
1101 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
1102 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1103 PyObject * _resultobj;
1104 wxFont * _result;
1105 wxNativeFontInfo * _arg0;
1106 PyObject * _argo0 = 0;
1107 char *_kwnames[] = { "info", NULL };
1108 char _ptemp[128];
1109
1110 self = self;
1111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
1112 return NULL;
1113 if (_argo0) {
1114 if (_argo0 == Py_None) { _arg0 = NULL; }
1115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
1116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
1117 return NULL;
1118 }
1119 }
1120 {
1121 PyThreadState* __tstate = wxPyBeginAllowThreads();
1122 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
1123
1124 wxPyEndAllowThreads(__tstate);
1125 if (PyErr_Occurred()) return NULL;
1126 } if (_result) {
1127 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
1128 _resultobj = Py_BuildValue("s",_ptemp);
1129 } else {
1130 Py_INCREF(Py_None);
1131 _resultobj = Py_None;
1132 }
1133 return _resultobj;
1134 }
1135
1136 #define delete_wxFont(_swigobj) (delete _swigobj)
1137 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1138 PyObject * _resultobj;
1139 wxFont * _arg0;
1140 PyObject * _argo0 = 0;
1141 char *_kwnames[] = { "self", NULL };
1142
1143 self = self;
1144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
1145 return NULL;
1146 if (_argo0) {
1147 if (_argo0 == Py_None) { _arg0 = NULL; }
1148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
1150 return NULL;
1151 }
1152 }
1153 {
1154 PyThreadState* __tstate = wxPyBeginAllowThreads();
1155 delete_wxFont(_arg0);
1156
1157 wxPyEndAllowThreads(__tstate);
1158 if (PyErr_Occurred()) return NULL;
1159 } Py_INCREF(Py_None);
1160 _resultobj = Py_None;
1161 return _resultobj;
1162 }
1163
1164 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
1165 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1166 PyObject * _resultobj;
1167 bool _result;
1168 wxFont * _arg0;
1169 PyObject * _argo0 = 0;
1170 char *_kwnames[] = { "self", NULL };
1171
1172 self = self;
1173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
1174 return NULL;
1175 if (_argo0) {
1176 if (_argo0 == Py_None) { _arg0 = NULL; }
1177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
1179 return NULL;
1180 }
1181 }
1182 {
1183 PyThreadState* __tstate = wxPyBeginAllowThreads();
1184 _result = (bool )wxFont_Ok(_arg0);
1185
1186 wxPyEndAllowThreads(__tstate);
1187 if (PyErr_Occurred()) return NULL;
1188 } _resultobj = Py_BuildValue("i",_result);
1189 return _resultobj;
1190 }
1191
1192 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
1193 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1194 PyObject * _resultobj;
1195 int _result;
1196 wxFont * _arg0;
1197 PyObject * _argo0 = 0;
1198 char *_kwnames[] = { "self", NULL };
1199
1200 self = self;
1201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
1202 return NULL;
1203 if (_argo0) {
1204 if (_argo0 == Py_None) { _arg0 = NULL; }
1205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
1207 return NULL;
1208 }
1209 }
1210 {
1211 PyThreadState* __tstate = wxPyBeginAllowThreads();
1212 _result = (int )wxFont_GetPointSize(_arg0);
1213
1214 wxPyEndAllowThreads(__tstate);
1215 if (PyErr_Occurred()) return NULL;
1216 } _resultobj = Py_BuildValue("i",_result);
1217 return _resultobj;
1218 }
1219
1220 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
1221 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
1222 PyObject * _resultobj;
1223 int _result;
1224 wxFont * _arg0;
1225 PyObject * _argo0 = 0;
1226 char *_kwnames[] = { "self", NULL };
1227
1228 self = self;
1229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
1230 return NULL;
1231 if (_argo0) {
1232 if (_argo0 == Py_None) { _arg0 = NULL; }
1233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
1235 return NULL;
1236 }
1237 }
1238 {
1239 PyThreadState* __tstate = wxPyBeginAllowThreads();
1240 _result = (int )wxFont_GetFamily(_arg0);
1241
1242 wxPyEndAllowThreads(__tstate);
1243 if (PyErr_Occurred()) return NULL;
1244 } _resultobj = Py_BuildValue("i",_result);
1245 return _resultobj;
1246 }
1247
1248 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
1249 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1250 PyObject * _resultobj;
1251 int _result;
1252 wxFont * _arg0;
1253 PyObject * _argo0 = 0;
1254 char *_kwnames[] = { "self", NULL };
1255
1256 self = self;
1257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
1258 return NULL;
1259 if (_argo0) {
1260 if (_argo0 == Py_None) { _arg0 = NULL; }
1261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
1263 return NULL;
1264 }
1265 }
1266 {
1267 PyThreadState* __tstate = wxPyBeginAllowThreads();
1268 _result = (int )wxFont_GetStyle(_arg0);
1269
1270 wxPyEndAllowThreads(__tstate);
1271 if (PyErr_Occurred()) return NULL;
1272 } _resultobj = Py_BuildValue("i",_result);
1273 return _resultobj;
1274 }
1275
1276 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
1277 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1278 PyObject * _resultobj;
1279 int _result;
1280 wxFont * _arg0;
1281 PyObject * _argo0 = 0;
1282 char *_kwnames[] = { "self", NULL };
1283
1284 self = self;
1285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
1286 return NULL;
1287 if (_argo0) {
1288 if (_argo0 == Py_None) { _arg0 = NULL; }
1289 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1290 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
1291 return NULL;
1292 }
1293 }
1294 {
1295 PyThreadState* __tstate = wxPyBeginAllowThreads();
1296 _result = (int )wxFont_GetWeight(_arg0);
1297
1298 wxPyEndAllowThreads(__tstate);
1299 if (PyErr_Occurred()) return NULL;
1300 } _resultobj = Py_BuildValue("i",_result);
1301 return _resultobj;
1302 }
1303
1304 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
1305 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
1306 PyObject * _resultobj;
1307 bool _result;
1308 wxFont * _arg0;
1309 PyObject * _argo0 = 0;
1310 char *_kwnames[] = { "self", NULL };
1311
1312 self = self;
1313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
1314 return NULL;
1315 if (_argo0) {
1316 if (_argo0 == Py_None) { _arg0 = NULL; }
1317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
1319 return NULL;
1320 }
1321 }
1322 {
1323 PyThreadState* __tstate = wxPyBeginAllowThreads();
1324 _result = (bool )wxFont_GetUnderlined(_arg0);
1325
1326 wxPyEndAllowThreads(__tstate);
1327 if (PyErr_Occurred()) return NULL;
1328 } _resultobj = Py_BuildValue("i",_result);
1329 return _resultobj;
1330 }
1331
1332 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
1333 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
1334 PyObject * _resultobj;
1335 wxString * _result;
1336 wxFont * _arg0;
1337 PyObject * _argo0 = 0;
1338 char *_kwnames[] = { "self", NULL };
1339
1340 self = self;
1341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
1342 return NULL;
1343 if (_argo0) {
1344 if (_argo0 == Py_None) { _arg0 = NULL; }
1345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
1347 return NULL;
1348 }
1349 }
1350 {
1351 PyThreadState* __tstate = wxPyBeginAllowThreads();
1352 _result = new wxString (wxFont_GetFaceName(_arg0));
1353
1354 wxPyEndAllowThreads(__tstate);
1355 if (PyErr_Occurred()) return NULL;
1356 }{
1357 #if wxUSE_UNICODE
1358 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
1359 #else
1360 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1361 #endif
1362 }
1363 {
1364 delete _result;
1365 }
1366 return _resultobj;
1367 }
1368
1369 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
1370 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
1371 PyObject * _resultobj;
1372 wxFontEncoding _result;
1373 wxFont * _arg0;
1374 PyObject * _argo0 = 0;
1375 char *_kwnames[] = { "self", NULL };
1376
1377 self = self;
1378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
1379 return NULL;
1380 if (_argo0) {
1381 if (_argo0 == Py_None) { _arg0 = NULL; }
1382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
1384 return NULL;
1385 }
1386 }
1387 {
1388 PyThreadState* __tstate = wxPyBeginAllowThreads();
1389 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
1390
1391 wxPyEndAllowThreads(__tstate);
1392 if (PyErr_Occurred()) return NULL;
1393 } _resultobj = Py_BuildValue("i",_result);
1394 return _resultobj;
1395 }
1396
1397 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
1398 static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1399 PyObject * _resultobj;
1400 bool _result;
1401 wxFont * _arg0;
1402 PyObject * _argo0 = 0;
1403 char *_kwnames[] = { "self", NULL };
1404
1405 self = self;
1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
1407 return NULL;
1408 if (_argo0) {
1409 if (_argo0 == Py_None) { _arg0 = NULL; }
1410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
1412 return NULL;
1413 }
1414 }
1415 {
1416 PyThreadState* __tstate = wxPyBeginAllowThreads();
1417 _result = (bool )wxFont_IsFixedWidth(_arg0);
1418
1419 wxPyEndAllowThreads(__tstate);
1420 if (PyErr_Occurred()) return NULL;
1421 } _resultobj = Py_BuildValue("i",_result);
1422 return _resultobj;
1423 }
1424
1425 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
1426 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1427 PyObject * _resultobj;
1428 wxNativeFontInfo * _result;
1429 wxFont * _arg0;
1430 PyObject * _argo0 = 0;
1431 char *_kwnames[] = { "self", NULL };
1432 char _ptemp[128];
1433
1434 self = self;
1435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
1436 return NULL;
1437 if (_argo0) {
1438 if (_argo0 == Py_None) { _arg0 = NULL; }
1439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
1441 return NULL;
1442 }
1443 }
1444 {
1445 PyThreadState* __tstate = wxPyBeginAllowThreads();
1446 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
1447
1448 wxPyEndAllowThreads(__tstate);
1449 if (PyErr_Occurred()) return NULL;
1450 } if (_result) {
1451 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
1452 _resultobj = Py_BuildValue("s",_ptemp);
1453 } else {
1454 Py_INCREF(Py_None);
1455 _resultobj = Py_None;
1456 }
1457 return _resultobj;
1458 }
1459
1460 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
1461 static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
1462 PyObject * _resultobj;
1463 wxString * _result;
1464 wxFont * _arg0;
1465 PyObject * _argo0 = 0;
1466 char *_kwnames[] = { "self", NULL };
1467
1468 self = self;
1469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
1470 return NULL;
1471 if (_argo0) {
1472 if (_argo0 == Py_None) { _arg0 = NULL; }
1473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
1475 return NULL;
1476 }
1477 }
1478 {
1479 PyThreadState* __tstate = wxPyBeginAllowThreads();
1480 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
1481
1482 wxPyEndAllowThreads(__tstate);
1483 if (PyErr_Occurred()) return NULL;
1484 }{
1485 #if wxUSE_UNICODE
1486 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
1487 #else
1488 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1489 #endif
1490 }
1491 {
1492 delete _result;
1493 }
1494 return _resultobj;
1495 }
1496
1497 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
1498 static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
1499 PyObject * _resultobj;
1500 wxString * _result;
1501 wxFont * _arg0;
1502 PyObject * _argo0 = 0;
1503 char *_kwnames[] = { "self", NULL };
1504
1505 self = self;
1506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
1507 return NULL;
1508 if (_argo0) {
1509 if (_argo0 == Py_None) { _arg0 = NULL; }
1510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
1512 return NULL;
1513 }
1514 }
1515 {
1516 PyThreadState* __tstate = wxPyBeginAllowThreads();
1517 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
1518
1519 wxPyEndAllowThreads(__tstate);
1520 if (PyErr_Occurred()) return NULL;
1521 }{
1522 #if wxUSE_UNICODE
1523 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
1524 #else
1525 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1526 #endif
1527 }
1528 {
1529 delete _result;
1530 }
1531 return _resultobj;
1532 }
1533
1534 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
1535 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1536 PyObject * _resultobj;
1537 wxFont * _arg0;
1538 int _arg1;
1539 PyObject * _argo0 = 0;
1540 char *_kwnames[] = { "self","pointSize", NULL };
1541
1542 self = self;
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
1544 return NULL;
1545 if (_argo0) {
1546 if (_argo0 == Py_None) { _arg0 = NULL; }
1547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
1549 return NULL;
1550 }
1551 }
1552 {
1553 PyThreadState* __tstate = wxPyBeginAllowThreads();
1554 wxFont_SetPointSize(_arg0,_arg1);
1555
1556 wxPyEndAllowThreads(__tstate);
1557 if (PyErr_Occurred()) return NULL;
1558 } Py_INCREF(Py_None);
1559 _resultobj = Py_None;
1560 return _resultobj;
1561 }
1562
1563 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
1564 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
1565 PyObject * _resultobj;
1566 wxFont * _arg0;
1567 int _arg1;
1568 PyObject * _argo0 = 0;
1569 char *_kwnames[] = { "self","family", NULL };
1570
1571 self = self;
1572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
1573 return NULL;
1574 if (_argo0) {
1575 if (_argo0 == Py_None) { _arg0 = NULL; }
1576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
1578 return NULL;
1579 }
1580 }
1581 {
1582 PyThreadState* __tstate = wxPyBeginAllowThreads();
1583 wxFont_SetFamily(_arg0,_arg1);
1584
1585 wxPyEndAllowThreads(__tstate);
1586 if (PyErr_Occurred()) return NULL;
1587 } Py_INCREF(Py_None);
1588 _resultobj = Py_None;
1589 return _resultobj;
1590 }
1591
1592 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
1593 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1594 PyObject * _resultobj;
1595 wxFont * _arg0;
1596 int _arg1;
1597 PyObject * _argo0 = 0;
1598 char *_kwnames[] = { "self","style", NULL };
1599
1600 self = self;
1601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
1602 return NULL;
1603 if (_argo0) {
1604 if (_argo0 == Py_None) { _arg0 = NULL; }
1605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
1607 return NULL;
1608 }
1609 }
1610 {
1611 PyThreadState* __tstate = wxPyBeginAllowThreads();
1612 wxFont_SetStyle(_arg0,_arg1);
1613
1614 wxPyEndAllowThreads(__tstate);
1615 if (PyErr_Occurred()) return NULL;
1616 } Py_INCREF(Py_None);
1617 _resultobj = Py_None;
1618 return _resultobj;
1619 }
1620
1621 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
1622 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1623 PyObject * _resultobj;
1624 wxFont * _arg0;
1625 int _arg1;
1626 PyObject * _argo0 = 0;
1627 char *_kwnames[] = { "self","weight", NULL };
1628
1629 self = self;
1630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
1631 return NULL;
1632 if (_argo0) {
1633 if (_argo0 == Py_None) { _arg0 = NULL; }
1634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
1636 return NULL;
1637 }
1638 }
1639 {
1640 PyThreadState* __tstate = wxPyBeginAllowThreads();
1641 wxFont_SetWeight(_arg0,_arg1);
1642
1643 wxPyEndAllowThreads(__tstate);
1644 if (PyErr_Occurred()) return NULL;
1645 } Py_INCREF(Py_None);
1646 _resultobj = Py_None;
1647 return _resultobj;
1648 }
1649
1650 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
1651 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
1652 PyObject * _resultobj;
1653 wxFont * _arg0;
1654 wxString * _arg1;
1655 PyObject * _argo0 = 0;
1656 PyObject * _obj1 = 0;
1657 char *_kwnames[] = { "self","faceName", NULL };
1658
1659 self = self;
1660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
1661 return NULL;
1662 if (_argo0) {
1663 if (_argo0 == Py_None) { _arg0 = NULL; }
1664 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1665 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
1666 return NULL;
1667 }
1668 }
1669 {
1670 _arg1 = wxString_in_helper(_obj1);
1671 if (_arg1 == NULL)
1672 return NULL;
1673 }
1674 {
1675 PyThreadState* __tstate = wxPyBeginAllowThreads();
1676 wxFont_SetFaceName(_arg0,*_arg1);
1677
1678 wxPyEndAllowThreads(__tstate);
1679 if (PyErr_Occurred()) return NULL;
1680 } Py_INCREF(Py_None);
1681 _resultobj = Py_None;
1682 {
1683 if (_obj1)
1684 delete _arg1;
1685 }
1686 return _resultobj;
1687 }
1688
1689 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
1690 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
1691 PyObject * _resultobj;
1692 wxFont * _arg0;
1693 bool _arg1;
1694 PyObject * _argo0 = 0;
1695 int tempbool1;
1696 char *_kwnames[] = { "self","underlined", NULL };
1697
1698 self = self;
1699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
1700 return NULL;
1701 if (_argo0) {
1702 if (_argo0 == Py_None) { _arg0 = NULL; }
1703 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1704 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
1705 return NULL;
1706 }
1707 }
1708 _arg1 = (bool ) tempbool1;
1709 {
1710 PyThreadState* __tstate = wxPyBeginAllowThreads();
1711 wxFont_SetUnderlined(_arg0,_arg1);
1712
1713 wxPyEndAllowThreads(__tstate);
1714 if (PyErr_Occurred()) return NULL;
1715 } Py_INCREF(Py_None);
1716 _resultobj = Py_None;
1717 return _resultobj;
1718 }
1719
1720 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
1721 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
1722 PyObject * _resultobj;
1723 wxFont * _arg0;
1724 wxFontEncoding _arg1;
1725 PyObject * _argo0 = 0;
1726 char *_kwnames[] = { "self","encoding", NULL };
1727
1728 self = self;
1729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
1730 return NULL;
1731 if (_argo0) {
1732 if (_argo0 == Py_None) { _arg0 = NULL; }
1733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
1735 return NULL;
1736 }
1737 }
1738 {
1739 PyThreadState* __tstate = wxPyBeginAllowThreads();
1740 wxFont_SetEncoding(_arg0,_arg1);
1741
1742 wxPyEndAllowThreads(__tstate);
1743 if (PyErr_Occurred()) return NULL;
1744 } Py_INCREF(Py_None);
1745 _resultobj = Py_None;
1746 return _resultobj;
1747 }
1748
1749 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
1750 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1751 PyObject * _resultobj;
1752 wxFont * _arg0;
1753 wxNativeFontInfo * _arg1;
1754 PyObject * _argo0 = 0;
1755 PyObject * _argo1 = 0;
1756 char *_kwnames[] = { "self","info", NULL };
1757
1758 self = self;
1759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
1760 return NULL;
1761 if (_argo0) {
1762 if (_argo0 == Py_None) { _arg0 = NULL; }
1763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
1765 return NULL;
1766 }
1767 }
1768 if (_argo1) {
1769 if (_argo1 == Py_None) { _arg1 = NULL; }
1770 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
1771 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
1772 return NULL;
1773 }
1774 }
1775 {
1776 PyThreadState* __tstate = wxPyBeginAllowThreads();
1777 wxFont_SetNativeFontInfo(_arg0,*_arg1);
1778
1779 wxPyEndAllowThreads(__tstate);
1780 if (PyErr_Occurred()) return NULL;
1781 } Py_INCREF(Py_None);
1782 _resultobj = Py_None;
1783 return _resultobj;
1784 }
1785
1786 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
1787 static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
1788 PyObject * _resultobj;
1789 wxFont * _arg0;
1790 wxString * _arg1;
1791 PyObject * _argo0 = 0;
1792 PyObject * _obj1 = 0;
1793 char *_kwnames[] = { "self","info", NULL };
1794
1795 self = self;
1796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
1797 return NULL;
1798 if (_argo0) {
1799 if (_argo0 == Py_None) { _arg0 = NULL; }
1800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
1802 return NULL;
1803 }
1804 }
1805 {
1806 _arg1 = wxString_in_helper(_obj1);
1807 if (_arg1 == NULL)
1808 return NULL;
1809 }
1810 {
1811 PyThreadState* __tstate = wxPyBeginAllowThreads();
1812 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
1813
1814 wxPyEndAllowThreads(__tstate);
1815 if (PyErr_Occurred()) return NULL;
1816 } Py_INCREF(Py_None);
1817 _resultobj = Py_None;
1818 {
1819 if (_obj1)
1820 delete _arg1;
1821 }
1822 return _resultobj;
1823 }
1824
1825 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
1826 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
1827 PyObject * _resultobj;
1828 wxString * _result;
1829 wxFont * _arg0;
1830 PyObject * _argo0 = 0;
1831 char *_kwnames[] = { "self", NULL };
1832
1833 self = self;
1834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
1835 return NULL;
1836 if (_argo0) {
1837 if (_argo0 == Py_None) { _arg0 = NULL; }
1838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
1840 return NULL;
1841 }
1842 }
1843 {
1844 PyThreadState* __tstate = wxPyBeginAllowThreads();
1845 _result = new wxString (wxFont_GetFamilyString(_arg0));
1846
1847 wxPyEndAllowThreads(__tstate);
1848 if (PyErr_Occurred()) return NULL;
1849 }{
1850 #if wxUSE_UNICODE
1851 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
1852 #else
1853 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1854 #endif
1855 }
1856 {
1857 delete _result;
1858 }
1859 return _resultobj;
1860 }
1861
1862 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
1863 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
1864 PyObject * _resultobj;
1865 wxString * _result;
1866 wxFont * _arg0;
1867 PyObject * _argo0 = 0;
1868 char *_kwnames[] = { "self", NULL };
1869
1870 self = self;
1871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
1872 return NULL;
1873 if (_argo0) {
1874 if (_argo0 == Py_None) { _arg0 = NULL; }
1875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
1877 return NULL;
1878 }
1879 }
1880 {
1881 PyThreadState* __tstate = wxPyBeginAllowThreads();
1882 _result = new wxString (wxFont_GetStyleString(_arg0));
1883
1884 wxPyEndAllowThreads(__tstate);
1885 if (PyErr_Occurred()) return NULL;
1886 }{
1887 #if wxUSE_UNICODE
1888 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
1889 #else
1890 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1891 #endif
1892 }
1893 {
1894 delete _result;
1895 }
1896 return _resultobj;
1897 }
1898
1899 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
1900 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
1901 PyObject * _resultobj;
1902 wxString * _result;
1903 wxFont * _arg0;
1904 PyObject * _argo0 = 0;
1905 char *_kwnames[] = { "self", NULL };
1906
1907 self = self;
1908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
1909 return NULL;
1910 if (_argo0) {
1911 if (_argo0 == Py_None) { _arg0 = NULL; }
1912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
1913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
1914 return NULL;
1915 }
1916 }
1917 {
1918 PyThreadState* __tstate = wxPyBeginAllowThreads();
1919 _result = new wxString (wxFont_GetWeightString(_arg0));
1920
1921 wxPyEndAllowThreads(__tstate);
1922 if (PyErr_Occurred()) return NULL;
1923 }{
1924 #if wxUSE_UNICODE
1925 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
1926 #else
1927 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1928 #endif
1929 }
1930 {
1931 delete _result;
1932 }
1933 return _resultobj;
1934 }
1935
1936 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
1937 PyObject * _resultobj;
1938 wxFontEncoding _result;
1939 char *_kwnames[] = { NULL };
1940
1941 self = self;
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
1943 return NULL;
1944 {
1945 PyThreadState* __tstate = wxPyBeginAllowThreads();
1946 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
1947
1948 wxPyEndAllowThreads(__tstate);
1949 if (PyErr_Occurred()) return NULL;
1950 } _resultobj = Py_BuildValue("i",_result);
1951 return _resultobj;
1952 }
1953
1954 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
1955 PyObject * _resultobj;
1956 wxFontEncoding _arg0;
1957 char *_kwnames[] = { "encoding", NULL };
1958
1959 self = self;
1960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
1961 return NULL;
1962 {
1963 PyThreadState* __tstate = wxPyBeginAllowThreads();
1964 wxFont::SetDefaultEncoding(_arg0);
1965
1966 wxPyEndAllowThreads(__tstate);
1967 if (PyErr_Occurred()) return NULL;
1968 } Py_INCREF(Py_None);
1969 _resultobj = Py_None;
1970 return _resultobj;
1971 }
1972
1973 static void *SwigwxFontListTowxObject(void *ptr) {
1974 wxFontList *src;
1975 wxObject *dest;
1976 src = (wxFontList *) ptr;
1977 dest = (wxObject *) src;
1978 return (void *) dest;
1979 }
1980
1981 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
1982 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1983 PyObject * _resultobj;
1984 wxFontList * _arg0;
1985 wxFont * _arg1;
1986 PyObject * _argo0 = 0;
1987 PyObject * _argo1 = 0;
1988 char *_kwnames[] = { "self","font", NULL };
1989
1990 self = self;
1991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
1992 return NULL;
1993 if (_argo0) {
1994 if (_argo0 == Py_None) { _arg0 = NULL; }
1995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
1996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
1997 return NULL;
1998 }
1999 }
2000 if (_argo1) {
2001 if (_argo1 == Py_None) { _arg1 = NULL; }
2002 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
2003 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
2004 return NULL;
2005 }
2006 }
2007 {
2008 PyThreadState* __tstate = wxPyBeginAllowThreads();
2009 wxFontList_AddFont(_arg0,_arg1);
2010
2011 wxPyEndAllowThreads(__tstate);
2012 if (PyErr_Occurred()) return NULL;
2013 } Py_INCREF(Py_None);
2014 _resultobj = Py_None;
2015 return _resultobj;
2016 }
2017
2018 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2019 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2020 PyObject * _resultobj;
2021 wxFont * _result;
2022 wxFontList * _arg0;
2023 int _arg1;
2024 int _arg2;
2025 int _arg3;
2026 int _arg4;
2027 bool _arg5 = (bool ) FALSE;
2028 wxString * _arg6 = (wxString *) &wxPyEmptyString;
2029 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
2030 PyObject * _argo0 = 0;
2031 int tempbool5 = (int) FALSE;
2032 PyObject * _obj6 = 0;
2033 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
2034 char _ptemp[128];
2035
2036 self = self;
2037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iOi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_obj6,&_arg7))
2038 return NULL;
2039 if (_argo0) {
2040 if (_argo0 == Py_None) { _arg0 = NULL; }
2041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
2042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
2043 return NULL;
2044 }
2045 }
2046 _arg5 = (bool ) tempbool5;
2047 if (_obj6)
2048 {
2049 _arg6 = wxString_in_helper(_obj6);
2050 if (_arg6 == NULL)
2051 return NULL;
2052 }
2053 {
2054 PyThreadState* __tstate = wxPyBeginAllowThreads();
2055 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,_arg7);
2056
2057 wxPyEndAllowThreads(__tstate);
2058 if (PyErr_Occurred()) return NULL;
2059 } if (_result) {
2060 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
2061 _resultobj = Py_BuildValue("s",_ptemp);
2062 } else {
2063 Py_INCREF(Py_None);
2064 _resultobj = Py_None;
2065 }
2066 {
2067 if (_obj6)
2068 delete _arg6;
2069 }
2070 return _resultobj;
2071 }
2072
2073 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
2074 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2075 PyObject * _resultobj;
2076 wxFontList * _arg0;
2077 wxFont * _arg1;
2078 PyObject * _argo0 = 0;
2079 PyObject * _argo1 = 0;
2080 char *_kwnames[] = { "self","font", NULL };
2081
2082 self = self;
2083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
2084 return NULL;
2085 if (_argo0) {
2086 if (_argo0 == Py_None) { _arg0 = NULL; }
2087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
2088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
2089 return NULL;
2090 }
2091 }
2092 if (_argo1) {
2093 if (_argo1 == Py_None) { _arg1 = NULL; }
2094 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
2095 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
2096 return NULL;
2097 }
2098 }
2099 {
2100 PyThreadState* __tstate = wxPyBeginAllowThreads();
2101 wxFontList_RemoveFont(_arg0,_arg1);
2102
2103 wxPyEndAllowThreads(__tstate);
2104 if (PyErr_Occurred()) return NULL;
2105 } Py_INCREF(Py_None);
2106 _resultobj = Py_None;
2107 return _resultobj;
2108 }
2109
2110 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
2111 static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2112 PyObject * _resultobj;
2113 int _result;
2114 wxFontList * _arg0;
2115 PyObject * _argo0 = 0;
2116 char *_kwnames[] = { "self", NULL };
2117
2118 self = self;
2119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
2120 return NULL;
2121 if (_argo0) {
2122 if (_argo0 == Py_None) { _arg0 = NULL; }
2123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
2124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
2125 return NULL;
2126 }
2127 }
2128 {
2129 PyThreadState* __tstate = wxPyBeginAllowThreads();
2130 _result = (int )wxFontList_GetCount(_arg0);
2131
2132 wxPyEndAllowThreads(__tstate);
2133 if (PyErr_Occurred()) return NULL;
2134 } _resultobj = Py_BuildValue("i",_result);
2135 return _resultobj;
2136 }
2137
2138 #define new_wxFontEnumerator() (new wxPyFontEnumerator())
2139 static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
2140 PyObject * _resultobj;
2141 wxPyFontEnumerator * _result;
2142 char *_kwnames[] = { NULL };
2143 char _ptemp[128];
2144
2145 self = self;
2146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames))
2147 return NULL;
2148 {
2149 PyThreadState* __tstate = wxPyBeginAllowThreads();
2150 _result = (wxPyFontEnumerator *)new_wxFontEnumerator();
2151
2152 wxPyEndAllowThreads(__tstate);
2153 if (PyErr_Occurred()) return NULL;
2154 } if (_result) {
2155 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p");
2156 _resultobj = Py_BuildValue("s",_ptemp);
2157 } else {
2158 Py_INCREF(Py_None);
2159 _resultobj = Py_None;
2160 }
2161 return _resultobj;
2162 }
2163
2164 #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj)
2165 static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
2166 PyObject * _resultobj;
2167 wxPyFontEnumerator * _arg0;
2168 PyObject * _argo0 = 0;
2169 char *_kwnames[] = { "self", NULL };
2170
2171 self = self;
2172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0))
2173 return NULL;
2174 if (_argo0) {
2175 if (_argo0 == Py_None) { _arg0 = NULL; }
2176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
2177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p.");
2178 return NULL;
2179 }
2180 }
2181 {
2182 PyThreadState* __tstate = wxPyBeginAllowThreads();
2183 delete_wxPyFontEnumerator(_arg0);
2184
2185 wxPyEndAllowThreads(__tstate);
2186 if (PyErr_Occurred()) return NULL;
2187 } Py_INCREF(Py_None);
2188 _resultobj = Py_None;
2189 return _resultobj;
2190 }
2191
2192 #define wxFontEnumerator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2193 static PyObject *_wrap_wxFontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2194 PyObject * _resultobj;
2195 wxPyFontEnumerator * _arg0;
2196 PyObject * _arg1;
2197 PyObject * _arg2;
2198 bool _arg3;
2199 PyObject * _argo0 = 0;
2200 PyObject * _obj1 = 0;
2201 PyObject * _obj2 = 0;
2202 int tempbool3;
2203 char *_kwnames[] = { "self","self","_class","incref", NULL };
2204
2205 self = self;
2206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOi:wxFontEnumerator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3))
2207 return NULL;
2208 if (_argo0) {
2209 if (_argo0 == Py_None) { _arg0 = NULL; }
2210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
2211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setCallbackInfo. Expected _wxPyFontEnumerator_p.");
2212 return NULL;
2213 }
2214 }
2215 {
2216 _arg1 = _obj1;
2217 }
2218 {
2219 _arg2 = _obj2;
2220 }
2221 _arg3 = (bool ) tempbool3;
2222 {
2223 PyThreadState* __tstate = wxPyBeginAllowThreads();
2224 wxFontEnumerator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3);
2225
2226 wxPyEndAllowThreads(__tstate);
2227 if (PyErr_Occurred()) return NULL;
2228 } Py_INCREF(Py_None);
2229 _resultobj = Py_None;
2230 return _resultobj;
2231 }
2232
2233 #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1))
2234 static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
2235 PyObject * _resultobj;
2236 bool _result;
2237 wxPyFontEnumerator * _arg0;
2238 wxFontEncoding _arg1 = (wxFontEncoding ) (wxFONTENCODING_SYSTEM);
2239 bool _arg2 = (bool ) FALSE;
2240 PyObject * _argo0 = 0;
2241 int tempbool2 = (int) FALSE;
2242 char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL };
2243
2244 self = self;
2245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2))
2246 return NULL;
2247 if (_argo0) {
2248 if (_argo0 == Py_None) { _arg0 = NULL; }
2249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
2250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p.");
2251 return NULL;
2252 }
2253 }
2254 _arg2 = (bool ) tempbool2;
2255 {
2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
2257 _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2);
2258
2259 wxPyEndAllowThreads(__tstate);
2260 if (PyErr_Occurred()) return NULL;
2261 } _resultobj = Py_BuildValue("i",_result);
2262 return _resultobj;
2263 }
2264
2265 #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0))
2266 static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
2267 PyObject * _resultobj;
2268 bool _result;
2269 wxPyFontEnumerator * _arg0;
2270 wxString * _arg1 = (wxString *) &wxPyEmptyString;
2271 PyObject * _argo0 = 0;
2272 PyObject * _obj1 = 0;
2273 char *_kwnames[] = { "self","facename", NULL };
2274
2275 self = self;
2276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_obj1))
2277 return NULL;
2278 if (_argo0) {
2279 if (_argo0 == Py_None) { _arg0 = NULL; }
2280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
2281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p.");
2282 return NULL;
2283 }
2284 }
2285 if (_obj1)
2286 {
2287 _arg1 = wxString_in_helper(_obj1);
2288 if (_arg1 == NULL)
2289 return NULL;
2290 }
2291 {
2292 PyThreadState* __tstate = wxPyBeginAllowThreads();
2293 _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,*_arg1);
2294
2295 wxPyEndAllowThreads(__tstate);
2296 if (PyErr_Occurred()) return NULL;
2297 } _resultobj = Py_BuildValue("i",_result);
2298 {
2299 if (_obj1)
2300 delete _arg1;
2301 }
2302 return _resultobj;
2303 }
2304
2305 static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) {
2306 wxArrayString* arr = self->GetEncodings();
2307 return wxArrayString2PyList_helper(*arr);
2308 }
2309 static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
2310 PyObject * _resultobj;
2311 PyObject * _result;
2312 wxPyFontEnumerator * _arg0;
2313 PyObject * _argo0 = 0;
2314 char *_kwnames[] = { "self", NULL };
2315
2316 self = self;
2317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0))
2318 return NULL;
2319 if (_argo0) {
2320 if (_argo0 == Py_None) { _arg0 = NULL; }
2321 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
2322 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p.");
2323 return NULL;
2324 }
2325 }
2326 {
2327 PyThreadState* __tstate = wxPyBeginAllowThreads();
2328 _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0);
2329
2330 wxPyEndAllowThreads(__tstate);
2331 if (PyErr_Occurred()) return NULL;
2332 }{
2333 _resultobj = _result;
2334 }
2335 return _resultobj;
2336 }
2337
2338 static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) {
2339 wxArrayString* arr = self->GetFacenames();
2340 return wxArrayString2PyList_helper(*arr);
2341 }
2342 static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
2343 PyObject * _resultobj;
2344 PyObject * _result;
2345 wxPyFontEnumerator * _arg0;
2346 PyObject * _argo0 = 0;
2347 char *_kwnames[] = { "self", NULL };
2348
2349 self = self;
2350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0))
2351 return NULL;
2352 if (_argo0) {
2353 if (_argo0 == Py_None) { _arg0 = NULL; }
2354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
2355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p.");
2356 return NULL;
2357 }
2358 }
2359 {
2360 PyThreadState* __tstate = wxPyBeginAllowThreads();
2361 _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0);
2362
2363 wxPyEndAllowThreads(__tstate);
2364 if (PyErr_Occurred()) return NULL;
2365 }{
2366 _resultobj = _result;
2367 }
2368 return _resultobj;
2369 }
2370
2371 #define wxLanguageInfo_Language_set(_swigobj,_swigval) (_swigobj->Language = _swigval,_swigval)
2372 static PyObject *_wrap_wxLanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2373 PyObject * _resultobj;
2374 int _result;
2375 wxLanguageInfo * _arg0;
2376 int _arg1;
2377 PyObject * _argo0 = 0;
2378 char *_kwnames[] = { "self","Language", NULL };
2379
2380 self = self;
2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLanguageInfo_Language_set",_kwnames,&_argo0,&_arg1))
2382 return NULL;
2383 if (_argo0) {
2384 if (_argo0 == Py_None) { _arg0 = NULL; }
2385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLanguageInfo_p")) {
2386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLanguageInfo_Language_set. Expected _wxLanguageInfo_p.");
2387 return NULL;
2388 }
2389 }
2390 {
2391 PyThreadState* __tstate = wxPyBeginAllowThreads();
2392 _result = (int )wxLanguageInfo_Language_set(_arg0,_arg1);
2393
2394 wxPyEndAllowThreads(__tstate);
2395 if (PyErr_Occurred()) return NULL;
2396 } _resultobj = Py_BuildValue("i",_result);
2397 return _resultobj;
2398 }
2399
2400 #define wxLanguageInfo_Language_get(_swigobj) ((int ) _swigobj->Language)
2401 static PyObject *_wrap_wxLanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2402 PyObject * _resultobj;
2403 int _result;
2404 wxLanguageInfo * _arg0;
2405 PyObject * _argo0 = 0;
2406 char *_kwnames[] = { "self", NULL };
2407
2408 self = self;
2409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLanguageInfo_Language_get",_kwnames,&_argo0))
2410 return NULL;
2411 if (_argo0) {
2412 if (_argo0 == Py_None) { _arg0 = NULL; }
2413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLanguageInfo_p")) {
2414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLanguageInfo_Language_get. Expected _wxLanguageInfo_p.");
2415 return NULL;
2416 }
2417 }
2418 {
2419 PyThreadState* __tstate = wxPyBeginAllowThreads();
2420 _result = (int )wxLanguageInfo_Language_get(_arg0);
2421
2422 wxPyEndAllowThreads(__tstate);
2423 if (PyErr_Occurred()) return NULL;
2424 } _resultobj = Py_BuildValue("i",_result);
2425 return _resultobj;
2426 }
2427
2428 #define wxLanguageInfo_CanonicalName_set(_swigobj,_swigval) (_swigobj->CanonicalName = *(_swigval),_swigval)
2429 static PyObject *_wrap_wxLanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2430 PyObject * _resultobj;
2431 wxString * _result;
2432 wxLanguageInfo * _arg0;
2433 wxString * _arg1;
2434 PyObject * _argo0 = 0;
2435 PyObject * _obj1 = 0;
2436 char *_kwnames[] = { "self","CanonicalName", NULL };
2437
2438 self = self;
2439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLanguageInfo_CanonicalName_set",_kwnames,&_argo0,&_obj1))
2440 return NULL;
2441 if (_argo0) {
2442 if (_argo0 == Py_None) { _arg0 = NULL; }
2443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLanguageInfo_p")) {
2444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLanguageInfo_CanonicalName_set. Expected _wxLanguageInfo_p.");
2445 return NULL;
2446 }
2447 }
2448 {
2449 _arg1 = wxString_in_helper(_obj1);
2450 if (_arg1 == NULL)
2451 return NULL;
2452 }
2453 {
2454 PyThreadState* __tstate = wxPyBeginAllowThreads();
2455 _result = (wxString *)wxLanguageInfo_CanonicalName_set(_arg0,_arg1);
2456
2457 wxPyEndAllowThreads(__tstate);
2458 if (PyErr_Occurred()) return NULL;
2459 }{
2460 #if wxUSE_UNICODE
2461 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2462 #else
2463 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2464 #endif
2465 }
2466 {
2467 if (_obj1)
2468 delete _arg1;
2469 }
2470 return _resultobj;
2471 }
2472
2473 #define wxLanguageInfo_CanonicalName_get(_swigobj) (&_swigobj->CanonicalName)
2474 static PyObject *_wrap_wxLanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2475 PyObject * _resultobj;
2476 wxString * _result;
2477 wxLanguageInfo * _arg0;
2478 PyObject * _argo0 = 0;
2479 char *_kwnames[] = { "self", NULL };
2480
2481 self = self;
2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLanguageInfo_CanonicalName_get",_kwnames,&_argo0))
2483 return NULL;
2484 if (_argo0) {
2485 if (_argo0 == Py_None) { _arg0 = NULL; }
2486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLanguageInfo_p")) {
2487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLanguageInfo_CanonicalName_get. Expected _wxLanguageInfo_p.");
2488 return NULL;
2489 }
2490 }
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 _result = (wxString *)wxLanguageInfo_CanonicalName_get(_arg0);
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) return NULL;
2497 }{
2498 #if wxUSE_UNICODE
2499 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2500 #else
2501 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2502 #endif
2503 }
2504 return _resultobj;
2505 }
2506
2507 #define wxLanguageInfo_Description_set(_swigobj,_swigval) (_swigobj->Description = *(_swigval),_swigval)
2508 static PyObject *_wrap_wxLanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2509 PyObject * _resultobj;
2510 wxString * _result;
2511 wxLanguageInfo * _arg0;
2512 wxString * _arg1;
2513 PyObject * _argo0 = 0;
2514 PyObject * _obj1 = 0;
2515 char *_kwnames[] = { "self","Description", NULL };
2516
2517 self = self;
2518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLanguageInfo_Description_set",_kwnames,&_argo0,&_obj1))
2519 return NULL;
2520 if (_argo0) {
2521 if (_argo0 == Py_None) { _arg0 = NULL; }
2522 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLanguageInfo_p")) {
2523 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLanguageInfo_Description_set. Expected _wxLanguageInfo_p.");
2524 return NULL;
2525 }
2526 }
2527 {
2528 _arg1 = wxString_in_helper(_obj1);
2529 if (_arg1 == NULL)
2530 return NULL;
2531 }
2532 {
2533 PyThreadState* __tstate = wxPyBeginAllowThreads();
2534 _result = (wxString *)wxLanguageInfo_Description_set(_arg0,_arg1);
2535
2536 wxPyEndAllowThreads(__tstate);
2537 if (PyErr_Occurred()) return NULL;
2538 }{
2539 #if wxUSE_UNICODE
2540 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2541 #else
2542 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2543 #endif
2544 }
2545 {
2546 if (_obj1)
2547 delete _arg1;
2548 }
2549 return _resultobj;
2550 }
2551
2552 #define wxLanguageInfo_Description_get(_swigobj) (&_swigobj->Description)
2553 static PyObject *_wrap_wxLanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2554 PyObject * _resultobj;
2555 wxString * _result;
2556 wxLanguageInfo * _arg0;
2557 PyObject * _argo0 = 0;
2558 char *_kwnames[] = { "self", NULL };
2559
2560 self = self;
2561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLanguageInfo_Description_get",_kwnames,&_argo0))
2562 return NULL;
2563 if (_argo0) {
2564 if (_argo0 == Py_None) { _arg0 = NULL; }
2565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLanguageInfo_p")) {
2566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLanguageInfo_Description_get. Expected _wxLanguageInfo_p.");
2567 return NULL;
2568 }
2569 }
2570 {
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
2572 _result = (wxString *)wxLanguageInfo_Description_get(_arg0);
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) return NULL;
2576 }{
2577 #if wxUSE_UNICODE
2578 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2579 #else
2580 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2581 #endif
2582 }
2583 return _resultobj;
2584 }
2585
2586 #define new_wxLocale(_swigarg0,_swigarg1) (new wxLocale(_swigarg0,_swigarg1))
2587 static PyObject *_wrap_new_wxLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
2588 PyObject * _resultobj;
2589 wxLocale * _result;
2590 int _arg0 = (int ) (wxLANGUAGE_DEFAULT);
2591 int _arg1 = (int ) (wxLOCALE_LOAD_DEFAULT)|(wxLOCALE_CONV_ENCODING);
2592 char *_kwnames[] = { "language","flags", NULL };
2593 char _ptemp[128];
2594
2595 self = self;
2596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxLocale",_kwnames,&_arg0,&_arg1))
2597 return NULL;
2598 {
2599 PyThreadState* __tstate = wxPyBeginAllowThreads();
2600 _result = (wxLocale *)new_wxLocale(_arg0,_arg1);
2601
2602 wxPyEndAllowThreads(__tstate);
2603 if (PyErr_Occurred()) return NULL;
2604 } if (_result) {
2605 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLocale_p");
2606 _resultobj = Py_BuildValue("s",_ptemp);
2607 } else {
2608 Py_INCREF(Py_None);
2609 _resultobj = Py_None;
2610 }
2611 return _resultobj;
2612 }
2613
2614 #define wxLocale_Init(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Init(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2615 static PyObject *_wrap_wxLocale_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
2616 PyObject * _resultobj;
2617 bool _result;
2618 wxLocale * _arg0;
2619 wxString * _arg1;
2620 wxString * _arg2 = (wxString *) &wxPyEmptyString;
2621 wxString * _arg3 = (wxString *) &wxPyEmptyString;
2622 bool _arg4 = (bool ) TRUE;
2623 bool _arg5 = (bool ) FALSE;
2624 PyObject * _argo0 = 0;
2625 PyObject * _obj1 = 0;
2626 PyObject * _obj2 = 0;
2627 PyObject * _obj3 = 0;
2628 int tempbool4 = (int) TRUE;
2629 int tempbool5 = (int) FALSE;
2630 char *_kwnames[] = { "self","szName","szShort","szLocale","bLoadDefault","bConvertEncoding", NULL };
2631
2632 self = self;
2633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OOii:wxLocale_Init",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&tempbool4,&tempbool5))
2634 return NULL;
2635 if (_argo0) {
2636 if (_argo0 == Py_None) { _arg0 = NULL; }
2637 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
2638 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_Init. Expected _wxLocale_p.");
2639 return NULL;
2640 }
2641 }
2642 {
2643 _arg1 = wxString_in_helper(_obj1);
2644 if (_arg1 == NULL)
2645 return NULL;
2646 }
2647 if (_obj2)
2648 {
2649 _arg2 = wxString_in_helper(_obj2);
2650 if (_arg2 == NULL)
2651 return NULL;
2652 }
2653 if (_obj3)
2654 {
2655 _arg3 = wxString_in_helper(_obj3);
2656 if (_arg3 == NULL)
2657 return NULL;
2658 }
2659 _arg4 = (bool ) tempbool4;
2660 _arg5 = (bool ) tempbool5;
2661 {
2662 PyThreadState* __tstate = wxPyBeginAllowThreads();
2663 _result = (bool )wxLocale_Init(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5);
2664
2665 wxPyEndAllowThreads(__tstate);
2666 if (PyErr_Occurred()) return NULL;
2667 } _resultobj = Py_BuildValue("i",_result);
2668 {
2669 if (_obj1)
2670 delete _arg1;
2671 }
2672 {
2673 if (_obj2)
2674 delete _arg2;
2675 }
2676 {
2677 if (_obj3)
2678 delete _arg3;
2679 }
2680 return _resultobj;
2681 }
2682
2683 #define delete_wxLocale(_swigobj) (delete _swigobj)
2684 static PyObject *_wrap_delete_wxLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
2685 PyObject * _resultobj;
2686 wxLocale * _arg0;
2687 PyObject * _argo0 = 0;
2688 char *_kwnames[] = { "self", NULL };
2689
2690 self = self;
2691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLocale",_kwnames,&_argo0))
2692 return NULL;
2693 if (_argo0) {
2694 if (_argo0 == Py_None) { _arg0 = NULL; }
2695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
2696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLocale. Expected _wxLocale_p.");
2697 return NULL;
2698 }
2699 }
2700 {
2701 PyThreadState* __tstate = wxPyBeginAllowThreads();
2702 delete_wxLocale(_arg0);
2703
2704 wxPyEndAllowThreads(__tstate);
2705 if (PyErr_Occurred()) return NULL;
2706 } Py_INCREF(Py_None);
2707 _resultobj = Py_None;
2708 return _resultobj;
2709 }
2710
2711 static PyObject *_wrap_wxLocale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
2712 PyObject * _resultobj;
2713 int _result;
2714 char *_kwnames[] = { NULL };
2715
2716 self = self;
2717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLocale_GetSystemLanguage",_kwnames))
2718 return NULL;
2719 {
2720 PyThreadState* __tstate = wxPyBeginAllowThreads();
2721 _result = (int )wxLocale::GetSystemLanguage();
2722
2723 wxPyEndAllowThreads(__tstate);
2724 if (PyErr_Occurred()) return NULL;
2725 } _resultobj = Py_BuildValue("i",_result);
2726 return _resultobj;
2727 }
2728
2729 static PyObject *_wrap_wxLocale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
2730 PyObject * _resultobj;
2731 wxFontEncoding _result;
2732 char *_kwnames[] = { NULL };
2733
2734 self = self;
2735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLocale_GetSystemEncoding",_kwnames))
2736 return NULL;
2737 {
2738 PyThreadState* __tstate = wxPyBeginAllowThreads();
2739 _result = (wxFontEncoding )wxLocale::GetSystemEncoding();
2740
2741 wxPyEndAllowThreads(__tstate);
2742 if (PyErr_Occurred()) return NULL;
2743 } _resultobj = Py_BuildValue("i",_result);
2744 return _resultobj;
2745 }
2746
2747 static PyObject *_wrap_wxLocale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
2748 PyObject * _resultobj;
2749 wxString * _result;
2750 char *_kwnames[] = { NULL };
2751
2752 self = self;
2753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLocale_GetSystemEncodingName",_kwnames))
2754 return NULL;
2755 {
2756 PyThreadState* __tstate = wxPyBeginAllowThreads();
2757 _result = new wxString (wxLocale::GetSystemEncodingName());
2758
2759 wxPyEndAllowThreads(__tstate);
2760 if (PyErr_Occurred()) return NULL;
2761 }{
2762 #if wxUSE_UNICODE
2763 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2764 #else
2765 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2766 #endif
2767 }
2768 {
2769 delete _result;
2770 }
2771 return _resultobj;
2772 }
2773
2774 #define wxLocale_IsOk(_swigobj) (_swigobj->IsOk())
2775 static PyObject *_wrap_wxLocale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
2776 PyObject * _resultobj;
2777 bool _result;
2778 wxLocale * _arg0;
2779 PyObject * _argo0 = 0;
2780 char *_kwnames[] = { "self", NULL };
2781
2782 self = self;
2783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLocale_IsOk",_kwnames,&_argo0))
2784 return NULL;
2785 if (_argo0) {
2786 if (_argo0 == Py_None) { _arg0 = NULL; }
2787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
2788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_IsOk. Expected _wxLocale_p.");
2789 return NULL;
2790 }
2791 }
2792 {
2793 PyThreadState* __tstate = wxPyBeginAllowThreads();
2794 _result = (bool )wxLocale_IsOk(_arg0);
2795
2796 wxPyEndAllowThreads(__tstate);
2797 if (PyErr_Occurred()) return NULL;
2798 } _resultobj = Py_BuildValue("i",_result);
2799 return _resultobj;
2800 }
2801
2802 #define wxLocale_GetLocale(_swigobj) (_swigobj->GetLocale())
2803 static PyObject *_wrap_wxLocale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
2804 PyObject * _resultobj;
2805 wxString * _result;
2806 wxLocale * _arg0;
2807 PyObject * _argo0 = 0;
2808 char *_kwnames[] = { "self", NULL };
2809
2810 self = self;
2811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLocale_GetLocale",_kwnames,&_argo0))
2812 return NULL;
2813 if (_argo0) {
2814 if (_argo0 == Py_None) { _arg0 = NULL; }
2815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
2816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_GetLocale. Expected _wxLocale_p.");
2817 return NULL;
2818 }
2819 }
2820 {
2821 PyThreadState* __tstate = wxPyBeginAllowThreads();
2822 _result = new wxString (wxLocale_GetLocale(_arg0));
2823
2824 wxPyEndAllowThreads(__tstate);
2825 if (PyErr_Occurred()) return NULL;
2826 }{
2827 #if wxUSE_UNICODE
2828 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2829 #else
2830 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2831 #endif
2832 }
2833 {
2834 delete _result;
2835 }
2836 return _resultobj;
2837 }
2838
2839 #define wxLocale_GetLanguage(_swigobj) (_swigobj->GetLanguage())
2840 static PyObject *_wrap_wxLocale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
2841 PyObject * _resultobj;
2842 int _result;
2843 wxLocale * _arg0;
2844 PyObject * _argo0 = 0;
2845 char *_kwnames[] = { "self", NULL };
2846
2847 self = self;
2848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLocale_GetLanguage",_kwnames,&_argo0))
2849 return NULL;
2850 if (_argo0) {
2851 if (_argo0 == Py_None) { _arg0 = NULL; }
2852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
2853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_GetLanguage. Expected _wxLocale_p.");
2854 return NULL;
2855 }
2856 }
2857 {
2858 PyThreadState* __tstate = wxPyBeginAllowThreads();
2859 _result = (int )wxLocale_GetLanguage(_arg0);
2860
2861 wxPyEndAllowThreads(__tstate);
2862 if (PyErr_Occurred()) return NULL;
2863 } _resultobj = Py_BuildValue("i",_result);
2864 return _resultobj;
2865 }
2866
2867 #define wxLocale_GetSysName(_swigobj) (_swigobj->GetSysName())
2868 static PyObject *_wrap_wxLocale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
2869 PyObject * _resultobj;
2870 wxString * _result;
2871 wxLocale * _arg0;
2872 PyObject * _argo0 = 0;
2873 char *_kwnames[] = { "self", NULL };
2874
2875 self = self;
2876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLocale_GetSysName",_kwnames,&_argo0))
2877 return NULL;
2878 if (_argo0) {
2879 if (_argo0 == Py_None) { _arg0 = NULL; }
2880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
2881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_GetSysName. Expected _wxLocale_p.");
2882 return NULL;
2883 }
2884 }
2885 {
2886 PyThreadState* __tstate = wxPyBeginAllowThreads();
2887 _result = new wxString (wxLocale_GetSysName(_arg0));
2888
2889 wxPyEndAllowThreads(__tstate);
2890 if (PyErr_Occurred()) return NULL;
2891 }{
2892 #if wxUSE_UNICODE
2893 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2894 #else
2895 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2896 #endif
2897 }
2898 {
2899 delete _result;
2900 }
2901 return _resultobj;
2902 }
2903
2904 #define wxLocale_GetCanonicalName(_swigobj) (_swigobj->GetCanonicalName())
2905 static PyObject *_wrap_wxLocale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
2906 PyObject * _resultobj;
2907 wxString * _result;
2908 wxLocale * _arg0;
2909 PyObject * _argo0 = 0;
2910 char *_kwnames[] = { "self", NULL };
2911
2912 self = self;
2913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLocale_GetCanonicalName",_kwnames,&_argo0))
2914 return NULL;
2915 if (_argo0) {
2916 if (_argo0 == Py_None) { _arg0 = NULL; }
2917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
2918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_GetCanonicalName. Expected _wxLocale_p.");
2919 return NULL;
2920 }
2921 }
2922 {
2923 PyThreadState* __tstate = wxPyBeginAllowThreads();
2924 _result = new wxString (wxLocale_GetCanonicalName(_arg0));
2925
2926 wxPyEndAllowThreads(__tstate);
2927 if (PyErr_Occurred()) return NULL;
2928 }{
2929 #if wxUSE_UNICODE
2930 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2931 #else
2932 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2933 #endif
2934 }
2935 {
2936 delete _result;
2937 }
2938 return _resultobj;
2939 }
2940
2941 static PyObject *_wrap_wxLocale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
2942 PyObject * _resultobj;
2943 wxString * _arg0;
2944 PyObject * _obj0 = 0;
2945 char *_kwnames[] = { "prefix", NULL };
2946
2947 self = self;
2948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLocale_AddCatalogLookupPathPrefix",_kwnames,&_obj0))
2949 return NULL;
2950 {
2951 _arg0 = wxString_in_helper(_obj0);
2952 if (_arg0 == NULL)
2953 return NULL;
2954 }
2955 {
2956 PyThreadState* __tstate = wxPyBeginAllowThreads();
2957 wxLocale::AddCatalogLookupPathPrefix(*_arg0);
2958
2959 wxPyEndAllowThreads(__tstate);
2960 if (PyErr_Occurred()) return NULL;
2961 } Py_INCREF(Py_None);
2962 _resultobj = Py_None;
2963 {
2964 if (_obj0)
2965 delete _arg0;
2966 }
2967 return _resultobj;
2968 }
2969
2970 #define wxLocale_AddCatalog(_swigobj,_swigarg0) (_swigobj->AddCatalog(_swigarg0))
2971 static PyObject *_wrap_wxLocale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
2972 PyObject * _resultobj;
2973 bool _result;
2974 wxLocale * _arg0;
2975 wxString * _arg1;
2976 PyObject * _argo0 = 0;
2977 PyObject * _obj1 = 0;
2978 char *_kwnames[] = { "self","szDomain", NULL };
2979
2980 self = self;
2981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLocale_AddCatalog",_kwnames,&_argo0,&_obj1))
2982 return NULL;
2983 if (_argo0) {
2984 if (_argo0 == Py_None) { _arg0 = NULL; }
2985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
2986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_AddCatalog. Expected _wxLocale_p.");
2987 return NULL;
2988 }
2989 }
2990 {
2991 _arg1 = wxString_in_helper(_obj1);
2992 if (_arg1 == NULL)
2993 return NULL;
2994 }
2995 {
2996 PyThreadState* __tstate = wxPyBeginAllowThreads();
2997 _result = (bool )wxLocale_AddCatalog(_arg0,*_arg1);
2998
2999 wxPyEndAllowThreads(__tstate);
3000 if (PyErr_Occurred()) return NULL;
3001 } _resultobj = Py_BuildValue("i",_result);
3002 {
3003 if (_obj1)
3004 delete _arg1;
3005 }
3006 return _resultobj;
3007 }
3008
3009 #define wxLocale_IsLoaded(_swigobj,_swigarg0) (_swigobj->IsLoaded(_swigarg0))
3010 static PyObject *_wrap_wxLocale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
3011 PyObject * _resultobj;
3012 bool _result;
3013 wxLocale * _arg0;
3014 wxString * _arg1;
3015 PyObject * _argo0 = 0;
3016 PyObject * _obj1 = 0;
3017 char *_kwnames[] = { "self","szDomain", NULL };
3018
3019 self = self;
3020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLocale_IsLoaded",_kwnames,&_argo0,&_obj1))
3021 return NULL;
3022 if (_argo0) {
3023 if (_argo0 == Py_None) { _arg0 = NULL; }
3024 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
3025 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_IsLoaded. Expected _wxLocale_p.");
3026 return NULL;
3027 }
3028 }
3029 {
3030 _arg1 = wxString_in_helper(_obj1);
3031 if (_arg1 == NULL)
3032 return NULL;
3033 }
3034 {
3035 PyThreadState* __tstate = wxPyBeginAllowThreads();
3036 _result = (bool )wxLocale_IsLoaded(_arg0,*_arg1);
3037
3038 wxPyEndAllowThreads(__tstate);
3039 if (PyErr_Occurred()) return NULL;
3040 } _resultobj = Py_BuildValue("i",_result);
3041 {
3042 if (_obj1)
3043 delete _arg1;
3044 }
3045 return _resultobj;
3046 }
3047
3048 static PyObject *_wrap_wxLocale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
3049 PyObject * _resultobj;
3050 wxLanguageInfo * _arg0;
3051 PyObject * _argo0 = 0;
3052 char *_kwnames[] = { "info", NULL };
3053
3054 self = self;
3055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLocale_AddLanguage",_kwnames,&_argo0))
3056 return NULL;
3057 if (_argo0) {
3058 if (_argo0 == Py_None) { _arg0 = NULL; }
3059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLanguageInfo_p")) {
3060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_AddLanguage. Expected _wxLanguageInfo_p.");
3061 return NULL;
3062 }
3063 }
3064 {
3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
3066 wxLocale::AddLanguage(*_arg0);
3067
3068 wxPyEndAllowThreads(__tstate);
3069 if (PyErr_Occurred()) return NULL;
3070 } Py_INCREF(Py_None);
3071 _resultobj = Py_None;
3072 return _resultobj;
3073 }
3074
3075 #define wxLocale_GetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetString(_swigarg0,_swigarg1))
3076 static PyObject *_wrap_wxLocale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3077 PyObject * _resultobj;
3078 wxString * _result;
3079 wxLocale * _arg0;
3080 wxString * _arg1;
3081 wxString * _arg2 = (wxString *) &wxPyEmptyString;
3082 PyObject * _argo0 = 0;
3083 PyObject * _obj1 = 0;
3084 PyObject * _obj2 = 0;
3085 char *_kwnames[] = { "self","szOrigString","szDomain", NULL };
3086
3087 self = self;
3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxLocale_GetString",_kwnames,&_argo0,&_obj1,&_obj2))
3089 return NULL;
3090 if (_argo0) {
3091 if (_argo0 == Py_None) { _arg0 = NULL; }
3092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
3093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_GetString. Expected _wxLocale_p.");
3094 return NULL;
3095 }
3096 }
3097 {
3098 _arg1 = wxString_in_helper(_obj1);
3099 if (_arg1 == NULL)
3100 return NULL;
3101 }
3102 if (_obj2)
3103 {
3104 _arg2 = wxString_in_helper(_obj2);
3105 if (_arg2 == NULL)
3106 return NULL;
3107 }
3108 {
3109 PyThreadState* __tstate = wxPyBeginAllowThreads();
3110 _result = new wxString (wxLocale_GetString(_arg0,*_arg1,*_arg2));
3111
3112 wxPyEndAllowThreads(__tstate);
3113 if (PyErr_Occurred()) return NULL;
3114 }{
3115 #if wxUSE_UNICODE
3116 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3117 #else
3118 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3119 #endif
3120 }
3121 {
3122 if (_obj1)
3123 delete _arg1;
3124 }
3125 {
3126 if (_obj2)
3127 delete _arg2;
3128 }
3129 {
3130 delete _result;
3131 }
3132 return _resultobj;
3133 }
3134
3135 #define wxLocale_GetName(_swigobj) (_swigobj->GetName())
3136 static PyObject *_wrap_wxLocale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
3137 PyObject * _resultobj;
3138 wxString * _result;
3139 wxLocale * _arg0;
3140 PyObject * _argo0 = 0;
3141 char *_kwnames[] = { "self", NULL };
3142
3143 self = self;
3144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLocale_GetName",_kwnames,&_argo0))
3145 return NULL;
3146 if (_argo0) {
3147 if (_argo0 == Py_None) { _arg0 = NULL; }
3148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLocale_p")) {
3149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLocale_GetName. Expected _wxLocale_p.");
3150 return NULL;
3151 }
3152 }
3153 {
3154 PyThreadState* __tstate = wxPyBeginAllowThreads();
3155 const wxString & _result_ref = wxLocale_GetName(_arg0);
3156 _result = (wxString *) &_result_ref;
3157
3158 wxPyEndAllowThreads(__tstate);
3159 if (PyErr_Occurred()) return NULL;
3160 }{
3161 #if wxUSE_UNICODE
3162 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3163 #else
3164 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3165 #endif
3166 }
3167 return _resultobj;
3168 }
3169
3170 static void *SwigwxEncodingConverterTowxObject(void *ptr) {
3171 wxEncodingConverter *src;
3172 wxObject *dest;
3173 src = (wxEncodingConverter *) ptr;
3174 dest = (wxObject *) src;
3175 return (void *) dest;
3176 }
3177
3178 #define new_wxEncodingConverter() (new wxEncodingConverter())
3179 static PyObject *_wrap_new_wxEncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
3180 PyObject * _resultobj;
3181 wxEncodingConverter * _result;
3182 char *_kwnames[] = { NULL };
3183 char _ptemp[128];
3184
3185 self = self;
3186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEncodingConverter",_kwnames))
3187 return NULL;
3188 {
3189 PyThreadState* __tstate = wxPyBeginAllowThreads();
3190 _result = (wxEncodingConverter *)new_wxEncodingConverter();
3191
3192 wxPyEndAllowThreads(__tstate);
3193 if (PyErr_Occurred()) return NULL;
3194 } if (_result) {
3195 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEncodingConverter_p");
3196 _resultobj = Py_BuildValue("s",_ptemp);
3197 } else {
3198 Py_INCREF(Py_None);
3199 _resultobj = Py_None;
3200 }
3201 return _resultobj;
3202 }
3203
3204 #define delete_wxEncodingConverter(_swigobj) (delete _swigobj)
3205 static PyObject *_wrap_delete_wxEncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
3206 PyObject * _resultobj;
3207 wxEncodingConverter * _arg0;
3208 PyObject * _argo0 = 0;
3209 char *_kwnames[] = { "self", NULL };
3210
3211 self = self;
3212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxEncodingConverter",_kwnames,&_argo0))
3213 return NULL;
3214 if (_argo0) {
3215 if (_argo0 == Py_None) { _arg0 = NULL; }
3216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEncodingConverter_p")) {
3217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxEncodingConverter. Expected _wxEncodingConverter_p.");
3218 return NULL;
3219 }
3220 }
3221 {
3222 PyThreadState* __tstate = wxPyBeginAllowThreads();
3223 delete_wxEncodingConverter(_arg0);
3224
3225 wxPyEndAllowThreads(__tstate);
3226 if (PyErr_Occurred()) return NULL;
3227 } Py_INCREF(Py_None);
3228 _resultobj = Py_None;
3229 return _resultobj;
3230 }
3231
3232 #define wxEncodingConverter_Init(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Init(_swigarg0,_swigarg1,_swigarg2))
3233 static PyObject *_wrap_wxEncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
3234 PyObject * _resultobj;
3235 bool _result;
3236 wxEncodingConverter * _arg0;
3237 wxFontEncoding _arg1;
3238 wxFontEncoding _arg2;
3239 int _arg3 = (int ) (wxCONVERT_STRICT);
3240 PyObject * _argo0 = 0;
3241 char *_kwnames[] = { "self","input_enc","output_enc","method", NULL };
3242
3243 self = self;
3244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxEncodingConverter_Init",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3245 return NULL;
3246 if (_argo0) {
3247 if (_argo0 == Py_None) { _arg0 = NULL; }
3248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEncodingConverter_p")) {
3249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEncodingConverter_Init. Expected _wxEncodingConverter_p.");
3250 return NULL;
3251 }
3252 }
3253 {
3254 PyThreadState* __tstate = wxPyBeginAllowThreads();
3255 _result = (bool )wxEncodingConverter_Init(_arg0,_arg1,_arg2,_arg3);
3256
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) return NULL;
3259 } _resultobj = Py_BuildValue("i",_result);
3260 return _resultobj;
3261 }
3262
3263 #define wxEncodingConverter_Convert(_swigobj,_swigarg0) (_swigobj->Convert(_swigarg0))
3264 static PyObject *_wrap_wxEncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
3265 PyObject * _resultobj;
3266 wxString * _result;
3267 wxEncodingConverter * _arg0;
3268 wxString * _arg1;
3269 PyObject * _argo0 = 0;
3270 PyObject * _obj1 = 0;
3271 char *_kwnames[] = { "self","input", NULL };
3272
3273 self = self;
3274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEncodingConverter_Convert",_kwnames,&_argo0,&_obj1))
3275 return NULL;
3276 if (_argo0) {
3277 if (_argo0 == Py_None) { _arg0 = NULL; }
3278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEncodingConverter_p")) {
3279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEncodingConverter_Convert. Expected _wxEncodingConverter_p.");
3280 return NULL;
3281 }
3282 }
3283 {
3284 _arg1 = wxString_in_helper(_obj1);
3285 if (_arg1 == NULL)
3286 return NULL;
3287 }
3288 {
3289 PyThreadState* __tstate = wxPyBeginAllowThreads();
3290 _result = new wxString (wxEncodingConverter_Convert(_arg0,*_arg1));
3291
3292 wxPyEndAllowThreads(__tstate);
3293 if (PyErr_Occurred()) return NULL;
3294 }{
3295 #if wxUSE_UNICODE
3296 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3297 #else
3298 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3299 #endif
3300 }
3301 {
3302 if (_obj1)
3303 delete _arg1;
3304 }
3305 {
3306 delete _result;
3307 }
3308 return _resultobj;
3309 }
3310
3311 static PyObject *_wrap_wxEncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
3312 PyObject * _resultobj;
3313 wxFontEncodingArray * _result;
3314 wxFontEncoding _arg0;
3315 int _arg1 = (int ) (wxPLATFORM_CURRENT);
3316 char *_kwnames[] = { "enc","platform", NULL };
3317
3318 self = self;
3319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxEncodingConverter_GetPlatformEquivalents",_kwnames,&_arg0,&_arg1))
3320 return NULL;
3321 {
3322 PyThreadState* __tstate = wxPyBeginAllowThreads();
3323 _result = new wxFontEncodingArray (wxEncodingConverter::GetPlatformEquivalents(_arg0,_arg1));
3324
3325 wxPyEndAllowThreads(__tstate);
3326 if (PyErr_Occurred()) return NULL;
3327 }{
3328 _resultobj = PyList_New(0);
3329 for (size_t i=0; i < _result->GetCount(); i++) {
3330 PyObject* number = PyInt_FromLong(_result->Item(i));
3331 PyList_Append(_resultobj, number);
3332 Py_DECREF(number);
3333 }
3334 }
3335 return _resultobj;
3336 }
3337
3338 static PyObject *_wrap_wxEncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
3339 PyObject * _resultobj;
3340 wxFontEncodingArray * _result;
3341 wxFontEncoding _arg0;
3342 char *_kwnames[] = { "enc", NULL };
3343
3344 self = self;
3345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxEncodingConverter_GetAllEquivalents",_kwnames,&_arg0))
3346 return NULL;
3347 {
3348 PyThreadState* __tstate = wxPyBeginAllowThreads();
3349 _result = new wxFontEncodingArray (wxEncodingConverter::GetAllEquivalents(_arg0));
3350
3351 wxPyEndAllowThreads(__tstate);
3352 if (PyErr_Occurred()) return NULL;
3353 }{
3354 _resultobj = PyList_New(0);
3355 for (size_t i=0; i < _result->GetCount(); i++) {
3356 PyObject* number = PyInt_FromLong(_result->Item(i));
3357 PyList_Append(_resultobj, number);
3358 Py_DECREF(number);
3359 }
3360 }
3361 return _resultobj;
3362 }
3363
3364 static PyMethodDef fontscMethods[] = {
3365 { "wxEncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_wxEncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
3366 { "wxEncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_wxEncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
3367 { "wxEncodingConverter_Convert", (PyCFunction) _wrap_wxEncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
3368 { "wxEncodingConverter_Init", (PyCFunction) _wrap_wxEncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
3369 { "delete_wxEncodingConverter", (PyCFunction) _wrap_delete_wxEncodingConverter, METH_VARARGS | METH_KEYWORDS },
3370 { "new_wxEncodingConverter", (PyCFunction) _wrap_new_wxEncodingConverter, METH_VARARGS | METH_KEYWORDS },
3371 { "wxLocale_GetName", (PyCFunction) _wrap_wxLocale_GetName, METH_VARARGS | METH_KEYWORDS },
3372 { "wxLocale_GetString", (PyCFunction) _wrap_wxLocale_GetString, METH_VARARGS | METH_KEYWORDS },
3373 { "wxLocale_AddLanguage", (PyCFunction) _wrap_wxLocale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
3374 { "wxLocale_IsLoaded", (PyCFunction) _wrap_wxLocale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
3375 { "wxLocale_AddCatalog", (PyCFunction) _wrap_wxLocale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
3376 { "wxLocale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_wxLocale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
3377 { "wxLocale_GetCanonicalName", (PyCFunction) _wrap_wxLocale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
3378 { "wxLocale_GetSysName", (PyCFunction) _wrap_wxLocale_GetSysName, METH_VARARGS | METH_KEYWORDS },
3379 { "wxLocale_GetLanguage", (PyCFunction) _wrap_wxLocale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
3380 { "wxLocale_GetLocale", (PyCFunction) _wrap_wxLocale_GetLocale, METH_VARARGS | METH_KEYWORDS },
3381 { "wxLocale_IsOk", (PyCFunction) _wrap_wxLocale_IsOk, METH_VARARGS | METH_KEYWORDS },
3382 { "wxLocale_GetSystemEncodingName", (PyCFunction) _wrap_wxLocale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
3383 { "wxLocale_GetSystemEncoding", (PyCFunction) _wrap_wxLocale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
3384 { "wxLocale_GetSystemLanguage", (PyCFunction) _wrap_wxLocale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
3385 { "delete_wxLocale", (PyCFunction) _wrap_delete_wxLocale, METH_VARARGS | METH_KEYWORDS },
3386 { "wxLocale_Init", (PyCFunction) _wrap_wxLocale_Init, METH_VARARGS | METH_KEYWORDS },
3387 { "new_wxLocale", (PyCFunction) _wrap_new_wxLocale, METH_VARARGS | METH_KEYWORDS },
3388 { "wxLanguageInfo_Description_get", (PyCFunction) _wrap_wxLanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
3389 { "wxLanguageInfo_Description_set", (PyCFunction) _wrap_wxLanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
3390 { "wxLanguageInfo_CanonicalName_get", (PyCFunction) _wrap_wxLanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
3391 { "wxLanguageInfo_CanonicalName_set", (PyCFunction) _wrap_wxLanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
3392 { "wxLanguageInfo_Language_get", (PyCFunction) _wrap_wxLanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
3393 { "wxLanguageInfo_Language_set", (PyCFunction) _wrap_wxLanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
3394 { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
3395 { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
3396 { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
3397 { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
3398 { "wxFontEnumerator__setCallbackInfo", (PyCFunction) _wrap_wxFontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
3399 { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS },
3400 { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS },
3401 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
3402 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
3403 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
3404 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
3405 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
3406 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
3407 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
3408 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
3409 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
3410 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
3411 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
3412 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
3413 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
3414 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
3415 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
3416 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
3417 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
3418 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
3419 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
3420 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
3421 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
3422 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
3423 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
3424 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
3425 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
3426 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
3427 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
3428 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
3429 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
3430 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
3431 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
3432 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
3433 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
3434 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
3435 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
3436 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
3437 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
3438 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
3439 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
3440 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
3441 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
3442 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
3443 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
3444 { "wxFontMapper_Set", (PyCFunction) _wrap_wxFontMapper_Set, METH_VARARGS | METH_KEYWORDS },
3445 { "wxFontMapper_Get", (PyCFunction) _wrap_wxFontMapper_Get, METH_VARARGS | METH_KEYWORDS },
3446 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
3447 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
3448 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
3449 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
3450 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
3451 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
3452 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
3453 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
3454 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
3455 { "wxNativeFontInfo_SetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_SetXFontName, METH_VARARGS | METH_KEYWORDS },
3456 { "wxNativeFontInfo_GetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_GetXFontName, METH_VARARGS | METH_KEYWORDS },
3457 { "wxNativeFontInfo_IsDefault", (PyCFunction) _wrap_wxNativeFontInfo_IsDefault, METH_VARARGS | METH_KEYWORDS },
3458 { "wxNativeFontInfo_FromXFontName", (PyCFunction) _wrap_wxNativeFontInfo_FromXFontName, METH_VARARGS | METH_KEYWORDS },
3459 { "wxGetTranslation", (PyCFunction) _wrap_wxGetTranslation, METH_VARARGS | METH_KEYWORDS },
3460 { "wxGetLocale", (PyCFunction) _wrap_wxGetLocale, METH_VARARGS | METH_KEYWORDS },
3461 { NULL, NULL }
3462 };
3463 #ifdef __cplusplus
3464 }
3465 #endif
3466 /*
3467 * This table is used by the pointer type-checker
3468 */
3469 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
3470 { "_signed_long","_long",0},
3471 { "_wxPrintQuality","_wxCoord",0},
3472 { "_wxPrintQuality","_int",0},
3473 { "_wxPrintQuality","_signed_int",0},
3474 { "_wxPrintQuality","_unsigned_int",0},
3475 { "_wxPrintQuality","_wxWindowID",0},
3476 { "_wxPrintQuality","_uint",0},
3477 { "_wxPrintQuality","_EBool",0},
3478 { "_wxPrintQuality","_size_t",0},
3479 { "_wxPrintQuality","_time_t",0},
3480 { "_byte","_unsigned_char",0},
3481 { "_long","_unsigned_long",0},
3482 { "_long","_signed_long",0},
3483 { "_size_t","_wxCoord",0},
3484 { "_size_t","_wxPrintQuality",0},
3485 { "_size_t","_time_t",0},
3486 { "_size_t","_unsigned_int",0},
3487 { "_size_t","_int",0},
3488 { "_size_t","_wxWindowID",0},
3489 { "_size_t","_uint",0},
3490 { "_uint","_wxCoord",0},
3491 { "_uint","_wxPrintQuality",0},
3492 { "_uint","_time_t",0},
3493 { "_uint","_size_t",0},
3494 { "_uint","_unsigned_int",0},
3495 { "_uint","_int",0},
3496 { "_uint","_wxWindowID",0},
3497 { "_wxChar","_char",0},
3498 { "_char","_wxChar",0},
3499 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3500 { "_EBool","_wxCoord",0},
3501 { "_EBool","_wxPrintQuality",0},
3502 { "_EBool","_signed_int",0},
3503 { "_EBool","_int",0},
3504 { "_EBool","_wxWindowID",0},
3505 { "_unsigned_long","_long",0},
3506 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3507 { "_signed_int","_wxCoord",0},
3508 { "_signed_int","_wxPrintQuality",0},
3509 { "_signed_int","_EBool",0},
3510 { "_signed_int","_wxWindowID",0},
3511 { "_signed_int","_int",0},
3512 { "_WXTYPE","_short",0},
3513 { "_WXTYPE","_signed_short",0},
3514 { "_WXTYPE","_unsigned_short",0},
3515 { "_unsigned_short","_WXTYPE",0},
3516 { "_unsigned_short","_short",0},
3517 { "_wxObject","_wxEncodingConverter",SwigwxEncodingConverterTowxObject},
3518 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
3519 { "_wxObject","_wxFont",SwigwxFontTowxObject},
3520 { "_signed_short","_WXTYPE",0},
3521 { "_signed_short","_short",0},
3522 { "_unsigned_char","_byte",0},
3523 { "_unsigned_int","_wxCoord",0},
3524 { "_unsigned_int","_wxPrintQuality",0},
3525 { "_unsigned_int","_time_t",0},
3526 { "_unsigned_int","_size_t",0},
3527 { "_unsigned_int","_uint",0},
3528 { "_unsigned_int","_wxWindowID",0},
3529 { "_unsigned_int","_int",0},
3530 { "_short","_WXTYPE",0},
3531 { "_short","_unsigned_short",0},
3532 { "_short","_signed_short",0},
3533 { "_wxWindowID","_wxCoord",0},
3534 { "_wxWindowID","_wxPrintQuality",0},
3535 { "_wxWindowID","_time_t",0},
3536 { "_wxWindowID","_size_t",0},
3537 { "_wxWindowID","_EBool",0},
3538 { "_wxWindowID","_uint",0},
3539 { "_wxWindowID","_int",0},
3540 { "_wxWindowID","_signed_int",0},
3541 { "_wxWindowID","_unsigned_int",0},
3542 { "_int","_wxCoord",0},
3543 { "_int","_wxPrintQuality",0},
3544 { "_int","_time_t",0},
3545 { "_int","_size_t",0},
3546 { "_int","_EBool",0},
3547 { "_int","_uint",0},
3548 { "_int","_wxWindowID",0},
3549 { "_int","_unsigned_int",0},
3550 { "_int","_signed_int",0},
3551 { "_time_t","_wxCoord",0},
3552 { "_time_t","_wxPrintQuality",0},
3553 { "_time_t","_unsigned_int",0},
3554 { "_time_t","_int",0},
3555 { "_time_t","_wxWindowID",0},
3556 { "_time_t","_uint",0},
3557 { "_time_t","_size_t",0},
3558 { "_wxCoord","_int",0},
3559 { "_wxCoord","_signed_int",0},
3560 { "_wxCoord","_unsigned_int",0},
3561 { "_wxCoord","_wxWindowID",0},
3562 { "_wxCoord","_uint",0},
3563 { "_wxCoord","_EBool",0},
3564 { "_wxCoord","_size_t",0},
3565 { "_wxCoord","_time_t",0},
3566 { "_wxCoord","_wxPrintQuality",0},
3567 {0,0,0}};
3568
3569 static PyObject *SWIG_globals;
3570 #ifdef __cplusplus
3571 extern "C"
3572 #endif
3573 SWIGEXPORT(void) initfontsc() {
3574 PyObject *m, *d;
3575 SWIG_globals = SWIG_newvarlink();
3576 m = Py_InitModule("fontsc", fontscMethods);
3577 d = PyModule_GetDict(m);
3578 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
3579 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
3580 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
3581 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
3582 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
3583 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
3584 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
3585 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
3586 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
3587 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
3588 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
3589 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
3590 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
3591 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
3592 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
3593 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
3594 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
3595 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
3596 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
3597 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
3598 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
3599 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
3600 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
3601 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
3602 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
3603 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
3604 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
3605 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
3606 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
3607 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
3608 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
3609 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
3610 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
3611 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
3612 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
3613 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
3614 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
3615 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
3616 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
3617 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
3618 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
3619 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
3620 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
3621 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
3622 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
3623 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
3624 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
3625 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
3626 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
3627 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
3628 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
3629 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
3630 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
3631 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
3632 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
3633 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
3634 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
3635 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
3636 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
3637 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
3638 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
3639 PyDict_SetItemString(d,"wxLANGUAGE_DEFAULT", PyInt_FromLong((long) wxLANGUAGE_DEFAULT));
3640 PyDict_SetItemString(d,"wxLANGUAGE_UNKNOWN", PyInt_FromLong((long) wxLANGUAGE_UNKNOWN));
3641 PyDict_SetItemString(d,"wxLANGUAGE_ABKHAZIAN", PyInt_FromLong((long) wxLANGUAGE_ABKHAZIAN));
3642 PyDict_SetItemString(d,"wxLANGUAGE_AFAR", PyInt_FromLong((long) wxLANGUAGE_AFAR));
3643 PyDict_SetItemString(d,"wxLANGUAGE_AFRIKAANS", PyInt_FromLong((long) wxLANGUAGE_AFRIKAANS));
3644 PyDict_SetItemString(d,"wxLANGUAGE_ALBANIAN", PyInt_FromLong((long) wxLANGUAGE_ALBANIAN));
3645 PyDict_SetItemString(d,"wxLANGUAGE_AMHARIC", PyInt_FromLong((long) wxLANGUAGE_AMHARIC));
3646 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC", PyInt_FromLong((long) wxLANGUAGE_ARABIC));
3647 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_ALGERIA", PyInt_FromLong((long) wxLANGUAGE_ARABIC_ALGERIA));
3648 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_BAHRAIN", PyInt_FromLong((long) wxLANGUAGE_ARABIC_BAHRAIN));
3649 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_EGYPT", PyInt_FromLong((long) wxLANGUAGE_ARABIC_EGYPT));
3650 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_IRAQ", PyInt_FromLong((long) wxLANGUAGE_ARABIC_IRAQ));
3651 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_JORDAN", PyInt_FromLong((long) wxLANGUAGE_ARABIC_JORDAN));
3652 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_KUWAIT", PyInt_FromLong((long) wxLANGUAGE_ARABIC_KUWAIT));
3653 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_LEBANON", PyInt_FromLong((long) wxLANGUAGE_ARABIC_LEBANON));
3654 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_LIBYA", PyInt_FromLong((long) wxLANGUAGE_ARABIC_LIBYA));
3655 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_MOROCCO", PyInt_FromLong((long) wxLANGUAGE_ARABIC_MOROCCO));
3656 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_OMAN", PyInt_FromLong((long) wxLANGUAGE_ARABIC_OMAN));
3657 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_QATAR", PyInt_FromLong((long) wxLANGUAGE_ARABIC_QATAR));
3658 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_SAUDI_ARABIA", PyInt_FromLong((long) wxLANGUAGE_ARABIC_SAUDI_ARABIA));
3659 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_SUDAN", PyInt_FromLong((long) wxLANGUAGE_ARABIC_SUDAN));
3660 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_SYRIA", PyInt_FromLong((long) wxLANGUAGE_ARABIC_SYRIA));
3661 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_TUNISIA", PyInt_FromLong((long) wxLANGUAGE_ARABIC_TUNISIA));
3662 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_UAE", PyInt_FromLong((long) wxLANGUAGE_ARABIC_UAE));
3663 PyDict_SetItemString(d,"wxLANGUAGE_ARABIC_YEMEN", PyInt_FromLong((long) wxLANGUAGE_ARABIC_YEMEN));
3664 PyDict_SetItemString(d,"wxLANGUAGE_ARMENIAN", PyInt_FromLong((long) wxLANGUAGE_ARMENIAN));
3665 PyDict_SetItemString(d,"wxLANGUAGE_ASSAMESE", PyInt_FromLong((long) wxLANGUAGE_ASSAMESE));
3666 PyDict_SetItemString(d,"wxLANGUAGE_AYMARA", PyInt_FromLong((long) wxLANGUAGE_AYMARA));
3667 PyDict_SetItemString(d,"wxLANGUAGE_AZERI", PyInt_FromLong((long) wxLANGUAGE_AZERI));
3668 PyDict_SetItemString(d,"wxLANGUAGE_AZERI_CYRILLIC", PyInt_FromLong((long) wxLANGUAGE_AZERI_CYRILLIC));
3669 PyDict_SetItemString(d,"wxLANGUAGE_AZERI_LATIN", PyInt_FromLong((long) wxLANGUAGE_AZERI_LATIN));
3670 PyDict_SetItemString(d,"wxLANGUAGE_BASHKIR", PyInt_FromLong((long) wxLANGUAGE_BASHKIR));
3671 PyDict_SetItemString(d,"wxLANGUAGE_BASQUE", PyInt_FromLong((long) wxLANGUAGE_BASQUE));
3672 PyDict_SetItemString(d,"wxLANGUAGE_BELARUSIAN", PyInt_FromLong((long) wxLANGUAGE_BELARUSIAN));
3673 PyDict_SetItemString(d,"wxLANGUAGE_BENGALI", PyInt_FromLong((long) wxLANGUAGE_BENGALI));
3674 PyDict_SetItemString(d,"wxLANGUAGE_BHUTANI", PyInt_FromLong((long) wxLANGUAGE_BHUTANI));
3675 PyDict_SetItemString(d,"wxLANGUAGE_BIHARI", PyInt_FromLong((long) wxLANGUAGE_BIHARI));
3676 PyDict_SetItemString(d,"wxLANGUAGE_BISLAMA", PyInt_FromLong((long) wxLANGUAGE_BISLAMA));
3677 PyDict_SetItemString(d,"wxLANGUAGE_BRETON", PyInt_FromLong((long) wxLANGUAGE_BRETON));
3678 PyDict_SetItemString(d,"wxLANGUAGE_BULGARIAN", PyInt_FromLong((long) wxLANGUAGE_BULGARIAN));
3679 PyDict_SetItemString(d,"wxLANGUAGE_BURMESE", PyInt_FromLong((long) wxLANGUAGE_BURMESE));
3680 PyDict_SetItemString(d,"wxLANGUAGE_CAMBODIAN", PyInt_FromLong((long) wxLANGUAGE_CAMBODIAN));
3681 PyDict_SetItemString(d,"wxLANGUAGE_CATALAN", PyInt_FromLong((long) wxLANGUAGE_CATALAN));
3682 PyDict_SetItemString(d,"wxLANGUAGE_CHINESE", PyInt_FromLong((long) wxLANGUAGE_CHINESE));
3683 PyDict_SetItemString(d,"wxLANGUAGE_CHINESE_SIMPLIFIED", PyInt_FromLong((long) wxLANGUAGE_CHINESE_SIMPLIFIED));
3684 PyDict_SetItemString(d,"wxLANGUAGE_CHINESE_TRADITIONAL", PyInt_FromLong((long) wxLANGUAGE_CHINESE_TRADITIONAL));
3685 PyDict_SetItemString(d,"wxLANGUAGE_CHINESE_HONGKONG", PyInt_FromLong((long) wxLANGUAGE_CHINESE_HONGKONG));
3686 PyDict_SetItemString(d,"wxLANGUAGE_CHINESE_MACAU", PyInt_FromLong((long) wxLANGUAGE_CHINESE_MACAU));
3687 PyDict_SetItemString(d,"wxLANGUAGE_CHINESE_SINGAPORE", PyInt_FromLong((long) wxLANGUAGE_CHINESE_SINGAPORE));
3688 PyDict_SetItemString(d,"wxLANGUAGE_CHINESE_TAIWAN", PyInt_FromLong((long) wxLANGUAGE_CHINESE_TAIWAN));
3689 PyDict_SetItemString(d,"wxLANGUAGE_CORSICAN", PyInt_FromLong((long) wxLANGUAGE_CORSICAN));
3690 PyDict_SetItemString(d,"wxLANGUAGE_CROATIAN", PyInt_FromLong((long) wxLANGUAGE_CROATIAN));
3691 PyDict_SetItemString(d,"wxLANGUAGE_CZECH", PyInt_FromLong((long) wxLANGUAGE_CZECH));
3692 PyDict_SetItemString(d,"wxLANGUAGE_DANISH", PyInt_FromLong((long) wxLANGUAGE_DANISH));
3693 PyDict_SetItemString(d,"wxLANGUAGE_DUTCH", PyInt_FromLong((long) wxLANGUAGE_DUTCH));
3694 PyDict_SetItemString(d,"wxLANGUAGE_DUTCH_BELGIAN", PyInt_FromLong((long) wxLANGUAGE_DUTCH_BELGIAN));
3695 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH", PyInt_FromLong((long) wxLANGUAGE_ENGLISH));
3696 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_UK", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_UK));
3697 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_US", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_US));
3698 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_AUSTRALIA", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_AUSTRALIA));
3699 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_BELIZE", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_BELIZE));
3700 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_BOTSWANA", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_BOTSWANA));
3701 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_CANADA", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_CANADA));
3702 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_CARIBBEAN", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_CARIBBEAN));
3703 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_DENMARK", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_DENMARK));
3704 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_EIRE", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_EIRE));
3705 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_JAMAICA", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_JAMAICA));
3706 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_NEW_ZEALAND", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_NEW_ZEALAND));
3707 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_PHILIPPINES", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_PHILIPPINES));
3708 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_SOUTH_AFRICA", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
3709 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_TRINIDAD", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_TRINIDAD));
3710 PyDict_SetItemString(d,"wxLANGUAGE_ENGLISH_ZIMBABWE", PyInt_FromLong((long) wxLANGUAGE_ENGLISH_ZIMBABWE));
3711 PyDict_SetItemString(d,"wxLANGUAGE_ESPERANTO", PyInt_FromLong((long) wxLANGUAGE_ESPERANTO));
3712 PyDict_SetItemString(d,"wxLANGUAGE_ESTONIAN", PyInt_FromLong((long) wxLANGUAGE_ESTONIAN));
3713 PyDict_SetItemString(d,"wxLANGUAGE_FAEROESE", PyInt_FromLong((long) wxLANGUAGE_FAEROESE));
3714 PyDict_SetItemString(d,"wxLANGUAGE_FARSI", PyInt_FromLong((long) wxLANGUAGE_FARSI));
3715 PyDict_SetItemString(d,"wxLANGUAGE_FIJI", PyInt_FromLong((long) wxLANGUAGE_FIJI));
3716 PyDict_SetItemString(d,"wxLANGUAGE_FINNISH", PyInt_FromLong((long) wxLANGUAGE_FINNISH));
3717 PyDict_SetItemString(d,"wxLANGUAGE_FRENCH", PyInt_FromLong((long) wxLANGUAGE_FRENCH));
3718 PyDict_SetItemString(d,"wxLANGUAGE_FRENCH_BELGIAN", PyInt_FromLong((long) wxLANGUAGE_FRENCH_BELGIAN));
3719 PyDict_SetItemString(d,"wxLANGUAGE_FRENCH_CANADIAN", PyInt_FromLong((long) wxLANGUAGE_FRENCH_CANADIAN));
3720 PyDict_SetItemString(d,"wxLANGUAGE_FRENCH_LUXEMBOURG", PyInt_FromLong((long) wxLANGUAGE_FRENCH_LUXEMBOURG));
3721 PyDict_SetItemString(d,"wxLANGUAGE_FRENCH_MONACO", PyInt_FromLong((long) wxLANGUAGE_FRENCH_MONACO));
3722 PyDict_SetItemString(d,"wxLANGUAGE_FRENCH_SWISS", PyInt_FromLong((long) wxLANGUAGE_FRENCH_SWISS));
3723 PyDict_SetItemString(d,"wxLANGUAGE_FRISIAN", PyInt_FromLong((long) wxLANGUAGE_FRISIAN));
3724 PyDict_SetItemString(d,"wxLANGUAGE_GALICIAN", PyInt_FromLong((long) wxLANGUAGE_GALICIAN));
3725 PyDict_SetItemString(d,"wxLANGUAGE_GEORGIAN", PyInt_FromLong((long) wxLANGUAGE_GEORGIAN));
3726 PyDict_SetItemString(d,"wxLANGUAGE_GERMAN", PyInt_FromLong((long) wxLANGUAGE_GERMAN));
3727 PyDict_SetItemString(d,"wxLANGUAGE_GERMAN_AUSTRIAN", PyInt_FromLong((long) wxLANGUAGE_GERMAN_AUSTRIAN));
3728 PyDict_SetItemString(d,"wxLANGUAGE_GERMAN_BELGIUM", PyInt_FromLong((long) wxLANGUAGE_GERMAN_BELGIUM));
3729 PyDict_SetItemString(d,"wxLANGUAGE_GERMAN_LIECHTENSTEIN", PyInt_FromLong((long) wxLANGUAGE_GERMAN_LIECHTENSTEIN));
3730 PyDict_SetItemString(d,"wxLANGUAGE_GERMAN_LUXEMBOURG", PyInt_FromLong((long) wxLANGUAGE_GERMAN_LUXEMBOURG));
3731 PyDict_SetItemString(d,"wxLANGUAGE_GERMAN_SWISS", PyInt_FromLong((long) wxLANGUAGE_GERMAN_SWISS));
3732 PyDict_SetItemString(d,"wxLANGUAGE_GREEK", PyInt_FromLong((long) wxLANGUAGE_GREEK));
3733 PyDict_SetItemString(d,"wxLANGUAGE_GREENLANDIC", PyInt_FromLong((long) wxLANGUAGE_GREENLANDIC));
3734 PyDict_SetItemString(d,"wxLANGUAGE_GUARANI", PyInt_FromLong((long) wxLANGUAGE_GUARANI));
3735 PyDict_SetItemString(d,"wxLANGUAGE_GUJARATI", PyInt_FromLong((long) wxLANGUAGE_GUJARATI));
3736 PyDict_SetItemString(d,"wxLANGUAGE_HAUSA", PyInt_FromLong((long) wxLANGUAGE_HAUSA));
3737 PyDict_SetItemString(d,"wxLANGUAGE_HEBREW", PyInt_FromLong((long) wxLANGUAGE_HEBREW));
3738 PyDict_SetItemString(d,"wxLANGUAGE_HINDI", PyInt_FromLong((long) wxLANGUAGE_HINDI));
3739 PyDict_SetItemString(d,"wxLANGUAGE_HUNGARIAN", PyInt_FromLong((long) wxLANGUAGE_HUNGARIAN));
3740 PyDict_SetItemString(d,"wxLANGUAGE_ICELANDIC", PyInt_FromLong((long) wxLANGUAGE_ICELANDIC));
3741 PyDict_SetItemString(d,"wxLANGUAGE_INDONESIAN", PyInt_FromLong((long) wxLANGUAGE_INDONESIAN));
3742 PyDict_SetItemString(d,"wxLANGUAGE_INTERLINGUA", PyInt_FromLong((long) wxLANGUAGE_INTERLINGUA));
3743 PyDict_SetItemString(d,"wxLANGUAGE_INTERLINGUE", PyInt_FromLong((long) wxLANGUAGE_INTERLINGUE));
3744 PyDict_SetItemString(d,"wxLANGUAGE_INUKTITUT", PyInt_FromLong((long) wxLANGUAGE_INUKTITUT));
3745 PyDict_SetItemString(d,"wxLANGUAGE_INUPIAK", PyInt_FromLong((long) wxLANGUAGE_INUPIAK));
3746 PyDict_SetItemString(d,"wxLANGUAGE_IRISH", PyInt_FromLong((long) wxLANGUAGE_IRISH));
3747 PyDict_SetItemString(d,"wxLANGUAGE_ITALIAN", PyInt_FromLong((long) wxLANGUAGE_ITALIAN));
3748 PyDict_SetItemString(d,"wxLANGUAGE_ITALIAN_SWISS", PyInt_FromLong((long) wxLANGUAGE_ITALIAN_SWISS));
3749 PyDict_SetItemString(d,"wxLANGUAGE_JAPANESE", PyInt_FromLong((long) wxLANGUAGE_JAPANESE));
3750 PyDict_SetItemString(d,"wxLANGUAGE_JAVANESE", PyInt_FromLong((long) wxLANGUAGE_JAVANESE));
3751 PyDict_SetItemString(d,"wxLANGUAGE_KANNADA", PyInt_FromLong((long) wxLANGUAGE_KANNADA));
3752 PyDict_SetItemString(d,"wxLANGUAGE_KASHMIRI", PyInt_FromLong((long) wxLANGUAGE_KASHMIRI));
3753 PyDict_SetItemString(d,"wxLANGUAGE_KASHMIRI_INDIA", PyInt_FromLong((long) wxLANGUAGE_KASHMIRI_INDIA));
3754 PyDict_SetItemString(d,"wxLANGUAGE_KAZAKH", PyInt_FromLong((long) wxLANGUAGE_KAZAKH));
3755 PyDict_SetItemString(d,"wxLANGUAGE_KERNEWEK", PyInt_FromLong((long) wxLANGUAGE_KERNEWEK));
3756 PyDict_SetItemString(d,"wxLANGUAGE_KINYARWANDA", PyInt_FromLong((long) wxLANGUAGE_KINYARWANDA));
3757 PyDict_SetItemString(d,"wxLANGUAGE_KIRGHIZ", PyInt_FromLong((long) wxLANGUAGE_KIRGHIZ));
3758 PyDict_SetItemString(d,"wxLANGUAGE_KIRUNDI", PyInt_FromLong((long) wxLANGUAGE_KIRUNDI));
3759 PyDict_SetItemString(d,"wxLANGUAGE_KONKANI", PyInt_FromLong((long) wxLANGUAGE_KONKANI));
3760 PyDict_SetItemString(d,"wxLANGUAGE_KOREAN", PyInt_FromLong((long) wxLANGUAGE_KOREAN));
3761 PyDict_SetItemString(d,"wxLANGUAGE_KURDISH", PyInt_FromLong((long) wxLANGUAGE_KURDISH));
3762 PyDict_SetItemString(d,"wxLANGUAGE_LAOTHIAN", PyInt_FromLong((long) wxLANGUAGE_LAOTHIAN));
3763 PyDict_SetItemString(d,"wxLANGUAGE_LATIN", PyInt_FromLong((long) wxLANGUAGE_LATIN));
3764 PyDict_SetItemString(d,"wxLANGUAGE_LATVIAN", PyInt_FromLong((long) wxLANGUAGE_LATVIAN));
3765 PyDict_SetItemString(d,"wxLANGUAGE_LINGALA", PyInt_FromLong((long) wxLANGUAGE_LINGALA));
3766 PyDict_SetItemString(d,"wxLANGUAGE_LITHUANIAN", PyInt_FromLong((long) wxLANGUAGE_LITHUANIAN));
3767 PyDict_SetItemString(d,"wxLANGUAGE_MACEDONIAN", PyInt_FromLong((long) wxLANGUAGE_MACEDONIAN));
3768 PyDict_SetItemString(d,"wxLANGUAGE_MALAGASY", PyInt_FromLong((long) wxLANGUAGE_MALAGASY));
3769 PyDict_SetItemString(d,"wxLANGUAGE_MALAY", PyInt_FromLong((long) wxLANGUAGE_MALAY));
3770 PyDict_SetItemString(d,"wxLANGUAGE_MALAYALAM", PyInt_FromLong((long) wxLANGUAGE_MALAYALAM));
3771 PyDict_SetItemString(d,"wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM", PyInt_FromLong((long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
3772 PyDict_SetItemString(d,"wxLANGUAGE_MALAY_MALAYSIA", PyInt_FromLong((long) wxLANGUAGE_MALAY_MALAYSIA));
3773 PyDict_SetItemString(d,"wxLANGUAGE_MALTESE", PyInt_FromLong((long) wxLANGUAGE_MALTESE));
3774 PyDict_SetItemString(d,"wxLANGUAGE_MANIPURI", PyInt_FromLong((long) wxLANGUAGE_MANIPURI));
3775 PyDict_SetItemString(d,"wxLANGUAGE_MAORI", PyInt_FromLong((long) wxLANGUAGE_MAORI));
3776 PyDict_SetItemString(d,"wxLANGUAGE_MARATHI", PyInt_FromLong((long) wxLANGUAGE_MARATHI));
3777 PyDict_SetItemString(d,"wxLANGUAGE_MOLDAVIAN", PyInt_FromLong((long) wxLANGUAGE_MOLDAVIAN));
3778 PyDict_SetItemString(d,"wxLANGUAGE_MONGOLIAN", PyInt_FromLong((long) wxLANGUAGE_MONGOLIAN));
3779 PyDict_SetItemString(d,"wxLANGUAGE_NAURU", PyInt_FromLong((long) wxLANGUAGE_NAURU));
3780 PyDict_SetItemString(d,"wxLANGUAGE_NEPALI", PyInt_FromLong((long) wxLANGUAGE_NEPALI));
3781 PyDict_SetItemString(d,"wxLANGUAGE_NEPALI_INDIA", PyInt_FromLong((long) wxLANGUAGE_NEPALI_INDIA));
3782 PyDict_SetItemString(d,"wxLANGUAGE_NORWEGIAN_BOKMAL", PyInt_FromLong((long) wxLANGUAGE_NORWEGIAN_BOKMAL));
3783 PyDict_SetItemString(d,"wxLANGUAGE_NORWEGIAN_NYNORSK", PyInt_FromLong((long) wxLANGUAGE_NORWEGIAN_NYNORSK));
3784 PyDict_SetItemString(d,"wxLANGUAGE_OCCITAN", PyInt_FromLong((long) wxLANGUAGE_OCCITAN));
3785 PyDict_SetItemString(d,"wxLANGUAGE_ORIYA", PyInt_FromLong((long) wxLANGUAGE_ORIYA));
3786 PyDict_SetItemString(d,"wxLANGUAGE_OROMO", PyInt_FromLong((long) wxLANGUAGE_OROMO));
3787 PyDict_SetItemString(d,"wxLANGUAGE_PASHTO", PyInt_FromLong((long) wxLANGUAGE_PASHTO));
3788 PyDict_SetItemString(d,"wxLANGUAGE_POLISH", PyInt_FromLong((long) wxLANGUAGE_POLISH));
3789 PyDict_SetItemString(d,"wxLANGUAGE_PORTUGUESE", PyInt_FromLong((long) wxLANGUAGE_PORTUGUESE));
3790 PyDict_SetItemString(d,"wxLANGUAGE_PORTUGUESE_BRAZILIAN", PyInt_FromLong((long) wxLANGUAGE_PORTUGUESE_BRAZILIAN));
3791 PyDict_SetItemString(d,"wxLANGUAGE_PUNJABI", PyInt_FromLong((long) wxLANGUAGE_PUNJABI));
3792 PyDict_SetItemString(d,"wxLANGUAGE_QUECHUA", PyInt_FromLong((long) wxLANGUAGE_QUECHUA));
3793 PyDict_SetItemString(d,"wxLANGUAGE_RHAETO_ROMANCE", PyInt_FromLong((long) wxLANGUAGE_RHAETO_ROMANCE));
3794 PyDict_SetItemString(d,"wxLANGUAGE_ROMANIAN", PyInt_FromLong((long) wxLANGUAGE_ROMANIAN));
3795 PyDict_SetItemString(d,"wxLANGUAGE_RUSSIAN", PyInt_FromLong((long) wxLANGUAGE_RUSSIAN));
3796 PyDict_SetItemString(d,"wxLANGUAGE_RUSSIAN_UKRAINE", PyInt_FromLong((long) wxLANGUAGE_RUSSIAN_UKRAINE));
3797 PyDict_SetItemString(d,"wxLANGUAGE_SAMOAN", PyInt_FromLong((long) wxLANGUAGE_SAMOAN));
3798 PyDict_SetItemString(d,"wxLANGUAGE_SANGHO", PyInt_FromLong((long) wxLANGUAGE_SANGHO));
3799 PyDict_SetItemString(d,"wxLANGUAGE_SANSKRIT", PyInt_FromLong((long) wxLANGUAGE_SANSKRIT));
3800 PyDict_SetItemString(d,"wxLANGUAGE_SCOTS_GAELIC", PyInt_FromLong((long) wxLANGUAGE_SCOTS_GAELIC));
3801 PyDict_SetItemString(d,"wxLANGUAGE_SERBIAN", PyInt_FromLong((long) wxLANGUAGE_SERBIAN));
3802 PyDict_SetItemString(d,"wxLANGUAGE_SERBIAN_CYRILLIC", PyInt_FromLong((long) wxLANGUAGE_SERBIAN_CYRILLIC));
3803 PyDict_SetItemString(d,"wxLANGUAGE_SERBIAN_LATIN", PyInt_FromLong((long) wxLANGUAGE_SERBIAN_LATIN));
3804 PyDict_SetItemString(d,"wxLANGUAGE_SERBO_CROATIAN", PyInt_FromLong((long) wxLANGUAGE_SERBO_CROATIAN));
3805 PyDict_SetItemString(d,"wxLANGUAGE_SESOTHO", PyInt_FromLong((long) wxLANGUAGE_SESOTHO));
3806 PyDict_SetItemString(d,"wxLANGUAGE_SETSWANA", PyInt_FromLong((long) wxLANGUAGE_SETSWANA));
3807 PyDict_SetItemString(d,"wxLANGUAGE_SHONA", PyInt_FromLong((long) wxLANGUAGE_SHONA));
3808 PyDict_SetItemString(d,"wxLANGUAGE_SINDHI", PyInt_FromLong((long) wxLANGUAGE_SINDHI));
3809 PyDict_SetItemString(d,"wxLANGUAGE_SINHALESE", PyInt_FromLong((long) wxLANGUAGE_SINHALESE));
3810 PyDict_SetItemString(d,"wxLANGUAGE_SISWATI", PyInt_FromLong((long) wxLANGUAGE_SISWATI));
3811 PyDict_SetItemString(d,"wxLANGUAGE_SLOVAK", PyInt_FromLong((long) wxLANGUAGE_SLOVAK));
3812 PyDict_SetItemString(d,"wxLANGUAGE_SLOVENIAN", PyInt_FromLong((long) wxLANGUAGE_SLOVENIAN));
3813 PyDict_SetItemString(d,"wxLANGUAGE_SOMALI", PyInt_FromLong((long) wxLANGUAGE_SOMALI));
3814 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH", PyInt_FromLong((long) wxLANGUAGE_SPANISH));
3815 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_ARGENTINA", PyInt_FromLong((long) wxLANGUAGE_SPANISH_ARGENTINA));
3816 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_BOLIVIA", PyInt_FromLong((long) wxLANGUAGE_SPANISH_BOLIVIA));
3817 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_CHILE", PyInt_FromLong((long) wxLANGUAGE_SPANISH_CHILE));
3818 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_COLOMBIA", PyInt_FromLong((long) wxLANGUAGE_SPANISH_COLOMBIA));
3819 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_COSTA_RICA", PyInt_FromLong((long) wxLANGUAGE_SPANISH_COSTA_RICA));
3820 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC", PyInt_FromLong((long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
3821 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_ECUADOR", PyInt_FromLong((long) wxLANGUAGE_SPANISH_ECUADOR));
3822 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_EL_SALVADOR", PyInt_FromLong((long) wxLANGUAGE_SPANISH_EL_SALVADOR));
3823 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_GUATEMALA", PyInt_FromLong((long) wxLANGUAGE_SPANISH_GUATEMALA));
3824 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_HONDURAS", PyInt_FromLong((long) wxLANGUAGE_SPANISH_HONDURAS));
3825 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_MEXICAN", PyInt_FromLong((long) wxLANGUAGE_SPANISH_MEXICAN));
3826 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_MODERN", PyInt_FromLong((long) wxLANGUAGE_SPANISH_MODERN));
3827 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_NICARAGUA", PyInt_FromLong((long) wxLANGUAGE_SPANISH_NICARAGUA));
3828 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_PANAMA", PyInt_FromLong((long) wxLANGUAGE_SPANISH_PANAMA));
3829 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_PARAGUAY", PyInt_FromLong((long) wxLANGUAGE_SPANISH_PARAGUAY));
3830 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_PERU", PyInt_FromLong((long) wxLANGUAGE_SPANISH_PERU));
3831 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_PUERTO_RICO", PyInt_FromLong((long) wxLANGUAGE_SPANISH_PUERTO_RICO));
3832 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_URUGUAY", PyInt_FromLong((long) wxLANGUAGE_SPANISH_URUGUAY));
3833 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_US", PyInt_FromLong((long) wxLANGUAGE_SPANISH_US));
3834 PyDict_SetItemString(d,"wxLANGUAGE_SPANISH_VENEZUELA", PyInt_FromLong((long) wxLANGUAGE_SPANISH_VENEZUELA));
3835 PyDict_SetItemString(d,"wxLANGUAGE_SUNDANESE", PyInt_FromLong((long) wxLANGUAGE_SUNDANESE));
3836 PyDict_SetItemString(d,"wxLANGUAGE_SWAHILI", PyInt_FromLong((long) wxLANGUAGE_SWAHILI));
3837 PyDict_SetItemString(d,"wxLANGUAGE_SWEDISH", PyInt_FromLong((long) wxLANGUAGE_SWEDISH));
3838 PyDict_SetItemString(d,"wxLANGUAGE_SWEDISH_FINLAND", PyInt_FromLong((long) wxLANGUAGE_SWEDISH_FINLAND));
3839 PyDict_SetItemString(d,"wxLANGUAGE_TAGALOG", PyInt_FromLong((long) wxLANGUAGE_TAGALOG));
3840 PyDict_SetItemString(d,"wxLANGUAGE_TAJIK", PyInt_FromLong((long) wxLANGUAGE_TAJIK));
3841 PyDict_SetItemString(d,"wxLANGUAGE_TAMIL", PyInt_FromLong((long) wxLANGUAGE_TAMIL));
3842 PyDict_SetItemString(d,"wxLANGUAGE_TATAR", PyInt_FromLong((long) wxLANGUAGE_TATAR));
3843 PyDict_SetItemString(d,"wxLANGUAGE_TELUGU", PyInt_FromLong((long) wxLANGUAGE_TELUGU));
3844 PyDict_SetItemString(d,"wxLANGUAGE_THAI", PyInt_FromLong((long) wxLANGUAGE_THAI));
3845 PyDict_SetItemString(d,"wxLANGUAGE_TIBETAN", PyInt_FromLong((long) wxLANGUAGE_TIBETAN));
3846 PyDict_SetItemString(d,"wxLANGUAGE_TIGRINYA", PyInt_FromLong((long) wxLANGUAGE_TIGRINYA));
3847 PyDict_SetItemString(d,"wxLANGUAGE_TONGA", PyInt_FromLong((long) wxLANGUAGE_TONGA));
3848 PyDict_SetItemString(d,"wxLANGUAGE_TSONGA", PyInt_FromLong((long) wxLANGUAGE_TSONGA));
3849 PyDict_SetItemString(d,"wxLANGUAGE_TURKISH", PyInt_FromLong((long) wxLANGUAGE_TURKISH));
3850 PyDict_SetItemString(d,"wxLANGUAGE_TURKMEN", PyInt_FromLong((long) wxLANGUAGE_TURKMEN));
3851 PyDict_SetItemString(d,"wxLANGUAGE_TWI", PyInt_FromLong((long) wxLANGUAGE_TWI));
3852 PyDict_SetItemString(d,"wxLANGUAGE_UIGHUR", PyInt_FromLong((long) wxLANGUAGE_UIGHUR));
3853 PyDict_SetItemString(d,"wxLANGUAGE_UKRAINIAN", PyInt_FromLong((long) wxLANGUAGE_UKRAINIAN));
3854 PyDict_SetItemString(d,"wxLANGUAGE_URDU", PyInt_FromLong((long) wxLANGUAGE_URDU));
3855 PyDict_SetItemString(d,"wxLANGUAGE_URDU_INDIA", PyInt_FromLong((long) wxLANGUAGE_URDU_INDIA));
3856 PyDict_SetItemString(d,"wxLANGUAGE_URDU_PAKISTAN", PyInt_FromLong((long) wxLANGUAGE_URDU_PAKISTAN));
3857 PyDict_SetItemString(d,"wxLANGUAGE_UZBEK", PyInt_FromLong((long) wxLANGUAGE_UZBEK));
3858 PyDict_SetItemString(d,"wxLANGUAGE_UZBEK_CYRILLIC", PyInt_FromLong((long) wxLANGUAGE_UZBEK_CYRILLIC));
3859 PyDict_SetItemString(d,"wxLANGUAGE_UZBEK_LATIN", PyInt_FromLong((long) wxLANGUAGE_UZBEK_LATIN));
3860 PyDict_SetItemString(d,"wxLANGUAGE_VIETNAMESE", PyInt_FromLong((long) wxLANGUAGE_VIETNAMESE));
3861 PyDict_SetItemString(d,"wxLANGUAGE_VOLAPUK", PyInt_FromLong((long) wxLANGUAGE_VOLAPUK));
3862 PyDict_SetItemString(d,"wxLANGUAGE_WELSH", PyInt_FromLong((long) wxLANGUAGE_WELSH));
3863 PyDict_SetItemString(d,"wxLANGUAGE_WOLOF", PyInt_FromLong((long) wxLANGUAGE_WOLOF));
3864 PyDict_SetItemString(d,"wxLANGUAGE_XHOSA", PyInt_FromLong((long) wxLANGUAGE_XHOSA));
3865 PyDict_SetItemString(d,"wxLANGUAGE_YIDDISH", PyInt_FromLong((long) wxLANGUAGE_YIDDISH));
3866 PyDict_SetItemString(d,"wxLANGUAGE_YORUBA", PyInt_FromLong((long) wxLANGUAGE_YORUBA));
3867 PyDict_SetItemString(d,"wxLANGUAGE_ZHUANG", PyInt_FromLong((long) wxLANGUAGE_ZHUANG));
3868 PyDict_SetItemString(d,"wxLANGUAGE_ZULU", PyInt_FromLong((long) wxLANGUAGE_ZULU));
3869 PyDict_SetItemString(d,"wxLANGUAGE_USER_DEFINED", PyInt_FromLong((long) wxLANGUAGE_USER_DEFINED));
3870 PyDict_SetItemString(d,"wxLOCALE_CAT_NUMBER", PyInt_FromLong((long) wxLOCALE_CAT_NUMBER));
3871 PyDict_SetItemString(d,"wxLOCALE_CAT_DATE", PyInt_FromLong((long) wxLOCALE_CAT_DATE));
3872 PyDict_SetItemString(d,"wxLOCALE_CAT_MONEY", PyInt_FromLong((long) wxLOCALE_CAT_MONEY));
3873 PyDict_SetItemString(d,"wxLOCALE_CAT_MAX", PyInt_FromLong((long) wxLOCALE_CAT_MAX));
3874 PyDict_SetItemString(d,"wxLOCALE_THOUSANDS_SEP", PyInt_FromLong((long) wxLOCALE_THOUSANDS_SEP));
3875 PyDict_SetItemString(d,"wxLOCALE_DECIMAL_POINT", PyInt_FromLong((long) wxLOCALE_DECIMAL_POINT));
3876 PyDict_SetItemString(d,"wxLOCALE_LOAD_DEFAULT", PyInt_FromLong((long) wxLOCALE_LOAD_DEFAULT));
3877 PyDict_SetItemString(d,"wxLOCALE_CONV_ENCODING", PyInt_FromLong((long) wxLOCALE_CONV_ENCODING));
3878 PyDict_SetItemString(d,"wxCONVERT_STRICT", PyInt_FromLong((long) wxCONVERT_STRICT));
3879 PyDict_SetItemString(d,"wxCONVERT_SUBSTITUTE", PyInt_FromLong((long) wxCONVERT_SUBSTITUTE));
3880 PyDict_SetItemString(d,"wxPLATFORM_CURRENT", PyInt_FromLong((long) wxPLATFORM_CURRENT));
3881 PyDict_SetItemString(d,"wxPLATFORM_UNIX", PyInt_FromLong((long) wxPLATFORM_UNIX));
3882 PyDict_SetItemString(d,"wxPLATFORM_WINDOWS", PyInt_FromLong((long) wxPLATFORM_WINDOWS));
3883 PyDict_SetItemString(d,"wxPLATFORM_OS2", PyInt_FromLong((long) wxPLATFORM_OS2));
3884 PyDict_SetItemString(d,"wxPLATFORM_MAC", PyInt_FromLong((long) wxPLATFORM_MAC));
3885
3886 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
3887 {
3888 int i;
3889 for (i = 0; _swig_mapping[i].n1; i++)
3890 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3891 }
3892 }