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