]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/windows2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
8ab979d7 RD |
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 *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindows2c |
55 | ||
56 | #define SWIG_name "windows2c" | |
57 | ||
58 | #include "helpers.h" | |
f6bcfd97 | 59 | #ifdef OLD_GRID |
8ab979d7 | 60 | #include <wx/grid.h> |
f6bcfd97 | 61 | #endif |
8ab979d7 | 62 | #include <wx/notebook.h> |
9c039d08 | 63 | #include <wx/splitter.h> |
9df61a29 | 64 | #include <wx/imaglist.h> |
b639c3c5 RD |
65 | #ifdef __WXMSW__ |
66 | #include <wx/msw/taskbar.h> | |
67 | #endif | |
8ab979d7 | 68 | |
9a74fcaf RD |
69 | // Put some wx default wxChar* values into wxStrings. |
70 | DECLARE_DEF_STRING(NOTEBOOK_NAME); | |
12d1116b | 71 | DECLARE_DEF_STRING(PanelNameStr); |
9a74fcaf RD |
72 | |
73 | static const wxChar* wxSplitterNameStr = wxT("splitter"); | |
74 | DECLARE_DEF_STRING(SplitterNameStr); | |
75 | static const wxString wxPyEmptyString(wxT("")); | |
76 | ||
8ab979d7 RD |
77 | |
78 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
79 | PyObject* o2; | |
80 | PyObject* o3; | |
81 | ||
3bcd5e1c | 82 | if (!target) { |
8ab979d7 | 83 | target = o; |
3bcd5e1c | 84 | } else if (target == Py_None) { |
8ab979d7 RD |
85 | Py_DECREF(Py_None); |
86 | target = o; | |
3bcd5e1c | 87 | } else { |
8ab979d7 RD |
88 | if (!PyTuple_Check(target)) { |
89 | o2 = target; | |
90 | target = PyTuple_New(1); | |
91 | PyTuple_SetItem(target, 0, o2); | |
92 | } | |
3bcd5e1c RD |
93 | o3 = PyTuple_New(1); |
94 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
95 | |
96 | o2 = target; | |
3bcd5e1c RD |
97 | target = PySequence_Concat(o2, o3); |
98 | Py_DECREF(o2); | |
8ab979d7 RD |
99 | Py_DECREF(o3); |
100 | } | |
101 | return target; | |
102 | } | |
1d99702e RD |
103 | #ifdef __cplusplus |
104 | extern "C" { | |
105 | #endif | |
bb0054cd RD |
106 | static void *SwigwxNotebookEventTowxNotifyEvent(void *ptr) { |
107 | wxNotebookEvent *src; | |
108 | wxNotifyEvent *dest; | |
109 | src = (wxNotebookEvent *) ptr; | |
110 | dest = (wxNotifyEvent *) src; | |
111 | return (void *) dest; | |
112 | } | |
113 | ||
8ab979d7 RD |
114 | static void *SwigwxNotebookEventTowxCommandEvent(void *ptr) { |
115 | wxNotebookEvent *src; | |
116 | wxCommandEvent *dest; | |
117 | src = (wxNotebookEvent *) ptr; | |
118 | dest = (wxCommandEvent *) src; | |
119 | return (void *) dest; | |
120 | } | |
121 | ||
122 | static void *SwigwxNotebookEventTowxEvent(void *ptr) { | |
123 | wxNotebookEvent *src; | |
124 | wxEvent *dest; | |
125 | src = (wxNotebookEvent *) ptr; | |
126 | dest = (wxEvent *) src; | |
127 | return (void *) dest; | |
128 | } | |
129 | ||
9df61a29 RD |
130 | static void *SwigwxNotebookEventTowxObject(void *ptr) { |
131 | wxNotebookEvent *src; | |
132 | wxObject *dest; | |
133 | src = (wxNotebookEvent *) ptr; | |
134 | dest = (wxObject *) src; | |
135 | return (void *) dest; | |
136 | } | |
137 | ||
aa2a5b86 RD |
138 | #define new_wxNotebookEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxNotebookEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
139 | static PyObject *_wrap_new_wxNotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
140 | PyObject * _resultobj; | |
141 | wxNotebookEvent * _result; | |
142 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
143 | int _arg1 = (int ) 0; | |
144 | int _arg2 = (int ) -1; | |
145 | int _arg3 = (int ) -1; | |
146 | char *_kwnames[] = { "commandType","id","nSel","nOldSel", NULL }; | |
147 | char _ptemp[128]; | |
148 | ||
149 | self = self; | |
150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxNotebookEvent",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
151 | return NULL; | |
152 | { | |
474c48f9 | 153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 154 | _result = (wxNotebookEvent *)new_wxNotebookEvent(_arg0,_arg1,_arg2,_arg3); |
aa2a5b86 | 155 | |
474c48f9 | 156 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
157 | if (PyErr_Occurred()) return NULL; |
158 | } if (_result) { | |
159 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebookEvent_p"); | |
160 | _resultobj = Py_BuildValue("s",_ptemp); | |
161 | } else { | |
162 | Py_INCREF(Py_None); | |
163 | _resultobj = Py_None; | |
164 | } | |
165 | return _resultobj; | |
166 | } | |
167 | ||
8ab979d7 | 168 | #define wxNotebookEvent_GetSelection(_swigobj) (_swigobj->GetSelection()) |
efc5f224 | 169 | static PyObject *_wrap_wxNotebookEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
170 | PyObject * _resultobj; |
171 | int _result; | |
172 | wxNotebookEvent * _arg0; | |
1d99702e | 173 | PyObject * _argo0 = 0; |
efc5f224 | 174 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
175 | |
176 | self = self; | |
efc5f224 | 177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookEvent_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 178 | return NULL; |
1d99702e RD |
179 | if (_argo0) { |
180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) { | |
8ab979d7 RD |
182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_GetSelection. Expected _wxNotebookEvent_p."); |
183 | return NULL; | |
184 | } | |
185 | } | |
cf694132 | 186 | { |
474c48f9 | 187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 188 | _result = (int )wxNotebookEvent_GetSelection(_arg0); |
cf694132 | 189 | |
474c48f9 | 190 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 192 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
193 | return _resultobj; |
194 | } | |
195 | ||
196 | #define wxNotebookEvent_GetOldSelection(_swigobj) (_swigobj->GetOldSelection()) | |
efc5f224 | 197 | static PyObject *_wrap_wxNotebookEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
198 | PyObject * _resultobj; |
199 | int _result; | |
200 | wxNotebookEvent * _arg0; | |
1d99702e | 201 | PyObject * _argo0 = 0; |
efc5f224 | 202 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
203 | |
204 | self = self; | |
efc5f224 | 205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookEvent_GetOldSelection",_kwnames,&_argo0)) |
8ab979d7 | 206 | return NULL; |
1d99702e RD |
207 | if (_argo0) { |
208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) { | |
8ab979d7 RD |
210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_GetOldSelection. Expected _wxNotebookEvent_p."); |
211 | return NULL; | |
212 | } | |
213 | } | |
cf694132 | 214 | { |
474c48f9 | 215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 216 | _result = (int )wxNotebookEvent_GetOldSelection(_arg0); |
cf694132 | 217 | |
474c48f9 | 218 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 219 | if (PyErr_Occurred()) return NULL; |
cf694132 | 220 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
221 | return _resultobj; |
222 | } | |
223 | ||
bb0054cd | 224 | #define wxNotebookEvent_SetOldSelection(_swigobj,_swigarg0) (_swigobj->SetOldSelection(_swigarg0)) |
efc5f224 | 225 | static PyObject *_wrap_wxNotebookEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
226 | PyObject * _resultobj; |
227 | wxNotebookEvent * _arg0; | |
228 | int _arg1; | |
1d99702e | 229 | PyObject * _argo0 = 0; |
efc5f224 | 230 | char *_kwnames[] = { "self","page", NULL }; |
bb0054cd RD |
231 | |
232 | self = self; | |
efc5f224 | 233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebookEvent_SetOldSelection",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 234 | return NULL; |
1d99702e RD |
235 | if (_argo0) { |
236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) { | |
bb0054cd RD |
238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_SetOldSelection. Expected _wxNotebookEvent_p."); |
239 | return NULL; | |
240 | } | |
241 | } | |
242 | { | |
474c48f9 | 243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 244 | wxNotebookEvent_SetOldSelection(_arg0,_arg1); |
bb0054cd | 245 | |
474c48f9 | 246 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 247 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
248 | } Py_INCREF(Py_None); |
249 | _resultobj = Py_None; | |
250 | return _resultobj; | |
251 | } | |
252 | ||
253 | #define wxNotebookEvent_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 254 | static PyObject *_wrap_wxNotebookEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
255 | PyObject * _resultobj; |
256 | wxNotebookEvent * _arg0; | |
257 | int _arg1; | |
1d99702e | 258 | PyObject * _argo0 = 0; |
efc5f224 | 259 | char *_kwnames[] = { "self","page", NULL }; |
bb0054cd RD |
260 | |
261 | self = self; | |
efc5f224 | 262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebookEvent_SetSelection",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 263 | return NULL; |
1d99702e RD |
264 | if (_argo0) { |
265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) { | |
bb0054cd RD |
267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_SetSelection. Expected _wxNotebookEvent_p."); |
268 | return NULL; | |
269 | } | |
270 | } | |
271 | { | |
474c48f9 | 272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 273 | wxNotebookEvent_SetSelection(_arg0,_arg1); |
bb0054cd | 274 | |
474c48f9 | 275 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 276 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
277 | } Py_INCREF(Py_None); |
278 | _resultobj = Py_None; | |
279 | return _resultobj; | |
280 | } | |
281 | ||
8ab979d7 RD |
282 | static void *SwigwxNotebookTowxControl(void *ptr) { |
283 | wxNotebook *src; | |
284 | wxControl *dest; | |
285 | src = (wxNotebook *) ptr; | |
286 | dest = (wxControl *) src; | |
287 | return (void *) dest; | |
288 | } | |
289 | ||
290 | static void *SwigwxNotebookTowxWindow(void *ptr) { | |
291 | wxNotebook *src; | |
292 | wxWindow *dest; | |
293 | src = (wxNotebook *) ptr; | |
294 | dest = (wxWindow *) src; | |
295 | return (void *) dest; | |
296 | } | |
297 | ||
298 | static void *SwigwxNotebookTowxEvtHandler(void *ptr) { | |
299 | wxNotebook *src; | |
300 | wxEvtHandler *dest; | |
301 | src = (wxNotebook *) ptr; | |
302 | dest = (wxEvtHandler *) src; | |
303 | return (void *) dest; | |
304 | } | |
305 | ||
9df61a29 RD |
306 | static void *SwigwxNotebookTowxObject(void *ptr) { |
307 | wxNotebook *src; | |
308 | wxObject *dest; | |
309 | src = (wxNotebook *) ptr; | |
310 | dest = (wxObject *) src; | |
311 | return (void *) dest; | |
312 | } | |
313 | ||
8ab979d7 | 314 | #define new_wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 315 | static PyObject *_wrap_new_wxNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
316 | PyObject * _resultobj; |
317 | wxNotebook * _result; | |
318 | wxWindow * _arg0; | |
319 | wxWindowID _arg1; | |
b68dc582 RD |
320 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
321 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 322 | long _arg4 = (long ) 0; |
9a74fcaf | 323 | wxString * _arg5 = (wxString *) &wxPyNOTEBOOK_NAME; |
1d99702e | 324 | PyObject * _argo0 = 0; |
2f90df85 RD |
325 | wxPoint temp; |
326 | PyObject * _obj2 = 0; | |
327 | wxSize temp0; | |
328 | PyObject * _obj3 = 0; | |
9a74fcaf | 329 | PyObject * _obj5 = 0; |
efc5f224 | 330 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
331 | char _ptemp[128]; |
332 | ||
333 | self = self; | |
9a74fcaf | 334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxNotebook",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 335 | return NULL; |
1d99702e RD |
336 | if (_argo0) { |
337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxNotebook. Expected _wxWindow_p."); |
340 | return NULL; | |
341 | } | |
342 | } | |
2f90df85 RD |
343 | if (_obj2) |
344 | { | |
345 | _arg2 = &temp; | |
346 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 347 | return NULL; |
2f90df85 RD |
348 | } |
349 | if (_obj3) | |
350 | { | |
351 | _arg3 = &temp0; | |
352 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 353 | return NULL; |
9a74fcaf RD |
354 | } |
355 | if (_obj5) | |
356 | { | |
357 | _arg5 = wxString_in_helper(_obj5); | |
358 | if (_arg5 == NULL) | |
359 | return NULL; | |
2f90df85 | 360 | } |
cf694132 | 361 | { |
474c48f9 | 362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 363 | _result = (wxNotebook *)new_wxNotebook(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 364 | |
474c48f9 | 365 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 366 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
367 | } if (_result) { |
368 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p"); | |
369 | _resultobj = Py_BuildValue("s",_ptemp); | |
370 | } else { | |
371 | Py_INCREF(Py_None); | |
372 | _resultobj = Py_None; | |
373 | } | |
9a74fcaf RD |
374 | { |
375 | if (_obj5) | |
376 | delete _arg5; | |
377 | } | |
8ab979d7 RD |
378 | return _resultobj; |
379 | } | |
380 | ||
aa2a5b86 RD |
381 | #define new_wxPreNotebook() (new wxNotebook()) |
382 | static PyObject *_wrap_new_wxPreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
383 | PyObject * _resultobj; | |
384 | wxNotebook * _result; | |
385 | char *_kwnames[] = { NULL }; | |
386 | char _ptemp[128]; | |
387 | ||
388 | self = self; | |
389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreNotebook",_kwnames)) | |
390 | return NULL; | |
391 | { | |
474c48f9 | 392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 393 | _result = (wxNotebook *)new_wxPreNotebook(); |
aa2a5b86 | 394 | |
474c48f9 | 395 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
396 | if (PyErr_Occurred()) return NULL; |
397 | } if (_result) { | |
398 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p"); | |
399 | _resultobj = Py_BuildValue("s",_ptemp); | |
400 | } else { | |
401 | Py_INCREF(Py_None); | |
402 | _resultobj = Py_None; | |
403 | } | |
404 | return _resultobj; | |
405 | } | |
406 | ||
407 | #define wxNotebook_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
408 | static PyObject *_wrap_wxNotebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
409 | PyObject * _resultobj; | |
410 | bool _result; | |
411 | wxNotebook * _arg0; | |
412 | wxWindow * _arg1; | |
413 | wxWindowID _arg2; | |
414 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
415 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
416 | long _arg5 = (long ) 0; | |
9a74fcaf | 417 | wxString * _arg6 = (wxString *) &wxPyNOTEBOOK_NAME; |
aa2a5b86 RD |
418 | PyObject * _argo0 = 0; |
419 | PyObject * _argo1 = 0; | |
420 | wxPoint temp; | |
421 | PyObject * _obj3 = 0; | |
422 | wxSize temp0; | |
423 | PyObject * _obj4 = 0; | |
9a74fcaf | 424 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
425 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
426 | ||
427 | self = self; | |
9a74fcaf | 428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxNotebook_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
429 | return NULL; |
430 | if (_argo0) { | |
431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_Create. Expected _wxNotebook_p."); | |
434 | return NULL; | |
435 | } | |
436 | } | |
437 | if (_argo1) { | |
438 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
439 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_Create. Expected _wxWindow_p."); | |
441 | return NULL; | |
442 | } | |
443 | } | |
444 | if (_obj3) | |
445 | { | |
446 | _arg3 = &temp; | |
447 | if (! wxPoint_helper(_obj3, &_arg3)) | |
448 | return NULL; | |
449 | } | |
450 | if (_obj4) | |
451 | { | |
452 | _arg4 = &temp0; | |
453 | if (! wxSize_helper(_obj4, &_arg4)) | |
454 | return NULL; | |
9a74fcaf RD |
455 | } |
456 | if (_obj6) | |
457 | { | |
458 | _arg6 = wxString_in_helper(_obj6); | |
459 | if (_arg6 == NULL) | |
460 | return NULL; | |
aa2a5b86 RD |
461 | } |
462 | { | |
474c48f9 | 463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 464 | _result = (bool )wxNotebook_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 465 | |
474c48f9 | 466 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
467 | if (PyErr_Occurred()) return NULL; |
468 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
469 | { |
470 | if (_obj6) | |
471 | delete _arg6; | |
472 | } | |
aa2a5b86 RD |
473 | return _resultobj; |
474 | } | |
475 | ||
8ab979d7 | 476 | #define wxNotebook_GetPageCount(_swigobj) (_swigobj->GetPageCount()) |
efc5f224 | 477 | static PyObject *_wrap_wxNotebook_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
478 | PyObject * _resultobj; |
479 | int _result; | |
480 | wxNotebook * _arg0; | |
1d99702e | 481 | PyObject * _argo0 = 0; |
efc5f224 | 482 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
483 | |
484 | self = self; | |
efc5f224 | 485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetPageCount",_kwnames,&_argo0)) |
8ab979d7 | 486 | return NULL; |
1d99702e RD |
487 | if (_argo0) { |
488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageCount. Expected _wxNotebook_p."); |
491 | return NULL; | |
492 | } | |
493 | } | |
cf694132 | 494 | { |
474c48f9 | 495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 496 | _result = (int )wxNotebook_GetPageCount(_arg0); |
cf694132 | 497 | |
474c48f9 | 498 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 499 | if (PyErr_Occurred()) return NULL; |
cf694132 | 500 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
501 | return _resultobj; |
502 | } | |
503 | ||
504 | #define wxNotebook_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 505 | static PyObject *_wrap_wxNotebook_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
506 | PyObject * _resultobj; |
507 | int _result; | |
508 | wxNotebook * _arg0; | |
509 | int _arg1; | |
1d99702e | 510 | PyObject * _argo0 = 0; |
efc5f224 | 511 | char *_kwnames[] = { "self","nPage", NULL }; |
8ab979d7 RD |
512 | |
513 | self = self; | |
efc5f224 | 514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 515 | return NULL; |
1d99702e RD |
516 | if (_argo0) { |
517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetSelection. Expected _wxNotebook_p."); |
520 | return NULL; | |
521 | } | |
522 | } | |
cf694132 | 523 | { |
474c48f9 | 524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 525 | _result = (int )wxNotebook_SetSelection(_arg0,_arg1); |
cf694132 | 526 | |
474c48f9 | 527 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 528 | if (PyErr_Occurred()) return NULL; |
cf694132 | 529 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
530 | return _resultobj; |
531 | } | |
532 | ||
533 | #define wxNotebook_AdvanceSelection(_swigobj,_swigarg0) (_swigobj->AdvanceSelection(_swigarg0)) | |
efc5f224 | 534 | static PyObject *_wrap_wxNotebook_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
535 | PyObject * _resultobj; |
536 | wxNotebook * _arg0; | |
1d99702e RD |
537 | bool _arg1 = (bool ) TRUE; |
538 | PyObject * _argo0 = 0; | |
539 | int tempbool1 = (int) TRUE; | |
efc5f224 | 540 | char *_kwnames[] = { "self","bForward", NULL }; |
8ab979d7 RD |
541 | |
542 | self = self; | |
efc5f224 | 543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxNotebook_AdvanceSelection",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 544 | return NULL; |
1d99702e RD |
545 | if (_argo0) { |
546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AdvanceSelection. Expected _wxNotebook_p."); |
549 | return NULL; | |
550 | } | |
551 | } | |
552 | _arg1 = (bool ) tempbool1; | |
cf694132 | 553 | { |
474c48f9 | 554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 555 | wxNotebook_AdvanceSelection(_arg0,_arg1); |
cf694132 | 556 | |
474c48f9 | 557 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 558 | if (PyErr_Occurred()) return NULL; |
cf694132 | 559 | } Py_INCREF(Py_None); |
8ab979d7 RD |
560 | _resultobj = Py_None; |
561 | return _resultobj; | |
562 | } | |
563 | ||
564 | #define wxNotebook_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 565 | static PyObject *_wrap_wxNotebook_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
566 | PyObject * _resultobj; |
567 | int _result; | |
568 | wxNotebook * _arg0; | |
1d99702e | 569 | PyObject * _argo0 = 0; |
efc5f224 | 570 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
571 | |
572 | self = self; | |
efc5f224 | 573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 574 | return NULL; |
1d99702e RD |
575 | if (_argo0) { |
576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetSelection. Expected _wxNotebook_p."); |
579 | return NULL; | |
580 | } | |
581 | } | |
cf694132 | 582 | { |
474c48f9 | 583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 584 | _result = (int )wxNotebook_GetSelection(_arg0); |
cf694132 | 585 | |
474c48f9 | 586 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 587 | if (PyErr_Occurred()) return NULL; |
cf694132 | 588 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
589 | return _resultobj; |
590 | } | |
591 | ||
592 | #define wxNotebook_SetPageText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPageText(_swigarg0,_swigarg1)) | |
efc5f224 | 593 | static PyObject *_wrap_wxNotebook_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
594 | PyObject * _resultobj; |
595 | bool _result; | |
596 | wxNotebook * _arg0; | |
597 | int _arg1; | |
598 | wxString * _arg2; | |
1d99702e | 599 | PyObject * _argo0 = 0; |
8ab979d7 | 600 | PyObject * _obj2 = 0; |
efc5f224 | 601 | char *_kwnames[] = { "self","nPage","strText", NULL }; |
8ab979d7 RD |
602 | |
603 | self = self; | |
efc5f224 | 604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxNotebook_SetPageText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 605 | return NULL; |
1d99702e RD |
606 | if (_argo0) { |
607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageText. Expected _wxNotebook_p."); |
610 | return NULL; | |
611 | } | |
612 | } | |
613 | { | |
c8bc7bb8 RD |
614 | _arg2 = wxString_in_helper(_obj2); |
615 | if (_arg2 == NULL) | |
8ab979d7 | 616 | return NULL; |
8ab979d7 | 617 | } |
cf694132 | 618 | { |
474c48f9 | 619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 620 | _result = (bool )wxNotebook_SetPageText(_arg0,_arg1,*_arg2); |
cf694132 | 621 | |
474c48f9 | 622 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 623 | if (PyErr_Occurred()) return NULL; |
cf694132 | 624 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
625 | { |
626 | if (_obj2) | |
627 | delete _arg2; | |
628 | } | |
629 | return _resultobj; | |
630 | } | |
631 | ||
632 | #define wxNotebook_GetPageText(_swigobj,_swigarg0) (_swigobj->GetPageText(_swigarg0)) | |
efc5f224 | 633 | static PyObject *_wrap_wxNotebook_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
634 | PyObject * _resultobj; |
635 | wxString * _result; | |
636 | wxNotebook * _arg0; | |
637 | int _arg1; | |
1d99702e | 638 | PyObject * _argo0 = 0; |
efc5f224 | 639 | char *_kwnames[] = { "self","nPage", NULL }; |
8ab979d7 RD |
640 | |
641 | self = self; | |
efc5f224 | 642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPageText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 643 | return NULL; |
1d99702e RD |
644 | if (_argo0) { |
645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageText. Expected _wxNotebook_p."); |
648 | return NULL; | |
649 | } | |
650 | } | |
8ab979d7 | 651 | { |
474c48f9 | 652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 653 | _result = new wxString (wxNotebook_GetPageText(_arg0,_arg1)); |
cf694132 | 654 | |
474c48f9 | 655 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 656 | if (PyErr_Occurred()) return NULL; |
cf694132 | 657 | }{ |
c8bc7bb8 RD |
658 | #if wxUSE_UNICODE |
659 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
660 | #else | |
eec92d76 | 661 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 662 | #endif |
8ab979d7 RD |
663 | } |
664 | { | |
665 | delete _result; | |
666 | } | |
667 | return _resultobj; | |
668 | } | |
669 | ||
670 | #define wxNotebook_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) | |
efc5f224 | 671 | static PyObject *_wrap_wxNotebook_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
672 | PyObject * _resultobj; |
673 | wxNotebook * _arg0; | |
674 | wxImageList * _arg1; | |
1d99702e RD |
675 | PyObject * _argo0 = 0; |
676 | PyObject * _argo1 = 0; | |
efc5f224 | 677 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
678 | |
679 | self = self; | |
efc5f224 | 680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 681 | return NULL; |
1d99702e RD |
682 | if (_argo0) { |
683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetImageList. Expected _wxNotebook_p."); |
686 | return NULL; | |
687 | } | |
688 | } | |
1d99702e RD |
689 | if (_argo1) { |
690 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
691 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
8ab979d7 RD |
692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_SetImageList. Expected _wxImageList_p."); |
693 | return NULL; | |
694 | } | |
695 | } | |
cf694132 | 696 | { |
474c48f9 | 697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 698 | wxNotebook_SetImageList(_arg0,_arg1); |
cf694132 | 699 | |
474c48f9 | 700 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 701 | if (PyErr_Occurred()) return NULL; |
cf694132 | 702 | } Py_INCREF(Py_None); |
8ab979d7 RD |
703 | _resultobj = Py_None; |
704 | return _resultobj; | |
705 | } | |
706 | ||
059a841c RD |
707 | #define wxNotebook_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
708 | static PyObject *_wrap_wxNotebook_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
709 | PyObject * _resultobj; | |
710 | wxNotebook * _arg0; | |
711 | wxImageList * _arg1; | |
712 | PyObject * _argo0 = 0; | |
713 | PyObject * _argo1 = 0; | |
714 | char *_kwnames[] = { "self","imageList", NULL }; | |
715 | ||
716 | self = self; | |
717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
718 | return NULL; | |
719 | if (_argo0) { | |
720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AssignImageList. Expected _wxNotebook_p."); | |
723 | return NULL; | |
724 | } | |
725 | } | |
726 | if (_argo1) { | |
727 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
728 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_AssignImageList. Expected _wxImageList_p."); | |
730 | return NULL; | |
731 | } | |
732 | } | |
733 | { | |
474c48f9 | 734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 735 | wxNotebook_AssignImageList(_arg0,_arg1); |
059a841c | 736 | |
474c48f9 | 737 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
738 | if (PyErr_Occurred()) return NULL; |
739 | } Py_INCREF(Py_None); | |
740 | _resultobj = Py_None; | |
741 | return _resultobj; | |
742 | } | |
743 | ||
8ab979d7 | 744 | #define wxNotebook_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 745 | static PyObject *_wrap_wxNotebook_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
746 | PyObject * _resultobj; |
747 | wxImageList * _result; | |
748 | wxNotebook * _arg0; | |
1d99702e | 749 | PyObject * _argo0 = 0; |
efc5f224 | 750 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
751 | |
752 | self = self; | |
efc5f224 | 753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 754 | return NULL; |
1d99702e RD |
755 | if (_argo0) { |
756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetImageList. Expected _wxNotebook_p."); |
759 | return NULL; | |
760 | } | |
761 | } | |
cf694132 | 762 | { |
474c48f9 | 763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 764 | _result = (wxImageList *)wxNotebook_GetImageList(_arg0); |
cf694132 | 765 | |
474c48f9 | 766 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 767 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 768 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
769 | return _resultobj; |
770 | } | |
771 | ||
772 | #define wxNotebook_GetPageImage(_swigobj,_swigarg0) (_swigobj->GetPageImage(_swigarg0)) | |
efc5f224 | 773 | static PyObject *_wrap_wxNotebook_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
774 | PyObject * _resultobj; |
775 | int _result; | |
776 | wxNotebook * _arg0; | |
777 | int _arg1; | |
1d99702e | 778 | PyObject * _argo0 = 0; |
efc5f224 | 779 | char *_kwnames[] = { "self","nPage", NULL }; |
8ab979d7 RD |
780 | |
781 | self = self; | |
efc5f224 | 782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPageImage",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 783 | return NULL; |
1d99702e RD |
784 | if (_argo0) { |
785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageImage. Expected _wxNotebook_p."); |
788 | return NULL; | |
789 | } | |
790 | } | |
cf694132 | 791 | { |
474c48f9 | 792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 793 | _result = (int )wxNotebook_GetPageImage(_arg0,_arg1); |
cf694132 | 794 | |
474c48f9 | 795 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 796 | if (PyErr_Occurred()) return NULL; |
cf694132 | 797 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
798 | return _resultobj; |
799 | } | |
800 | ||
801 | #define wxNotebook_SetPageImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPageImage(_swigarg0,_swigarg1)) | |
efc5f224 | 802 | static PyObject *_wrap_wxNotebook_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
803 | PyObject * _resultobj; |
804 | bool _result; | |
805 | wxNotebook * _arg0; | |
806 | int _arg1; | |
807 | int _arg2; | |
1d99702e | 808 | PyObject * _argo0 = 0; |
efc5f224 | 809 | char *_kwnames[] = { "self","nPage","nImage", NULL }; |
8ab979d7 RD |
810 | |
811 | self = self; | |
efc5f224 | 812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxNotebook_SetPageImage",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 813 | return NULL; |
1d99702e RD |
814 | if (_argo0) { |
815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageImage. Expected _wxNotebook_p."); |
818 | return NULL; | |
819 | } | |
820 | } | |
cf694132 | 821 | { |
474c48f9 | 822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 823 | _result = (bool )wxNotebook_SetPageImage(_arg0,_arg1,_arg2); |
cf694132 | 824 | |
474c48f9 | 825 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 826 | if (PyErr_Occurred()) return NULL; |
cf694132 | 827 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
828 | return _resultobj; |
829 | } | |
830 | ||
831 | #define wxNotebook_GetRowCount(_swigobj) (_swigobj->GetRowCount()) | |
efc5f224 | 832 | static PyObject *_wrap_wxNotebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
833 | PyObject * _resultobj; |
834 | int _result; | |
835 | wxNotebook * _arg0; | |
1d99702e | 836 | PyObject * _argo0 = 0; |
efc5f224 | 837 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
838 | |
839 | self = self; | |
efc5f224 | 840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetRowCount",_kwnames,&_argo0)) |
8ab979d7 | 841 | return NULL; |
1d99702e RD |
842 | if (_argo0) { |
843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetRowCount. Expected _wxNotebook_p."); |
846 | return NULL; | |
847 | } | |
848 | } | |
cf694132 | 849 | { |
474c48f9 | 850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 851 | _result = (int )wxNotebook_GetRowCount(_arg0); |
cf694132 | 852 | |
474c48f9 | 853 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 854 | if (PyErr_Occurred()) return NULL; |
cf694132 | 855 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
856 | return _resultobj; |
857 | } | |
858 | ||
c368d904 RD |
859 | #define wxNotebook_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) |
860 | static PyObject *_wrap_wxNotebook_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
861 | PyObject * _resultobj; | |
862 | wxNotebook * _arg0; | |
863 | wxSize * _arg1; | |
864 | PyObject * _argo0 = 0; | |
865 | wxSize temp; | |
866 | PyObject * _obj1 = 0; | |
867 | char *_kwnames[] = { "self","size", NULL }; | |
868 | ||
869 | self = self; | |
870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetPageSize",_kwnames,&_argo0,&_obj1)) | |
871 | return NULL; | |
872 | if (_argo0) { | |
873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageSize. Expected _wxNotebook_p."); | |
876 | return NULL; | |
877 | } | |
878 | } | |
879 | { | |
880 | _arg1 = &temp; | |
881 | if (! wxSize_helper(_obj1, &_arg1)) | |
882 | return NULL; | |
883 | } | |
884 | { | |
474c48f9 | 885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 886 | wxNotebook_SetPageSize(_arg0,*_arg1); |
c368d904 | 887 | |
474c48f9 | 888 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 889 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
890 | } Py_INCREF(Py_None); |
891 | _resultobj = Py_None; | |
892 | return _resultobj; | |
893 | } | |
894 | ||
895 | #define wxNotebook_SetPadding(_swigobj,_swigarg0) (_swigobj->SetPadding(_swigarg0)) | |
896 | static PyObject *_wrap_wxNotebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
897 | PyObject * _resultobj; | |
898 | wxNotebook * _arg0; | |
899 | wxSize * _arg1; | |
900 | PyObject * _argo0 = 0; | |
901 | wxSize temp; | |
902 | PyObject * _obj1 = 0; | |
903 | char *_kwnames[] = { "self","padding", NULL }; | |
904 | ||
905 | self = self; | |
906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetPadding",_kwnames,&_argo0,&_obj1)) | |
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_SetPadding. Expected _wxNotebook_p."); | |
912 | return NULL; | |
913 | } | |
914 | } | |
915 | { | |
916 | _arg1 = &temp; | |
917 | if (! wxSize_helper(_obj1, &_arg1)) | |
918 | return NULL; | |
919 | } | |
920 | { | |
474c48f9 | 921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 922 | wxNotebook_SetPadding(_arg0,*_arg1); |
c368d904 | 923 | |
474c48f9 | 924 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 925 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
926 | } Py_INCREF(Py_None); |
927 | _resultobj = Py_None; | |
928 | return _resultobj; | |
929 | } | |
930 | ||
8ab979d7 | 931 | #define wxNotebook_DeletePage(_swigobj,_swigarg0) (_swigobj->DeletePage(_swigarg0)) |
efc5f224 | 932 | static PyObject *_wrap_wxNotebook_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
933 | PyObject * _resultobj; |
934 | bool _result; | |
935 | wxNotebook * _arg0; | |
936 | int _arg1; | |
1d99702e | 937 | PyObject * _argo0 = 0; |
efc5f224 | 938 | char *_kwnames[] = { "self","nPage", NULL }; |
8ab979d7 RD |
939 | |
940 | self = self; | |
efc5f224 | 941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_DeletePage",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 942 | return NULL; |
1d99702e RD |
943 | if (_argo0) { |
944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_DeletePage. Expected _wxNotebook_p."); |
947 | return NULL; | |
948 | } | |
949 | } | |
cf694132 | 950 | { |
474c48f9 | 951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 952 | _result = (bool )wxNotebook_DeletePage(_arg0,_arg1); |
cf694132 | 953 | |
474c48f9 | 954 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 955 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
956 | } _resultobj = Py_BuildValue("i",_result); |
957 | return _resultobj; | |
958 | } | |
959 | ||
960 | #define wxNotebook_RemovePage(_swigobj,_swigarg0) (_swigobj->RemovePage(_swigarg0)) | |
efc5f224 | 961 | static PyObject *_wrap_wxNotebook_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
962 | PyObject * _resultobj; |
963 | bool _result; | |
964 | wxNotebook * _arg0; | |
965 | int _arg1; | |
1d99702e | 966 | PyObject * _argo0 = 0; |
efc5f224 | 967 | char *_kwnames[] = { "self","nPage", NULL }; |
cf694132 RD |
968 | |
969 | self = self; | |
efc5f224 | 970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_RemovePage",_kwnames,&_argo0,&_arg1)) |
cf694132 | 971 | return NULL; |
1d99702e RD |
972 | if (_argo0) { |
973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
cf694132 RD |
975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_RemovePage. Expected _wxNotebook_p."); |
976 | return NULL; | |
977 | } | |
978 | } | |
979 | { | |
474c48f9 | 980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 981 | _result = (bool )wxNotebook_RemovePage(_arg0,_arg1); |
cf694132 | 982 | |
474c48f9 | 983 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 984 | if (PyErr_Occurred()) return NULL; |
cf694132 | 985 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
986 | return _resultobj; |
987 | } | |
988 | ||
989 | #define wxNotebook_DeleteAllPages(_swigobj) (_swigobj->DeleteAllPages()) | |
efc5f224 | 990 | static PyObject *_wrap_wxNotebook_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
991 | PyObject * _resultobj; |
992 | bool _result; | |
993 | wxNotebook * _arg0; | |
1d99702e | 994 | PyObject * _argo0 = 0; |
efc5f224 | 995 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
996 | |
997 | self = self; | |
efc5f224 | 998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_DeleteAllPages",_kwnames,&_argo0)) |
8ab979d7 | 999 | return NULL; |
1d99702e RD |
1000 | if (_argo0) { |
1001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
1003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_DeleteAllPages. Expected _wxNotebook_p."); |
1004 | return NULL; | |
1005 | } | |
1006 | } | |
cf694132 | 1007 | { |
474c48f9 | 1008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1009 | _result = (bool )wxNotebook_DeleteAllPages(_arg0); |
cf694132 | 1010 | |
474c48f9 | 1011 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1012 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1013 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1014 | return _resultobj; |
1015 | } | |
1016 | ||
1017 | #define wxNotebook_AddPage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddPage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 1018 | static PyObject *_wrap_wxNotebook_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1019 | PyObject * _resultobj; |
1020 | bool _result; | |
1021 | wxNotebook * _arg0; | |
1022 | wxWindow * _arg1; | |
1023 | wxString * _arg2; | |
1d99702e RD |
1024 | int _arg3 = (int ) FALSE; |
1025 | int _arg4 = (int ) -1; | |
1026 | PyObject * _argo0 = 0; | |
1027 | PyObject * _argo1 = 0; | |
8ab979d7 | 1028 | PyObject * _obj2 = 0; |
efc5f224 | 1029 | char *_kwnames[] = { "self","pPage","strText","bSelect","imageId", NULL }; |
8ab979d7 RD |
1030 | |
1031 | self = self; | |
efc5f224 | 1032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxNotebook_AddPage",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 1033 | return NULL; |
1d99702e RD |
1034 | if (_argo0) { |
1035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
1037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AddPage. Expected _wxNotebook_p."); |
1038 | return NULL; | |
1039 | } | |
1040 | } | |
1d99702e RD |
1041 | if (_argo1) { |
1042 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1043 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
1044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_AddPage. Expected _wxWindow_p."); |
1045 | return NULL; | |
1046 | } | |
1047 | } | |
1048 | { | |
c8bc7bb8 RD |
1049 | _arg2 = wxString_in_helper(_obj2); |
1050 | if (_arg2 == NULL) | |
2cd2fac8 | 1051 | return NULL; |
8ab979d7 | 1052 | } |
cf694132 | 1053 | { |
474c48f9 | 1054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1055 | _result = (bool )wxNotebook_AddPage(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 1056 | |
474c48f9 | 1057 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1058 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1059 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1060 | { |
1061 | if (_obj2) | |
1062 | delete _arg2; | |
1063 | } | |
1064 | return _resultobj; | |
1065 | } | |
1066 | ||
c368d904 RD |
1067 | #define wxNotebook_InsertPage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->InsertPage(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1068 | static PyObject *_wrap_wxNotebook_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1069 | PyObject * _resultobj; | |
1070 | bool _result; | |
1071 | wxNotebook * _arg0; | |
1072 | int _arg1; | |
1073 | wxWindow * _arg2; | |
1074 | wxString * _arg3; | |
1075 | bool _arg4 = (bool ) FALSE; | |
1076 | int _arg5 = (int ) -1; | |
1077 | PyObject * _argo0 = 0; | |
1078 | PyObject * _argo2 = 0; | |
1079 | PyObject * _obj3 = 0; | |
1080 | int tempbool4 = (int) FALSE; | |
1081 | char *_kwnames[] = { "self","nPage","pPage","strText","bSelect","imageId", NULL }; | |
1082 | ||
1083 | self = self; | |
1084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|ii:wxNotebook_InsertPage",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&tempbool4,&_arg5)) | |
1085 | return NULL; | |
1086 | if (_argo0) { | |
1087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
1089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_InsertPage. Expected _wxNotebook_p."); | |
1090 | return NULL; | |
1091 | } | |
1092 | } | |
1093 | if (_argo2) { | |
1094 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1095 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
1096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxNotebook_InsertPage. Expected _wxWindow_p."); | |
1097 | return NULL; | |
1098 | } | |
1099 | } | |
1100 | { | |
c8bc7bb8 RD |
1101 | _arg3 = wxString_in_helper(_obj3); |
1102 | if (_arg3 == NULL) | |
2cd2fac8 | 1103 | return NULL; |
c368d904 RD |
1104 | } |
1105 | _arg4 = (bool ) tempbool4; | |
1106 | { | |
474c48f9 | 1107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1108 | _result = (bool )wxNotebook_InsertPage(_arg0,_arg1,_arg2,*_arg3,_arg4,_arg5); |
c368d904 | 1109 | |
474c48f9 | 1110 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1111 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
1112 | } _resultobj = Py_BuildValue("i",_result); |
1113 | { | |
1114 | if (_obj3) | |
1115 | delete _arg3; | |
1116 | } | |
1117 | return _resultobj; | |
1118 | } | |
1119 | ||
8ab979d7 | 1120 | #define wxNotebook_GetPage(_swigobj,_swigarg0) (_swigobj->GetPage(_swigarg0)) |
efc5f224 | 1121 | static PyObject *_wrap_wxNotebook_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 1122 | PyObject * _resultobj; |
bb0054cd | 1123 | wxWindow * _result; |
8ab979d7 RD |
1124 | wxNotebook * _arg0; |
1125 | int _arg1; | |
1d99702e | 1126 | PyObject * _argo0 = 0; |
efc5f224 | 1127 | char *_kwnames[] = { "self","nPage", NULL }; |
8ab979d7 RD |
1128 | |
1129 | self = self; | |
efc5f224 | 1130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPage",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1131 | return NULL; |
1d99702e RD |
1132 | if (_argo0) { |
1133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
8ab979d7 RD |
1135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPage. Expected _wxNotebook_p."); |
1136 | return NULL; | |
1137 | } | |
1138 | } | |
cf694132 | 1139 | { |
474c48f9 | 1140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1141 | _result = (wxWindow *)wxNotebook_GetPage(_arg0,_arg1); |
cf694132 | 1142 | |
474c48f9 | 1143 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1144 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1145 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1146 | return _resultobj; |
1147 | } | |
1148 | ||
cf694132 RD |
1149 | static void wxNotebook_ResizeChildren(wxNotebook *self) { |
1150 | wxSizeEvent evt(self->GetClientSize()); | |
bb0054cd | 1151 | self->GetEventHandler()->ProcessEvent(evt); |
cf694132 | 1152 | } |
efc5f224 | 1153 | static PyObject *_wrap_wxNotebook_ResizeChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1154 | PyObject * _resultobj; |
1155 | wxNotebook * _arg0; | |
1d99702e | 1156 | PyObject * _argo0 = 0; |
efc5f224 | 1157 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
1158 | |
1159 | self = self; | |
efc5f224 | 1160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_ResizeChildren",_kwnames,&_argo0)) |
cf694132 | 1161 | return NULL; |
1d99702e RD |
1162 | if (_argo0) { |
1163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) { | |
cf694132 RD |
1165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_ResizeChildren. Expected _wxNotebook_p."); |
1166 | return NULL; | |
1167 | } | |
1168 | } | |
1169 | { | |
474c48f9 | 1170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1171 | wxNotebook_ResizeChildren(_arg0); |
cf694132 | 1172 | |
474c48f9 | 1173 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1174 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
1175 | } Py_INCREF(Py_None); |
1176 | _resultobj = Py_None; | |
1177 | return _resultobj; | |
1178 | } | |
1179 | ||
bb0054cd RD |
1180 | static void *SwigwxSplitterEventTowxCommandEvent(void *ptr) { |
1181 | wxSplitterEvent *src; | |
1182 | wxCommandEvent *dest; | |
1183 | src = (wxSplitterEvent *) ptr; | |
1184 | dest = (wxCommandEvent *) src; | |
1185 | return (void *) dest; | |
1186 | } | |
1187 | ||
1188 | static void *SwigwxSplitterEventTowxEvent(void *ptr) { | |
1189 | wxSplitterEvent *src; | |
1190 | wxEvent *dest; | |
1191 | src = (wxSplitterEvent *) ptr; | |
1192 | dest = (wxEvent *) src; | |
1193 | return (void *) dest; | |
1194 | } | |
1195 | ||
9df61a29 RD |
1196 | static void *SwigwxSplitterEventTowxObject(void *ptr) { |
1197 | wxSplitterEvent *src; | |
1198 | wxObject *dest; | |
1199 | src = (wxSplitterEvent *) ptr; | |
1200 | dest = (wxObject *) src; | |
1201 | return (void *) dest; | |
1202 | } | |
1203 | ||
aa2a5b86 RD |
1204 | #define new_wxSplitterEvent(_swigarg0,_swigarg1) (new wxSplitterEvent(_swigarg0,_swigarg1)) |
1205 | static PyObject *_wrap_new_wxSplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1206 | PyObject * _resultobj; | |
1207 | wxSplitterEvent * _result; | |
1208 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
1209 | wxSplitterWindow * _arg1 = (wxSplitterWindow *) NULL; | |
1210 | PyObject * _argo1 = 0; | |
1211 | char *_kwnames[] = { "type","splitter", NULL }; | |
1212 | char _ptemp[128]; | |
1213 | ||
1214 | self = self; | |
1215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iO:new_wxSplitterEvent",_kwnames,&_arg0,&_argo1)) | |
1216 | return NULL; | |
1217 | if (_argo1) { | |
1218 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1219 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSplitterWindow_p")) { | |
1220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxSplitterEvent. Expected _wxSplitterWindow_p."); | |
1221 | return NULL; | |
1222 | } | |
1223 | } | |
1224 | { | |
474c48f9 | 1225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1226 | _result = (wxSplitterEvent *)new_wxSplitterEvent(_arg0,_arg1); |
aa2a5b86 | 1227 | |
474c48f9 | 1228 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1229 | if (PyErr_Occurred()) return NULL; |
1230 | } if (_result) { | |
1231 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterEvent_p"); | |
1232 | _resultobj = Py_BuildValue("s",_ptemp); | |
1233 | } else { | |
1234 | Py_INCREF(Py_None); | |
1235 | _resultobj = Py_None; | |
1236 | } | |
1237 | return _resultobj; | |
1238 | } | |
1239 | ||
bb0054cd | 1240 | #define wxSplitterEvent_GetSashPosition(_swigobj) (_swigobj->GetSashPosition()) |
efc5f224 | 1241 | static PyObject *_wrap_wxSplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1242 | PyObject * _resultobj; |
1243 | int _result; | |
1244 | wxSplitterEvent * _arg0; | |
1d99702e | 1245 | PyObject * _argo0 = 0; |
efc5f224 | 1246 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
1247 | |
1248 | self = self; | |
efc5f224 | 1249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetSashPosition",_kwnames,&_argo0)) |
bb0054cd | 1250 | return NULL; |
1d99702e RD |
1251 | if (_argo0) { |
1252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
bb0054cd RD |
1254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetSashPosition. Expected _wxSplitterEvent_p."); |
1255 | return NULL; | |
1256 | } | |
1257 | } | |
1258 | { | |
474c48f9 | 1259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1260 | _result = (int )wxSplitterEvent_GetSashPosition(_arg0); |
bb0054cd | 1261 | |
474c48f9 | 1262 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1263 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1264 | } _resultobj = Py_BuildValue("i",_result); |
1265 | return _resultobj; | |
1266 | } | |
1267 | ||
1268 | #define wxSplitterEvent_GetX(_swigobj) (_swigobj->GetX()) | |
efc5f224 | 1269 | static PyObject *_wrap_wxSplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1270 | PyObject * _resultobj; |
1271 | int _result; | |
1272 | wxSplitterEvent * _arg0; | |
1d99702e | 1273 | PyObject * _argo0 = 0; |
efc5f224 | 1274 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
1275 | |
1276 | self = self; | |
efc5f224 | 1277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetX",_kwnames,&_argo0)) |
bb0054cd | 1278 | return NULL; |
1d99702e RD |
1279 | if (_argo0) { |
1280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
bb0054cd RD |
1282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetX. Expected _wxSplitterEvent_p."); |
1283 | return NULL; | |
1284 | } | |
1285 | } | |
1286 | { | |
474c48f9 | 1287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1288 | _result = (int )wxSplitterEvent_GetX(_arg0); |
bb0054cd | 1289 | |
474c48f9 | 1290 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1291 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1292 | } _resultobj = Py_BuildValue("i",_result); |
1293 | return _resultobj; | |
1294 | } | |
1295 | ||
1296 | #define wxSplitterEvent_GetY(_swigobj) (_swigobj->GetY()) | |
efc5f224 | 1297 | static PyObject *_wrap_wxSplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1298 | PyObject * _resultobj; |
1299 | int _result; | |
1300 | wxSplitterEvent * _arg0; | |
1d99702e | 1301 | PyObject * _argo0 = 0; |
efc5f224 | 1302 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
1303 | |
1304 | self = self; | |
efc5f224 | 1305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetY",_kwnames,&_argo0)) |
bb0054cd | 1306 | return NULL; |
1d99702e RD |
1307 | if (_argo0) { |
1308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
bb0054cd RD |
1310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetY. Expected _wxSplitterEvent_p."); |
1311 | return NULL; | |
1312 | } | |
1313 | } | |
1314 | { | |
474c48f9 | 1315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1316 | _result = (int )wxSplitterEvent_GetY(_arg0); |
bb0054cd | 1317 | |
474c48f9 | 1318 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1319 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1320 | } _resultobj = Py_BuildValue("i",_result); |
1321 | return _resultobj; | |
1322 | } | |
1323 | ||
1324 | #define wxSplitterEvent_GetWindowBeingRemoved(_swigobj) (_swigobj->GetWindowBeingRemoved()) | |
efc5f224 | 1325 | static PyObject *_wrap_wxSplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1326 | PyObject * _resultobj; |
1327 | wxWindow * _result; | |
1328 | wxSplitterEvent * _arg0; | |
1d99702e | 1329 | PyObject * _argo0 = 0; |
efc5f224 | 1330 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
1331 | |
1332 | self = self; | |
efc5f224 | 1333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetWindowBeingRemoved",_kwnames,&_argo0)) |
bb0054cd | 1334 | return NULL; |
1d99702e RD |
1335 | if (_argo0) { |
1336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
bb0054cd RD |
1338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetWindowBeingRemoved. Expected _wxSplitterEvent_p."); |
1339 | return NULL; | |
1340 | } | |
1341 | } | |
1342 | { | |
474c48f9 | 1343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1344 | _result = (wxWindow *)wxSplitterEvent_GetWindowBeingRemoved(_arg0); |
bb0054cd | 1345 | |
474c48f9 | 1346 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1347 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1348 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
1349 | return _resultobj; |
1350 | } | |
1351 | ||
1352 | #define wxSplitterEvent_SetSashPosition(_swigobj,_swigarg0) (_swigobj->SetSashPosition(_swigarg0)) | |
efc5f224 | 1353 | static PyObject *_wrap_wxSplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1354 | PyObject * _resultobj; |
1355 | wxSplitterEvent * _arg0; | |
1356 | int _arg1; | |
1d99702e | 1357 | PyObject * _argo0 = 0; |
efc5f224 | 1358 | char *_kwnames[] = { "self","pos", NULL }; |
bb0054cd RD |
1359 | |
1360 | self = self; | |
efc5f224 | 1361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterEvent_SetSashPosition",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1362 | return NULL; |
1d99702e RD |
1363 | if (_argo0) { |
1364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) { | |
bb0054cd RD |
1366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_SetSashPosition. Expected _wxSplitterEvent_p."); |
1367 | return NULL; | |
1368 | } | |
1369 | } | |
1370 | { | |
474c48f9 | 1371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1372 | wxSplitterEvent_SetSashPosition(_arg0,_arg1); |
bb0054cd | 1373 | |
474c48f9 | 1374 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1375 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1376 | } Py_INCREF(Py_None); |
1377 | _resultobj = Py_None; | |
1378 | return _resultobj; | |
1379 | } | |
1380 | ||
9c039d08 RD |
1381 | static void *SwigwxSplitterWindowTowxWindow(void *ptr) { |
1382 | wxSplitterWindow *src; | |
1383 | wxWindow *dest; | |
1384 | src = (wxSplitterWindow *) ptr; | |
1385 | dest = (wxWindow *) src; | |
1386 | return (void *) dest; | |
1387 | } | |
1388 | ||
1389 | static void *SwigwxSplitterWindowTowxEvtHandler(void *ptr) { | |
1390 | wxSplitterWindow *src; | |
1391 | wxEvtHandler *dest; | |
1392 | src = (wxSplitterWindow *) ptr; | |
1393 | dest = (wxEvtHandler *) src; | |
1394 | return (void *) dest; | |
1395 | } | |
1396 | ||
9df61a29 RD |
1397 | static void *SwigwxSplitterWindowTowxObject(void *ptr) { |
1398 | wxSplitterWindow *src; | |
1399 | wxObject *dest; | |
1400 | src = (wxSplitterWindow *) ptr; | |
1401 | dest = (wxObject *) src; | |
1402 | return (void *) dest; | |
1403 | } | |
1404 | ||
9c039d08 | 1405 | #define new_wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 1406 | static PyObject *_wrap_new_wxSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1407 | PyObject * _resultobj; |
1408 | wxSplitterWindow * _result; | |
1409 | wxWindow * _arg0; | |
1410 | wxWindowID _arg1; | |
b68dc582 RD |
1411 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
1412 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 1413 | long _arg4 = (long ) wxSP_3D|wxCLIP_CHILDREN; |
9a74fcaf | 1414 | wxString * _arg5 = (wxString *) &wxPySplitterNameStr; |
1d99702e | 1415 | PyObject * _argo0 = 0; |
2f90df85 RD |
1416 | wxPoint temp; |
1417 | PyObject * _obj2 = 0; | |
1418 | wxSize temp0; | |
1419 | PyObject * _obj3 = 0; | |
9a74fcaf | 1420 | PyObject * _obj5 = 0; |
efc5f224 | 1421 | char *_kwnames[] = { "parent","id","point","size","style","name", NULL }; |
9c039d08 RD |
1422 | char _ptemp[128]; |
1423 | ||
1424 | self = self; | |
9a74fcaf | 1425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxSplitterWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
9c039d08 | 1426 | return NULL; |
1d99702e RD |
1427 | if (_argo0) { |
1428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
1430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSplitterWindow. Expected _wxWindow_p."); |
1431 | return NULL; | |
1432 | } | |
1433 | } | |
2f90df85 RD |
1434 | if (_obj2) |
1435 | { | |
1436 | _arg2 = &temp; | |
1437 | if (! wxPoint_helper(_obj2, &_arg2)) | |
9c039d08 | 1438 | return NULL; |
2f90df85 RD |
1439 | } |
1440 | if (_obj3) | |
1441 | { | |
1442 | _arg3 = &temp0; | |
1443 | if (! wxSize_helper(_obj3, &_arg3)) | |
9c039d08 | 1444 | return NULL; |
9a74fcaf RD |
1445 | } |
1446 | if (_obj5) | |
1447 | { | |
1448 | _arg5 = wxString_in_helper(_obj5); | |
1449 | if (_arg5 == NULL) | |
1450 | return NULL; | |
2f90df85 | 1451 | } |
cf694132 | 1452 | { |
474c48f9 | 1453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1454 | _result = (wxSplitterWindow *)new_wxSplitterWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 1455 | |
474c48f9 | 1456 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1457 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1458 | } if (_result) { |
1459 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterWindow_p"); | |
1460 | _resultobj = Py_BuildValue("s",_ptemp); | |
1461 | } else { | |
1462 | Py_INCREF(Py_None); | |
1463 | _resultobj = Py_None; | |
1464 | } | |
9a74fcaf RD |
1465 | { |
1466 | if (_obj5) | |
1467 | delete _arg5; | |
1468 | } | |
9c039d08 RD |
1469 | return _resultobj; |
1470 | } | |
1471 | ||
aa2a5b86 RD |
1472 | #define new_wxPreSplitterWindow() (new wxSplitterWindow()) |
1473 | static PyObject *_wrap_new_wxPreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b639c3c5 | 1474 | PyObject * _resultobj; |
aa2a5b86 RD |
1475 | wxSplitterWindow * _result; |
1476 | char *_kwnames[] = { NULL }; | |
1477 | char _ptemp[128]; | |
1478 | ||
1479 | self = self; | |
1480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSplitterWindow",_kwnames)) | |
1481 | return NULL; | |
1482 | { | |
474c48f9 | 1483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1484 | _result = (wxSplitterWindow *)new_wxPreSplitterWindow(); |
aa2a5b86 | 1485 | |
474c48f9 | 1486 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1487 | if (PyErr_Occurred()) return NULL; |
1488 | } if (_result) { | |
1489 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterWindow_p"); | |
1490 | _resultobj = Py_BuildValue("s",_ptemp); | |
1491 | } else { | |
1492 | Py_INCREF(Py_None); | |
1493 | _resultobj = Py_None; | |
1494 | } | |
1495 | return _resultobj; | |
1496 | } | |
1497 | ||
1498 | #define wxSplitterWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1499 | static PyObject *_wrap_wxSplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1500 | PyObject * _resultobj; | |
1501 | bool _result; | |
b639c3c5 | 1502 | wxSplitterWindow * _arg0; |
aa2a5b86 RD |
1503 | wxWindow * _arg1; |
1504 | wxWindowID _arg2; | |
1505 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1506 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1507 | long _arg5 = (long ) wxSP_3D|wxCLIP_CHILDREN; | |
9a74fcaf | 1508 | wxString * _arg6 = (wxString *) &wxPySplitterNameStr; |
1d99702e | 1509 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
1510 | PyObject * _argo1 = 0; |
1511 | wxPoint temp; | |
1512 | PyObject * _obj3 = 0; | |
1513 | wxSize temp0; | |
1514 | PyObject * _obj4 = 0; | |
9a74fcaf | 1515 | PyObject * _obj6 = 0; |
aa2a5b86 | 1516 | char *_kwnames[] = { "self","parent","id","point","size","style","name", NULL }; |
b639c3c5 RD |
1517 | |
1518 | self = self; | |
9a74fcaf | 1519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxSplitterWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
b639c3c5 | 1520 | return NULL; |
1d99702e RD |
1521 | if (_argo0) { |
1522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 RD |
1524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Create. Expected _wxSplitterWindow_p."); |
1525 | return NULL; | |
1526 | } | |
1527 | } | |
1528 | if (_argo1) { | |
1529 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1530 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Create. Expected _wxWindow_p."); | |
b639c3c5 RD |
1532 | return NULL; |
1533 | } | |
1534 | } | |
aa2a5b86 RD |
1535 | if (_obj3) |
1536 | { | |
1537 | _arg3 = &temp; | |
1538 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1539 | return NULL; | |
1540 | } | |
1541 | if (_obj4) | |
1542 | { | |
1543 | _arg4 = &temp0; | |
1544 | if (! wxSize_helper(_obj4, &_arg4)) | |
1545 | return NULL; | |
9a74fcaf RD |
1546 | } |
1547 | if (_obj6) | |
1548 | { | |
1549 | _arg6 = wxString_in_helper(_obj6); | |
1550 | if (_arg6 == NULL) | |
1551 | return NULL; | |
aa2a5b86 | 1552 | } |
cf694132 | 1553 | { |
474c48f9 | 1554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1555 | _result = (bool )wxSplitterWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
cf694132 | 1556 | |
474c48f9 | 1557 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1558 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1559 | } _resultobj = Py_BuildValue("i",_result); |
9a74fcaf RD |
1560 | { |
1561 | if (_obj6) | |
1562 | delete _arg6; | |
1563 | } | |
b639c3c5 RD |
1564 | return _resultobj; |
1565 | } | |
1566 | ||
aa2a5b86 RD |
1567 | #define wxSplitterWindow_GetWindow1(_swigobj) (_swigobj->GetWindow1()) |
1568 | static PyObject *_wrap_wxSplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1569 | PyObject * _resultobj; |
aa2a5b86 | 1570 | wxWindow * _result; |
9c039d08 | 1571 | wxSplitterWindow * _arg0; |
1d99702e | 1572 | PyObject * _argo0 = 0; |
efc5f224 | 1573 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1574 | |
1575 | self = self; | |
aa2a5b86 | 1576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow1",_kwnames,&_argo0)) |
9c039d08 | 1577 | return NULL; |
1d99702e RD |
1578 | if (_argo0) { |
1579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 1581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetWindow1. Expected _wxSplitterWindow_p."); |
9c039d08 RD |
1582 | return NULL; |
1583 | } | |
1584 | } | |
cf694132 | 1585 | { |
474c48f9 | 1586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1587 | _result = (wxWindow *)wxSplitterWindow_GetWindow1(_arg0); |
cf694132 | 1588 | |
474c48f9 | 1589 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1590 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 1591 | }{ _resultobj = wxPyMake_wxObject(_result); } |
9c039d08 RD |
1592 | return _resultobj; |
1593 | } | |
1594 | ||
aa2a5b86 RD |
1595 | #define wxSplitterWindow_GetWindow2(_swigobj) (_swigobj->GetWindow2()) |
1596 | static PyObject *_wrap_wxSplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1597 | PyObject * _resultobj; |
aa2a5b86 | 1598 | wxWindow * _result; |
9c039d08 | 1599 | wxSplitterWindow * _arg0; |
1d99702e | 1600 | PyObject * _argo0 = 0; |
efc5f224 | 1601 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1602 | |
1603 | self = self; | |
aa2a5b86 | 1604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow2",_kwnames,&_argo0)) |
9c039d08 | 1605 | return NULL; |
1d99702e RD |
1606 | if (_argo0) { |
1607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 1609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetWindow2. Expected _wxSplitterWindow_p."); |
9c039d08 RD |
1610 | return NULL; |
1611 | } | |
1612 | } | |
cf694132 | 1613 | { |
474c48f9 | 1614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1615 | _result = (wxWindow *)wxSplitterWindow_GetWindow2(_arg0); |
cf694132 | 1616 | |
474c48f9 | 1617 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1618 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 1619 | }{ _resultobj = wxPyMake_wxObject(_result); } |
9c039d08 RD |
1620 | return _resultobj; |
1621 | } | |
1622 | ||
aa2a5b86 RD |
1623 | #define wxSplitterWindow_SetSplitMode(_swigobj,_swigarg0) (_swigobj->SetSplitMode(_swigarg0)) |
1624 | static PyObject *_wrap_wxSplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b639c3c5 | 1625 | PyObject * _resultobj; |
b639c3c5 | 1626 | wxSplitterWindow * _arg0; |
aa2a5b86 | 1627 | int _arg1; |
1d99702e | 1628 | PyObject * _argo0 = 0; |
aa2a5b86 | 1629 | char *_kwnames[] = { "self","mode", NULL }; |
b639c3c5 RD |
1630 | |
1631 | self = self; | |
aa2a5b86 | 1632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetSplitMode",_kwnames,&_argo0,&_arg1)) |
b639c3c5 | 1633 | return NULL; |
1d99702e RD |
1634 | if (_argo0) { |
1635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 1637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSplitMode. Expected _wxSplitterWindow_p."); |
b639c3c5 RD |
1638 | return NULL; |
1639 | } | |
1640 | } | |
cf694132 | 1641 | { |
474c48f9 | 1642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1643 | wxSplitterWindow_SetSplitMode(_arg0,_arg1); |
cf694132 | 1644 | |
474c48f9 | 1645 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1646 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
1647 | } Py_INCREF(Py_None); |
1648 | _resultobj = Py_None; | |
b639c3c5 RD |
1649 | return _resultobj; |
1650 | } | |
1651 | ||
9c039d08 | 1652 | #define wxSplitterWindow_GetSplitMode(_swigobj) (_swigobj->GetSplitMode()) |
efc5f224 | 1653 | static PyObject *_wrap_wxSplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1654 | PyObject * _resultobj; |
1655 | int _result; | |
1656 | wxSplitterWindow * _arg0; | |
1d99702e | 1657 | PyObject * _argo0 = 0; |
efc5f224 | 1658 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1659 | |
1660 | self = self; | |
efc5f224 | 1661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSplitMode",_kwnames,&_argo0)) |
9c039d08 | 1662 | return NULL; |
1d99702e RD |
1663 | if (_argo0) { |
1664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
9c039d08 RD |
1666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSplitMode. Expected _wxSplitterWindow_p."); |
1667 | return NULL; | |
1668 | } | |
1669 | } | |
cf694132 | 1670 | { |
474c48f9 | 1671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1672 | _result = (int )wxSplitterWindow_GetSplitMode(_arg0); |
cf694132 | 1673 | |
474c48f9 | 1674 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1676 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
1677 | return _resultobj; |
1678 | } | |
1679 | ||
aa2a5b86 RD |
1680 | #define wxSplitterWindow_Initialize(_swigobj,_swigarg0) (_swigobj->Initialize(_swigarg0)) |
1681 | static PyObject *_wrap_wxSplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1682 | PyObject * _resultobj; |
9c039d08 | 1683 | wxSplitterWindow * _arg0; |
aa2a5b86 | 1684 | wxWindow * _arg1; |
1d99702e | 1685 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
1686 | PyObject * _argo1 = 0; |
1687 | char *_kwnames[] = { "self","window", NULL }; | |
9c039d08 RD |
1688 | |
1689 | self = self; | |
aa2a5b86 | 1690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSplitterWindow_Initialize",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 1691 | return NULL; |
1d99702e RD |
1692 | if (_argo0) { |
1693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 RD |
1695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Initialize. Expected _wxSplitterWindow_p."); |
1696 | return NULL; | |
1697 | } | |
1698 | } | |
1699 | if (_argo1) { | |
1700 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1701 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Initialize. Expected _wxWindow_p."); | |
9c039d08 RD |
1703 | return NULL; |
1704 | } | |
1705 | } | |
cf694132 | 1706 | { |
474c48f9 | 1707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1708 | wxSplitterWindow_Initialize(_arg0,_arg1); |
cf694132 | 1709 | |
474c48f9 | 1710 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1711 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
1712 | } Py_INCREF(Py_None); |
1713 | _resultobj = Py_None; | |
9c039d08 RD |
1714 | return _resultobj; |
1715 | } | |
1716 | ||
aa2a5b86 RD |
1717 | #define wxSplitterWindow_SplitVertically(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SplitVertically(_swigarg0,_swigarg1,_swigarg2)) |
1718 | static PyObject *_wrap_wxSplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1719 | PyObject * _resultobj; |
aa2a5b86 | 1720 | bool _result; |
9c039d08 | 1721 | wxSplitterWindow * _arg0; |
aa2a5b86 RD |
1722 | wxWindow * _arg1; |
1723 | wxWindow * _arg2; | |
1724 | int _arg3 = (int ) 0; | |
1d99702e | 1725 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
1726 | PyObject * _argo1 = 0; |
1727 | PyObject * _argo2 = 0; | |
1728 | char *_kwnames[] = { "self","window1","window2","sashPosition", NULL }; | |
9c039d08 RD |
1729 | |
1730 | self = self; | |
aa2a5b86 | 1731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxSplitterWindow_SplitVertically",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3)) |
9c039d08 | 1732 | return NULL; |
1d99702e RD |
1733 | if (_argo0) { |
1734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 RD |
1736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SplitVertically. Expected _wxSplitterWindow_p."); |
1737 | return NULL; | |
1738 | } | |
1739 | } | |
1740 | if (_argo1) { | |
1741 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1742 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_SplitVertically. Expected _wxWindow_p."); | |
1744 | return NULL; | |
1745 | } | |
1746 | } | |
1747 | if (_argo2) { | |
1748 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1749 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
1750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_SplitVertically. Expected _wxWindow_p."); | |
9c039d08 RD |
1751 | return NULL; |
1752 | } | |
1753 | } | |
cf694132 | 1754 | { |
474c48f9 | 1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1756 | _result = (bool )wxSplitterWindow_SplitVertically(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 1757 | |
474c48f9 | 1758 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1759 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 1760 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
1761 | return _resultobj; |
1762 | } | |
1763 | ||
aa2a5b86 RD |
1764 | #define wxSplitterWindow_SplitHorizontally(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SplitHorizontally(_swigarg0,_swigarg1,_swigarg2)) |
1765 | static PyObject *_wrap_wxSplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1766 | PyObject * _resultobj; |
aa2a5b86 | 1767 | bool _result; |
9c039d08 RD |
1768 | wxSplitterWindow * _arg0; |
1769 | wxWindow * _arg1; | |
aa2a5b86 RD |
1770 | wxWindow * _arg2; |
1771 | int _arg3 = (int ) 0; | |
1d99702e RD |
1772 | PyObject * _argo0 = 0; |
1773 | PyObject * _argo1 = 0; | |
aa2a5b86 RD |
1774 | PyObject * _argo2 = 0; |
1775 | char *_kwnames[] = { "self","window1","window2","sashPosition", NULL }; | |
9c039d08 RD |
1776 | |
1777 | self = self; | |
aa2a5b86 | 1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxSplitterWindow_SplitHorizontally",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3)) |
9c039d08 | 1779 | return NULL; |
1d99702e RD |
1780 | if (_argo0) { |
1781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 1783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SplitHorizontally. Expected _wxSplitterWindow_p."); |
9c039d08 RD |
1784 | return NULL; |
1785 | } | |
1786 | } | |
1d99702e RD |
1787 | if (_argo1) { |
1788 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1789 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
aa2a5b86 RD |
1790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_SplitHorizontally. Expected _wxWindow_p."); |
1791 | return NULL; | |
1792 | } | |
1793 | } | |
1794 | if (_argo2) { | |
1795 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1796 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
1797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_SplitHorizontally. Expected _wxWindow_p."); | |
9c039d08 RD |
1798 | return NULL; |
1799 | } | |
1800 | } | |
cf694132 | 1801 | { |
474c48f9 | 1802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1803 | _result = (bool )wxSplitterWindow_SplitHorizontally(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 1804 | |
474c48f9 | 1805 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1806 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 1807 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
1808 | return _resultobj; |
1809 | } | |
1810 | ||
aa2a5b86 RD |
1811 | #define wxSplitterWindow_Unsplit(_swigobj,_swigarg0) (_swigobj->Unsplit(_swigarg0)) |
1812 | static PyObject *_wrap_wxSplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 RD |
1813 | PyObject * _resultobj; |
1814 | bool _result; | |
1815 | wxSplitterWindow * _arg0; | |
aa2a5b86 | 1816 | wxWindow * _arg1 = (wxWindow *) NULL; |
1d99702e | 1817 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
1818 | PyObject * _argo1 = 0; |
1819 | char *_kwnames[] = { "self","toRemove", NULL }; | |
9c039d08 RD |
1820 | |
1821 | self = self; | |
aa2a5b86 | 1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxSplitterWindow_Unsplit",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 1823 | return NULL; |
1d99702e RD |
1824 | if (_argo0) { |
1825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 RD |
1827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Unsplit. 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_Unsplit. Expected _wxWindow_p."); | |
9c039d08 RD |
1835 | return NULL; |
1836 | } | |
1837 | } | |
cf694132 | 1838 | { |
474c48f9 | 1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1840 | _result = (bool )wxSplitterWindow_Unsplit(_arg0,_arg1); |
cf694132 | 1841 | |
474c48f9 | 1842 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1843 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1844 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
1845 | return _resultobj; |
1846 | } | |
1847 | ||
9d8bd15f RD |
1848 | #define wxSplitterWindow_ReplaceWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReplaceWindow(_swigarg0,_swigarg1)) |
1849 | static PyObject *_wrap_wxSplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1850 | PyObject * _resultobj; | |
1851 | bool _result; | |
1852 | wxSplitterWindow * _arg0; | |
1853 | wxWindow * _arg1; | |
1854 | wxWindow * _arg2; | |
1855 | PyObject * _argo0 = 0; | |
1856 | PyObject * _argo1 = 0; | |
1857 | PyObject * _argo2 = 0; | |
1858 | char *_kwnames[] = { "self","winOld","winNew", NULL }; | |
1859 | ||
1860 | self = self; | |
1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxSplitterWindow_ReplaceWindow",_kwnames,&_argo0,&_argo1,&_argo2)) | |
1862 | return NULL; | |
1863 | if (_argo0) { | |
1864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
1866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_ReplaceWindow. Expected _wxSplitterWindow_p."); | |
1867 | return NULL; | |
1868 | } | |
1869 | } | |
1870 | if (_argo1) { | |
1871 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1872 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_ReplaceWindow. Expected _wxWindow_p."); | |
1874 | return NULL; | |
1875 | } | |
1876 | } | |
1877 | if (_argo2) { | |
1878 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1879 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
1880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_ReplaceWindow. Expected _wxWindow_p."); | |
1881 | return NULL; | |
1882 | } | |
1883 | } | |
1884 | { | |
474c48f9 | 1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1886 | _result = (bool )wxSplitterWindow_ReplaceWindow(_arg0,_arg1,_arg2); |
9d8bd15f | 1887 | |
474c48f9 | 1888 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1889 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
1890 | } _resultobj = Py_BuildValue("i",_result); |
1891 | return _resultobj; | |
1892 | } | |
1893 | ||
aa2a5b86 RD |
1894 | #define wxSplitterWindow_IsSplit(_swigobj) (_swigobj->IsSplit()) |
1895 | static PyObject *_wrap_wxSplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b639c3c5 | 1896 | PyObject * _resultobj; |
aa2a5b86 | 1897 | bool _result; |
b639c3c5 | 1898 | wxSplitterWindow * _arg0; |
1d99702e | 1899 | PyObject * _argo0 = 0; |
aa2a5b86 | 1900 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
1901 | |
1902 | self = self; | |
aa2a5b86 | 1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_IsSplit",_kwnames,&_argo0)) |
b639c3c5 | 1904 | return NULL; |
1d99702e RD |
1905 | if (_argo0) { |
1906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 1908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_IsSplit. Expected _wxSplitterWindow_p."); |
b639c3c5 RD |
1909 | return NULL; |
1910 | } | |
1911 | } | |
cf694132 | 1912 | { |
474c48f9 | 1913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1914 | _result = (bool )wxSplitterWindow_IsSplit(_arg0); |
cf694132 | 1915 | |
474c48f9 | 1916 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1917 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 1918 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
1919 | return _resultobj; |
1920 | } | |
1921 | ||
aa2a5b86 RD |
1922 | #define wxSplitterWindow_SetSashSize(_swigobj,_swigarg0) (_swigobj->SetSashSize(_swigarg0)) |
1923 | static PyObject *_wrap_wxSplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 RD |
1924 | PyObject * _resultobj; |
1925 | wxSplitterWindow * _arg0; | |
1926 | int _arg1; | |
1d99702e | 1927 | PyObject * _argo0 = 0; |
aa2a5b86 | 1928 | char *_kwnames[] = { "self","width", NULL }; |
9c039d08 RD |
1929 | |
1930 | self = self; | |
aa2a5b86 | 1931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetSashSize",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 1932 | return NULL; |
1d99702e RD |
1933 | if (_argo0) { |
1934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 1936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSashSize. Expected _wxSplitterWindow_p."); |
9c039d08 RD |
1937 | return NULL; |
1938 | } | |
1939 | } | |
cf694132 | 1940 | { |
474c48f9 | 1941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1942 | wxSplitterWindow_SetSashSize(_arg0,_arg1); |
cf694132 | 1943 | |
474c48f9 | 1944 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1945 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1946 | } Py_INCREF(Py_None); |
9c039d08 RD |
1947 | _resultobj = Py_None; |
1948 | return _resultobj; | |
1949 | } | |
1950 | ||
aa2a5b86 RD |
1951 | #define wxSplitterWindow_SetBorderSize(_swigobj,_swigarg0) (_swigobj->SetBorderSize(_swigarg0)) |
1952 | static PyObject *_wrap_wxSplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b639c3c5 RD |
1953 | PyObject * _resultobj; |
1954 | wxSplitterWindow * _arg0; | |
1955 | int _arg1; | |
1d99702e | 1956 | PyObject * _argo0 = 0; |
efc5f224 | 1957 | char *_kwnames[] = { "self","width", NULL }; |
b639c3c5 RD |
1958 | |
1959 | self = self; | |
aa2a5b86 | 1960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetBorderSize",_kwnames,&_argo0,&_arg1)) |
b639c3c5 | 1961 | return NULL; |
1d99702e RD |
1962 | if (_argo0) { |
1963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 1965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetBorderSize. Expected _wxSplitterWindow_p."); |
b639c3c5 RD |
1966 | return NULL; |
1967 | } | |
1968 | } | |
cf694132 | 1969 | { |
474c48f9 | 1970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1971 | wxSplitterWindow_SetBorderSize(_arg0,_arg1); |
cf694132 | 1972 | |
474c48f9 | 1973 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1974 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1975 | } Py_INCREF(Py_None); |
b639c3c5 RD |
1976 | _resultobj = Py_None; |
1977 | return _resultobj; | |
1978 | } | |
1979 | ||
aa2a5b86 RD |
1980 | #define wxSplitterWindow_GetSashSize(_swigobj) (_swigobj->GetSashSize()) |
1981 | static PyObject *_wrap_wxSplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1982 | PyObject * _resultobj; |
aa2a5b86 | 1983 | int _result; |
9c039d08 | 1984 | wxSplitterWindow * _arg0; |
1d99702e | 1985 | PyObject * _argo0 = 0; |
aa2a5b86 | 1986 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1987 | |
1988 | self = self; | |
aa2a5b86 | 1989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSashSize",_kwnames,&_argo0)) |
9c039d08 | 1990 | return NULL; |
1d99702e RD |
1991 | if (_argo0) { |
1992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 1994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSashSize. Expected _wxSplitterWindow_p."); |
9c039d08 RD |
1995 | return NULL; |
1996 | } | |
1997 | } | |
cf694132 | 1998 | { |
474c48f9 | 1999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2000 | _result = (int )wxSplitterWindow_GetSashSize(_arg0); |
cf694132 | 2001 | |
474c48f9 | 2002 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2003 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 2004 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
2005 | return _resultobj; |
2006 | } | |
2007 | ||
aa2a5b86 RD |
2008 | #define wxSplitterWindow_GetBorderSize(_swigobj) (_swigobj->GetBorderSize()) |
2009 | static PyObject *_wrap_wxSplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 2010 | PyObject * _resultobj; |
aa2a5b86 | 2011 | int _result; |
9c039d08 | 2012 | wxSplitterWindow * _arg0; |
1d99702e | 2013 | PyObject * _argo0 = 0; |
aa2a5b86 | 2014 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
2015 | |
2016 | self = self; | |
aa2a5b86 | 2017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetBorderSize",_kwnames,&_argo0)) |
9c039d08 | 2018 | return NULL; |
1d99702e RD |
2019 | if (_argo0) { |
2020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 2022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetBorderSize. Expected _wxSplitterWindow_p."); |
9c039d08 RD |
2023 | return NULL; |
2024 | } | |
2025 | } | |
cf694132 | 2026 | { |
474c48f9 | 2027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2028 | _result = (int )wxSplitterWindow_GetBorderSize(_arg0); |
cf694132 | 2029 | |
474c48f9 | 2030 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2031 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 2032 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
2033 | return _resultobj; |
2034 | } | |
2035 | ||
aa2a5b86 RD |
2036 | #define wxSplitterWindow_SetSashPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSashPosition(_swigarg0,_swigarg1)) |
2037 | static PyObject *_wrap_wxSplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 2038 | PyObject * _resultobj; |
9c039d08 | 2039 | wxSplitterWindow * _arg0; |
aa2a5b86 RD |
2040 | int _arg1; |
2041 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 2042 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
2043 | int tempbool2 = (int) TRUE; |
2044 | char *_kwnames[] = { "self","position","redraw", NULL }; | |
9c039d08 RD |
2045 | |
2046 | self = self; | |
aa2a5b86 | 2047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxSplitterWindow_SetSashPosition",_kwnames,&_argo0,&_arg1,&tempbool2)) |
9c039d08 | 2048 | return NULL; |
1d99702e RD |
2049 | if (_argo0) { |
2050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 2052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSashPosition. Expected _wxSplitterWindow_p."); |
9c039d08 RD |
2053 | return NULL; |
2054 | } | |
2055 | } | |
aa2a5b86 RD |
2056 | _arg2 = (bool ) tempbool2; |
2057 | { | |
474c48f9 | 2058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2059 | wxSplitterWindow_SetSashPosition(_arg0,_arg1,_arg2); |
aa2a5b86 | 2060 | |
474c48f9 | 2061 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2062 | if (PyErr_Occurred()) return NULL; |
2063 | } Py_INCREF(Py_None); | |
2064 | _resultobj = Py_None; | |
2065 | return _resultobj; | |
2066 | } | |
2067 | ||
2068 | #define wxSplitterWindow_GetSashPosition(_swigobj) (_swigobj->GetSashPosition()) | |
2069 | static PyObject *_wrap_wxSplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2070 | PyObject * _resultobj; | |
2071 | int _result; | |
2072 | wxSplitterWindow * _arg0; | |
2073 | PyObject * _argo0 = 0; | |
2074 | char *_kwnames[] = { "self", NULL }; | |
2075 | ||
2076 | self = self; | |
2077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSashPosition",_kwnames,&_argo0)) | |
9c039d08 | 2078 | return NULL; |
aa2a5b86 RD |
2079 | if (_argo0) { |
2080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSashPosition. Expected _wxSplitterWindow_p."); | |
9c039d08 RD |
2083 | return NULL; |
2084 | } | |
2085 | } | |
cf694132 | 2086 | { |
474c48f9 | 2087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2088 | _result = (int )wxSplitterWindow_GetSashPosition(_arg0); |
cf694132 | 2089 | |
474c48f9 | 2090 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2091 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2092 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
2093 | return _resultobj; |
2094 | } | |
2095 | ||
aa2a5b86 RD |
2096 | #define wxSplitterWindow_SetMinimumPaneSize(_swigobj,_swigarg0) (_swigobj->SetMinimumPaneSize(_swigarg0)) |
2097 | static PyObject *_wrap_wxSplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 2098 | PyObject * _resultobj; |
9c039d08 | 2099 | wxSplitterWindow * _arg0; |
aa2a5b86 | 2100 | int _arg1; |
1d99702e | 2101 | PyObject * _argo0 = 0; |
aa2a5b86 | 2102 | char *_kwnames[] = { "self","min", NULL }; |
9c039d08 RD |
2103 | |
2104 | self = self; | |
aa2a5b86 | 2105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetMinimumPaneSize",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 2106 | return NULL; |
1d99702e RD |
2107 | if (_argo0) { |
2108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 2110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetMinimumPaneSize. Expected _wxSplitterWindow_p."); |
9c039d08 RD |
2111 | return NULL; |
2112 | } | |
2113 | } | |
cf694132 | 2114 | { |
474c48f9 | 2115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2116 | wxSplitterWindow_SetMinimumPaneSize(_arg0,_arg1); |
cf694132 | 2117 | |
474c48f9 | 2118 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2119 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
2120 | } Py_INCREF(Py_None); |
2121 | _resultobj = Py_None; | |
9c039d08 RD |
2122 | return _resultobj; |
2123 | } | |
2124 | ||
aa2a5b86 RD |
2125 | #define wxSplitterWindow_GetMinimumPaneSize(_swigobj) (_swigobj->GetMinimumPaneSize()) |
2126 | static PyObject *_wrap_wxSplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 2127 | PyObject * _resultobj; |
aa2a5b86 | 2128 | int _result; |
9c039d08 | 2129 | wxSplitterWindow * _arg0; |
1d99702e | 2130 | PyObject * _argo0 = 0; |
aa2a5b86 | 2131 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
2132 | |
2133 | self = self; | |
aa2a5b86 | 2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetMinimumPaneSize",_kwnames,&_argo0)) |
9c039d08 | 2135 | return NULL; |
1d99702e RD |
2136 | if (_argo0) { |
2137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
aa2a5b86 | 2139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetMinimumPaneSize. Expected _wxSplitterWindow_p."); |
9c039d08 RD |
2140 | return NULL; |
2141 | } | |
2142 | } | |
cf694132 | 2143 | { |
474c48f9 | 2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2145 | _result = (int )wxSplitterWindow_GetMinimumPaneSize(_arg0); |
cf694132 | 2146 | |
474c48f9 | 2147 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2148 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2149 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
2150 | return _resultobj; |
2151 | } | |
2152 | ||
8381e4cd RD |
2153 | #define wxSplitterWindow_SizeWindows(_swigobj) (_swigobj->SizeWindows()) |
2154 | static PyObject *_wrap_wxSplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2155 | PyObject * _resultobj; | |
2156 | wxSplitterWindow * _arg0; | |
2157 | PyObject * _argo0 = 0; | |
2158 | char *_kwnames[] = { "self", NULL }; | |
2159 | ||
2160 | self = self; | |
2161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_SizeWindows",_kwnames,&_argo0)) | |
2162 | return NULL; | |
2163 | if (_argo0) { | |
2164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SizeWindows. Expected _wxSplitterWindow_p."); | |
2167 | return NULL; | |
2168 | } | |
2169 | } | |
2170 | { | |
2171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2172 | wxSplitterWindow_SizeWindows(_arg0); | |
2173 | ||
2174 | wxPyEndAllowThreads(__tstate); | |
2175 | if (PyErr_Occurred()) return NULL; | |
2176 | } Py_INCREF(Py_None); | |
2177 | _resultobj = Py_None; | |
2178 | return _resultobj; | |
2179 | } | |
2180 | ||
2181 | #define wxSplitterWindow_SetNeedUpdating(_swigobj,_swigarg0) (_swigobj->SetNeedUpdating(_swigarg0)) | |
2182 | static PyObject *_wrap_wxSplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2183 | PyObject * _resultobj; | |
2184 | wxSplitterWindow * _arg0; | |
2185 | bool _arg1; | |
2186 | PyObject * _argo0 = 0; | |
2187 | int tempbool1; | |
2188 | char *_kwnames[] = { "self","needUpdating", NULL }; | |
2189 | ||
2190 | self = self; | |
2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetNeedUpdating",_kwnames,&_argo0,&tempbool1)) | |
2192 | return NULL; | |
2193 | if (_argo0) { | |
2194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetNeedUpdating. Expected _wxSplitterWindow_p."); | |
2197 | return NULL; | |
2198 | } | |
2199 | } | |
2200 | _arg1 = (bool ) tempbool1; | |
2201 | { | |
2202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2203 | wxSplitterWindow_SetNeedUpdating(_arg0,_arg1); | |
2204 | ||
2205 | wxPyEndAllowThreads(__tstate); | |
2206 | if (PyErr_Occurred()) return NULL; | |
2207 | } Py_INCREF(Py_None); | |
2208 | _resultobj = Py_None; | |
2209 | return _resultobj; | |
2210 | } | |
2211 | ||
2212 | #define wxSplitterWindow_GetNeedUpdating(_swigobj) (_swigobj->GetNeedUpdating()) | |
2213 | static PyObject *_wrap_wxSplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2214 | PyObject * _resultobj; | |
2215 | bool _result; | |
2216 | wxSplitterWindow * _arg0; | |
2217 | PyObject * _argo0 = 0; | |
2218 | char *_kwnames[] = { "self", NULL }; | |
2219 | ||
2220 | self = self; | |
2221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetNeedUpdating",_kwnames,&_argo0)) | |
2222 | return NULL; | |
2223 | if (_argo0) { | |
2224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) { | |
2226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetNeedUpdating. Expected _wxSplitterWindow_p."); | |
2227 | return NULL; | |
2228 | } | |
2229 | } | |
2230 | { | |
2231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2232 | _result = (bool )wxSplitterWindow_GetNeedUpdating(_arg0); | |
2233 | ||
2234 | wxPyEndAllowThreads(__tstate); | |
2235 | if (PyErr_Occurred()) return NULL; | |
2236 | } _resultobj = Py_BuildValue("i",_result); | |
2237 | return _resultobj; | |
2238 | } | |
2239 | ||
8ab979d7 | 2240 | static PyMethodDef windows2cMethods[] = { |
8381e4cd RD |
2241 | { "wxSplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_wxSplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, |
2242 | { "wxSplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_wxSplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
2243 | { "wxSplitterWindow_SizeWindows", (PyCFunction) _wrap_wxSplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 2244 | { "wxSplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_wxSplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 2245 | { "wxSplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_wxSplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 2246 | { "wxSplitterWindow_GetSashPosition", (PyCFunction) _wrap_wxSplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 2247 | { "wxSplitterWindow_SetSashPosition", (PyCFunction) _wrap_wxSplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
2248 | { "wxSplitterWindow_GetBorderSize", (PyCFunction) _wrap_wxSplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, |
2249 | { "wxSplitterWindow_GetSashSize", (PyCFunction) _wrap_wxSplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2250 | { "wxSplitterWindow_SetBorderSize", (PyCFunction) _wrap_wxSplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 2251 | { "wxSplitterWindow_SetSashSize", (PyCFunction) _wrap_wxSplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 2252 | { "wxSplitterWindow_IsSplit", (PyCFunction) _wrap_wxSplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
2253 | { "wxSplitterWindow_ReplaceWindow", (PyCFunction) _wrap_wxSplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, |
2254 | { "wxSplitterWindow_Unsplit", (PyCFunction) _wrap_wxSplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
2255 | { "wxSplitterWindow_SplitHorizontally", (PyCFunction) _wrap_wxSplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
2256 | { "wxSplitterWindow_SplitVertically", (PyCFunction) _wrap_wxSplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2257 | { "wxSplitterWindow_Initialize", (PyCFunction) _wrap_wxSplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
2258 | { "wxSplitterWindow_GetSplitMode", (PyCFunction) _wrap_wxSplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, |
2259 | { "wxSplitterWindow_SetSplitMode", (PyCFunction) _wrap_wxSplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2260 | { "wxSplitterWindow_GetWindow2", (PyCFunction) _wrap_wxSplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, |
2261 | { "wxSplitterWindow_GetWindow1", (PyCFunction) _wrap_wxSplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
2262 | { "wxSplitterWindow_Create", (PyCFunction) _wrap_wxSplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
2263 | { "new_wxPreSplitterWindow", (PyCFunction) _wrap_new_wxPreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2264 | { "new_wxSplitterWindow", (PyCFunction) _wrap_new_wxSplitterWindow, METH_VARARGS | METH_KEYWORDS }, |
2265 | { "wxSplitterEvent_SetSashPosition", (PyCFunction) _wrap_wxSplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
2266 | { "wxSplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_wxSplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
2267 | { "wxSplitterEvent_GetY", (PyCFunction) _wrap_wxSplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
2268 | { "wxSplitterEvent_GetX", (PyCFunction) _wrap_wxSplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
2269 | { "wxSplitterEvent_GetSashPosition", (PyCFunction) _wrap_wxSplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 2270 | { "new_wxSplitterEvent", (PyCFunction) _wrap_new_wxSplitterEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
2271 | { "wxNotebook_ResizeChildren", (PyCFunction) _wrap_wxNotebook_ResizeChildren, METH_VARARGS | METH_KEYWORDS }, |
2272 | { "wxNotebook_GetPage", (PyCFunction) _wrap_wxNotebook_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 2273 | { "wxNotebook_InsertPage", (PyCFunction) _wrap_wxNotebook_InsertPage, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
2274 | { "wxNotebook_AddPage", (PyCFunction) _wrap_wxNotebook_AddPage, METH_VARARGS | METH_KEYWORDS }, |
2275 | { "wxNotebook_DeleteAllPages", (PyCFunction) _wrap_wxNotebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
2276 | { "wxNotebook_RemovePage", (PyCFunction) _wrap_wxNotebook_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
2277 | { "wxNotebook_DeletePage", (PyCFunction) _wrap_wxNotebook_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
2278 | { "wxNotebook_SetPadding", (PyCFunction) _wrap_wxNotebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, |
2279 | { "wxNotebook_SetPageSize", (PyCFunction) _wrap_wxNotebook_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2280 | { "wxNotebook_GetRowCount", (PyCFunction) _wrap_wxNotebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, |
2281 | { "wxNotebook_SetPageImage", (PyCFunction) _wrap_wxNotebook_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
2282 | { "wxNotebook_GetPageImage", (PyCFunction) _wrap_wxNotebook_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
2283 | { "wxNotebook_GetImageList", (PyCFunction) _wrap_wxNotebook_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 2284 | { "wxNotebook_AssignImageList", (PyCFunction) _wrap_wxNotebook_AssignImageList, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
2285 | { "wxNotebook_SetImageList", (PyCFunction) _wrap_wxNotebook_SetImageList, METH_VARARGS | METH_KEYWORDS }, |
2286 | { "wxNotebook_GetPageText", (PyCFunction) _wrap_wxNotebook_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
2287 | { "wxNotebook_SetPageText", (PyCFunction) _wrap_wxNotebook_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
2288 | { "wxNotebook_GetSelection", (PyCFunction) _wrap_wxNotebook_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
2289 | { "wxNotebook_AdvanceSelection", (PyCFunction) _wrap_wxNotebook_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
2290 | { "wxNotebook_SetSelection", (PyCFunction) _wrap_wxNotebook_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
2291 | { "wxNotebook_GetPageCount", (PyCFunction) _wrap_wxNotebook_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
2292 | { "wxNotebook_Create", (PyCFunction) _wrap_wxNotebook_Create, METH_VARARGS | METH_KEYWORDS }, |
2293 | { "new_wxPreNotebook", (PyCFunction) _wrap_new_wxPreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2294 | { "new_wxNotebook", (PyCFunction) _wrap_new_wxNotebook, METH_VARARGS | METH_KEYWORDS }, |
2295 | { "wxNotebookEvent_SetSelection", (PyCFunction) _wrap_wxNotebookEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
2296 | { "wxNotebookEvent_SetOldSelection", (PyCFunction) _wrap_wxNotebookEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
2297 | { "wxNotebookEvent_GetOldSelection", (PyCFunction) _wrap_wxNotebookEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
2298 | { "wxNotebookEvent_GetSelection", (PyCFunction) _wrap_wxNotebookEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 2299 | { "new_wxNotebookEvent", (PyCFunction) _wrap_new_wxNotebookEvent, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
2300 | { NULL, NULL } |
2301 | }; | |
1d99702e RD |
2302 | #ifdef __cplusplus |
2303 | } | |
2304 | #endif | |
2305 | /* | |
2306 | * This table is used by the pointer type-checker | |
2307 | */ | |
2308 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 2309 | { "_wxEvent","_wxSplitterEvent",SwigwxSplitterEventTowxEvent}, |
1d99702e | 2310 | { "_wxEvent","_wxNotebookEvent",SwigwxNotebookEventTowxEvent}, |
1d99702e | 2311 | { "_signed_long","_long",0}, |
b1462dfa | 2312 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
2313 | { "_wxPrintQuality","_int",0}, |
2314 | { "_wxPrintQuality","_signed_int",0}, | |
2315 | { "_wxPrintQuality","_unsigned_int",0}, | |
2316 | { "_wxPrintQuality","_wxWindowID",0}, | |
2317 | { "_wxPrintQuality","_uint",0}, | |
2318 | { "_wxPrintQuality","_EBool",0}, | |
2319 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 2320 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 2321 | { "_wxNotifyEvent","_wxNotebookEvent",SwigwxNotebookEventTowxNotifyEvent}, |
1d99702e | 2322 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
2323 | { "_long","_unsigned_long",0}, |
2324 | { "_long","_signed_long",0}, | |
b1462dfa | 2325 | { "_size_t","_wxCoord",0}, |
1d99702e | 2326 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 2327 | { "_size_t","_time_t",0}, |
1d99702e RD |
2328 | { "_size_t","_unsigned_int",0}, |
2329 | { "_size_t","_int",0}, | |
2330 | { "_size_t","_wxWindowID",0}, | |
2331 | { "_size_t","_uint",0}, | |
b1462dfa | 2332 | { "_uint","_wxCoord",0}, |
1d99702e | 2333 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 2334 | { "_uint","_time_t",0}, |
1d99702e RD |
2335 | { "_uint","_size_t",0}, |
2336 | { "_uint","_unsigned_int",0}, | |
2337 | { "_uint","_int",0}, | |
2338 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 2339 | { "_wxChar","_char",0}, |
1d99702e | 2340 | { "_wxCommandEvent","_wxSplitterEvent",SwigwxSplitterEventTowxCommandEvent}, |
1d99702e | 2341 | { "_wxCommandEvent","_wxNotebookEvent",SwigwxNotebookEventTowxCommandEvent}, |
f6bcfd97 | 2342 | { "_char","_wxChar",0}, |
059a841c | 2343 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 2344 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
2345 | { "_EBool","_wxPrintQuality",0}, |
2346 | { "_EBool","_signed_int",0}, | |
2347 | { "_EBool","_int",0}, | |
2348 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 2349 | { "_unsigned_long","_long",0}, |
059a841c | 2350 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 2351 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
2352 | { "_signed_int","_wxPrintQuality",0}, |
2353 | { "_signed_int","_EBool",0}, | |
2354 | { "_signed_int","_wxWindowID",0}, | |
2355 | { "_signed_int","_int",0}, | |
1d99702e RD |
2356 | { "_WXTYPE","_short",0}, |
2357 | { "_WXTYPE","_signed_short",0}, | |
2358 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
2359 | { "_unsigned_short","_WXTYPE",0}, |
2360 | { "_unsigned_short","_short",0}, | |
9df61a29 | 2361 | { "_wxObject","_wxSplitterWindow",SwigwxSplitterWindowTowxObject}, |
9df61a29 | 2362 | { "_wxObject","_wxSplitterEvent",SwigwxSplitterEventTowxObject}, |
9df61a29 | 2363 | { "_wxObject","_wxNotebook",SwigwxNotebookTowxObject}, |
9df61a29 | 2364 | { "_wxObject","_wxNotebookEvent",SwigwxNotebookEventTowxObject}, |
1d99702e RD |
2365 | { "_signed_short","_WXTYPE",0}, |
2366 | { "_signed_short","_short",0}, | |
1d99702e | 2367 | { "_unsigned_char","_byte",0}, |
1d99702e | 2368 | { "_wxControl","_wxNotebook",SwigwxNotebookTowxControl}, |
b1462dfa | 2369 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 2370 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 2371 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
2372 | { "_unsigned_int","_size_t",0}, |
2373 | { "_unsigned_int","_uint",0}, | |
2374 | { "_unsigned_int","_wxWindowID",0}, | |
2375 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
2376 | { "_short","_WXTYPE",0}, |
2377 | { "_short","_unsigned_short",0}, | |
2378 | { "_short","_signed_short",0}, | |
b1462dfa | 2379 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 2380 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 2381 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
2382 | { "_wxWindowID","_size_t",0}, |
2383 | { "_wxWindowID","_EBool",0}, | |
2384 | { "_wxWindowID","_uint",0}, | |
2385 | { "_wxWindowID","_int",0}, | |
2386 | { "_wxWindowID","_signed_int",0}, | |
2387 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 2388 | { "_int","_wxCoord",0}, |
1d99702e | 2389 | { "_int","_wxPrintQuality",0}, |
c368d904 | 2390 | { "_int","_time_t",0}, |
1d99702e RD |
2391 | { "_int","_size_t",0}, |
2392 | { "_int","_EBool",0}, | |
2393 | { "_int","_uint",0}, | |
2394 | { "_int","_wxWindowID",0}, | |
2395 | { "_int","_unsigned_int",0}, | |
2396 | { "_int","_signed_int",0}, | |
c368d904 RD |
2397 | { "_time_t","_wxCoord",0}, |
2398 | { "_time_t","_wxPrintQuality",0}, | |
2399 | { "_time_t","_unsigned_int",0}, | |
2400 | { "_time_t","_int",0}, | |
2401 | { "_time_t","_wxWindowID",0}, | |
2402 | { "_time_t","_uint",0}, | |
2403 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
2404 | { "_wxCoord","_int",0}, |
2405 | { "_wxCoord","_signed_int",0}, | |
2406 | { "_wxCoord","_unsigned_int",0}, | |
2407 | { "_wxCoord","_wxWindowID",0}, | |
2408 | { "_wxCoord","_uint",0}, | |
2409 | { "_wxCoord","_EBool",0}, | |
2410 | { "_wxCoord","_size_t",0}, | |
c368d904 | 2411 | { "_wxCoord","_time_t",0}, |
b1462dfa | 2412 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 2413 | { "_wxEvtHandler","_wxSplitterWindow",SwigwxSplitterWindowTowxEvtHandler}, |
1d99702e | 2414 | { "_wxEvtHandler","_wxNotebook",SwigwxNotebookTowxEvtHandler}, |
1d99702e | 2415 | { "_wxWindow","_wxSplitterWindow",SwigwxSplitterWindowTowxWindow}, |
1d99702e | 2416 | { "_wxWindow","_wxNotebook",SwigwxNotebookTowxWindow}, |
1d99702e RD |
2417 | {0,0,0}}; |
2418 | ||
8ab979d7 RD |
2419 | static PyObject *SWIG_globals; |
2420 | #ifdef __cplusplus | |
2421 | extern "C" | |
2422 | #endif | |
1d99702e | 2423 | SWIGEXPORT(void) initwindows2c() { |
8ab979d7 RD |
2424 | PyObject *m, *d; |
2425 | SWIG_globals = SWIG_newvarlink(); | |
2426 | m = Py_InitModule("windows2c", windows2cMethods); | |
2427 | d = PyModule_GetDict(m); | |
9c4165ad RD |
2428 | PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
2429 | PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
2430 | PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
2431 | PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
2432 | PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
2433 | PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
f6bcfd97 BP |
2434 | PyDict_SetItemString(d,"wxSPLIT_HORIZONTAL", PyInt_FromLong((long) wxSPLIT_HORIZONTAL)); |
2435 | PyDict_SetItemString(d,"wxSPLIT_VERTICAL", PyInt_FromLong((long) wxSPLIT_VERTICAL)); | |
2436 | PyDict_SetItemString(d,"wxSPLIT_DRAG_NONE", PyInt_FromLong((long) wxSPLIT_DRAG_NONE)); | |
2437 | PyDict_SetItemString(d,"wxSPLIT_DRAG_DRAGGING", PyInt_FromLong((long) wxSPLIT_DRAG_DRAGGING)); | |
2438 | PyDict_SetItemString(d,"wxSPLIT_DRAG_LEFT_DOWN", PyInt_FromLong((long) wxSPLIT_DRAG_LEFT_DOWN)); | |
1d99702e RD |
2439 | { |
2440 | int i; | |
2441 | for (i = 0; _swig_mapping[i].n1; i++) | |
2442 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2443 | } | |
8ab979d7 | 2444 | } |