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