]>
Commit | Line | Data |
---|---|---|
bb0054cd RD |
1 | /* |
2 | * FILE : msw/misc2.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
1afc06c2 | 6 | * Version 1.1 (Build 810) |
bb0054cd RD |
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) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
bb0054cd RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
1d99702e | 30 | # define SWIGEXPORT(a) a _export |
bb0054cd | 31 | # else |
1d99702e | 32 | # define SWIGEXPORT(a) a |
bb0054cd RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1d99702e | 36 | # define SWIGEXPORT(a) a |
bb0054cd RD |
37 | #endif |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
bb0054cd RD |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
bb0054cd RD |
52 | #define SWIG_init initmisc2c |
53 | ||
54 | #define SWIG_name "misc2c" | |
55 | ||
56 | #include "helpers.h" | |
57 | #include <wx/resource.h> | |
58 | #include <wx/tooltip.h> | |
f0261a72 RD |
59 | #include <wx/caret.h> |
60 | #include <wx/fontenum.h> | |
bb0054cd RD |
61 | |
62 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
1d99702e RD |
64 | PyObject* o3; |
65 | if (!target) { | |
bb0054cd | 66 | target = o; |
1d99702e | 67 | } else if (target == Py_None) { |
bb0054cd RD |
68 | Py_DECREF(Py_None); |
69 | target = o; | |
1d99702e | 70 | } else { |
bb0054cd RD |
71 | if (!PyList_Check(target)) { |
72 | o2 = target; | |
73 | target = PyList_New(0); | |
74 | PyList_Append(target, o2); | |
75 | Py_XDECREF(o2); | |
76 | } | |
77 | PyList_Append(target,o); | |
78 | Py_XDECREF(o); | |
79 | } | |
80 | return target; | |
81 | } | |
82 | ||
83 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
84 | PyObject* o2; | |
85 | PyObject* o3; | |
86 | ||
1d99702e | 87 | if (!target) { |
bb0054cd | 88 | target = o; |
1d99702e | 89 | } else if (target == Py_None) { |
bb0054cd RD |
90 | Py_DECREF(Py_None); |
91 | target = o; | |
1d99702e | 92 | } else { |
bb0054cd RD |
93 | if (!PyTuple_Check(target)) { |
94 | o2 = target; | |
95 | target = PyTuple_New(1); | |
96 | PyTuple_SetItem(target, 0, o2); | |
97 | } | |
1d99702e RD |
98 | o3 = PyTuple_New(1); |
99 | PyTuple_SetItem(o3, 0, o); | |
bb0054cd RD |
100 | |
101 | o2 = target; | |
1d99702e RD |
102 | target = PySequence_Concat(o2, o3); |
103 | Py_DECREF(o2); | |
bb0054cd RD |
104 | Py_DECREF(o3); |
105 | } | |
106 | return target; | |
107 | } | |
108 | ||
bb0054cd RD |
109 | static char* wxStringErrorMsg = "string type is required for parameter"; |
110 | ||
06c0fba4 RD |
111 | |
112 | wxColour wxSystemSettings_GetSystemColour(int index) { | |
113 | return wxSystemSettings::GetSystemColour(index); | |
114 | } | |
115 | ||
116 | wxFont wxSystemSettings_GetSystemFont(int index) { | |
117 | return wxSystemSettings::GetSystemFont(index); | |
118 | } | |
119 | ||
120 | int wxSystemSettings_GetSystemMetric(int index) { | |
121 | return wxSystemSettings::GetSystemMetric(index); | |
122 | } | |
123 | ||
bb0054cd RD |
124 | void wxToolTip_Enable(bool flag) { |
125 | wxToolTip::Enable(flag); | |
126 | } | |
127 | ||
06c0fba4 RD |
128 | void wxToolTip_SetDelay(long milliseconds) { |
129 | wxToolTip::SetDelay(milliseconds); | |
130 | } | |
131 | ||
132 | int wxCaret_GetBlinkTime() { | |
133 | return wxCaret::GetBlinkTime(); | |
134 | } | |
135 | ||
136 | void wxCaret_SetBlinkTime(int milliseconds) { | |
137 | wxCaret::SetBlinkTime(milliseconds); | |
138 | } | |
b1462dfa RD |
139 | |
140 | class wxPyFontEnumerator : public wxFontEnumerator { | |
141 | public: | |
142 | wxPyFontEnumerator() {} | |
143 | ~wxPyFontEnumerator() {} | |
144 | ||
145 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
146 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
147 | ||
148 | PYPRIVATE; | |
149 | }; | |
150 | ||
151 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
152 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
153 | ||
06c0fba4 RD |
154 | #ifdef __cplusplus |
155 | extern "C" { | |
156 | #endif | |
157 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
158 | PyObject * _resultobj; | |
159 | wxString * _result; | |
160 | char * _arg0; | |
161 | char * _arg1 = (char *) NULL; | |
162 | char * _arg2 = (char *) NULL; | |
163 | char * _arg3 = (char *) NULL; | |
164 | char * _arg4 = (char *) "*.*"; | |
165 | int _arg5 = (int ) 0; | |
166 | wxWindow * _arg6 = (wxWindow *) NULL; | |
167 | int _arg7 = (int ) -1; | |
168 | int _arg8 = (int ) -1; | |
169 | PyObject * _argo6 = 0; | |
170 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
171 | ||
172 | self = self; | |
173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) | |
174 | return NULL; | |
175 | if (_argo6) { | |
176 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
177 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
179 | return NULL; | |
180 | } | |
181 | } | |
182 | { | |
183 | wxPy_BEGIN_ALLOW_THREADS; | |
184 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); | |
185 | ||
186 | wxPy_END_ALLOW_THREADS; | |
187 | }{ | |
188 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
189 | } | |
190 | { | |
191 | delete _result; | |
192 | } | |
193 | return _resultobj; | |
194 | } | |
195 | ||
196 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
197 | PyObject * _resultobj; | |
198 | wxString * _result; | |
199 | wxString * _arg0; | |
200 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
201 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
202 | wxWindow * _arg3 = (wxWindow *) NULL; | |
203 | int _arg4 = (int ) -1; | |
204 | int _arg5 = (int ) -1; | |
205 | bool _arg6 = (bool ) TRUE; | |
206 | PyObject * _obj0 = 0; | |
207 | PyObject * _obj1 = 0; | |
208 | PyObject * _obj2 = 0; | |
209 | PyObject * _argo3 = 0; | |
210 | int tempbool6 = (int) TRUE; | |
211 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
212 | ||
213 | self = self; | |
214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
215 | return NULL; | |
216 | { | |
217 | if (!PyString_Check(_obj0)) { | |
218 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
219 | return NULL; | |
220 | } | |
221 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
222 | } | |
223 | if (_obj1) | |
224 | { | |
225 | if (!PyString_Check(_obj1)) { | |
226 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
227 | return NULL; | |
228 | } | |
229 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
230 | } | |
231 | if (_obj2) | |
232 | { | |
233 | if (!PyString_Check(_obj2)) { | |
234 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
235 | return NULL; | |
236 | } | |
237 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
238 | } | |
239 | if (_argo3) { | |
240 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
241 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
243 | return NULL; | |
244 | } | |
245 | } | |
246 | _arg6 = (bool ) tempbool6; | |
247 | { | |
248 | wxPy_BEGIN_ALLOW_THREADS; | |
249 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); | |
250 | ||
251 | wxPy_END_ALLOW_THREADS; | |
252 | }{ | |
253 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
254 | } | |
255 | { | |
256 | if (_obj0) | |
257 | delete _arg0; | |
258 | } | |
259 | { | |
260 | if (_obj1) | |
261 | delete _arg1; | |
262 | } | |
263 | { | |
264 | if (_obj2) | |
265 | delete _arg2; | |
266 | } | |
267 | { | |
268 | delete _result; | |
269 | } | |
270 | return _resultobj; | |
271 | } | |
272 | ||
273 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
274 | PyObject * _resultobj; | |
275 | wxString * _result; | |
276 | wxString * _arg0; | |
277 | wxString * _arg1; | |
278 | int _arg2; | |
279 | wxString * _arg3; | |
280 | wxWindow * _arg4 = (wxWindow *) NULL; | |
281 | int _arg5 = (int ) -1; | |
282 | int _arg6 = (int ) -1; | |
283 | bool _arg7 = (bool ) TRUE; | |
284 | int _arg8 = (int ) 150; | |
285 | int _arg9 = (int ) 200; | |
286 | PyObject * _obj0 = 0; | |
287 | PyObject * _obj1 = 0; | |
288 | PyObject * _obj3 = 0; | |
289 | PyObject * _argo4 = 0; | |
290 | int tempbool7 = (int) TRUE; | |
291 | char *_kwnames[] = { "message","caption","LIST","parent","x","y","centre","width","height", NULL }; | |
292 | ||
293 | self = self; | |
294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
295 | return NULL; | |
296 | { | |
297 | if (!PyString_Check(_obj0)) { | |
298 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
299 | return NULL; | |
300 | } | |
301 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
302 | } | |
303 | { | |
304 | if (!PyString_Check(_obj1)) { | |
305 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
306 | return NULL; | |
307 | } | |
308 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
309 | } | |
310 | if (_obj3) | |
311 | { | |
312 | _arg3 = wxString_LIST_helper(_obj3); | |
313 | if (_arg3 == NULL) { | |
314 | return NULL; | |
315 | } | |
316 | } | |
317 | if (_argo4) { | |
318 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
319 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
321 | return NULL; | |
322 | } | |
323 | } | |
324 | _arg7 = (bool ) tempbool7; | |
325 | { | |
326 | if (_obj3) { | |
327 | _arg2 = PyList_Size(_obj3); | |
328 | } | |
329 | else { | |
330 | _arg2 = 0; | |
331 | } | |
332 | } | |
333 | { | |
334 | wxPy_BEGIN_ALLOW_THREADS; | |
335 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); | |
336 | ||
337 | wxPy_END_ALLOW_THREADS; | |
338 | }{ | |
339 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
340 | } | |
341 | { | |
342 | if (_obj0) | |
343 | delete _arg0; | |
344 | } | |
345 | { | |
346 | if (_obj1) | |
347 | delete _arg1; | |
348 | } | |
349 | { | |
350 | delete [] _arg3; | |
351 | } | |
352 | { | |
353 | delete _result; | |
354 | } | |
355 | return _resultobj; | |
356 | } | |
357 | ||
358 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
359 | PyObject * _resultobj; | |
360 | int _result; | |
361 | wxString * _arg0; | |
362 | wxString * _arg1; | |
363 | int _arg2; | |
364 | wxString * _arg3; | |
365 | wxWindow * _arg4 = (wxWindow *) NULL; | |
366 | int _arg5 = (int ) -1; | |
367 | int _arg6 = (int ) -1; | |
368 | bool _arg7 = (bool ) TRUE; | |
369 | int _arg8 = (int ) 150; | |
370 | int _arg9 = (int ) 200; | |
371 | PyObject * _obj0 = 0; | |
372 | PyObject * _obj1 = 0; | |
373 | PyObject * _obj3 = 0; | |
374 | PyObject * _argo4 = 0; | |
375 | int tempbool7 = (int) TRUE; | |
376 | char *_kwnames[] = { "message","caption","LIST","parent","x","y","centre","width","height", NULL }; | |
377 | ||
378 | self = self; | |
379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
380 | return NULL; | |
381 | { | |
382 | if (!PyString_Check(_obj0)) { | |
383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
384 | return NULL; | |
385 | } | |
386 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
387 | } | |
388 | { | |
389 | if (!PyString_Check(_obj1)) { | |
390 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
391 | return NULL; | |
392 | } | |
393 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
394 | } | |
395 | if (_obj3) | |
396 | { | |
397 | _arg3 = wxString_LIST_helper(_obj3); | |
398 | if (_arg3 == NULL) { | |
399 | return NULL; | |
400 | } | |
401 | } | |
402 | if (_argo4) { | |
403 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
404 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
406 | return NULL; | |
407 | } | |
408 | } | |
409 | _arg7 = (bool ) tempbool7; | |
410 | { | |
411 | if (_obj3) { | |
412 | _arg2 = PyList_Size(_obj3); | |
413 | } | |
414 | else { | |
415 | _arg2 = 0; | |
416 | } | |
417 | } | |
418 | { | |
419 | wxPy_BEGIN_ALLOW_THREADS; | |
420 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
421 | ||
422 | wxPy_END_ALLOW_THREADS; | |
423 | } _resultobj = Py_BuildValue("i",_result); | |
424 | { | |
425 | if (_obj0) | |
426 | delete _arg0; | |
427 | } | |
428 | { | |
429 | if (_obj1) | |
430 | delete _arg1; | |
431 | } | |
432 | { | |
433 | delete [] _arg3; | |
434 | } | |
435 | return _resultobj; | |
436 | } | |
437 | ||
438 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
439 | PyObject * _resultobj; | |
440 | int _result; | |
441 | wxString * _arg0; | |
442 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
443 | int _arg2 = (int ) wxOK|wxCENTRE; | |
444 | wxWindow * _arg3 = (wxWindow *) NULL; | |
445 | int _arg4 = (int ) -1; | |
446 | int _arg5 = (int ) -1; | |
447 | PyObject * _obj0 = 0; | |
448 | PyObject * _obj1 = 0; | |
449 | PyObject * _argo3 = 0; | |
450 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
451 | ||
452 | self = self; | |
453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
454 | return NULL; | |
455 | { | |
456 | if (!PyString_Check(_obj0)) { | |
457 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
458 | return NULL; | |
459 | } | |
460 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
461 | } | |
462 | if (_obj1) | |
463 | { | |
464 | if (!PyString_Check(_obj1)) { | |
465 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
466 | return NULL; | |
467 | } | |
468 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
469 | } | |
470 | if (_argo3) { | |
471 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
472 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
474 | return NULL; | |
475 | } | |
476 | } | |
477 | { | |
478 | wxPy_BEGIN_ALLOW_THREADS; | |
479 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
480 | ||
481 | wxPy_END_ALLOW_THREADS; | |
482 | } _resultobj = Py_BuildValue("i",_result); | |
483 | { | |
484 | if (_obj0) | |
485 | delete _arg0; | |
486 | } | |
487 | { | |
488 | if (_obj1) | |
489 | delete _arg1; | |
490 | } | |
491 | return _resultobj; | |
492 | } | |
493 | ||
494 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
495 | PyObject * _resultobj; | |
496 | long _result; | |
497 | wxString * _arg0; | |
498 | wxString * _arg1; | |
499 | wxString * _arg2; | |
500 | long _arg3; | |
501 | long _arg4 = (long ) 0; | |
502 | long _arg5 = (long ) 100; | |
503 | wxWindow * _arg6 = (wxWindow *) NULL; | |
504 | wxPoint * _arg7 = (wxPoint *) &wxPyDefaultPosition; | |
505 | PyObject * _obj0 = 0; | |
506 | PyObject * _obj1 = 0; | |
507 | PyObject * _obj2 = 0; | |
508 | PyObject * _argo6 = 0; | |
509 | wxPoint temp; | |
510 | PyObject * _obj7 = 0; | |
511 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
512 | ||
513 | self = self; | |
514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
515 | return NULL; | |
516 | { | |
517 | if (!PyString_Check(_obj0)) { | |
518 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
519 | return NULL; | |
520 | } | |
521 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
522 | } | |
523 | { | |
524 | if (!PyString_Check(_obj1)) { | |
525 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
526 | return NULL; | |
527 | } | |
528 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
529 | } | |
530 | { | |
531 | if (!PyString_Check(_obj2)) { | |
532 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
533 | return NULL; | |
534 | } | |
535 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
536 | } | |
537 | if (_argo6) { | |
538 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
539 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
541 | return NULL; | |
542 | } | |
543 | } | |
544 | if (_obj7) | |
545 | { | |
546 | _arg7 = &temp; | |
547 | if (! wxPoint_helper(_obj7, &_arg7)) | |
548 | return NULL; | |
549 | } | |
550 | { | |
551 | wxPy_BEGIN_ALLOW_THREADS; | |
552 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); | |
553 | ||
554 | wxPy_END_ALLOW_THREADS; | |
555 | } _resultobj = Py_BuildValue("l",_result); | |
556 | { | |
557 | if (_obj0) | |
558 | delete _arg0; | |
559 | } | |
560 | { | |
561 | if (_obj1) | |
562 | delete _arg1; | |
563 | } | |
564 | { | |
565 | if (_obj2) | |
566 | delete _arg2; | |
567 | } | |
568 | return _resultobj; | |
569 | } | |
570 | ||
571 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
572 | PyObject * _resultobj; | |
573 | bool _result; | |
574 | char *_kwnames[] = { NULL }; | |
575 | ||
576 | self = self; | |
577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
578 | return NULL; | |
579 | { | |
580 | wxPy_BEGIN_ALLOW_THREADS; | |
581 | _result = (bool )wxColourDisplay(); | |
582 | ||
583 | wxPy_END_ALLOW_THREADS; | |
584 | } _resultobj = Py_BuildValue("i",_result); | |
585 | return _resultobj; | |
586 | } | |
587 | ||
588 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
589 | PyObject * _resultobj; | |
590 | int _result; | |
591 | char *_kwnames[] = { NULL }; | |
592 | ||
593 | self = self; | |
594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
595 | return NULL; | |
596 | { | |
597 | wxPy_BEGIN_ALLOW_THREADS; | |
598 | _result = (int )wxDisplayDepth(); | |
599 | ||
600 | wxPy_END_ALLOW_THREADS; | |
601 | } _resultobj = Py_BuildValue("i",_result); | |
602 | return _resultobj; | |
603 | } | |
f0261a72 | 604 | |
06c0fba4 RD |
605 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
606 | PyObject * _resultobj; | |
607 | wxCursor * _arg0; | |
608 | PyObject * _argo0 = 0; | |
609 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 610 | |
06c0fba4 RD |
611 | self = self; |
612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
613 | return NULL; | |
614 | if (_argo0) { | |
615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
618 | return NULL; | |
619 | } | |
f0261a72 | 620 | } |
06c0fba4 RD |
621 | { |
622 | wxPy_BEGIN_ALLOW_THREADS; | |
623 | wxSetCursor(*_arg0); | |
624 | ||
625 | wxPy_END_ALLOW_THREADS; | |
626 | } Py_INCREF(Py_None); | |
627 | _resultobj = Py_None; | |
628 | return _resultobj; | |
629 | } | |
630 | ||
efc5f224 | 631 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
632 | PyObject * _resultobj; |
633 | wxWindow * _result; | |
634 | wxString * _arg0; | |
1d99702e | 635 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 636 | PyObject * _obj0 = 0; |
1d99702e | 637 | PyObject * _argo1 = 0; |
efc5f224 | 638 | char *_kwnames[] = { "label","parent", NULL }; |
bb0054cd RD |
639 | char _ptemp[128]; |
640 | ||
641 | self = self; | |
efc5f224 | 642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
643 | return NULL; |
644 | { | |
645 | if (!PyString_Check(_obj0)) { | |
646 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
647 | return NULL; | |
648 | } | |
649 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
650 | } | |
1d99702e RD |
651 | if (_argo1) { |
652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); |
655 | return NULL; | |
656 | } | |
657 | } | |
658 | { | |
659 | wxPy_BEGIN_ALLOW_THREADS; | |
660 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
661 | ||
662 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
663 | } if (_result) { |
664 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
665 | _resultobj = Py_BuildValue("s",_ptemp); | |
666 | } else { | |
667 | Py_INCREF(Py_None); | |
668 | _resultobj = Py_None; | |
669 | } | |
bb0054cd RD |
670 | { |
671 | if (_obj0) | |
672 | delete _arg0; | |
673 | } | |
674 | return _resultobj; | |
675 | } | |
676 | ||
efc5f224 | 677 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
678 | PyObject * _resultobj; |
679 | wxWindow * _result; | |
680 | wxString * _arg0; | |
1d99702e | 681 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 682 | PyObject * _obj0 = 0; |
1d99702e | 683 | PyObject * _argo1 = 0; |
efc5f224 | 684 | char *_kwnames[] = { "name","parent", NULL }; |
bb0054cd RD |
685 | char _ptemp[128]; |
686 | ||
687 | self = self; | |
efc5f224 | 688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
689 | return NULL; |
690 | { | |
691 | if (!PyString_Check(_obj0)) { | |
692 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
693 | return NULL; | |
694 | } | |
695 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
696 | } | |
1d99702e RD |
697 | if (_argo1) { |
698 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
699 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); |
701 | return NULL; | |
702 | } | |
703 | } | |
704 | { | |
705 | wxPy_BEGIN_ALLOW_THREADS; | |
706 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
707 | ||
708 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
709 | } if (_result) { |
710 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
711 | _resultobj = Py_BuildValue("s",_ptemp); | |
712 | } else { | |
713 | Py_INCREF(Py_None); | |
714 | _resultobj = Py_None; | |
715 | } | |
bb0054cd RD |
716 | { |
717 | if (_obj0) | |
718 | delete _arg0; | |
719 | } | |
720 | return _resultobj; | |
721 | } | |
722 | ||
06c0fba4 RD |
723 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
724 | PyObject * _resultobj; | |
725 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
726 | PyObject * _argo0 = 0; | |
727 | char *_kwnames[] = { "cursor", NULL }; | |
728 | ||
729 | self = self; | |
730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
731 | return NULL; | |
732 | if (_argo0) { | |
733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
736 | return NULL; | |
737 | } | |
738 | } | |
739 | { | |
740 | wxPy_BEGIN_ALLOW_THREADS; | |
741 | wxBeginBusyCursor(_arg0); | |
742 | ||
743 | wxPy_END_ALLOW_THREADS; | |
744 | } Py_INCREF(Py_None); | |
745 | _resultobj = Py_None; | |
746 | return _resultobj; | |
747 | } | |
748 | ||
749 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
750 | PyObject * _resultobj; | |
751 | wxWindow * _result; | |
752 | char *_kwnames[] = { NULL }; | |
753 | char _ptemp[128]; | |
754 | ||
755 | self = self; | |
756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
757 | return NULL; | |
758 | { | |
759 | wxPy_BEGIN_ALLOW_THREADS; | |
760 | _result = (wxWindow *)wxGetActiveWindow(); | |
761 | ||
762 | wxPy_END_ALLOW_THREADS; | |
763 | } if (_result) { | |
764 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
765 | _resultobj = Py_BuildValue("s",_ptemp); | |
766 | } else { | |
767 | Py_INCREF(Py_None); | |
768 | _resultobj = Py_None; | |
769 | } | |
770 | return _resultobj; | |
771 | } | |
772 | ||
773 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
774 | PyObject * _resultobj; | |
775 | bool _result; | |
776 | char * _arg0; | |
777 | int _arg1; | |
778 | char *_kwnames[] = { "name","value", NULL }; | |
779 | ||
780 | self = self; | |
781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
782 | return NULL; | |
783 | { | |
784 | wxPy_BEGIN_ALLOW_THREADS; | |
785 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); | |
786 | ||
787 | wxPy_END_ALLOW_THREADS; | |
788 | } _resultobj = Py_BuildValue("i",_result); | |
789 | return _resultobj; | |
790 | } | |
791 | ||
792 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
793 | PyObject * _resultobj; | |
794 | char *_kwnames[] = { NULL }; | |
795 | ||
796 | self = self; | |
797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
798 | return NULL; | |
799 | { | |
800 | wxPy_BEGIN_ALLOW_THREADS; | |
801 | wxResourceClear(); | |
802 | ||
803 | wxPy_END_ALLOW_THREADS; | |
804 | } Py_INCREF(Py_None); | |
805 | _resultobj = Py_None; | |
806 | return _resultobj; | |
807 | } | |
808 | ||
809 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
810 | PyObject * _resultobj; | |
811 | wxBitmap * _result; | |
812 | char * _arg0; | |
813 | char *_kwnames[] = { "resource", NULL }; | |
814 | char _ptemp[128]; | |
815 | ||
816 | self = self; | |
817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
818 | return NULL; | |
819 | { | |
820 | wxPy_BEGIN_ALLOW_THREADS; | |
821 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); | |
822 | ||
823 | wxPy_END_ALLOW_THREADS; | |
824 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
825 | _resultobj = Py_BuildValue("s",_ptemp); | |
826 | return _resultobj; | |
827 | } | |
828 | ||
829 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
830 | PyObject * _resultobj; | |
831 | wxIcon * _result; | |
832 | char * _arg0; | |
833 | char *_kwnames[] = { "resource", NULL }; | |
834 | char _ptemp[128]; | |
835 | ||
836 | self = self; | |
837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
838 | return NULL; | |
839 | { | |
840 | wxPy_BEGIN_ALLOW_THREADS; | |
841 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); | |
842 | ||
843 | wxPy_END_ALLOW_THREADS; | |
844 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
845 | _resultobj = Py_BuildValue("s",_ptemp); | |
846 | return _resultobj; | |
847 | } | |
848 | ||
849 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
850 | PyObject * _resultobj; | |
851 | wxMenuBar * _result; | |
852 | char * _arg0; | |
853 | char *_kwnames[] = { "resource", NULL }; | |
854 | char _ptemp[128]; | |
855 | ||
856 | self = self; | |
857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
858 | return NULL; | |
859 | { | |
860 | wxPy_BEGIN_ALLOW_THREADS; | |
861 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); | |
862 | ||
863 | wxPy_END_ALLOW_THREADS; | |
864 | } if (_result) { | |
865 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
866 | _resultobj = Py_BuildValue("s",_ptemp); | |
867 | } else { | |
868 | Py_INCREF(Py_None); | |
869 | _resultobj = Py_None; | |
870 | } | |
871 | return _resultobj; | |
872 | } | |
873 | ||
874 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
875 | PyObject * _resultobj; | |
876 | int _result; | |
877 | char * _arg0; | |
878 | char *_kwnames[] = { "name", NULL }; | |
879 | ||
880 | self = self; | |
881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
882 | return NULL; | |
883 | { | |
884 | wxPy_BEGIN_ALLOW_THREADS; | |
885 | _result = (int )wxResourceGetIdentifier(_arg0); | |
886 | ||
887 | wxPy_END_ALLOW_THREADS; | |
888 | } _resultobj = Py_BuildValue("i",_result); | |
889 | return _resultobj; | |
890 | } | |
891 | ||
892 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
893 | PyObject * _resultobj; | |
894 | bool _result; | |
895 | char * _arg0; | |
896 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
897 | PyObject * _argo1 = 0; | |
898 | char *_kwnames[] = { "resource","table", NULL }; | |
899 | ||
900 | self = self; | |
901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
902 | return NULL; | |
903 | if (_argo1) { | |
904 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
905 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
907 | return NULL; | |
908 | } | |
909 | } | |
910 | { | |
911 | wxPy_BEGIN_ALLOW_THREADS; | |
912 | _result = (bool )wxResourceParseData(_arg0,_arg1); | |
913 | ||
914 | wxPy_END_ALLOW_THREADS; | |
915 | } _resultobj = Py_BuildValue("i",_result); | |
916 | return _resultobj; | |
917 | } | |
918 | ||
919 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
920 | PyObject * _resultobj; | |
921 | bool _result; | |
922 | char * _arg0; | |
923 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
924 | PyObject * _argo1 = 0; | |
925 | char *_kwnames[] = { "filename","table", NULL }; | |
926 | ||
927 | self = self; | |
928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
929 | return NULL; | |
930 | if (_argo1) { | |
931 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
932 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
934 | return NULL; | |
935 | } | |
936 | } | |
937 | { | |
938 | wxPy_BEGIN_ALLOW_THREADS; | |
939 | _result = (bool )wxResourceParseFile(_arg0,_arg1); | |
940 | ||
941 | wxPy_END_ALLOW_THREADS; | |
942 | } _resultobj = Py_BuildValue("i",_result); | |
943 | return _resultobj; | |
944 | } | |
945 | ||
946 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
947 | PyObject * _resultobj; | |
948 | bool _result; | |
949 | char * _arg0; | |
950 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
951 | PyObject * _argo1 = 0; | |
952 | char *_kwnames[] = { "resource","table", NULL }; | |
953 | ||
954 | self = self; | |
955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
956 | return NULL; | |
957 | if (_argo1) { | |
958 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
959 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
961 | return NULL; | |
962 | } | |
963 | } | |
964 | { | |
965 | wxPy_BEGIN_ALLOW_THREADS; | |
966 | _result = (bool )wxResourceParseString(_arg0,_arg1); | |
967 | ||
968 | wxPy_END_ALLOW_THREADS; | |
969 | } _resultobj = Py_BuildValue("i",_result); | |
970 | return _resultobj; | |
971 | } | |
972 | ||
973 | static PyObject *_wrap_wxSystemSettings_GetSystemColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
974 | PyObject * _resultobj; | |
975 | wxColour * _result; | |
976 | int _arg0; | |
977 | char *_kwnames[] = { "index", NULL }; | |
978 | char _ptemp[128]; | |
979 | ||
980 | self = self; | |
981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemColour",_kwnames,&_arg0)) | |
982 | return NULL; | |
983 | { | |
984 | wxPy_BEGIN_ALLOW_THREADS; | |
985 | _result = new wxColour (wxSystemSettings_GetSystemColour(_arg0)); | |
986 | ||
987 | wxPy_END_ALLOW_THREADS; | |
988 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
989 | _resultobj = Py_BuildValue("s",_ptemp); | |
990 | return _resultobj; | |
991 | } | |
992 | ||
993 | static PyObject *_wrap_wxSystemSettings_GetSystemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
994 | PyObject * _resultobj; | |
995 | wxFont * _result; | |
996 | int _arg0; | |
997 | char *_kwnames[] = { "index", NULL }; | |
998 | char _ptemp[128]; | |
999 | ||
1000 | self = self; | |
1001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemFont",_kwnames,&_arg0)) | |
1002 | return NULL; | |
1003 | { | |
1004 | wxPy_BEGIN_ALLOW_THREADS; | |
1005 | _result = new wxFont (wxSystemSettings_GetSystemFont(_arg0)); | |
1006 | ||
1007 | wxPy_END_ALLOW_THREADS; | |
1008 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1009 | _resultobj = Py_BuildValue("s",_ptemp); | |
1010 | return _resultobj; | |
1011 | } | |
1012 | ||
1013 | static PyObject *_wrap_wxSystemSettings_GetSystemMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1014 | PyObject * _resultobj; | |
1015 | int _result; | |
1016 | int _arg0; | |
1017 | char *_kwnames[] = { "index", NULL }; | |
1018 | ||
1019 | self = self; | |
1020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemMetric",_kwnames,&_arg0)) | |
1021 | return NULL; | |
1022 | { | |
1023 | wxPy_BEGIN_ALLOW_THREADS; | |
1024 | _result = (int )wxSystemSettings_GetSystemMetric(_arg0); | |
1025 | ||
1026 | wxPy_END_ALLOW_THREADS; | |
1027 | } _resultobj = Py_BuildValue("i",_result); | |
1028 | return _resultobj; | |
1029 | } | |
1030 | ||
efc5f224 | 1031 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1032 | PyObject * _resultobj; |
1033 | bool _arg0; | |
1034 | int tempbool0; | |
efc5f224 | 1035 | char *_kwnames[] = { "flag", NULL }; |
bb0054cd RD |
1036 | |
1037 | self = self; | |
efc5f224 | 1038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) |
bb0054cd RD |
1039 | return NULL; |
1040 | _arg0 = (bool ) tempbool0; | |
1041 | { | |
1042 | wxPy_BEGIN_ALLOW_THREADS; | |
1043 | wxToolTip_Enable(_arg0); | |
1044 | ||
1045 | wxPy_END_ALLOW_THREADS; | |
1046 | } Py_INCREF(Py_None); | |
1047 | _resultobj = Py_None; | |
1048 | return _resultobj; | |
1049 | } | |
1050 | ||
efc5f224 | 1051 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1052 | PyObject * _resultobj; |
1053 | long _arg0; | |
efc5f224 | 1054 | char *_kwnames[] = { "milliseconds", NULL }; |
bb0054cd RD |
1055 | |
1056 | self = self; | |
efc5f224 | 1057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) |
bb0054cd RD |
1058 | return NULL; |
1059 | { | |
1060 | wxPy_BEGIN_ALLOW_THREADS; | |
1061 | wxToolTip_SetDelay(_arg0); | |
1062 | ||
1063 | wxPy_END_ALLOW_THREADS; | |
1064 | } Py_INCREF(Py_None); | |
1065 | _resultobj = Py_None; | |
1066 | return _resultobj; | |
1067 | } | |
1068 | ||
f0261a72 RD |
1069 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1070 | PyObject * _resultobj; | |
1071 | int _result; | |
1072 | char *_kwnames[] = { NULL }; | |
1073 | ||
1074 | self = self; | |
1075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1076 | return NULL; | |
1077 | { | |
1078 | wxPy_BEGIN_ALLOW_THREADS; | |
1079 | _result = (int )wxCaret_GetBlinkTime(); | |
1080 | ||
1081 | wxPy_END_ALLOW_THREADS; | |
1082 | } _resultobj = Py_BuildValue("i",_result); | |
1083 | return _resultobj; | |
1084 | } | |
1085 | ||
1086 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1087 | PyObject * _resultobj; | |
1088 | int _arg0; | |
1089 | char *_kwnames[] = { "milliseconds", NULL }; | |
1090 | ||
1091 | self = self; | |
1092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1093 | return NULL; | |
1094 | { | |
1095 | wxPy_BEGIN_ALLOW_THREADS; | |
1096 | wxCaret_SetBlinkTime(_arg0); | |
1097 | ||
1098 | wxPy_END_ALLOW_THREADS; | |
1099 | } Py_INCREF(Py_None); | |
1100 | _resultobj = Py_None; | |
1101 | return _resultobj; | |
1102 | } | |
1103 | ||
b1462dfa RD |
1104 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1105 | PyObject * _resultobj; | |
1106 | wxEvtHandler * _arg0; | |
1107 | wxEvent * _arg1; | |
1108 | PyObject * _argo0 = 0; | |
1109 | PyObject * _argo1 = 0; | |
1110 | char *_kwnames[] = { "dest","event", NULL }; | |
1111 | ||
1112 | self = self; | |
1113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1114 | return NULL; | |
1115 | if (_argo0) { | |
1116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1119 | return NULL; | |
1120 | } | |
1121 | } | |
1122 | if (_argo1) { | |
1123 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1124 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1126 | return NULL; | |
1127 | } | |
1128 | } | |
1129 | { | |
1130 | wxPy_BEGIN_ALLOW_THREADS; | |
1131 | wxPostEvent(_arg0,*_arg1); | |
1132 | ||
1133 | wxPy_END_ALLOW_THREADS; | |
1134 | } Py_INCREF(Py_None); | |
1135 | _resultobj = Py_None; | |
1136 | return _resultobj; | |
1137 | } | |
1138 | ||
bb0054cd | 1139 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
efc5f224 | 1140 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1141 | PyObject * _resultobj; |
1142 | wxToolTip * _result; | |
1143 | wxString * _arg0; | |
1144 | PyObject * _obj0 = 0; | |
efc5f224 | 1145 | char *_kwnames[] = { "tip", NULL }; |
bb0054cd RD |
1146 | char _ptemp[128]; |
1147 | ||
1148 | self = self; | |
efc5f224 | 1149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) |
bb0054cd RD |
1150 | return NULL; |
1151 | { | |
1152 | if (!PyString_Check(_obj0)) { | |
1153 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1154 | return NULL; | |
1155 | } | |
1156 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
1157 | } | |
1158 | { | |
1159 | wxPy_BEGIN_ALLOW_THREADS; | |
1160 | _result = (wxToolTip *)new_wxToolTip(*_arg0); | |
1161 | ||
1162 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1163 | } if (_result) { |
1164 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
1165 | _resultobj = Py_BuildValue("s",_ptemp); | |
1166 | } else { | |
1167 | Py_INCREF(Py_None); | |
1168 | _resultobj = Py_None; | |
1169 | } | |
bb0054cd RD |
1170 | { |
1171 | if (_obj0) | |
1172 | delete _arg0; | |
1173 | } | |
1174 | return _resultobj; | |
1175 | } | |
1176 | ||
1177 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
efc5f224 | 1178 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1179 | PyObject * _resultobj; |
1180 | wxToolTip * _arg0; | |
1181 | wxString * _arg1; | |
1d99702e | 1182 | PyObject * _argo0 = 0; |
bb0054cd | 1183 | PyObject * _obj1 = 0; |
efc5f224 | 1184 | char *_kwnames[] = { "self","tip", NULL }; |
bb0054cd RD |
1185 | |
1186 | self = self; | |
efc5f224 | 1187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 1188 | return NULL; |
1d99702e RD |
1189 | if (_argo0) { |
1190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
bb0054cd RD |
1192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); |
1193 | return NULL; | |
1194 | } | |
1195 | } | |
1196 | { | |
1197 | if (!PyString_Check(_obj1)) { | |
1198 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1199 | return NULL; | |
1200 | } | |
1201 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1202 | } | |
1203 | { | |
1204 | wxPy_BEGIN_ALLOW_THREADS; | |
1205 | wxToolTip_SetTip(_arg0,*_arg1); | |
1206 | ||
1207 | wxPy_END_ALLOW_THREADS; | |
1208 | } Py_INCREF(Py_None); | |
1209 | _resultobj = Py_None; | |
1210 | { | |
1211 | if (_obj1) | |
1212 | delete _arg1; | |
1213 | } | |
1214 | return _resultobj; | |
1215 | } | |
1216 | ||
1217 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
efc5f224 | 1218 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1219 | PyObject * _resultobj; |
1220 | wxString * _result; | |
1221 | wxToolTip * _arg0; | |
1d99702e | 1222 | PyObject * _argo0 = 0; |
efc5f224 | 1223 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
1224 | |
1225 | self = self; | |
efc5f224 | 1226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) |
bb0054cd | 1227 | return NULL; |
1d99702e RD |
1228 | if (_argo0) { |
1229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
bb0054cd RD |
1231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); |
1232 | return NULL; | |
1233 | } | |
1234 | } | |
1235 | { | |
1236 | wxPy_BEGIN_ALLOW_THREADS; | |
1237 | _result = new wxString (wxToolTip_GetTip(_arg0)); | |
1238 | ||
1239 | wxPy_END_ALLOW_THREADS; | |
1240 | }{ | |
1241 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
1242 | } | |
1243 | { | |
1244 | delete _result; | |
1245 | } | |
1246 | return _resultobj; | |
1247 | } | |
1248 | ||
1249 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
efc5f224 | 1250 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1251 | PyObject * _resultobj; |
1252 | wxWindow * _result; | |
1253 | wxToolTip * _arg0; | |
1d99702e | 1254 | PyObject * _argo0 = 0; |
efc5f224 | 1255 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
1256 | char _ptemp[128]; |
1257 | ||
1258 | self = self; | |
efc5f224 | 1259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) |
bb0054cd | 1260 | return NULL; |
1d99702e RD |
1261 | if (_argo0) { |
1262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
bb0054cd RD |
1264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); |
1265 | return NULL; | |
1266 | } | |
1267 | } | |
1268 | { | |
1269 | wxPy_BEGIN_ALLOW_THREADS; | |
1270 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); | |
1271 | ||
1272 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1273 | } if (_result) { |
1274 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1275 | _resultobj = Py_BuildValue("s",_ptemp); | |
1276 | } else { | |
1277 | Py_INCREF(Py_None); | |
1278 | _resultobj = Py_None; | |
1279 | } | |
bb0054cd RD |
1280 | return _resultobj; |
1281 | } | |
1282 | ||
f0261a72 RD |
1283 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
1284 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1285 | PyObject * _resultobj; | |
1286 | wxCaret * _result; | |
1287 | wxWindow * _arg0; | |
1288 | wxSize * _arg1; | |
1289 | PyObject * _argo0 = 0; | |
1290 | wxSize temp; | |
1291 | PyObject * _obj1 = 0; | |
1292 | char *_kwnames[] = { "window","size", NULL }; | |
1293 | char _ptemp[128]; | |
1294 | ||
1295 | self = self; | |
1296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
1297 | return NULL; | |
1298 | if (_argo0) { | |
1299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
1302 | return NULL; | |
1303 | } | |
1304 | } | |
1305 | { | |
1306 | _arg1 = &temp; | |
1307 | if (! wxSize_helper(_obj1, &_arg1)) | |
1308 | return NULL; | |
1309 | } | |
1310 | { | |
1311 | wxPy_BEGIN_ALLOW_THREADS; | |
1312 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); | |
1313 | ||
1314 | wxPy_END_ALLOW_THREADS; | |
1315 | } if (_result) { | |
1316 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
1317 | _resultobj = Py_BuildValue("s",_ptemp); | |
1318 | } else { | |
1319 | Py_INCREF(Py_None); | |
1320 | _resultobj = Py_None; | |
1321 | } | |
1322 | return _resultobj; | |
1323 | } | |
1324 | ||
1325 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
1326 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1327 | PyObject * _resultobj; | |
1328 | wxCaret * _arg0; | |
1329 | PyObject * _argo0 = 0; | |
1330 | char *_kwnames[] = { "self", NULL }; | |
1331 | ||
1332 | self = self; | |
1333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
1334 | return NULL; | |
1335 | if (_argo0) { | |
1336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
1339 | return NULL; | |
1340 | } | |
1341 | } | |
1342 | { | |
1343 | wxPy_BEGIN_ALLOW_THREADS; | |
1344 | delete_wxCaret(_arg0); | |
1345 | ||
1346 | wxPy_END_ALLOW_THREADS; | |
1347 | } Py_INCREF(Py_None); | |
1348 | _resultobj = Py_None; | |
1349 | return _resultobj; | |
1350 | } | |
1351 | ||
1352 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
1353 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1354 | PyObject * _resultobj; | |
1355 | bool _result; | |
1356 | wxCaret * _arg0; | |
1357 | PyObject * _argo0 = 0; | |
1358 | char *_kwnames[] = { "self", NULL }; | |
1359 | ||
1360 | self = self; | |
1361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
1362 | return NULL; | |
1363 | if (_argo0) { | |
1364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
1367 | return NULL; | |
1368 | } | |
1369 | } | |
1370 | { | |
1371 | wxPy_BEGIN_ALLOW_THREADS; | |
1372 | _result = (bool )wxCaret_IsOk(_arg0); | |
1373 | ||
1374 | wxPy_END_ALLOW_THREADS; | |
1375 | } _resultobj = Py_BuildValue("i",_result); | |
1376 | return _resultobj; | |
1377 | } | |
1378 | ||
1379 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
1380 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1381 | PyObject * _resultobj; | |
1382 | bool _result; | |
1383 | wxCaret * _arg0; | |
1384 | PyObject * _argo0 = 0; | |
1385 | char *_kwnames[] = { "self", NULL }; | |
1386 | ||
1387 | self = self; | |
1388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
1389 | return NULL; | |
1390 | if (_argo0) { | |
1391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
1394 | return NULL; | |
1395 | } | |
1396 | } | |
1397 | { | |
1398 | wxPy_BEGIN_ALLOW_THREADS; | |
1399 | _result = (bool )wxCaret_IsVisible(_arg0); | |
1400 | ||
1401 | wxPy_END_ALLOW_THREADS; | |
1402 | } _resultobj = Py_BuildValue("i",_result); | |
1403 | return _resultobj; | |
1404 | } | |
1405 | ||
1406 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
1407 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1408 | PyObject * _resultobj; | |
1409 | wxCaret * _arg0; | |
1410 | int * _arg1; | |
1411 | int temp; | |
1412 | int * _arg2; | |
1413 | int temp0; | |
1414 | PyObject * _argo0 = 0; | |
1415 | char *_kwnames[] = { "self", NULL }; | |
1416 | ||
1417 | self = self; | |
1418 | { | |
1419 | _arg1 = &temp; | |
1420 | } | |
1421 | { | |
1422 | _arg2 = &temp0; | |
1423 | } | |
1424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
1425 | return NULL; | |
1426 | if (_argo0) { | |
1427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
1430 | return NULL; | |
1431 | } | |
1432 | } | |
1433 | { | |
1434 | wxPy_BEGIN_ALLOW_THREADS; | |
1435 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); | |
1436 | ||
1437 | wxPy_END_ALLOW_THREADS; | |
1438 | } Py_INCREF(Py_None); | |
1439 | _resultobj = Py_None; | |
1440 | { | |
1441 | PyObject *o; | |
1442 | o = PyInt_FromLong((long) (*_arg1)); | |
1443 | _resultobj = t_output_helper(_resultobj, o); | |
1444 | } | |
1445 | { | |
1446 | PyObject *o; | |
1447 | o = PyInt_FromLong((long) (*_arg2)); | |
1448 | _resultobj = t_output_helper(_resultobj, o); | |
1449 | } | |
1450 | return _resultobj; | |
1451 | } | |
1452 | ||
1453 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
1454 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1455 | PyObject * _resultobj; | |
1456 | wxPoint * _result; | |
1457 | wxCaret * _arg0; | |
1458 | PyObject * _argo0 = 0; | |
1459 | char *_kwnames[] = { "self", NULL }; | |
1460 | char _ptemp[128]; | |
1461 | ||
1462 | self = self; | |
1463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
1464 | return NULL; | |
1465 | if (_argo0) { | |
1466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
1469 | return NULL; | |
1470 | } | |
1471 | } | |
1472 | { | |
1473 | wxPy_BEGIN_ALLOW_THREADS; | |
1474 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); | |
1475 | ||
1476 | wxPy_END_ALLOW_THREADS; | |
1477 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1478 | _resultobj = Py_BuildValue("s",_ptemp); | |
1479 | return _resultobj; | |
1480 | } | |
1481 | ||
1482 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
1483 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1484 | PyObject * _resultobj; | |
1485 | wxCaret * _arg0; | |
1486 | int * _arg1; | |
1487 | int temp; | |
1488 | int * _arg2; | |
1489 | int temp0; | |
1490 | PyObject * _argo0 = 0; | |
1491 | char *_kwnames[] = { "self", NULL }; | |
1492 | ||
1493 | self = self; | |
1494 | { | |
1495 | _arg1 = &temp; | |
1496 | } | |
1497 | { | |
1498 | _arg2 = &temp0; | |
1499 | } | |
1500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
1501 | return NULL; | |
1502 | if (_argo0) { | |
1503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
1506 | return NULL; | |
1507 | } | |
1508 | } | |
1509 | { | |
1510 | wxPy_BEGIN_ALLOW_THREADS; | |
1511 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); | |
1512 | ||
1513 | wxPy_END_ALLOW_THREADS; | |
1514 | } Py_INCREF(Py_None); | |
1515 | _resultobj = Py_None; | |
1516 | { | |
1517 | PyObject *o; | |
1518 | o = PyInt_FromLong((long) (*_arg1)); | |
1519 | _resultobj = t_output_helper(_resultobj, o); | |
1520 | } | |
1521 | { | |
1522 | PyObject *o; | |
1523 | o = PyInt_FromLong((long) (*_arg2)); | |
1524 | _resultobj = t_output_helper(_resultobj, o); | |
1525 | } | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
1530 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject * _resultobj; | |
1532 | wxSize * _result; | |
1533 | wxCaret * _arg0; | |
1534 | PyObject * _argo0 = 0; | |
1535 | char *_kwnames[] = { "self", NULL }; | |
1536 | char _ptemp[128]; | |
1537 | ||
1538 | self = self; | |
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
1540 | return NULL; | |
1541 | if (_argo0) { | |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
1549 | wxPy_BEGIN_ALLOW_THREADS; | |
1550 | _result = new wxSize (wxCaret_GetSize(_arg0)); | |
1551 | ||
1552 | wxPy_END_ALLOW_THREADS; | |
1553 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1554 | _resultobj = Py_BuildValue("s",_ptemp); | |
1555 | return _resultobj; | |
1556 | } | |
1557 | ||
1558 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
1559 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject * _resultobj; | |
1561 | wxWindow * _result; | |
1562 | wxCaret * _arg0; | |
1563 | PyObject * _argo0 = 0; | |
1564 | char *_kwnames[] = { "self", NULL }; | |
1565 | char _ptemp[128]; | |
1566 | ||
1567 | self = self; | |
1568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
1569 | return NULL; | |
1570 | if (_argo0) { | |
1571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
1574 | return NULL; | |
1575 | } | |
1576 | } | |
1577 | { | |
1578 | wxPy_BEGIN_ALLOW_THREADS; | |
1579 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); | |
1580 | ||
1581 | wxPy_END_ALLOW_THREADS; | |
1582 | } if (_result) { | |
1583 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1584 | _resultobj = Py_BuildValue("s",_ptemp); | |
1585 | } else { | |
1586 | Py_INCREF(Py_None); | |
1587 | _resultobj = Py_None; | |
1588 | } | |
1589 | return _resultobj; | |
1590 | } | |
1591 | ||
1592 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
1593 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1594 | PyObject * _resultobj; | |
1595 | wxCaret * _arg0; | |
1596 | int _arg1; | |
1597 | int _arg2; | |
1598 | PyObject * _argo0 = 0; | |
1599 | char *_kwnames[] = { "self","x","y", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1603 | return NULL; | |
1604 | if (_argo0) { | |
1605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
1608 | return NULL; | |
1609 | } | |
1610 | } | |
1611 | { | |
1612 | wxPy_BEGIN_ALLOW_THREADS; | |
1613 | wxCaret_MoveXY(_arg0,_arg1,_arg2); | |
1614 | ||
1615 | wxPy_END_ALLOW_THREADS; | |
1616 | } Py_INCREF(Py_None); | |
1617 | _resultobj = Py_None; | |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
1622 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | wxCaret * _arg0; | |
1625 | wxPoint * _arg1; | |
1626 | PyObject * _argo0 = 0; | |
1627 | wxPoint temp; | |
1628 | PyObject * _obj1 = 0; | |
1629 | char *_kwnames[] = { "self","pt", NULL }; | |
1630 | ||
1631 | self = self; | |
1632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
1633 | return NULL; | |
1634 | if (_argo0) { | |
1635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
1638 | return NULL; | |
1639 | } | |
1640 | } | |
1641 | { | |
1642 | _arg1 = &temp; | |
1643 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1644 | return NULL; | |
1645 | } | |
1646 | { | |
1647 | wxPy_BEGIN_ALLOW_THREADS; | |
1648 | wxCaret_Move(_arg0,*_arg1); | |
1649 | ||
1650 | wxPy_END_ALLOW_THREADS; | |
1651 | } Py_INCREF(Py_None); | |
1652 | _resultobj = Py_None; | |
1653 | return _resultobj; | |
1654 | } | |
1655 | ||
1656 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
1657 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1658 | PyObject * _resultobj; | |
1659 | wxCaret * _arg0; | |
1660 | int _arg1 = (int ) TRUE; | |
1661 | PyObject * _argo0 = 0; | |
1662 | char *_kwnames[] = { "self","show", NULL }; | |
1663 | ||
1664 | self = self; | |
1665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
1666 | return NULL; | |
1667 | if (_argo0) { | |
1668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
1671 | return NULL; | |
1672 | } | |
1673 | } | |
1674 | { | |
1675 | wxPy_BEGIN_ALLOW_THREADS; | |
1676 | wxCaret_Show(_arg0,_arg1); | |
1677 | ||
1678 | wxPy_END_ALLOW_THREADS; | |
1679 | } Py_INCREF(Py_None); | |
1680 | _resultobj = Py_None; | |
1681 | return _resultobj; | |
1682 | } | |
1683 | ||
1684 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
1685 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject * _resultobj; | |
1687 | wxCaret * _arg0; | |
1688 | PyObject * _argo0 = 0; | |
1689 | char *_kwnames[] = { "self", NULL }; | |
1690 | ||
1691 | self = self; | |
1692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
1693 | return NULL; | |
1694 | if (_argo0) { | |
1695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
1698 | return NULL; | |
1699 | } | |
1700 | } | |
1701 | { | |
1702 | wxPy_BEGIN_ALLOW_THREADS; | |
1703 | wxCaret_Hide(_arg0); | |
1704 | ||
1705 | wxPy_END_ALLOW_THREADS; | |
1706 | } Py_INCREF(Py_None); | |
1707 | _resultobj = Py_None; | |
1708 | return _resultobj; | |
1709 | } | |
1710 | ||
1711 | #define wxCaret_OnSetFocus(_swigobj) (_swigobj->OnSetFocus()) | |
1712 | static PyObject *_wrap_wxCaret_OnSetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject * _resultobj; | |
1714 | wxCaret * _arg0; | |
1715 | PyObject * _argo0 = 0; | |
1716 | char *_kwnames[] = { "self", NULL }; | |
1717 | ||
1718 | self = self; | |
1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_OnSetFocus",_kwnames,&_argo0)) | |
1720 | return NULL; | |
1721 | if (_argo0) { | |
1722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_OnSetFocus. Expected _wxCaret_p."); | |
1725 | return NULL; | |
1726 | } | |
1727 | } | |
1728 | { | |
1729 | wxPy_BEGIN_ALLOW_THREADS; | |
1730 | wxCaret_OnSetFocus(_arg0); | |
1731 | ||
1732 | wxPy_END_ALLOW_THREADS; | |
1733 | } Py_INCREF(Py_None); | |
1734 | _resultobj = Py_None; | |
1735 | return _resultobj; | |
1736 | } | |
1737 | ||
1738 | #define wxCaret_OnKillFocus(_swigobj) (_swigobj->OnKillFocus()) | |
1739 | static PyObject *_wrap_wxCaret_OnKillFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1740 | PyObject * _resultobj; | |
1741 | wxCaret * _arg0; | |
1742 | PyObject * _argo0 = 0; | |
1743 | char *_kwnames[] = { "self", NULL }; | |
1744 | ||
1745 | self = self; | |
1746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_OnKillFocus",_kwnames,&_argo0)) | |
1747 | return NULL; | |
1748 | if (_argo0) { | |
1749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_OnKillFocus. Expected _wxCaret_p."); | |
1752 | return NULL; | |
1753 | } | |
1754 | } | |
1755 | { | |
1756 | wxPy_BEGIN_ALLOW_THREADS; | |
1757 | wxCaret_OnKillFocus(_arg0); | |
1758 | ||
1759 | wxPy_END_ALLOW_THREADS; | |
1760 | } Py_INCREF(Py_None); | |
1761 | _resultobj = Py_None; | |
1762 | return _resultobj; | |
1763 | } | |
1764 | ||
b1462dfa RD |
1765 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) |
1766 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1767 | PyObject * _resultobj; | |
1768 | wxPyFontEnumerator * _result; | |
1769 | char *_kwnames[] = { NULL }; | |
1770 | char _ptemp[128]; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
1774 | return NULL; | |
1775 | { | |
1776 | wxPy_BEGIN_ALLOW_THREADS; | |
1777 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); | |
1778 | ||
1779 | wxPy_END_ALLOW_THREADS; | |
1780 | } if (_result) { | |
1781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
1782 | _resultobj = Py_BuildValue("s",_ptemp); | |
1783 | } else { | |
1784 | Py_INCREF(Py_None); | |
1785 | _resultobj = Py_None; | |
1786 | } | |
1787 | return _resultobj; | |
1788 | } | |
1789 | ||
1790 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
1791 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1792 | PyObject * _resultobj; | |
1793 | wxPyFontEnumerator * _arg0; | |
1794 | PyObject * _argo0 = 0; | |
1795 | char *_kwnames[] = { "self", NULL }; | |
1796 | ||
1797 | self = self; | |
1798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
1799 | return NULL; | |
1800 | if (_argo0) { | |
1801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
1803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
1804 | return NULL; | |
1805 | } | |
1806 | } | |
1807 | { | |
1808 | wxPy_BEGIN_ALLOW_THREADS; | |
1809 | delete_wxPyFontEnumerator(_arg0); | |
1810 | ||
1811 | wxPy_END_ALLOW_THREADS; | |
1812 | } Py_INCREF(Py_None); | |
1813 | _resultobj = Py_None; | |
1814 | return _resultobj; | |
1815 | } | |
1816 | ||
1817 | #define wxFontEnumerator__setSelf(_swigobj,_swigarg0) (_swigobj->_setSelf(_swigarg0)) | |
1818 | static PyObject *_wrap_wxFontEnumerator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1819 | PyObject * _resultobj; | |
1820 | wxPyFontEnumerator * _arg0; | |
1821 | PyObject * _arg1; | |
1822 | PyObject * _argo0 = 0; | |
1823 | PyObject * _obj1 = 0; | |
1824 | char *_kwnames[] = { "self","self", NULL }; | |
1825 | ||
1826 | self = self; | |
1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontEnumerator__setSelf",_kwnames,&_argo0,&_obj1)) | |
1828 | return NULL; | |
1829 | if (_argo0) { | |
1830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
1832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setSelf. Expected _wxPyFontEnumerator_p."); | |
1833 | return NULL; | |
1834 | } | |
1835 | } | |
1836 | { | |
1837 | _arg1 = _obj1; | |
1838 | } | |
1839 | { | |
1840 | wxPy_BEGIN_ALLOW_THREADS; | |
1841 | wxFontEnumerator__setSelf(_arg0,_arg1); | |
1842 | ||
1843 | wxPy_END_ALLOW_THREADS; | |
1844 | } Py_INCREF(Py_None); | |
1845 | _resultobj = Py_None; | |
1846 | return _resultobj; | |
1847 | } | |
1848 | ||
1849 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
1850 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1851 | PyObject * _resultobj; | |
1852 | bool _result; | |
1853 | wxPyFontEnumerator * _arg0; | |
1854 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
1855 | bool _arg2 = (bool ) FALSE; | |
1856 | PyObject * _argo0 = 0; | |
1857 | int tempbool2 = (int) FALSE; | |
1858 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
1859 | ||
1860 | self = self; | |
1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
1862 | return NULL; | |
1863 | if (_argo0) { | |
1864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
1866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
1867 | return NULL; | |
1868 | } | |
1869 | } | |
1870 | _arg2 = (bool ) tempbool2; | |
1871 | { | |
1872 | wxPy_BEGIN_ALLOW_THREADS; | |
1873 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); | |
1874 | ||
1875 | wxPy_END_ALLOW_THREADS; | |
1876 | } _resultobj = Py_BuildValue("i",_result); | |
1877 | return _resultobj; | |
1878 | } | |
1879 | ||
1880 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
1881 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1882 | PyObject * _resultobj; | |
1883 | bool _result; | |
1884 | wxPyFontEnumerator * _arg0; | |
1885 | char * _arg1 = (char *) ""; | |
1886 | PyObject * _argo0 = 0; | |
1887 | char *_kwnames[] = { "self","facename", NULL }; | |
1888 | ||
1889 | self = self; | |
1890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
1891 | return NULL; | |
1892 | if (_argo0) { | |
1893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
1895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
1896 | return NULL; | |
1897 | } | |
1898 | } | |
1899 | { | |
1900 | wxPy_BEGIN_ALLOW_THREADS; | |
1901 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); | |
1902 | ||
1903 | wxPy_END_ALLOW_THREADS; | |
1904 | } _resultobj = Py_BuildValue("i",_result); | |
1905 | return _resultobj; | |
1906 | } | |
1907 | ||
65dd82cb RD |
1908 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { |
1909 | wxArrayString* arr = self->GetEncodings(); | |
1910 | PyObject* list = PyList_New(0); | |
1911 | for (size_t x=0; x<arr->GetCount(); x++) | |
1912 | PyList_Append(list, PyString_FromString((*arr)[x])); | |
1913 | return list; | |
1914 | } | |
1915 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1916 | PyObject * _resultobj; | |
1917 | PyObject * _result; | |
1918 | wxPyFontEnumerator * _arg0; | |
1919 | PyObject * _argo0 = 0; | |
1920 | char *_kwnames[] = { "self", NULL }; | |
1921 | ||
1922 | self = self; | |
1923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
1924 | return NULL; | |
1925 | if (_argo0) { | |
1926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
1928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
1929 | return NULL; | |
1930 | } | |
1931 | } | |
1932 | { | |
1933 | wxPy_BEGIN_ALLOW_THREADS; | |
1934 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); | |
1935 | ||
1936 | wxPy_END_ALLOW_THREADS; | |
1937 | }{ | |
1938 | _resultobj = _result; | |
1939 | } | |
1940 | return _resultobj; | |
1941 | } | |
1942 | ||
1943 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
1944 | wxArrayString* arr = self->GetFacenames(); | |
1945 | PyObject* list = PyList_New(0); | |
1946 | for (size_t x=0; x<arr->GetCount(); x++) | |
1947 | PyList_Append(list, PyString_FromString((*arr)[x])); | |
1948 | return list; | |
1949 | } | |
1950 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1951 | PyObject * _resultobj; | |
1952 | PyObject * _result; | |
1953 | wxPyFontEnumerator * _arg0; | |
1954 | PyObject * _argo0 = 0; | |
1955 | char *_kwnames[] = { "self", NULL }; | |
1956 | ||
1957 | self = self; | |
1958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
1959 | return NULL; | |
1960 | if (_argo0) { | |
1961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
1963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
1964 | return NULL; | |
1965 | } | |
1966 | } | |
1967 | { | |
1968 | wxPy_BEGIN_ALLOW_THREADS; | |
1969 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); | |
1970 | ||
1971 | wxPy_END_ALLOW_THREADS; | |
1972 | }{ | |
1973 | _resultobj = _result; | |
1974 | } | |
1975 | return _resultobj; | |
1976 | } | |
1977 | ||
2abc0a0f RD |
1978 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) |
1979 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1980 | PyObject * _resultobj; | |
1981 | wxBusyCursor * _result; | |
1982 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1983 | PyObject * _argo0 = 0; | |
1984 | char *_kwnames[] = { "cursor", NULL }; | |
1985 | char _ptemp[128]; | |
1986 | ||
1987 | self = self; | |
1988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
1989 | return NULL; | |
1990 | if (_argo0) { | |
1991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
1994 | return NULL; | |
1995 | } | |
1996 | } | |
1997 | { | |
1998 | wxPy_BEGIN_ALLOW_THREADS; | |
1999 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); | |
2000 | ||
2001 | wxPy_END_ALLOW_THREADS; | |
2002 | } if (_result) { | |
2003 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
2004 | _resultobj = Py_BuildValue("s",_ptemp); | |
2005 | } else { | |
2006 | Py_INCREF(Py_None); | |
2007 | _resultobj = Py_None; | |
2008 | } | |
2009 | return _resultobj; | |
2010 | } | |
2011 | ||
2012 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
2013 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2014 | PyObject * _resultobj; | |
2015 | wxBusyCursor * _arg0; | |
2016 | PyObject * _argo0 = 0; | |
2017 | char *_kwnames[] = { "self", NULL }; | |
2018 | ||
2019 | self = self; | |
2020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
2021 | return NULL; | |
2022 | if (_argo0) { | |
2023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
2025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
2026 | return NULL; | |
2027 | } | |
2028 | } | |
2029 | { | |
2030 | wxPy_BEGIN_ALLOW_THREADS; | |
2031 | delete_wxBusyCursor(_arg0); | |
2032 | ||
2033 | wxPy_END_ALLOW_THREADS; | |
2034 | } Py_INCREF(Py_None); | |
2035 | _resultobj = Py_None; | |
2036 | return _resultobj; | |
2037 | } | |
2038 | ||
bb0054cd | 2039 | static PyMethodDef misc2cMethods[] = { |
2abc0a0f RD |
2040 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
2041 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
65dd82cb RD |
2042 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, |
2043 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
2044 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, |
2045 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
2046 | { "wxFontEnumerator__setSelf", (PyCFunction) _wrap_wxFontEnumerator__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
2047 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
2048 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
2049 | { "wxCaret_OnKillFocus", (PyCFunction) _wrap_wxCaret_OnKillFocus, METH_VARARGS | METH_KEYWORDS }, |
2050 | { "wxCaret_OnSetFocus", (PyCFunction) _wrap_wxCaret_OnSetFocus, METH_VARARGS | METH_KEYWORDS }, | |
2051 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
2052 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
2053 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, | |
2054 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
2055 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
2056 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
2057 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
2058 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
2059 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
2060 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
2061 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
2062 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
2063 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2064 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
2065 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
2066 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
2067 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 2068 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
2069 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
2070 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2071 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
2072 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
2073 | { "wxSystemSettings_GetSystemMetric", (PyCFunction) _wrap_wxSystemSettings_GetSystemMetric, METH_VARARGS | METH_KEYWORDS }, |
2074 | { "wxSystemSettings_GetSystemFont", (PyCFunction) _wrap_wxSystemSettings_GetSystemFont, METH_VARARGS | METH_KEYWORDS }, | |
2075 | { "wxSystemSettings_GetSystemColour", (PyCFunction) _wrap_wxSystemSettings_GetSystemColour, METH_VARARGS | METH_KEYWORDS }, | |
2076 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, | |
2077 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
2078 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
2079 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
2080 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
2081 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
2082 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
2083 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
2084 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
2085 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
2086 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2087 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
2088 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
2089 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
2090 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
2091 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
2092 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
2093 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
2094 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
2095 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
2096 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
2097 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
bb0054cd RD |
2098 | { NULL, NULL } |
2099 | }; | |
1d99702e RD |
2100 | #ifdef __cplusplus |
2101 | } | |
2102 | #endif | |
2103 | /* | |
2104 | * This table is used by the pointer type-checker | |
2105 | */ | |
2106 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2107 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
b1462dfa RD |
2108 | { "_wxEvent","_class_wxEvent",0}, |
2109 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
1d99702e | 2110 | { "_signed_long","_long",0}, |
b1462dfa RD |
2111 | { "_wxMenuEvent","_class_wxMenuEvent",0}, |
2112 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, | |
2113 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, | |
2114 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, | |
2115 | { "_wxPrintQuality","_wxCoord",0}, | |
1d99702e RD |
2116 | { "_wxPrintQuality","_int",0}, |
2117 | { "_wxPrintQuality","_signed_int",0}, | |
2118 | { "_wxPrintQuality","_unsigned_int",0}, | |
2119 | { "_wxPrintQuality","_wxWindowID",0}, | |
2120 | { "_wxPrintQuality","_uint",0}, | |
2121 | { "_wxPrintQuality","_EBool",0}, | |
2122 | { "_wxPrintQuality","_size_t",0}, | |
b1462dfa | 2123 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
1d99702e | 2124 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 2125 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
2126 | { "_class_wxMenuBar","_wxMenuBar",0}, |
2127 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
b1462dfa | 2128 | { "_wxPaintEvent","_class_wxPaintEvent",0}, |
1d99702e RD |
2129 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, |
2130 | { "_wxCursor","_class_wxCursor",0}, | |
b1462dfa | 2131 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, |
1d99702e RD |
2132 | { "_wxMask","_class_wxMask",0}, |
2133 | { "_wxToolTip","_class_wxToolTip",0}, | |
2134 | { "_wxPen","_class_wxPen",0}, | |
b1462dfa | 2135 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, |
1d99702e | 2136 | { "_byte","_unsigned_char",0}, |
b1462dfa RD |
2137 | { "_wxDataObject","_class_wxDataObject",0}, |
2138 | { "_class_wxPyFontEnumerator","_wxPyFontEnumerator",0}, | |
2139 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, | |
2140 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
2141 | { "_long","_wxDash",0}, |
2142 | { "_long","_unsigned_long",0}, | |
2143 | { "_long","_signed_long",0}, | |
2144 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa RD |
2145 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
2146 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, | |
1d99702e | 2147 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
b1462dfa | 2148 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e | 2149 | { "_wxDC","_class_wxDC",0}, |
b1462dfa RD |
2150 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
2151 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
2152 | { "_size_t","_wxCoord",0}, | |
1d99702e RD |
2153 | { "_size_t","_wxPrintQuality",0}, |
2154 | { "_size_t","_unsigned_int",0}, | |
2155 | { "_size_t","_int",0}, | |
2156 | { "_size_t","_wxWindowID",0}, | |
2157 | { "_size_t","_uint",0}, | |
2158 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
b1462dfa | 2159 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
1d99702e | 2160 | { "_wxPrinterDC","_class_wxPrinterDC",0}, |
b1462dfa | 2161 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
1d99702e | 2162 | { "_class_wxMenuItem","_wxMenuItem",0}, |
b1462dfa RD |
2163 | { "_class_wxPaintEvent","_wxPaintEvent",0}, |
2164 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
1d99702e | 2165 | { "_wxPanel","_class_wxPanel",0}, |
b1462dfa RD |
2166 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, |
2167 | { "_wxPyEvent","_class_wxPyEvent",0}, | |
1d99702e | 2168 | { "_class_wxMask","_wxMask",0}, |
b1462dfa RD |
2169 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
2170 | { "_class_wxKeyEvent","_wxKeyEvent",0}, | |
1d99702e RD |
2171 | { "_class_wxToolTip","_wxToolTip",0}, |
2172 | { "_wxColour","_class_wxColour",0}, | |
2173 | { "_class_wxDialog","_wxDialog",0}, | |
2abc0a0f | 2174 | { "_wxBusyCursor","_class_wxBusyCursor",0}, |
b1462dfa RD |
2175 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
2176 | { "_wxIdleEvent","_class_wxIdleEvent",0}, | |
2177 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
2178 | { "_class_wxDataObject","_wxDataObject",0}, | |
f0261a72 | 2179 | { "_wxCaret","_class_wxCaret",0}, |
1d99702e | 2180 | { "_wxBrush","_class_wxBrush",0}, |
b1462dfa RD |
2181 | { "_wxDataFormat","_class_wxDataFormat",0}, |
2182 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
2183 | { "_wxShowEvent","_class_wxShowEvent",0}, | |
2184 | { "_uint","_wxCoord",0}, | |
1d99702e RD |
2185 | { "_uint","_wxPrintQuality",0}, |
2186 | { "_uint","_size_t",0}, | |
2187 | { "_uint","_unsigned_int",0}, | |
2188 | { "_uint","_int",0}, | |
2189 | { "_uint","_wxWindowID",0}, | |
2f90df85 | 2190 | { "_wxPyValidator","_class_wxPyValidator",0}, |
b1462dfa | 2191 | { "_class_wxEvent","_wxEvent",0}, |
1d99702e | 2192 | { "_wxRect","_class_wxRect",0}, |
b1462dfa RD |
2193 | { "_wxCommandEvent","_class_wxCommandEvent",0}, |
2194 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
1d99702e RD |
2195 | { "_wxPoint","_class_wxPoint",0}, |
2196 | { "_wxBitmap","_class_wxBitmap",0}, | |
2197 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
2198 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
2199 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
b1462dfa | 2200 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, |
2f90df85 | 2201 | { "_class_wxValidator","_wxValidator",0}, |
b1462dfa RD |
2202 | { "_class_wxPyEvent","_wxPyEvent",0}, |
2203 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
2abc0a0f | 2204 | { "_class_wxBusyCursor","_wxBusyCursor",0}, |
b1462dfa RD |
2205 | { "_wxDropTarget","_class_wxDropTarget",0}, |
2206 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
2207 | { "_EBool","_wxCoord",0}, | |
1d99702e RD |
2208 | { "_EBool","_wxPrintQuality",0}, |
2209 | { "_EBool","_signed_int",0}, | |
2210 | { "_EBool","_int",0}, | |
2211 | { "_EBool","_wxWindowID",0}, | |
2212 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa RD |
2213 | { "_class_wxDataFormat","_wxDataFormat",0}, |
2214 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, | |
2215 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, | |
1d99702e | 2216 | { "_wxFont","_class_wxFont",0}, |
b1462dfa RD |
2217 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
2218 | { "_wxCloseEvent","_class_wxCloseEvent",0}, | |
1d99702e RD |
2219 | { "_unsigned_long","_wxDash",0}, |
2220 | { "_unsigned_long","_long",0}, | |
2221 | { "_class_wxRect","_wxRect",0}, | |
2222 | { "_class_wxDC","_wxDC",0}, | |
b1462dfa RD |
2223 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
2224 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, | |
2225 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, | |
1d99702e | 2226 | { "_class_wxPyTimer","_wxPyTimer",0}, |
b1462dfa RD |
2227 | { "_wxFocusEvent","_class_wxFocusEvent",0}, |
2228 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
1d99702e RD |
2229 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
2230 | { "_class_wxPanel","_wxPanel",0}, | |
b1462dfa | 2231 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
2232 | { "_signed_int","_wxPrintQuality",0}, |
2233 | { "_signed_int","_EBool",0}, | |
2234 | { "_signed_int","_wxWindowID",0}, | |
2235 | { "_signed_int","_int",0}, | |
2236 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
2237 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 2238 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e | 2239 | { "_wxMenu","_class_wxMenu",0}, |
b1462dfa | 2240 | { "_class_wxMoveEvent","_wxMoveEvent",0}, |
1d99702e RD |
2241 | { "_wxScreenDC","_class_wxScreenDC",0}, |
2242 | { "_WXTYPE","_short",0}, | |
2243 | { "_WXTYPE","_signed_short",0}, | |
2244 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 2245 | { "_class_wxDropTarget","_wxDropTarget",0}, |
f0261a72 | 2246 | { "_class_wxCaret","_wxCaret",0}, |
1d99702e RD |
2247 | { "_class_wxBrush","_wxBrush",0}, |
2248 | { "_unsigned_short","_WXTYPE",0}, | |
2249 | { "_unsigned_short","_short",0}, | |
2250 | { "_class_wxWindow","_wxWindow",0}, | |
2251 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 2252 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 2253 | { "_class_wxPyValidator","_wxPyValidator",0}, |
b1462dfa | 2254 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
2abc0a0f | 2255 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
b1462dfa RD |
2256 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
2257 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, | |
2258 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, | |
1d99702e | 2259 | { "_wxClientDC","_class_wxClientDC",0}, |
b1462dfa | 2260 | { "_wxMouseEvent","_class_wxMouseEvent",0}, |
1d99702e RD |
2261 | { "_class_wxPoint","_wxPoint",0}, |
2262 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
2263 | { "_signed_short","_WXTYPE",0}, | |
2264 | { "_signed_short","_short",0}, | |
2265 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
b1462dfa | 2266 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
2267 | { "_wxPaintDC","_class_wxPaintDC",0}, |
2268 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
b1462dfa RD |
2269 | { "_class_wxFocusEvent","_wxFocusEvent",0}, |
2270 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
1d99702e RD |
2271 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, |
2272 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 2273 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
2274 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
2275 | { "_unsigned_char","_byte",0}, | |
2276 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
2277 | { "_class_wxMenu","_wxMenu",0}, | |
b1462dfa | 2278 | { "_unsigned_int","_wxCoord",0}, |
1d99702e RD |
2279 | { "_unsigned_int","_wxPrintQuality",0}, |
2280 | { "_unsigned_int","_size_t",0}, | |
2281 | { "_unsigned_int","_uint",0}, | |
2282 | { "_unsigned_int","_wxWindowID",0}, | |
2283 | { "_unsigned_int","_int",0}, | |
2284 | { "_wxIcon","_class_wxIcon",0}, | |
2285 | { "_wxDialog","_class_wxDialog",0}, | |
2286 | { "_class_wxPen","_wxPen",0}, | |
2287 | { "_short","_WXTYPE",0}, | |
2288 | { "_short","_unsigned_short",0}, | |
2289 | { "_short","_signed_short",0}, | |
b1462dfa RD |
2290 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
2291 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
2292 | { "_class_wxScrollEvent","_wxScrollEvent",0}, | |
2293 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
1d99702e | 2294 | { "_class_wxImageList","_wxImageList",0}, |
b1462dfa RD |
2295 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
2296 | { "_wxWindowID","_wxCoord",0}, | |
1d99702e RD |
2297 | { "_wxWindowID","_wxPrintQuality",0}, |
2298 | { "_wxWindowID","_size_t",0}, | |
2299 | { "_wxWindowID","_EBool",0}, | |
2300 | { "_wxWindowID","_uint",0}, | |
2301 | { "_wxWindowID","_int",0}, | |
2302 | { "_wxWindowID","_signed_int",0}, | |
2303 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa RD |
2304 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
2305 | { "_int","_wxCoord",0}, | |
1d99702e RD |
2306 | { "_int","_wxPrintQuality",0}, |
2307 | { "_int","_size_t",0}, | |
2308 | { "_int","_EBool",0}, | |
2309 | { "_int","_uint",0}, | |
2310 | { "_int","_wxWindowID",0}, | |
2311 | { "_int","_unsigned_int",0}, | |
2312 | { "_int","_signed_int",0}, | |
b1462dfa RD |
2313 | { "_class_wxMouseEvent","_wxMouseEvent",0}, |
2314 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, | |
2315 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
2316 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, | |
2317 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, | |
1d99702e RD |
2318 | { "_wxSize","_class_wxSize",0}, |
2319 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
2320 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
b1462dfa | 2321 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e | 2322 | { "_class_wxPaintDC","_wxPaintDC",0}, |
b1462dfa RD |
2323 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, |
2324 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, | |
2325 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, | |
2f90df85 | 2326 | { "_wxValidator","_class_wxValidator",0}, |
1d99702e | 2327 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
b1462dfa | 2328 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, |
1d99702e RD |
2329 | { "_class_wxIcon","_wxIcon",0}, |
2330 | { "_class_wxColour","_wxColour",0}, | |
2331 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
2332 | { "_wxPalette","_class_wxPalette",0}, | |
b1462dfa RD |
2333 | { "_class_wxIdleEvent","_wxIdleEvent",0}, |
2334 | { "_wxCoord","_int",0}, | |
2335 | { "_wxCoord","_signed_int",0}, | |
2336 | { "_wxCoord","_unsigned_int",0}, | |
2337 | { "_wxCoord","_wxWindowID",0}, | |
2338 | { "_wxCoord","_uint",0}, | |
2339 | { "_wxCoord","_EBool",0}, | |
2340 | { "_wxCoord","_size_t",0}, | |
2341 | { "_wxCoord","_wxPrintQuality",0}, | |
2342 | { "_wxEraseEvent","_class_wxEraseEvent",0}, | |
2343 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
2344 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, | |
1d99702e | 2345 | { "_wxRegion","_class_wxRegion",0}, |
b1462dfa RD |
2346 | { "_class_wxShowEvent","_wxShowEvent",0}, |
2347 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, | |
2348 | { "_wxActivateEvent","_class_wxActivateEvent",0}, | |
2abc0a0f | 2349 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
b1462dfa | 2350 | { "_class_wxCommandEvent","_wxCommandEvent",0}, |
1d99702e | 2351 | { "_class_wxClientDC","_wxClientDC",0}, |
b1462dfa RD |
2352 | { "_class_wxSizeEvent","_wxSizeEvent",0}, |
2353 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, | |
1d99702e RD |
2354 | { "_class_wxSize","_wxSize",0}, |
2355 | { "_class_wxBitmap","_wxBitmap",0}, | |
2356 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 2357 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
2358 | { "_wxMenuBar","_class_wxMenuBar",0}, |
2359 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
2360 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
2361 | { "_wxDash","_unsigned_long",0}, | |
2362 | { "_wxDash","_long",0}, | |
2363 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
b1462dfa RD |
2364 | { "_wxKeyEvent","_class_wxKeyEvent",0}, |
2365 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
1d99702e | 2366 | { "_class_wxPalette","_wxPalette",0}, |
b1462dfa RD |
2367 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
2368 | { "_class_wxEraseEvent","_wxEraseEvent",0}, | |
2369 | { "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0}, | |
2370 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
1d99702e | 2371 | { "_wxWindow","_class_wxWindow",0}, |
b1462dfa | 2372 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
1d99702e RD |
2373 | {0,0,0}}; |
2374 | ||
bb0054cd RD |
2375 | static PyObject *SWIG_globals; |
2376 | #ifdef __cplusplus | |
2377 | extern "C" | |
2378 | #endif | |
1d99702e | 2379 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
2380 | PyObject *m, *d; |
2381 | SWIG_globals = SWIG_newvarlink(); | |
2382 | m = Py_InitModule("misc2c", misc2cMethods); | |
2383 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
2384 | PyDict_SetItemString(d,"wxSYS_WHITE_BRUSH", PyInt_FromLong((long) wxSYS_WHITE_BRUSH)); |
2385 | PyDict_SetItemString(d,"wxSYS_LTGRAY_BRUSH", PyInt_FromLong((long) wxSYS_LTGRAY_BRUSH)); | |
2386 | PyDict_SetItemString(d,"wxSYS_GRAY_BRUSH", PyInt_FromLong((long) wxSYS_GRAY_BRUSH)); | |
2387 | PyDict_SetItemString(d,"wxSYS_DKGRAY_BRUSH", PyInt_FromLong((long) wxSYS_DKGRAY_BRUSH)); | |
2388 | PyDict_SetItemString(d,"wxSYS_BLACK_BRUSH", PyInt_FromLong((long) wxSYS_BLACK_BRUSH)); | |
2389 | PyDict_SetItemString(d,"wxSYS_NULL_BRUSH", PyInt_FromLong((long) wxSYS_NULL_BRUSH)); | |
2390 | PyDict_SetItemString(d,"wxSYS_HOLLOW_BRUSH", PyInt_FromLong((long) wxSYS_HOLLOW_BRUSH)); | |
2391 | PyDict_SetItemString(d,"wxSYS_WHITE_PEN", PyInt_FromLong((long) wxSYS_WHITE_PEN)); | |
2392 | PyDict_SetItemString(d,"wxSYS_BLACK_PEN", PyInt_FromLong((long) wxSYS_BLACK_PEN)); | |
2393 | PyDict_SetItemString(d,"wxSYS_NULL_PEN", PyInt_FromLong((long) wxSYS_NULL_PEN)); | |
2394 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); | |
2395 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
2396 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
2397 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
2398 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
2399 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
2400 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
2401 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
2402 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
2403 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
2404 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); | |
2405 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
2406 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
2407 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
2408 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
2409 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
2410 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
2411 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
2412 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
2413 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
2414 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
2415 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
2416 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
2417 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
2418 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); | |
2419 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); | |
2420 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
2421 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
2422 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
2423 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); | |
2424 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
2425 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
2426 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
2427 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); | |
2428 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); | |
2429 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); | |
2430 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
2431 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
2432 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); | |
2433 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); | |
2434 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
2435 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
2436 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
2437 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
2438 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
2439 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
2440 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
2441 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
2442 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
2443 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
2444 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
2445 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
2446 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
2447 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
2448 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
2449 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
2450 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
2451 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
2452 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
2453 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
2454 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
2455 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
2456 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
2457 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
2458 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
2459 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
2460 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
2461 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
2462 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
2463 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
2464 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
2465 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
2466 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
2467 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
2468 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
2469 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
1d99702e RD |
2470 | { |
2471 | int i; | |
2472 | for (i = 0; _swig_mapping[i].n1; i++) | |
2473 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2474 | } | |
bb0054cd | 2475 | } |