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