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