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