- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxToolBarToolBase *)wxToolBar_FindToolForPosition(_arg0,_arg1,_arg2);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-}{ _resultobj = wxPyMake_wxObject(_result); }
- return _resultobj;
-}
-
-static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr) {
- wxToolBarSimple *src;
- wxToolBarBase *dest;
- src = (wxToolBarSimple *) ptr;
- dest = (wxToolBarBase *) src;
- return (void *) dest;
-}
-
-static void *SwigwxToolBarSimpleTowxControl(void *ptr) {
- wxToolBarSimple *src;
- wxControl *dest;
- src = (wxToolBarSimple *) ptr;
- dest = (wxControl *) src;
- return (void *) dest;
-}
-
-static void *SwigwxToolBarSimpleTowxWindow(void *ptr) {
- wxToolBarSimple *src;
- wxWindow *dest;
- src = (wxToolBarSimple *) ptr;
- dest = (wxWindow *) src;
- return (void *) dest;
-}
-
-static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr) {
- wxToolBarSimple *src;
- wxEvtHandler *dest;
- src = (wxToolBarSimple *) ptr;
- dest = (wxEvtHandler *) src;
- return (void *) dest;
-}
-
-static void *SwigwxToolBarSimpleTowxObject(void *ptr) {
- wxToolBarSimple *src;
- wxObject *dest;
- src = (wxToolBarSimple *) ptr;
- dest = (wxObject *) src;
- return (void *) dest;
-}
-
-#define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
-static PyObject *_wrap_new_wxToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxToolBarSimple * _result;
- wxWindow * _arg0;
- wxWindowID _arg1;
- wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
- wxSize * _arg3 = (wxSize *) &wxDefaultSize;
- long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
- char * _arg5 = (char *) wxToolBarNameStr;
- PyObject * _argo0 = 0;
- wxPoint temp;
- PyObject * _obj2 = 0;
- wxSize temp0;
- PyObject * _obj3 = 0;
- char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBarSimple",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
- return NULL;
- }
- }
- if (_obj2)
-{
- _arg2 = &temp;
- if (! wxPoint_helper(_obj2, &_arg2))
- return NULL;
-}
- if (_obj3)
-{
- _arg3 = &temp0;
- if (! wxSize_helper(_obj3, &_arg3))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxToolBarSimple *)new_wxToolBarSimple(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
- return _resultobj;
-}
-
-#define new_wxPreToolBarSimple() (new wxToolBarSimple())
-static PyObject *_wrap_new_wxPreToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxToolBarSimple * _result;
- char *_kwnames[] = { NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToolBarSimple",_kwnames))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxToolBarSimple *)new_wxPreToolBarSimple();
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
- return _resultobj;
-}
-
-#define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
-static PyObject *_wrap_wxToolBarSimple_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxToolBarSimple * _arg0;
- wxWindow * _arg1;
- wxWindowID _arg2;
- wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
- wxSize * _arg4 = (wxSize *) &wxDefaultSize;
- long _arg5 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
- char * _arg6 = (char *) wxToolBarNameStr;
- PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- wxPoint temp;
- PyObject * _obj3 = 0;
- wxSize temp0;
- PyObject * _obj4 = 0;
- char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxToolBarSimple_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
- return NULL;
- }
- }
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
- return NULL;
- }
- }
- if (_obj3)
-{
- _arg3 = &temp;
- if (! wxPoint_helper(_obj3, &_arg3))
- return NULL;
-}
- if (_obj4)
-{
- _arg4 = &temp0;
- if (! wxSize_helper(_obj4, &_arg4))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxToolBarSimple_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
-static PyObject *_wrap_wxToolBarSimple_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxToolBarToolBase * _result;
- wxToolBarSimple * _arg0;
- wxCoord _arg1;
- wxCoord _arg2;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","x","y", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxToolBarToolBase *)wxToolBarSimple_FindToolForPosition(_arg0,_arg1,_arg2);