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