2 * FILE : contrib/gizmos/gizmos.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgizmosc
56 #define SWIG_name "gizmosc"
59 #include <wx/gizmos/dynamicsash.h>
60 #include <wx/gizmos/editlbox.h>
61 #include <wx/gizmos/splittree.h>
64 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
70 } else if (target
== Py_None
) {
74 if (!PyTuple_Check(target
)) {
76 target
= PyTuple_New(1);
77 PyTuple_SetItem(target
, 0, o2
);
80 PyTuple_SetItem(o3
, 0, o
);
83 target
= PySequence_Concat(o2
, o3
);
90 #if PYTHON_API_VERSION >= 1009
91 static char* wxStringErrorMsg
= "String or Unicode type required";
93 static char* wxStringErrorMsg
= "String type required";
96 typedef wxTreeCtrl wxPyTreeCtrl
;
98 class wxPyTreeCompanionWindow
: public wxTreeCompanionWindow
101 wxPyTreeCompanionWindow(wxWindow
* parent
, wxWindowID id
= -1,
102 const wxPoint
& pos
= wxDefaultPosition
,
103 const wxSize
& size
= wxDefaultSize
,
105 : wxTreeCompanionWindow(parent
, id
, pos
, size
, style
) {}
108 virtual void DrawItem(wxDC
& dc
, wxTreeItemId id
, const wxRect
& rect
) {
110 wxPyTState
* state
= wxPyBeginBlockThreads();
111 if ((found
= wxPyCBH_findCallback(m_myInst
, "DrawItem"))) {
112 PyObject
* dcobj
= wxPyMake_wxObject(&dc
);
113 PyObject
* idobj
= wxPyConstructObject((void*)&id
, "wxTreeItemId", FALSE
);
114 PyObject
* recobj
= wxPyConstructObject((void*)&rect
, "wxRect", FALSE
);
115 wxPyCBH_callCallback(m_myInst
, Py_BuildValue("(OOO)", dcobj
, idobj
, recobj
));
120 wxPyEndBlockThreads(state
);
122 wxTreeCompanionWindow::DrawItem(dc
, id
, rect
);
130 static void *SwigwxDynamicSashSplitEventTowxCommandEvent(void *ptr
) {
131 wxDynamicSashSplitEvent
*src
;
132 wxCommandEvent
*dest
;
133 src
= (wxDynamicSashSplitEvent
*) ptr
;
134 dest
= (wxCommandEvent
*) src
;
135 return (void *) dest
;
138 static void *SwigwxDynamicSashSplitEventTowxEvent(void *ptr
) {
139 wxDynamicSashSplitEvent
*src
;
141 src
= (wxDynamicSashSplitEvent
*) ptr
;
142 dest
= (wxEvent
*) src
;
143 return (void *) dest
;
146 static void *SwigwxDynamicSashSplitEventTowxObject(void *ptr
) {
147 wxDynamicSashSplitEvent
*src
;
149 src
= (wxDynamicSashSplitEvent
*) ptr
;
150 dest
= (wxObject
*) src
;
151 return (void *) dest
;
154 #define new_wxDynamicSashSplitEvent(_swigarg0) (new wxDynamicSashSplitEvent(_swigarg0))
155 static PyObject
*_wrap_new_wxDynamicSashSplitEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
156 PyObject
* _resultobj
;
157 wxDynamicSashSplitEvent
* _result
;
159 PyObject
* _argo0
= 0;
160 char *_kwnames
[] = { "target", NULL
};
164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxDynamicSashSplitEvent",_kwnames
,&_argo0
))
167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxObject_p")) {
169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDynamicSashSplitEvent. Expected _wxObject_p.");
174 wxPy_BEGIN_ALLOW_THREADS
;
175 _result
= (wxDynamicSashSplitEvent
*)new_wxDynamicSashSplitEvent(_arg0
);
177 wxPy_END_ALLOW_THREADS
;
179 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDynamicSashSplitEvent_p");
180 _resultobj
= Py_BuildValue("s",_ptemp
);
183 _resultobj
= Py_None
;
188 static void *SwigwxDynamicSashUnifyEventTowxCommandEvent(void *ptr
) {
189 wxDynamicSashUnifyEvent
*src
;
190 wxCommandEvent
*dest
;
191 src
= (wxDynamicSashUnifyEvent
*) ptr
;
192 dest
= (wxCommandEvent
*) src
;
193 return (void *) dest
;
196 static void *SwigwxDynamicSashUnifyEventTowxEvent(void *ptr
) {
197 wxDynamicSashUnifyEvent
*src
;
199 src
= (wxDynamicSashUnifyEvent
*) ptr
;
200 dest
= (wxEvent
*) src
;
201 return (void *) dest
;
204 static void *SwigwxDynamicSashUnifyEventTowxObject(void *ptr
) {
205 wxDynamicSashUnifyEvent
*src
;
207 src
= (wxDynamicSashUnifyEvent
*) ptr
;
208 dest
= (wxObject
*) src
;
209 return (void *) dest
;
212 #define new_wxDynamicSashUnifyEvent(_swigarg0) (new wxDynamicSashUnifyEvent(_swigarg0))
213 static PyObject
*_wrap_new_wxDynamicSashUnifyEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
214 PyObject
* _resultobj
;
215 wxDynamicSashUnifyEvent
* _result
;
217 PyObject
* _argo0
= 0;
218 char *_kwnames
[] = { "target", NULL
};
222 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxDynamicSashUnifyEvent",_kwnames
,&_argo0
))
225 if (_argo0
== Py_None
) { _arg0
= NULL
; }
226 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxObject_p")) {
227 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDynamicSashUnifyEvent. Expected _wxObject_p.");
232 wxPy_BEGIN_ALLOW_THREADS
;
233 _result
= (wxDynamicSashUnifyEvent
*)new_wxDynamicSashUnifyEvent(_arg0
);
235 wxPy_END_ALLOW_THREADS
;
237 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDynamicSashUnifyEvent_p");
238 _resultobj
= Py_BuildValue("s",_ptemp
);
241 _resultobj
= Py_None
;
246 static void *SwigwxDynamicSashWindowTowxWindow(void *ptr
) {
247 wxDynamicSashWindow
*src
;
249 src
= (wxDynamicSashWindow
*) ptr
;
250 dest
= (wxWindow
*) src
;
251 return (void *) dest
;
254 static void *SwigwxDynamicSashWindowTowxEvtHandler(void *ptr
) {
255 wxDynamicSashWindow
*src
;
257 src
= (wxDynamicSashWindow
*) ptr
;
258 dest
= (wxEvtHandler
*) src
;
259 return (void *) dest
;
262 static void *SwigwxDynamicSashWindowTowxObject(void *ptr
) {
263 wxDynamicSashWindow
*src
;
265 src
= (wxDynamicSashWindow
*) ptr
;
266 dest
= (wxObject
*) src
;
267 return (void *) dest
;
270 #define new_wxDynamicSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxDynamicSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
271 static PyObject
*_wrap_new_wxDynamicSashWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
272 PyObject
* _resultobj
;
273 wxDynamicSashWindow
* _result
;
276 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
277 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
278 long _arg4
= (long ) wxCLIP_CHILDREN
|(wxDS_MANAGE_SCROLLBARS
)|(wxDS_DRAG_CORNER
);
279 char * _arg5
= (char *) "dynamicSashWindow";
280 PyObject
* _argo0
= 0;
282 PyObject
* _obj2
= 0;
284 PyObject
* _obj3
= 0;
285 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxDynamicSashWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDynamicSashWindow. Expected _wxWindow_p.");
301 if (! wxPoint_helper(_obj2
, &_arg2
))
307 if (! wxSize_helper(_obj3
, &_arg3
))
311 wxPy_BEGIN_ALLOW_THREADS
;
312 _result
= (wxDynamicSashWindow
*)new_wxDynamicSashWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
314 wxPy_END_ALLOW_THREADS
;
316 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDynamicSashWindow_p");
317 _resultobj
= Py_BuildValue("s",_ptemp
);
320 _resultobj
= Py_None
;
325 #define new_wxPreDynamicSashWindow() (new wxDynamicSashWindow())
326 static PyObject
*_wrap_new_wxPreDynamicSashWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
327 PyObject
* _resultobj
;
328 wxDynamicSashWindow
* _result
;
329 char *_kwnames
[] = { NULL
};
333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreDynamicSashWindow",_kwnames
))
336 wxPy_BEGIN_ALLOW_THREADS
;
337 _result
= (wxDynamicSashWindow
*)new_wxPreDynamicSashWindow();
339 wxPy_END_ALLOW_THREADS
;
341 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDynamicSashWindow_p");
342 _resultobj
= Py_BuildValue("s",_ptemp
);
345 _resultobj
= Py_None
;
350 #define wxDynamicSashWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
351 static PyObject
*_wrap_wxDynamicSashWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
352 PyObject
* _resultobj
;
354 wxDynamicSashWindow
* _arg0
;
357 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
358 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
359 long _arg5
= (long ) wxCLIP_CHILDREN
|(wxDS_MANAGE_SCROLLBARS
)|(wxDS_DRAG_CORNER
);
360 char * _arg6
= (char *) "dynamicSashWindow";
361 PyObject
* _argo0
= 0;
362 PyObject
* _argo1
= 0;
364 PyObject
* _obj3
= 0;
366 PyObject
* _obj4
= 0;
367 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxDynamicSashWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDynamicSashWindow_p")) {
375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDynamicSashWindow_Create. Expected _wxDynamicSashWindow_p.");
380 if (_argo1
== Py_None
) { _arg1
= NULL
; }
381 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDynamicSashWindow_Create. Expected _wxWindow_p.");
389 if (! wxPoint_helper(_obj3
, &_arg3
))
395 if (! wxSize_helper(_obj4
, &_arg4
))
399 wxPy_BEGIN_ALLOW_THREADS
;
400 _result
= (bool )wxDynamicSashWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
402 wxPy_END_ALLOW_THREADS
;
403 } _resultobj
= Py_BuildValue("i",_result
);
407 #define wxDynamicSashWindow_GetHScrollBar(_swigobj,_swigarg0) (_swigobj->GetHScrollBar(_swigarg0))
408 static PyObject
*_wrap_wxDynamicSashWindow_GetHScrollBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
409 PyObject
* _resultobj
;
410 wxScrollBar
* _result
;
411 wxDynamicSashWindow
* _arg0
;
413 PyObject
* _argo0
= 0;
414 PyObject
* _argo1
= 0;
415 char *_kwnames
[] = { "self","child", NULL
};
419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDynamicSashWindow_GetHScrollBar",_kwnames
,&_argo0
,&_argo1
))
422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDynamicSashWindow_p")) {
424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDynamicSashWindow_GetHScrollBar. Expected _wxDynamicSashWindow_p.");
429 if (_argo1
== Py_None
) { _arg1
= NULL
; }
430 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDynamicSashWindow_GetHScrollBar. Expected _wxWindow_p.");
436 wxPy_BEGIN_ALLOW_THREADS
;
437 _result
= (wxScrollBar
*)wxDynamicSashWindow_GetHScrollBar(_arg0
,_arg1
);
439 wxPy_END_ALLOW_THREADS
;
441 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrollBar_p");
442 _resultobj
= Py_BuildValue("s",_ptemp
);
445 _resultobj
= Py_None
;
450 #define wxDynamicSashWindow_GetVScrollBar(_swigobj,_swigarg0) (_swigobj->GetVScrollBar(_swigarg0))
451 static PyObject
*_wrap_wxDynamicSashWindow_GetVScrollBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
452 PyObject
* _resultobj
;
453 wxScrollBar
* _result
;
454 wxDynamicSashWindow
* _arg0
;
456 PyObject
* _argo0
= 0;
457 PyObject
* _argo1
= 0;
458 char *_kwnames
[] = { "self","child", NULL
};
462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDynamicSashWindow_GetVScrollBar",_kwnames
,&_argo0
,&_argo1
))
465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDynamicSashWindow_p")) {
467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDynamicSashWindow_GetVScrollBar. Expected _wxDynamicSashWindow_p.");
472 if (_argo1
== Py_None
) { _arg1
= NULL
; }
473 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDynamicSashWindow_GetVScrollBar. Expected _wxWindow_p.");
479 wxPy_BEGIN_ALLOW_THREADS
;
480 _result
= (wxScrollBar
*)wxDynamicSashWindow_GetVScrollBar(_arg0
,_arg1
);
482 wxPy_END_ALLOW_THREADS
;
484 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrollBar_p");
485 _resultobj
= Py_BuildValue("s",_ptemp
);
488 _resultobj
= Py_None
;
493 static void *SwigwxEditableListBoxTowxPanel(void *ptr
) {
494 wxEditableListBox
*src
;
496 src
= (wxEditableListBox
*) ptr
;
497 dest
= (wxPanel
*) src
;
498 return (void *) dest
;
501 static void *SwigwxEditableListBoxTowxWindow(void *ptr
) {
502 wxEditableListBox
*src
;
504 src
= (wxEditableListBox
*) ptr
;
505 dest
= (wxWindow
*) src
;
506 return (void *) dest
;
509 static void *SwigwxEditableListBoxTowxEvtHandler(void *ptr
) {
510 wxEditableListBox
*src
;
512 src
= (wxEditableListBox
*) ptr
;
513 dest
= (wxEvtHandler
*) src
;
514 return (void *) dest
;
517 static void *SwigwxEditableListBoxTowxObject(void *ptr
) {
518 wxEditableListBox
*src
;
520 src
= (wxEditableListBox
*) ptr
;
521 dest
= (wxObject
*) src
;
522 return (void *) dest
;
525 #define new_wxEditableListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxEditableListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
526 static PyObject
*_wrap_new_wxEditableListBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
527 PyObject
* _resultobj
;
528 wxEditableListBox
* _result
;
532 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
533 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
534 char * _arg5
= (char *) "editableListBox";
535 PyObject
* _argo0
= 0;
536 PyObject
* _obj2
= 0;
538 PyObject
* _obj3
= 0;
540 PyObject
* _obj4
= 0;
541 char *_kwnames
[] = { "parent","id","label","pos","size","name", NULL
};
545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOs:new_wxEditableListBox",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
))
548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxEditableListBox. Expected _wxWindow_p.");
555 #if PYTHON_API_VERSION >= 1009
556 char* tmpPtr
; int tmpSize
;
557 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
558 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
561 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
563 _arg2
= new wxString(tmpPtr
, tmpSize
);
565 if (!PyString_Check(_obj2
)) {
566 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
569 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
575 if (! wxPoint_helper(_obj3
, &_arg3
))
581 if (! wxSize_helper(_obj4
, &_arg4
))
585 wxPy_BEGIN_ALLOW_THREADS
;
586 _result
= (wxEditableListBox
*)new_wxEditableListBox(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
);
588 wxPy_END_ALLOW_THREADS
;
590 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEditableListBox_p");
591 _resultobj
= Py_BuildValue("s",_ptemp
);
594 _resultobj
= Py_None
;
603 #define wxEditableListBox_SetStrings(_swigobj,_swigarg0) (_swigobj->SetStrings(_swigarg0))
604 static PyObject
*_wrap_wxEditableListBox_SetStrings(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
605 PyObject
* _resultobj
;
606 wxEditableListBox
* _arg0
;
607 wxArrayString
* _arg1
;
608 PyObject
* _argo0
= 0;
609 PyObject
* _obj1
= 0;
610 char *_kwnames
[] = { "self","strings", NULL
};
613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEditableListBox_SetStrings",_kwnames
,&_argo0
,&_obj1
))
616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEditableListBox_p")) {
618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEditableListBox_SetStrings. Expected _wxEditableListBox_p.");
623 if (! PySequence_Check(_obj1
)) {
624 PyErr_SetString(PyExc_TypeError
, "Sequence of strings expected.");
627 _arg1
= new wxArrayString
;
628 int i
, len
=PySequence_Length(_obj1
);
629 for (i
=0; i
<len
; i
++) {
630 PyObject
* item
= PySequence_GetItem(_obj1
, i
);
631 PyObject
* str
= PyObject_Str(item
);
632 _arg1
->Add(PyString_AsString(item
));
638 wxPy_BEGIN_ALLOW_THREADS
;
639 wxEditableListBox_SetStrings(_arg0
,*_arg1
);
641 wxPy_END_ALLOW_THREADS
;
642 } Py_INCREF(Py_None
);
643 _resultobj
= Py_None
;
651 static PyObject
* wxEditableListBox_GetStrings(wxEditableListBox
*self
) {
652 wxArrayString strings
;
653 self
->GetStrings(strings
);
654 return wxArrayString2PyList_helper(strings
);
656 static PyObject
*_wrap_wxEditableListBox_GetStrings(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
657 PyObject
* _resultobj
;
659 wxEditableListBox
* _arg0
;
660 PyObject
* _argo0
= 0;
661 char *_kwnames
[] = { "self", NULL
};
664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEditableListBox_GetStrings",_kwnames
,&_argo0
))
667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEditableListBox_p")) {
669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEditableListBox_GetStrings. Expected _wxEditableListBox_p.");
674 wxPy_BEGIN_ALLOW_THREADS
;
675 _result
= (PyObject
*)wxEditableListBox_GetStrings(_arg0
);
677 wxPy_END_ALLOW_THREADS
;
679 _resultobj
= _result
;
684 static void *SwigwxRemotelyScrolledTreeCtrlTowxPyTreeCtrl(void *ptr
) {
685 wxRemotelyScrolledTreeCtrl
*src
;
687 src
= (wxRemotelyScrolledTreeCtrl
*) ptr
;
688 dest
= (wxPyTreeCtrl
*) src
;
689 return (void *) dest
;
692 static void *SwigwxRemotelyScrolledTreeCtrlTowxControl(void *ptr
) {
693 wxRemotelyScrolledTreeCtrl
*src
;
695 src
= (wxRemotelyScrolledTreeCtrl
*) ptr
;
696 dest
= (wxControl
*) src
;
697 return (void *) dest
;
700 static void *SwigwxRemotelyScrolledTreeCtrlTowxWindow(void *ptr
) {
701 wxRemotelyScrolledTreeCtrl
*src
;
703 src
= (wxRemotelyScrolledTreeCtrl
*) ptr
;
704 dest
= (wxWindow
*) src
;
705 return (void *) dest
;
708 static void *SwigwxRemotelyScrolledTreeCtrlTowxEvtHandler(void *ptr
) {
709 wxRemotelyScrolledTreeCtrl
*src
;
711 src
= (wxRemotelyScrolledTreeCtrl
*) ptr
;
712 dest
= (wxEvtHandler
*) src
;
713 return (void *) dest
;
716 static void *SwigwxRemotelyScrolledTreeCtrlTowxObject(void *ptr
) {
717 wxRemotelyScrolledTreeCtrl
*src
;
719 src
= (wxRemotelyScrolledTreeCtrl
*) ptr
;
720 dest
= (wxObject
*) src
;
721 return (void *) dest
;
724 #define new_wxRemotelyScrolledTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxRemotelyScrolledTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
725 static PyObject
*_wrap_new_wxRemotelyScrolledTreeCtrl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
726 PyObject
* _resultobj
;
727 wxRemotelyScrolledTreeCtrl
* _result
;
730 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
731 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
732 long _arg4
= (long ) wxTR_HAS_BUTTONS
;
733 PyObject
* _argo0
= 0;
735 PyObject
* _obj2
= 0;
737 PyObject
* _obj3
= 0;
738 char *_kwnames
[] = { "parent","id","pos","size","style", NULL
};
742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOl:new_wxRemotelyScrolledTreeCtrl",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRemotelyScrolledTreeCtrl. Expected _wxWindow_p.");
754 if (! wxPoint_helper(_obj2
, &_arg2
))
760 if (! wxSize_helper(_obj3
, &_arg3
))
764 wxPy_BEGIN_ALLOW_THREADS
;
765 _result
= (wxRemotelyScrolledTreeCtrl
*)new_wxRemotelyScrolledTreeCtrl(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
767 wxPy_END_ALLOW_THREADS
;
769 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRemotelyScrolledTreeCtrl_p");
770 _resultobj
= Py_BuildValue("s",_ptemp
);
773 _resultobj
= Py_None
;
778 #define wxRemotelyScrolledTreeCtrl_HideVScrollbar(_swigobj) (_swigobj->HideVScrollbar())
779 static PyObject
*_wrap_wxRemotelyScrolledTreeCtrl_HideVScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
780 PyObject
* _resultobj
;
781 wxRemotelyScrolledTreeCtrl
* _arg0
;
782 PyObject
* _argo0
= 0;
783 char *_kwnames
[] = { "self", NULL
};
786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRemotelyScrolledTreeCtrl_HideVScrollbar",_kwnames
,&_argo0
))
789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRemotelyScrolledTreeCtrl_p")) {
791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_HideVScrollbar. Expected _wxRemotelyScrolledTreeCtrl_p.");
796 wxPy_BEGIN_ALLOW_THREADS
;
797 wxRemotelyScrolledTreeCtrl_HideVScrollbar(_arg0
);
799 wxPy_END_ALLOW_THREADS
;
800 } Py_INCREF(Py_None
);
801 _resultobj
= Py_None
;
805 #define wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(_swigobj) (_swigobj->AdjustRemoteScrollbars())
806 static PyObject
*_wrap_wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
807 PyObject
* _resultobj
;
808 wxRemotelyScrolledTreeCtrl
* _arg0
;
809 PyObject
* _argo0
= 0;
810 char *_kwnames
[] = { "self", NULL
};
813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars",_kwnames
,&_argo0
))
816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRemotelyScrolledTreeCtrl_p")) {
818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars. Expected _wxRemotelyScrolledTreeCtrl_p.");
823 wxPy_BEGIN_ALLOW_THREADS
;
824 wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(_arg0
);
826 wxPy_END_ALLOW_THREADS
;
827 } Py_INCREF(Py_None
);
828 _resultobj
= Py_None
;
832 #define wxRemotelyScrolledTreeCtrl_GetScrolledWindow(_swigobj) (_swigobj->GetScrolledWindow())
833 static PyObject
*_wrap_wxRemotelyScrolledTreeCtrl_GetScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
834 PyObject
* _resultobj
;
835 wxScrolledWindow
* _result
;
836 wxRemotelyScrolledTreeCtrl
* _arg0
;
837 PyObject
* _argo0
= 0;
838 char *_kwnames
[] = { "self", NULL
};
842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRemotelyScrolledTreeCtrl_GetScrolledWindow",_kwnames
,&_argo0
))
845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRemotelyScrolledTreeCtrl_p")) {
847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_GetScrolledWindow. Expected _wxRemotelyScrolledTreeCtrl_p.");
852 wxPy_BEGIN_ALLOW_THREADS
;
853 _result
= (wxScrolledWindow
*)wxRemotelyScrolledTreeCtrl_GetScrolledWindow(_arg0
);
855 wxPy_END_ALLOW_THREADS
;
857 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
858 _resultobj
= Py_BuildValue("s",_ptemp
);
861 _resultobj
= Py_None
;
866 #define wxRemotelyScrolledTreeCtrl_ScrollToLine(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollToLine(_swigarg0,_swigarg1))
867 static PyObject
*_wrap_wxRemotelyScrolledTreeCtrl_ScrollToLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
868 PyObject
* _resultobj
;
869 wxRemotelyScrolledTreeCtrl
* _arg0
;
872 PyObject
* _argo0
= 0;
873 char *_kwnames
[] = { "self","posHoriz","posVert", NULL
};
876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRemotelyScrolledTreeCtrl_ScrollToLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRemotelyScrolledTreeCtrl_p")) {
881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_ScrollToLine. Expected _wxRemotelyScrolledTreeCtrl_p.");
886 wxPy_BEGIN_ALLOW_THREADS
;
887 wxRemotelyScrolledTreeCtrl_ScrollToLine(_arg0
,_arg1
,_arg2
);
889 wxPy_END_ALLOW_THREADS
;
890 } Py_INCREF(Py_None
);
891 _resultobj
= Py_None
;
895 #define wxRemotelyScrolledTreeCtrl_SetCompanionWindow(_swigobj,_swigarg0) (_swigobj->SetCompanionWindow(_swigarg0))
896 static PyObject
*_wrap_wxRemotelyScrolledTreeCtrl_SetCompanionWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
897 PyObject
* _resultobj
;
898 wxRemotelyScrolledTreeCtrl
* _arg0
;
900 PyObject
* _argo0
= 0;
901 PyObject
* _argo1
= 0;
902 char *_kwnames
[] = { "self","companion", NULL
};
905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRemotelyScrolledTreeCtrl_SetCompanionWindow",_kwnames
,&_argo0
,&_argo1
))
908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRemotelyScrolledTreeCtrl_p")) {
910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_SetCompanionWindow. Expected _wxRemotelyScrolledTreeCtrl_p.");
915 if (_argo1
== Py_None
) { _arg1
= NULL
; }
916 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRemotelyScrolledTreeCtrl_SetCompanionWindow. Expected _wxWindow_p.");
922 wxPy_BEGIN_ALLOW_THREADS
;
923 wxRemotelyScrolledTreeCtrl_SetCompanionWindow(_arg0
,_arg1
);
925 wxPy_END_ALLOW_THREADS
;
926 } Py_INCREF(Py_None
);
927 _resultobj
= Py_None
;
931 #define wxRemotelyScrolledTreeCtrl_GetCompanionWindow(_swigobj) (_swigobj->GetCompanionWindow())
932 static PyObject
*_wrap_wxRemotelyScrolledTreeCtrl_GetCompanionWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
933 PyObject
* _resultobj
;
935 wxRemotelyScrolledTreeCtrl
* _arg0
;
936 PyObject
* _argo0
= 0;
937 char *_kwnames
[] = { "self", NULL
};
940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRemotelyScrolledTreeCtrl_GetCompanionWindow",_kwnames
,&_argo0
))
943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRemotelyScrolledTreeCtrl_p")) {
945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_GetCompanionWindow. Expected _wxRemotelyScrolledTreeCtrl_p.");
950 wxPy_BEGIN_ALLOW_THREADS
;
951 _result
= (wxWindow
*)wxRemotelyScrolledTreeCtrl_GetCompanionWindow(_arg0
);
953 wxPy_END_ALLOW_THREADS
;
954 }{ _resultobj
= wxPyMake_wxObject(_result
); }
958 static void *SwigwxPyTreeCompanionWindowTowxWindow(void *ptr
) {
959 wxPyTreeCompanionWindow
*src
;
961 src
= (wxPyTreeCompanionWindow
*) ptr
;
962 dest
= (wxWindow
*) src
;
963 return (void *) dest
;
966 static void *SwigwxPyTreeCompanionWindowTowxEvtHandler(void *ptr
) {
967 wxPyTreeCompanionWindow
*src
;
969 src
= (wxPyTreeCompanionWindow
*) ptr
;
970 dest
= (wxEvtHandler
*) src
;
971 return (void *) dest
;
974 static void *SwigwxPyTreeCompanionWindowTowxObject(void *ptr
) {
975 wxPyTreeCompanionWindow
*src
;
977 src
= (wxPyTreeCompanionWindow
*) ptr
;
978 dest
= (wxObject
*) src
;
979 return (void *) dest
;
982 #define new_wxTreeCompanionWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPyTreeCompanionWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
983 static PyObject
*_wrap_new_wxTreeCompanionWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
984 PyObject
* _resultobj
;
985 wxPyTreeCompanionWindow
* _result
;
987 wxWindowID _arg1
= (wxWindowID
) -1;
988 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
989 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
990 long _arg4
= (long ) 0;
991 PyObject
* _argo0
= 0;
993 PyObject
* _obj2
= 0;
995 PyObject
* _obj3
= 0;
996 char *_kwnames
[] = { "parent","id","pos","size","style", NULL
};
1000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOl:new_wxTreeCompanionWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
1003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxTreeCompanionWindow. Expected _wxWindow_p.");
1012 if (! wxPoint_helper(_obj2
, &_arg2
))
1018 if (! wxSize_helper(_obj3
, &_arg3
))
1022 wxPy_BEGIN_ALLOW_THREADS
;
1023 _result
= (wxPyTreeCompanionWindow
*)new_wxTreeCompanionWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
1025 wxPy_END_ALLOW_THREADS
;
1027 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTreeCompanionWindow_p");
1028 _resultobj
= Py_BuildValue("s",_ptemp
);
1031 _resultobj
= Py_None
;
1036 #define wxTreeCompanionWindow__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1037 static PyObject
*_wrap_wxTreeCompanionWindow__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1038 PyObject
* _resultobj
;
1039 wxPyTreeCompanionWindow
* _arg0
;
1042 PyObject
* _argo0
= 0;
1043 PyObject
* _obj1
= 0;
1044 PyObject
* _obj2
= 0;
1045 char *_kwnames
[] = { "self","self","_class", NULL
};
1048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTreeCompanionWindow__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTreeCompanionWindow_p")) {
1053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTreeCompanionWindow__setCallbackInfo. Expected _wxPyTreeCompanionWindow_p.");
1064 wxPy_BEGIN_ALLOW_THREADS
;
1065 wxTreeCompanionWindow__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1067 wxPy_END_ALLOW_THREADS
;
1068 } Py_INCREF(Py_None
);
1069 _resultobj
= Py_None
;
1073 #define wxTreeCompanionWindow_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl())
1074 static PyObject
*_wrap_wxTreeCompanionWindow_GetTreeCtrl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1075 PyObject
* _resultobj
;
1076 wxRemotelyScrolledTreeCtrl
* _result
;
1077 wxPyTreeCompanionWindow
* _arg0
;
1078 PyObject
* _argo0
= 0;
1079 char *_kwnames
[] = { "self", NULL
};
1083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTreeCompanionWindow_GetTreeCtrl",_kwnames
,&_argo0
))
1086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTreeCompanionWindow_p")) {
1088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTreeCompanionWindow_GetTreeCtrl. Expected _wxPyTreeCompanionWindow_p.");
1093 wxPy_BEGIN_ALLOW_THREADS
;
1094 _result
= (wxRemotelyScrolledTreeCtrl
*)wxTreeCompanionWindow_GetTreeCtrl(_arg0
);
1096 wxPy_END_ALLOW_THREADS
;
1098 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRemotelyScrolledTreeCtrl_p");
1099 _resultobj
= Py_BuildValue("s",_ptemp
);
1102 _resultobj
= Py_None
;
1107 #define wxTreeCompanionWindow_SetTreeCtrl(_swigobj,_swigarg0) (_swigobj->SetTreeCtrl(_swigarg0))
1108 static PyObject
*_wrap_wxTreeCompanionWindow_SetTreeCtrl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1109 PyObject
* _resultobj
;
1110 wxPyTreeCompanionWindow
* _arg0
;
1111 wxRemotelyScrolledTreeCtrl
* _arg1
;
1112 PyObject
* _argo0
= 0;
1113 PyObject
* _argo1
= 0;
1114 char *_kwnames
[] = { "self","treeCtrl", NULL
};
1117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTreeCompanionWindow_SetTreeCtrl",_kwnames
,&_argo0
,&_argo1
))
1120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTreeCompanionWindow_p")) {
1122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTreeCompanionWindow_SetTreeCtrl. Expected _wxPyTreeCompanionWindow_p.");
1127 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1128 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRemotelyScrolledTreeCtrl_p")) {
1129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTreeCompanionWindow_SetTreeCtrl. Expected _wxRemotelyScrolledTreeCtrl_p.");
1134 wxPy_BEGIN_ALLOW_THREADS
;
1135 wxTreeCompanionWindow_SetTreeCtrl(_arg0
,_arg1
);
1137 wxPy_END_ALLOW_THREADS
;
1138 } Py_INCREF(Py_None
);
1139 _resultobj
= Py_None
;
1143 static void *SwigwxThinSplitterWindowTowxSplitterWindow(void *ptr
) {
1144 wxThinSplitterWindow
*src
;
1145 wxSplitterWindow
*dest
;
1146 src
= (wxThinSplitterWindow
*) ptr
;
1147 dest
= (wxSplitterWindow
*) src
;
1148 return (void *) dest
;
1151 static void *SwigwxThinSplitterWindowTowxWindow(void *ptr
) {
1152 wxThinSplitterWindow
*src
;
1154 src
= (wxThinSplitterWindow
*) ptr
;
1155 dest
= (wxWindow
*) src
;
1156 return (void *) dest
;
1159 static void *SwigwxThinSplitterWindowTowxEvtHandler(void *ptr
) {
1160 wxThinSplitterWindow
*src
;
1162 src
= (wxThinSplitterWindow
*) ptr
;
1163 dest
= (wxEvtHandler
*) src
;
1164 return (void *) dest
;
1167 static void *SwigwxThinSplitterWindowTowxObject(void *ptr
) {
1168 wxThinSplitterWindow
*src
;
1170 src
= (wxThinSplitterWindow
*) ptr
;
1171 dest
= (wxObject
*) src
;
1172 return (void *) dest
;
1175 #define new_wxThinSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxThinSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1176 static PyObject
*_wrap_new_wxThinSplitterWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1177 PyObject
* _resultobj
;
1178 wxThinSplitterWindow
* _result
;
1180 wxWindowID _arg1
= (wxWindowID
) -1;
1181 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
1182 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
1183 long _arg4
= (long ) wxSP_3D
|wxCLIP_CHILDREN
;
1184 PyObject
* _argo0
= 0;
1186 PyObject
* _obj2
= 0;
1188 PyObject
* _obj3
= 0;
1189 char *_kwnames
[] = { "parent","id","pos","size","style", NULL
};
1193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOl:new_wxThinSplitterWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
1196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxThinSplitterWindow. Expected _wxWindow_p.");
1205 if (! wxPoint_helper(_obj2
, &_arg2
))
1211 if (! wxSize_helper(_obj3
, &_arg3
))
1215 wxPy_BEGIN_ALLOW_THREADS
;
1216 _result
= (wxThinSplitterWindow
*)new_wxThinSplitterWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
1218 wxPy_END_ALLOW_THREADS
;
1220 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxThinSplitterWindow_p");
1221 _resultobj
= Py_BuildValue("s",_ptemp
);
1224 _resultobj
= Py_None
;
1229 static void *SwigwxSplitterScrolledWindowTowxScrolledWindow(void *ptr
) {
1230 wxSplitterScrolledWindow
*src
;
1231 wxScrolledWindow
*dest
;
1232 src
= (wxSplitterScrolledWindow
*) ptr
;
1233 dest
= (wxScrolledWindow
*) src
;
1234 return (void *) dest
;
1237 static void *SwigwxSplitterScrolledWindowTowxPanel(void *ptr
) {
1238 wxSplitterScrolledWindow
*src
;
1240 src
= (wxSplitterScrolledWindow
*) ptr
;
1241 dest
= (wxPanel
*) src
;
1242 return (void *) dest
;
1245 static void *SwigwxSplitterScrolledWindowTowxWindow(void *ptr
) {
1246 wxSplitterScrolledWindow
*src
;
1248 src
= (wxSplitterScrolledWindow
*) ptr
;
1249 dest
= (wxWindow
*) src
;
1250 return (void *) dest
;
1253 static void *SwigwxSplitterScrolledWindowTowxEvtHandler(void *ptr
) {
1254 wxSplitterScrolledWindow
*src
;
1256 src
= (wxSplitterScrolledWindow
*) ptr
;
1257 dest
= (wxEvtHandler
*) src
;
1258 return (void *) dest
;
1261 static void *SwigwxSplitterScrolledWindowTowxObject(void *ptr
) {
1262 wxSplitterScrolledWindow
*src
;
1264 src
= (wxSplitterScrolledWindow
*) ptr
;
1265 dest
= (wxObject
*) src
;
1266 return (void *) dest
;
1269 #define new_wxSplitterScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxSplitterScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1270 static PyObject
*_wrap_new_wxSplitterScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1271 PyObject
* _resultobj
;
1272 wxSplitterScrolledWindow
* _result
;
1274 wxWindowID _arg1
= (wxWindowID
) -1;
1275 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
1276 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
1277 long _arg4
= (long ) 0;
1278 PyObject
* _argo0
= 0;
1280 PyObject
* _obj2
= 0;
1282 PyObject
* _obj3
= 0;
1283 char *_kwnames
[] = { "parent","id","pos","size","style", NULL
};
1287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOl:new_wxSplitterScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
1290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxSplitterScrolledWindow. Expected _wxWindow_p.");
1299 if (! wxPoint_helper(_obj2
, &_arg2
))
1305 if (! wxSize_helper(_obj3
, &_arg3
))
1309 wxPy_BEGIN_ALLOW_THREADS
;
1310 _result
= (wxSplitterScrolledWindow
*)new_wxSplitterScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
1312 wxPy_END_ALLOW_THREADS
;
1314 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxSplitterScrolledWindow_p");
1315 _resultobj
= Py_BuildValue("s",_ptemp
);
1318 _resultobj
= Py_None
;
1323 static PyMethodDef gizmoscMethods
[] = {
1324 { "new_wxSplitterScrolledWindow", (PyCFunction
) _wrap_new_wxSplitterScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
1325 { "new_wxThinSplitterWindow", (PyCFunction
) _wrap_new_wxThinSplitterWindow
, METH_VARARGS
| METH_KEYWORDS
},
1326 { "wxTreeCompanionWindow_SetTreeCtrl", (PyCFunction
) _wrap_wxTreeCompanionWindow_SetTreeCtrl
, METH_VARARGS
| METH_KEYWORDS
},
1327 { "wxTreeCompanionWindow_GetTreeCtrl", (PyCFunction
) _wrap_wxTreeCompanionWindow_GetTreeCtrl
, METH_VARARGS
| METH_KEYWORDS
},
1328 { "wxTreeCompanionWindow__setCallbackInfo", (PyCFunction
) _wrap_wxTreeCompanionWindow__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
1329 { "new_wxTreeCompanionWindow", (PyCFunction
) _wrap_new_wxTreeCompanionWindow
, METH_VARARGS
| METH_KEYWORDS
},
1330 { "wxRemotelyScrolledTreeCtrl_GetCompanionWindow", (PyCFunction
) _wrap_wxRemotelyScrolledTreeCtrl_GetCompanionWindow
, METH_VARARGS
| METH_KEYWORDS
},
1331 { "wxRemotelyScrolledTreeCtrl_SetCompanionWindow", (PyCFunction
) _wrap_wxRemotelyScrolledTreeCtrl_SetCompanionWindow
, METH_VARARGS
| METH_KEYWORDS
},
1332 { "wxRemotelyScrolledTreeCtrl_ScrollToLine", (PyCFunction
) _wrap_wxRemotelyScrolledTreeCtrl_ScrollToLine
, METH_VARARGS
| METH_KEYWORDS
},
1333 { "wxRemotelyScrolledTreeCtrl_GetScrolledWindow", (PyCFunction
) _wrap_wxRemotelyScrolledTreeCtrl_GetScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
1334 { "wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars", (PyCFunction
) _wrap_wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
1335 { "wxRemotelyScrolledTreeCtrl_HideVScrollbar", (PyCFunction
) _wrap_wxRemotelyScrolledTreeCtrl_HideVScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
1336 { "new_wxRemotelyScrolledTreeCtrl", (PyCFunction
) _wrap_new_wxRemotelyScrolledTreeCtrl
, METH_VARARGS
| METH_KEYWORDS
},
1337 { "wxEditableListBox_GetStrings", (PyCFunction
) _wrap_wxEditableListBox_GetStrings
, METH_VARARGS
| METH_KEYWORDS
},
1338 { "wxEditableListBox_SetStrings", (PyCFunction
) _wrap_wxEditableListBox_SetStrings
, METH_VARARGS
| METH_KEYWORDS
},
1339 { "new_wxEditableListBox", (PyCFunction
) _wrap_new_wxEditableListBox
, METH_VARARGS
| METH_KEYWORDS
},
1340 { "wxDynamicSashWindow_GetVScrollBar", (PyCFunction
) _wrap_wxDynamicSashWindow_GetVScrollBar
, METH_VARARGS
| METH_KEYWORDS
},
1341 { "wxDynamicSashWindow_GetHScrollBar", (PyCFunction
) _wrap_wxDynamicSashWindow_GetHScrollBar
, METH_VARARGS
| METH_KEYWORDS
},
1342 { "wxDynamicSashWindow_Create", (PyCFunction
) _wrap_wxDynamicSashWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
1343 { "new_wxPreDynamicSashWindow", (PyCFunction
) _wrap_new_wxPreDynamicSashWindow
, METH_VARARGS
| METH_KEYWORDS
},
1344 { "new_wxDynamicSashWindow", (PyCFunction
) _wrap_new_wxDynamicSashWindow
, METH_VARARGS
| METH_KEYWORDS
},
1345 { "new_wxDynamicSashUnifyEvent", (PyCFunction
) _wrap_new_wxDynamicSashUnifyEvent
, METH_VARARGS
| METH_KEYWORDS
},
1346 { "new_wxDynamicSashSplitEvent", (PyCFunction
) _wrap_new_wxDynamicSashSplitEvent
, METH_VARARGS
| METH_KEYWORDS
},
1353 * This table is used by the pointer type-checker
1355 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1356 { "_wxEvent","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxEvent
},
1357 { "_wxEvent","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxEvent
},
1358 { "_signed_long","_long",0},
1359 { "_wxPrintQuality","_wxCoord",0},
1360 { "_wxPrintQuality","_int",0},
1361 { "_wxPrintQuality","_signed_int",0},
1362 { "_wxPrintQuality","_unsigned_int",0},
1363 { "_wxPrintQuality","_wxWindowID",0},
1364 { "_wxPrintQuality","_uint",0},
1365 { "_wxPrintQuality","_EBool",0},
1366 { "_wxPrintQuality","_size_t",0},
1367 { "_wxPrintQuality","_time_t",0},
1368 { "_wxPyTreeCtrl","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxPyTreeCtrl
},
1369 { "_byte","_unsigned_char",0},
1370 { "_long","_unsigned_long",0},
1371 { "_long","_signed_long",0},
1372 { "_size_t","_wxCoord",0},
1373 { "_size_t","_wxPrintQuality",0},
1374 { "_size_t","_time_t",0},
1375 { "_size_t","_unsigned_int",0},
1376 { "_size_t","_int",0},
1377 { "_size_t","_wxWindowID",0},
1378 { "_size_t","_uint",0},
1379 { "_wxPanel","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxPanel
},
1380 { "_wxPanel","_wxEditableListBox",SwigwxEditableListBoxTowxPanel
},
1381 { "_uint","_wxCoord",0},
1382 { "_uint","_wxPrintQuality",0},
1383 { "_uint","_time_t",0},
1384 { "_uint","_size_t",0},
1385 { "_uint","_unsigned_int",0},
1386 { "_uint","_int",0},
1387 { "_uint","_wxWindowID",0},
1388 { "_wxChar","_char",0},
1389 { "_wxCommandEvent","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxCommandEvent
},
1390 { "_wxCommandEvent","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxCommandEvent
},
1391 { "_char","_wxChar",0},
1392 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1393 { "_EBool","_wxCoord",0},
1394 { "_EBool","_wxPrintQuality",0},
1395 { "_EBool","_signed_int",0},
1396 { "_EBool","_int",0},
1397 { "_EBool","_wxWindowID",0},
1398 { "_unsigned_long","_long",0},
1399 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1400 { "_signed_int","_wxCoord",0},
1401 { "_signed_int","_wxPrintQuality",0},
1402 { "_signed_int","_EBool",0},
1403 { "_signed_int","_wxWindowID",0},
1404 { "_signed_int","_int",0},
1405 { "_WXTYPE","_wxDateTime_t",0},
1406 { "_WXTYPE","_short",0},
1407 { "_WXTYPE","_signed_short",0},
1408 { "_WXTYPE","_unsigned_short",0},
1409 { "_unsigned_short","_wxDateTime_t",0},
1410 { "_unsigned_short","_WXTYPE",0},
1411 { "_unsigned_short","_short",0},
1412 { "_wxSplitterWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxSplitterWindow
},
1413 { "_wxObject","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxObject
},
1414 { "_wxObject","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxObject
},
1415 { "_wxObject","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxObject
},
1416 { "_wxObject","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxObject
},
1417 { "_wxObject","_wxEditableListBox",SwigwxEditableListBoxTowxObject
},
1418 { "_wxObject","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxObject
},
1419 { "_wxObject","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxObject
},
1420 { "_wxObject","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxObject
},
1421 { "_signed_short","_WXTYPE",0},
1422 { "_signed_short","_short",0},
1423 { "_wxScrolledWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxScrolledWindow
},
1424 { "_unsigned_char","_byte",0},
1425 { "_wxControl","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxControl
},
1426 { "_unsigned_int","_wxCoord",0},
1427 { "_unsigned_int","_wxPrintQuality",0},
1428 { "_unsigned_int","_time_t",0},
1429 { "_unsigned_int","_size_t",0},
1430 { "_unsigned_int","_uint",0},
1431 { "_unsigned_int","_wxWindowID",0},
1432 { "_unsigned_int","_int",0},
1433 { "_short","_wxDateTime_t",0},
1434 { "_short","_WXTYPE",0},
1435 { "_short","_unsigned_short",0},
1436 { "_short","_signed_short",0},
1437 { "_wxWindowID","_wxCoord",0},
1438 { "_wxWindowID","_wxPrintQuality",0},
1439 { "_wxWindowID","_time_t",0},
1440 { "_wxWindowID","_size_t",0},
1441 { "_wxWindowID","_EBool",0},
1442 { "_wxWindowID","_uint",0},
1443 { "_wxWindowID","_int",0},
1444 { "_wxWindowID","_signed_int",0},
1445 { "_wxWindowID","_unsigned_int",0},
1446 { "_int","_wxCoord",0},
1447 { "_int","_wxPrintQuality",0},
1448 { "_int","_time_t",0},
1449 { "_int","_size_t",0},
1450 { "_int","_EBool",0},
1451 { "_int","_uint",0},
1452 { "_int","_wxWindowID",0},
1453 { "_int","_unsigned_int",0},
1454 { "_int","_signed_int",0},
1455 { "_wxDateTime_t","_unsigned_short",0},
1456 { "_wxDateTime_t","_short",0},
1457 { "_wxDateTime_t","_WXTYPE",0},
1458 { "_time_t","_wxCoord",0},
1459 { "_time_t","_wxPrintQuality",0},
1460 { "_time_t","_unsigned_int",0},
1461 { "_time_t","_int",0},
1462 { "_time_t","_wxWindowID",0},
1463 { "_time_t","_uint",0},
1464 { "_time_t","_size_t",0},
1465 { "_wxCoord","_int",0},
1466 { "_wxCoord","_signed_int",0},
1467 { "_wxCoord","_unsigned_int",0},
1468 { "_wxCoord","_wxWindowID",0},
1469 { "_wxCoord","_uint",0},
1470 { "_wxCoord","_EBool",0},
1471 { "_wxCoord","_size_t",0},
1472 { "_wxCoord","_time_t",0},
1473 { "_wxCoord","_wxPrintQuality",0},
1474 { "_wxEvtHandler","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxEvtHandler
},
1475 { "_wxEvtHandler","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxEvtHandler
},
1476 { "_wxEvtHandler","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxEvtHandler
},
1477 { "_wxEvtHandler","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxEvtHandler
},
1478 { "_wxEvtHandler","_wxEditableListBox",SwigwxEditableListBoxTowxEvtHandler
},
1479 { "_wxEvtHandler","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxEvtHandler
},
1480 { "_wxWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxWindow
},
1481 { "_wxWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxWindow
},
1482 { "_wxWindow","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxWindow
},
1483 { "_wxWindow","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxWindow
},
1484 { "_wxWindow","_wxEditableListBox",SwigwxEditableListBoxTowxWindow
},
1485 { "_wxWindow","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxWindow
},
1488 static PyObject
*SWIG_globals
;
1492 SWIGEXPORT(void) initgizmosc() {
1494 SWIG_globals
= SWIG_newvarlink();
1495 m
= Py_InitModule("gizmosc", gizmoscMethods
);
1496 d
= PyModule_GetDict(m
);
1497 PyDict_SetItemString(d
,"wxEVT_DYNAMIC_SASH_SPLIT", PyInt_FromLong((long) wxEVT_DYNAMIC_SASH_SPLIT
));
1498 PyDict_SetItemString(d
,"wxEVT_DYNAMIC_SASH_UNIFY", PyInt_FromLong((long) wxEVT_DYNAMIC_SASH_UNIFY
));
1499 PyDict_SetItemString(d
,"wxDS_MANAGE_SCROLLBARS", PyInt_FromLong((long) wxDS_MANAGE_SCROLLBARS
));
1500 PyDict_SetItemString(d
,"wxDS_DRAG_CORNER", PyInt_FromLong((long) wxDS_DRAG_CORNER
));
1503 wxClassInfo::CleanUpClasses();
1504 wxClassInfo::InitializeClasses();
1506 wxPyPtrTypeMap_Add("wxTreeCompanionWindow", "wxPyTreeCompanionWindow");
1509 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1510 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);