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