]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/gtk/windows2.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initwindows2c | |
55 | ||
56 | #define SWIG_name "windows2c" | |
57 | ||
58 | #include "helpers.h" | |
59 | #ifdef OLD_GRID | |
60 | #include <wx/grid.h> | |
61 | #endif | |
62 | #include <wx/notebook.h> | |
63 | #include <wx/splitter.h> | |
64 | #include <wx/imaglist.h> | |
65 | #ifdef __WXMSW__ | |
66 | #include <wx/msw/taskbar.h> | |
67 | #endif | |
68 | ||
69 | // Put some wx default wxChar* values into wxStrings. | |
70 | DECLARE_DEF_STRING(NOTEBOOK_NAME); | |
71 | DECLARE_DEF_STRING(PanelNameStr); | |
72 | DECLARE_DEF_STRING(ControlNameStr); | |
73 | ||
74 | static const wxChar* wxSplitterNameStr = wxT("splitter"); | |
75 | DECLARE_DEF_STRING(SplitterNameStr); | |
76 | static const wxString wxPyEmptyString(wxT("")); | |
77 | ||
78 | ||
79 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
80 | PyObject* o2; | |
81 | PyObject* o3; | |
82 | ||
83 | if (!target) { | |
84 | target = o; | |
85 | } else if (target == Py_None) { | |
86 | Py_DECREF(Py_None); | |
87 | target = o; | |
88 | } else { | |
89 | if (!PyTuple_Check(target)) { | |
90 | o2 = target; | |
91 | target = PyTuple_New(1); | |
92 | PyTuple_SetItem(target, 0, o2); | |
93 | } | |
94 | o3 = PyTuple_New(1); | |
95 | PyTuple_SetItem(o3, 0, o); | |
96 | ||
97 | o2 = target; | |
98 | target = PySequence_Concat(o2, o3); | |
99 | Py_DECREF(o2); | |
100 | Py_DECREF(o3); | |
101 | } | |
102 | return target; | |
103 | } | |
104 | // C++ version of Python aware wxWindow | |
105 | class wxPyWindow : public wxWindow | |
106 | { | |
107 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
108 | public: | |
109 | wxPyWindow() : wxWindow() {} | |
110 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
111 | const wxPoint& pos = wxDefaultPosition, | |
112 | const wxSize& size = wxDefaultSize, | |
113 | long style = 0, | |
114 | const wxString& name = wxPyPanelNameStr) | |
115 | : wxWindow(parent, id, pos, size, style, name) {} | |
116 | ||
117 | ||
118 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
119 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
120 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
121 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
122 | ||
123 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
124 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
125 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
126 | ||
127 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
128 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
129 | ||
130 | DEC_PYCALLBACK__(InitDialog); | |
131 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
132 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
133 | DEC_PYCALLBACK_BOOL_(Validate); | |
134 | ||
135 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
136 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
137 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
138 | ||
139 | PYPRIVATE; | |
140 | }; | |
141 | ||
142 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
143 | ||
144 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
145 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
146 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
147 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
148 | ||
149 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
150 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
151 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
152 | ||
153 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
154 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
155 | ||
156 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
157 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
158 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
159 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
160 | ||
161 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
162 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
163 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
164 | ||
165 | // C++ version of Python aware wxControl | |
166 | class wxPyControl : public wxControl | |
167 | { | |
168 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
169 | public: | |
170 | wxPyControl() : wxControl() {} | |
171 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
172 | const wxPoint& pos = wxDefaultPosition, | |
173 | const wxSize& size = wxDefaultSize, | |
174 | long style = 0, | |
175 | const wxValidator& validator=wxDefaultValidator, | |
176 | const wxString& name = wxPyControlNameStr) | |
177 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
178 | ||
179 | ||
180 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
181 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
182 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
183 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
184 | ||
185 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
186 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
187 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
188 | ||
189 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
190 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
191 | ||
192 | DEC_PYCALLBACK__(InitDialog); | |
193 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
194 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
195 | DEC_PYCALLBACK_BOOL_(Validate); | |
196 | ||
197 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
198 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
199 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
200 | ||
201 | PYPRIVATE; | |
202 | }; | |
203 | ||
204 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
205 | ||
206 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
207 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
208 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
209 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
210 | ||
211 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
212 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
213 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
214 | ||
215 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
216 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
217 | ||
218 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
219 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
220 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
221 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
222 | ||
223 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
224 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
225 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
226 | ||
227 | #ifdef __cplusplus | |
228 | extern "C" { | |
229 | #endif | |
230 | static void *SwigwxNotebookEventTowxNotifyEvent(void *ptr) { | |
231 | wxNotebookEvent *src; | |
232 | wxNotifyEvent *dest; | |
233 | src = (wxNotebookEvent *) ptr; | |
234 | dest = (wxNotifyEvent *) src; | |
235 | return (void *) dest; | |
236 | } | |
237 | ||
238 | static void *SwigwxNotebookEventTowxCommandEvent(void *ptr) { | |
239 | wxNotebookEvent *src; | |
240 | wxCommandEvent *dest; | |
241 | src = (wxNotebookEvent *) ptr; | |
242 | dest = (wxCommandEvent *) src; | |
243 | return (void *) dest; | |
244 | } | |
245 | ||
246 | static void *SwigwxNotebookEventTowxEvent(void *ptr) { | |
247 | wxNotebookEvent *src; | |
248 | wxEvent *dest; | |
249 | src = (wxNotebookEvent *) ptr; | |
250 | dest = (wxEvent *) src; | |
251 | return (void *) dest; | |
252 | } | |
253 | ||
254 | static void *SwigwxNotebookEventTowxObject(void *ptr) { | |
255 | wxNotebookEvent *src; | |
256 | wxObject *dest; | |
257 | src = (wxNotebookEvent *) ptr; | |
258 | dest = (wxObject *) src; | |
259 | return (void *) dest; | |
260 | } | |
261 | ||
262 | #define new_wxNotebookEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxNotebookEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
263 | static PyObject *_wrap_new_wxNotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
264 | PyObject * _resultobj; | |
265 | wxNotebookEvent * _result; | |
266 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
267 | int _arg1 = (int ) 0; | |
268 | int _arg2 = (int ) -1; | |
269 | int _arg3 = (int ) -1; | |
270 | char *_kwnames[] = { "commandType","id","nSel","nOldSel", NULL }; | |
271 | char _ptemp[128]; | |
272 | ||
273 | self = self; | |
274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxNotebookEvent",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
275 | return NULL; | |
276 | { | |
277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
278 | _result = (wxNotebookEvent *)new_wxNotebookEvent(_arg0,_arg1,_arg2,_arg3); | |
279 | ||
280 | wxPyEndAllowThreads(__tstate); | |
281 | if (PyErr_Occurred()) return NULL; | |
282 | } if (_result) { | |
283 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebookEvent_p"); | |
284 | _resultobj = Py_BuildValue("s",_ptemp); | |
285 | } else { | |
286 | Py_INCREF(Py_None); | |
287 | _resultobj = Py_None; | |
288 | } | |
289 | return _resultobj; | |
290 | } | |
291 | ||
292 | #define wxNotebookEvent_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
293 | static PyObject *_wrap_wxNotebookEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
294 | PyObject * _resultobj; | |
295 | int _result; | |
296 | wxNotebookEvent * _arg0; | |
297 | PyObject * _argo0 = 0; | |
298 | char *_kwnames[] = { "self", NULL }; | |
299 | ||
300 | self = self; | |
301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookEvent_GetSelection",_kwnames,&_argo0)) | |
302 | return NULL; | |
303 | if (_argo0) { | |
304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) { | |
306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_GetSelection. Expected _wxNotebookEvent_p."); | |
307 | return NULL; | |
308 | } | |
309 | } | |
310 | { | |
311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
312 | _result = (int )wxNotebookEvent_GetSelection(_arg0); | |
313 | ||
314 | wxPyEndAllowThreads(__tstate); | |
315 | if (PyErr_Occurred()) return NULL; | |
316 | } _resultobj = Py_BuildValue("i",_result); | |
317 | return _resultobj; | |
318 | } | |
319 | ||
320 | #define wxNotebookEvent_GetOldSelection(_swigobj) (_swigobj->GetOldSelection()) | |
321 | static PyObject *_wrap_wxNotebookEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
322 | PyObject * _resultobj; | |
323 | int _result; | |
324 | wxNotebookEvent * _arg0; | |
325 | PyObject * _argo0 = 0; | |
326 | char *_kwnames[] = { "self", NULL }; | |
327 | ||
328 | self = self; | |
329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookEvent_GetOldSelection",_kwnames,&_argo0)) | |
330 | return NULL; | |
331 | if (_argo0) { | |
332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) { | |
334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_GetOldSelection. Expected _wxNotebookEvent_p."); | |
335 | return NULL; | |
336 | } | |
337 | } | |
338 | { | |
339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
340 | _result = (int )wxNotebookEvent_GetOldSelection(_arg0); | |
341 | ||
342 | wxPyEndAllowThreads(__tstate); | |
343 | if (PyErr_Occurred()) return NULL; | |
344 | } _resultobj = Py_BuildValue("i",_result); | |
345 | return _resultobj; | |
346 | } | |
347 | ||
348 | #define wxNotebookEvent_SetOldSelection(_swigobj,_swigarg0) (_swigobj->SetOldSelection(_swigarg0)) | |
349 | static PyObject *_wrap_wxNotebookEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
350 | PyObject * _resultobj; | |
351 | wxNotebookEvent * _arg0; | |
352 | int _arg1; | |
353 | PyObject * _argo0 = 0; | |
354 | char *_kwnames[] = { "self","page", NULL }; | |
355 | ||
356 | self = self; | |
357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebookEvent_SetOldSelection",_kwnames,&_argo0,&_arg1)) | |
358 | return NULL; | |
359 | if (_argo0) { | |
360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) { | |
362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_SetOldSelection. Expected _wxNotebookEvent_p."); | |
363 | return NULL; | |
364 | } | |
365 | } | |
366 | { | |
367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
368 | wxNotebookEvent_SetOldSelection(_arg0,_arg1); | |
369 | ||
370 | wxPyEndAllowThreads(__tstate); | |
371 | if (PyErr_Occurred()) return NULL; | |
372 | } Py_INCREF(Py_None); | |
373 | _resultobj = Py_None; | |
374 | return _resultobj; | |
375 | } | |
376 | ||
377 | #define wxNotebookEvent_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
378 | static PyObject *_wrap_wxNotebookEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
379 | PyObject * _resultobj; | |
380 | wxNotebookEvent * _arg0; | |
381 | int _arg1; | |
382 | PyObject * _argo0 = 0; | |
383 | char *_kwnames[] = { "self","page", NULL }; | |
384 | ||
385 | self = self; | |
386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebookEvent_SetSelection",_kwnames,&_argo0,&_arg1)) | |
387 | return NULL; | |
388 | if (_argo0) { | |
389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) { | |
391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_SetSelection. Expected _wxNotebookEvent_p."); | |
392 | return NULL; | |
393 | } | |
394 | } | |
395 | { | |
396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
397 | wxNotebookEvent_SetSelection(_arg0,_arg1); | |
398 | ||
399 | wxPyEndAllowThreads(__tstate); | |
400 | if (PyErr_Occurred()) return NULL; | |
401 | } Py_INCREF(Py_None); | |
402 | _resultobj = Py_None; | |
403 | return _resultobj; | |
404 | } | |
405 | ||
406 | static void *SwigwxNotebookTowxControl(void *ptr) { | |
407 | wxNotebook *src; | |
408 | wxControl *dest; | |
409 | src = (wxNotebook *) ptr; | |
410 | dest = (wxControl *) src; | |
411 | return (void *) dest; | |
412 | } | |
413 | ||
414 | static void *SwigwxNotebookTowxWindow(void *ptr) { | |
415 | wxNotebook *src; | |
416 | wxWindow *dest; | |
417 | src = (wxNotebook *) ptr; | |
418 | dest = (wxWindow *) src; | |
419 | return (void *) dest; | |
420 | } | |
421 | ||
422 | static void *SwigwxNotebookTowxEvtHandler(void *ptr) { | |
423 | wxNotebook *src; | |
424 | wxEvtHandler *dest; | |
425 | src = (wxNotebook *) ptr; | |
426 | dest = (wxEvtHandler *) src; | |
427 | return (void *) dest; | |
428 | } | |
429 | ||
430 | static void *SwigwxNotebookTowxObject(void *ptr) { | |
431 | wxNotebook *src; | |
432 | wxObject *dest; | |
433 | src = (wxNotebook *) ptr; | |
434 | dest = (wxObject *) src; | |
435 | return (void *) dest; | |
436 | } | |
437 | ||
438 | #define new_wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
439 | static PyObject *_wrap_new_wxNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
440 | PyObject * _resultobj; | |
441 | wxNotebook * _result; | |
442 | wxWindow * _arg0; | |
443 | wxWindowID _arg1; | |
444 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
445 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
446 | long _arg4 = (long ) 0; | |
447 | wxString * _arg5 = (wxString *) &wxPyNOTEBOOK_NAME; | |
448 | PyObject * _argo0 = 0; | |
449 | wxPoint temp; | |
450 | PyObject * _obj2 = 0; | |
451 | wxSize temp0; | |
452 | PyObject * _obj3 = 0; | |
453 | PyObject * _obj5 = 0; | |
454 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
455 | char _ptemp[128]; | |
456 | ||
457 | self = self; | |
458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxNotebook",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
459 | return NULL; | |
460 | if (_argo0) { | |
461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxNotebook. Expected _wxWindow_p."); | |
464 | return NULL; | |
465 | } | |
466 | } | |
467 | if (_obj2) | |
468 | { | |
469 | _arg2 = &temp; | |
470 | if (! wxPoint_helper(_obj2, &_arg2)) | |
471 | return NULL; | |
472 | } | |
473 | if (_obj3) | |
474 | { | |
475 | _arg3 = &temp0; | |
476 | if (! wxSize_helper(_obj3, &_arg3)) | |
477 | return NULL; | |
478 | } | |
479 | if (_obj5) | |
480 | { | |
481 | _arg5 = wxString_in_helper(_obj5); | |
482 | if (_arg5 == NULL) | |
483 | return NULL; | |
484 | } | |
485 | { | |
486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
487 | _result = (wxNotebook *)new_wxNotebook(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
488 | ||
489 | wxPyEndAllowThreads(__tstate); | |
490 | if (PyErr_Occurred()) return NULL; | |
491 | } if (_result) { | |
492 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p"); | |
493 | _resultobj = Py_BuildValue("s",_ptemp); | |
494 | } else { | |
495 | Py_INCREF(Py_None); | |
496 | _resultobj = Py_None; | |
497 | } | |
498 | { | |
499 | if (_obj5) | |
500 | delete _arg5; | |
501 | } | |
502 | return _resultobj; | |
503 | } | |
504 | ||
505 | #define new_wxPreNotebook() (new wxNotebook()) | |
506 | static PyObject *_wrap_new_wxPreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
507 | PyObject * _resultobj; | |
508 | wxNotebook * _result; | |
509 | char *_kwnames[] = { NULL }; | |
510 | char _ptemp[128]; | |
511 | ||
512 | self = self; | |
513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreNotebook",_kwnames)) | |
514 | return NULL; | |
515 | { | |
516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
517 | _result = (wxNotebook *)new_wxPreNotebook(); | |
518 | ||
519 | wxPyEndAllowThreads(__tstate); | |
520 | if (PyErr_Occurred()) return NULL; | |
521 | } if (_result) { | |
522 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p"); | |
523 | _resultobj = Py_BuildValue("s",_ptemp); | |
524 | } else { | |
525 | Py_INCREF(Py_None); | |
526 | _resultobj = Py_None; | |
527 | } | |
528 | return _resultobj; | |
529 | } | |
530 | ||
531 | #define wxNotebook_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
532 | static PyObject *_wrap_wxNotebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
533 | PyObject * _resultobj; | |
534 | bool _result; | |
535 | wxNotebook * _arg0; | |
536 | wxWindow * _arg1; | |
537 | wxWindowID _arg2; | |
538 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
539 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
540 | long _arg5 = (long ) 0; | |
541 | wxString * _arg6 = (wxString *) &wxPyNOTEBOOK_NAME; | |
542 | PyObject * _argo0 = 0; | |
543 | PyObject * _argo1 = 0; | |
544 | wxPoint temp; | |
545 | PyObject * _obj3 = 0; | |
546 | wxSize temp0; | |
547 | PyObject * _obj4 = 0; | |
548 | PyObject * _obj6 = 0; | |
549 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
550 | ||
551 | self = self; | |
552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxNotebook_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
553 | return NULL; | |
554 | if (_argo0) { | |
555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_Create. Expected _wxNotebook_p."); | |
558 | return NULL; | |
559 | } | |
560 | } | |
561 | if (_argo1) { | |
562 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
563 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_Create. Expected _wxWindow_p."); | |
565 | return NULL; | |
566 | } | |
567 | } | |
568 | if (_obj3) | |
569 | { | |
570 | _arg3 = &temp; | |
571 | if (! wxPoint_helper(_obj3, &_arg3)) | |
572 | return NULL; | |
573 | } | |
574 | if (_obj4) | |
575 | { | |
576 | _arg4 = &temp0; | |
577 | if (! wxSize_helper(_obj4, &_arg4)) | |
578 | return NULL; | |
579 | } | |
580 | if (_obj6) | |
581 | { | |
582 | _arg6 = wxString_in_helper(_obj6); | |
583 | if (_arg6 == NULL) | |
584 | return NULL; | |
585 | } | |
586 | { | |
587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
588 | _result = (bool )wxNotebook_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
589 | ||
590 | wxPyEndAllowThreads(__tstate); | |
591 | if (PyErr_Occurred()) return NULL; | |
592 | } _resultobj = Py_BuildValue("i",_result); | |
593 | { | |
594 | if (_obj6) | |
595 | delete _arg6; | |
596 | } | |
597 | return _resultobj; | |
598 | } | |
599 | ||
600 | #define wxNotebook_GetPageCount(_swigobj) (_swigobj->GetPageCount()) | |
601 | static PyObject *_wrap_wxNotebook_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
602 | PyObject * _resultobj; | |
603 | int _result; | |
604 | wxNotebook * _arg0; | |
605 | PyObject * _argo0 = 0; | |
606 | char *_kwnames[] = { "self", NULL }; | |
607 | ||
608 | self = self; | |
609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetPageCount",_kwnames,&_argo0)) | |
610 | return NULL; | |
611 | if (_argo0) { | |
612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageCount. Expected _wxNotebook_p."); | |
615 | return NULL; | |
616 | } | |
617 | } | |
618 | { | |
619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
620 | _result = (int )wxNotebook_GetPageCount(_arg0); | |
621 | ||
622 | wxPyEndAllowThreads(__tstate); | |
623 | if (PyErr_Occurred()) return NULL; | |
624 | } _resultobj = Py_BuildValue("i",_result); | |
625 | return _resultobj; | |
626 | } | |
627 | ||
628 | #define wxNotebook_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
629 | static PyObject *_wrap_wxNotebook_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630 | PyObject * _resultobj; | |
631 | int _result; | |
632 | wxNotebook * _arg0; | |
633 | int _arg1; | |
634 | PyObject * _argo0 = 0; | |
635 | char *_kwnames[] = { "self","nPage", NULL }; | |
636 | ||
637 | self = self; | |
638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_SetSelection",_kwnames,&_argo0,&_arg1)) | |
639 | return NULL; | |
640 | if (_argo0) { | |
641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetSelection. Expected _wxNotebook_p."); | |
644 | return NULL; | |
645 | } | |
646 | } | |
647 | { | |
648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
649 | _result = (int )wxNotebook_SetSelection(_arg0,_arg1); | |
650 | ||
651 | wxPyEndAllowThreads(__tstate); | |
652 | if (PyErr_Occurred()) return NULL; | |
653 | } _resultobj = Py_BuildValue("i",_result); | |
654 | return _resultobj; | |
655 | } | |
656 | ||
657 | #define wxNotebook_AdvanceSelection(_swigobj,_swigarg0) (_swigobj->AdvanceSelection(_swigarg0)) | |
658 | static PyObject *_wrap_wxNotebook_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
659 | PyObject * _resultobj; | |
660 | wxNotebook * _arg0; | |
661 | bool _arg1 = (bool ) TRUE; | |
662 | PyObject * _argo0 = 0; | |
663 | int tempbool1 = (int) TRUE; | |
664 | char *_kwnames[] = { "self","bForward", NULL }; | |
665 | ||
666 | self = self; | |
667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxNotebook_AdvanceSelection",_kwnames,&_argo0,&tempbool1)) | |
668 | return NULL; | |
669 | if (_argo0) { | |
670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AdvanceSelection. Expected _wxNotebook_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | _arg1 = (bool ) tempbool1; | |
677 | { | |
678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
679 | wxNotebook_AdvanceSelection(_arg0,_arg1); | |
680 | ||
681 | wxPyEndAllowThreads(__tstate); | |
682 | if (PyErr_Occurred()) return NULL; | |
683 | } Py_INCREF(Py_None); | |
684 | _resultobj = Py_None; | |
685 | return _resultobj; | |
686 | } | |
687 | ||
688 | #define wxNotebook_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
689 | static PyObject *_wrap_wxNotebook_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
690 | PyObject * _resultobj; | |
691 | int _result; | |
692 | wxNotebook * _arg0; | |
693 | PyObject * _argo0 = 0; | |
694 | char *_kwnames[] = { "self", NULL }; | |
695 | ||
696 | self = self; | |
697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetSelection",_kwnames,&_argo0)) | |
698 | return NULL; | |
699 | if (_argo0) { | |
700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetSelection. Expected _wxNotebook_p."); | |
703 | return NULL; | |
704 | } | |
705 | } | |
706 | { | |
707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
708 | _result = (int )wxNotebook_GetSelection(_arg0); | |
709 | ||
710 | wxPyEndAllowThreads(__tstate); | |
711 | if (PyErr_Occurred()) return NULL; | |
712 | } _resultobj = Py_BuildValue("i",_result); | |
713 | return _resultobj; | |
714 | } | |
715 | ||
716 | #define wxNotebook_SetPageText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPageText(_swigarg0,_swigarg1)) | |
717 | static PyObject *_wrap_wxNotebook_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject * _resultobj; | |
719 | bool _result; | |
720 | wxNotebook * _arg0; | |
721 | int _arg1; | |
722 | wxString * _arg2; | |
723 | PyObject * _argo0 = 0; | |
724 | PyObject * _obj2 = 0; | |
725 | char *_kwnames[] = { "self","nPage","strText", NULL }; | |
726 | ||
727 | self = self; | |
728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxNotebook_SetPageText",_kwnames,&_argo0,&_arg1,&_obj2)) | |
729 | return NULL; | |
730 | if (_argo0) { | |
731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageText. Expected _wxNotebook_p."); | |
734 | return NULL; | |
735 | } | |
736 | } | |
737 | { | |
738 | _arg2 = wxString_in_helper(_obj2); | |
739 | if (_arg2 == NULL) | |
740 | return NULL; | |
741 | } | |
742 | { | |
743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
744 | _result = (bool )wxNotebook_SetPageText(_arg0,_arg1,*_arg2); | |
745 | ||
746 | wxPyEndAllowThreads(__tstate); | |
747 | if (PyErr_Occurred()) return NULL; | |
748 | } _resultobj = Py_BuildValue("i",_result); | |
749 | { | |
750 | if (_obj2) | |
751 | delete _arg2; | |
752 | } | |
753 | return _resultobj; | |
754 | } | |
755 | ||
756 | #define wxNotebook_GetPageText(_swigobj,_swigarg0) (_swigobj->GetPageText(_swigarg0)) | |
757 | static PyObject *_wrap_wxNotebook_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
758 | PyObject * _resultobj; | |
759 | wxString * _result; | |
760 | wxNotebook * _arg0; | |
761 | int _arg1; | |
762 | PyObject * _argo0 = 0; | |
763 | char *_kwnames[] = { "self","nPage", NULL }; | |
764 | ||
765 | self = self; | |
766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPageText",_kwnames,&_argo0,&_arg1)) | |
767 | return NULL; | |
768 | if (_argo0) { | |
769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageText. Expected _wxNotebook_p."); | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | { | |
776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
777 | _result = new wxString (wxNotebook_GetPageText(_arg0,_arg1)); | |
778 | ||
779 | wxPyEndAllowThreads(__tstate); | |
780 | if (PyErr_Occurred()) return NULL; | |
781 | }{ | |
782 | #if wxUSE_UNICODE | |
783 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
784 | #else | |
785 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
786 | #endif | |
787 | } | |
788 | { | |
789 | delete _result; | |
790 | } | |
791 | return _resultobj; | |
792 | } | |
793 | ||
794 | #define wxNotebook_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) | |
795 | static PyObject *_wrap_wxNotebook_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
796 | PyObject * _resultobj; | |
797 | wxNotebook * _arg0; | |
798 | wxImageList * _arg1; | |
799 | PyObject * _argo0 = 0; | |
800 | PyObject * _argo1 = 0; | |
801 | char *_kwnames[] = { "self","imageList", NULL }; | |
802 | ||
803 | self = self; | |
804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetImageList",_kwnames,&_argo0,&_argo1)) | |
805 | return NULL; | |
806 | if (_argo0) { | |
807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetImageList. Expected _wxNotebook_p."); | |
810 | return NULL; | |
811 | } | |
812 | } | |
813 | if (_argo1) { | |
814 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
815 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_SetImageList. Expected _wxImageList_p."); | |
817 | return NULL; | |
818 | } | |
819 | } | |
820 | { | |
821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
822 | wxNotebook_SetImageList(_arg0,_arg1); | |
823 | ||
824 | wxPyEndAllowThreads(__tstate); | |
825 | if (PyErr_Occurred()) return NULL; | |
826 | } Py_INCREF(Py_None); | |
827 | _resultobj = Py_None; | |
828 | return _resultobj; | |
829 | } | |
830 | ||
831 | #define wxNotebook_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) | |
832 | static PyObject *_wrap_wxNotebook_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
833 | PyObject * _resultobj; | |
834 | wxNotebook * _arg0; | |
835 | wxImageList * _arg1; | |
836 | PyObject * _argo0 = 0; | |
837 | PyObject * _argo1 = 0; | |
838 | char *_kwnames[] = { "self","imageList", NULL }; | |
839 | ||
840 | self = self; | |
841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
842 | return NULL; | |
843 | if (_argo0) { | |
844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AssignImageList. Expected _wxNotebook_p."); | |
847 | return NULL; | |
848 | } | |
849 | } | |
850 | if (_argo1) { | |
851 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
852 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_AssignImageList. Expected _wxImageList_p."); | |
854 | return NULL; | |
855 | } | |
856 | } | |
857 | { | |
858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
859 | wxNotebook_AssignImageList(_arg0,_arg1); | |
860 | ||
861 | wxPyEndAllowThreads(__tstate); | |
862 | if (PyErr_Occurred()) return NULL; | |
863 | } Py_INCREF(Py_None); | |
864 | _resultobj = Py_None; | |
865 | return _resultobj; | |
866 | } | |
867 | ||
868 | #define wxNotebook_GetImageList(_swigobj) (_swigobj->GetImageList()) | |
869 | static PyObject *_wrap_wxNotebook_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
870 | PyObject * _resultobj; | |
871 | wxImageList * _result; | |
872 | wxNotebook * _arg0; | |
873 | PyObject * _argo0 = 0; | |
874 | char *_kwnames[] = { "self", NULL }; | |
875 | ||
876 | self = self; | |
877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetImageList",_kwnames,&_argo0)) | |
878 | return NULL; | |
879 | if (_argo0) { | |
880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetImageList. Expected _wxNotebook_p."); | |
883 | return NULL; | |
884 | } | |
885 | } | |
886 | { | |
887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
888 | _result = (wxImageList *)wxNotebook_GetImageList(_arg0); | |
889 | ||
890 | wxPyEndAllowThreads(__tstate); | |
891 | if (PyErr_Occurred()) return NULL; | |
892 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
893 | return _resultobj; | |
894 | } | |
895 | ||
896 | #define wxNotebook_GetPageImage(_swigobj,_swigarg0) (_swigobj->GetPageImage(_swigarg0)) | |
897 | static PyObject *_wrap_wxNotebook_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
898 | PyObject * _resultobj; | |
899 | int _result; | |
900 | wxNotebook * _arg0; | |
901 | int _arg1; | |
902 | PyObject * _argo0 = 0; | |
903 | char *_kwnames[] = { "self","nPage", NULL }; | |
904 | ||
905 | self = self; | |
906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPageImage",_kwnames,&_argo0,&_arg1)) | |
907 | return NULL; | |
908 | if (_argo0) { | |
909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageImage. Expected _wxNotebook_p."); | |
912 | return NULL; | |
913 | } | |
914 | } | |
915 | { | |
916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
917 | _result = (int )wxNotebook_GetPageImage(_arg0,_arg1); | |
918 | ||
919 | wxPyEndAllowThreads(__tstate); | |
920 | if (PyErr_Occurred()) return NULL; | |
921 | } _resultobj = Py_BuildValue("i",_result); | |
922 | return _resultobj; | |
923 | } | |
924 | ||
925 | #define wxNotebook_SetPageImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPageImage(_swigarg0,_swigarg1)) | |
926 | static PyObject *_wrap_wxNotebook_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
927 | PyObject * _resultobj; | |
928 | bool _result; | |
929 | wxNotebook * _arg0; | |
930 | int _arg1; | |
931 | int _arg2; | |
932 | PyObject * _argo0 = 0; | |
933 | char *_kwnames[] = { "self","nPage","nImage", NULL }; | |
934 | ||
935 | self = self; | |
936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxNotebook_SetPageImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
937 | return NULL; | |
938 | if (_argo0) { | |
939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageImage. Expected _wxNotebook_p."); | |
942 | return NULL; | |
943 | } | |
944 | } | |
945 | { | |
946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
947 | _result = (bool )wxNotebook_SetPageImage(_arg0,_arg1,_arg2); | |
948 | ||
949 | wxPyEndAllowThreads(__tstate); | |
950 | if (PyErr_Occurred()) return NULL; | |
951 | } _resultobj = Py_BuildValue("i",_result); | |
952 | return _resultobj; | |
953 | } | |
954 | ||
955 | #define wxNotebook_GetRowCount(_swigobj) (_swigobj->GetRowCount()) | |
956 | static PyObject *_wrap_wxNotebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
957 | PyObject * _resultobj; | |
958 | int _result; | |
959 | wxNotebook * _arg0; | |
960 | PyObject * _argo0 = 0; | |
961 | char *_kwnames[] = { "self", NULL }; | |
962 | ||
963 | self = self; | |
964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetRowCount",_kwnames,&_argo0)) | |
965 | return NULL; | |
966 | if (_argo0) { | |
967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetRowCount. Expected _wxNotebook_p."); | |
970 | return NULL; | |
971 | } | |
972 | } | |
973 | { | |
974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
975 | _result = (int )wxNotebook_GetRowCount(_arg0); | |
976 | ||
977 | wxPyEndAllowThreads(__tstate); | |
978 | if (PyErr_Occurred()) return NULL; | |
979 | } _resultobj = Py_BuildValue("i",_result); | |
980 | return _resultobj; | |
981 | } | |
982 | ||
983 | #define wxNotebook_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
984 | static PyObject *_wrap_wxNotebook_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
985 | PyObject * _resultobj; | |
986 | wxNotebook * _arg0; | |
987 | wxSize * _arg1; | |
988 | PyObject * _argo0 = 0; | |
989 | wxSize temp; | |
990 | PyObject * _obj1 = 0; | |
991 | char *_kwnames[] = { "self","size", NULL }; | |
992 | ||
993 | self = self; | |
994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetPageSize",_kwnames,&_argo0,&_obj1)) | |
995 | return NULL; | |
996 | if (_argo0) { | |
997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageSize. Expected _wxNotebook_p."); | |
1000 | return NULL; | |
1001 | } | |
1002 | } | |
1003 | { | |
1004 | _arg1 = &temp; | |
1005 | if (! wxSize_helper(_obj1, &_arg1)) | |
1006 | return NULL; | |
1007 | } | |
1008 | { | |
1009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1010 | wxNotebook_SetPageSize(_arg0,*_arg1); | |
1011 | ||
1012 | wxPyEndAllowThreads(__tstate); | |
1013 | if (PyErr_Occurred()) return NULL; | |
1014 | } Py_INCREF(Py_None); | |
1015 | _resultobj = Py_None; | |
1016 | return _resultobj; | |
1017 | } | |
1018 | ||
1019 | #define wxNotebook_SetPadding(_swigobj,_swigarg0) (_swigobj->SetPadding(_swigarg0)) | |
1020 | static PyObject *_wrap_wxNotebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1021 | PyObject * _resultobj; | |
1022 | wxNotebook * _arg0; | |
1023 | wxSize * _arg1; | |
1024 | PyObject * _argo0 = 0; | |
1025 | wxSize temp; | |
1026 | PyObject * _obj1 = 0; | |
1027 | char *_kwnames[] = { "self","padding", NULL }; | |
1028 | ||
1029 | self = self; | |
1030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetPadding",_kwnames,&_argo0,&_obj1)) | |
1031 | return NULL; | |
1032 | if (_argo0) { | |
1033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
1035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPadding. Expected _wxNotebook_p."); | |
1036 | return NULL; | |
1037 | } | |
1038 | } | |
1039 | { | |
1040 | _arg1 = &temp; | |
1041 | if (! wxSize_helper(_obj1, &_arg1)) | |
1042 | return NULL; | |
1043 | } | |
1044 | { | |
1045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1046 | wxNotebook_SetPadding(_arg0,*_arg1); | |
1047 | ||
1048 | wxPyEndAllowThreads(__tstate); | |
1049 | if (PyErr_Occurred()) return NULL; | |
1050 | } Py_INCREF(Py_None); | |
1051 | _resultobj = Py_None; | |
1052 | return _resultobj; | |
1053 | } | |
1054 | ||
1055 | #define wxNotebook_DeletePage(_swigobj,_swigarg0) (_swigobj->DeletePage(_swigarg0)) | |
1056 | static PyObject *_wrap_wxNotebook_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1057 | PyObject * _resultobj; | |
1058 | bool _result; | |
1059 | wxNotebook * _arg0; | |
1060 | int _arg1; | |
1061 | PyObject * _argo0 = 0; | |
1062 | char *_kwnames[] = { "self","nPage", NULL }; | |
1063 | ||
1064 | self = self; | |
1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_DeletePage",_kwnames,&_argo0,&_arg1)) | |
1066 | return NULL; | |
1067 | if (_argo0) { | |
1068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
1070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_DeletePage. Expected _wxNotebook_p."); | |
1071 | return NULL; | |
1072 | } | |
1073 | } | |
1074 | { | |
1075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1076 | _result = (bool )wxNotebook_DeletePage(_arg0,_arg1); | |
1077 | ||
1078 | wxPyEndAllowThreads(__tstate); | |
1079 | if (PyErr_Occurred()) return NULL; | |
1080 | } _resultobj = Py_BuildValue("i",_result); | |
1081 | return _resultobj; | |
1082 | } | |
1083 | ||
1084 | #define wxNotebook_RemovePage(_swigobj,_swigarg0) (_swigobj->RemovePage(_swigarg0)) | |
1085 | static PyObject *_wrap_wxNotebook_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1086 | PyObject * _resultobj; | |
1087 | bool _result; | |
1088 | wxNotebook * _arg0; | |
1089 | int _arg1; | |
1090 | PyObject * _argo0 = 0; | |
1091 | char *_kwnames[] = { "self","nPage", NULL }; | |
1092 | ||
1093 | self = self; | |
1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_RemovePage",_kwnames,&_argo0,&_arg1)) | |
1095 | return NULL; | |
1096 | if (_argo0) { | |
1097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
1099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_RemovePage. Expected _wxNotebook_p."); | |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | { | |
1104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1105 | _result = (bool )wxNotebook_RemovePage(_arg0,_arg1); | |
1106 | ||
1107 | wxPyEndAllowThreads(__tstate); | |
1108 | if (PyErr_Occurred()) return NULL; | |
1109 | } _resultobj = Py_BuildValue("i",_result); | |
1110 | return _resultobj; | |
1111 | } | |
1112 | ||
1113 | #define wxNotebook_DeleteAllPages(_swigobj) (_swigobj->DeleteAllPages()) | |
1114 | static PyObject *_wrap_wxNotebook_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1115 | PyObject * _resultobj; | |
1116 | bool _result; | |
1117 | wxNotebook * _arg0; | |
1118 | PyObject * _argo0 = 0; | |
1119 | char *_kwnames[] = { "self", NULL }; | |
1120 | ||
1121 | self = self; | |
1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_DeleteAllPages",_kwnames,&_argo0)) | |
1123 | return NULL; | |
1124 | if (_argo0) { | |
1125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
1127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_DeleteAllPages. Expected _wxNotebook_p."); | |
1128 | return NULL; | |
1129 | } | |
1130 | } | |
1131 | { | |
1132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1133 | _result = (bool )wxNotebook_DeleteAllPages(_arg0); | |
1134 | ||
1135 | wxPyEndAllowThreads(__tstate); | |
1136 | if (PyErr_Occurred()) return NULL; | |
1137 | } _resultobj = Py_BuildValue("i",_result); | |
1138 | return _resultobj; | |
1139 | } | |
1140 | ||
1141 | #define wxNotebook_AddPage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddPage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1142 | static PyObject *_wrap_wxNotebook_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1143 | PyObject * _resultobj; | |
1144 | bool _result; | |
1145 | wxNotebook * _arg0; | |
1146 | wxWindow * _arg1; | |
1147 | wxString * _arg2; | |
1148 | int _arg3 = (int ) FALSE; | |
1149 | int _arg4 = (int ) -1; | |
1150 | PyObject * _argo0 = 0; | |
1151 | PyObject * _argo1 = 0; | |
1152 | PyObject * _obj2 = 0; | |
1153 | char *_kwnames[] = { "self","pPage","strText","bSelect","imageId", NULL }; | |
1154 | ||
1155 | self = self; | |
1156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxNotebook_AddPage",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4)) | |
1157 | return NULL; | |
1158 | if (_argo0) { | |
1159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
1161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AddPage. Expected _wxNotebook_p."); | |
1162 | return NULL; | |
1163 | } | |
1164 | } | |
1165 | if (_argo1) { | |
1166 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1167 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_AddPage. Expected _wxWindow_p."); | |
1169 | return NULL; | |
1170 | } | |
1171 | } | |
1172 | { | |
1173 | _arg2 = wxString_in_helper(_obj2); | |
1174 | if (_arg2 == NULL) | |
1175 | return NULL; | |
1176 | } | |
1177 | { | |
1178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1179 | _result = (bool )wxNotebook_AddPage(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
1180 | ||
1181 | wxPyEndAllowThreads(__tstate); | |
1182 | if (PyErr_Occurred()) return NULL; | |
1183 | } _resultobj = Py_BuildValue("i",_result); | |
1184 | { | |
1185 | if (_obj2) | |
1186 | delete _arg2; | |
1187 | } | |
1188 | return _resultobj; | |
1189 | } | |
1190 | ||
1191 | #define wxNotebook_InsertPage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->InsertPage(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1192 | static PyObject *_wrap_wxNotebook_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1193 | PyObject * _resultobj; | |
1194 | bool _result; | |
1195 | wxNotebook * _arg0; | |
1196 | int _arg1; | |
1197 | wxWindow * _arg2; | |
1198 | wxString * _arg3; | |
1199 | bool _arg4 = (bool ) FALSE; | |
1200 | int _arg5 = (int ) -1; | |
1201 | PyObject * _argo0 = 0; | |
1202 | PyObject * _argo2 = 0; | |
1203 | PyObject * _obj3 = 0; | |
1204 | int tempbool4 = (int) FALSE; | |
1205 | char *_kwnames[] = { "self","nPage","pPage","strText","bSelect","imageId", NULL }; | |
1206 | ||
1207 | self = self; | |
1208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|ii:wxNotebook_InsertPage",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&tempbool4,&_arg5)) | |
1209 | return NULL; | |
1210 | if (_argo0) { | |
1211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
1213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_InsertPage. Expected _wxNotebook_p."); | |
1214 | return NULL; | |
1215 | } | |
1216 | } | |
1217 | if (_argo2) { | |
1218 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1219 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
1220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxNotebook_InsertPage. Expected _wxWindow_p."); | |
1221 | return NULL; | |
1222 | } | |
1223 | } | |
1224 | { | |
1225 | _arg3 = wxString_in_helper(_obj3); | |
1226 | if (_arg3 == NULL) | |
1227 | return NULL; | |
1228 | } | |
1229 | _arg4 = (bool ) tempbool4; | |
1230 | { | |
1231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1232 | _result = (bool )wxNotebook_InsertPage(_arg0,_arg1,_arg2,*_arg3,_arg4,_arg5); | |
1233 | ||
1234 | wxPyEndAllowThreads(__tstate); | |
1235 | if (PyErr_Occurred()) return NULL; | |
1236 | } _resultobj = Py_BuildValue("i",_result); | |
1237 | { | |
1238 | if (_obj3) | |
1239 | delete _arg3; | |
1240 | } | |
1241 | return _resultobj; | |
1242 | } | |
1243 | ||
1244 | #define wxNotebook_GetPage(_swigobj,_swigarg0) (_swigobj->GetPage(_swigarg0)) | |
1245 | static PyObject *_wrap_wxNotebook_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1246 | PyObject * _resultobj; | |
1247 | wxWindow * _result; | |
1248 | wxNotebook * _arg0; | |
1249 | int _arg1; | |
1250 | PyObject * _argo0 = 0; | |
1251 | char *_kwnames[] = { "self","nPage", NULL }; | |
1252 | ||
1253 | self = self; | |
1254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPage",_kwnames,&_argo0,&_arg1)) | |
1255 | return NULL; | |
1256 | if (_argo0) { | |
1257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
1259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPage. Expected _wxNotebook_p."); | |
1260 | return NULL; | |
1261 | } | |
1262 | } | |
1263 | { | |
1264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1265 | _result = (wxWindow *)wxNotebook_GetPage(_arg0,_arg1); | |
1266 | ||
1267 | wxPyEndAllowThreads(__tstate); | |
1268 | if (PyErr_Occurred()) return NULL; | |
1269 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1270 | return _resultobj; | |
1271 | } | |
1272 | ||
1273 | static void wxNotebook_ResizeChildren(wxNotebook *self) { | |
1274 | wxSizeEvent evt(self->GetClientSize()); | |
1275 | self->GetEventHandler()->ProcessEvent(evt); | |
1276 | } | |
1277 | static PyObject *_wrap_wxNotebook_ResizeChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1278 | PyObject * _resultobj; | |
1279 | wxNotebook * _arg0; | |
1280 | PyObject * _argo0 = 0; | |
1281 | char *_kwnames[] = { "self", NULL }; | |
1282 | ||
1283 | self = self; | |
1284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_ResizeChildren",_kwnames,&_argo0)) | |
1285 | return NULL; | |
1286 | if (_argo0) { | |
1287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
1289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_ResizeChildren. Expected _wxNotebook_p."); | |
1290 | return NULL; | |
1291 | } | |
1292 | } | |
1293 | { | |
1294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1295 | wxNotebook_ResizeChildren(_arg0); | |
1296 | ||
1297 | wxPyEndAllowThreads(__tstate); | |
1298 | if (PyErr_Occurred()) return NULL; | |
1299 | } Py_INCREF(Py_None); | |
1300 | _resultobj = Py_None; | |
1301 | return _resultobj; | |
1302 | } | |
1303 | ||
1304 | static void *SwigwxSplitterEventTowxNotifyEvent(void *ptr) { | |
1305 | wxSplitterEvent *src; | |
1306 | wxNotifyEvent *dest; | |
1307 | src = (wxSplitterEvent *) ptr; | |
1308 | dest = (wxNotifyEvent *) src; | |
1309 | return (void *) dest; | |
1310 | } | |
1311 | ||
1312 | static void *SwigwxSplitterEventTowxCommandEvent(void *ptr) { | |
1313 | wxSplitterEvent *src; | |
1314 | wxCommandEvent *dest; | |
1315 | src = (wxSplitterEvent *) ptr; | |
1316 | dest = (wxCommandEvent *) src; | |
1317 | return (void *) dest; | |
1318 | } | |
1319 | ||
1320 | static void *SwigwxSplitterEventTowxEvent(void *ptr) { | |
1321 | wxSplitterEvent *src; | |
1322 | wxEvent *dest; | |
1323 | src = (wxSplitterEvent *) ptr; | |
1324 | dest = (wxEvent *) src; | |
1325 | return (void *) dest; | |
1326 | } | |
1327 | ||
1328 | static void *SwigwxSplitterEventTowxObject(void *ptr) { | |
1329 | wxSplitterEvent *src; | |
1330 | wxObject *dest; | |
1331 | src = (wxSplitterEvent *) ptr; | |
1332 | dest = (wxObject *) src; | |
1333 | return (void *) dest; | |
1334 | } | |
1335 | ||
1336 | #define new_wxSplitterEvent(_swigarg0,_swigarg1) (new wxSplitterEvent(_swigarg0,_swigarg1)) | |
1337 | static PyObject *_wrap_new_wxSplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1338 | PyObject * _resultobj; | |
1339 | wxSplitterEvent * _result; | |
1340 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
1341 | wxSplitterWindow * _arg1 = (wxSplitterWindow *) NULL; | |
1342 | PyObject * _argo1 = 0; | |
1343 | char *_kwnames[] = { "type","splitter", NULL }; | |
1344 | char _ptemp[128]; | |
1345 | ||
1346 | self = self; | |
1347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iO:new_wxSplitterEvent",_kwnames,&_arg0,&_argo1)) | |
1348 | return NULL; | |
1349 | if (_argo1) { | |
1350 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1351 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSplitterWindow_p")) { | |
1352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxSplitterEvent. Expected _wxSplitterWindow_p."); | |
1353 | return NULL; | |
1354 | } | |
1355 | } | |
1356 | { | |
1357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1358 | _result = (wxSplitterEvent *)new_wxSplitterEvent(_arg0,_arg1); | |
1359 | ||
1360 | wxPyEndAllowThreads(__tstate); | |
1361 | if (PyErr_Occurred()) return NULL; | |
1362 | } if (_result) { | |
1363 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterEvent_p"); | |
1364 | _resultobj = Py_BuildValue("s",_ptemp); | |
1365 | } else { | |
1366 | Py_INCREF(Py_None); | |
1367 | _resultobj = Py_None; | |
1368 | } | |
1369 | return _resultobj; | |
1370 | } | |
1371 | ||
1372 | #define wxSplitterEvent_GetSashPosition(_swigobj) (_swigobj->GetSashPosition()) | |
1373 | static PyObject *_wrap_wxSplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1374 | PyObject * _resultobj; | |
1375 | int _result; | |
1376 | wxSplitterEvent * _arg0; | |
1377 | PyObject * _argo0 = 0; | |
1378 | char *_kwnames[] = { "self", NULL }; | |
1379 | ||
1380 | self = self; | |
1381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetSashPosition",_kwnames,&_argo0)) | |
1382 | return NULL; | |
1383 | if (_argo0) { | |
1384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
1386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetSashPosition. Expected _wxSplitterEvent_p."); | |
1387 | return NULL; | |
1388 | } | |
1389 | } | |
1390 | { | |
1391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1392 | _result = (int )wxSplitterEvent_GetSashPosition(_arg0); | |
1393 | ||
1394 | wxPyEndAllowThreads(__tstate); | |
1395 | if (PyErr_Occurred()) return NULL; | |
1396 | } _resultobj = Py_BuildValue("i",_result); | |
1397 | return _resultobj; | |
1398 | } | |
1399 | ||
1400 | #define wxSplitterEvent_GetX(_swigobj) (_swigobj->GetX()) | |
1401 | static PyObject *_wrap_wxSplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1402 | PyObject * _resultobj; | |
1403 | int _result; | |
1404 | wxSplitterEvent * _arg0; | |
1405 | PyObject * _argo0 = 0; | |
1406 | char *_kwnames[] = { "self", NULL }; | |
1407 | ||
1408 | self = self; | |
1409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetX",_kwnames,&_argo0)) | |
1410 | return NULL; | |
1411 | if (_argo0) { | |
1412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
1414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetX. Expected _wxSplitterEvent_p."); | |
1415 | return NULL; | |
1416 | } | |
1417 | } | |
1418 | { | |
1419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1420 | _result = (int )wxSplitterEvent_GetX(_arg0); | |
1421 | ||
1422 | wxPyEndAllowThreads(__tstate); | |
1423 | if (PyErr_Occurred()) return NULL; | |
1424 | } _resultobj = Py_BuildValue("i",_result); | |
1425 | return _resultobj; | |
1426 | } | |
1427 | ||
1428 | #define wxSplitterEvent_GetY(_swigobj) (_swigobj->GetY()) | |
1429 | static PyObject *_wrap_wxSplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1430 | PyObject * _resultobj; | |
1431 | int _result; | |
1432 | wxSplitterEvent * _arg0; | |
1433 | PyObject * _argo0 = 0; | |
1434 | char *_kwnames[] = { "self", NULL }; | |
1435 | ||
1436 | self = self; | |
1437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetY",_kwnames,&_argo0)) | |
1438 | return NULL; | |
1439 | if (_argo0) { | |
1440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
1442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetY. Expected _wxSplitterEvent_p."); | |
1443 | return NULL; | |
1444 | } | |
1445 | } | |
1446 | { | |
1447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1448 | _result = (int )wxSplitterEvent_GetY(_arg0); | |
1449 | ||
1450 | wxPyEndAllowThreads(__tstate); | |
1451 | if (PyErr_Occurred()) return NULL; | |
1452 | } _resultobj = Py_BuildValue("i",_result); | |
1453 | return _resultobj; | |
1454 | } | |
1455 | ||
1456 | #define wxSplitterEvent_GetWindowBeingRemoved(_swigobj) (_swigobj->GetWindowBeingRemoved()) | |
1457 | static PyObject *_wrap_wxSplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1458 | PyObject * _resultobj; | |
1459 | wxWindow * _result; | |
1460 | wxSplitterEvent * _arg0; | |
1461 | PyObject * _argo0 = 0; | |
1462 | char *_kwnames[] = { "self", NULL }; | |
1463 | ||
1464 | self = self; | |
1465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetWindowBeingRemoved",_kwnames,&_argo0)) | |
1466 | return NULL; | |
1467 | if (_argo0) { | |
1468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
1470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetWindowBeingRemoved. Expected _wxSplitterEvent_p."); | |
1471 | return NULL; | |
1472 | } | |
1473 | } | |
1474 | { | |
1475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1476 | _result = (wxWindow *)wxSplitterEvent_GetWindowBeingRemoved(_arg0); | |
1477 | ||
1478 | wxPyEndAllowThreads(__tstate); | |
1479 | if (PyErr_Occurred()) return NULL; | |
1480 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1481 | return _resultobj; | |
1482 | } | |
1483 | ||
1484 | #define wxSplitterEvent_SetSashPosition(_swigobj,_swigarg0) (_swigobj->SetSashPosition(_swigarg0)) | |
1485 | static PyObject *_wrap_wxSplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1486 | PyObject * _resultobj; | |
1487 | wxSplitterEvent * _arg0; | |
1488 | int _arg1; | |
1489 | PyObject * _argo0 = 0; | |
1490 | char *_kwnames[] = { "self","pos", NULL }; | |
1491 | ||
1492 | self = self; | |
1493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterEvent_SetSashPosition",_kwnames,&_argo0,&_arg1)) | |
1494 | return NULL; | |
1495 | if (_argo0) { | |
1496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
1498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_SetSashPosition. Expected _wxSplitterEvent_p."); | |
1499 | return NULL; | |
1500 | } | |
1501 | } | |
1502 | { | |
1503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1504 | wxSplitterEvent_SetSashPosition(_arg0,_arg1); | |
1505 | ||
1506 | wxPyEndAllowThreads(__tstate); | |
1507 | if (PyErr_Occurred()) return NULL; | |
1508 | } Py_INCREF(Py_None); | |
1509 | _resultobj = Py_None; | |
1510 | return _resultobj; | |
1511 | } | |
1512 | ||
1513 | static void *SwigwxSplitterWindowTowxWindow(void *ptr) { | |
1514 | wxSplitterWindow *src; | |
1515 | wxWindow *dest; | |
1516 | src = (wxSplitterWindow *) ptr; | |
1517 | dest = (wxWindow *) src; | |
1518 | return (void *) dest; | |
1519 | } | |
1520 | ||
1521 | static void *SwigwxSplitterWindowTowxEvtHandler(void *ptr) { | |
1522 | wxSplitterWindow *src; | |
1523 | wxEvtHandler *dest; | |
1524 | src = (wxSplitterWindow *) ptr; | |
1525 | dest = (wxEvtHandler *) src; | |
1526 | return (void *) dest; | |
1527 | } | |
1528 | ||
1529 | static void *SwigwxSplitterWindowTowxObject(void *ptr) { | |
1530 | wxSplitterWindow *src; | |
1531 | wxObject *dest; | |
1532 | src = (wxSplitterWindow *) ptr; | |
1533 | dest = (wxObject *) src; | |
1534 | return (void *) dest; | |
1535 | } | |
1536 | ||
1537 | #define new_wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1538 | static PyObject *_wrap_new_wxSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1539 | PyObject * _resultobj; | |
1540 | wxSplitterWindow * _result; | |
1541 | wxWindow * _arg0; | |
1542 | wxWindowID _arg1; | |
1543 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1544 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1545 | long _arg4 = (long ) wxSP_3D|wxCLIP_CHILDREN; | |
1546 | wxString * _arg5 = (wxString *) &wxPySplitterNameStr; | |
1547 | PyObject * _argo0 = 0; | |
1548 | wxPoint temp; | |
1549 | PyObject * _obj2 = 0; | |
1550 | wxSize temp0; | |
1551 | PyObject * _obj3 = 0; | |
1552 | PyObject * _obj5 = 0; | |
1553 | char *_kwnames[] = { "parent","id","point","size","style","name", NULL }; | |
1554 | char _ptemp[128]; | |
1555 | ||
1556 | self = self; | |
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxSplitterWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
1558 | return NULL; | |
1559 | if (_argo0) { | |
1560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSplitterWindow. Expected _wxWindow_p."); | |
1563 | return NULL; | |
1564 | } | |
1565 | } | |
1566 | if (_obj2) | |
1567 | { | |
1568 | _arg2 = &temp; | |
1569 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1570 | return NULL; | |
1571 | } | |
1572 | if (_obj3) | |
1573 | { | |
1574 | _arg3 = &temp0; | |
1575 | if (! wxSize_helper(_obj3, &_arg3)) | |
1576 | return NULL; | |
1577 | } | |
1578 | if (_obj5) | |
1579 | { | |
1580 | _arg5 = wxString_in_helper(_obj5); | |
1581 | if (_arg5 == NULL) | |
1582 | return NULL; | |
1583 | } | |
1584 | { | |
1585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1586 | _result = (wxSplitterWindow *)new_wxSplitterWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
1587 | ||
1588 | wxPyEndAllowThreads(__tstate); | |
1589 | if (PyErr_Occurred()) return NULL; | |
1590 | } if (_result) { | |
1591 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterWindow_p"); | |
1592 | _resultobj = Py_BuildValue("s",_ptemp); | |
1593 | } else { | |
1594 | Py_INCREF(Py_None); | |
1595 | _resultobj = Py_None; | |
1596 | } | |
1597 | { | |
1598 | if (_obj5) | |
1599 | delete _arg5; | |
1600 | } | |
1601 | return _resultobj; | |
1602 | } | |
1603 | ||
1604 | #define new_wxPreSplitterWindow() (new wxSplitterWindow()) | |
1605 | static PyObject *_wrap_new_wxPreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1606 | PyObject * _resultobj; | |
1607 | wxSplitterWindow * _result; | |
1608 | char *_kwnames[] = { NULL }; | |
1609 | char _ptemp[128]; | |
1610 | ||
1611 | self = self; | |
1612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSplitterWindow",_kwnames)) | |
1613 | return NULL; | |
1614 | { | |
1615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1616 | _result = (wxSplitterWindow *)new_wxPreSplitterWindow(); | |
1617 | ||
1618 | wxPyEndAllowThreads(__tstate); | |
1619 | if (PyErr_Occurred()) return NULL; | |
1620 | } if (_result) { | |
1621 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterWindow_p"); | |
1622 | _resultobj = Py_BuildValue("s",_ptemp); | |
1623 | } else { | |
1624 | Py_INCREF(Py_None); | |
1625 | _resultobj = Py_None; | |
1626 | } | |
1627 | return _resultobj; | |
1628 | } | |
1629 | ||
1630 | #define wxSplitterWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1631 | static PyObject *_wrap_wxSplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1632 | PyObject * _resultobj; | |
1633 | bool _result; | |
1634 | wxSplitterWindow * _arg0; | |
1635 | wxWindow * _arg1; | |
1636 | wxWindowID _arg2; | |
1637 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1638 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1639 | long _arg5 = (long ) wxSP_3D|wxCLIP_CHILDREN; | |
1640 | wxString * _arg6 = (wxString *) &wxPySplitterNameStr; | |
1641 | PyObject * _argo0 = 0; | |
1642 | PyObject * _argo1 = 0; | |
1643 | wxPoint temp; | |
1644 | PyObject * _obj3 = 0; | |
1645 | wxSize temp0; | |
1646 | PyObject * _obj4 = 0; | |
1647 | PyObject * _obj6 = 0; | |
1648 | char *_kwnames[] = { "self","parent","id","point","size","style","name", NULL }; | |
1649 | ||
1650 | self = self; | |
1651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxSplitterWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
1652 | return NULL; | |
1653 | if (_argo0) { | |
1654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Create. Expected _wxSplitterWindow_p."); | |
1657 | return NULL; | |
1658 | } | |
1659 | } | |
1660 | if (_argo1) { | |
1661 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1662 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Create. Expected _wxWindow_p."); | |
1664 | return NULL; | |
1665 | } | |
1666 | } | |
1667 | if (_obj3) | |
1668 | { | |
1669 | _arg3 = &temp; | |
1670 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1671 | return NULL; | |
1672 | } | |
1673 | if (_obj4) | |
1674 | { | |
1675 | _arg4 = &temp0; | |
1676 | if (! wxSize_helper(_obj4, &_arg4)) | |
1677 | return NULL; | |
1678 | } | |
1679 | if (_obj6) | |
1680 | { | |
1681 | _arg6 = wxString_in_helper(_obj6); | |
1682 | if (_arg6 == NULL) | |
1683 | return NULL; | |
1684 | } | |
1685 | { | |
1686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1687 | _result = (bool )wxSplitterWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
1688 | ||
1689 | wxPyEndAllowThreads(__tstate); | |
1690 | if (PyErr_Occurred()) return NULL; | |
1691 | } _resultobj = Py_BuildValue("i",_result); | |
1692 | { | |
1693 | if (_obj6) | |
1694 | delete _arg6; | |
1695 | } | |
1696 | return _resultobj; | |
1697 | } | |
1698 | ||
1699 | #define wxSplitterWindow_GetWindow1(_swigobj) (_swigobj->GetWindow1()) | |
1700 | static PyObject *_wrap_wxSplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject * _resultobj; | |
1702 | wxWindow * _result; | |
1703 | wxSplitterWindow * _arg0; | |
1704 | PyObject * _argo0 = 0; | |
1705 | char *_kwnames[] = { "self", NULL }; | |
1706 | ||
1707 | self = self; | |
1708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow1",_kwnames,&_argo0)) | |
1709 | return NULL; | |
1710 | if (_argo0) { | |
1711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetWindow1. Expected _wxSplitterWindow_p."); | |
1714 | return NULL; | |
1715 | } | |
1716 | } | |
1717 | { | |
1718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1719 | _result = (wxWindow *)wxSplitterWindow_GetWindow1(_arg0); | |
1720 | ||
1721 | wxPyEndAllowThreads(__tstate); | |
1722 | if (PyErr_Occurred()) return NULL; | |
1723 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1724 | return _resultobj; | |
1725 | } | |
1726 | ||
1727 | #define wxSplitterWindow_GetWindow2(_swigobj) (_swigobj->GetWindow2()) | |
1728 | static PyObject *_wrap_wxSplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1729 | PyObject * _resultobj; | |
1730 | wxWindow * _result; | |
1731 | wxSplitterWindow * _arg0; | |
1732 | PyObject * _argo0 = 0; | |
1733 | char *_kwnames[] = { "self", NULL }; | |
1734 | ||
1735 | self = self; | |
1736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow2",_kwnames,&_argo0)) | |
1737 | return NULL; | |
1738 | if (_argo0) { | |
1739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetWindow2. Expected _wxSplitterWindow_p."); | |
1742 | return NULL; | |
1743 | } | |
1744 | } | |
1745 | { | |
1746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1747 | _result = (wxWindow *)wxSplitterWindow_GetWindow2(_arg0); | |
1748 | ||
1749 | wxPyEndAllowThreads(__tstate); | |
1750 | if (PyErr_Occurred()) return NULL; | |
1751 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1752 | return _resultobj; | |
1753 | } | |
1754 | ||
1755 | #define wxSplitterWindow_SetSplitMode(_swigobj,_swigarg0) (_swigobj->SetSplitMode(_swigarg0)) | |
1756 | static PyObject *_wrap_wxSplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1757 | PyObject * _resultobj; | |
1758 | wxSplitterWindow * _arg0; | |
1759 | int _arg1; | |
1760 | PyObject * _argo0 = 0; | |
1761 | char *_kwnames[] = { "self","mode", NULL }; | |
1762 | ||
1763 | self = self; | |
1764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetSplitMode",_kwnames,&_argo0,&_arg1)) | |
1765 | return NULL; | |
1766 | if (_argo0) { | |
1767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSplitMode. Expected _wxSplitterWindow_p."); | |
1770 | return NULL; | |
1771 | } | |
1772 | } | |
1773 | { | |
1774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1775 | wxSplitterWindow_SetSplitMode(_arg0,_arg1); | |
1776 | ||
1777 | wxPyEndAllowThreads(__tstate); | |
1778 | if (PyErr_Occurred()) return NULL; | |
1779 | } Py_INCREF(Py_None); | |
1780 | _resultobj = Py_None; | |
1781 | return _resultobj; | |
1782 | } | |
1783 | ||
1784 | #define wxSplitterWindow_GetSplitMode(_swigobj) (_swigobj->GetSplitMode()) | |
1785 | static PyObject *_wrap_wxSplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1786 | PyObject * _resultobj; | |
1787 | int _result; | |
1788 | wxSplitterWindow * _arg0; | |
1789 | PyObject * _argo0 = 0; | |
1790 | char *_kwnames[] = { "self", NULL }; | |
1791 | ||
1792 | self = self; | |
1793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSplitMode",_kwnames,&_argo0)) | |
1794 | return NULL; | |
1795 | if (_argo0) { | |
1796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSplitMode. Expected _wxSplitterWindow_p."); | |
1799 | return NULL; | |
1800 | } | |
1801 | } | |
1802 | { | |
1803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1804 | _result = (int )wxSplitterWindow_GetSplitMode(_arg0); | |
1805 | ||
1806 | wxPyEndAllowThreads(__tstate); | |
1807 | if (PyErr_Occurred()) return NULL; | |
1808 | } _resultobj = Py_BuildValue("i",_result); | |
1809 | return _resultobj; | |
1810 | } | |
1811 | ||
1812 | #define wxSplitterWindow_Initialize(_swigobj,_swigarg0) (_swigobj->Initialize(_swigarg0)) | |
1813 | static PyObject *_wrap_wxSplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1814 | PyObject * _resultobj; | |
1815 | wxSplitterWindow * _arg0; | |
1816 | wxWindow * _arg1; | |
1817 | PyObject * _argo0 = 0; | |
1818 | PyObject * _argo1 = 0; | |
1819 | char *_kwnames[] = { "self","window", NULL }; | |
1820 | ||
1821 | self = self; | |
1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSplitterWindow_Initialize",_kwnames,&_argo0,&_argo1)) | |
1823 | return NULL; | |
1824 | if (_argo0) { | |
1825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Initialize. Expected _wxSplitterWindow_p."); | |
1828 | return NULL; | |
1829 | } | |
1830 | } | |
1831 | if (_argo1) { | |
1832 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1833 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Initialize. Expected _wxWindow_p."); | |
1835 | return NULL; | |
1836 | } | |
1837 | } | |
1838 | { | |
1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1840 | wxSplitterWindow_Initialize(_arg0,_arg1); | |
1841 | ||
1842 | wxPyEndAllowThreads(__tstate); | |
1843 | if (PyErr_Occurred()) return NULL; | |
1844 | } Py_INCREF(Py_None); | |
1845 | _resultobj = Py_None; | |
1846 | return _resultobj; | |
1847 | } | |
1848 | ||
1849 | #define wxSplitterWindow_SplitVertically(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SplitVertically(_swigarg0,_swigarg1,_swigarg2)) | |
1850 | static PyObject *_wrap_wxSplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1851 | PyObject * _resultobj; | |
1852 | bool _result; | |
1853 | wxSplitterWindow * _arg0; | |
1854 | wxWindow * _arg1; | |
1855 | wxWindow * _arg2; | |
1856 | int _arg3 = (int ) 0; | |
1857 | PyObject * _argo0 = 0; | |
1858 | PyObject * _argo1 = 0; | |
1859 | PyObject * _argo2 = 0; | |
1860 | char *_kwnames[] = { "self","window1","window2","sashPosition", NULL }; | |
1861 | ||
1862 | self = self; | |
1863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxSplitterWindow_SplitVertically",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3)) | |
1864 | return NULL; | |
1865 | if (_argo0) { | |
1866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SplitVertically. Expected _wxSplitterWindow_p."); | |
1869 | return NULL; | |
1870 | } | |
1871 | } | |
1872 | if (_argo1) { | |
1873 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1874 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_SplitVertically. Expected _wxWindow_p."); | |
1876 | return NULL; | |
1877 | } | |
1878 | } | |
1879 | if (_argo2) { | |
1880 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1881 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
1882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_SplitVertically. Expected _wxWindow_p."); | |
1883 | return NULL; | |
1884 | } | |
1885 | } | |
1886 | { | |
1887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1888 | _result = (bool )wxSplitterWindow_SplitVertically(_arg0,_arg1,_arg2,_arg3); | |
1889 | ||
1890 | wxPyEndAllowThreads(__tstate); | |
1891 | if (PyErr_Occurred()) return NULL; | |
1892 | } _resultobj = Py_BuildValue("i",_result); | |
1893 | return _resultobj; | |
1894 | } | |
1895 | ||
1896 | #define wxSplitterWindow_SplitHorizontally(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SplitHorizontally(_swigarg0,_swigarg1,_swigarg2)) | |
1897 | static PyObject *_wrap_wxSplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1898 | PyObject * _resultobj; | |
1899 | bool _result; | |
1900 | wxSplitterWindow * _arg0; | |
1901 | wxWindow * _arg1; | |
1902 | wxWindow * _arg2; | |
1903 | int _arg3 = (int ) 0; | |
1904 | PyObject * _argo0 = 0; | |
1905 | PyObject * _argo1 = 0; | |
1906 | PyObject * _argo2 = 0; | |
1907 | char *_kwnames[] = { "self","window1","window2","sashPosition", NULL }; | |
1908 | ||
1909 | self = self; | |
1910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxSplitterWindow_SplitHorizontally",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3)) | |
1911 | return NULL; | |
1912 | if (_argo0) { | |
1913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SplitHorizontally. Expected _wxSplitterWindow_p."); | |
1916 | return NULL; | |
1917 | } | |
1918 | } | |
1919 | if (_argo1) { | |
1920 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1921 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_SplitHorizontally. Expected _wxWindow_p."); | |
1923 | return NULL; | |
1924 | } | |
1925 | } | |
1926 | if (_argo2) { | |
1927 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1928 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
1929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_SplitHorizontally. Expected _wxWindow_p."); | |
1930 | return NULL; | |
1931 | } | |
1932 | } | |
1933 | { | |
1934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1935 | _result = (bool )wxSplitterWindow_SplitHorizontally(_arg0,_arg1,_arg2,_arg3); | |
1936 | ||
1937 | wxPyEndAllowThreads(__tstate); | |
1938 | if (PyErr_Occurred()) return NULL; | |
1939 | } _resultobj = Py_BuildValue("i",_result); | |
1940 | return _resultobj; | |
1941 | } | |
1942 | ||
1943 | #define wxSplitterWindow_Unsplit(_swigobj,_swigarg0) (_swigobj->Unsplit(_swigarg0)) | |
1944 | static PyObject *_wrap_wxSplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1945 | PyObject * _resultobj; | |
1946 | bool _result; | |
1947 | wxSplitterWindow * _arg0; | |
1948 | wxWindow * _arg1 = (wxWindow *) NULL; | |
1949 | PyObject * _argo0 = 0; | |
1950 | PyObject * _argo1 = 0; | |
1951 | char *_kwnames[] = { "self","toRemove", NULL }; | |
1952 | ||
1953 | self = self; | |
1954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxSplitterWindow_Unsplit",_kwnames,&_argo0,&_argo1)) | |
1955 | return NULL; | |
1956 | if (_argo0) { | |
1957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Unsplit. Expected _wxSplitterWindow_p."); | |
1960 | return NULL; | |
1961 | } | |
1962 | } | |
1963 | if (_argo1) { | |
1964 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1965 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Unsplit. Expected _wxWindow_p."); | |
1967 | return NULL; | |
1968 | } | |
1969 | } | |
1970 | { | |
1971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1972 | _result = (bool )wxSplitterWindow_Unsplit(_arg0,_arg1); | |
1973 | ||
1974 | wxPyEndAllowThreads(__tstate); | |
1975 | if (PyErr_Occurred()) return NULL; | |
1976 | } _resultobj = Py_BuildValue("i",_result); | |
1977 | return _resultobj; | |
1978 | } | |
1979 | ||
1980 | #define wxSplitterWindow_ReplaceWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReplaceWindow(_swigarg0,_swigarg1)) | |
1981 | static PyObject *_wrap_wxSplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1982 | PyObject * _resultobj; | |
1983 | bool _result; | |
1984 | wxSplitterWindow * _arg0; | |
1985 | wxWindow * _arg1; | |
1986 | wxWindow * _arg2; | |
1987 | PyObject * _argo0 = 0; | |
1988 | PyObject * _argo1 = 0; | |
1989 | PyObject * _argo2 = 0; | |
1990 | char *_kwnames[] = { "self","winOld","winNew", NULL }; | |
1991 | ||
1992 | self = self; | |
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxSplitterWindow_ReplaceWindow",_kwnames,&_argo0,&_argo1,&_argo2)) | |
1994 | return NULL; | |
1995 | if (_argo0) { | |
1996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_ReplaceWindow. Expected _wxSplitterWindow_p."); | |
1999 | return NULL; | |
2000 | } | |
2001 | } | |
2002 | if (_argo1) { | |
2003 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2004 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_ReplaceWindow. Expected _wxWindow_p."); | |
2006 | return NULL; | |
2007 | } | |
2008 | } | |
2009 | if (_argo2) { | |
2010 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2011 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
2012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_ReplaceWindow. Expected _wxWindow_p."); | |
2013 | return NULL; | |
2014 | } | |
2015 | } | |
2016 | { | |
2017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2018 | _result = (bool )wxSplitterWindow_ReplaceWindow(_arg0,_arg1,_arg2); | |
2019 | ||
2020 | wxPyEndAllowThreads(__tstate); | |
2021 | if (PyErr_Occurred()) return NULL; | |
2022 | } _resultobj = Py_BuildValue("i",_result); | |
2023 | return _resultobj; | |
2024 | } | |
2025 | ||
2026 | #define wxSplitterWindow_IsSplit(_swigobj) (_swigobj->IsSplit()) | |
2027 | static PyObject *_wrap_wxSplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2028 | PyObject * _resultobj; | |
2029 | bool _result; | |
2030 | wxSplitterWindow * _arg0; | |
2031 | PyObject * _argo0 = 0; | |
2032 | char *_kwnames[] = { "self", NULL }; | |
2033 | ||
2034 | self = self; | |
2035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_IsSplit",_kwnames,&_argo0)) | |
2036 | return NULL; | |
2037 | if (_argo0) { | |
2038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_IsSplit. Expected _wxSplitterWindow_p."); | |
2041 | return NULL; | |
2042 | } | |
2043 | } | |
2044 | { | |
2045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2046 | _result = (bool )wxSplitterWindow_IsSplit(_arg0); | |
2047 | ||
2048 | wxPyEndAllowThreads(__tstate); | |
2049 | if (PyErr_Occurred()) return NULL; | |
2050 | } _resultobj = Py_BuildValue("i",_result); | |
2051 | return _resultobj; | |
2052 | } | |
2053 | ||
2054 | #define wxSplitterWindow_SetSashSize(_swigobj,_swigarg0) (_swigobj->SetSashSize(_swigarg0)) | |
2055 | static PyObject *_wrap_wxSplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2056 | PyObject * _resultobj; | |
2057 | wxSplitterWindow * _arg0; | |
2058 | int _arg1; | |
2059 | PyObject * _argo0 = 0; | |
2060 | char *_kwnames[] = { "self","width", NULL }; | |
2061 | ||
2062 | self = self; | |
2063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetSashSize",_kwnames,&_argo0,&_arg1)) | |
2064 | return NULL; | |
2065 | if (_argo0) { | |
2066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSashSize. Expected _wxSplitterWindow_p."); | |
2069 | return NULL; | |
2070 | } | |
2071 | } | |
2072 | { | |
2073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2074 | wxSplitterWindow_SetSashSize(_arg0,_arg1); | |
2075 | ||
2076 | wxPyEndAllowThreads(__tstate); | |
2077 | if (PyErr_Occurred()) return NULL; | |
2078 | } Py_INCREF(Py_None); | |
2079 | _resultobj = Py_None; | |
2080 | return _resultobj; | |
2081 | } | |
2082 | ||
2083 | #define wxSplitterWindow_SetBorderSize(_swigobj,_swigarg0) (_swigobj->SetBorderSize(_swigarg0)) | |
2084 | static PyObject *_wrap_wxSplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2085 | PyObject * _resultobj; | |
2086 | wxSplitterWindow * _arg0; | |
2087 | int _arg1; | |
2088 | PyObject * _argo0 = 0; | |
2089 | char *_kwnames[] = { "self","width", NULL }; | |
2090 | ||
2091 | self = self; | |
2092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetBorderSize",_kwnames,&_argo0,&_arg1)) | |
2093 | return NULL; | |
2094 | if (_argo0) { | |
2095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetBorderSize. Expected _wxSplitterWindow_p."); | |
2098 | return NULL; | |
2099 | } | |
2100 | } | |
2101 | { | |
2102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2103 | wxSplitterWindow_SetBorderSize(_arg0,_arg1); | |
2104 | ||
2105 | wxPyEndAllowThreads(__tstate); | |
2106 | if (PyErr_Occurred()) return NULL; | |
2107 | } Py_INCREF(Py_None); | |
2108 | _resultobj = Py_None; | |
2109 | return _resultobj; | |
2110 | } | |
2111 | ||
2112 | #define wxSplitterWindow_GetSashSize(_swigobj) (_swigobj->GetSashSize()) | |
2113 | static PyObject *_wrap_wxSplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2114 | PyObject * _resultobj; | |
2115 | int _result; | |
2116 | wxSplitterWindow * _arg0; | |
2117 | PyObject * _argo0 = 0; | |
2118 | char *_kwnames[] = { "self", NULL }; | |
2119 | ||
2120 | self = self; | |
2121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSashSize",_kwnames,&_argo0)) | |
2122 | return NULL; | |
2123 | if (_argo0) { | |
2124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSashSize. Expected _wxSplitterWindow_p."); | |
2127 | return NULL; | |
2128 | } | |
2129 | } | |
2130 | { | |
2131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2132 | _result = (int )wxSplitterWindow_GetSashSize(_arg0); | |
2133 | ||
2134 | wxPyEndAllowThreads(__tstate); | |
2135 | if (PyErr_Occurred()) return NULL; | |
2136 | } _resultobj = Py_BuildValue("i",_result); | |
2137 | return _resultobj; | |
2138 | } | |
2139 | ||
2140 | #define wxSplitterWindow_GetBorderSize(_swigobj) (_swigobj->GetBorderSize()) | |
2141 | static PyObject *_wrap_wxSplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject * _resultobj; | |
2143 | int _result; | |
2144 | wxSplitterWindow * _arg0; | |
2145 | PyObject * _argo0 = 0; | |
2146 | char *_kwnames[] = { "self", NULL }; | |
2147 | ||
2148 | self = self; | |
2149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetBorderSize",_kwnames,&_argo0)) | |
2150 | return NULL; | |
2151 | if (_argo0) { | |
2152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetBorderSize. Expected _wxSplitterWindow_p."); | |
2155 | return NULL; | |
2156 | } | |
2157 | } | |
2158 | { | |
2159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2160 | _result = (int )wxSplitterWindow_GetBorderSize(_arg0); | |
2161 | ||
2162 | wxPyEndAllowThreads(__tstate); | |
2163 | if (PyErr_Occurred()) return NULL; | |
2164 | } _resultobj = Py_BuildValue("i",_result); | |
2165 | return _resultobj; | |
2166 | } | |
2167 | ||
2168 | #define wxSplitterWindow_SetSashPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSashPosition(_swigarg0,_swigarg1)) | |
2169 | static PyObject *_wrap_wxSplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2170 | PyObject * _resultobj; | |
2171 | wxSplitterWindow * _arg0; | |
2172 | int _arg1; | |
2173 | bool _arg2 = (bool ) TRUE; | |
2174 | PyObject * _argo0 = 0; | |
2175 | int tempbool2 = (int) TRUE; | |
2176 | char *_kwnames[] = { "self","position","redraw", NULL }; | |
2177 | ||
2178 | self = self; | |
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxSplitterWindow_SetSashPosition",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
2180 | return NULL; | |
2181 | if (_argo0) { | |
2182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSashPosition. Expected _wxSplitterWindow_p."); | |
2185 | return NULL; | |
2186 | } | |
2187 | } | |
2188 | _arg2 = (bool ) tempbool2; | |
2189 | { | |
2190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2191 | wxSplitterWindow_SetSashPosition(_arg0,_arg1,_arg2); | |
2192 | ||
2193 | wxPyEndAllowThreads(__tstate); | |
2194 | if (PyErr_Occurred()) return NULL; | |
2195 | } Py_INCREF(Py_None); | |
2196 | _resultobj = Py_None; | |
2197 | return _resultobj; | |
2198 | } | |
2199 | ||
2200 | #define wxSplitterWindow_GetSashPosition(_swigobj) (_swigobj->GetSashPosition()) | |
2201 | static PyObject *_wrap_wxSplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2202 | PyObject * _resultobj; | |
2203 | int _result; | |
2204 | wxSplitterWindow * _arg0; | |
2205 | PyObject * _argo0 = 0; | |
2206 | char *_kwnames[] = { "self", NULL }; | |
2207 | ||
2208 | self = self; | |
2209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSashPosition",_kwnames,&_argo0)) | |
2210 | return NULL; | |
2211 | if (_argo0) { | |
2212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSashPosition. Expected _wxSplitterWindow_p."); | |
2215 | return NULL; | |
2216 | } | |
2217 | } | |
2218 | { | |
2219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2220 | _result = (int )wxSplitterWindow_GetSashPosition(_arg0); | |
2221 | ||
2222 | wxPyEndAllowThreads(__tstate); | |
2223 | if (PyErr_Occurred()) return NULL; | |
2224 | } _resultobj = Py_BuildValue("i",_result); | |
2225 | return _resultobj; | |
2226 | } | |
2227 | ||
2228 | #define wxSplitterWindow_SetMinimumPaneSize(_swigobj,_swigarg0) (_swigobj->SetMinimumPaneSize(_swigarg0)) | |
2229 | static PyObject *_wrap_wxSplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject * _resultobj; | |
2231 | wxSplitterWindow * _arg0; | |
2232 | int _arg1; | |
2233 | PyObject * _argo0 = 0; | |
2234 | char *_kwnames[] = { "self","min", NULL }; | |
2235 | ||
2236 | self = self; | |
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetMinimumPaneSize",_kwnames,&_argo0,&_arg1)) | |
2238 | return NULL; | |
2239 | if (_argo0) { | |
2240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetMinimumPaneSize. Expected _wxSplitterWindow_p."); | |
2243 | return NULL; | |
2244 | } | |
2245 | } | |
2246 | { | |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | wxSplitterWindow_SetMinimumPaneSize(_arg0,_arg1); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) return NULL; | |
2252 | } Py_INCREF(Py_None); | |
2253 | _resultobj = Py_None; | |
2254 | return _resultobj; | |
2255 | } | |
2256 | ||
2257 | #define wxSplitterWindow_GetMinimumPaneSize(_swigobj) (_swigobj->GetMinimumPaneSize()) | |
2258 | static PyObject *_wrap_wxSplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2259 | PyObject * _resultobj; | |
2260 | int _result; | |
2261 | wxSplitterWindow * _arg0; | |
2262 | PyObject * _argo0 = 0; | |
2263 | char *_kwnames[] = { "self", NULL }; | |
2264 | ||
2265 | self = self; | |
2266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetMinimumPaneSize",_kwnames,&_argo0)) | |
2267 | return NULL; | |
2268 | if (_argo0) { | |
2269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetMinimumPaneSize. Expected _wxSplitterWindow_p."); | |
2272 | return NULL; | |
2273 | } | |
2274 | } | |
2275 | { | |
2276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2277 | _result = (int )wxSplitterWindow_GetMinimumPaneSize(_arg0); | |
2278 | ||
2279 | wxPyEndAllowThreads(__tstate); | |
2280 | if (PyErr_Occurred()) return NULL; | |
2281 | } _resultobj = Py_BuildValue("i",_result); | |
2282 | return _resultobj; | |
2283 | } | |
2284 | ||
2285 | #define wxSplitterWindow_SizeWindows(_swigobj) (_swigobj->SizeWindows()) | |
2286 | static PyObject *_wrap_wxSplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2287 | PyObject * _resultobj; | |
2288 | wxSplitterWindow * _arg0; | |
2289 | PyObject * _argo0 = 0; | |
2290 | char *_kwnames[] = { "self", NULL }; | |
2291 | ||
2292 | self = self; | |
2293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_SizeWindows",_kwnames,&_argo0)) | |
2294 | return NULL; | |
2295 | if (_argo0) { | |
2296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SizeWindows. Expected _wxSplitterWindow_p."); | |
2299 | return NULL; | |
2300 | } | |
2301 | } | |
2302 | { | |
2303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2304 | wxSplitterWindow_SizeWindows(_arg0); | |
2305 | ||
2306 | wxPyEndAllowThreads(__tstate); | |
2307 | if (PyErr_Occurred()) return NULL; | |
2308 | } Py_INCREF(Py_None); | |
2309 | _resultobj = Py_None; | |
2310 | return _resultobj; | |
2311 | } | |
2312 | ||
2313 | #define wxSplitterWindow_SetNeedUpdating(_swigobj,_swigarg0) (_swigobj->SetNeedUpdating(_swigarg0)) | |
2314 | static PyObject *_wrap_wxSplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2315 | PyObject * _resultobj; | |
2316 | wxSplitterWindow * _arg0; | |
2317 | bool _arg1; | |
2318 | PyObject * _argo0 = 0; | |
2319 | int tempbool1; | |
2320 | char *_kwnames[] = { "self","needUpdating", NULL }; | |
2321 | ||
2322 | self = self; | |
2323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetNeedUpdating",_kwnames,&_argo0,&tempbool1)) | |
2324 | return NULL; | |
2325 | if (_argo0) { | |
2326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetNeedUpdating. Expected _wxSplitterWindow_p."); | |
2329 | return NULL; | |
2330 | } | |
2331 | } | |
2332 | _arg1 = (bool ) tempbool1; | |
2333 | { | |
2334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2335 | wxSplitterWindow_SetNeedUpdating(_arg0,_arg1); | |
2336 | ||
2337 | wxPyEndAllowThreads(__tstate); | |
2338 | if (PyErr_Occurred()) return NULL; | |
2339 | } Py_INCREF(Py_None); | |
2340 | _resultobj = Py_None; | |
2341 | return _resultobj; | |
2342 | } | |
2343 | ||
2344 | #define wxSplitterWindow_GetNeedUpdating(_swigobj) (_swigobj->GetNeedUpdating()) | |
2345 | static PyObject *_wrap_wxSplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2346 | PyObject * _resultobj; | |
2347 | bool _result; | |
2348 | wxSplitterWindow * _arg0; | |
2349 | PyObject * _argo0 = 0; | |
2350 | char *_kwnames[] = { "self", NULL }; | |
2351 | ||
2352 | self = self; | |
2353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetNeedUpdating",_kwnames,&_argo0)) | |
2354 | return NULL; | |
2355 | if (_argo0) { | |
2356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetNeedUpdating. Expected _wxSplitterWindow_p."); | |
2359 | return NULL; | |
2360 | } | |
2361 | } | |
2362 | { | |
2363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2364 | _result = (bool )wxSplitterWindow_GetNeedUpdating(_arg0); | |
2365 | ||
2366 | wxPyEndAllowThreads(__tstate); | |
2367 | if (PyErr_Occurred()) return NULL; | |
2368 | } _resultobj = Py_BuildValue("i",_result); | |
2369 | return _resultobj; | |
2370 | } | |
2371 | ||
2372 | static void *SwigwxPyWindowTowxWindow(void *ptr) { | |
2373 | wxPyWindow *src; | |
2374 | wxWindow *dest; | |
2375 | src = (wxPyWindow *) ptr; | |
2376 | dest = (wxWindow *) src; | |
2377 | return (void *) dest; | |
2378 | } | |
2379 | ||
2380 | static void *SwigwxPyWindowTowxEvtHandler(void *ptr) { | |
2381 | wxPyWindow *src; | |
2382 | wxEvtHandler *dest; | |
2383 | src = (wxPyWindow *) ptr; | |
2384 | dest = (wxEvtHandler *) src; | |
2385 | return (void *) dest; | |
2386 | } | |
2387 | ||
2388 | static void *SwigwxPyWindowTowxObject(void *ptr) { | |
2389 | wxPyWindow *src; | |
2390 | wxObject *dest; | |
2391 | src = (wxPyWindow *) ptr; | |
2392 | dest = (wxObject *) src; | |
2393 | return (void *) dest; | |
2394 | } | |
2395 | ||
2396 | #define new_wxPyWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPyWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2397 | static PyObject *_wrap_new_wxPyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2398 | PyObject * _resultobj; | |
2399 | wxPyWindow * _result; | |
2400 | wxWindow * _arg0; | |
2401 | wxWindowID _arg1; | |
2402 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2403 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2404 | long _arg4 = (long ) 0; | |
2405 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; | |
2406 | PyObject * _argo0 = 0; | |
2407 | wxPoint temp; | |
2408 | PyObject * _obj2 = 0; | |
2409 | wxSize temp0; | |
2410 | PyObject * _obj3 = 0; | |
2411 | PyObject * _obj5 = 0; | |
2412 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
2413 | char _ptemp[128]; | |
2414 | ||
2415 | self = self; | |
2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPyWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
2417 | return NULL; | |
2418 | if (_argo0) { | |
2419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyWindow. Expected _wxWindow_p."); | |
2422 | return NULL; | |
2423 | } | |
2424 | } | |
2425 | if (_obj2) | |
2426 | { | |
2427 | _arg2 = &temp; | |
2428 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2429 | return NULL; | |
2430 | } | |
2431 | if (_obj3) | |
2432 | { | |
2433 | _arg3 = &temp0; | |
2434 | if (! wxSize_helper(_obj3, &_arg3)) | |
2435 | return NULL; | |
2436 | } | |
2437 | if (_obj5) | |
2438 | { | |
2439 | _arg5 = wxString_in_helper(_obj5); | |
2440 | if (_arg5 == NULL) | |
2441 | return NULL; | |
2442 | } | |
2443 | { | |
2444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2445 | _result = (wxPyWindow *)new_wxPyWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
2446 | ||
2447 | wxPyEndAllowThreads(__tstate); | |
2448 | if (PyErr_Occurred()) return NULL; | |
2449 | } if (_result) { | |
2450 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyWindow_p"); | |
2451 | _resultobj = Py_BuildValue("s",_ptemp); | |
2452 | } else { | |
2453 | Py_INCREF(Py_None); | |
2454 | _resultobj = Py_None; | |
2455 | } | |
2456 | { | |
2457 | if (_obj5) | |
2458 | delete _arg5; | |
2459 | } | |
2460 | return _resultobj; | |
2461 | } | |
2462 | ||
2463 | #define wxPyWindow__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
2464 | static PyObject *_wrap_wxPyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2465 | PyObject * _resultobj; | |
2466 | wxPyWindow * _arg0; | |
2467 | PyObject * _arg1; | |
2468 | PyObject * _arg2; | |
2469 | PyObject * _argo0 = 0; | |
2470 | PyObject * _obj1 = 0; | |
2471 | PyObject * _obj2 = 0; | |
2472 | char *_kwnames[] = { "self","self","_class", NULL }; | |
2473 | ||
2474 | self = self; | |
2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyWindow__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
2476 | return NULL; | |
2477 | if (_argo0) { | |
2478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow__setCallbackInfo. Expected _wxPyWindow_p."); | |
2481 | return NULL; | |
2482 | } | |
2483 | } | |
2484 | { | |
2485 | _arg1 = _obj1; | |
2486 | } | |
2487 | { | |
2488 | _arg2 = _obj2; | |
2489 | } | |
2490 | { | |
2491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2492 | wxPyWindow__setCallbackInfo(_arg0,_arg1,_arg2); | |
2493 | ||
2494 | wxPyEndAllowThreads(__tstate); | |
2495 | if (PyErr_Occurred()) return NULL; | |
2496 | } Py_INCREF(Py_None); | |
2497 | _resultobj = Py_None; | |
2498 | return _resultobj; | |
2499 | } | |
2500 | ||
2501 | #define wxPyWindow_base_DoMoveWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_DoMoveWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2502 | static PyObject *_wrap_wxPyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2503 | PyObject * _resultobj; | |
2504 | wxPyWindow * _arg0; | |
2505 | int _arg1; | |
2506 | int _arg2; | |
2507 | int _arg3; | |
2508 | int _arg4; | |
2509 | PyObject * _argo0 = 0; | |
2510 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
2511 | ||
2512 | self = self; | |
2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxPyWindow_base_DoMoveWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2514 | return NULL; | |
2515 | if (_argo0) { | |
2516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoMoveWindow. Expected _wxPyWindow_p."); | |
2519 | return NULL; | |
2520 | } | |
2521 | } | |
2522 | { | |
2523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2524 | wxPyWindow_base_DoMoveWindow(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2525 | ||
2526 | wxPyEndAllowThreads(__tstate); | |
2527 | if (PyErr_Occurred()) return NULL; | |
2528 | } Py_INCREF(Py_None); | |
2529 | _resultobj = Py_None; | |
2530 | return _resultobj; | |
2531 | } | |
2532 | ||
2533 | #define wxPyWindow_base_DoSetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_DoSetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
2534 | static PyObject *_wrap_wxPyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2535 | PyObject * _resultobj; | |
2536 | wxPyWindow * _arg0; | |
2537 | int _arg1; | |
2538 | int _arg2; | |
2539 | int _arg3; | |
2540 | int _arg4; | |
2541 | int _arg5 = (int ) wxSIZE_AUTO; | |
2542 | PyObject * _argo0 = 0; | |
2543 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; | |
2544 | ||
2545 | self = self; | |
2546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxPyWindow_base_DoSetSize",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
2547 | return NULL; | |
2548 | if (_argo0) { | |
2549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoSetSize. Expected _wxPyWindow_p."); | |
2552 | return NULL; | |
2553 | } | |
2554 | } | |
2555 | { | |
2556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2557 | wxPyWindow_base_DoSetSize(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
2558 | ||
2559 | wxPyEndAllowThreads(__tstate); | |
2560 | if (PyErr_Occurred()) return NULL; | |
2561 | } Py_INCREF(Py_None); | |
2562 | _resultobj = Py_None; | |
2563 | return _resultobj; | |
2564 | } | |
2565 | ||
2566 | #define wxPyWindow_base_DoSetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetClientSize(_swigarg0,_swigarg1)) | |
2567 | static PyObject *_wrap_wxPyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2568 | PyObject * _resultobj; | |
2569 | wxPyWindow * _arg0; | |
2570 | int _arg1; | |
2571 | int _arg2; | |
2572 | PyObject * _argo0 = 0; | |
2573 | char *_kwnames[] = { "self","width","height", NULL }; | |
2574 | ||
2575 | self = self; | |
2576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyWindow_base_DoSetClientSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2577 | return NULL; | |
2578 | if (_argo0) { | |
2579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoSetClientSize. Expected _wxPyWindow_p."); | |
2582 | return NULL; | |
2583 | } | |
2584 | } | |
2585 | { | |
2586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2587 | wxPyWindow_base_DoSetClientSize(_arg0,_arg1,_arg2); | |
2588 | ||
2589 | wxPyEndAllowThreads(__tstate); | |
2590 | if (PyErr_Occurred()) return NULL; | |
2591 | } Py_INCREF(Py_None); | |
2592 | _resultobj = Py_None; | |
2593 | return _resultobj; | |
2594 | } | |
2595 | ||
2596 | #define wxPyWindow_base_DoSetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetVirtualSize(_swigarg0,_swigarg1)) | |
2597 | static PyObject *_wrap_wxPyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2598 | PyObject * _resultobj; | |
2599 | wxPyWindow * _arg0; | |
2600 | int _arg1; | |
2601 | int _arg2; | |
2602 | PyObject * _argo0 = 0; | |
2603 | char *_kwnames[] = { "self","x","y", NULL }; | |
2604 | ||
2605 | self = self; | |
2606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyWindow_base_DoSetVirtualSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2607 | return NULL; | |
2608 | if (_argo0) { | |
2609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoSetVirtualSize. Expected _wxPyWindow_p."); | |
2612 | return NULL; | |
2613 | } | |
2614 | } | |
2615 | { | |
2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2617 | wxPyWindow_base_DoSetVirtualSize(_arg0,_arg1,_arg2); | |
2618 | ||
2619 | wxPyEndAllowThreads(__tstate); | |
2620 | if (PyErr_Occurred()) return NULL; | |
2621 | } Py_INCREF(Py_None); | |
2622 | _resultobj = Py_None; | |
2623 | return _resultobj; | |
2624 | } | |
2625 | ||
2626 | #define wxPyWindow_base_DoGetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetSize(_swigarg0,_swigarg1)) | |
2627 | static PyObject *_wrap_wxPyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2628 | PyObject * _resultobj; | |
2629 | wxPyWindow * _arg0; | |
2630 | int * _arg1; | |
2631 | int temp; | |
2632 | int * _arg2; | |
2633 | int temp0; | |
2634 | PyObject * _argo0 = 0; | |
2635 | char *_kwnames[] = { "self", NULL }; | |
2636 | ||
2637 | self = self; | |
2638 | { | |
2639 | _arg1 = &temp; | |
2640 | } | |
2641 | { | |
2642 | _arg2 = &temp0; | |
2643 | } | |
2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetSize",_kwnames,&_argo0)) | |
2645 | return NULL; | |
2646 | if (_argo0) { | |
2647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetSize. Expected _wxPyWindow_p."); | |
2650 | return NULL; | |
2651 | } | |
2652 | } | |
2653 | { | |
2654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2655 | wxPyWindow_base_DoGetSize(_arg0,_arg1,_arg2); | |
2656 | ||
2657 | wxPyEndAllowThreads(__tstate); | |
2658 | if (PyErr_Occurred()) return NULL; | |
2659 | } Py_INCREF(Py_None); | |
2660 | _resultobj = Py_None; | |
2661 | { | |
2662 | PyObject *o; | |
2663 | o = PyInt_FromLong((long) (*_arg1)); | |
2664 | _resultobj = t_output_helper(_resultobj, o); | |
2665 | } | |
2666 | { | |
2667 | PyObject *o; | |
2668 | o = PyInt_FromLong((long) (*_arg2)); | |
2669 | _resultobj = t_output_helper(_resultobj, o); | |
2670 | } | |
2671 | return _resultobj; | |
2672 | } | |
2673 | ||
2674 | #define wxPyWindow_base_DoGetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetClientSize(_swigarg0,_swigarg1)) | |
2675 | static PyObject *_wrap_wxPyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject * _resultobj; | |
2677 | wxPyWindow * _arg0; | |
2678 | int * _arg1; | |
2679 | int temp; | |
2680 | int * _arg2; | |
2681 | int temp0; | |
2682 | PyObject * _argo0 = 0; | |
2683 | char *_kwnames[] = { "self", NULL }; | |
2684 | ||
2685 | self = self; | |
2686 | { | |
2687 | _arg1 = &temp; | |
2688 | } | |
2689 | { | |
2690 | _arg2 = &temp0; | |
2691 | } | |
2692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetClientSize",_kwnames,&_argo0)) | |
2693 | return NULL; | |
2694 | if (_argo0) { | |
2695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetClientSize. Expected _wxPyWindow_p."); | |
2698 | return NULL; | |
2699 | } | |
2700 | } | |
2701 | { | |
2702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2703 | wxPyWindow_base_DoGetClientSize(_arg0,_arg1,_arg2); | |
2704 | ||
2705 | wxPyEndAllowThreads(__tstate); | |
2706 | if (PyErr_Occurred()) return NULL; | |
2707 | } Py_INCREF(Py_None); | |
2708 | _resultobj = Py_None; | |
2709 | { | |
2710 | PyObject *o; | |
2711 | o = PyInt_FromLong((long) (*_arg1)); | |
2712 | _resultobj = t_output_helper(_resultobj, o); | |
2713 | } | |
2714 | { | |
2715 | PyObject *o; | |
2716 | o = PyInt_FromLong((long) (*_arg2)); | |
2717 | _resultobj = t_output_helper(_resultobj, o); | |
2718 | } | |
2719 | return _resultobj; | |
2720 | } | |
2721 | ||
2722 | #define wxPyWindow_base_DoGetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetPosition(_swigarg0,_swigarg1)) | |
2723 | static PyObject *_wrap_wxPyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2724 | PyObject * _resultobj; | |
2725 | wxPyWindow * _arg0; | |
2726 | int * _arg1; | |
2727 | int temp; | |
2728 | int * _arg2; | |
2729 | int temp0; | |
2730 | PyObject * _argo0 = 0; | |
2731 | char *_kwnames[] = { "self", NULL }; | |
2732 | ||
2733 | self = self; | |
2734 | { | |
2735 | _arg1 = &temp; | |
2736 | } | |
2737 | { | |
2738 | _arg2 = &temp0; | |
2739 | } | |
2740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetPosition",_kwnames,&_argo0)) | |
2741 | return NULL; | |
2742 | if (_argo0) { | |
2743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetPosition. Expected _wxPyWindow_p."); | |
2746 | return NULL; | |
2747 | } | |
2748 | } | |
2749 | { | |
2750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2751 | wxPyWindow_base_DoGetPosition(_arg0,_arg1,_arg2); | |
2752 | ||
2753 | wxPyEndAllowThreads(__tstate); | |
2754 | if (PyErr_Occurred()) return NULL; | |
2755 | } Py_INCREF(Py_None); | |
2756 | _resultobj = Py_None; | |
2757 | { | |
2758 | PyObject *o; | |
2759 | o = PyInt_FromLong((long) (*_arg1)); | |
2760 | _resultobj = t_output_helper(_resultobj, o); | |
2761 | } | |
2762 | { | |
2763 | PyObject *o; | |
2764 | o = PyInt_FromLong((long) (*_arg2)); | |
2765 | _resultobj = t_output_helper(_resultobj, o); | |
2766 | } | |
2767 | return _resultobj; | |
2768 | } | |
2769 | ||
2770 | #define wxPyWindow_base_DoGetVirtualSize(_swigobj) (_swigobj->base_DoGetVirtualSize()) | |
2771 | static PyObject *_wrap_wxPyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject * _resultobj; | |
2773 | wxSize * _result; | |
2774 | wxPyWindow * _arg0; | |
2775 | PyObject * _argo0 = 0; | |
2776 | char *_kwnames[] = { "self", NULL }; | |
2777 | char _ptemp[128]; | |
2778 | ||
2779 | self = self; | |
2780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetVirtualSize",_kwnames,&_argo0)) | |
2781 | return NULL; | |
2782 | if (_argo0) { | |
2783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetVirtualSize. Expected _wxPyWindow_p."); | |
2786 | return NULL; | |
2787 | } | |
2788 | } | |
2789 | { | |
2790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2791 | _result = new wxSize (wxPyWindow_base_DoGetVirtualSize(_arg0)); | |
2792 | ||
2793 | wxPyEndAllowThreads(__tstate); | |
2794 | if (PyErr_Occurred()) return NULL; | |
2795 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2796 | _resultobj = Py_BuildValue("s",_ptemp); | |
2797 | return _resultobj; | |
2798 | } | |
2799 | ||
2800 | #define wxPyWindow_base_DoGetBestSize(_swigobj) (_swigobj->base_DoGetBestSize()) | |
2801 | static PyObject *_wrap_wxPyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2802 | PyObject * _resultobj; | |
2803 | wxSize * _result; | |
2804 | wxPyWindow * _arg0; | |
2805 | PyObject * _argo0 = 0; | |
2806 | char *_kwnames[] = { "self", NULL }; | |
2807 | char _ptemp[128]; | |
2808 | ||
2809 | self = self; | |
2810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetBestSize",_kwnames,&_argo0)) | |
2811 | return NULL; | |
2812 | if (_argo0) { | |
2813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetBestSize. Expected _wxPyWindow_p."); | |
2816 | return NULL; | |
2817 | } | |
2818 | } | |
2819 | { | |
2820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2821 | _result = new wxSize (wxPyWindow_base_DoGetBestSize(_arg0)); | |
2822 | ||
2823 | wxPyEndAllowThreads(__tstate); | |
2824 | if (PyErr_Occurred()) return NULL; | |
2825 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2826 | _resultobj = Py_BuildValue("s",_ptemp); | |
2827 | return _resultobj; | |
2828 | } | |
2829 | ||
2830 | #define wxPyWindow_base_InitDialog(_swigobj) (_swigobj->base_InitDialog()) | |
2831 | static PyObject *_wrap_wxPyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2832 | PyObject * _resultobj; | |
2833 | wxPyWindow * _arg0; | |
2834 | PyObject * _argo0 = 0; | |
2835 | char *_kwnames[] = { "self", NULL }; | |
2836 | ||
2837 | self = self; | |
2838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_InitDialog",_kwnames,&_argo0)) | |
2839 | return NULL; | |
2840 | if (_argo0) { | |
2841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_InitDialog. Expected _wxPyWindow_p."); | |
2844 | return NULL; | |
2845 | } | |
2846 | } | |
2847 | { | |
2848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2849 | wxPyWindow_base_InitDialog(_arg0); | |
2850 | ||
2851 | wxPyEndAllowThreads(__tstate); | |
2852 | if (PyErr_Occurred()) return NULL; | |
2853 | } Py_INCREF(Py_None); | |
2854 | _resultobj = Py_None; | |
2855 | return _resultobj; | |
2856 | } | |
2857 | ||
2858 | #define wxPyWindow_base_TransferDataToWindow(_swigobj) (_swigobj->base_TransferDataToWindow()) | |
2859 | static PyObject *_wrap_wxPyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2860 | PyObject * _resultobj; | |
2861 | bool _result; | |
2862 | wxPyWindow * _arg0; | |
2863 | PyObject * _argo0 = 0; | |
2864 | char *_kwnames[] = { "self", NULL }; | |
2865 | ||
2866 | self = self; | |
2867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_TransferDataToWindow",_kwnames,&_argo0)) | |
2868 | return NULL; | |
2869 | if (_argo0) { | |
2870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_TransferDataToWindow. Expected _wxPyWindow_p."); | |
2873 | return NULL; | |
2874 | } | |
2875 | } | |
2876 | { | |
2877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2878 | _result = (bool )wxPyWindow_base_TransferDataToWindow(_arg0); | |
2879 | ||
2880 | wxPyEndAllowThreads(__tstate); | |
2881 | if (PyErr_Occurred()) return NULL; | |
2882 | } _resultobj = Py_BuildValue("i",_result); | |
2883 | return _resultobj; | |
2884 | } | |
2885 | ||
2886 | #define wxPyWindow_base_TransferDataFromWindow(_swigobj) (_swigobj->base_TransferDataFromWindow()) | |
2887 | static PyObject *_wrap_wxPyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2888 | PyObject * _resultobj; | |
2889 | bool _result; | |
2890 | wxPyWindow * _arg0; | |
2891 | PyObject * _argo0 = 0; | |
2892 | char *_kwnames[] = { "self", NULL }; | |
2893 | ||
2894 | self = self; | |
2895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_TransferDataFromWindow",_kwnames,&_argo0)) | |
2896 | return NULL; | |
2897 | if (_argo0) { | |
2898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_TransferDataFromWindow. Expected _wxPyWindow_p."); | |
2901 | return NULL; | |
2902 | } | |
2903 | } | |
2904 | { | |
2905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2906 | _result = (bool )wxPyWindow_base_TransferDataFromWindow(_arg0); | |
2907 | ||
2908 | wxPyEndAllowThreads(__tstate); | |
2909 | if (PyErr_Occurred()) return NULL; | |
2910 | } _resultobj = Py_BuildValue("i",_result); | |
2911 | return _resultobj; | |
2912 | } | |
2913 | ||
2914 | #define wxPyWindow_base_Validate(_swigobj) (_swigobj->base_Validate()) | |
2915 | static PyObject *_wrap_wxPyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2916 | PyObject * _resultobj; | |
2917 | bool _result; | |
2918 | wxPyWindow * _arg0; | |
2919 | PyObject * _argo0 = 0; | |
2920 | char *_kwnames[] = { "self", NULL }; | |
2921 | ||
2922 | self = self; | |
2923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_Validate",_kwnames,&_argo0)) | |
2924 | return NULL; | |
2925 | if (_argo0) { | |
2926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_Validate. Expected _wxPyWindow_p."); | |
2929 | return NULL; | |
2930 | } | |
2931 | } | |
2932 | { | |
2933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2934 | _result = (bool )wxPyWindow_base_Validate(_arg0); | |
2935 | ||
2936 | wxPyEndAllowThreads(__tstate); | |
2937 | if (PyErr_Occurred()) return NULL; | |
2938 | } _resultobj = Py_BuildValue("i",_result); | |
2939 | return _resultobj; | |
2940 | } | |
2941 | ||
2942 | #define wxPyWindow_base_AcceptsFocus(_swigobj) (_swigobj->base_AcceptsFocus()) | |
2943 | static PyObject *_wrap_wxPyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject * _resultobj; | |
2945 | bool _result; | |
2946 | wxPyWindow * _arg0; | |
2947 | PyObject * _argo0 = 0; | |
2948 | char *_kwnames[] = { "self", NULL }; | |
2949 | ||
2950 | self = self; | |
2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_AcceptsFocus",_kwnames,&_argo0)) | |
2952 | return NULL; | |
2953 | if (_argo0) { | |
2954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_AcceptsFocus. Expected _wxPyWindow_p."); | |
2957 | return NULL; | |
2958 | } | |
2959 | } | |
2960 | { | |
2961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2962 | _result = (bool )wxPyWindow_base_AcceptsFocus(_arg0); | |
2963 | ||
2964 | wxPyEndAllowThreads(__tstate); | |
2965 | if (PyErr_Occurred()) return NULL; | |
2966 | } _resultobj = Py_BuildValue("i",_result); | |
2967 | return _resultobj; | |
2968 | } | |
2969 | ||
2970 | #define wxPyWindow_base_AcceptsFocusFromKeyboard(_swigobj) (_swigobj->base_AcceptsFocusFromKeyboard()) | |
2971 | static PyObject *_wrap_wxPyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2972 | PyObject * _resultobj; | |
2973 | bool _result; | |
2974 | wxPyWindow * _arg0; | |
2975 | PyObject * _argo0 = 0; | |
2976 | char *_kwnames[] = { "self", NULL }; | |
2977 | ||
2978 | self = self; | |
2979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_AcceptsFocusFromKeyboard",_kwnames,&_argo0)) | |
2980 | return NULL; | |
2981 | if (_argo0) { | |
2982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
2984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_AcceptsFocusFromKeyboard. Expected _wxPyWindow_p."); | |
2985 | return NULL; | |
2986 | } | |
2987 | } | |
2988 | { | |
2989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2990 | _result = (bool )wxPyWindow_base_AcceptsFocusFromKeyboard(_arg0); | |
2991 | ||
2992 | wxPyEndAllowThreads(__tstate); | |
2993 | if (PyErr_Occurred()) return NULL; | |
2994 | } _resultobj = Py_BuildValue("i",_result); | |
2995 | return _resultobj; | |
2996 | } | |
2997 | ||
2998 | #define wxPyWindow_base_GetMaxSize(_swigobj) (_swigobj->base_GetMaxSize()) | |
2999 | static PyObject *_wrap_wxPyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3000 | PyObject * _resultobj; | |
3001 | wxSize * _result; | |
3002 | wxPyWindow * _arg0; | |
3003 | PyObject * _argo0 = 0; | |
3004 | char *_kwnames[] = { "self", NULL }; | |
3005 | char _ptemp[128]; | |
3006 | ||
3007 | self = self; | |
3008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_GetMaxSize",_kwnames,&_argo0)) | |
3009 | return NULL; | |
3010 | if (_argo0) { | |
3011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) { | |
3013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_GetMaxSize. Expected _wxPyWindow_p."); | |
3014 | return NULL; | |
3015 | } | |
3016 | } | |
3017 | { | |
3018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3019 | _result = new wxSize (wxPyWindow_base_GetMaxSize(_arg0)); | |
3020 | ||
3021 | wxPyEndAllowThreads(__tstate); | |
3022 | if (PyErr_Occurred()) return NULL; | |
3023 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
3024 | _resultobj = Py_BuildValue("s",_ptemp); | |
3025 | return _resultobj; | |
3026 | } | |
3027 | ||
3028 | static void *SwigwxPyControlTowxControl(void *ptr) { | |
3029 | wxPyControl *src; | |
3030 | wxControl *dest; | |
3031 | src = (wxPyControl *) ptr; | |
3032 | dest = (wxControl *) src; | |
3033 | return (void *) dest; | |
3034 | } | |
3035 | ||
3036 | static void *SwigwxPyControlTowxWindow(void *ptr) { | |
3037 | wxPyControl *src; | |
3038 | wxWindow *dest; | |
3039 | src = (wxPyControl *) ptr; | |
3040 | dest = (wxWindow *) src; | |
3041 | return (void *) dest; | |
3042 | } | |
3043 | ||
3044 | static void *SwigwxPyControlTowxEvtHandler(void *ptr) { | |
3045 | wxPyControl *src; | |
3046 | wxEvtHandler *dest; | |
3047 | src = (wxPyControl *) ptr; | |
3048 | dest = (wxEvtHandler *) src; | |
3049 | return (void *) dest; | |
3050 | } | |
3051 | ||
3052 | static void *SwigwxPyControlTowxObject(void *ptr) { | |
3053 | wxPyControl *src; | |
3054 | wxObject *dest; | |
3055 | src = (wxPyControl *) ptr; | |
3056 | dest = (wxObject *) src; | |
3057 | return (void *) dest; | |
3058 | } | |
3059 | ||
3060 | #define new_wxPyControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3061 | static PyObject *_wrap_new_wxPyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3062 | PyObject * _resultobj; | |
3063 | wxPyControl * _result; | |
3064 | wxWindow * _arg0; | |
3065 | wxWindowID _arg1; | |
3066 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
3067 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
3068 | long _arg4 = (long ) 0; | |
3069 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
3070 | wxString * _arg6 = (wxString *) &wxPyControlNameStr; | |
3071 | PyObject * _argo0 = 0; | |
3072 | wxPoint temp; | |
3073 | PyObject * _obj2 = 0; | |
3074 | wxSize temp0; | |
3075 | PyObject * _obj3 = 0; | |
3076 | PyObject * _argo5 = 0; | |
3077 | PyObject * _obj6 = 0; | |
3078 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
3079 | char _ptemp[128]; | |
3080 | ||
3081 | self = self; | |
3082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOO:new_wxPyControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
3083 | return NULL; | |
3084 | if (_argo0) { | |
3085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyControl. Expected _wxWindow_p."); | |
3088 | return NULL; | |
3089 | } | |
3090 | } | |
3091 | if (_obj2) | |
3092 | { | |
3093 | _arg2 = &temp; | |
3094 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3095 | return NULL; | |
3096 | } | |
3097 | if (_obj3) | |
3098 | { | |
3099 | _arg3 = &temp0; | |
3100 | if (! wxSize_helper(_obj3, &_arg3)) | |
3101 | return NULL; | |
3102 | } | |
3103 | if (_argo5) { | |
3104 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
3105 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
3106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxPyControl. Expected _wxValidator_p."); | |
3107 | return NULL; | |
3108 | } | |
3109 | } | |
3110 | if (_obj6) | |
3111 | { | |
3112 | _arg6 = wxString_in_helper(_obj6); | |
3113 | if (_arg6 == NULL) | |
3114 | return NULL; | |
3115 | } | |
3116 | { | |
3117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3118 | _result = (wxPyControl *)new_wxPyControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
3119 | ||
3120 | wxPyEndAllowThreads(__tstate); | |
3121 | if (PyErr_Occurred()) return NULL; | |
3122 | } if (_result) { | |
3123 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyControl_p"); | |
3124 | _resultobj = Py_BuildValue("s",_ptemp); | |
3125 | } else { | |
3126 | Py_INCREF(Py_None); | |
3127 | _resultobj = Py_None; | |
3128 | } | |
3129 | { | |
3130 | if (_obj6) | |
3131 | delete _arg6; | |
3132 | } | |
3133 | return _resultobj; | |
3134 | } | |
3135 | ||
3136 | #define wxPyControl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
3137 | static PyObject *_wrap_wxPyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3138 | PyObject * _resultobj; | |
3139 | wxPyControl * _arg0; | |
3140 | PyObject * _arg1; | |
3141 | PyObject * _arg2; | |
3142 | PyObject * _argo0 = 0; | |
3143 | PyObject * _obj1 = 0; | |
3144 | PyObject * _obj2 = 0; | |
3145 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3146 | ||
3147 | self = self; | |
3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyControl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3149 | return NULL; | |
3150 | if (_argo0) { | |
3151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl__setCallbackInfo. Expected _wxPyControl_p."); | |
3154 | return NULL; | |
3155 | } | |
3156 | } | |
3157 | { | |
3158 | _arg1 = _obj1; | |
3159 | } | |
3160 | { | |
3161 | _arg2 = _obj2; | |
3162 | } | |
3163 | { | |
3164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3165 | wxPyControl__setCallbackInfo(_arg0,_arg1,_arg2); | |
3166 | ||
3167 | wxPyEndAllowThreads(__tstate); | |
3168 | if (PyErr_Occurred()) return NULL; | |
3169 | } Py_INCREF(Py_None); | |
3170 | _resultobj = Py_None; | |
3171 | return _resultobj; | |
3172 | } | |
3173 | ||
3174 | #define wxPyControl_base_DoMoveWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_DoMoveWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3175 | static PyObject *_wrap_wxPyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject * _resultobj; | |
3177 | wxPyControl * _arg0; | |
3178 | int _arg1; | |
3179 | int _arg2; | |
3180 | int _arg3; | |
3181 | int _arg4; | |
3182 | PyObject * _argo0 = 0; | |
3183 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
3184 | ||
3185 | self = self; | |
3186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxPyControl_base_DoMoveWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3187 | return NULL; | |
3188 | if (_argo0) { | |
3189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoMoveWindow. Expected _wxPyControl_p."); | |
3192 | return NULL; | |
3193 | } | |
3194 | } | |
3195 | { | |
3196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3197 | wxPyControl_base_DoMoveWindow(_arg0,_arg1,_arg2,_arg3,_arg4); | |
3198 | ||
3199 | wxPyEndAllowThreads(__tstate); | |
3200 | if (PyErr_Occurred()) return NULL; | |
3201 | } Py_INCREF(Py_None); | |
3202 | _resultobj = Py_None; | |
3203 | return _resultobj; | |
3204 | } | |
3205 | ||
3206 | #define wxPyControl_base_DoSetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_DoSetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3207 | static PyObject *_wrap_wxPyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3208 | PyObject * _resultobj; | |
3209 | wxPyControl * _arg0; | |
3210 | int _arg1; | |
3211 | int _arg2; | |
3212 | int _arg3; | |
3213 | int _arg4; | |
3214 | int _arg5 = (int ) wxSIZE_AUTO; | |
3215 | PyObject * _argo0 = 0; | |
3216 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; | |
3217 | ||
3218 | self = self; | |
3219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxPyControl_base_DoSetSize",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
3220 | return NULL; | |
3221 | if (_argo0) { | |
3222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoSetSize. Expected _wxPyControl_p."); | |
3225 | return NULL; | |
3226 | } | |
3227 | } | |
3228 | { | |
3229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3230 | wxPyControl_base_DoSetSize(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3231 | ||
3232 | wxPyEndAllowThreads(__tstate); | |
3233 | if (PyErr_Occurred()) return NULL; | |
3234 | } Py_INCREF(Py_None); | |
3235 | _resultobj = Py_None; | |
3236 | return _resultobj; | |
3237 | } | |
3238 | ||
3239 | #define wxPyControl_base_DoSetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetClientSize(_swigarg0,_swigarg1)) | |
3240 | static PyObject *_wrap_wxPyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject * _resultobj; | |
3242 | wxPyControl * _arg0; | |
3243 | int _arg1; | |
3244 | int _arg2; | |
3245 | PyObject * _argo0 = 0; | |
3246 | char *_kwnames[] = { "self","width","height", NULL }; | |
3247 | ||
3248 | self = self; | |
3249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyControl_base_DoSetClientSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3250 | return NULL; | |
3251 | if (_argo0) { | |
3252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoSetClientSize. Expected _wxPyControl_p."); | |
3255 | return NULL; | |
3256 | } | |
3257 | } | |
3258 | { | |
3259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3260 | wxPyControl_base_DoSetClientSize(_arg0,_arg1,_arg2); | |
3261 | ||
3262 | wxPyEndAllowThreads(__tstate); | |
3263 | if (PyErr_Occurred()) return NULL; | |
3264 | } Py_INCREF(Py_None); | |
3265 | _resultobj = Py_None; | |
3266 | return _resultobj; | |
3267 | } | |
3268 | ||
3269 | #define wxPyControl_base_DoSetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetVirtualSize(_swigarg0,_swigarg1)) | |
3270 | static PyObject *_wrap_wxPyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3271 | PyObject * _resultobj; | |
3272 | wxPyControl * _arg0; | |
3273 | int _arg1; | |
3274 | int _arg2; | |
3275 | PyObject * _argo0 = 0; | |
3276 | char *_kwnames[] = { "self","x","y", NULL }; | |
3277 | ||
3278 | self = self; | |
3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyControl_base_DoSetVirtualSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3280 | return NULL; | |
3281 | if (_argo0) { | |
3282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoSetVirtualSize. Expected _wxPyControl_p."); | |
3285 | return NULL; | |
3286 | } | |
3287 | } | |
3288 | { | |
3289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3290 | wxPyControl_base_DoSetVirtualSize(_arg0,_arg1,_arg2); | |
3291 | ||
3292 | wxPyEndAllowThreads(__tstate); | |
3293 | if (PyErr_Occurred()) return NULL; | |
3294 | } Py_INCREF(Py_None); | |
3295 | _resultobj = Py_None; | |
3296 | return _resultobj; | |
3297 | } | |
3298 | ||
3299 | #define wxPyControl_base_DoGetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetSize(_swigarg0,_swigarg1)) | |
3300 | static PyObject *_wrap_wxPyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3301 | PyObject * _resultobj; | |
3302 | wxPyControl * _arg0; | |
3303 | int * _arg1; | |
3304 | int temp; | |
3305 | int * _arg2; | |
3306 | int temp0; | |
3307 | PyObject * _argo0 = 0; | |
3308 | char *_kwnames[] = { "self", NULL }; | |
3309 | ||
3310 | self = self; | |
3311 | { | |
3312 | _arg1 = &temp; | |
3313 | } | |
3314 | { | |
3315 | _arg2 = &temp0; | |
3316 | } | |
3317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetSize",_kwnames,&_argo0)) | |
3318 | return NULL; | |
3319 | if (_argo0) { | |
3320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetSize. Expected _wxPyControl_p."); | |
3323 | return NULL; | |
3324 | } | |
3325 | } | |
3326 | { | |
3327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3328 | wxPyControl_base_DoGetSize(_arg0,_arg1,_arg2); | |
3329 | ||
3330 | wxPyEndAllowThreads(__tstate); | |
3331 | if (PyErr_Occurred()) return NULL; | |
3332 | } Py_INCREF(Py_None); | |
3333 | _resultobj = Py_None; | |
3334 | { | |
3335 | PyObject *o; | |
3336 | o = PyInt_FromLong((long) (*_arg1)); | |
3337 | _resultobj = t_output_helper(_resultobj, o); | |
3338 | } | |
3339 | { | |
3340 | PyObject *o; | |
3341 | o = PyInt_FromLong((long) (*_arg2)); | |
3342 | _resultobj = t_output_helper(_resultobj, o); | |
3343 | } | |
3344 | return _resultobj; | |
3345 | } | |
3346 | ||
3347 | #define wxPyControl_base_DoGetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetClientSize(_swigarg0,_swigarg1)) | |
3348 | static PyObject *_wrap_wxPyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3349 | PyObject * _resultobj; | |
3350 | wxPyControl * _arg0; | |
3351 | int * _arg1; | |
3352 | int temp; | |
3353 | int * _arg2; | |
3354 | int temp0; | |
3355 | PyObject * _argo0 = 0; | |
3356 | char *_kwnames[] = { "self", NULL }; | |
3357 | ||
3358 | self = self; | |
3359 | { | |
3360 | _arg1 = &temp; | |
3361 | } | |
3362 | { | |
3363 | _arg2 = &temp0; | |
3364 | } | |
3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetClientSize",_kwnames,&_argo0)) | |
3366 | return NULL; | |
3367 | if (_argo0) { | |
3368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetClientSize. Expected _wxPyControl_p."); | |
3371 | return NULL; | |
3372 | } | |
3373 | } | |
3374 | { | |
3375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3376 | wxPyControl_base_DoGetClientSize(_arg0,_arg1,_arg2); | |
3377 | ||
3378 | wxPyEndAllowThreads(__tstate); | |
3379 | if (PyErr_Occurred()) return NULL; | |
3380 | } Py_INCREF(Py_None); | |
3381 | _resultobj = Py_None; | |
3382 | { | |
3383 | PyObject *o; | |
3384 | o = PyInt_FromLong((long) (*_arg1)); | |
3385 | _resultobj = t_output_helper(_resultobj, o); | |
3386 | } | |
3387 | { | |
3388 | PyObject *o; | |
3389 | o = PyInt_FromLong((long) (*_arg2)); | |
3390 | _resultobj = t_output_helper(_resultobj, o); | |
3391 | } | |
3392 | return _resultobj; | |
3393 | } | |
3394 | ||
3395 | #define wxPyControl_base_DoGetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetPosition(_swigarg0,_swigarg1)) | |
3396 | static PyObject *_wrap_wxPyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3397 | PyObject * _resultobj; | |
3398 | wxPyControl * _arg0; | |
3399 | int * _arg1; | |
3400 | int temp; | |
3401 | int * _arg2; | |
3402 | int temp0; | |
3403 | PyObject * _argo0 = 0; | |
3404 | char *_kwnames[] = { "self", NULL }; | |
3405 | ||
3406 | self = self; | |
3407 | { | |
3408 | _arg1 = &temp; | |
3409 | } | |
3410 | { | |
3411 | _arg2 = &temp0; | |
3412 | } | |
3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetPosition",_kwnames,&_argo0)) | |
3414 | return NULL; | |
3415 | if (_argo0) { | |
3416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetPosition. Expected _wxPyControl_p."); | |
3419 | return NULL; | |
3420 | } | |
3421 | } | |
3422 | { | |
3423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3424 | wxPyControl_base_DoGetPosition(_arg0,_arg1,_arg2); | |
3425 | ||
3426 | wxPyEndAllowThreads(__tstate); | |
3427 | if (PyErr_Occurred()) return NULL; | |
3428 | } Py_INCREF(Py_None); | |
3429 | _resultobj = Py_None; | |
3430 | { | |
3431 | PyObject *o; | |
3432 | o = PyInt_FromLong((long) (*_arg1)); | |
3433 | _resultobj = t_output_helper(_resultobj, o); | |
3434 | } | |
3435 | { | |
3436 | PyObject *o; | |
3437 | o = PyInt_FromLong((long) (*_arg2)); | |
3438 | _resultobj = t_output_helper(_resultobj, o); | |
3439 | } | |
3440 | return _resultobj; | |
3441 | } | |
3442 | ||
3443 | #define wxPyControl_base_DoGetVirtualSize(_swigobj) (_swigobj->base_DoGetVirtualSize()) | |
3444 | static PyObject *_wrap_wxPyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3445 | PyObject * _resultobj; | |
3446 | wxSize * _result; | |
3447 | wxPyControl * _arg0; | |
3448 | PyObject * _argo0 = 0; | |
3449 | char *_kwnames[] = { "self", NULL }; | |
3450 | char _ptemp[128]; | |
3451 | ||
3452 | self = self; | |
3453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetVirtualSize",_kwnames,&_argo0)) | |
3454 | return NULL; | |
3455 | if (_argo0) { | |
3456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetVirtualSize. Expected _wxPyControl_p."); | |
3459 | return NULL; | |
3460 | } | |
3461 | } | |
3462 | { | |
3463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3464 | _result = new wxSize (wxPyControl_base_DoGetVirtualSize(_arg0)); | |
3465 | ||
3466 | wxPyEndAllowThreads(__tstate); | |
3467 | if (PyErr_Occurred()) return NULL; | |
3468 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
3469 | _resultobj = Py_BuildValue("s",_ptemp); | |
3470 | return _resultobj; | |
3471 | } | |
3472 | ||
3473 | #define wxPyControl_base_DoGetBestSize(_swigobj) (_swigobj->base_DoGetBestSize()) | |
3474 | static PyObject *_wrap_wxPyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject * _resultobj; | |
3476 | wxSize * _result; | |
3477 | wxPyControl * _arg0; | |
3478 | PyObject * _argo0 = 0; | |
3479 | char *_kwnames[] = { "self", NULL }; | |
3480 | char _ptemp[128]; | |
3481 | ||
3482 | self = self; | |
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetBestSize",_kwnames,&_argo0)) | |
3484 | return NULL; | |
3485 | if (_argo0) { | |
3486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetBestSize. Expected _wxPyControl_p."); | |
3489 | return NULL; | |
3490 | } | |
3491 | } | |
3492 | { | |
3493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3494 | _result = new wxSize (wxPyControl_base_DoGetBestSize(_arg0)); | |
3495 | ||
3496 | wxPyEndAllowThreads(__tstate); | |
3497 | if (PyErr_Occurred()) return NULL; | |
3498 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
3499 | _resultobj = Py_BuildValue("s",_ptemp); | |
3500 | return _resultobj; | |
3501 | } | |
3502 | ||
3503 | #define wxPyControl_base_InitDialog(_swigobj) (_swigobj->base_InitDialog()) | |
3504 | static PyObject *_wrap_wxPyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3505 | PyObject * _resultobj; | |
3506 | wxPyControl * _arg0; | |
3507 | PyObject * _argo0 = 0; | |
3508 | char *_kwnames[] = { "self", NULL }; | |
3509 | ||
3510 | self = self; | |
3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_InitDialog",_kwnames,&_argo0)) | |
3512 | return NULL; | |
3513 | if (_argo0) { | |
3514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_InitDialog. Expected _wxPyControl_p."); | |
3517 | return NULL; | |
3518 | } | |
3519 | } | |
3520 | { | |
3521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3522 | wxPyControl_base_InitDialog(_arg0); | |
3523 | ||
3524 | wxPyEndAllowThreads(__tstate); | |
3525 | if (PyErr_Occurred()) return NULL; | |
3526 | } Py_INCREF(Py_None); | |
3527 | _resultobj = Py_None; | |
3528 | return _resultobj; | |
3529 | } | |
3530 | ||
3531 | #define wxPyControl_base_TransferDataToWindow(_swigobj) (_swigobj->base_TransferDataToWindow()) | |
3532 | static PyObject *_wrap_wxPyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3533 | PyObject * _resultobj; | |
3534 | bool _result; | |
3535 | wxPyControl * _arg0; | |
3536 | PyObject * _argo0 = 0; | |
3537 | char *_kwnames[] = { "self", NULL }; | |
3538 | ||
3539 | self = self; | |
3540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_TransferDataToWindow",_kwnames,&_argo0)) | |
3541 | return NULL; | |
3542 | if (_argo0) { | |
3543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_TransferDataToWindow. Expected _wxPyControl_p."); | |
3546 | return NULL; | |
3547 | } | |
3548 | } | |
3549 | { | |
3550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3551 | _result = (bool )wxPyControl_base_TransferDataToWindow(_arg0); | |
3552 | ||
3553 | wxPyEndAllowThreads(__tstate); | |
3554 | if (PyErr_Occurred()) return NULL; | |
3555 | } _resultobj = Py_BuildValue("i",_result); | |
3556 | return _resultobj; | |
3557 | } | |
3558 | ||
3559 | #define wxPyControl_base_TransferDataFromWindow(_swigobj) (_swigobj->base_TransferDataFromWindow()) | |
3560 | static PyObject *_wrap_wxPyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3561 | PyObject * _resultobj; | |
3562 | bool _result; | |
3563 | wxPyControl * _arg0; | |
3564 | PyObject * _argo0 = 0; | |
3565 | char *_kwnames[] = { "self", NULL }; | |
3566 | ||
3567 | self = self; | |
3568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_TransferDataFromWindow",_kwnames,&_argo0)) | |
3569 | return NULL; | |
3570 | if (_argo0) { | |
3571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_TransferDataFromWindow. Expected _wxPyControl_p."); | |
3574 | return NULL; | |
3575 | } | |
3576 | } | |
3577 | { | |
3578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3579 | _result = (bool )wxPyControl_base_TransferDataFromWindow(_arg0); | |
3580 | ||
3581 | wxPyEndAllowThreads(__tstate); | |
3582 | if (PyErr_Occurred()) return NULL; | |
3583 | } _resultobj = Py_BuildValue("i",_result); | |
3584 | return _resultobj; | |
3585 | } | |
3586 | ||
3587 | #define wxPyControl_base_Validate(_swigobj) (_swigobj->base_Validate()) | |
3588 | static PyObject *_wrap_wxPyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3589 | PyObject * _resultobj; | |
3590 | bool _result; | |
3591 | wxPyControl * _arg0; | |
3592 | PyObject * _argo0 = 0; | |
3593 | char *_kwnames[] = { "self", NULL }; | |
3594 | ||
3595 | self = self; | |
3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_Validate",_kwnames,&_argo0)) | |
3597 | return NULL; | |
3598 | if (_argo0) { | |
3599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_Validate. Expected _wxPyControl_p."); | |
3602 | return NULL; | |
3603 | } | |
3604 | } | |
3605 | { | |
3606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3607 | _result = (bool )wxPyControl_base_Validate(_arg0); | |
3608 | ||
3609 | wxPyEndAllowThreads(__tstate); | |
3610 | if (PyErr_Occurred()) return NULL; | |
3611 | } _resultobj = Py_BuildValue("i",_result); | |
3612 | return _resultobj; | |
3613 | } | |
3614 | ||
3615 | #define wxPyControl_base_AcceptsFocus(_swigobj) (_swigobj->base_AcceptsFocus()) | |
3616 | static PyObject *_wrap_wxPyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3617 | PyObject * _resultobj; | |
3618 | bool _result; | |
3619 | wxPyControl * _arg0; | |
3620 | PyObject * _argo0 = 0; | |
3621 | char *_kwnames[] = { "self", NULL }; | |
3622 | ||
3623 | self = self; | |
3624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_AcceptsFocus",_kwnames,&_argo0)) | |
3625 | return NULL; | |
3626 | if (_argo0) { | |
3627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_AcceptsFocus. Expected _wxPyControl_p."); | |
3630 | return NULL; | |
3631 | } | |
3632 | } | |
3633 | { | |
3634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3635 | _result = (bool )wxPyControl_base_AcceptsFocus(_arg0); | |
3636 | ||
3637 | wxPyEndAllowThreads(__tstate); | |
3638 | if (PyErr_Occurred()) return NULL; | |
3639 | } _resultobj = Py_BuildValue("i",_result); | |
3640 | return _resultobj; | |
3641 | } | |
3642 | ||
3643 | #define wxPyControl_base_AcceptsFocusFromKeyboard(_swigobj) (_swigobj->base_AcceptsFocusFromKeyboard()) | |
3644 | static PyObject *_wrap_wxPyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3645 | PyObject * _resultobj; | |
3646 | bool _result; | |
3647 | wxPyControl * _arg0; | |
3648 | PyObject * _argo0 = 0; | |
3649 | char *_kwnames[] = { "self", NULL }; | |
3650 | ||
3651 | self = self; | |
3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_AcceptsFocusFromKeyboard",_kwnames,&_argo0)) | |
3653 | return NULL; | |
3654 | if (_argo0) { | |
3655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_AcceptsFocusFromKeyboard. Expected _wxPyControl_p."); | |
3658 | return NULL; | |
3659 | } | |
3660 | } | |
3661 | { | |
3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3663 | _result = (bool )wxPyControl_base_AcceptsFocusFromKeyboard(_arg0); | |
3664 | ||
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) return NULL; | |
3667 | } _resultobj = Py_BuildValue("i",_result); | |
3668 | return _resultobj; | |
3669 | } | |
3670 | ||
3671 | #define wxPyControl_base_GetMaxSize(_swigobj) (_swigobj->base_GetMaxSize()) | |
3672 | static PyObject *_wrap_wxPyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3673 | PyObject * _resultobj; | |
3674 | wxSize * _result; | |
3675 | wxPyControl * _arg0; | |
3676 | PyObject * _argo0 = 0; | |
3677 | char *_kwnames[] = { "self", NULL }; | |
3678 | char _ptemp[128]; | |
3679 | ||
3680 | self = self; | |
3681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_GetMaxSize",_kwnames,&_argo0)) | |
3682 | return NULL; | |
3683 | if (_argo0) { | |
3684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) { | |
3686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_GetMaxSize. Expected _wxPyControl_p."); | |
3687 | return NULL; | |
3688 | } | |
3689 | } | |
3690 | { | |
3691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3692 | _result = new wxSize (wxPyControl_base_GetMaxSize(_arg0)); | |
3693 | ||
3694 | wxPyEndAllowThreads(__tstate); | |
3695 | if (PyErr_Occurred()) return NULL; | |
3696 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
3697 | _resultobj = Py_BuildValue("s",_ptemp); | |
3698 | return _resultobj; | |
3699 | } | |
3700 | ||
3701 | static PyMethodDef windows2cMethods[] = { | |
3702 | { "wxPyControl_base_GetMaxSize", (PyCFunction) _wrap_wxPyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
3703 | { "wxPyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_wxPyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
3704 | { "wxPyControl_base_AcceptsFocus", (PyCFunction) _wrap_wxPyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
3705 | { "wxPyControl_base_Validate", (PyCFunction) _wrap_wxPyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
3706 | { "wxPyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_wxPyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
3707 | { "wxPyControl_base_TransferDataToWindow", (PyCFunction) _wrap_wxPyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
3708 | { "wxPyControl_base_InitDialog", (PyCFunction) _wrap_wxPyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
3709 | { "wxPyControl_base_DoGetBestSize", (PyCFunction) _wrap_wxPyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
3710 | { "wxPyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_wxPyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
3711 | { "wxPyControl_base_DoGetPosition", (PyCFunction) _wrap_wxPyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
3712 | { "wxPyControl_base_DoGetClientSize", (PyCFunction) _wrap_wxPyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
3713 | { "wxPyControl_base_DoGetSize", (PyCFunction) _wrap_wxPyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
3714 | { "wxPyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_wxPyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
3715 | { "wxPyControl_base_DoSetClientSize", (PyCFunction) _wrap_wxPyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
3716 | { "wxPyControl_base_DoSetSize", (PyCFunction) _wrap_wxPyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
3717 | { "wxPyControl_base_DoMoveWindow", (PyCFunction) _wrap_wxPyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
3718 | { "wxPyControl__setCallbackInfo", (PyCFunction) _wrap_wxPyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
3719 | { "new_wxPyControl", (PyCFunction) _wrap_new_wxPyControl, METH_VARARGS | METH_KEYWORDS }, | |
3720 | { "wxPyWindow_base_GetMaxSize", (PyCFunction) _wrap_wxPyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
3721 | { "wxPyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_wxPyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
3722 | { "wxPyWindow_base_AcceptsFocus", (PyCFunction) _wrap_wxPyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
3723 | { "wxPyWindow_base_Validate", (PyCFunction) _wrap_wxPyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
3724 | { "wxPyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_wxPyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
3725 | { "wxPyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_wxPyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
3726 | { "wxPyWindow_base_InitDialog", (PyCFunction) _wrap_wxPyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
3727 | { "wxPyWindow_base_DoGetBestSize", (PyCFunction) _wrap_wxPyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
3728 | { "wxPyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_wxPyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
3729 | { "wxPyWindow_base_DoGetPosition", (PyCFunction) _wrap_wxPyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
3730 | { "wxPyWindow_base_DoGetClientSize", (PyCFunction) _wrap_wxPyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
3731 | { "wxPyWindow_base_DoGetSize", (PyCFunction) _wrap_wxPyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
3732 | { "wxPyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_wxPyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
3733 | { "wxPyWindow_base_DoSetClientSize", (PyCFunction) _wrap_wxPyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
3734 | { "wxPyWindow_base_DoSetSize", (PyCFunction) _wrap_wxPyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
3735 | { "wxPyWindow_base_DoMoveWindow", (PyCFunction) _wrap_wxPyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
3736 | { "wxPyWindow__setCallbackInfo", (PyCFunction) _wrap_wxPyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
3737 | { "new_wxPyWindow", (PyCFunction) _wrap_new_wxPyWindow, METH_VARARGS | METH_KEYWORDS }, | |
3738 | { "wxSplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_wxSplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
3739 | { "wxSplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_wxSplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
3740 | { "wxSplitterWindow_SizeWindows", (PyCFunction) _wrap_wxSplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
3741 | { "wxSplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_wxSplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
3742 | { "wxSplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_wxSplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
3743 | { "wxSplitterWindow_GetSashPosition", (PyCFunction) _wrap_wxSplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
3744 | { "wxSplitterWindow_SetSashPosition", (PyCFunction) _wrap_wxSplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
3745 | { "wxSplitterWindow_GetBorderSize", (PyCFunction) _wrap_wxSplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
3746 | { "wxSplitterWindow_GetSashSize", (PyCFunction) _wrap_wxSplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
3747 | { "wxSplitterWindow_SetBorderSize", (PyCFunction) _wrap_wxSplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
3748 | { "wxSplitterWindow_SetSashSize", (PyCFunction) _wrap_wxSplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
3749 | { "wxSplitterWindow_IsSplit", (PyCFunction) _wrap_wxSplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
3750 | { "wxSplitterWindow_ReplaceWindow", (PyCFunction) _wrap_wxSplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
3751 | { "wxSplitterWindow_Unsplit", (PyCFunction) _wrap_wxSplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
3752 | { "wxSplitterWindow_SplitHorizontally", (PyCFunction) _wrap_wxSplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
3753 | { "wxSplitterWindow_SplitVertically", (PyCFunction) _wrap_wxSplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
3754 | { "wxSplitterWindow_Initialize", (PyCFunction) _wrap_wxSplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
3755 | { "wxSplitterWindow_GetSplitMode", (PyCFunction) _wrap_wxSplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
3756 | { "wxSplitterWindow_SetSplitMode", (PyCFunction) _wrap_wxSplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
3757 | { "wxSplitterWindow_GetWindow2", (PyCFunction) _wrap_wxSplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
3758 | { "wxSplitterWindow_GetWindow1", (PyCFunction) _wrap_wxSplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
3759 | { "wxSplitterWindow_Create", (PyCFunction) _wrap_wxSplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
3760 | { "new_wxPreSplitterWindow", (PyCFunction) _wrap_new_wxPreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
3761 | { "new_wxSplitterWindow", (PyCFunction) _wrap_new_wxSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
3762 | { "wxSplitterEvent_SetSashPosition", (PyCFunction) _wrap_wxSplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
3763 | { "wxSplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_wxSplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
3764 | { "wxSplitterEvent_GetY", (PyCFunction) _wrap_wxSplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
3765 | { "wxSplitterEvent_GetX", (PyCFunction) _wrap_wxSplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
3766 | { "wxSplitterEvent_GetSashPosition", (PyCFunction) _wrap_wxSplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
3767 | { "new_wxSplitterEvent", (PyCFunction) _wrap_new_wxSplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
3768 | { "wxNotebook_ResizeChildren", (PyCFunction) _wrap_wxNotebook_ResizeChildren, METH_VARARGS | METH_KEYWORDS }, | |
3769 | { "wxNotebook_GetPage", (PyCFunction) _wrap_wxNotebook_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
3770 | { "wxNotebook_InsertPage", (PyCFunction) _wrap_wxNotebook_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
3771 | { "wxNotebook_AddPage", (PyCFunction) _wrap_wxNotebook_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
3772 | { "wxNotebook_DeleteAllPages", (PyCFunction) _wrap_wxNotebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
3773 | { "wxNotebook_RemovePage", (PyCFunction) _wrap_wxNotebook_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
3774 | { "wxNotebook_DeletePage", (PyCFunction) _wrap_wxNotebook_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
3775 | { "wxNotebook_SetPadding", (PyCFunction) _wrap_wxNotebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
3776 | { "wxNotebook_SetPageSize", (PyCFunction) _wrap_wxNotebook_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
3777 | { "wxNotebook_GetRowCount", (PyCFunction) _wrap_wxNotebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
3778 | { "wxNotebook_SetPageImage", (PyCFunction) _wrap_wxNotebook_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
3779 | { "wxNotebook_GetPageImage", (PyCFunction) _wrap_wxNotebook_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
3780 | { "wxNotebook_GetImageList", (PyCFunction) _wrap_wxNotebook_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
3781 | { "wxNotebook_AssignImageList", (PyCFunction) _wrap_wxNotebook_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
3782 | { "wxNotebook_SetImageList", (PyCFunction) _wrap_wxNotebook_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
3783 | { "wxNotebook_GetPageText", (PyCFunction) _wrap_wxNotebook_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
3784 | { "wxNotebook_SetPageText", (PyCFunction) _wrap_wxNotebook_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
3785 | { "wxNotebook_GetSelection", (PyCFunction) _wrap_wxNotebook_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
3786 | { "wxNotebook_AdvanceSelection", (PyCFunction) _wrap_wxNotebook_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
3787 | { "wxNotebook_SetSelection", (PyCFunction) _wrap_wxNotebook_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
3788 | { "wxNotebook_GetPageCount", (PyCFunction) _wrap_wxNotebook_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
3789 | { "wxNotebook_Create", (PyCFunction) _wrap_wxNotebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
3790 | { "new_wxPreNotebook", (PyCFunction) _wrap_new_wxPreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
3791 | { "new_wxNotebook", (PyCFunction) _wrap_new_wxNotebook, METH_VARARGS | METH_KEYWORDS }, | |
3792 | { "wxNotebookEvent_SetSelection", (PyCFunction) _wrap_wxNotebookEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
3793 | { "wxNotebookEvent_SetOldSelection", (PyCFunction) _wrap_wxNotebookEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
3794 | { "wxNotebookEvent_GetOldSelection", (PyCFunction) _wrap_wxNotebookEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
3795 | { "wxNotebookEvent_GetSelection", (PyCFunction) _wrap_wxNotebookEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
3796 | { "new_wxNotebookEvent", (PyCFunction) _wrap_new_wxNotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
3797 | { NULL, NULL } | |
3798 | }; | |
3799 | #ifdef __cplusplus | |
3800 | } | |
3801 | #endif | |
3802 | /* | |
3803 | * This table is used by the pointer type-checker | |
3804 | */ | |
3805 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
3806 | { "_wxEvent","_wxSplitterEvent",SwigwxSplitterEventTowxEvent}, | |
3807 | { "_wxEvent","_wxNotebookEvent",SwigwxNotebookEventTowxEvent}, | |
3808 | { "_signed_long","_long",0}, | |
3809 | { "_wxPrintQuality","_wxCoord",0}, | |
3810 | { "_wxPrintQuality","_int",0}, | |
3811 | { "_wxPrintQuality","_signed_int",0}, | |
3812 | { "_wxPrintQuality","_unsigned_int",0}, | |
3813 | { "_wxPrintQuality","_wxWindowID",0}, | |
3814 | { "_wxPrintQuality","_uint",0}, | |
3815 | { "_wxPrintQuality","_EBool",0}, | |
3816 | { "_wxPrintQuality","_size_t",0}, | |
3817 | { "_wxPrintQuality","_time_t",0}, | |
3818 | { "_wxNotifyEvent","_wxSplitterEvent",SwigwxSplitterEventTowxNotifyEvent}, | |
3819 | { "_wxNotifyEvent","_wxNotebookEvent",SwigwxNotebookEventTowxNotifyEvent}, | |
3820 | { "_byte","_unsigned_char",0}, | |
3821 | { "_long","_unsigned_long",0}, | |
3822 | { "_long","_signed_long",0}, | |
3823 | { "_size_t","_wxCoord",0}, | |
3824 | { "_size_t","_wxPrintQuality",0}, | |
3825 | { "_size_t","_time_t",0}, | |
3826 | { "_size_t","_unsigned_int",0}, | |
3827 | { "_size_t","_int",0}, | |
3828 | { "_size_t","_wxWindowID",0}, | |
3829 | { "_size_t","_uint",0}, | |
3830 | { "_uint","_wxCoord",0}, | |
3831 | { "_uint","_wxPrintQuality",0}, | |
3832 | { "_uint","_time_t",0}, | |
3833 | { "_uint","_size_t",0}, | |
3834 | { "_uint","_unsigned_int",0}, | |
3835 | { "_uint","_int",0}, | |
3836 | { "_uint","_wxWindowID",0}, | |
3837 | { "_wxChar","_char",0}, | |
3838 | { "_wxCommandEvent","_wxSplitterEvent",SwigwxSplitterEventTowxCommandEvent}, | |
3839 | { "_wxCommandEvent","_wxNotebookEvent",SwigwxNotebookEventTowxCommandEvent}, | |
3840 | { "_char","_wxChar",0}, | |
3841 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
3842 | { "_EBool","_wxCoord",0}, | |
3843 | { "_EBool","_wxPrintQuality",0}, | |
3844 | { "_EBool","_signed_int",0}, | |
3845 | { "_EBool","_int",0}, | |
3846 | { "_EBool","_wxWindowID",0}, | |
3847 | { "_unsigned_long","_long",0}, | |
3848 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
3849 | { "_signed_int","_wxCoord",0}, | |
3850 | { "_signed_int","_wxPrintQuality",0}, | |
3851 | { "_signed_int","_EBool",0}, | |
3852 | { "_signed_int","_wxWindowID",0}, | |
3853 | { "_signed_int","_int",0}, | |
3854 | { "_WXTYPE","_short",0}, | |
3855 | { "_WXTYPE","_signed_short",0}, | |
3856 | { "_WXTYPE","_unsigned_short",0}, | |
3857 | { "_unsigned_short","_WXTYPE",0}, | |
3858 | { "_unsigned_short","_short",0}, | |
3859 | { "_wxObject","_wxPyControl",SwigwxPyControlTowxObject}, | |
3860 | { "_wxObject","_wxPyWindow",SwigwxPyWindowTowxObject}, | |
3861 | { "_wxObject","_wxSplitterWindow",SwigwxSplitterWindowTowxObject}, | |
3862 | { "_wxObject","_wxSplitterEvent",SwigwxSplitterEventTowxObject}, | |
3863 | { "_wxObject","_wxNotebook",SwigwxNotebookTowxObject}, | |
3864 | { "_wxObject","_wxNotebookEvent",SwigwxNotebookEventTowxObject}, | |
3865 | { "_signed_short","_WXTYPE",0}, | |
3866 | { "_signed_short","_short",0}, | |
3867 | { "_unsigned_char","_byte",0}, | |
3868 | { "_wxControl","_wxPyControl",SwigwxPyControlTowxControl}, | |
3869 | { "_wxControl","_wxNotebook",SwigwxNotebookTowxControl}, | |
3870 | { "_unsigned_int","_wxCoord",0}, | |
3871 | { "_unsigned_int","_wxPrintQuality",0}, | |
3872 | { "_unsigned_int","_time_t",0}, | |
3873 | { "_unsigned_int","_size_t",0}, | |
3874 | { "_unsigned_int","_uint",0}, | |
3875 | { "_unsigned_int","_wxWindowID",0}, | |
3876 | { "_unsigned_int","_int",0}, | |
3877 | { "_short","_WXTYPE",0}, | |
3878 | { "_short","_unsigned_short",0}, | |
3879 | { "_short","_signed_short",0}, | |
3880 | { "_wxWindowID","_wxCoord",0}, | |
3881 | { "_wxWindowID","_wxPrintQuality",0}, | |
3882 | { "_wxWindowID","_time_t",0}, | |
3883 | { "_wxWindowID","_size_t",0}, | |
3884 | { "_wxWindowID","_EBool",0}, | |
3885 | { "_wxWindowID","_uint",0}, | |
3886 | { "_wxWindowID","_int",0}, | |
3887 | { "_wxWindowID","_signed_int",0}, | |
3888 | { "_wxWindowID","_unsigned_int",0}, | |
3889 | { "_int","_wxCoord",0}, | |
3890 | { "_int","_wxPrintQuality",0}, | |
3891 | { "_int","_time_t",0}, | |
3892 | { "_int","_size_t",0}, | |
3893 | { "_int","_EBool",0}, | |
3894 | { "_int","_uint",0}, | |
3895 | { "_int","_wxWindowID",0}, | |
3896 | { "_int","_unsigned_int",0}, | |
3897 | { "_int","_signed_int",0}, | |
3898 | { "_time_t","_wxCoord",0}, | |
3899 | { "_time_t","_wxPrintQuality",0}, | |
3900 | { "_time_t","_unsigned_int",0}, | |
3901 | { "_time_t","_int",0}, | |
3902 | { "_time_t","_wxWindowID",0}, | |
3903 | { "_time_t","_uint",0}, | |
3904 | { "_time_t","_size_t",0}, | |
3905 | { "_wxCoord","_int",0}, | |
3906 | { "_wxCoord","_signed_int",0}, | |
3907 | { "_wxCoord","_unsigned_int",0}, | |
3908 | { "_wxCoord","_wxWindowID",0}, | |
3909 | { "_wxCoord","_uint",0}, | |
3910 | { "_wxCoord","_EBool",0}, | |
3911 | { "_wxCoord","_size_t",0}, | |
3912 | { "_wxCoord","_time_t",0}, | |
3913 | { "_wxCoord","_wxPrintQuality",0}, | |
3914 | { "_wxEvtHandler","_wxPyControl",SwigwxPyControlTowxEvtHandler}, | |
3915 | { "_wxEvtHandler","_wxPyWindow",SwigwxPyWindowTowxEvtHandler}, | |
3916 | { "_wxEvtHandler","_wxSplitterWindow",SwigwxSplitterWindowTowxEvtHandler}, | |
3917 | { "_wxEvtHandler","_wxNotebook",SwigwxNotebookTowxEvtHandler}, | |
3918 | { "_wxWindow","_wxPyControl",SwigwxPyControlTowxWindow}, | |
3919 | { "_wxWindow","_wxPyWindow",SwigwxPyWindowTowxWindow}, | |
3920 | { "_wxWindow","_wxSplitterWindow",SwigwxSplitterWindowTowxWindow}, | |
3921 | { "_wxWindow","_wxNotebook",SwigwxNotebookTowxWindow}, | |
3922 | {0,0,0}}; | |
3923 | ||
3924 | static PyObject *SWIG_globals; | |
3925 | #ifdef __cplusplus | |
3926 | extern "C" | |
3927 | #endif | |
3928 | SWIGEXPORT(void) initwindows2c() { | |
3929 | PyObject *m, *d; | |
3930 | SWIG_globals = SWIG_newvarlink(); | |
3931 | m = Py_InitModule("windows2c", windows2cMethods); | |
3932 | d = PyModule_GetDict(m); | |
3933 | PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
3934 | PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
3935 | PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
3936 | PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
3937 | PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
3938 | PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
3939 | PyDict_SetItemString(d,"wxSPLIT_HORIZONTAL", PyInt_FromLong((long) wxSPLIT_HORIZONTAL)); | |
3940 | PyDict_SetItemString(d,"wxSPLIT_VERTICAL", PyInt_FromLong((long) wxSPLIT_VERTICAL)); | |
3941 | PyDict_SetItemString(d,"wxSPLIT_DRAG_NONE", PyInt_FromLong((long) wxSPLIT_DRAG_NONE)); | |
3942 | PyDict_SetItemString(d,"wxSPLIT_DRAG_DRAGGING", PyInt_FromLong((long) wxSPLIT_DRAG_DRAGGING)); | |
3943 | PyDict_SetItemString(d,"wxSPLIT_DRAG_LEFT_DOWN", PyInt_FromLong((long) wxSPLIT_DRAG_LEFT_DOWN)); | |
3944 | { | |
3945 | int i; | |
3946 | for (i = 0; _swig_mapping[i].n1; i++) | |
3947 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
3948 | } | |
3949 | } |